|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("6MrE"),g=d.n(T)},"+QRC":function(H,k,d){"use strict";var I=d("E9nw"),E={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function g(m){var h=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,h)}function S(m,h){var c,a,r,i,n,t,s=!1;h||(h={}),c=h.debug||!1;try{r=I(),i=document.createRange(),n=document.getSelection(),t=document.createElement("span"),t.textContent=m,t.style.all="unset",t.style.position="fixed",t.style.top=0,t.style.clip="rect(0, 0, 0, 0)",t.style.whiteSpace="pre",t.style.webkitUserSelect="text",t.style.MozUserSelect="text",t.style.msUserSelect="text",t.style.userSelect="text",t.addEventListener("copy",function(o){if(o.stopPropagation(),h.format)if(o.preventDefault(),typeof o.clipboardData=="undefined"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=E[h.format]||E.default;window.clipboardData.setData(l,m)}else o.clipboardData.clearData(),o.clipboardData.setData(h.format,m);h.onCopy&&(o.preventDefault(),h.onCopy(o.clipboardData))}),document.body.appendChild(t),i.selectNodeContents(t),n.addRange(i);var e=document.execCommand("copy");if(!e)throw new Error("copy command was unsuccessful");s=!0}catch(o){c&&console.error("unable to copy using execCommand: ",o),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(h.format||"text",m),h.onCopy&&h.onCopy(window.clipboardData),s=!0}catch(l){c&&console.error("unable to copy using clipboardData: ",l),c&&console.error("falling back to prompt"),a=g("message"in h?h.message:T),window.prompt(a,m)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(i):n.removeAllRanges()),t&&document.body.removeChild(t),r()}return s}H.exports=S},"+TT/":function(H,k,d){var I=d("bYtY"),E=d("mFDi"),T=d("OELB"),g=T.parsePercent,S=d("7aKB"),m=I.each,h=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function a(p,v,A,y,x){var C=0,w=0;y==null&&(y=Infinity),x==null&&(x=Infinity);var b=0;v.eachChild(function(_,O){var L=_.position,D=_.getBoundingRect(),N=v.childAt(O+1),M=N&&N.getBoundingRect(),F,R;if(p==="horizontal"){var j=D.width+(M?-M.x+D.x:0);F=C+j,F>y||_.newline?(C=0,F=j,w+=b+A,b=D.height):b=Math.max(b,D.height)}else{var B=D.height+(M?-M.y+D.y:0);R=w+B,R>x||_.newline?(C+=b+A,w=0,R=B,b=D.width):b=Math.max(b,D.width)}if(_.newline)return;L[0]=C,L[1]=w,p==="horizontal"?C=F+A:w=R+A})}var r=a,i=I.curry(a,"vertical"),n=I.curry(a,"horizontal");function t(p,v,A){var y=v.width,x=v.height,C=g(p.x,y),w=g(p.y,x),b=g(p.x2,y),_=g(p.y2,x);return(isNaN(C)||isNaN(parseFloat(p.x)))&&(C=0),(isNaN(b)||isNaN(parseFloat(p.x2)))&&(b=y),(isNaN(w)||isNaN(parseFloat(p.y)))&&(w=0),(isNaN(_)||isNaN(parseFloat(p.y2)))&&(_=x),A=S.normalizeCssArray(A||0),{width:Math.max(b-C-A[1]-A[3],0),height:Math.max(_-w-A[0]-A[2],0)}}function s(p,v,A){A=S.normalizeCssArray(A||0);var y=v.width,x=v.height,C=g(p.left,y),w=g(p.top,x),b=g(p.right,y),_=g(p.bottom,x),O=g(p.width,y),L=g(p.height,x),D=A[2]+A[0],N=A[1]+A[3],M=p.aspect;isNaN(O)&&(O=y-b-N-C),isNaN(L)&&(L=x-_-D-w),M!=null&&(isNaN(O)&&isNaN(L)&&(M>y/x?O=y*.8:L=x*.8),isNaN(O)&&(O=M*L),isNaN(L)&&(L=O/M)),isNaN(C)&&(C=y-b-O-N),isNaN(w)&&(w=x-_-L-D);switch(p.left||p.right){case"center":C=y/2-O/2-A[3];break;case"right":C=y-O-N;break}switch(p.top||p.bottom){case"middle":case"center":w=x/2-L/2-A[0];break;case"bottom":w=x-L-D;break}C=C||0,w=w||0,isNaN(O)&&(O=y-N-C-(b||0)),isNaN(L)&&(L=x-D-w-(_||0));var F=new E(C+A[3],w+A[0],O,L);return F.margin=A,F}function e(p,v,A,y,x){var C=!x||!x.hv||x.hv[0],w=!x||!x.hv||x.hv[1],b=x&&x.boundingMode||"all";if(!C&&!w)return;var _;if(b==="raw")_=p.type==="group"?new E(0,0,+v.width||0,+v.height||0):p.getBoundingRect();else if(_=p.getBoundingRect(),p.needLocalTransform()){var O=p.getLocalTransform();_=_.clone(),_.applyTransform(O)}v=s(I.defaults({width:_.width,height:_.height},v),A,y);var L=p.position,D=C?v.x-_.x:0,N=w?v.y-_.y:0;p.attr("position",b==="raw"?[D,N]:[L[0]+D,L[1]+N])}function o(p,v){return p[c[v][0]]!=null||p[c[v][1]]!=null&&p[c[v][2]]!=null}function l(p,v,A){!I.isObject(A)&&(A={});var y=A.ignoreSize;!I.isArray(y)&&(y=[y,y]);var x=w(c[0],0),C=w(c[1],1);O(c[0],p,x),O(c[1],p,C);function w(L,D){var N={},M=0,F={},R=0,j=2;if(m(L,function(U){F[U]=p[U]}),m(L,function(U){b(v,U)&&(N[U]=F[U]=v[U]),_(N,U)&&M++,_(F,U)&&R++}),y[D])return _(v,L[1])?F[L[2]]=null:_(v,L[2])&&(F[L[1]]=null),F;if(R===j||!M)return F;if(M>=j)return N;for(var B=0;B<L.length;B++){var K=L[B];if(!b(N,K)&&b(p,K)){N[K]=p[K];break}}return N}function b(L,D){return L.hasOwnProperty(D)}function _(L,D){return L[D]!=null&&L[D]!=="auto"}function O(L,D,N){m(L,function(M){D[M]=N[M]})}}function u(p){return f({},p)}function f(p,v){return v&&p&&m(h,function(A){v.hasOwnProperty(A)&&(p[A]=v[A])}),p}k.LOCATION_PARAMS=h,k.HV_NAMES=c,k.box=r,k.vbox=i,k.hbox=n,k.getAvailableSize=t,k.getLayoutRect=s,k.positionElement=e,k.sizeCalculable=o,k.mergeLayoutParam=l,k.getLayoutParams=u,k.copyLayoutParams=f},"+Zaj":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("ugBc")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="CalendarOutlined";var c=g.forwardRef(h);k.default=c},"+d4F":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("y3Yb"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},"+eQT":function(H,k,d){"use strict";var I=d("wd/R"),E=d.n(I),T=d("Kwbf"),g={getNow:function(){return E()()},getWeekDay:function(_t){var lr=_t.clone().locale("en_US");return lr.weekday()+lr.localeData().firstDayOfWeek()},getYear:function(_t){return _t.year()},getMonth:function(_t){return _t.month()},getDate:function(_t){return _t.date()},getHour:function(_t){return _t.hour()},getMinute:function(_t){return _t.minute()},getSecond:function(_t){return _t.second()},addYear:function(_t,lr){var rr=_t.clone();return rr.add(lr,"year")},addMonth:function(_t,lr){var rr=_t.clone();return rr.add(lr,"month")},addDate:function(_t,lr){var rr=_t.clone();return rr.add(lr,"day")},setYear:function(_t,lr){var rr=_t.clone();return rr.year(lr)},setMonth:function(_t,lr){var rr=_t.clone();return rr.month(lr)},setDate:function(_t,lr){var rr=_t.clone();return rr.date(lr)},setHour:function(_t,lr){var rr=_t.clone();return rr.hour(lr)},setMinute:function(_t,lr){var rr=_t.clone();return rr.minute(lr)},setSecond:function(_t,lr){var rr=_t.clone();return rr.second(lr)},isAfter:function(_t,lr){return _t.isAfter(lr)},isValidate:function(_t){return _t.isValid()},locale:{getWeekFirstDay:function(_t){var lr=E()().locale(_t);return lr.localeData().firstDayOfWeek()},getWeek:function(_t,lr){var rr=lr.clone(),Or=rr.locale(_t);return Or.week()},getShortWeekDays:function(_t){var lr=E()().locale(_t);return lr.localeData().weekdaysMin()},getShortMonths:function(_t){var lr=E()().locale(_t);return lr.localeData().monthsShort()},format:function(_t,lr,rr){var Or=lr.clone(),Mr=Or.locale(_t);return Mr.format(rr)},parse:function(_t,lr,rr){for(var Or=[],Mr=0;Mr<rr.length;Mr+=1){var Wr=rr[Mr],nn=lr;if(Wr.includes("wo")||Wr.includes("Wo")){Wr=Wr.replace(/wo/g,"w").replace(/Wo/g,"W");var wn=Wr.match(/[-YyMmDdHhSsWwGg]+/g),On=nn.match(/[-\d]+/g);wn&&On?(Wr=wn.join(""),nn=On.join("")):Or.push(Wr.replace(/o/g,""))}var Rn=E()(nn,Wr,_t,!0);if(Rn.isValid())return Rn}for(var Nn=0;Nn<Or.length;Nn+=1){var yn=E()(lr,Or[Nn],_t,!1);if(yn.isValid())return Object(T.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),yn}return null}}},S=g,m=d("pVnL"),h=d.n(m),c=d("q1tI"),a=d("2/Rp");function r(Xe){return c.createElement(a.a,h()({size:"small",type:"primary"},Xe))}var i=d("mr32");function n(Xe){return c.createElement(i.a,h()({color:"blue"},Xe))}var t=d("lSNA"),s=d.n(t),e=d("lwsE"),o=d.n(e),l=d("W8MJ"),u=d.n(l),f=d("7W2i"),p=d.n(f),v=d("LQ03"),A=d.n(v),y=d("TSYQ"),x=d.n(y),C=d("r/2G"),w=d.n(C),b=d("XzQk"),_=d.n(b),O=d("kbBi"),L=d.n(O),D=d("1OyB"),N=d("vuIU"),M=d("Ji7U"),F=d("LK+K"),R=d("rePB"),j=d("VTBJ"),B=d("ODXe"),K=d("6cGi"),U=d("U8pU"),z=d("4IlW"),V=c.createContext({}),Y=V,J={visibility:"hidden"};function se(Xe){var _t=Xe.prefixCls,lr=Xe.prevIcon,rr=lr===void 0?"\u2039":lr,Or=Xe.nextIcon,Mr=Or===void 0?"\u203A":Or,Wr=Xe.superPrevIcon,nn=Wr===void 0?"\xAB":Wr,wn=Xe.superNextIcon,On=wn===void 0?"\xBB":wn,Rn=Xe.onSuperPrev,Nn=Xe.onSuperNext,yn=Xe.onPrev,Sn=Xe.onNext,_n=Xe.children,Hn=c.useContext(Y),Yn=Hn.hideNextBtn,Zn=Hn.hidePrevBtn;return c.createElement("div",{className:_t},Rn&&c.createElement("button",{type:"button",onClick:Rn,tabIndex:-1,className:"".concat(_t,"-super-prev-btn"),style:Zn?J:{}},nn),yn&&c.createElement("button",{type:"button",onClick:yn,tabIndex:-1,className:"".concat(_t,"-prev-btn"),style:Zn?J:{}},rr),c.createElement("div",{className:"".concat(_t,"-view")},_n),Sn&&c.createElement("button",{type:"button",onClick:Sn,tabIndex:-1,className:"".concat(_t,"-next-btn"),style:Yn?J:{}},Mr),Nn&&c.createElement("button",{type:"button",onClick:Nn,tabIndex:-1,className:"".concat(_t,"-super-next-btn"),style:Yn?J:{}},On))}var $=se;function ae(Xe){var _t=c.useContext(Y),lr=_t.hideHeader;if(lr)return null;var rr=Xe.prefixCls,Or=Xe.generateConfig,Mr=Xe.locale,Wr=Xe.value,nn=Xe.format,wn="".concat(rr,"-header");return c.createElement($,{prefixCls:wn},Wr?Or.locale.format(Mr.locale,Wr,nn):"\xA0")}var ge=ae,pe=d("YrtM"),Ne=d("KQm4"),de=new Map;function Le(Xe,_t,lr){if(de.get(Xe)&&cancelAnimationFrame(de.get(Xe)),lr<=0){de.set(Xe,requestAnimationFrame(function(){Xe.scrollTop=_t}));return}var rr=_t-Xe.scrollTop,Or=rr/lr*10;de.set(Xe,requestAnimationFrame(function(){Xe.scrollTop+=Or,Xe.scrollTop!==_t&&Le(Xe,_t,lr-10)}))}function Q(Xe,_t){var lr=_t.onLeftRight,rr=_t.onCtrlLeftRight,Or=_t.onUpDown,Mr=_t.onPageUpDown,Wr=_t.onEnter,nn=Xe.which,wn=Xe.ctrlKey,On=Xe.metaKey;switch(nn){case z.a.LEFT:if(wn||On){if(rr)return rr(-1),!0}else if(lr)return lr(-1),!0;break;case z.a.RIGHT:if(wn||On){if(rr)return rr(1),!0}else if(lr)return lr(1),!0;break;case z.a.UP:if(Or)return Or(-1),!0;break;case z.a.DOWN:if(Or)return Or(1),!0;break;case z.a.PAGE_UP:if(Mr)return Mr(-1),!0;break;case z.a.PAGE_DOWN:if(Mr)return Mr(1),!0;break;case z.a.ENTER:if(Wr)return Wr(),!0;break}return!1}function ce(Xe,_t,lr,rr){var Or=Xe;if(!Or)switch(_t){case"time":Or=rr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Or="gggg-wo";break;case"month":Or="YYYY-MM";break;case"quarter":Or="YYYY-[Q]Q";break;case"year":Or="YYYY";break;default:Or=lr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Or}function Ke(Xe,_t){var lr=Xe==="time"?8:10;return Math.max(lr,_t.length)+2}var ee=null,X=new Set;function G(Xe){return!ee&&typeof window!="undefined"&&window.addEventListener&&(ee=function(lr){Object(Ne.a)(X).forEach(function(rr){rr(lr)})},window.addEventListener("mousedown",ee)),X.add(Xe),function(){X.delete(Xe),X.size===0&&(window.removeEventListener("mousedown",ee),ee=null)}}var Z=function(_t){return _t==="month"||_t==="date"?"year":_t},ve=function(_t){return _t==="date"?"month":_t},ue=function(_t){return _t==="month"||_t==="date"?"quarter":_t},_e=function(_t){return _t==="date"?"week":_t},xe={year:Z,month:ve,quarter:ue,week:_e,time:null,date:null};function oe(Xe,_t){return Xe.some(function(lr){return lr&&lr.contains(_t)})}function fe(Xe){var _t=Xe.prefixCls,lr=Xe.units,rr=Xe.onSelect,Or=Xe.value,Mr=Xe.active,Wr=Xe.hideDisabledOptions,nn="".concat(_t,"-cell"),wn=c.useContext(Y),On=wn.open,Rn=c.useRef(null),Nn=c.useRef(new Map);return c.useLayoutEffect(function(){var yn=Nn.current.get(Or);yn&&On!==!1&&Le(Rn.current,yn.offsetTop,120)},[Or]),c.useLayoutEffect(function(){if(On){var yn=Nn.current.get(Or);yn&&Le(Rn.current,yn.offsetTop,0)}},[On]),c.createElement("ul",{className:x()("".concat(_t,"-column"),Object(R.a)({},"".concat(_t,"-column-active"),Mr)),ref:Rn,style:{position:"relative"}},lr.map(function(yn){var Sn;return Wr&&yn.disabled?null:c.createElement("li",{key:yn.value,ref:function(Hn){Nn.current.set(yn.value,Hn)},className:x()(nn,(Sn={},Object(R.a)(Sn,"".concat(nn,"-disabled"),yn.disabled),Object(R.a)(Sn,"".concat(nn,"-selected"),Or===yn.value),Sn)),onClick:function(){if(yn.disabled)return;rr(yn.value)}},c.createElement("div",{className:"".concat(nn,"-inner")},yn.label))}))}var Te=fe;function ze(Xe,_t){for(var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",rr=String(Xe);rr.length<_t;)rr="".concat(lr).concat(Xe);return rr}var it=function(){for(var _t=arguments.length,lr=new Array(_t),rr=0;rr<_t;rr++)lr[rr]=arguments[rr];return lr};function et(Xe){return Xe==null?[]:Array.isArray(Xe)?Xe:[Xe]}function Oe(Xe){var _t={};return Object.keys(Xe).forEach(function(lr){(lr.substr(0,5)==="data-"||lr.substr(0,5)==="aria-"||lr==="role"||lr==="name")&&lr.substr(0,7)!=="data-__"&&(_t[lr]=Xe[lr])}),_t}function gt(Xe,_t){return Xe?Xe[_t]:null}function Ge(Xe,_t,lr){var rr=[gt(Xe,0),gt(Xe,1)];return rr[lr]=typeof _t=="function"?_t(rr[lr]):_t,!rr[0]&&!rr[1]?null:rr}function wt(Xe,_t,lr,rr,Or){var Mr=Xe.setHour(_t,lr);return Mr=Xe.setMinute(Mr,rr),Mr=Xe.setSecond(Mr,Or),Mr}function xt(Xe,_t,lr,rr,Or,Mr){var Wr=Math.floor(Xe/rr)*rr;if(Wr<Xe)return[Wr,60-Or,60-Mr];var nn=Math.floor(_t/Or)*Or;if(nn<_t)return[Wr,nn,60-Mr];var wn=Math.floor(lr/Mr)*Mr;return[Wr,nn,wn]}function Ct(Xe,_t){if(Xe.length!==_t.length)return!0;for(var lr=0;lr<Xe.length;lr+=1)if(Xe[lr].disabled!==_t[lr].disabled)return!0;return!1}function Dt(Xe,_t,lr,rr){for(var Or=[],Mr=Xe;Mr<=_t;Mr+=lr)Or.push({label:ze(Mr,2),value:Mr,disabled:(rr||[]).includes(Mr)});return Or}function Ht(Xe){var _t=Xe.generateConfig,lr=Xe.prefixCls,rr=Xe.operationRef,Or=Xe.activeColumnIndex,Mr=Xe.value,Wr=Xe.showHour,nn=Xe.showMinute,wn=Xe.showSecond,On=Xe.use12Hours,Rn=Xe.hourStep,Nn=Rn===void 0?1:Rn,yn=Xe.minuteStep,Sn=yn===void 0?1:yn,_n=Xe.secondStep,Hn=_n===void 0?1:_n,Yn=Xe.disabledHours,Zn=Xe.disabledMinutes,yi=Xe.disabledSeconds,gi=Xe.hideDisabledOptions,Di=Xe.onSelect,Ui=[],Ei="".concat(lr,"-content"),_i="".concat(lr,"-time-panel"),Ni,jn=Mr?_t.getHour(Mr):-1,Ii=Mr?_t.getMinute(Mr):-1,Hi=Mr?_t.getSecond(Mr):-1,fr=function(Xn,$n,Ti,Xi){var ua=Mr||_t.getNow(),da=Math.max(0,$n),sa=Math.max(0,Ti),ca=Math.max(0,Xi);return ua=wt(_t,ua,!On||!Xn?da:da+12,sa,ca),ua},Dr=Dt(0,23,Nn,Yn&&Yn()),Qr=Object(pe.a)(function(){return Dr},Dr,Ct);On&&(Ni=jn>=12,jn%=12);var Nr=c.useMemo(function(){if(!On)return[!1,!1];var Bn=[!0,!0];return Qr.forEach(function(Xn){var $n=Xn.disabled,Ti=Xn.value;if($n)return;Ti>=12?Bn[1]=!1:Bn[0]=!1}),Bn},[On,Qr]),Yt=Object(B.a)(Nr,2),xr=Yt[0],tr=Yt[1],jr=c.useMemo(function(){return On?Qr.filter(Ni?function(Bn){return Bn.value>=12}:function(Bn){return Bn.value<12}).map(function(Bn){var Xn=Bn.value%12,$n=Xn===0?"12":ze(Xn,2);return Object(j.a)(Object(j.a)({},Bn),{},{label:$n,value:Xn})}):Qr},[On,Qr]),Ur=Dt(0,59,Sn,Zn&&Zn(jn)),dn=Dt(0,59,Hn,yi&&yi(jn,Ii));rr.current={onUpDown:function(Xn){var $n=Ui[Or];if($n)for(var Ti=$n.units.findIndex(function(sa){return sa.value===$n.value}),Xi=$n.units.length,ua=1;ua<Xi;ua+=1){var da=$n.units[(Ti+Xn*ua+Xi)%Xi];if(da.disabled!==!0){$n.onSelect(da.value);break}}}};function sn(Bn,Xn,$n,Ti,Xi){Bn!==!1&&Ui.push({node:c.cloneElement(Xn,{prefixCls:_i,value:$n,active:Or===Ui.length,onSelect:Xi,units:Ti,hideDisabledOptions:gi}),onSelect:Xi,value:$n,units:Ti})}sn(Wr,c.createElement(Te,{key:"hour"}),jn,jr,function(Bn){Di(fr(Ni,Bn,Ii,Hi),"mouse")}),sn(nn,c.createElement(Te,{key:"minute"}),Ii,Ur,function(Bn){Di(fr(Ni,jn,Bn,Hi),"mouse")}),sn(wn,c.createElement(Te,{key:"second"}),Hi,dn,function(Bn){Di(fr(Ni,jn,Ii,Bn),"mouse")});var bn=-1;return typeof Ni=="boolean"&&(bn=Ni?1:0),sn(On===!0,c.createElement(Te,{key:"12hours"}),bn,[{label:"AM",value:0,disabled:xr},{label:"PM",value:1,disabled:tr}],function(Bn){Di(fr(!!Bn,jn,Ii,Hi),"mouse")}),c.createElement("div",{className:Ei},Ui.map(function(Bn){var Xn=Bn.node;return Xn}))}var Je=Ht,ye=function(_t){return _t.filter(function(lr){return lr!==!1}).length};function ie(Xe){var _t=Xe.generateConfig,lr=Xe.format,rr=lr===void 0?"HH:mm:ss":lr,Or=Xe.prefixCls,Mr=Xe.active,Wr=Xe.operationRef,nn=Xe.showHour,wn=Xe.showMinute,On=Xe.showSecond,Rn=Xe.use12Hours,Nn=Rn===void 0?!1:Rn,yn=Xe.onSelect,Sn=Xe.value,_n="".concat(Or,"-time-panel"),Hn=c.useRef(),Yn=c.useState(-1),Zn=Object(B.a)(Yn,2),yi=Zn[0],gi=Zn[1],Di=ye([nn,wn,On,Nn]);return Wr.current={onKeyDown:function(Ei){return Q(Ei,{onLeftRight:function(Ni){gi((yi+Ni+Di)%Di)},onUpDown:function(Ni){yi===-1?gi(0):Hn.current&&Hn.current.onUpDown(Ni)},onEnter:function(){yn(Sn||_t.getNow(),"key"),gi(-1)}})},onBlur:function(){gi(-1)}},c.createElement("div",{className:x()(_n,Object(R.a)({},"".concat(_n,"-active"),Mr))},c.createElement(ge,Object.assign({},Xe,{format:rr,prefixCls:Or})),c.createElement(Je,Object.assign({},Xe,{prefixCls:Or,activeColumnIndex:yi,operationRef:Hn})))}var bt=ie,qe=7;function me(Xe,_t){return!Xe&&!_t?!0:!Xe||!_t?!1:void 0}function Rt(Xe,_t,lr){var rr=me(_t,lr);if(typeof rr=="boolean")return rr;var Or=Math.floor(Xe.getYear(_t)/10),Mr=Math.floor(Xe.getYear(lr)/10);return Or===Mr}function er(Xe,_t,lr){var rr=me(_t,lr);return typeof rr=="boolean"?rr:Xe.getYear(_t)===Xe.getYear(lr)}function ct(Xe,_t){var lr=Math.floor(Xe.getMonth(_t)/3);return lr+1}function zt(Xe,_t,lr){var rr=me(_t,lr);return typeof rr=="boolean"?rr:er(Xe,_t,lr)&&ct(Xe,_t)===ct(Xe,lr)}function sr(Xe,_t,lr){var rr=me(_t,lr);return typeof rr=="boolean"?rr:er(Xe,_t,lr)&&Xe.getMonth(_t)===Xe.getMonth(lr)}function Kr(Xe,_t,lr){var rr=me(_t,lr);return typeof rr=="boolean"?rr:Xe.getYear(_t)===Xe.getYear(lr)&&Xe.getMonth(_t)===Xe.getMonth(lr)&&Xe.getDate(_t)===Xe.getDate(lr)}function ar(Xe,_t,lr){var rr=me(_t,lr);return typeof rr=="boolean"?rr:Xe.getHour(_t)===Xe.getHour(lr)&&Xe.getMinute(_t)===Xe.getMinute(lr)&&Xe.getSecond(_t)===Xe.getSecond(lr)}function nr(Xe,_t,lr,rr){var Or=me(lr,rr);return typeof Or=="boolean"?Or:Xe.locale.getWeek(_t,lr)===Xe.locale.getWeek(_t,rr)}function Lt(Xe,_t,lr){return Kr(Xe,_t,lr)&&ar(Xe,_t,lr)}function st(Xe,_t,lr,rr){return!_t||!lr||!rr?!1:!Kr(Xe,_t,rr)&&!Kr(Xe,lr,rr)&&Xe.isAfter(rr,_t)&&Xe.isAfter(lr,rr)}function Qe(Xe,_t,lr){var rr=_t.locale.getWeekFirstDay(Xe),Or=_t.setDate(lr,1),Mr=_t.getWeekDay(Or),Wr=_t.addDate(Or,rr-Mr);return _t.getMonth(Wr)===_t.getMonth(lr)&&_t.getDate(Wr)>1&&(Wr=_t.addDate(Wr,-7)),Wr}function qt(Xe,_t,lr){var rr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(_t){case"year":return lr.addYear(Xe,rr*10);case"quarter":case"month":return lr.addYear(Xe,rr);default:return lr.addMonth(Xe,rr)}}var Sr=c.createContext({}),Ar=Sr;function hr(Xe){var _t=Xe.cellPrefixCls,lr=Xe.generateConfig,rr=Xe.rangedValue,Or=Xe.hoverRangedValue,Mr=Xe.isInView,Wr=Xe.isSameCell,nn=Xe.offsetCell,wn=Xe.today,On=Xe.value;function Rn(Nn){var yn,Sn=nn(Nn,-1),_n=nn(Nn,1),Hn=gt(rr,0),Yn=gt(rr,1),Zn=gt(Or,0),yi=gt(Or,1),gi=st(lr,Zn,yi,Nn);function Di(Ii){return Wr(Hn,Ii)}function Ui(Ii){return Wr(Yn,Ii)}var Ei=Wr(Zn,Nn),_i=Wr(yi,Nn),Ni=(gi||_i)&&(!Mr(Sn)||Ui(Sn)),jn=(gi||Ei)&&(!Mr(_n)||Di(_n));return yn={},Object(R.a)(yn,"".concat(_t,"-in-view"),Mr(Nn)),Object(R.a)(yn,"".concat(_t,"-in-range"),st(lr,Hn,Yn,Nn)),Object(R.a)(yn,"".concat(_t,"-range-start"),Di(Nn)),Object(R.a)(yn,"".concat(_t,"-range-end"),Ui(Nn)),Object(R.a)(yn,"".concat(_t,"-range-start-single"),Di(Nn)&&!Yn),Object(R.a)(yn,"".concat(_t,"-range-end-single"),Ui(Nn)&&!Hn),Object(R.a)(yn,"".concat(_t,"-range-start-near-hover"),Di(Nn)&&(Wr(Sn,Zn)||st(lr,Zn,yi,Sn))),Object(R.a)(yn,"".concat(_t,"-range-end-near-hover"),Ui(Nn)&&(Wr(_n,yi)||st(lr,Zn,yi,_n))),Object(R.a)(yn,"".concat(_t,"-range-hover"),gi),Object(R.a)(yn,"".concat(_t,"-range-hover-start"),Ei),Object(R.a)(yn,"".concat(_t,"-range-hover-end"),_i),Object(R.a)(yn,"".concat(_t,"-range-hover-edge-start"),Ni),Object(R.a)(yn,"".concat(_t,"-range-hover-edge-end"),jn),Object(R.a)(yn,"".concat(_t,"-range-hover-edge-start-near-range"),Ni&&Wr(Sn,Yn)),Object(R.a)(yn,"".concat(_t,"-range-hover-edge-end-near-range"),jn&&Wr(_n,Hn)),Object(R.a)(yn,"".concat(_t,"-today"),Wr(wn,Nn)),Object(R.a)(yn,"".concat(_t,"-selected"),Wr(On,Nn)),yn}return Rn}function vn(Xe){for(var _t=Xe.prefixCls,lr=Xe.disabledDate,rr=Xe.onSelect,Or=Xe.rowNum,Mr=Xe.colNum,Wr=Xe.prefixColumn,nn=Xe.rowClassName,wn=Xe.baseDate,On=Xe.getCellClassName,Rn=Xe.getCellText,Nn=Xe.getCellNode,yn=Xe.getCellDate,Sn=Xe.titleCell,_n=Xe.headerCells,Hn=c.useContext(Y),Yn=Hn.onDateMouseEnter,Zn=Hn.onDateMouseLeave,yi="".concat(_t,"-cell"),gi=[],Di=0;Di<Or;Di+=1){for(var Ui=[],Ei=void 0,_i=function(Ii){var Hi=Di*Mr+Ii,fr=yn(wn,Hi),Dr=lr&&lr(fr);Ii===0&&(Ei=fr,Wr&&Ui.push(Wr(Ei))),Ui.push(c.createElement("td",{key:Ii,title:Sn&&Sn(fr),className:x()(yi,Object(j.a)(Object(R.a)({},"".concat(yi,"-disabled"),Dr),On(fr))),onClick:function(){Dr||rr(fr)},onMouseEnter:function(){!Dr&&Yn&&Yn(fr)},onMouseLeave:function(){!Dr&&Zn&&Zn(fr)}},Nn?Nn(fr):c.createElement("div",{className:"".concat(yi,"-inner")},Rn(fr))))},Ni=0;Ni<Mr;Ni+=1)_i(Ni);gi.push(c.createElement("tr",{key:Di,className:nn&&nn(Ei)},Ui))}return c.createElement("div",{className:"".concat(_t,"-body")},c.createElement("table",{className:"".concat(_t,"-content")},_n&&c.createElement("thead",null,c.createElement("tr",null,_n)),c.createElement("tbody",null,gi)))}function Zr(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.prefixColumn,Or=Xe.locale,Mr=Xe.rowCount,Wr=Xe.viewDate,nn=Xe.value,wn=Xe.dateRender,On=c.useContext(Ar),Rn=On.rangedValue,Nn=On.hoverRangedValue,yn=Qe(Or.locale,lr,Wr),Sn="".concat(_t,"-cell"),_n=lr.locale.getWeekFirstDay(Or.locale),Hn=lr.getNow(),Yn=[],Zn=Or.shortWeekDays||(lr.locale.getShortWeekDays?lr.locale.getShortWeekDays(Or.locale):[]);rr&&Yn.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var yi=0;yi<qe;yi+=1)Yn.push(c.createElement("th",{key:yi},Zn[(yi+_n)%qe]));var gi=hr({cellPrefixCls:Sn,today:Hn,value:nn,generateConfig:lr,rangedValue:rr?null:Rn,hoverRangedValue:rr?null:Nn,isSameCell:function(Ei,_i){return Kr(lr,Ei,_i)},isInView:function(Ei){return sr(lr,Ei,Wr)},offsetCell:function(Ei,_i){return lr.addDate(Ei,_i)}}),Di=wn?function(Ui){return wn(Ui,Hn)}:void 0;return c.createElement(vn,Object.assign({},Xe,{rowNum:Mr,colNum:qe,baseDate:yn,getCellNode:Di,getCellText:lr.getDate,getCellClassName:gi,getCellDate:lr.addDate,titleCell:function(Ei){return lr.locale.format(Or.locale,Ei,"YYYY-MM-DD")},headerCells:Yn}))}var Ln=Zr;function $e(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.locale,Or=Xe.viewDate,Mr=Xe.onNextMonth,Wr=Xe.onPrevMonth,nn=Xe.onNextYear,wn=Xe.onPrevYear,On=Xe.onYearClick,Rn=Xe.onMonthClick,Nn=c.useContext(Y),yn=Nn.hideHeader;if(yn)return null;var Sn="".concat(_t,"-header"),_n=rr.shortMonths||(lr.locale.getShortMonths?lr.locale.getShortMonths(rr.locale):[]),Hn=lr.getMonth(Or),Yn=c.createElement("button",{type:"button",key:"year",onClick:On,tabIndex:-1,className:"".concat(_t,"-year-btn")},lr.locale.format(rr.locale,Or,rr.yearFormat)),Zn=c.createElement("button",{type:"button",key:"month",onClick:Rn,tabIndex:-1,className:"".concat(_t,"-month-btn")},rr.monthFormat?lr.locale.format(rr.locale,Or,rr.monthFormat):_n[Hn]),yi=rr.monthBeforeYear?[Zn,Yn]:[Yn,Zn];return c.createElement($,Object.assign({},Xe,{prefixCls:Sn,onSuperPrev:wn,onPrev:Wr,onNext:Mr,onSuperNext:nn}),yi)}var tt=$e,Ee=6;function Re(Xe){var _t=Xe.prefixCls,lr=Xe.panelName,rr=lr===void 0?"date":lr,Or=Xe.keyboardConfig,Mr=Xe.active,Wr=Xe.operationRef,nn=Xe.generateConfig,wn=Xe.value,On=Xe.viewDate,Rn=Xe.onViewDateChange,Nn=Xe.onPanelChange,yn=Xe.onSelect,Sn="".concat(_t,"-").concat(rr,"-panel");Wr.current={onKeyDown:function(Zn){return Q(Zn,Object(j.a)({onLeftRight:function(gi){yn(nn.addDate(wn||On,gi),"key")},onCtrlLeftRight:function(gi){yn(nn.addYear(wn||On,gi),"key")},onUpDown:function(gi){yn(nn.addDate(wn||On,gi*qe),"key")},onPageUpDown:function(gi){yn(nn.addMonth(wn||On,gi),"key")}},Or))}};var _n=function(Zn){var yi=nn.addYear(On,Zn);Rn(yi),Nn(null,yi)},Hn=function(Zn){var yi=nn.addMonth(On,Zn);Rn(yi),Nn(null,yi)};return c.createElement("div",{className:x()(Sn,Object(R.a)({},"".concat(Sn,"-active"),Mr))},c.createElement(tt,Object.assign({},Xe,{prefixCls:_t,value:wn,viewDate:On,onPrevYear:function(){_n(-1)},onNextYear:function(){_n(1)},onPrevMonth:function(){Hn(-1)},onNextMonth:function(){Hn(1)},onMonthClick:function(){Nn("month",On)},onYearClick:function(){Nn("year",On)}})),c.createElement(Ln,Object.assign({},Xe,{onSelect:function(Zn){return yn(Zn,"mouse")},prefixCls:_t,value:wn,viewDate:On,rowCount:Ee})))}var je=Re;function nt(Xe,_t,lr){if(!lr)return _t;var rr=_t;return rr=Xe.setHour(rr,Xe.getHour(lr)),rr=Xe.setMinute(rr,Xe.getMinute(lr)),rr=Xe.setSecond(rr,Xe.getSecond(lr)),rr}var Vt=it("date","time");function Bt(Xe){var _t=Xe.prefixCls,lr=Xe.operationRef,rr=Xe.generateConfig,Or=Xe.value,Mr=Xe.defaultValue,Wr=Xe.disabledTime,nn=Xe.showTime,wn=Xe.onSelect,On="".concat(_t,"-datetime-panel"),Rn=c.useState(null),Nn=Object(B.a)(Rn,2),yn=Nn[0],Sn=Nn[1],_n=c.useRef({}),Hn=c.useRef({}),Yn=Object(U.a)(nn)==="object"?Object(j.a)({},nn):{};function Zn(Ui){var Ei=Vt.indexOf(yn)+Ui,_i=Vt[Ei]||null;return _i}var yi=function(Ei){Hn.current.onBlur&&Hn.current.onBlur(Ei),Sn(null)};lr.current={onKeyDown:function(Ei){if(Ei.which===z.a.TAB){var _i=Zn(Ei.shiftKey?-1:1);return Sn(_i),_i&&Ei.preventDefault(),!0}if(yn){var Ni=yn==="date"?_n:Hn;return Ni.current&&Ni.current.onKeyDown&&Ni.current.onKeyDown(Ei),!0}return[z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN].includes(Ei.which)?(Sn("date"),!0):!1},onBlur:yi,onClose:yi};var gi=function(Ei,_i){var Ni=Ei;_i==="date"&&!Or&&Yn.defaultValue?(Ni=rr.setHour(Ni,rr.getHour(Yn.defaultValue)),Ni=rr.setMinute(Ni,rr.getMinute(Yn.defaultValue)),Ni=rr.setSecond(Ni,rr.getSecond(Yn.defaultValue))):_i==="time"&&!Or&&Mr&&(Ni=rr.setYear(Ni,rr.getYear(Mr)),Ni=rr.setMonth(Ni,rr.getMonth(Mr)),Ni=rr.setDate(Ni,rr.getDate(Mr))),wn&&wn(Ni,"mouse")},Di=Wr?Wr(Or||null):{};return c.createElement("div",{className:x()(On,Object(R.a)({},"".concat(On,"-active"),yn))},c.createElement(je,Object.assign({},Xe,{operationRef:_n,active:yn==="date",onSelect:function(Ei){gi(nt(rr,Ei,nn&&Object(U.a)(nn)==="object"?nn.defaultValue:null),"date")}})),c.createElement(bt,Object.assign({},Xe,{format:void 0},Yn,Di,{defaultValue:void 0,operationRef:Hn,active:yn==="time",onSelect:function(Ei){gi(Ei,"time")}})))}var Xt=Bt;function Rr(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.locale,Or=Xe.value,Mr="".concat(_t,"-cell"),Wr=function(Rn){return c.createElement("td",{key:"week",className:x()(Mr,"".concat(Mr,"-week"))},lr.locale.getWeek(rr.locale,Rn))},nn="".concat(_t,"-week-panel-row"),wn=function(Rn){return x()(nn,Object(R.a)({},"".concat(nn,"-selected"),nr(lr,rr.locale,Or,Rn)))};return c.createElement(je,Object.assign({},Xe,{panelName:"week",prefixColumn:Wr,rowClassName:wn,keyboardConfig:{onLeftRight:null}}))}var Br=Rr;function cn(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.locale,Or=Xe.viewDate,Mr=Xe.onNextYear,Wr=Xe.onPrevYear,nn=Xe.onYearClick,wn=c.useContext(Y),On=wn.hideHeader;if(On)return null;var Rn="".concat(_t,"-header");return c.createElement($,Object.assign({},Xe,{prefixCls:Rn,onSuperPrev:Wr,onSuperNext:Mr}),c.createElement("button",{type:"button",onClick:nn,className:"".concat(_t,"-year-btn")},lr.locale.format(rr.locale,Or,rr.yearFormat)))}var Ut=cn,pt=3,ut=4;function Jt(Xe){var _t=Xe.prefixCls,lr=Xe.locale,rr=Xe.value,Or=Xe.viewDate,Mr=Xe.generateConfig,Wr=Xe.monthCellRender,nn=c.useContext(Ar),wn=nn.rangedValue,On=nn.hoverRangedValue,Rn="".concat(_t,"-cell"),Nn=hr({cellPrefixCls:Rn,value:rr,generateConfig:Mr,rangedValue:wn,hoverRangedValue:On,isSameCell:function(Yn,Zn){return sr(Mr,Yn,Zn)},isInView:function(){return!0},offsetCell:function(Yn,Zn){return Mr.addMonth(Yn,Zn)}}),yn=lr.shortMonths||(Mr.locale.getShortMonths?Mr.locale.getShortMonths(lr.locale):[]),Sn=Mr.setMonth(Or,0),_n=Wr?function(Hn){return Wr(Hn,lr)}:void 0;return c.createElement(vn,Object.assign({},Xe,{rowNum:ut,colNum:pt,baseDate:Sn,getCellNode:_n,getCellText:function(Yn){return lr.monthFormat?Mr.locale.format(lr.locale,Yn,lr.monthFormat):yn[Mr.getMonth(Yn)]},getCellClassName:Nn,getCellDate:Mr.addMonth,titleCell:function(Yn){return Mr.locale.format(lr.locale,Yn,"YYYY-MM")}}))}var Zt=Jt;function At(Xe){var _t=Xe.prefixCls,lr=Xe.operationRef,rr=Xe.onViewDateChange,Or=Xe.generateConfig,Mr=Xe.value,Wr=Xe.viewDate,nn=Xe.onPanelChange,wn=Xe.onSelect,On="".concat(_t,"-month-panel");lr.current={onKeyDown:function(yn){return Q(yn,{onLeftRight:function(_n){wn(Or.addMonth(Mr||Wr,_n),"key")},onCtrlLeftRight:function(_n){wn(Or.addYear(Mr||Wr,_n),"key")},onUpDown:function(_n){wn(Or.addMonth(Mr||Wr,_n*pt),"key")},onEnter:function(){nn("date",Mr||Wr)}})}};var Rn=function(yn){var Sn=Or.addYear(Wr,yn);rr(Sn),nn(null,Sn)};return c.createElement("div",{className:On},c.createElement(Ut,Object.assign({},Xe,{prefixCls:_t,onPrevYear:function(){Rn(-1)},onNextYear:function(){Rn(1)},onYearClick:function(){nn("year",Wr)}})),c.createElement(Zt,Object.assign({},Xe,{prefixCls:_t,onSelect:function(yn){wn(yn,"mouse"),nn("date",yn)}})))}var Pt=At;function vt(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.locale,Or=Xe.viewDate,Mr=Xe.onNextYear,Wr=Xe.onPrevYear,nn=Xe.onYearClick,wn=c.useContext(Y),On=wn.hideHeader;if(On)return null;var Rn="".concat(_t,"-header");return c.createElement($,Object.assign({},Xe,{prefixCls:Rn,onSuperPrev:Wr,onSuperNext:Mr}),c.createElement("button",{type:"button",onClick:nn,className:"".concat(_t,"-year-btn")},lr.locale.format(rr.locale,Or,rr.yearFormat)))}var Ft=vt,gr=4,or=1;function ur(Xe){var _t=Xe.prefixCls,lr=Xe.locale,rr=Xe.value,Or=Xe.viewDate,Mr=Xe.generateConfig,Wr=c.useContext(Ar),nn=Wr.rangedValue,wn=Wr.hoverRangedValue,On="".concat(_t,"-cell"),Rn=hr({cellPrefixCls:On,value:rr,generateConfig:Mr,rangedValue:nn,hoverRangedValue:wn,isSameCell:function(Sn,_n){return zt(Mr,Sn,_n)},isInView:function(){return!0},offsetCell:function(Sn,_n){return Mr.addMonth(Sn,_n*3)}}),Nn=Mr.setDate(Mr.setMonth(Or,0),1);return c.createElement(vn,Object.assign({},Xe,{rowNum:or,colNum:gr,baseDate:Nn,getCellText:function(Sn){return Mr.locale.format(lr.locale,Sn,lr.quarterFormat||"[Q]Q")},getCellClassName:Rn,getCellDate:function(Sn,_n){return Mr.addMonth(Sn,_n*3)},titleCell:function(Sn){return Mr.locale.format(lr.locale,Sn,"YYYY-[Q]Q")}}))}var Yr=ur;function Jr(Xe){var _t=Xe.prefixCls,lr=Xe.operationRef,rr=Xe.onViewDateChange,Or=Xe.generateConfig,Mr=Xe.value,Wr=Xe.viewDate,nn=Xe.onPanelChange,wn=Xe.onSelect,On="".concat(_t,"-quarter-panel");lr.current={onKeyDown:function(yn){return Q(yn,{onLeftRight:function(_n){wn(Or.addMonth(Mr||Wr,_n*3),"key")},onCtrlLeftRight:function(_n){wn(Or.addYear(Mr||Wr,_n),"key")},onUpDown:function(_n){wn(Or.addYear(Mr||Wr,_n),"key")}})}};var Rn=function(yn){var Sn=Or.addYear(Wr,yn);rr(Sn),nn(null,Sn)};return c.createElement("div",{className:On},c.createElement(Ft,Object.assign({},Xe,{prefixCls:_t,onPrevYear:function(){Rn(-1)},onNextYear:function(){Rn(1)},onYearClick:function(){nn("year",Wr)}})),c.createElement(Yr,Object.assign({},Xe,{prefixCls:_t,onSelect:function(yn){wn(yn,"mouse")}})))}var Tn=Jr;function Dn(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.viewDate,Or=Xe.onPrevDecade,Mr=Xe.onNextDecade,Wr=Xe.onDecadeClick,nn=c.useContext(Y),wn=nn.hideHeader;if(wn)return null;var On="".concat(_t,"-header"),Rn=lr.getYear(rr),Nn=Math.floor(Rn/Ce)*Ce,yn=Nn+Ce-1;return c.createElement($,Object.assign({},Xe,{prefixCls:On,onSuperPrev:Or,onSuperNext:Mr}),c.createElement("button",{type:"button",onClick:Wr,className:"".concat(_t,"-decade-btn")},Nn,"-",yn))}var zn=Dn,qn=3,Ai=4;function Mi(Xe){var _t=Xe.prefixCls,lr=Xe.value,rr=Xe.viewDate,Or=Xe.locale,Mr=Xe.generateConfig,Wr=c.useContext(Ar),nn=Wr.rangedValue,wn=Wr.hoverRangedValue,On="".concat(_t,"-cell"),Rn=Mr.getYear(rr),Nn=Math.floor(Rn/Ce)*Ce,yn=Nn+Ce-1,Sn=Mr.setYear(rr,Nn-Math.ceil((qn*Ai-Ce)/2)),_n=function(Zn){var yi=Mr.getYear(Zn);return Nn<=yi&&yi<=yn},Hn=hr({cellPrefixCls:On,value:lr,generateConfig:Mr,rangedValue:nn,hoverRangedValue:wn,isSameCell:function(Zn,yi){return er(Mr,Zn,yi)},isInView:_n,offsetCell:function(Zn,yi){return Mr.addYear(Zn,yi)}});return c.createElement(vn,Object.assign({},Xe,{rowNum:Ai,colNum:qn,baseDate:Sn,getCellText:Mr.getYear,getCellClassName:Hn,getCellDate:Mr.addYear,titleCell:function(Zn){return Mr.locale.format(Or.locale,Zn,"YYYY")}}))}var Ye=Mi,Ce=10;function ke(Xe){var _t=Xe.prefixCls,lr=Xe.operationRef,rr=Xe.onViewDateChange,Or=Xe.generateConfig,Mr=Xe.value,Wr=Xe.viewDate,nn=Xe.sourceMode,wn=Xe.onSelect,On=Xe.onPanelChange,Rn="".concat(_t,"-year-panel");lr.current={onKeyDown:function(Sn){return Q(Sn,{onLeftRight:function(Hn){wn(Or.addYear(Mr||Wr,Hn),"key")},onCtrlLeftRight:function(Hn){wn(Or.addYear(Mr||Wr,Hn*Ce),"key")},onUpDown:function(Hn){wn(Or.addYear(Mr||Wr,Hn*qn),"key")},onEnter:function(){On(nn==="date"?"date":"month",Mr||Wr)}})}};var Nn=function(Sn){var _n=Or.addYear(Wr,Sn*10);rr(_n),On(null,_n)};return c.createElement("div",{className:Rn},c.createElement(zn,Object.assign({},Xe,{prefixCls:_t,onPrevDecade:function(){Nn(-1)},onNextDecade:function(){Nn(1)},onDecadeClick:function(){On("decade",Wr)}})),c.createElement(Ye,Object.assign({},Xe,{prefixCls:_t,onSelect:function(Sn){On(nn==="date"?"date":"month",Sn),wn(Sn,"mouse")}})))}var Fe=ke;function Ve(Xe){var _t=Xe.prefixCls,lr=Xe.generateConfig,rr=Xe.viewDate,Or=Xe.onPrevDecades,Mr=Xe.onNextDecades,Wr=c.useContext(Y),nn=Wr.hideHeader;if(nn)return null;var wn="".concat(_t,"-header"),On=lr.getYear(rr),Rn=Math.floor(On/pr)*pr,Nn=Rn+pr-1;return c.createElement($,Object.assign({},Xe,{prefixCls:wn,onSuperPrev:Or,onSuperNext:Mr}),Rn,"-",Nn)}var We=Ve,Ze=3,yt=4;function lt(Xe){var _t=wr-1,lr=Xe.prefixCls,rr=Xe.viewDate,Or=Xe.generateConfig,Mr=Xe.disabledDate,Wr="".concat(lr,"-cell"),nn=Or.getYear(rr),wn=Math.floor(nn/wr)*wr,On=Math.floor(nn/pr)*pr,Rn=On+pr-1,Nn=Or.setYear(rr,On-Math.ceil((Ze*yt*wr-pr)/2)),yn=function(_n){var Hn,Yn=Mr&&Mr(_n),Zn=Or.getYear(_n),yi=Zn+_t;return Hn={},Object(R.a)(Hn,"".concat(Wr,"-disabled"),Yn),Object(R.a)(Hn,"".concat(Wr,"-in-view"),On<=Zn&&yi<=Rn),Object(R.a)(Hn,"".concat(Wr,"-selected"),Zn===wn),Hn};return c.createElement(vn,Object.assign({},Xe,{rowNum:yt,colNum:Ze,baseDate:Nn,getCellText:function(_n){var Hn=Or.getYear(_n);return"".concat(Hn,"-").concat(Hn+_t)},getCellClassName:yn,getCellDate:function(_n,Hn){return Or.addYear(_n,Hn*wr)}}))}var kt=lt,wr=10,pr=wr*10;function _r(Xe){var _t=Xe.prefixCls,lr=Xe.onViewDateChange,rr=Xe.generateConfig,Or=Xe.viewDate,Mr=Xe.operationRef,Wr=Xe.onSelect,nn=Xe.onPanelChange,wn="".concat(_t,"-decade-panel");Mr.current={onKeyDown:function(yn){return Q(yn,{onLeftRight:function(_n){Wr(rr.addYear(Or,_n*wr),"key")},onCtrlLeftRight:function(_n){Wr(rr.addYear(Or,_n*pr),"key")},onUpDown:function(_n){Wr(rr.addYear(Or,_n*wr*Ze),"key")},onEnter:function(){nn("year",Or)}})}};var On=function(yn){var Sn=rr.addYear(Or,yn*pr);lr(Sn),nn(null,Sn)},Rn=function(yn){Wr(yn,"mouse"),nn("year",yn)};return c.createElement("div",{className:wn},c.createElement(We,Object.assign({},Xe,{prefixCls:_t,onPrevDecades:function(){On(-1)},onNextDecades:function(){On(1)}})),c.createElement(kt,Object.assign({},Xe,{prefixCls:_t,onSelect:Rn})))}var Wt=_r;function un(Xe,_t,lr){return lr?c.createElement("div",{className:"".concat(Xe,"-footer-extra")},lr(_t)):null}function ir(Xe){var _t=Xe.prefixCls,lr=Xe.rangeList,rr=lr===void 0?[]:lr,Or=Xe.components,Mr=Or===void 0?{}:Or,Wr=Xe.needConfirmButton,nn=Xe.onNow,wn=Xe.onOk,On=Xe.okDisabled,Rn=Xe.showNow,Nn=Xe.locale,yn,Sn;if(rr.length){var _n=Mr.rangeItem||"span";yn=c.createElement(c.Fragment,null,rr.map(function(Yn){var Zn=Yn.label,yi=Yn.onClick,gi=Yn.onMouseEnter,Di=Yn.onMouseLeave;return c.createElement("li",{key:Zn,className:"".concat(_t,"-preset")},c.createElement(_n,{onClick:yi,onMouseEnter:gi,onMouseLeave:Di},Zn))}))}if(Wr){var Hn=Mr.button||"button";nn&&!yn&&Rn!==!1&&(yn=c.createElement("li",{className:"".concat(_t,"-now")},c.createElement("a",{className:"".concat(_t,"-now-btn"),onClick:nn},Nn.now))),Sn=Wr&&c.createElement("li",{className:"".concat(_t,"-ok")},c.createElement(Hn,{disabled:On,onClick:wn},Nn.ok))}return!yn&&!Sn?null:c.createElement("ul",{className:"".concat(_t,"-ranges")},yn,Sn)}function Gr(Xe){var _t,lr=Xe.prefixCls,rr=lr===void 0?"rc-picker":lr,Or=Xe.className,Mr=Xe.style,Wr=Xe.locale,nn=Xe.generateConfig,wn=Xe.value,On=Xe.defaultValue,Rn=Xe.pickerValue,Nn=Xe.defaultPickerValue,yn=Xe.disabledDate,Sn=Xe.mode,_n=Xe.picker,Hn=_n===void 0?"date":_n,Yn=Xe.tabIndex,Zn=Yn===void 0?0:Yn,yi=Xe.showNow,gi=Xe.showTime,Di=Xe.showToday,Ui=Xe.renderExtraFooter,Ei=Xe.hideHeader,_i=Xe.onSelect,Ni=Xe.onChange,jn=Xe.onPanelChange,Ii=Xe.onMouseDown,Hi=Xe.onPickerValueChange,fr=Xe.onOk,Dr=Xe.components,Qr=Xe.direction,Nr=Xe.hourStep,Yt=Nr===void 0?1:Nr,xr=Xe.minuteStep,tr=xr===void 0?1:xr,jr=Xe.secondStep,Ur=jr===void 0?1:jr,dn=Hn==="date"&&!!gi||Hn==="time",sn=24%Yt===0,bn=60%tr===0,Bn=60%Ur===0,Xn=c.useContext(Y),$n=Xn.operationRef,Ti=Xn.panelRef,Xi=Xn.onSelect,ua=Xn.hideRanges,da=Xn.defaultOpenValue,sa=c.useContext(Ar),ca=sa.inRange,zi=sa.panelPosition,Ri=sa.rangedValue,ta=sa.hoverRangedValue,$i=c.useRef({}),Ca=c.useRef(!0),Ma=Object(K.a)(null,{value:wn,defaultValue:On,postState:function(Bi){return!Bi&&da&&Hn==="time"?da:Bi}}),qi=Object(B.a)(Ma,2),Yi=qi[0],Pa=qi[1],ya=Object(K.a)(null,{value:Rn,defaultValue:Nn||Yi,postState:function(Bi){return Bi||nn.getNow()}}),Ci=Object(B.a)(ya,2),la=Ci[0],Ha=Ci[1],ka=function(Bi){Ha(Bi),Hi&&Hi(Bi)},Aa=function(Bi){var pa=xe[Hn];return pa?pa(Bi):Bi},Sa=Object(K.a)(function(){return Hn==="time"?"time":Aa("date")},{value:Sn}),Ya=Object(B.a)(Sa,2),Ta=Ya[0],Ga=Ya[1];c.useEffect(function(){Ga(Hn)},[Hn]);var uo=c.useState(function(){return Ta}),aa=Object(B.a)(uo,2),ho=aa[0],Ua=aa[1],Na=function(Bi,pa){var Do=Aa(Bi||Ta);Ua(Ta),Ga(Do),jn&&(Ta!==Do||Lt(nn,la,la))&&jn(pa,Do)},$a=function(Bi,pa){var Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Ta===Hn||Do)&&(Pa(Bi),_i&&_i(Bi),Xi&&Xi(Bi,pa),Ni&&!Lt(nn,Bi,Yi)&&Ni(Bi))},Ra=function(Bi){return $i.current&&$i.current.onKeyDown?([z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN,z.a.PAGE_UP,z.a.PAGE_DOWN,z.a.ENTER].includes(Bi.which)&&Bi.preventDefault(),$i.current.onKeyDown(Bi)):(Object(T.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Ka=function(Bi){$i.current&&$i.current.onBlur&&$i.current.onBlur(Bi)};$n&&zi!=="right"&&($n.current={onKeyDown:Ra,onClose:function(){$i.current&&$i.current.onClose&&$i.current.onClose()}}),c.useEffect(function(){wn&&!Ca.current&&Ha(wn)},[wn]),c.useEffect(function(){Ca.current=!1},[]);var bo,no=Object(j.a)(Object(j.a)({},Xe),{},{operationRef:$i,prefixCls:rr,viewDate:la,value:Yi,onViewDateChange:ka,sourceMode:ho,onPanelChange:Na,disabledDate:Ta!=="decade"?yn:void 0});delete no.onChange,delete no.onSelect;switch(Ta){case"decade":bo=c.createElement(Wt,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}));break;case"year":bo=c.createElement(Fe,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}));break;case"month":bo=c.createElement(Pt,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}));break;case"quarter":bo=c.createElement(Tn,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}));break;case"week":bo=c.createElement(Br,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}));break;case"time":delete no.showTime,bo=c.createElement(bt,Object.assign({},no,Object(U.a)(gi)==="object"?gi:null,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}));break;default:gi?bo=c.createElement(Xt,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}})):bo=c.createElement(je,Object.assign({},no,{onSelect:function(Bi,pa){ka(Bi),$a(Bi,pa)}}))}var Co,fo,po=function(){var Bi=nn.getNow(),pa=xt(nn.getHour(Bi),nn.getMinute(Bi),nn.getSecond(Bi),sn?Yt:1,bn?tr:1,Bn?Ur:1),Do=wt(nn,Bi,pa[0],pa[1],pa[2]);$a(Do,"submit")};ua||(Co=un(rr,Ta,Ui),fo=ir({prefixCls:rr,components:Dr,needConfirmButton:dn,okDisabled:!Yi||yn&&yn(Yi),locale:Wr,showNow:yi,onNow:dn&&po,onOk:function(){Yi&&($a(Yi,"submit",!0),fr&&fr(Yi))}}));var Za;if(Di&&Ta==="date"&&Hn==="date"&&!gi){var qa=nn.getNow(),Oa="".concat(rr,"-today-btn"),oo=yn&&yn(qa);Za=c.createElement("a",{className:x()(Oa,oo&&"".concat(Oa,"-disabled")),"aria-disabled":oo,onClick:function(){oo||$a(qa,"mouse",!0)}},Wr.today)}return c.createElement(Y.Provider,{value:Object(j.a)(Object(j.a)({},Xn),{},{hideHeader:"hideHeader"in Xe?Ei:Xn.hideHeader,hidePrevBtn:ca&&zi==="right",hideNextBtn:ca&&zi==="left"})},c.createElement("div",{tabIndex:Zn,className:x()("".concat(rr,"-panel"),Or,(_t={},Object(R.a)(_t,"".concat(rr,"-panel-has-range"),Ri&&Ri[0]&&Ri[1]),Object(R.a)(_t,"".concat(rr,"-panel-has-range-hover"),ta&&ta[0]&&ta[1]),Object(R.a)(_t,"".concat(rr,"-panel-rtl"),Qr==="rtl"),_t)),style:Mr,onKeyDown:Ra,onBlur:Ka,onMouseDown:Ii,ref:Ti},bo,Co||fo||Za?c.createElement("div",{className:"".concat(rr,"-footer")},Co,fo,Za):null))}var kr=Gr,yr=d("uciX"),En={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 kn(Xe){var _t,lr=Xe.prefixCls,rr=Xe.popupElement,Or=Xe.popupStyle,Mr=Xe.visible,Wr=Xe.dropdownClassName,nn=Xe.dropdownAlign,wn=Xe.transitionName,On=Xe.getPopupContainer,Rn=Xe.children,Nn=Xe.range,yn=Xe.popupPlacement,Sn=Xe.direction,_n="".concat(lr,"-dropdown"),Hn=function(){return yn!==void 0?yn:Sn==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(yr.a,{showAction:[],hideAction:[],popupPlacement:Hn(),builtinPlacements:En,prefixCls:_n,popupTransitionName:wn,popup:rr,popupAlign:nn,popupVisible:Mr,popupClassName:x()(Wr,(_t={},Object(R.a)(_t,"".concat(_n,"-range"),Nn),Object(R.a)(_t,"".concat(_n,"-rtl"),Sn==="rtl"),_t)),popupStyle:Or,getPopupContainer:On},Rn)}var ii=kn;function oi(Xe){var _t=Xe.open,lr=Xe.value,rr=Xe.isClickOutside,Or=Xe.triggerOpen,Mr=Xe.forwardKeyDown,Wr=Xe.blurToCancel,nn=Xe.onSubmit,wn=Xe.onCancel,On=Xe.onFocus,Rn=Xe.onBlur,Nn=Object(c.useState)(!1),yn=Object(B.a)(Nn,2),Sn=yn[0],_n=yn[1],Hn=Object(c.useState)(!1),Yn=Object(B.a)(Hn,2),Zn=Yn[0],yi=Yn[1],gi=Object(c.useRef)(!1),Di=Object(c.useRef)(!1),Ui={onMouseDown:function(){_n(!0),Or(!0)},onKeyDown:function(_i){switch(_i.which){case z.a.ENTER:{_t?nn()!==!1&&_n(!0):Or(!0),_i.preventDefault();return}case z.a.TAB:{Sn&&_t&&!_i.shiftKey?(_n(!1),_i.preventDefault()):!Sn&&_t&&(!Mr(_i)&&_i.shiftKey&&(_n(!0),_i.preventDefault()));return}case z.a.ESC:{_n(!0),wn();return}}!_t&&![z.a.SHIFT].includes(_i.which)?Or(!0):Sn||Mr(_i)},onFocus:function(_i){_n(!0),yi(!0),On&&On(_i)},onBlur:function(_i){if(gi.current||!rr(document.activeElement)){gi.current=!1;return}Wr?setTimeout(function(){rr(document.activeElement)&&wn()},0):_t&&(Or(!1),Di.current&&nn()),yi(!1),Rn&&Rn(_i)}};return Object(c.useEffect)(function(){Di.current=!1},[_t]),Object(c.useEffect)(function(){Di.current=!0},[lr]),Object(c.useEffect)(function(){return G(function(Ei){var _i=Ei.target;_t&&(rr(_i)?Zn||Or(!1):(gi.current=!0,requestAnimationFrame(function(){gi.current=!1})))})}),[Ui,{focused:Zn,typing:Sn}]}function ei(Xe){var _t=Xe.valueTexts,lr=Xe.onTextChange,rr=c.useState(""),Or=Object(B.a)(rr,2),Mr=Or[0],Wr=Or[1],nn=c.useRef([]);nn.current=_t;function wn(Rn){Wr(Rn),lr(Rn)}function On(){Wr(nn.current[0])}return c.useEffect(function(){_t.every(function(Rn){return Rn!==Mr})&&On()},[_t.join("||")]),[Mr,wn,On]}var ci=d("Gytx"),Pn=d.n(ci);function xi(Xe,_t){var lr=_t.formatList,rr=_t.generateConfig,Or=_t.locale;return Object(pe.a)(function(){if(!Xe)return[[""],""];for(var Mr="",Wr=[],nn=0;nn<lr.length;nn+=1){var wn=lr[nn],On=rr.locale.format(Or.locale,Xe,wn);Wr.push(On),nn===0&&(Mr=On)}return[Wr,Mr]},[Xe,lr],function(Mr,Wr){return Mr[0]!==Wr[0]||!Pn()(Mr[1],Wr[1])})}function gn(Xe,_t){var lr=_t.formatList,rr=_t.generateConfig,Or=_t.locale,Mr=Object(c.useState)(null),Wr=Object(B.a)(Mr,2),nn=Wr[0],wn=Wr[1],On=Object(c.useRef)(null);function Rn(Yn){var Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(On.current),Zn){wn(Yn);return}On.current=requestAnimationFrame(function(){wn(Yn)})}var Nn=xi(nn,{formatList:lr,generateConfig:rr,locale:Or}),yn=Object(B.a)(Nn,2),Sn=yn[1];function _n(Yn){Rn(Yn)}function Hn(){var Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Rn(null,Yn)}return Object(c.useEffect)(function(){Hn(!0)},[Xe]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(On.current)}},[]),[Sn,_n,Hn]}function zr(Xe){var _t,lr=Xe.prefixCls,rr=lr===void 0?"rc-picker":lr,Or=Xe.id,Mr=Xe.tabIndex,Wr=Xe.style,nn=Xe.className,wn=Xe.dropdownClassName,On=Xe.dropdownAlign,Rn=Xe.popupStyle,Nn=Xe.transitionName,yn=Xe.generateConfig,Sn=Xe.locale,_n=Xe.inputReadOnly,Hn=Xe.allowClear,Yn=Xe.autoFocus,Zn=Xe.showTime,yi=Xe.picker,gi=yi===void 0?"date":yi,Di=Xe.format,Ui=Xe.use12Hours,Ei=Xe.value,_i=Xe.defaultValue,Ni=Xe.open,jn=Xe.defaultOpen,Ii=Xe.defaultOpenValue,Hi=Xe.suffixIcon,fr=Xe.clearIcon,Dr=Xe.disabled,Qr=Xe.disabledDate,Nr=Xe.placeholder,Yt=Xe.getPopupContainer,xr=Xe.pickerRef,tr=Xe.panelRender,jr=Xe.onChange,Ur=Xe.onOpenChange,dn=Xe.onFocus,sn=Xe.onBlur,bn=Xe.onMouseDown,Bn=Xe.onMouseUp,Xn=Xe.onMouseEnter,$n=Xe.onMouseLeave,Ti=Xe.onContextMenu,Xi=Xe.onClick,ua=Xe.direction,da=Xe.autoComplete,sa=da===void 0?"off":da,ca=c.useRef(null),zi=gi==="date"&&!!Zn||gi==="time",Ri=et(ce(Di,gi,Zn,Ui)),ta=c.useRef(null),$i=c.useRef(null),Ca=Object(K.a)(null,{value:Ei,defaultValue:_i}),Ma=Object(B.a)(Ca,2),qi=Ma[0],Yi=Ma[1],Pa=c.useState(qi),ya=Object(B.a)(Pa,2),Ci=ya[0],la=ya[1],Ha=c.useRef(null),ka=Object(K.a)(!1,{value:Ni,defaultValue:jn,postState:function(Xa){return Dr?!1:Xa},onChange:function(Xa){Ur&&Ur(Xa),!Xa&&Ha.current&&Ha.current.onClose&&Ha.current.onClose()}}),Aa=Object(B.a)(ka,2),Sa=Aa[0],Ya=Aa[1],Ta=xi(Ci,{formatList:Ri,generateConfig:yn,locale:Sn}),Ga=Object(B.a)(Ta,2),uo=Ga[0],aa=Ga[1],ho=ei({valueTexts:uo,onTextChange:function(Xa){var Qo=yn.locale.parse(Sn.locale,Xa,Ri);Qo&&(!Qr||!Qr(Qo))&&la(Qo)}}),Ua=Object(B.a)(ho,3),Na=Ua[0],$a=Ua[1],Ra=Ua[2],Ka=function(Xa){la(Xa),Yi(Xa),jr&&!Lt(yn,qi,Xa)&&jr(Xa,Xa?yn.locale.format(Sn.locale,Xa,Ri[0]):"")},bo=function(Xa){if(Dr&&Xa)return;Ya(Xa)},no=function(Xa){return Sa&&Ha.current&&Ha.current.onKeyDown?Ha.current.onKeyDown(Xa):(Object(T.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Co=function(){Bn&&Bn.apply(void 0,arguments),ca.current&&(ca.current.focus(),bo(!0))},fo=oi({blurToCancel:zi,open:Sa,value:Na,triggerOpen:bo,forwardKeyDown:no,isClickOutside:function(Xa){return!oe([ta.current,$i.current],Xa)},onSubmit:function(){return Qr&&Qr(Ci)?!1:(Ka(Ci),bo(!1),Ra(),!0)},onCancel:function(){bo(!1),la(qi),Ra()},onFocus:dn,onBlur:sn}),po=Object(B.a)(fo,2),Za=po[0],qa=po[1],Oa=qa.focused,oo=qa.typing;c.useEffect(function(){Sa||(la(qi),!uo.length||uo[0]===""?$a(""):aa!==Na&&Ra())},[Sa,uo]),c.useEffect(function(){Sa||Ra()},[gi]),c.useEffect(function(){la(qi)},[qi]),xr&&(xr.current={focus:function(){ca.current&&ca.current.focus()},blur:function(){ca.current&&ca.current.blur()}});var go=Object(j.a)(Object(j.a)({},Xe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Bi=c.createElement(kr,Object.assign({},go,{generateConfig:yn,className:x()(Object(R.a)({},"".concat(rr,"-panel-focused"),!oo)),value:Ci,locale:Sn,tabIndex:-1,onChange:la,direction:ua}));tr&&(Bi=tr(Bi));var pa=c.createElement("div",{className:"".concat(rr,"-panel-container"),onMouseDown:function(Xa){Xa.preventDefault()}},Bi),Do;Hi&&(Do=c.createElement("span",{className:"".concat(rr,"-suffix")},Hi));var jo;Hn&&qi&&!Dr&&(jo=c.createElement("span",{onMouseDown:function(Xa){Xa.preventDefault(),Xa.stopPropagation()},onMouseUp:function(Xa){Xa.preventDefault(),Xa.stopPropagation(),Ka(null),bo(!1)},className:"".concat(rr,"-clear")},fr||c.createElement("span",{className:"".concat(rr,"-clear-btn")})));var Vo=function(Xa,Qo){(Qo==="submit"||Qo!=="key"&&!zi)&&(Ka(Xa),bo(!1))},Yo=ua==="rtl"?"bottomRight":"bottomLeft",wo=gn(Na,{formatList:Ri,generateConfig:yn,locale:Sn}),Da=Object(B.a)(wo,3),Fo=Da[0],cs=Da[1],mo=Da[2];return c.createElement(Y.Provider,{value:{operationRef:Ha,hideHeader:gi==="time",panelRef:ta,onSelect:Vo,open:Sa,defaultOpenValue:Ii,onDateMouseEnter:cs,onDateMouseLeave:mo}},c.createElement(ii,{visible:Sa,popupElement:pa,popupStyle:Rn,prefixCls:rr,dropdownClassName:wn,dropdownAlign:On,getPopupContainer:Yt,transitionName:Nn,popupPlacement:Yo,direction:ua},c.createElement("div",{className:x()(rr,nn,(_t={},Object(R.a)(_t,"".concat(rr,"-disabled"),Dr),Object(R.a)(_t,"".concat(rr,"-focused"),Oa),Object(R.a)(_t,"".concat(rr,"-rtl"),ua==="rtl"),_t)),style:Wr,onMouseDown:bn,onMouseUp:Co,onMouseEnter:Xn,onMouseLeave:$n,onContextMenu:Ti,onClick:Xi},c.createElement("div",{className:x()("".concat(rr,"-input"),Object(R.a)({},"".concat(rr,"-input-placeholder"),!!Fo)),ref:$i},c.createElement("input",Object.assign({id:Or,tabIndex:Mr,disabled:Dr,readOnly:_n||!oo,value:Fo||Na,onChange:function(Xa){$a(Xa.target.value)},autoFocus:Yn,placeholder:Nr,ref:ca,title:Na},Za,{size:Ke(gi,Ri[0])},Oe(Xe),{autoComplete:sa})),Do,jo))))}var Cn=function(Xe){Object(M.a)(lr,Xe);var _t=Object(F.a)(lr);function lr(){var rr;return Object(D.a)(this,lr),rr=_t.apply(this,arguments),rr.pickerRef=c.createRef(),rr.focus=function(){rr.pickerRef.current&&rr.pickerRef.current.focus()},rr.blur=function(){rr.pickerRef.current&&rr.pickerRef.current.blur()},rr}return Object(N.a)(lr,[{key:"render",value:function(){return c.createElement(zr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),lr}(c.Component),on=Cn;function li(Xe,_t,lr){var rr=Xe.picker,Or=Xe.locale,Mr=Xe.selectedValue,Wr=Xe.disabledDate,nn=Xe.disabled,wn=Xe.generateConfig,On=gt(Mr,0),Rn=gt(Mr,1);function Nn(Yn){var Zn=wn.getYear(Yn),yi=wn.locale.getWeek(Or.locale,Yn);return Zn*100+yi}function yn(Yn){var Zn=wn.getYear(Yn),yi=wn.getMonth(Yn);return Zn*100+yi}function Sn(Yn){var Zn=wn.getYear(Yn),yi=ct(wn,Yn);return Zn*10+yi}var _n=c.useCallback(function(Yn){if(Wr&&Wr(Yn))return!0;if(nn[1]&&Rn)return!Kr(wn,Yn,Rn)&&wn.isAfter(Yn,Rn);if(_t&&Rn)switch(rr){case"quarter":return Sn(Yn)>Sn(Rn);case"month":return yn(Yn)>yn(Rn);case"week":return Nn(Yn)>Nn(Rn);default:return!Kr(wn,Yn,Rn)&&wn.isAfter(Yn,Rn)}return!1},[Wr,nn[1],Rn,_t]),Hn=c.useCallback(function(Yn){if(Wr&&Wr(Yn))return!0;if(nn[0]&&On)return!Kr(wn,Yn,Rn)&&wn.isAfter(On,Yn);if(lr&&On)switch(rr){case"quarter":return Sn(Yn)<Sn(On);case"month":return yn(Yn)<yn(On);case"week":return Nn(Yn)<Nn(On);default:return!Kr(wn,Yn,On)&&wn.isAfter(On,Yn)}return!1},[Wr,nn[0],On,lr]);return[_n,Hn]}function ri(Xe,_t,lr,rr){var Or=qt(Xe,lr,rr,1);function Mr(Wr){return Wr(Xe,_t)?"same":Wr(Or,_t)?"closing":"far"}switch(lr){case"year":return Mr(function(Wr,nn){return Rt(rr,Wr,nn)});case"quarter":case"month":return Mr(function(Wr,nn){return er(rr,Wr,nn)});default:return Mr(function(Wr,nn){return sr(rr,Wr,nn)})}}function wi(Xe,_t,lr,rr){var Or=gt(Xe,0),Mr=gt(Xe,1);if(_t===0)return Or;if(Or&&Mr){var Wr=ri(Or,Mr,lr,rr);switch(Wr){case"same":return Or;case"closing":return Or;default:return qt(Mr,lr,rr,-1)}}return Or}function Gn(Xe){var _t=Xe.values,lr=Xe.picker,rr=Xe.defaultDates,Or=Xe.generateConfig,Mr=c.useState(function(){return[gt(rr,0),gt(rr,1)]}),Wr=Object(B.a)(Mr,2),nn=Wr[0],wn=Wr[1],On=c.useState(null),Rn=Object(B.a)(On,2),Nn=Rn[0],yn=Rn[1],Sn=gt(_t,0),_n=gt(_t,1);function Hn(Zn){return nn[Zn]?nn[Zn]:gt(Nn,Zn)||wi(_t,Zn,lr,Or)||Sn||_n||Or.getNow()}function Yn(Zn,yi){if(Zn){var gi=Ge(Nn,Zn,yi);wn(Ge(nn,null,yi)||[null,null]);var Di=(yi+1)%2;gt(_t,Di)||(gi=Ge(gi,Zn,Di)),yn(gi)}else(Sn||_n)&&yn(null)}return[Hn,Yn]}function ki(Xe,_t){return Xe&&Xe[0]&&Xe[1]&&_t.isAfter(Xe[0],Xe[1])?[Xe[1],Xe[0]]:Xe}function Jn(Xe,_t,lr,rr){return Xe||rr&&rr[_t]?!0:!!lr[(_t+1)%2]}function Pi(Xe){var _t,lr,rr,Or=Xe.prefixCls,Mr=Or===void 0?"rc-picker":Or,Wr=Xe.id,nn=Xe.style,wn=Xe.className,On=Xe.popupStyle,Rn=Xe.dropdownClassName,Nn=Xe.transitionName,yn=Xe.dropdownAlign,Sn=Xe.getPopupContainer,_n=Xe.generateConfig,Hn=Xe.locale,Yn=Xe.placeholder,Zn=Xe.autoFocus,yi=Xe.disabled,gi=Xe.format,Di=Xe.picker,Ui=Di===void 0?"date":Di,Ei=Xe.showTime,_i=Xe.use12Hours,Ni=Xe.separator,jn=Ni===void 0?"~":Ni,Ii=Xe.value,Hi=Xe.defaultValue,fr=Xe.defaultPickerValue,Dr=Xe.open,Qr=Xe.defaultOpen,Nr=Xe.disabledDate,Yt=Xe.disabledTime,xr=Xe.dateRender,tr=Xe.panelRender,jr=Xe.ranges,Ur=Xe.allowEmpty,dn=Xe.allowClear,sn=Xe.suffixIcon,bn=Xe.clearIcon,Bn=Xe.pickerRef,Xn=Xe.inputReadOnly,$n=Xe.mode,Ti=Xe.renderExtraFooter,Xi=Xe.onChange,ua=Xe.onOpenChange,da=Xe.onPanelChange,sa=Xe.onCalendarChange,ca=Xe.onFocus,zi=Xe.onBlur,Ri=Xe.onOk,ta=Xe.components,$i=Xe.order,Ca=Xe.direction,Ma=Xe.activePickerIndex,qi=Xe.autoComplete,Yi=qi===void 0?"off":qi,Pa=Ui==="date"&&!!Ei||Ui==="time",ya=Object(c.useRef)({}),Ci=Object(c.useRef)(null),la=Object(c.useRef)(null),Ha=Object(c.useRef)(null),ka=Object(c.useRef)(null),Aa=Object(c.useRef)(null),Sa=Object(c.useRef)(null),Ya=Object(c.useRef)(null),Ta=et(ce(gi,Ui,Ei,_i)),Ga=Object(K.a)(0,{value:Ma}),uo=Object(B.a)(Ga,2),aa=uo[0],ho=uo[1],Ua=Object(c.useRef)(null),Na=c.useMemo(function(){return Array.isArray(yi)?yi:[yi||!1,yi||!1]},[yi]),$a=Object(K.a)(null,{value:Ii,defaultValue:Hi,postState:function(ma){return Ui==="time"&&!$i?ma:ki(ma,_n)}}),Ra=Object(B.a)($a,2),Ka=Ra[0],bo=Ra[1],no=Gn({values:Ka,picker:Ui,defaultDates:fr,generateConfig:_n}),Co=Object(B.a)(no,2),fo=Co[0],po=Co[1],Za=Object(K.a)(Ka,{postState:function(ma){var Ba=ma;if(Na[0]&&Na[1])return Ba;for(var ao=0;ao<2;ao+=1)Na[ao]&&!gt(Ba,ao)&&!gt(Ur,ao)&&(Ba=Ge(Ba,_n.getNow(),ao));return Ba}}),qa=Object(B.a)(Za,2),Oa=qa[0],oo=qa[1],go=Object(K.a)([Ui,Ui],{value:$n}),Bi=Object(B.a)(go,2),pa=Bi[0],Do=Bi[1];Object(c.useEffect)(function(){Do([Ui,Ui])},[Ui]);var jo=function(ma,Ba){Do(ma),da&&da(Ba,ma)},Vo=li({picker:Ui,selectedValue:Oa,locale:Hn,disabled:Na,disabledDate:Nr,generateConfig:_n},ya.current[1],ya.current[0]),Yo=Object(B.a)(Vo,2),wo=Yo[0],Da=Yo[1],Fo=Object(K.a)(!1,{value:Dr,defaultValue:Qr,postState:function(ma){return Na[aa]?!1:ma},onChange:function(ma){ua&&ua(ma),!ma&&Ua.current&&Ua.current.onClose&&Ua.current.onClose()}}),cs=Object(B.a)(Fo,2),mo=cs[0],_o=cs[1],Xa=mo&&aa===0,Qo=mo&&aa===1,il=Object(c.useState)(0),Os=Object(B.a)(il,2),as=Os[0],xs=Os[1];Object(c.useEffect)(function(){!mo&&Ci.current&&xs(Ci.current.offsetWidth)},[mo]);var Ls=c.useRef();function ys(Ja,ma){if(Ja)clearTimeout(Ls.current),ya.current[ma]=!0,ho(ma),_o(Ja),mo||po(null,ma);else if(aa===ma){_o(Ja);var Ba=ya.current;Ls.current=setTimeout(function(){Ba===ya.current&&(ya.current={})})}}function Ho(Ja){ys(!0,Ja),setTimeout(function(){var ma=[Sa,Ya][Ja];ma.current&&ma.current.focus()},0)}function vo(Ja,ma){var Ba=Ja,ao=gt(Ba,0),Zo=gt(Ba,1);ao&&Zo&&_n.isAfter(ao,Zo)&&(Ui==="week"&&!nr(_n,Hn.locale,ao,Zo)||Ui==="quarter"&&!zt(_n,ao,Zo)||Ui!=="week"&&Ui!=="quarter"&&Ui!=="time"&&!Kr(_n,ao,Zo)?(ma===0?(Ba=[ao,null],Zo=null):(ao=null,Ba=[null,Zo]),ya.current=Object(R.a)({},ma,!0)):(Ui!=="time"||$i!==!1)&&(Ba=ki(Ba,_n))),oo(Ba);var Vs=Ba&&Ba[0]?_n.locale.format(Hn.locale,Ba[0],Ta[0]):"",vs=Ba&&Ba[1]?_n.locale.format(Hn.locale,Ba[1],Ta[0]):"";if(sa){var Ts={range:ma===0?"start":"end"};sa(Ba,[Vs,vs],Ts)}var No=Jn(ao,0,Na,Ur),To=Jn(Zo,1,Na,Ur),ts=Ba===null||No&&To;ts&&(bo(Ba),Xi&&(!Lt(_n,gt(Ka,0),ao)||!Lt(_n,gt(Ka,1),Zo))&&Xi(Ba,[Vs,vs]));var Eo=null;ma===0&&!Na[1]?Eo=1:ma===1&&!Na[0]&&(Eo=0),Eo!==null&&Eo!==aa&&(!ya.current[Eo]||!gt(Ba,Eo))&>(Ba,ma)?Ho(Eo):ys(!1,ma)}var es=function(ma){return mo&&Ua.current&&Ua.current.onKeyDown?Ua.current.onKeyDown(ma):(Object(T.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ko={formatList:Ta,generateConfig:_n,locale:Hn},Ro=xi(gt(Oa,0),Ko),Vr=Object(B.a)(Ro,2),bi=Vr[0],Qs=Vr[1],Ns=xi(gt(Oa,1),Ko),js=Object(B.a)(Ns,2),so=js[0],Ao=js[1],Jo=function(ma,Ba){var ao=_n.locale.parse(Hn.locale,ma,Ta),Zo=Ba===0?wo:Da;ao&&!Zo(ao)&&(oo(Ge(Oa,ao,Ba)),po(ao,Ba))},Uo=ei({valueTexts:bi,onTextChange:function(ma){return Jo(ma,0)}}),bs=Object(B.a)(Uo,3),ms=bs[0],gs=bs[1],ul=bs[2],Ms=ei({valueTexts:so,onTextChange:function(ma){return Jo(ma,1)}}),Js=Object(B.a)(Ms,3),Hs=Js[0],Go=Js[1],Ps=Js[2],St=Object(c.useState)(null),Mt=Object(B.a)(St,2),tn=Mt[0],In=Mt[1],mt=Object(c.useState)(null),ne=Object(B.a)(mt,2),Ae=ne[0],we=ne[1],Be=gn(ms,{formatList:Ta,generateConfig:_n,locale:Hn}),dt=Object(B.a)(Be,3),Ot=dt[0],br=dt[1],Lr=dt[2],$r=gn(Hs,{formatList:Ta,generateConfig:_n,locale:Hn}),xn=Object(B.a)($r,3),Wn=xn[0],si=xn[1],Si=xn[2],Vi=function(ma){we(Ge(Oa,ma,aa)),aa===0?br(ma):si(ma)},oa=function(){we(Ge(Oa,null,aa)),aa===0?Lr():Si()},xa=function(ma,Ba){return{blurToCancel:Pa,forwardKeyDown:es,onBlur:zi,isClickOutside:function(Zo){return!oe([la.current,Ha.current,ka.current],Zo)},onFocus:function(Zo){ho(ma),ca&&ca(Zo)},triggerOpen:function(Zo){ys(Zo,ma)},onSubmit:function(){vo(Oa,ma),Ba()},onCancel:function(){ys(!1,ma),oo(Ka),Ba()}}},eo=oi(Object(j.a)(Object(j.a)({},xa(0,ul)),{},{open:Xa,value:ms})),to=Object(B.a)(eo,2),io=to[0],Oo=to[1],yo=Oo.focused,Mo=Oo.typing,za=oi(Object(j.a)(Object(j.a)({},xa(1,Ps)),{},{open:Qo,value:Hs})),So=Object(B.a)(za,2),os=So[0],ns=So[1],Io=ns.focused,Xo=ns.typing,Ds=function(ma){!mo&&!Sa.current.contains(ma.target)&&!Ya.current.contains(ma.target)&&(Na[0]?Na[1]||Ho(1):Ho(0))},Es=function(ma){mo&&(yo||Io)&&!Sa.current.contains(ma.target)&&!Ya.current.contains(ma.target)&&ma.preventDefault()},Wo=Ka&&Ka[0]?_n.locale.format(Hn.locale,Ka[0],"YYYYMMDDHHmmss"):"",ws=Ka&&Ka[1]?_n.locale.format(Hn.locale,Ka[1],"YYYYMMDDHHmmss"):"";Object(c.useEffect)(function(){mo||(oo(Ka),!bi.length||bi[0]===""?gs(""):Qs!==ms&&ul(),!so.length||so[0]===""?Go(""):Ao!==Hs&&Ps())},[mo,bi,so]),Object(c.useEffect)(function(){oo(Ka)},[Wo,ws]),Bn&&(Bn.current={focus:function(){Sa.current&&Sa.current.focus()},blur:function(){Sa.current&&Sa.current.blur(),Ya.current&&Ya.current.blur()}});var ds=Object.keys(jr||{}),yl=ds.map(function(Ja){var ma=jr[Ja],Ba=typeof ma=="function"?ma():ma;return{label:Ja,onClick:function(){vo(Ba,null),ys(!1,aa)},onMouseEnter:function(){In(Ba)},onMouseLeave:function(){In(null)}}});function bl(){var Ja=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ba=null;mo&&Ae&&Ae[0]&&Ae[1]&&_n.isAfter(Ae[1],Ae[0])&&(Ba=Ae);var ao=Ei;if(Ei&&Object(U.a)(Ei)==="object"&&Ei.defaultValue){var Zo=Ei.defaultValue;ao=Object(j.a)(Object(j.a)({},Ei),{},{defaultValue:gt(Zo,aa)||void 0})}var Vs=null;return xr&&(Vs=function(Ts,No){return xr(Ts,No,{range:aa?"end":"start"})}),c.createElement(Ar.Provider,{value:{inRange:!0,panelPosition:Ja,rangedValue:tn||Oa,hoverRangedValue:Ba}},c.createElement(kr,Object.assign({},Xe,ma,{dateRender:Vs,showTime:ao,mode:pa[aa],generateConfig:_n,style:void 0,direction:Ca,disabledDate:aa===0?wo:Da,disabledTime:function(Ts){return Yt?Yt(Ts,aa===0?"start":"end"):!1},className:x()(Object(R.a)({},"".concat(Mr,"-panel-focused"),aa===0?!Mo:!Xo)),value:gt(Oa,aa),locale:Hn,tabIndex:-1,onPanelChange:function(Ts,No){jo(Ge(pa,No,aa),Ge(Oa,Ts,aa));var To=Ts;Ja==="right"&&pa[aa]===No&&(To=qt(To,No,_n,-1)),po(To,aa)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Cs=0,Lo=0;aa&&Ha.current&&Aa.current&&la.current&&(Cs=Ha.current.offsetWidth+Aa.current.offsetWidth,la.current.offsetWidth&&Cs>la.current.offsetWidth&&(Lo=Cs));var ra=Ca==="rtl"?{right:Cs}:{left:Cs};function tl(){var Ja,ma=un(Mr,pa[aa],Ti),Ba=ir({prefixCls:Mr,components:ta,needConfirmButton:Pa,okDisabled:!gt(Oa,aa)||Nr&&Nr(Oa[aa]),locale:Hn,rangeList:yl,onOk:function(){gt(Oa,aa)&&(vo(Oa,aa),Ri&&Ri(Oa))}});if(Ui!=="time"&&!Ei){var ao=fo(aa),Zo=qt(ao,Ui,_n),Vs=pa[aa],vs=Vs===Ui,Ts=bl(vs?"left":!1,{pickerValue:ao,onPickerValueChange:function(Eo){po(Eo,aa)}}),No=bl("right",{pickerValue:Zo,onPickerValueChange:function(Eo){po(qt(Eo,Ui,_n,-1),aa)}});Ca==="rtl"?Ja=c.createElement(c.Fragment,null,No,vs&&Ts):Ja=c.createElement(c.Fragment,null,Ts,vs&&No)}else Ja=bl();var To=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Mr,"-panels")},Ja),(ma||Ba)&&c.createElement("div",{className:"".concat(Mr,"-footer")},ma,Ba));return tr&&(To=tr(To)),c.createElement("div",{className:"".concat(Mr,"-panel-container"),style:{marginLeft:Lo},ref:la,onMouseDown:function(Eo){Eo.preventDefault()}},To)}var Ks=c.createElement("div",{className:x()("".concat(Mr,"-range-wrapper"),"".concat(Mr,"-").concat(Ui,"-range-wrapper")),style:{minWidth:as}},c.createElement("div",{className:"".concat(Mr,"-range-arrow"),style:ra}),tl()),Ws;sn&&(Ws=c.createElement("span",{className:"".concat(Mr,"-suffix")},sn));var hs;dn&&(gt(Ka,0)&&!Na[0]||gt(Ka,1)&&!Na[1])&&(hs=c.createElement("span",{onMouseDown:function(ma){ma.preventDefault(),ma.stopPropagation()},onMouseUp:function(ma){ma.preventDefault(),ma.stopPropagation();var Ba=Ka;Na[0]||(Ba=Ge(Ba,null,0)),Na[1]||(Ba=Ge(Ba,null,1)),vo(Ba,null),ys(!1,aa)},className:"".concat(Mr,"-clear")},bn||c.createElement("span",{className:"".concat(Mr,"-clear-btn")})));var ks={size:Ke(Ui,Ta[0])},al=0,Bs=0;Ha.current&&ka.current&&Aa.current&&(aa===0?Bs=Ha.current.offsetWidth:(al=Cs,Bs=ka.current.offsetWidth));var Xs=Ca==="rtl"?{right:al}:{left:al},zs=function(ma,Ba){var ao=Ge(Oa,ma,aa);Ba==="submit"||Ba!=="key"&&!Pa?(vo(ao,aa),aa===0?Lr():Si()):oo(ao)};return c.createElement(Y.Provider,{value:{operationRef:Ua,hideHeader:Ui==="time",onDateMouseEnter:Vi,onDateMouseLeave:oa,hideRanges:!0,onSelect:zs,open:mo}},c.createElement(ii,{visible:mo,popupElement:Ks,popupStyle:On,prefixCls:Mr,dropdownClassName:Rn,dropdownAlign:yn,getPopupContainer:Sn,transitionName:Nn,range:!0,direction:Ca},c.createElement("div",Object.assign({ref:Ci,className:x()(Mr,"".concat(Mr,"-range"),wn,(_t={},Object(R.a)(_t,"".concat(Mr,"-disabled"),Na[0]&&Na[1]),Object(R.a)(_t,"".concat(Mr,"-focused"),aa===0?yo:Io),Object(R.a)(_t,"".concat(Mr,"-rtl"),Ca==="rtl"),_t)),style:nn,onClick:Ds,onMouseDown:Es},Oe(Xe)),c.createElement("div",{className:x()("".concat(Mr,"-input"),(lr={},Object(R.a)(lr,"".concat(Mr,"-input-active"),aa===0),Object(R.a)(lr,"".concat(Mr,"-input-placeholder"),!!Ot),lr)),ref:Ha},c.createElement("input",Object.assign({id:Wr,disabled:Na[0],readOnly:Xn||!Mo,value:Ot||ms,onChange:function(ma){gs(ma.target.value)},autoFocus:Zn,placeholder:gt(Yn,0)||"",ref:Sa},io,ks,{autoComplete:Yi}))),c.createElement("div",{className:"".concat(Mr,"-range-separator"),ref:Aa},jn),c.createElement("div",{className:x()("".concat(Mr,"-input"),(rr={},Object(R.a)(rr,"".concat(Mr,"-input-active"),aa===1),Object(R.a)(rr,"".concat(Mr,"-input-placeholder"),!!Wn),rr)),ref:ka},c.createElement("input",Object.assign({disabled:Na[1],readOnly:Xn||!Xo,value:Wn||Hs,onChange:function(ma){Go(ma.target.value)},placeholder:gt(Yn,1)||"",ref:Ya},os,ks,{autoComplete:Yi}))),c.createElement("div",{className:"".concat(Mr,"-active-bar"),style:Object(j.a)(Object(j.a)({},Xs),{},{width:Bs,position:"absolute"})}),Ws,hs)))}var mn=function(Xe){Object(M.a)(lr,Xe);var _t=Object(F.a)(lr);function lr(){var rr;return Object(D.a)(this,lr),rr=_t.apply(this,arguments),rr.pickerRef=c.createRef(),rr.focus=function(){rr.pickerRef.current&&rr.pickerRef.current.focus()},rr.blur=function(){rr.pickerRef.current&&rr.pickerRef.current.blur()},rr}return Object(N.a)(lr,[{key:"render",value:function(){return c.createElement(Pi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),lr}(c.Component),Fr=mn,An=on,Un=d("61s2");function Vn(Xe,_t,lr){return lr!==void 0?lr:Xe==="year"&&_t.lang.yearPlaceholder?_t.lang.yearPlaceholder:Xe==="quarter"&&_t.lang.quarterPlaceholder?_t.lang.quarterPlaceholder:Xe==="month"&&_t.lang.monthPlaceholder?_t.lang.monthPlaceholder:Xe==="week"&&_t.lang.weekPlaceholder?_t.lang.weekPlaceholder:Xe==="time"&&_t.timePickerLocale.placeholder?_t.timePickerLocale.placeholder:_t.lang.placeholder}function ti(Xe,_t,lr){return lr!==void 0?lr:Xe==="year"&&_t.lang.yearPlaceholder?_t.lang.rangeYearPlaceholder:Xe==="month"&&_t.lang.monthPlaceholder?_t.lang.rangeMonthPlaceholder:Xe==="week"&&_t.lang.weekPlaceholder?_t.lang.rangeWeekPlaceholder:Xe==="time"&&_t.timePickerLocale.placeholder?_t.timePickerLocale.rangePlaceholder:_t.lang.rangePlaceholder}var di=d("uaoM"),fi=d("H84U"),mi=d("YMnH"),Wi=d("3Nzz"),na=function(Xe,_t){var lr={};for(var rr in Xe)Object.prototype.hasOwnProperty.call(Xe,rr)&&_t.indexOf(rr)<0&&(lr[rr]=Xe[rr]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Or=0,rr=Object.getOwnPropertySymbols(Xe);Or<rr.length;Or++)_t.indexOf(rr[Or])<0&&Object.prototype.propertyIsEnumerable.call(Xe,rr[Or])&&(lr[rr[Or]]=Xe[rr[Or]]);return lr};function ea(Xe){function _t(wn,On){var Rn=function(Nn){p()(Sn,Nn);var yn=A()(Sn);function Sn(_n){var Hn;return o()(this,Sn),Hn=yn.call(this,_n),Hn.pickerRef=c.createRef(),Hn.focus=function(){Hn.pickerRef.current&&Hn.pickerRef.current.focus()},Hn.blur=function(){Hn.pickerRef.current&&Hn.pickerRef.current.blur()},Hn.getDefaultLocale=function(){var Yn=Hn.props.locale,Zn=h()(h()({},Un.a),Yn);return Zn.lang=h()(h()({},Zn.lang),(Yn||{}).lang),Zn},Hn.renderPicker=function(Yn){var Zn=Hn.context,yi=Zn.getPrefixCls,gi=Zn.direction,Di=Zn.getPopupContainer,Ui=Hn.props,Ei=Ui.prefixCls,_i=Ui.getPopupContainer,Ni=Ui.className,jn=Ui.size,Ii=Ui.bordered,Hi=Ii===void 0?!0:Ii,fr=Ui.placeholder,Dr=na(Ui,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Qr=Hn.props,Nr=Qr.format,Yt=Qr.showTime,xr=yi("picker",Ei),tr={showToday:!0},jr={};wn&&(jr.picker=wn);var Ur=wn||Hn.props.picker;return jr=h()(h()(h()({},jr),Yt?ia(h()({format:Nr,picker:Ur},Yt)):{}),Ur==="time"?ia(h()(h()({format:Nr},Hn.props),{picker:Ur})):{}),c.createElement(Wi.b.Consumer,null,function(dn){var sn,bn=jn||dn;return c.createElement(An,h()({ref:Hn.pickerRef,placeholder:Vn(Ur,Yn,fr),suffixIcon:Ur==="time"?c.createElement(_.a,null):c.createElement(w.a,null),clearIcon:c.createElement(L.a,null),allowClear:!0,transitionName:"slide-up"},tr,Dr,jr,{locale:Yn.lang,className:x()(Ni,(sn={},s()(sn,"".concat(xr,"-").concat(bn),bn),s()(sn,"".concat(xr,"-borderless"),!Hi),sn)),prefixCls:xr,getPopupContainer:_i||Di,generateConfig:Xe,prevIcon:c.createElement("span",{className:"".concat(xr,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(xr,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(xr,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(xr,"-super-next-icon")}),components:Zi,direction:gi}))})},Object(di.a)(wn!=="quarter",On,"DatePicker.".concat(On," is legacy usage. Please use DatePicker[picker='").concat(wn,"'] directly.")),Hn}return u()(Sn,[{key:"render",value:function(){return c.createElement(mi.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Sn}(c.Component);return Rn.contextType=fi.b,On&&(Rn.displayName=On),Rn}var lr=_t(),rr=_t("week","WeekPicker"),Or=_t("month","MonthPicker"),Mr=_t("year","YearPicker"),Wr=_t("time","TimePicker"),nn=_t("quarter","QuarterPicker");return{DatePicker:lr,WeekPicker:rr,MonthPicker:Or,YearPicker:Mr,TimePicker:Wr,QuarterPicker:nn}}var Fa=d("8ISB"),pi=d.n(Fa),ln=function(Xe,_t){var lr={};for(var rr in Xe)Object.prototype.hasOwnProperty.call(Xe,rr)&&_t.indexOf(rr)<0&&(lr[rr]=Xe[rr]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Or=0,rr=Object.getOwnPropertySymbols(Xe);Or<rr.length;Or++)_t.indexOf(rr[Or])<0&&Object.prototype.propertyIsEnumerable.call(Xe,rr[Or])&&(lr[rr[Or]]=Xe[rr[Or]]);return lr};function Li(Xe){var _t=function(lr){p()(Or,lr);var rr=A()(Or);function Or(){var Mr;return o()(this,Or),Mr=rr.apply(this,arguments),Mr.pickerRef=c.createRef(),Mr.focus=function(){Mr.pickerRef.current&&Mr.pickerRef.current.focus()},Mr.blur=function(){Mr.pickerRef.current&&Mr.pickerRef.current.blur()},Mr.getDefaultLocale=function(){var Wr=Mr.props.locale,nn=h()(h()({},Un.a),Wr);return nn.lang=h()(h()({},nn.lang),(Wr||{}).lang),nn},Mr.renderPicker=function(Wr){var nn=Mr.context,wn=nn.getPrefixCls,On=nn.direction,Rn=nn.getPopupContainer,Nn=Mr.props,yn=Nn.prefixCls,Sn=Nn.getPopupContainer,_n=Nn.className,Hn=Nn.size,Yn=Nn.bordered,Zn=Yn===void 0?!0:Yn,yi=Nn.placeholder,gi=ln(Nn,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Di=Mr.props,Ui=Di.format,Ei=Di.showTime,_i=Di.picker,Ni=wn("picker",yn),jn={};return jn=h()(h()(h()({},jn),Ei?ia(h()({format:Ui,picker:_i},Ei)):{}),_i==="time"?ia(h()(h()({format:Ui},Mr.props),{picker:_i})):{}),c.createElement(Wi.b.Consumer,null,function(Ii){var Hi,fr=Hn||Ii;return c.createElement(Fr,h()({separator:c.createElement("span",{"aria-label":"to",className:"".concat(Ni,"-separator")},c.createElement(pi.a,null)),ref:Mr.pickerRef,placeholder:ti(_i,Wr,yi),suffixIcon:_i==="time"?c.createElement(_.a,null):c.createElement(w.a,null),clearIcon:c.createElement(L.a,null),allowClear:!0,transitionName:"slide-up"},gi,jn,{className:x()(_n,(Hi={},s()(Hi,"".concat(Ni,"-").concat(fr),fr),s()(Hi,"".concat(Ni,"-borderless"),!Zn),Hi)),locale:Wr.lang,prefixCls:Ni,getPopupContainer:Sn||Rn,generateConfig:Xe,prevIcon:c.createElement("span",{className:"".concat(Ni,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(Ni,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(Ni,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(Ni,"-super-next-icon")}),components:Zi,direction:On}))})},Mr}return u()(Or,[{key:"render",value:function(){return c.createElement(mi.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Or}(c.Component);return _t.contextType=fi.b,_t}var Zi={button:r,rangeItem:n};function Fi(Xe){return Xe?Array.isArray(Xe)?Xe:[Xe]:[]}function ia(Xe){var _t=Xe.format,lr=Xe.picker,rr=Xe.showHour,Or=Xe.showMinute,Mr=Xe.showSecond,Wr=Xe.use12Hours,nn=Fi(_t)[0],wn=h()({},Xe);return nn&&(!nn.includes("s")&&Mr===void 0&&(wn.showSecond=!1),!nn.includes("m")&&Or===void 0&&(wn.showMinute=!1),!nn.includes("H")&&!nn.includes("h")&&rr===void 0&&(wn.showHour=!1),(nn.includes("a")||nn.includes("A"))&&Wr===void 0&&(wn.use12Hours=!0)),lr==="time"?wn:{showTime:wn}}function Gt(Xe){var _t=ea(Xe),lr=_t.DatePicker,rr=_t.WeekPicker,Or=_t.MonthPicker,Mr=_t.YearPicker,Wr=_t.TimePicker,nn=_t.QuarterPicker,wn=Li(Xe),On=lr;return On.WeekPicker=rr,On.MonthPicker=Or,On.YearPicker=Mr,On.RangePicker=wn,On.TimePicker=Wr,On.QuarterPicker=nn,On}var Xr=Gt,rn=Xr(S),fn=k.a=rn},"+lIL":function(H,k,d){var I=d("ProS");d("/ry/"),d("3OrL");var E=d("L5E0"),T=d("7Phj");I.registerVisual(E),I.registerLayout(T)},"+nKL":function(H,k,d){"use strict";var I=d("q1tI"),E=d("TSYQ"),T=d.n(E),g=d("wx14"),S=d("Zm9Q"),m=d("Kwbf"),h=d("VTBJ"),c=d("c+Xe"),a=d("m+aA"),r=d("bdgK"),i=new Map;function n($e){$e.forEach(function(tt){var Ee,Re=tt.target;(Ee=i.get(Re))===null||Ee===void 0||Ee.forEach(function(je){return je(Re)})})}var t=new r.default(n),s=null,e=null;function o($e,tt){i.has($e)||(i.set($e,new Set),t.observe($e)),i.get($e).add(tt)}function l($e,tt){i.has($e)&&(i.get($e).delete(tt),i.get($e).size||(t.unobserve($e),i.delete($e)))}var u=d("1OyB"),f=d("vuIU"),p=d("Ji7U"),v=d("LK+K"),A=function($e){Object(p.a)(Ee,$e);var tt=Object(v.a)(Ee);function Ee(){return Object(u.a)(this,Ee),tt.apply(this,arguments)}return Object(f.a)(Ee,[{key:"render",value:function(){return this.props.children}}]),Ee}(I.Component),y=I.createContext(null);function x($e){var tt=$e.children,Ee=$e.onBatchResize,Re=I.useRef(0),je=I.useRef([]),nt=I.useContext(y),Vt=I.useCallback(function(Bt,Xt,Rr){Re.current+=1;var Br=Re.current;je.current.push({size:Bt,element:Xt,data:Rr}),Promise.resolve().then(function(){Br===Re.current&&(Ee==null||Ee(je.current),je.current=[])}),nt==null||nt(Bt,Xt,Rr)},[Ee,nt]);return I.createElement(y.Provider,{value:Vt},tt)}function C($e){var tt=$e.children,Ee=$e.disabled,Re=I.useRef(null),je=I.useRef(null),nt=I.useContext(y),Vt=I.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Bt=I.isValidElement(tt)&&Object(c.c)(tt),Xt=Bt?tt.ref:null,Rr=I.useMemo(function(){return Object(c.a)(Xt,Re)},[Xt,Re]),Br=I.useRef($e);Br.current=$e;var cn=I.useCallback(function(Ut){var pt=Br.current,ut=pt.onResize,Jt=pt.data,Zt=Ut.getBoundingClientRect(),At=Zt.width,Pt=Zt.height,vt=Ut.offsetWidth,Ft=Ut.offsetHeight,gr=Math.floor(At),or=Math.floor(Pt);if(Vt.current.width!==gr||Vt.current.height!==or||Vt.current.offsetWidth!==vt||Vt.current.offsetHeight!==Ft){var ur={width:gr,height:or,offsetWidth:vt,offsetHeight:Ft};Vt.current=ur;var Yr=vt===Math.round(At)?At:vt,Jr=Ft===Math.round(Pt)?Pt:Ft,Tn=Object(h.a)(Object(h.a)({},ur),{},{offsetWidth:Yr,offsetHeight:Jr});nt==null||nt(Tn,Ut,Jt),ut&&Promise.resolve().then(function(){ut(Tn,Ut)})}},[]);return I.useEffect(function(){var Ut=Object(a.a)(Re.current)||Object(a.a)(je.current);return Ut&&!Ee&&o(Ut,cn),function(){return l(Ut,cn)}},[Re.current,Ee]),I.createElement(A,{ref:je},Bt?I.cloneElement(tt,{ref:Rr}):tt)}var w="rc-observer-key";function b($e){var tt=$e.children,Ee=Object(S.a)(tt);return Ee.map(function(Re,je){var nt=(Re==null?void 0:Re.key)||"".concat(w,"-").concat(je);return I.createElement(C,Object(g.a)({},$e,{key:nt}),Re)})}b.Collection=x;var _=b;function O($e,tt){var Ee=Object.keys($e);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols($e);tt&&(Re=Re.filter(function(je){return Object.getOwnPropertyDescriptor($e,je).enumerable})),Ee.push.apply(Ee,Re)}return Ee}function L($e){for(var tt=1;tt<arguments.length;tt++){var Ee=arguments[tt]!=null?arguments[tt]:{};tt%2?O(Object(Ee),!0).forEach(function(Re){D($e,Re,Ee[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties($e,Object.getOwnPropertyDescriptors(Ee)):O(Object(Ee)).forEach(function(Re){Object.defineProperty($e,Re,Object.getOwnPropertyDescriptor(Ee,Re))})}return $e}function D($e,tt,Ee){return tt in $e?Object.defineProperty($e,tt,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):$e[tt]=Ee,$e}var N=I.forwardRef(function($e,tt){var Ee=$e.height,Re=$e.offset,je=$e.children,nt=$e.prefixCls,Vt=$e.onInnerResize,Bt={},Xt={display:"flex",flexDirection:"column"};return Re!==void 0&&(Bt={height:Ee,position:"relative",overflow:"hidden"},Xt=L(L({},Xt),{},{transform:"translateY(".concat(Re,"px)"),position:"absolute",left:0,right:0,top:0})),I.createElement("div",{style:Bt},I.createElement(_,{onResize:function(Br){var cn=Br.offsetHeight;cn&&Vt&&Vt()}},I.createElement("div",{style:Xt,className:T()(D({},"".concat(nt,"-holder-inner"),nt)),ref:tt},je)))});N.displayName="Filler";var M=N,F=d("wgJM");function R($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R=function(Ee){return typeof Ee}:R=function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},R($e)}function j($e,tt,Ee){return tt in $e?Object.defineProperty($e,tt,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):$e[tt]=Ee,$e}function B($e,tt){if(!($e instanceof tt))throw new TypeError("Cannot call a class as a function")}function K($e,tt){for(var Ee=0;Ee<tt.length;Ee++){var Re=tt[Ee];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty($e,Re.key,Re)}}function U($e,tt,Ee){return tt&&K($e.prototype,tt),Ee&&K($e,Ee),$e}function z($e,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Super expression must either be null or a function");$e.prototype=Object.create(tt&&tt.prototype,{constructor:{value:$e,writable:!0,configurable:!0}}),tt&&V($e,tt)}function V($e,tt){return V=Object.setPrototypeOf||function(Re,je){return Re.__proto__=je,Re},V($e,tt)}function Y($e){var tt=$();return function(){var Re=ae($e),je;if(tt){var nt=ae(this).constructor;je=Reflect.construct(Re,arguments,nt)}else je=Re.apply(this,arguments);return J(this,je)}}function J($e,tt){if(tt&&(R(tt)==="object"||typeof tt=="function"))return tt;if(tt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se($e)}function se($e){if($e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e}function $(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch($e){return!1}}function ae($e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(Ee){return Ee.__proto__||Object.getPrototypeOf(Ee)},ae($e)}var ge=20;function pe($e){return"touches"in $e?$e.touches[0].pageY:$e.pageY}var Ne=function($e){z(Ee,$e);var tt=Y(Ee);function Ee(){var Re;B(this,Ee);for(var je=arguments.length,nt=new Array(je),Vt=0;Vt<je;Vt++)nt[Vt]=arguments[Vt];return Re=tt.call.apply(tt,[this].concat(nt)),Re.moveRaf=null,Re.scrollbarRef=I.createRef(),Re.thumbRef=I.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(Bt){Bt.preventDefault()},Re.onContainerMouseDown=function(Bt){Bt.stopPropagation(),Bt.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(){window.removeEventListener("mousemove",Re.onMouseMove),window.removeEventListener("mouseup",Re.onMouseUp),Re.scrollbarRef.current.removeEventListener("touchstart",Re.onScrollbarTouchStart),Re.thumbRef.current.removeEventListener("touchstart",Re.onMouseDown),Re.thumbRef.current.removeEventListener("touchmove",Re.onMouseMove),Re.thumbRef.current.removeEventListener("touchend",Re.onMouseUp),F.a.cancel(Re.moveRaf)},Re.onMouseDown=function(Bt){var Xt=Re.props.onStartMove;Re.setState({dragging:!0,pageY:pe(Bt),startTop:Re.getTop()}),Xt(),Re.patchEvents(),Bt.stopPropagation(),Bt.preventDefault()},Re.onMouseMove=function(Bt){var Xt=Re.state,Rr=Xt.dragging,Br=Xt.pageY,cn=Xt.startTop,Ut=Re.props.onScroll;if(F.a.cancel(Re.moveRaf),Rr){var pt=pe(Bt)-Br,ut=cn+pt,Jt=Re.getEnableScrollRange(),Zt=Re.getEnableHeightRange(),At=Zt?ut/Zt:0,Pt=Math.ceil(At*Jt);Re.moveRaf=Object(F.a)(function(){Ut(Pt)})}},Re.onMouseUp=function(){var Bt=Re.props.onStopMove;Re.setState({dragging:!1}),Bt(),Re.removeEvents()},Re.getSpinHeight=function(){var Bt=Re.props,Xt=Bt.height,Rr=Bt.count,Br=Xt/Rr*10;return Br=Math.max(Br,ge),Br=Math.min(Br,Xt/2),Math.floor(Br)},Re.getEnableScrollRange=function(){var Bt=Re.props,Xt=Bt.scrollHeight,Rr=Bt.height;return Xt-Rr||0},Re.getEnableHeightRange=function(){var Bt=Re.props.height,Xt=Re.getSpinHeight();return Bt-Xt||0},Re.getTop=function(){var Bt=Re.props.scrollTop,Xt=Re.getEnableScrollRange(),Rr=Re.getEnableHeightRange();if(Bt===0||Xt===0)return 0;var Br=Bt/Xt;return Br*Rr},Re.showScroll=function(){var Bt=Re.props,Xt=Bt.height,Rr=Bt.scrollHeight;return Rr>Xt},Re}return U(Ee,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(je){je.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var je=this.state,nt=je.dragging,Vt=je.visible,Bt=this.props.prefixCls,Xt=this.getSpinHeight(),Rr=this.getTop(),Br=this.showScroll(),cn=Br&&Vt;return I.createElement("div",{ref:this.scrollbarRef,className:T()("".concat(Bt,"-scrollbar"),j({},"".concat(Bt,"-scrollbar-show"),Br)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:cn?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},I.createElement("div",{ref:this.thumbRef,className:T()("".concat(Bt,"-scrollbar-thumb"),j({},"".concat(Bt,"-scrollbar-thumb-moving"),nt)),style:{width:"100%",height:Xt,top:Rr,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Ee}(I.Component);function de($e){var tt=$e.children,Ee=$e.setRef,Re=I.useCallback(function(je){Ee(je)},[]);return I.cloneElement(tt,{ref:Re})}function Le($e,tt,Ee,Re,je,nt){var Vt=nt.getKey;return $e.slice(tt,Ee+1).map(function(Bt,Xt){var Rr=tt+Xt,Br=je(Bt,Rr,{}),cn=Vt(Bt);return I.createElement(de,{key:cn,setRef:function(pt){return Re(Bt,pt)}},Br)})}function Q($e,tt){if(!($e instanceof tt))throw new TypeError("Cannot call a class as a function")}function ce($e,tt){for(var Ee=0;Ee<tt.length;Ee++){var Re=tt[Ee];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty($e,Re.key,Re)}}function Ke($e,tt,Ee){return tt&&ce($e.prototype,tt),Ee&&ce($e,Ee),$e}var ee=function(){function $e(){Q(this,$e),this.maps=void 0,this.maps=Object.create(null)}return Ke($e,[{key:"set",value:function(Ee,Re){this.maps[Ee]=Re}},{key:"get",value:function(Ee){return this.maps[Ee]}}]),$e}(),X=ee;function G($e,tt){return xe($e)||_e($e,tt)||ve($e,tt)||Z()}function Z(){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 ve($e,tt){if(!$e)return;if(typeof $e=="string")return ue($e,tt);var Ee=Object.prototype.toString.call($e).slice(8,-1);if(Ee==="Object"&&$e.constructor&&(Ee=$e.constructor.name),Ee==="Map"||Ee==="Set")return Array.from($e);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return ue($e,tt)}function ue($e,tt){(tt==null||tt>$e.length)&&(tt=$e.length);for(var Ee=0,Re=new Array(tt);Ee<tt;Ee++)Re[Ee]=$e[Ee];return Re}function _e($e,tt){var Ee=$e==null?null:typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(Ee==null)return;var Re=[],je=!0,nt=!1,Vt,Bt;try{for(Ee=Ee.call($e);!(je=(Vt=Ee.next()).done)&&!(Re.push(Vt.value),tt&&Re.length===tt);je=!0);}catch(Xt){nt=!0,Bt=Xt}finally{try{!je&&Ee.return!=null&&Ee.return()}finally{if(nt)throw Bt}}return Re}function xe($e){if(Array.isArray($e))return $e}function oe($e,tt,Ee){var Re=I.useState(0),je=G(Re,2),nt=je[0],Vt=je[1],Bt=Object(I.useRef)(new Map),Xt=Object(I.useRef)(new X),Rr=Object(I.useRef)(0);function Br(){Rr.current+=1;var Ut=Rr.current;Promise.resolve().then(function(){if(Ut!==Rr.current)return;Bt.current.forEach(function(pt,ut){if(pt&&pt.offsetParent){var Jt=Object(a.a)(pt),Zt=Jt.offsetHeight;Xt.current.get(ut)!==Zt&&Xt.current.set(ut,Jt.offsetHeight)}}),Vt(function(pt){return pt+1})})}function cn(Ut,pt){var ut=$e(Ut),Jt=Bt.current.get(ut);pt?(Bt.current.set(ut,pt),Br()):Bt.current.delete(ut),!Jt!==!pt&&(pt?tt==null||tt(Ut):Ee==null||Ee(Ut))}return[cn,Br,Xt.current,nt]}function fe($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(Ee){return typeof Ee}:fe=function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},fe($e)}function Te($e,tt,Ee,Re,je,nt,Vt,Bt){var Xt=I.useRef();return function(Rr){if(Rr==null){Bt();return}if(F.a.cancel(Xt.current),typeof Rr=="number")Vt(Rr);else if(Rr&&fe(Rr)==="object"){var Br,cn=Rr.align;"index"in Rr?Br=Rr.index:Br=tt.findIndex(function(Jt){return je(Jt)===Rr.key});var Ut=Rr.offset,pt=Ut===void 0?0:Ut,ut=function Jt(Zt,At){if(Zt<0||!$e.current)return;var Pt=$e.current.clientHeight,vt=!1,Ft=At;if(Pt){for(var gr=At||cn,or=0,ur=0,Yr=0,Jr=Math.min(tt.length,Br),Tn=0;Tn<=Jr;Tn+=1){var Dn=je(tt[Tn]);ur=or;var zn=Ee.get(Dn);Yr=ur+(zn===void 0?Re:zn),or=Yr,Tn===Br&&zn===void 0&&(vt=!0)}var qn=null;switch(gr){case"top":qn=ur-pt;break;case"bottom":qn=Yr-Pt+pt;break;default:{var Ai=$e.current.scrollTop,Mi=Ai+Pt;ur<Ai?Ft="top":Yr>Mi&&(Ft="bottom")}}qn!==null&&qn!==$e.current.scrollTop&&Vt(qn)}Xt.current=Object(F.a)(function(){vt&&nt(),Jt(Zt-1,Ft)})};ut(3)}}}function ze($e,tt,Ee,Re){var je=Ee-$e,nt=tt-Ee,Vt=Math.min(je,nt)*2;if(Re<=Vt){var Bt=Math.floor(Re/2);return Re%2?Ee+Bt+1:Ee-Bt}return je>nt?Ee-(Re-nt):Ee+(Re-je)}function it($e,tt,Ee){var Re=$e.length,je=tt.length,nt,Vt;if(Re===0&&je===0)return null;Re<je?(nt=$e,Vt=tt):(nt=tt,Vt=$e);var Bt={__EMPTY_ITEM__:!0};function Xt(ut){return ut!==void 0?Ee(ut):Bt}for(var Rr=null,Br=Math.abs(Re-je)!==1,cn=0;cn<Vt.length;cn+=1){var Ut=Xt(nt[cn]),pt=Xt(Vt[cn]);if(Ut!==pt){Rr=cn,Br=Br||Ut!==Xt(Vt[cn+1]);break}}return Rr===null?null:{index:Rr,multiple:Br}}function et($e,tt){return xt($e)||wt($e,tt)||gt($e,tt)||Oe()}function Oe(){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 gt($e,tt){if(!$e)return;if(typeof $e=="string")return Ge($e,tt);var Ee=Object.prototype.toString.call($e).slice(8,-1);if(Ee==="Object"&&$e.constructor&&(Ee=$e.constructor.name),Ee==="Map"||Ee==="Set")return Array.from($e);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return Ge($e,tt)}function Ge($e,tt){(tt==null||tt>$e.length)&&(tt=$e.length);for(var Ee=0,Re=new Array(tt);Ee<tt;Ee++)Re[Ee]=$e[Ee];return Re}function wt($e,tt){var Ee=$e==null?null:typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(Ee==null)return;var Re=[],je=!0,nt=!1,Vt,Bt;try{for(Ee=Ee.call($e);!(je=(Vt=Ee.next()).done)&&!(Re.push(Vt.value),tt&&Re.length===tt);je=!0);}catch(Xt){nt=!0,Bt=Xt}finally{try{!je&&Ee.return!=null&&Ee.return()}finally{if(nt)throw Bt}}return Re}function xt($e){if(Array.isArray($e))return $e}function Ct($e,tt,Ee){var Re=I.useState($e),je=et(Re,2),nt=je[0],Vt=je[1],Bt=I.useState(null),Xt=et(Bt,2),Rr=Xt[0],Br=Xt[1];return I.useEffect(function(){var cn=it(nt||[],$e||[],tt);(cn==null?void 0:cn.index)!==void 0&&(Ee==null||Ee(cn.index),Br($e[cn.index])),Vt($e)},[$e]),[Rr]}function Dt($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dt=function(Ee){return typeof Ee}:Dt=function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},Dt($e)}var Ht=(typeof navigator=="undefined"?"undefined":Dt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Je=Ht,ye=function($e,tt){var Ee=Object(I.useRef)(!1),Re=Object(I.useRef)(null);function je(){clearTimeout(Re.current),Ee.current=!0,Re.current=setTimeout(function(){Ee.current=!1},50)}var nt=Object(I.useRef)({top:$e,bottom:tt});return nt.current.top=$e,nt.current.bottom=tt,function(Vt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=Vt<0&&nt.current.top||Vt>0&&nt.current.bottom;return Bt&&Xt?(clearTimeout(Re.current),Ee.current=!1):(!Xt||Ee.current)&&je(),!Ee.current&&Xt}};function ie($e,tt,Ee,Re){var je=Object(I.useRef)(0),nt=Object(I.useRef)(null),Vt=Object(I.useRef)(null),Bt=Object(I.useRef)(!1),Xt=ye(tt,Ee);function Rr(cn){if(!$e)return;F.a.cancel(nt.current);var Ut=cn.deltaY;if(je.current+=Ut,Vt.current=Ut,Xt(Ut))return;Je||cn.preventDefault(),nt.current=Object(F.a)(function(){var pt=Bt.current?10:1;Re(je.current*pt),je.current=0})}function Br(cn){if(!$e)return;Bt.current=cn.detail===Vt.current}return[Rr,Br]}var bt=14/15;function qe($e,tt,Ee){var Re=Object(I.useRef)(!1),je=Object(I.useRef)(0),nt=Object(I.useRef)(null),Vt=Object(I.useRef)(null),Bt,Xt=function(Ut){if(Re.current){var pt=Math.ceil(Ut.touches[0].pageY),ut=je.current-pt;je.current=pt,Ee(ut)&&Ut.preventDefault(),clearInterval(Vt.current),Vt.current=setInterval(function(){ut*=bt,(!Ee(ut,!0)||Math.abs(ut)<=.1)&&clearInterval(Vt.current)},16)}},Rr=function(){Re.current=!1,Bt()},Br=function(Ut){Bt(),Ut.touches.length===1&&!Re.current&&(Re.current=!0,je.current=Math.ceil(Ut.touches[0].pageY),nt.current=Ut.target,nt.current.addEventListener("touchmove",Xt),nt.current.addEventListener("touchend",Rr))};Bt=function(){nt.current&&(nt.current.removeEventListener("touchmove",Xt),nt.current.removeEventListener("touchend",Rr))},I.useLayoutEffect(function(){return $e&&tt.current.addEventListener("touchstart",Br),function(){tt.current.removeEventListener("touchstart",Br),Bt(),clearInterval(Vt.current)}},[$e])}var me=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Rt(){return Rt=Object.assign||function($e){for(var tt=1;tt<arguments.length;tt++){var Ee=arguments[tt];for(var Re in Ee)Object.prototype.hasOwnProperty.call(Ee,Re)&&($e[Re]=Ee[Re])}return $e},Rt.apply(this,arguments)}function er($e,tt){var Ee=Object.keys($e);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols($e);tt&&(Re=Re.filter(function(je){return Object.getOwnPropertyDescriptor($e,je).enumerable})),Ee.push.apply(Ee,Re)}return Ee}function ct($e){for(var tt=1;tt<arguments.length;tt++){var Ee=arguments[tt]!=null?arguments[tt]:{};tt%2?er(Object(Ee),!0).forEach(function(Re){zt($e,Re,Ee[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties($e,Object.getOwnPropertyDescriptors(Ee)):er(Object(Ee)).forEach(function(Re){Object.defineProperty($e,Re,Object.getOwnPropertyDescriptor(Ee,Re))})}return $e}function zt($e,tt,Ee){return tt in $e?Object.defineProperty($e,tt,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):$e[tt]=Ee,$e}function sr($e,tt){return st($e)||Lt($e,tt)||ar($e,tt)||Kr()}function Kr(){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 ar($e,tt){if(!$e)return;if(typeof $e=="string")return nr($e,tt);var Ee=Object.prototype.toString.call($e).slice(8,-1);if(Ee==="Object"&&$e.constructor&&(Ee=$e.constructor.name),Ee==="Map"||Ee==="Set")return Array.from($e);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return nr($e,tt)}function nr($e,tt){(tt==null||tt>$e.length)&&(tt=$e.length);for(var Ee=0,Re=new Array(tt);Ee<tt;Ee++)Re[Ee]=$e[Ee];return Re}function Lt($e,tt){var Ee=$e==null?null:typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(Ee==null)return;var Re=[],je=!0,nt=!1,Vt,Bt;try{for(Ee=Ee.call($e);!(je=(Vt=Ee.next()).done)&&!(Re.push(Vt.value),tt&&Re.length===tt);je=!0);}catch(Xt){nt=!0,Bt=Xt}finally{try{!je&&Ee.return!=null&&Ee.return()}finally{if(nt)throw Bt}}return Re}function st($e){if(Array.isArray($e))return $e}function Qe($e,tt){if($e==null)return{};var Ee=qt($e,tt),Re,je;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols($e);for(je=0;je<nt.length;je++){if(Re=nt[je],tt.indexOf(Re)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call($e,Re))continue;Ee[Re]=$e[Re]}}return Ee}function qt($e,tt){if($e==null)return{};var Ee={},Re=Object.keys($e),je,nt;for(nt=0;nt<Re.length;nt++){if(je=Re[nt],tt.indexOf(je)>=0)continue;Ee[je]=$e[je]}return Ee}var Sr=[],Ar={overflowY:"auto",overflowAnchor:"none"};function hr($e,tt){var Ee=$e.prefixCls,Re=Ee===void 0?"rc-virtual-list":Ee,je=$e.className,nt=$e.height,Vt=$e.itemHeight,Bt=$e.fullHeight,Xt=Bt===void 0?!0:Bt,Rr=$e.style,Br=$e.data,cn=$e.children,Ut=$e.itemKey,pt=$e.virtual,ut=$e.component,Jt=ut===void 0?"div":ut,Zt=$e.onScroll,At=$e.onVisibleChange,Pt=Qe($e,me),vt=!!(pt!==!1&&nt&&Vt),Ft=vt&&Br&&Vt*Br.length>nt,gr=Object(I.useState)(0),or=sr(gr,2),ur=or[0],Yr=or[1],Jr=Object(I.useState)(!1),Tn=sr(Jr,2),Dn=Tn[0],zn=Tn[1],qn=T()(Re,je),Ai=Br||Sr,Mi=Object(I.useRef)(),Ye=Object(I.useRef)(),Ce=Object(I.useRef)(),ke=I.useCallback(function(Jn){return typeof Ut=="function"?Ut(Jn):Jn==null?void 0:Jn[Ut]},[Ut]),Fe={getKey:ke};function Ve(Jn){Yr(function(Pi){var mn;typeof Jn=="function"?mn=Jn(Pi):mn=Jn;var Fr=ei(mn);return Mi.current.scrollTop=Fr,Fr})}var We=Object(I.useRef)({start:0,end:Ai.length}),Ze=Object(I.useRef)(),yt=Ct(Ai,ke),lt=sr(yt,1),kt=lt[0];Ze.current=kt;var wr=oe(ke,null,null),pr=sr(wr,4),_r=pr[0],Wt=pr[1],un=pr[2],ir=pr[3],Gr=I.useMemo(function(){if(!vt)return{scrollHeight:void 0,start:0,end:Ai.length-1,offset:void 0};if(!Ft){var Jn;return{scrollHeight:((Jn=Ye.current)===null||Jn===void 0?void 0:Jn.offsetHeight)||0,start:0,end:Ai.length-1,offset:void 0}}for(var Pi=0,mn,Fr,An,Un=Ai.length,Vn=0;Vn<Un;Vn+=1){var ti=Ai[Vn],di=ke(ti),fi=un.get(di),mi=Pi+(fi===void 0?Vt:fi);mi>=ur&&mn===void 0&&(mn=Vn,Fr=Pi),mi>ur+nt&&An===void 0&&(An=Vn),Pi=mi}return mn===void 0&&(mn=0,Fr=0),An===void 0&&(An=Ai.length-1),An=Math.min(An+1,Ai.length),{scrollHeight:Pi,start:mn,end:An,offset:Fr}},[Ft,vt,ur,Ai,ir,nt]),kr=Gr.scrollHeight,yr=Gr.start,En=Gr.end,kn=Gr.offset;We.current.start=yr,We.current.end=En;var ii=kr-nt,oi=Object(I.useRef)(ii);oi.current=ii;function ei(Jn){var Pi=Jn;return Number.isNaN(oi.current)||(Pi=Math.min(Pi,oi.current)),Pi=Math.max(Pi,0),Pi}var ci=ur<=0,Pn=ur>=ii,xi=ye(ci,Pn);function gn(Jn){var Pi=Jn;Ve(Pi)}function zr(Jn){var Pi=Jn.currentTarget.scrollTop;Pi!==ur&&Ve(Pi),Zt==null||Zt(Jn)}var Cn=ie(vt,ci,Pn,function(Jn){Ve(function(Pi){var mn=Pi+Jn;return mn})}),on=sr(Cn,2),li=on[0],ri=on[1];qe(vt,Mi,function(Jn,Pi){return xi(Jn,Pi)?!1:(li({preventDefault:function(){},deltaY:Jn}),!0)}),Object(I.useLayoutEffect)(function(){function Jn(Pi){vt&&Pi.preventDefault()}return Mi.current.addEventListener("wheel",li),Mi.current.addEventListener("DOMMouseScroll",ri),Mi.current.addEventListener("MozMousePixelScroll",Jn),function(){Mi.current.removeEventListener("wheel",li),Mi.current.removeEventListener("DOMMouseScroll",ri),Mi.current.removeEventListener("MozMousePixelScroll",Jn)}},[vt]);var wi=Te(Mi,Ai,un,Vt,ke,Wt,Ve,function(){var Jn;(Jn=Ce.current)===null||Jn===void 0||Jn.delayHidden()});I.useImperativeHandle(tt,function(){return{scrollTo:wi}}),Object(I.useLayoutEffect)(function(){if(At){var Jn=Ai.slice(yr,En+1);At(Jn,Ai)}},[yr,En,Ai]);var Gn=Le(Ai,yr,En,_r,cn,Fe),ki=null;return nt&&(ki=ct(zt({},Xt?"height":"maxHeight",nt),Ar),vt&&(ki.overflowY="hidden",Dn&&(ki.pointerEvents="none"))),I.createElement("div",Rt({style:ct(ct({},Rr),{},{position:"relative"}),className:qn},Pt),I.createElement(Jt,{className:"".concat(Re,"-holder"),style:ki,ref:Mi,onScroll:zr},I.createElement(M,{prefixCls:Re,height:kr,offset:kn,onInnerResize:Wt,ref:Ye},Gn)),vt&&I.createElement(Ne,{ref:Ce,prefixCls:Re,scrollTop:ur,height:nt,scrollHeight:kr,count:Ai.length,onScroll:gn,onStartMove:function(){zn(!0)},onStopMove:function(){zn(!1)}}))}var vn=I.forwardRef(hr);vn.displayName="List";var Zr=vn,Ln=k.a=Zr},"+rIm":function(H,k,d){var I=d("bYtY"),E=I.retrieve,T=I.defaults,g=I.extend,S=I.each,m=d("7aKB"),h=d("IwbS"),c=d("Qxkt"),a=d("OELB"),r=a.isRadianAroundZero,i=a.remRadian,n=d("oVpE"),t=n.createSymbol,s=d("Fofx"),e=d("QBsz"),o=e.applyTransform,l=d("aX7z"),u=l.shouldShowAllLabels,f=Math.PI,p=function(R,j){this.opt=j,this.axisModel=R,T(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;var B=new h.Group({position:j.position.slice(),rotation:j.rotation});B.updateTransform(),this._transform=B.transform,this._dumbGroup=B};p.prototype={constructor:p,hasBuilder:function(R){return!!v[R]},add:function(R){v[R].call(this)},getGroup:function(){return this.group}};var v={axisLine:function(){var R=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var B=this.axisModel.axis.getExtent(),K=this._transform,U=[B[0],0],z=[B[1],0];K&&(o(U,U,K),o(z,z,K));var V=g({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new h.Line({anid:"line",subPixelOptimize:!0,shape:{x1:U[0],y1:U[1],x2:z[0],y2:z[1]},style:V,strokeContainThreshold:R.strokeContainThreshold||5,silent:!0,z2:1}));var Y=j.get("axisLine.symbol"),J=j.get("axisLine.symbolSize"),se=j.get("axisLine.symbolOffset")||0;if(typeof se=="number"&&(se=[se,se]),Y!=null){typeof Y=="string"&&(Y=[Y,Y]),(typeof J=="string"||typeof J=="number")&&(J=[J,J]);var $=J[0],ae=J[1];S([{rotate:R.rotation+Math.PI/2,offset:se[0],r:0},{rotate:R.rotation-Math.PI/2,offset:se[1],r:Math.sqrt((U[0]-z[0])*(U[0]-z[0])+(U[1]-z[1])*(U[1]-z[1]))}],function(ge,pe){if(Y[pe]!=="none"&&Y[pe]!=null){var Ne=t(Y[pe],-$/2,-ae/2,$,ae,V.stroke,!0),de=ge.r+ge.offset,Le=[U[0]+de*Math.cos(R.rotation),U[1]-de*Math.sin(R.rotation)];Ne.attr({rotation:ge.rotate,position:Le,silent:!0,z2:11}),this.group.add(Ne)}},this)}},axisTickLabel:function(){var R=this.axisModel,j=this.opt,B=D(this,R,j),K=M(this,R,j);w(R,K,B),N(this,R,j)},axisName:function(){var R=this.opt,j=this.axisModel,B=E(R.axisName,j.get("name"));if(!B)return;var K=j.get("nameLocation"),U=R.nameDirection,z=j.getModel("nameTextStyle"),V=j.get("nameGap")||0,Y=this.axisModel.axis.getExtent(),J=Y[0]>Y[1]?-1:1,se=[K==="start"?Y[0]-J*V:K==="end"?Y[1]+J*V:(Y[0]+Y[1])/2,O(K)?R.labelOffset+U*V:0],$,ae=j.get("nameRotate");ae!=null&&(ae=ae*f/180);var ge;O(K)?$=y(R.rotation,ae!=null?ae:R.rotation,U):($=x(R,K,ae||0,Y),ge=R.axisNameAvailableWidth,ge!=null&&(ge=Math.abs(ge/Math.sin($.rotation)),!isFinite(ge)&&(ge=null)));var pe=z.getFont(),Ne=j.get("nameTruncate",!0)||{},de=Ne.ellipsis,Le=E(R.nameTruncateMaxWidth,Ne.maxWidth,ge),Q=de!=null&&Le!=null?m.truncateText(B,Le,pe,de,{minChar:2,placeholder:Ne.placeholder}):B,ce=j.get("tooltip",!0),Ke=j.mainType,ee={componentType:Ke,name:B,$vars:["name"]};ee[Ke+"Index"]=j.componentIndex;var X=new h.Text({anid:"name",__fullText:B,__truncatedText:Q,position:se,rotation:$.rotation,silent:C(j),z2:1,tooltip:ce&&ce.show?g({content:B,formatter:function(){return B},formatterParams:ee},ce):null});h.setTextStyle(X.style,z,{text:Q,textFont:pe,textFill:z.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:z.get("align")||$.textAlign,textVerticalAlign:z.get("verticalAlign")||$.textVerticalAlign}),j.get("triggerEvent")&&(X.eventData=A(j),X.eventData.targetType="axisName",X.eventData.name=B),this._dumbGroup.add(X),X.updateTransform(),this.group.add(X),X.decomposeTransform()}},A=p.makeAxisEventDataBase=function(R){var j={componentType:R.mainType,componentIndex:R.componentIndex};return j[R.mainType+"Index"]=R.componentIndex,j},y=p.innerTextLayout=function(R,j,B){var K=i(j-R),U,z;return r(K)?(z=B>0?"top":"bottom",U="center"):r(K-f)?(z=B>0?"bottom":"top",U="center"):(z="middle",K>0&&K<f?U=B>0?"right":"left":U=B>0?"left":"right"),{rotation:K,textAlign:U,textVerticalAlign:z}};function x(R,j,B,K){var U=i(B-R.rotation),z,V,Y=K[0]>K[1],J=j==="start"&&!Y||j!=="start"&&Y;return r(U-f/2)?(V=J?"bottom":"top",z="center"):r(U-f*1.5)?(V=J?"top":"bottom",z="center"):(V="middle",U<f*1.5&&U>f/2?z=J?"left":"right":z=J?"right":"left"),{rotation:U,textAlign:z,textVerticalAlign:V}}var C=p.isLabelSilent=function(R){var j=R.get("tooltip");return R.get("silent")||!(R.get("triggerEvent")||j&&j.show)};function w(R,j,B){if(u(R.axis))return;var K=R.get("axisLabel.showMinLabel"),U=R.get("axisLabel.showMaxLabel");j=j||[],B=B||[];var z=j[0],V=j[1],Y=j[j.length-1],J=j[j.length-2],se=B[0],$=B[1],ae=B[B.length-1],ge=B[B.length-2];K===!1?(b(z),b(se)):_(z,V)&&(K?(b(V),b($)):(b(z),b(se))),U===!1?(b(Y),b(ae)):_(J,Y)&&(U?(b(J),b(ge)):(b(Y),b(ae)))}function b(R){R&&(R.ignore=!0)}function _(R,j,B){var K=R&&R.getBoundingRect().clone(),U=j&&j.getBoundingRect().clone();if(!K||!U)return;var z=s.identity([]);return s.rotate(z,z,-R.rotation),K.applyTransform(s.mul([],z,R.getLocalTransform())),U.applyTransform(s.mul([],z,j.getLocalTransform())),K.intersect(U)}function O(R){return R==="middle"||R==="center"}function L(R,j,B,K,U){for(var z=[],V=[],Y=[],J=0;J<R.length;J++){var se=R[J].coord;V[0]=se,V[1]=0,Y[0]=se,Y[1]=B,j&&(o(V,V,j),o(Y,Y,j));var $=new h.Line({anid:U+"_"+R[J].tickValue,subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Y[0],y2:Y[1]},style:K,z2:2,silent:!0});z.push($)}return z}function D(R,j,B){var K=j.axis,U=j.getModel("axisTick");if(!U.get("show")||K.scale.isBlank())return;for(var z=U.getModel("lineStyle"),V=B.tickDirection*U.get("length"),Y=K.getTicksCoords(),J=L(Y,R._transform,V,T(z.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),se=0;se<J.length;se++)R.group.add(J[se]);return J}function N(R,j,B){var K=j.axis,U=j.getModel("minorTick");if(!U.get("show")||K.scale.isBlank())return;var z=K.getMinorTicksCoords();if(!z.length)return;for(var V=U.getModel("lineStyle"),Y=B.tickDirection*U.get("length"),J=T(V.getLineStyle(),T(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),se=0;se<z.length;se++)for(var $=L(z[se],R._transform,Y,J,"minorticks_"+se),ae=0;ae<$.length;ae++)R.group.add($[ae])}function M(R,j,B){var K=j.axis,U=E(B.axisLabelShow,j.get("axisLabel.show"));if(!U||K.scale.isBlank())return;var z=j.getModel("axisLabel"),V=z.get("margin"),Y=K.getViewLabels(),J=(E(B.labelRotate,z.get("rotate"))||0)*f/180,se=y(B.rotation,J,B.labelDirection),$=j.getCategories&&j.getCategories(!0),ae=[],ge=C(j),pe=j.get("triggerEvent");return S(Y,function(Ne,de){var Le=Ne.tickValue,Q=Ne.formattedLabel,ce=Ne.rawLabel,Ke=z;$&&$[Le]&&$[Le].textStyle&&(Ke=new c($[Le].textStyle,z,j.ecModel));var ee=Ke.getTextColor()||j.get("axisLine.lineStyle.color"),X=K.dataToCoord(Le),G=[X,B.labelOffset+B.labelDirection*V],Z=new h.Text({anid:"label_"+Le,position:G,rotation:se.rotation,silent:ge,z2:10});h.setTextStyle(Z.style,Ke,{text:Q,textAlign:Ke.getShallow("align",!0)||se.textAlign,textVerticalAlign:Ke.getShallow("verticalAlign",!0)||Ke.getShallow("baseline",!0)||se.textVerticalAlign,textFill:typeof ee=="function"?ee(K.type==="category"?ce:K.type==="value"?Le+"":Le,de):ee}),pe&&(Z.eventData=A(j),Z.eventData.targetType="axisLabel",Z.eventData.value=ce),R._dumbGroup.add(Z),Z.updateTransform(),ae.push(Z),R.group.add(Z),Z.decomposeTransform()}),ae}var F=p;H.exports=F},"+wW9":function(H,k,d){var I=d("bYtY"),E=I.each,T=I.isArray,g=I.isObject,S=d("JuEJ"),m=d("4NO4"),h=m.normalizeToArray;function c(s,e){e=e.split(",");for(var o=s,l=0;l<e.length&&!(o=o&&o[e[l]],o==null);l++);return o}function a(s,e,o,l){e=e.split(",");for(var u=s,f,p=0;p<e.length-1;p++)f=e[p],u[f]==null&&(u[f]={}),u=u[f];(l||u[e[p]]==null)&&(u[e[p]]=o)}function r(s){E(i,function(e){e[0]in s&&!(e[1]in s)&&(s[e[1]]=s[e[0]])})}var i=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function t(s,e){S(s,e),s.series=h(s.series),E(s.series,function(o){if(!g(o))return;var l=o.type;if(l==="line")o.clipOverflow!=null&&(o.clip=o.clipOverflow);else if(l==="pie"||l==="gauge")o.clockWise!=null&&(o.clockwise=o.clockWise);else if(l==="gauge"){var u=c(o,"pointer.color");u!=null&&a(o,"itemStyle.color",u)}r(o)}),s.dataRange&&(s.visualMap=s.dataRange),E(n,function(o){var l=s[o];l&&(T(l)||(l=[l]),E(l,function(u){r(u)}))})}H.exports=t},"/IIm":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("H6uX"),S=d("IwbS"),m=d("pP6R"),h=d("gPAo"),c=T.curry,a=T.each,r=T.map,i=Math.min,n=Math.max,t=Math.pow,s=1e4,e=6,o=6,l="globalPan",u={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},f={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},p={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},v=0;function A(oe){g.call(this),this._zr=oe,this.group=new S.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+v++,this._handlers={},a(G,function(fe,Te){this._handlers[Te]=T.bind(fe,this)},this)}A.prototype={constructor:A,enableBrush:function(oe){return this._brushType&&x(this),oe.brushType&&y(this,oe),this},setPanels:function(oe){if(oe&&oe.length){var fe=this._panels={};T.each(oe,function(Te){fe[Te.panelId]=T.clone(Te)})}else this._panels=null;return this},mount:function(oe){oe=oe||{},this._enableGlobalPan=oe.enableGlobalPan;var fe=this.group;return this._zr.add(fe),fe.attr({position:oe.position||[0,0],rotation:oe.rotation||0,scale:oe.scale||[1,1]}),this._transform=fe.getLocalTransform(),this},eachCover:function(oe,fe){a(this._covers,oe,fe)},updateCovers:function(oe){oe=T.map(oe,function(xt){return T.merge(T.clone(p),xt,!0)});var fe="\0-brush-index-",Te=this._covers,ze=this._covers=[],it=this,et=this._creatingCover;return new h(Te,oe,gt,Oe).add(Ge).update(Ge).remove(wt).execute(),this;function Oe(xt,Ct){return(xt.id!=null?xt.id:fe+Ct)+"-"+xt.brushType}function gt(xt,Ct){return Oe(xt.__brushOption,Ct)}function Ge(xt,Ct){var Dt=oe[xt];if(Ct!=null&&Te[Ct]===et)ze[xt]=Te[Ct];else{var Ht=ze[xt]=Ct!=null?(Te[Ct].__brushOption=Dt,Te[Ct]):_(it,b(it,Dt));D(it,Ht)}}function wt(xt){Te[xt]!==et&&it.group.remove(Te[xt])}},unmount:function(){return this.enableBrush(!1),R(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},T.mixin(A,g);function y(oe,fe){var Te=oe._zr;oe._enableGlobalPan||m.take(Te,l,oe._uid),C(Te,oe._handlers),oe._brushType=fe.brushType,oe._brushOption=T.merge(T.clone(p),fe,!0)}function x(oe){var fe=oe._zr;m.release(fe,l,oe._uid),w(fe,oe._handlers),oe._brushType=oe._brushOption=null}function C(oe,fe){a(fe,function(Te,ze){oe.on(ze,Te)})}function w(oe,fe){a(fe,function(Te,ze){oe.off(ze,Te)})}function b(oe,fe){var Te=ue[fe.brushType].createCover(oe,fe);return Te.__brushOption=fe,L(Te,fe),oe.group.add(Te),Te}function _(oe,fe){var Te=N(fe);return Te.endCreating&&(Te.endCreating(oe,fe),L(fe,fe.__brushOption)),fe}function O(oe,fe){var Te=fe.__brushOption;N(fe).updateCoverShape(oe,fe,Te.range,Te)}function L(oe,fe){var Te=fe.z;Te==null&&(Te=s),oe.traverse(function(ze){ze.z=Te,ze.z2=Te})}function D(oe,fe){N(fe).updateCommon(oe,fe),O(oe,fe)}function N(oe){return ue[oe.__brushOption.brushType]}function M(oe,fe,Te){var ze=oe._panels;if(!ze)return!0;var it,et=oe._transform;return a(ze,function(Oe){Oe.isTargetByCursor(fe,Te,et)&&(it=Oe)}),it}function F(oe,fe){var Te=oe._panels;if(!Te)return!0;var ze=fe.__brushOption.panelId;return ze!=null?Te[ze]:!0}function R(oe){var fe=oe._covers,Te=fe.length;return a(fe,function(ze){oe.group.remove(ze)},oe),fe.length=0,!!Te}function j(oe,fe){var Te=r(oe._covers,function(ze){var it=ze.__brushOption,et=T.clone(it.range);return{brushType:it.brushType,panelId:it.panelId,range:et}});oe.trigger("brush",Te,{isEnd:!!fe.isEnd,removeOnClick:!!fe.removeOnClick})}function B(oe){var fe=oe._track;if(!fe.length)return!1;var Te=fe[fe.length-1],ze=fe[0],it=Te[0]-ze[0],et=Te[1]-ze[1],Oe=t(it*it+et*et,.5);return Oe>e}function K(oe){var fe=oe.length-1;return fe<0&&(fe=0),[oe[0],oe[fe]]}function U(oe,fe,Te,ze){var it=new S.Group;return it.add(new S.Rect({name:"main",style:J(Te),silent:!0,draggable:!0,cursor:"move",drift:c(oe,fe,it,"nswe"),ondragend:c(j,fe,{isEnd:!0})})),a(ze,function(et){it.add(new S.Rect({name:et,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(oe,fe,it,et),ondragend:c(j,fe,{isEnd:!0})}))}),it}function z(oe,fe,Te,ze){var it=ze.brushStyle.lineWidth||0,et=n(it,o),Oe=Te[0][0],gt=Te[1][0],Ge=Oe-it/2,wt=gt-it/2,xt=Te[0][1],Ct=Te[1][1],Dt=xt-et+it/2,Ht=Ct-et+it/2,Je=xt-Oe,ye=Ct-gt,ie=Je+it,bt=ye+it;Y(oe,fe,"main",Oe,gt,Je,ye),ze.transformable&&(Y(oe,fe,"w",Ge,wt,et,bt),Y(oe,fe,"e",Dt,wt,et,bt),Y(oe,fe,"n",Ge,wt,ie,et),Y(oe,fe,"s",Ge,Ht,ie,et),Y(oe,fe,"nw",Ge,wt,et,et),Y(oe,fe,"ne",Dt,wt,et,et),Y(oe,fe,"sw",Ge,Ht,et,et),Y(oe,fe,"se",Dt,Ht,et,et))}function V(oe,fe){var Te=fe.__brushOption,ze=Te.transformable,it=fe.childAt(0);it.useStyle(J(Te)),it.attr({silent:!ze,cursor:ze?"move":"default"}),a(["w","e","n","s","se","sw","ne","nw"],function(et){var Oe=fe.childOfName(et),gt=ae(oe,et);Oe&&Oe.attr({silent:!ze,invisible:!ze,cursor:ze?f[gt]+"-resize":null})})}function Y(oe,fe,Te,ze,it,et,Oe){var gt=fe.childOfName(Te);gt&>.setShape(Le(de(oe,fe,[[ze,it],[ze+et,it+Oe]])))}function J(oe){return T.defaults({strokeNoScale:!0},oe.brushStyle)}function se(oe,fe,Te,ze){var it=[i(oe,Te),i(fe,ze)],et=[n(oe,Te),n(fe,ze)];return[[it[0],et[0]],[it[1],et[1]]]}function $(oe){return S.getTransform(oe.group)}function ae(oe,fe){if(fe.length>1){fe=fe.split("");var Te=[ae(oe,fe[0]),ae(oe,fe[1])];return(Te[0]==="e"||Te[0]==="w")&&Te.reverse(),Te.join("")}else{var ze={w:"left",e:"right",n:"top",s:"bottom"},it={left:"w",right:"e",top:"n",bottom:"s"},Te=S.transformDirection(ze[fe],$(oe));return it[Te]}}function ge(oe,fe,Te,ze,it,et,Oe,gt){var Ge=ze.__brushOption,wt=oe(Ge.range),xt=Ne(Te,et,Oe);a(it.split(""),function(Ct){var Dt=u[Ct];wt[Dt[0]][Dt[1]]+=xt[Dt[0]]}),Ge.range=fe(se(wt[0][0],wt[1][0],wt[0][1],wt[1][1])),D(Te,ze),j(Te,{isEnd:!1})}function pe(oe,fe,Te,ze,it){var et=fe.__brushOption.range,Oe=Ne(oe,Te,ze);a(et,function(gt){gt[0]+=Oe[0],gt[1]+=Oe[1]}),D(oe,fe),j(oe,{isEnd:!1})}function Ne(oe,fe,Te){var ze=oe.group,it=ze.transformCoordToLocal(fe,Te),et=ze.transformCoordToLocal(0,0);return[it[0]-et[0],it[1]-et[1]]}function de(oe,fe,Te){var ze=F(oe,fe);return ze&&ze!==!0?ze.clipPath(Te,oe._transform):T.clone(Te)}function Le(oe){var fe=i(oe[0][0],oe[1][0]),Te=i(oe[0][1],oe[1][1]),ze=n(oe[0][0],oe[1][0]),it=n(oe[0][1],oe[1][1]);return{x:fe,y:Te,width:ze-fe,height:it-Te}}function Q(oe,fe,Te){if(!oe._brushType||ve(oe,fe))return;var ze=oe._zr,it=oe._covers,et=M(oe,fe,Te);if(!oe._dragging)for(var Oe=0;Oe<it.length;Oe++){var gt=it[Oe].__brushOption;if(et&&(et===!0||gt.panelId===et.panelId)&&ue[gt.brushType].contain(it[Oe],Te[0],Te[1]))return}et&&ze.setCursorStyle("crosshair")}function ce(oe){var fe=oe.event;fe.preventDefault&&fe.preventDefault()}function Ke(oe,fe,Te){return oe.childOfName("main").contain(fe,Te)}function ee(oe,fe,Te,ze){var it=oe._creatingCover,et=oe._creatingPanel,Oe=oe._brushOption,gt;if(oe._track.push(Te.slice()),B(oe)||it){if(et&&!it){Oe.brushMode==="single"&&R(oe);var Ge=T.clone(Oe);Ge.brushType=X(Ge.brushType,et),Ge.panelId=et===!0?null:et.panelId,it=oe._creatingCover=b(oe,Ge),oe._covers.push(it)}if(it){var wt=ue[X(oe._brushType,et)],xt=it.__brushOption;xt.range=wt.getCreatingRange(de(oe,it,oe._track)),ze&&(_(oe,it),wt.updateCommon(oe,it)),O(oe,it),gt={isEnd:ze}}}else ze&&Oe.brushMode==="single"&&Oe.removeOnClick&&(M(oe,fe,Te)&&R(oe)&&(gt={isEnd:ze,removeOnClick:!0}));return gt}function X(oe,fe){return oe==="auto"?fe.defaultBrushType:oe}var G={mousedown:function(oe){if(this._dragging)Z(this,oe);else if(!oe.target||!oe.target.draggable){ce(oe);var fe=this.group.transformCoordToLocal(oe.offsetX,oe.offsetY);this._creatingCover=null;var Te=this._creatingPanel=M(this,oe,fe);Te&&(this._dragging=!0,this._track=[fe.slice()])}},mousemove:function(oe){var fe=oe.offsetX,Te=oe.offsetY,ze=this.group.transformCoordToLocal(fe,Te);if(Q(this,oe,ze),this._dragging){ce(oe);var it=ee(this,oe,ze,!1);it&&j(this,it)}},mouseup:function(oe){Z(this,oe)}};function Z(oe,fe){if(oe._dragging){ce(fe);var Te=fe.offsetX,ze=fe.offsetY,it=oe.group.transformCoordToLocal(Te,ze),et=ee(oe,fe,it,!0);oe._dragging=!1,oe._track=[],oe._creatingCover=null,et&&j(oe,et)}}function ve(oe,fe,Te){var ze=oe._zr;return fe<0||fe>ze.getWidth()||Te<0||Te>ze.getHeight()}var ue={lineX:_e(0),lineY:_e(1),rect:{createCover:function(oe,fe){return U(c(ge,function(Te){return Te},function(Te){return Te}),oe,fe,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(oe){var fe=K(oe);return se(fe[1][0],fe[1][1],fe[0][0],fe[0][1])},updateCoverShape:function(oe,fe,Te,ze){z(oe,fe,Te,ze)},updateCommon:V,contain:Ke},polygon:{createCover:function(oe,fe){var Te=new S.Group;return Te.add(new S.Polyline({name:"main",style:J(fe),silent:!0})),Te},getCreatingRange:function(oe){return oe},endCreating:function(oe,fe){fe.remove(fe.childAt(0)),fe.add(new S.Polygon({name:"main",draggable:!0,drift:c(pe,oe,fe),ondragend:c(j,oe,{isEnd:!0})}))},updateCoverShape:function(oe,fe,Te,ze){fe.childAt(0).setShape({points:de(oe,fe,Te)})},updateCommon:V,contain:Ke}};function _e(oe){return{createCover:function(fe,Te){return U(c(ge,function(ze){var it=[ze,[0,100]];return oe&&it.reverse(),it},function(ze){return ze[oe]}),fe,Te,[["w","e"],["n","s"]][oe])},getCreatingRange:function(fe){var Te=K(fe),ze=i(Te[0][oe],Te[1][oe]),it=n(Te[0][oe],Te[1][oe]);return[ze,it]},updateCoverShape:function(fe,Te,ze,it){var et,Oe=F(fe,Te);if(Oe!==!0&&Oe.getLinearBrushOtherExtent)et=Oe.getLinearBrushOtherExtent(oe,fe._transform);else{var gt=fe._zr;et=[0,[gt.getWidth(),gt.getHeight()][1-oe]]}var Ge=[ze,et];oe&&Ge.reverse(),z(fe,Te,Ge,it)},updateCommon:V,contain:Ke}}var xe=A;H.exports=xe},"/MfK":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="DeleteOutlined";var h=k.a=E.forwardRef(m)},"/POA":function(H,k,d){!function(I,E){if(!0)H.exports=E();else var T,g}(window,function(){return function(I){var E={};function T(g){if(E[g])return E[g].exports;var S=E[g]={i:g,l:!1,exports:{}};return I[g].call(S.exports,S,S.exports,T),S.l=!0,S.exports}return T.m=I,T.c=E,T.d=function(g,S,m){T.o(g,S)||Object.defineProperty(g,S,{enumerable:!0,get:m})},T.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},T.t=function(g,S){if(1&S&&(g=T(g)),8&S)return g;if(4&S&&typeof g=="object"&&g&&g.__esModule)return g;var m=Object.create(null);if(T.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:g}),2&S&&typeof g!="string")for(var h in g)T.d(m,h,function(c){return g[c]}.bind(null,h));return m},T.n=function(g){var S=g&&g.__esModule?function(){return g.default}:function(){return g};return T.d(S,"a",S),S},T.o=function(g,S){return Object.prototype.hasOwnProperty.call(g,S)},T.p="",T(T.s=34)}([function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.forwardEvent=E.EventEmitter=void 0;var g=function(){function S(){this._listeners=[],this._disposed=!1}return Object.defineProperty(S.prototype,"event",{get:function(){var h=this;return this._event||(this._event=function(c){return h._listeners.push(c),{dispose:function(){if(!h._disposed){for(var r=0;r<h._listeners.length;r++)if(h._listeners[r]===c)return void h._listeners.splice(r,1)}}}}),this._event},enumerable:!1,configurable:!0}),S.prototype.fire=function(m,h){for(var c=[],a=0;a<this._listeners.length;a++)c.push(this._listeners[a]);for(a=0;a<c.length;a++)c[a].call(void 0,m,h)},S.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},S}();E.EventEmitter=g,E.forwardEvent=function(S,m){return S(function(h){return m.fire(h)})}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.IUnicodeService=E.IOptionsService=E.ILogService=E.IInstantiationService=E.IDirtyRowService=E.ICharsetService=E.ICoreService=E.ICoreMouseService=E.IBufferService=void 0;var g=T(14);E.IBufferService=g.createDecorator("BufferService"),E.ICoreMouseService=g.createDecorator("CoreMouseService"),E.ICoreService=g.createDecorator("CoreService"),E.ICharsetService=g.createDecorator("CharsetService"),E.IDirtyRowService=g.createDecorator("DirtyRowService"),E.IInstantiationService=g.createDecorator("InstantiationService"),E.ILogService=g.createDecorator("LogService"),E.IOptionsService=g.createDecorator("OptionsService"),E.IUnicodeService=g.createDecorator("UnicodeService")},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.getDisposeArrayDisposable=E.disposeArray=E.Disposable=void 0;var g=function(){function m(){this._disposables=[],this._isDisposed=!1}return m.prototype.dispose=function(){this._isDisposed=!0;for(var h=0,c=this._disposables;h<c.length;h++)c[h].dispose();this._disposables.length=0},m.prototype.register=function(h){return this._disposables.push(h),h},m.prototype.unregister=function(h){var c=this._disposables.indexOf(h);c!==-1&&this._disposables.splice(c,1)},m}();function S(m){for(var h=0,c=m;h<c.length;h++)c[h].dispose();m.length=0}E.Disposable=g,E.disposeArray=S,E.getDisposeArrayDisposable=function(m){return{dispose:function(){return S(m)}}}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.WHITESPACE_CELL_CODE=E.WHITESPACE_CELL_WIDTH=E.WHITESPACE_CELL_CHAR=E.NULL_CELL_CODE=E.NULL_CELL_WIDTH=E.NULL_CELL_CHAR=E.CHAR_DATA_CODE_INDEX=E.CHAR_DATA_WIDTH_INDEX=E.CHAR_DATA_CHAR_INDEX=E.CHAR_DATA_ATTR_INDEX=E.DEFAULT_ATTR=E.DEFAULT_COLOR=void 0,E.DEFAULT_COLOR=256,E.DEFAULT_ATTR=256|E.DEFAULT_COLOR<<9,E.CHAR_DATA_ATTR_INDEX=0,E.CHAR_DATA_CHAR_INDEX=1,E.CHAR_DATA_WIDTH_INDEX=2,E.CHAR_DATA_CODE_INDEX=3,E.NULL_CELL_CHAR="",E.NULL_CELL_WIDTH=1,E.NULL_CELL_CODE=0,E.WHITESPACE_CELL_CHAR=" ",E.WHITESPACE_CELL_WIDTH=1,E.WHITESPACE_CELL_CODE=32},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(i,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var e in s)s.hasOwnProperty(e)&&(t[e]=s[e])})(i,n)},function(r,i){function n(){this.constructor=r}g(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.CellData=void 0;var m=T(8),h=T(3),c=T(6),a=function(r){function i(){var n=r!==null&&r.apply(this,arguments)||this;return n.content=0,n.fg=0,n.bg=0,n.extended=new c.ExtendedAttrs,n.combinedData="",n}return S(i,r),i.fromCharData=function(n){var t=new i;return t.setFromCharData(n),t},i.prototype.isCombined=function(){return 2097152&this.content},i.prototype.getWidth=function(){return this.content>>22},i.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?m.stringFromCodePoint(2097151&this.content):""},i.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},i.prototype.setFromCharData=function(n){this.fg=n[h.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(n[h.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(n[h.CHAR_DATA_CHAR_INDEX].length===2){var s=n[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=s&&s<=56319){var e=n[h.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=e&&e<=57343?this.content=1024*(s-55296)+e-56320+65536|n[h.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=n[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[h.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=n[h.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[h.CHAR_DATA_WIDTH_INDEX]<<22)},i.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},i}(c.AttributeData);E.CellData=a},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ISoundService=E.ISelectionService=E.IRenderService=E.IMouseService=E.ICoreBrowserService=E.ICharSizeService=void 0;var g=T(14);E.ICharSizeService=g.createDecorator("CharSizeService"),E.ICoreBrowserService=g.createDecorator("CoreBrowserService"),E.IMouseService=g.createDecorator("MouseService"),E.IRenderService=g.createDecorator("RenderService"),E.ISelectionService=g.createDecorator("SelectionService"),E.ISoundService=g.createDecorator("SoundService")},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ExtendedAttrs=E.AttributeData=void 0;var g=function(){function m(){this.fg=0,this.bg=0,this.extended=new S}return m.toColorRGB=function(h){return[h>>>16&255,h>>>8&255,255&h]},m.fromColorRGB=function(h){return(255&h[0])<<16|(255&h[1])<<8|255&h[2]},m.prototype.clone=function(){var h=new m;return h.fg=this.fg,h.bg=this.bg,h.extended=this.extended.clone(),h},m.prototype.isInverse=function(){return 67108864&this.fg},m.prototype.isBold=function(){return 134217728&this.fg},m.prototype.isUnderline=function(){return 268435456&this.fg},m.prototype.isBlink=function(){return 536870912&this.fg},m.prototype.isInvisible=function(){return 1073741824&this.fg},m.prototype.isItalic=function(){return 67108864&this.bg},m.prototype.isDim=function(){return 134217728&this.bg},m.prototype.getFgColorMode=function(){return 50331648&this.fg},m.prototype.getBgColorMode=function(){return 50331648&this.bg},m.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},m.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},m.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},m.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},m.prototype.isFgDefault=function(){return(50331648&this.fg)==0},m.prototype.isBgDefault=function(){return(50331648&this.bg)==0},m.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},m.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},m.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},m.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},m.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},m.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()},m.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},m.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},m.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},m.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},m.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},m}();E.AttributeData=g;var S=function(){function m(h,c){h===void 0&&(h=0),c===void 0&&(c=-1),this.underlineStyle=h,this.underlineColor=c}return m.prototype.clone=function(){return new m(this.underlineStyle,this.underlineColor)},m.prototype.isEmpty=function(){return this.underlineStyle===0},m}();E.ExtendedAttrs=S},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.addDisposableDomListener=void 0,E.addDisposableDomListener=function(g,S,m,h){g.addEventListener(S,m,h);var c=!1;return{dispose:function(){c||(c=!0,g.removeEventListener(S,m,h))}}}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Utf8ToUtf32=E.StringToUtf32=E.utf32ToString=E.stringFromCodePoint=void 0,E.stringFromCodePoint=function(m){return m>65535?(m-=65536,String.fromCharCode(55296+(m>>10))+String.fromCharCode(m%1024+56320)):String.fromCharCode(m)},E.utf32ToString=function(m,h,c){h===void 0&&(h=0),c===void 0&&(c=m.length);for(var a="",r=h;r<c;++r){var i=m[r];i>65535?(i-=65536,a+=String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):a+=String.fromCharCode(i)}return a};var g=function(){function m(){this._interim=0}return m.prototype.clear=function(){this._interim=0},m.prototype.decode=function(h,c){var a=h.length;if(!a)return 0;var r=0,i=0;this._interim&&(56320<=(s=h.charCodeAt(i++))&&s<=57343?c[r++]=1024*(this._interim-55296)+s-56320+65536:(c[r++]=this._interim,c[r++]=s),this._interim=0);for(var n=i;n<a;++n){var t=h.charCodeAt(n);if(55296<=t&&t<=56319){if(++n>=a)return this._interim=t,r;var s;56320<=(s=h.charCodeAt(n))&&s<=57343?c[r++]=1024*(t-55296)+s-56320+65536:(c[r++]=t,c[r++]=s)}else c[r++]=t}return r},m}();E.StringToUtf32=g;var S=function(){function m(){this.interim=new Uint8Array(3)}return m.prototype.clear=function(){this.interim.fill(0)},m.prototype.decode=function(h,c){var a=h.length;if(!a)return 0;var r,i,n,t,s=0,e=0,o=0;if(this.interim[0]){var l=!1,u=this.interim[0];u&=(224&u)==192?31:(240&u)==224?15:7;for(var f=0,p=void 0;(p=63&this.interim[++f])&&f<4;)u<<=6,u|=p;for(var v=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,A=v-f;o<A;){if(o>=a)return 0;if((192&(p=h[o++]))!=128){o--,l=!0;break}this.interim[f++]=p,u<<=6,u|=63&p}l||(v===2?u<128?o--:c[s++]=u:v===3?u<2048||u>=55296&&u<=57343||(c[s++]=u):u<65536||u>1114111||(c[s++]=u)),this.interim.fill(0)}for(var y=a-4,x=o;x<a;){for(;!(!(x<y)||128&(r=h[x])||128&(i=h[x+1])||128&(n=h[x+2])||128&(t=h[x+3]));)c[s++]=r,c[s++]=i,c[s++]=n,c[s++]=t,x+=4;if((r=h[x++])<128)c[s++]=r;else if((224&r)==192){if(x>=a)return this.interim[0]=r,s;if((192&(i=h[x++]))!=128){x--;continue}if((e=(31&r)<<6|63&i)<128){x--;continue}c[s++]=e}else if((240&r)==224){if(x>=a)return this.interim[0]=r,s;if((192&(i=h[x++]))!=128){x--;continue}if(x>=a)return this.interim[0]=r,this.interim[1]=i,s;if((192&(n=h[x++]))!=128){x--;continue}if((e=(15&r)<<12|(63&i)<<6|63&n)<2048||e>=55296&&e<=57343)continue;c[s++]=e}else if((248&r)==240){if(x>=a)return this.interim[0]=r,s;if((192&(i=h[x++]))!=128){x--;continue}if(x>=a)return this.interim[0]=r,this.interim[1]=i,s;if((192&(n=h[x++]))!=128){x--;continue}if(x>=a)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=n,s;if((192&(t=h[x++]))!=128){x--;continue}if((e=(7&r)<<18|(63&i)<<12|(63&n)<<6|63&t)<65536||e>1114111)continue;c[s++]=e}}return s},m}();E.Utf8ToUtf32=S},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CHAR_ATLAS_CELL_SPACING=E.DIM_OPACITY=E.INVERTED_DEFAULT_COLOR=void 0,E.INVERTED_DEFAULT_COLOR=257,E.DIM_OPACITY=.5,E.CHAR_ATLAS_CELL_SPACING=1},function(I,E,T){"use strict";var g,S,m,h;function c(r){var i=r.toString(16);return i.length<2?"0"+i:i}function a(r,i){return r<i?(i+.05)/(r+.05):(r+.05)/(i+.05)}Object.defineProperty(E,"__esModule",{value:!0}),E.contrastRatio=E.toPaddedHex=E.rgba=E.rgb=E.css=E.color=E.channels=void 0,function(r){r.toCss=function(i,n,t,s){return s!==void 0?"#"+c(i)+c(n)+c(t)+c(s):"#"+c(i)+c(n)+c(t)},r.toRgba=function(i,n,t,s){return s===void 0&&(s=255),(i<<24|n<<16|t<<8|s)>>>0}}(g=E.channels||(E.channels={})),(S=E.color||(E.color={})).blend=function(r,i){var n=(255&i.rgba)/255;if(n===1)return{css:i.css,rgba:i.rgba};var t=i.rgba>>24&255,s=i.rgba>>16&255,e=i.rgba>>8&255,o=r.rgba>>24&255,l=r.rgba>>16&255,u=r.rgba>>8&255,f=o+Math.round((t-o)*n),p=l+Math.round((s-l)*n),v=u+Math.round((e-u)*n);return{css:g.toCss(f,p,v),rgba:g.toRgba(f,p,v)}},S.isOpaque=function(r){return(255&r.rgba)==255},S.ensureContrastRatio=function(r,i,n){var t=h.ensureContrastRatio(r.rgba,i.rgba,n);if(t)return h.toColor(t>>24&255,t>>16&255,t>>8&255)},S.opaque=function(r){var i=(255|r.rgba)>>>0,n=h.toChannels(i),t=n[0],s=n[1],e=n[2];return{css:g.toCss(t,s,e),rgba:i}},S.opacity=function(r,i){var n=Math.round(255*i),t=h.toChannels(r.rgba),s=t[0],e=t[1],o=t[2];return{css:g.toCss(s,e,o,n),rgba:g.toRgba(s,e,o,n)}},(E.css||(E.css={})).toColor=function(r){switch(r.length){case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(r){function i(n,t,s){var e=n/255,o=t/255,l=s/255;return .2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))}r.relativeLuminance=function(n){return i(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=i}(m=E.rgb||(E.rgb={})),function(r){function i(t,s,e){for(var o=t>>24&255,l=t>>16&255,u=t>>8&255,f=s>>24&255,p=s>>16&255,v=s>>8&255,A=a(m.relativeLuminance2(f,v,p),m.relativeLuminance2(o,l,u));A<e&&(f>0||p>0||v>0);)f-=Math.max(0,Math.ceil(.1*f)),p-=Math.max(0,Math.ceil(.1*p)),v-=Math.max(0,Math.ceil(.1*v)),A=a(m.relativeLuminance2(f,v,p),m.relativeLuminance2(o,l,u));return(f<<24|p<<16|v<<8|255)>>>0}function n(t,s,e){for(var o=t>>24&255,l=t>>16&255,u=t>>8&255,f=s>>24&255,p=s>>16&255,v=s>>8&255,A=a(m.relativeLuminance2(f,v,p),m.relativeLuminance2(o,l,u));A<e&&(f<255||p<255||v<255);)f=Math.min(255,f+Math.ceil(.1*(255-f))),p=Math.min(255,p+Math.ceil(.1*(255-p))),v=Math.min(255,v+Math.ceil(.1*(255-v))),A=a(m.relativeLuminance2(f,v,p),m.relativeLuminance2(o,l,u));return(f<<24|p<<16|v<<8|255)>>>0}r.ensureContrastRatio=function(t,s,e){var o=m.relativeLuminance(t>>8),l=m.relativeLuminance(s>>8);if(a(o,l)<e)return l<o?i(t,s,e):n(t,s,e)},r.reduceLuminance=i,r.increaseLuminance=n,r.toChannels=function(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]},r.toColor=function(t,s,e){return{css:g.toCss(t,s,e),rgba:g.toRgba(t,s,e)}}}(h=E.rgba||(E.rgba={})),E.toPaddedHex=c,E.contrastRatio=a},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.isLinux=E.isWindows=E.isIphone=E.isIpad=E.isMac=E.isSafari=E.isFirefox=void 0;var g=typeof navigator=="undefined",S=g?"node":navigator.userAgent,m=g?"node":navigator.platform;function h(c,a){return c.indexOf(a)>=0}E.isFirefox=!!~S.indexOf("Firefox"),E.isSafari=/^((?!chrome|android).)*safari/i.test(S),E.isMac=h(["Macintosh","MacIntel","MacPPC","Mac68K"],m),E.isIpad=m==="iPad",E.isIphone=m==="iPhone",E.isWindows=h(["Windows","Win16","Win32","WinCE"],m),E.isLinux=m.indexOf("Linux")>=0},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.C1=E.C0=void 0,function(g){g.NUL="\0",g.SOH="",g.STX="",g.ETX="",g.EOT="",g.ENQ="",g.ACK="",g.BEL="\x07",g.BS="\b",g.HT=" ",g.LF=`
|
|
|
`,g.VT="\v",g.FF="\f",g.CR="\r",g.SO="",g.SI="",g.DLE="",g.DC1="",g.DC2="",g.DC3="",g.DC4="",g.NAK="",g.SYN="",g.ETB="",g.CAN="",g.EM="",g.SUB="",g.ESC="",g.FS="",g.GS="",g.RS="",g.US="",g.SP=" ",g.DEL="\x7F"}(E.C0||(E.C0={})),function(g){g.PAD="\x80",g.HOP="\x81",g.BPH="\x82",g.NBH="\x83",g.IND="\x84",g.NEL="\x85",g.SSA="\x86",g.ESA="\x87",g.HTS="\x88",g.HTJ="\x89",g.VTS="\x8A",g.PLD="\x8B",g.PLU="\x8C",g.RI="\x8D",g.SS2="\x8E",g.SS3="\x8F",g.DCS="\x90",g.PU1="\x91",g.PU2="\x92",g.STS="\x93",g.CCH="\x94",g.MW="\x95",g.SPA="\x96",g.EPA="\x97",g.SOS="\x98",g.SGCI="\x99",g.SCI="\x9A",g.CSI="\x9B",g.ST="\x9C",g.OSC="\x9D",g.PM="\x9E",g.APC="\x9F"}(E.C1||(E.C1={}))},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BaseRenderLayer=void 0;var g=T(3),S=T(9),m=T(25),h=T(6),c=T(28),a=T(10),r=T(17),i=function(){function n(t,s,e,o,l,u,f,p){this._container=t,this._alpha=o,this._colors=l,this._rendererId=u,this._bufferService=f,this._optionsService=p,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-"+s+"-layer"),this._canvas.style.zIndex=e.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var t;r.removeElementFromParent(this._canvas),(t=this._charAtlas)===null||t===void 0||t.dispose()},n.prototype._initCanvas=function(){this._ctx=c.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},n.prototype.onOptionsChanged=function(){},n.prototype.onBlur=function(){},n.prototype.onFocus=function(){},n.prototype.onCursorMove=function(){},n.prototype.onGridChanged=function(t,s){},n.prototype.onSelectionChanged=function(t,s,e){e===void 0&&(e=!1)},n.prototype.setColors=function(t){this._refreshCharAtlas(t)},n.prototype._setTransparency=function(t){if(t!==this._alpha){var s=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,s),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},n.prototype._refreshCharAtlas=function(t){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=m.acquireCharAtlas(this._optionsService.options,this._rendererId,t,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},n.prototype.resize=function(t){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},n.prototype._fillCells=function(t,s,e,o){this._ctx.fillRect(t*this._scaledCellWidth,s*this._scaledCellHeight,e*this._scaledCellWidth,o*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(t,s,e){e===void 0&&(e=1),this._ctx.fillRect(t*this._scaledCellWidth,(s+1)*this._scaledCellHeight-window.devicePixelRatio-1,e*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(t,s,e){this._ctx.fillRect(t*this._scaledCellWidth,s*this._scaledCellHeight,window.devicePixelRatio*e,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(t,s,e,o){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(t*this._scaledCellWidth+window.devicePixelRatio/2,s*this._scaledCellHeight+window.devicePixelRatio/2,e*this._scaledCellWidth-window.devicePixelRatio,o*this._scaledCellHeight-window.devicePixelRatio)},n.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))},n.prototype._clearCells=function(t,s,e,o){this._alpha?this._ctx.clearRect(t*this._scaledCellWidth,s*this._scaledCellHeight,e*this._scaledCellWidth,o*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(t*this._scaledCellWidth,s*this._scaledCellHeight,e*this._scaledCellWidth,o*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(t,s,e){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(e),this._ctx.fillText(t.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(t,s,e){var o,l,u=this._getContrastColor(t);u||t.isFgRGB()||t.isBgRGB()?this._drawUncachedChars(t,s,e,u):(t.isInverse()?(o=t.isBgDefault()?S.INVERTED_DEFAULT_COLOR:t.getBgColor(),l=t.isFgDefault()?S.INVERTED_DEFAULT_COLOR:t.getFgColor()):(l=t.isBgDefault()?g.DEFAULT_COLOR:t.getBgColor(),o=t.isFgDefault()?g.DEFAULT_COLOR:t.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&t.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=t.getChars()||g.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=t.getCode()||g.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=l,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!t.isBold(),this._currentGlyphIdentifier.dim=!!t.isDim(),this._currentGlyphIdentifier.italic=!!t.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(t,s,e))},n.prototype._drawUncachedChars=function(t,s,e,o){if(this._ctx.save(),this._ctx.font=this._getFont(!!t.isBold(),!!t.isItalic()),this._ctx.textBaseline="middle",t.isInverse())if(o)this._ctx.fillStyle=o.css;else if(t.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(t.isBgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(t.getBgColor()).join(",")+")";else{var l=t.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&t.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(o)this._ctx.fillStyle=o.css;else if(t.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(t.isFgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(t.getFgColor()).join(",")+")";else{var u=t.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&t.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}this._clipRow(e),t.isDim()&&(this._ctx.globalAlpha=S.DIM_OPACITY),this._ctx.fillText(t.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.prototype._getFont=function(t,s){return(s?"italic":"")+" "+(t?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},n.prototype._getContrastColor=function(t){if(this._optionsService.options.minimumContrastRatio!==1){var s=this._colors.contrastCache.getColor(t.bg,t.fg);if(s!==void 0)return s||void 0;var e=t.getFgColor(),o=t.getFgColorMode(),l=t.getBgColor(),u=t.getBgColorMode(),f=!!t.isInverse(),p=!!t.isInverse();if(f){var v=e;e=l,l=v;var A=o;o=u,u=A}var y=this._resolveBackgroundRgba(u,l,f),x=this._resolveForegroundRgba(o,e,f,p),C=a.rgba.ensureContrastRatio(y,x,this._optionsService.options.minimumContrastRatio);if(C){var w={css:a.channels.toCss(C>>24&255,C>>16&255,C>>8&255),rgba:C};return this._colors.contrastCache.setColor(t.bg,t.fg,w),w}this._colors.contrastCache.setColor(t.bg,t.fg,null)}},n.prototype._resolveBackgroundRgba=function(t,s,e){switch(t){case 16777216:case 33554432:return this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return e?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(t,s,e,o){switch(t){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&o&&s<8&&(s+=8),this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return e?this._colors.background.rgba:this._colors.foreground.rgba}},n}();E.BaseRenderLayer=i},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.createDecorator=E.getServiceDependencies=E.serviceRegistry=void 0;function g(S,m,h){m.di$target===m?m.di$dependencies.push({id:S,index:h}):(m.di$dependencies=[{id:S,index:h}],m.di$target=m)}E.serviceRegistry=new Map,E.getServiceDependencies=function(S){return S.di$dependencies||[]},E.createDecorator=function(S){if(E.serviceRegistry.has(S))return E.serviceRegistry.get(S);var m=function h(c,a,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");g(h,c,r)};return m.toString=function(){return S},E.serviceRegistry.set(S,m),m}},function(I,E,T){"use strict";function g(S,m,h,c){if(h===void 0&&(h=0),c===void 0&&(c=S.length),h>=S.length)return S;h=(S.length+h)%S.length,c=c>=S.length?S.length:(S.length+c)%S.length;for(var a=h;a<c;++a)S[a]=m;return S}Object.defineProperty(E,"__esModule",{value:!0}),E.concat=E.fillFallback=E.fill=void 0,E.fill=function(S,m,h,c){return S.fill?S.fill(m,h,c):g(S,m,h,c)},E.fillFallback=g,E.concat=function(S,m){var h=new S.constructor(S.length+m.length);return h.set(S),h.set(m,S.length),h}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BufferLine=E.DEFAULT_ATTR_DATA=void 0;var g=T(8),S=T(3),m=T(4),h=T(6);E.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);var c=function(){function a(r,i,n){n===void 0&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*r);for(var t=i||m.CellData.fromCharData([0,S.NULL_CELL_CHAR,S.NULL_CELL_WIDTH,S.NULL_CELL_CODE]),s=0;s<r;++s)this.setCell(s,t);this.length=r}return a.prototype.get=function(r){var i=this._data[3*r+0],n=2097151&i;return[this._data[3*r+1],2097152&i?this._combined[r]:n?g.stringFromCodePoint(n):"",i>>22,2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):n]},a.prototype.set=function(r,i){this._data[3*r+1]=i[S.CHAR_DATA_ATTR_INDEX],i[S.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=i[1],this._data[3*r+0]=2097152|r|i[S.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=i[S.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[S.CHAR_DATA_WIDTH_INDEX]<<22},a.prototype.getWidth=function(r){return this._data[3*r+0]>>22},a.prototype.hasWidth=function(r){return 12582912&this._data[3*r+0]},a.prototype.getFg=function(r){return this._data[3*r+1]},a.prototype.getBg=function(r){return this._data[3*r+2]},a.prototype.hasContent=function(r){return 4194303&this._data[3*r+0]},a.prototype.getCodePoint=function(r){var i=this._data[3*r+0];return 2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):2097151&i},a.prototype.isCombined=function(r){return 2097152&this._data[3*r+0]},a.prototype.getString=function(r){var i=this._data[3*r+0];return 2097152&i?this._combined[r]:2097151&i?g.stringFromCodePoint(2097151&i):""},a.prototype.loadCell=function(r,i){var n=3*r;return i.content=this._data[n+0],i.fg=this._data[n+1],i.bg=this._data[n+2],2097152&i.content&&(i.combinedData=this._combined[r]),268435456&i.bg&&(i.extended=this._extendedAttrs[r]),i},a.prototype.setCell=function(r,i){2097152&i.content&&(this._combined[r]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[r]=i.extended),this._data[3*r+0]=i.content,this._data[3*r+1]=i.fg,this._data[3*r+2]=i.bg},a.prototype.setCellFromCodePoint=function(r,i,n,t,s,e){268435456&s&&(this._extendedAttrs[r]=e),this._data[3*r+0]=i|n<<22,this._data[3*r+1]=t,this._data[3*r+2]=s},a.prototype.addCodepointToCell=function(r,i){var n=this._data[3*r+0];2097152&n?this._combined[r]+=g.stringFromCodePoint(i):(2097151&n?(this._combined[r]=g.stringFromCodePoint(2097151&n)+g.stringFromCodePoint(i),n&=-2097152,n|=2097152):n=i|1<<22,this._data[3*r+0]=n)},a.prototype.insertCells=function(r,i,n,t){if((r%=this.length)&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(t==null?void 0:t.fg)||0,(t==null?void 0:t.bg)||0,(t==null?void 0:t.extended)||new h.ExtendedAttrs),i<this.length-r){for(var s=new m.CellData,e=this.length-r-i-1;e>=0;--e)this.setCell(r+i+e,this.loadCell(r+e,s));for(e=0;e<i;++e)this.setCell(r+e,n)}else for(e=r;e<this.length;++e)this.setCell(e,n);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(t==null?void 0:t.fg)||0,(t==null?void 0:t.bg)||0,(t==null?void 0:t.extended)||new h.ExtendedAttrs)},a.prototype.deleteCells=function(r,i,n,t){if(r%=this.length,i<this.length-r){for(var s=new m.CellData,e=0;e<this.length-r-i;++e)this.setCell(r+e,this.loadCell(r+i+e,s));for(e=this.length-i;e<this.length;++e)this.setCell(e,n)}else for(e=r;e<this.length;++e)this.setCell(e,n);r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(t==null?void 0:t.fg)||0,(t==null?void 0:t.bg)||0,(t==null?void 0:t.extended)||new h.ExtendedAttrs),this.getWidth(r)!==0||this.hasContent(r)||this.setCellFromCodePoint(r,0,1,(t==null?void 0:t.fg)||0,(t==null?void 0:t.bg)||0,(t==null?void 0:t.extended)||new h.ExtendedAttrs)},a.prototype.replaceCells=function(r,i,n,t){for(r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(t==null?void 0:t.fg)||0,(t==null?void 0:t.bg)||0,(t==null?void 0:t.extended)||new h.ExtendedAttrs),i<this.length&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i,0,1,(t==null?void 0:t.fg)||0,(t==null?void 0:t.bg)||0,(t==null?void 0:t.extended)||new h.ExtendedAttrs);r<i&&r<this.length;)this.setCell(r++,n)},a.prototype.resize=function(r,i){if(r!==this.length){if(r>this.length){var n=new Uint32Array(3*r);this.length&&(3*r<this._data.length?n.set(this._data.subarray(0,3*r)):n.set(this._data)),this._data=n;for(var t=this.length;t<r;++t)this.setCell(t,i)}else if(r){(n=new Uint32Array(3*r)).set(this._data.subarray(0,3*r)),this._data=n;var s=Object.keys(this._combined);for(t=0;t<s.length;t++){var e=parseInt(s[t],10);e>=r&&delete this._combined[e]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},a.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var i=0;i<this.length;++i)this.setCell(i,r)},a.prototype.copyFrom=function(r){for(var i in this.length!==r.length?this._data=new Uint32Array(r._data):this._data.set(r._data),this.length=r.length,this._combined={},r._combined)this._combined[i]=r._combined[i];for(var i in this._extendedAttrs={},r._extendedAttrs)this._extendedAttrs[i]=r._extendedAttrs[i];this.isWrapped=r.isWrapped},a.prototype.clone=function(){var r=new a(0);for(var i in r._data=new Uint32Array(this._data),r.length=this.length,this._combined)r._combined[i]=this._combined[i];for(var i in this._extendedAttrs)r._extendedAttrs[i]=this._extendedAttrs[i];return r.isWrapped=this.isWrapped,r},a.prototype.getTrimmedLength=function(){for(var r=this.length-1;r>=0;--r)if(4194303&this._data[3*r+0])return r+(this._data[3*r+0]>>22);return 0},a.prototype.copyCellsFrom=function(r,i,n,t,s){var e=r._data;if(s)for(var o=t-1;o>=0;o--)for(var l=0;l<3;l++)this._data[3*(n+o)+l]=e[3*(i+o)+l];else for(o=0;o<t;o++)for(l=0;l<3;l++)this._data[3*(n+o)+l]=e[3*(i+o)+l];var u=Object.keys(r._combined);for(l=0;l<u.length;l++){var f=parseInt(u[l],10);f>=i&&(this._combined[f-i+n]=r._combined[f])}},a.prototype.translateToString=function(r,i,n){r===void 0&&(r=!1),i===void 0&&(i=0),n===void 0&&(n=this.length),r&&(n=Math.min(n,this.getTrimmedLength()));for(var t="";i<n;){var s=this._data[3*i+0],e=2097151&s;t+=2097152&s?this._combined[i]:e?g.stringFromCodePoint(e):S.WHITESPACE_CELL_CHAR,i+=s>>22||1}return t},a}();E.BufferLine=c},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.removeElementFromParent=void 0,E.removeElementFromParent=function(){for(var g,S=[],m=0;m<arguments.length;m++)S[m]=arguments[m];for(var h=0,c=S;h<c.length;h++){var a=c[h];(g=a==null?void 0:a.parentElement)===null||g===void 0||g.removeChild(a)}}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.tooMuchOutput=E.promptLabel=void 0,E.promptLabel="Terminal input",E.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(C,w){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var O in _)_.hasOwnProperty(O)&&(b[O]=_[O])})(C,w)},function(x,C){function w(){this.constructor=x}g(x,C),x.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)});Object.defineProperty(E,"__esModule",{value:!0}),E.InputHandler=E.WindowsOptionsReportType=void 0;var m,h=T(12),c=T(20),a=T(39),r=T(2),i=T(15),n=T(8),t=T(16),s=T(0),e=T(3),o=T(4),l=T(6),u=T(22),f=T(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function v(x,C){if(x>24)return C.setWinLines||!1;switch(x){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}!function(x){x[x.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",x[x.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(m=E.WindowsOptionsReportType||(E.WindowsOptionsReportType={}));var A=function(){function x(C,w,b,_){this._bufferService=C,this._coreService=w,this._logService=b,this._optionsService=_,this._data=new Uint32Array(0)}return x.prototype.hook=function(C){this._data=new Uint32Array(0)},x.prototype.put=function(C,w,b){this._data=i.concat(this._data,C.subarray(w,b))},x.prototype.unhook=function(C){if(C){var w=n.utf32ToString(this._data);switch(this._data=new Uint32Array(0),w){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 b=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(h.C0.ESC+"P1$r"+b+h.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(h.C0.ESC+"P1$r0m"+h.C0.ESC+"\\");case" q":var _={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return _-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(h.C0.ESC+"P1$r"+_+" q"+h.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",w),this._coreService.triggerDataEvent(h.C0.ESC+"P0$r"+h.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},x}(),y=function(x){function C(w,b,_,O,L,D,N,M,F){F===void 0&&(F=new a.EscapeSequenceParser);var R=x.call(this)||this;R._bufferService=w,R._charsetService=b,R._coreService=_,R._dirtyRowService=O,R._logService=L,R._optionsService=D,R._coreMouseService=N,R._unicodeService=M,R._parser=F,R._parseBuffer=new Uint32Array(4096),R._stringDecoder=new n.StringToUtf32,R._utf8Decoder=new n.Utf8ToUtf32,R._workCell=new o.CellData,R._windowTitle="",R._iconName="",R._windowTitleStack=[],R._iconNameStack=[],R._curAttrData=t.DEFAULT_ATTR_DATA.clone(),R._eraseAttrDataInternal=t.DEFAULT_ATTR_DATA.clone(),R._onRequestBell=new s.EventEmitter,R._onRequestRefreshRows=new s.EventEmitter,R._onRequestReset=new s.EventEmitter,R._onRequestScroll=new s.EventEmitter,R._onRequestSyncScrollBar=new s.EventEmitter,R._onRequestWindowsOptionsReport=new s.EventEmitter,R._onA11yChar=new s.EventEmitter,R._onA11yTab=new s.EventEmitter,R._onCursorMove=new s.EventEmitter,R._onLineFeed=new s.EventEmitter,R._onScroll=new s.EventEmitter,R._onTitleChange=new s.EventEmitter,R.register(R._parser),R._parser.setCsiHandlerFallback(function(U,z){R._logService.debug("Unknown CSI code: ",{identifier:R._parser.identToString(U),params:z.toArray()})}),R._parser.setEscHandlerFallback(function(U){R._logService.debug("Unknown ESC code: ",{identifier:R._parser.identToString(U)})}),R._parser.setExecuteHandlerFallback(function(U){R._logService.debug("Unknown EXECUTE code: ",{code:U})}),R._parser.setOscHandlerFallback(function(U,z,V){R._logService.debug("Unknown OSC code: ",{identifier:U,action:z,data:V})}),R._parser.setDcsHandlerFallback(function(U,z,V){z==="HOOK"&&(V=V.toArray()),R._logService.debug("Unknown DCS code: ",{identifier:R._parser.identToString(U),action:z,payload:V})}),R._parser.setPrintHandler(function(U,z,V){return R.print(U,z,V)}),R._parser.setCsiHandler({final:"@"},function(U){return R.insertChars(U)}),R._parser.setCsiHandler({intermediates:" ",final:"@"},function(U){return R.scrollLeft(U)}),R._parser.setCsiHandler({final:"A"},function(U){return R.cursorUp(U)}),R._parser.setCsiHandler({intermediates:" ",final:"A"},function(U){return R.scrollRight(U)}),R._parser.setCsiHandler({final:"B"},function(U){return R.cursorDown(U)}),R._parser.setCsiHandler({final:"C"},function(U){return R.cursorForward(U)}),R._parser.setCsiHandler({final:"D"},function(U){return R.cursorBackward(U)}),R._parser.setCsiHandler({final:"E"},function(U){return R.cursorNextLine(U)}),R._parser.setCsiHandler({final:"F"},function(U){return R.cursorPrecedingLine(U)}),R._parser.setCsiHandler({final:"G"},function(U){return R.cursorCharAbsolute(U)}),R._parser.setCsiHandler({final:"H"},function(U){return R.cursorPosition(U)}),R._parser.setCsiHandler({final:"I"},function(U){return R.cursorForwardTab(U)}),R._parser.setCsiHandler({final:"J"},function(U){return R.eraseInDisplay(U)}),R._parser.setCsiHandler({prefix:"?",final:"J"},function(U){return R.eraseInDisplay(U)}),R._parser.setCsiHandler({final:"K"},function(U){return R.eraseInLine(U)}),R._parser.setCsiHandler({prefix:"?",final:"K"},function(U){return R.eraseInLine(U)}),R._parser.setCsiHandler({final:"L"},function(U){return R.insertLines(U)}),R._parser.setCsiHandler({final:"M"},function(U){return R.deleteLines(U)}),R._parser.setCsiHandler({final:"P"},function(U){return R.deleteChars(U)}),R._parser.setCsiHandler({final:"S"},function(U){return R.scrollUp(U)}),R._parser.setCsiHandler({final:"T"},function(U){return R.scrollDown(U)}),R._parser.setCsiHandler({final:"X"},function(U){return R.eraseChars(U)}),R._parser.setCsiHandler({final:"Z"},function(U){return R.cursorBackwardTab(U)}),R._parser.setCsiHandler({final:"`"},function(U){return R.charPosAbsolute(U)}),R._parser.setCsiHandler({final:"a"},function(U){return R.hPositionRelative(U)}),R._parser.setCsiHandler({final:"b"},function(U){return R.repeatPrecedingCharacter(U)}),R._parser.setCsiHandler({final:"c"},function(U){return R.sendDeviceAttributesPrimary(U)}),R._parser.setCsiHandler({prefix:">",final:"c"},function(U){return R.sendDeviceAttributesSecondary(U)}),R._parser.setCsiHandler({final:"d"},function(U){return R.linePosAbsolute(U)}),R._parser.setCsiHandler({final:"e"},function(U){return R.vPositionRelative(U)}),R._parser.setCsiHandler({final:"f"},function(U){return R.hVPosition(U)}),R._parser.setCsiHandler({final:"g"},function(U){return R.tabClear(U)}),R._parser.setCsiHandler({final:"h"},function(U){return R.setMode(U)}),R._parser.setCsiHandler({prefix:"?",final:"h"},function(U){return R.setModePrivate(U)}),R._parser.setCsiHandler({final:"l"},function(U){return R.resetMode(U)}),R._parser.setCsiHandler({prefix:"?",final:"l"},function(U){return R.resetModePrivate(U)}),R._parser.setCsiHandler({final:"m"},function(U){return R.charAttributes(U)}),R._parser.setCsiHandler({final:"n"},function(U){return R.deviceStatus(U)}),R._parser.setCsiHandler({prefix:"?",final:"n"},function(U){return R.deviceStatusPrivate(U)}),R._parser.setCsiHandler({intermediates:"!",final:"p"},function(U){return R.softReset(U)}),R._parser.setCsiHandler({intermediates:" ",final:"q"},function(U){return R.setCursorStyle(U)}),R._parser.setCsiHandler({final:"r"},function(U){return R.setScrollRegion(U)}),R._parser.setCsiHandler({final:"s"},function(U){return R.saveCursor(U)}),R._parser.setCsiHandler({final:"t"},function(U){return R.windowOptions(U)}),R._parser.setCsiHandler({final:"u"},function(U){return R.restoreCursor(U)}),R._parser.setCsiHandler({intermediates:"'",final:"}"},function(U){return R.insertColumns(U)}),R._parser.setCsiHandler({intermediates:"'",final:"~"},function(U){return R.deleteColumns(U)}),R._parser.setExecuteHandler(h.C0.BEL,function(){return R.bell()}),R._parser.setExecuteHandler(h.C0.LF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(h.C0.VT,function(){return R.lineFeed()}),R._parser.setExecuteHandler(h.C0.FF,function(){return R.lineFeed()}),R._parser.setExecuteHandler(h.C0.CR,function(){return R.carriageReturn()}),R._parser.setExecuteHandler(h.C0.BS,function(){return R.backspace()}),R._parser.setExecuteHandler(h.C0.HT,function(){return R.tab()}),R._parser.setExecuteHandler(h.C0.SO,function(){return R.shiftOut()}),R._parser.setExecuteHandler(h.C0.SI,function(){return R.shiftIn()}),R._parser.setExecuteHandler(h.C1.IND,function(){return R.index()}),R._parser.setExecuteHandler(h.C1.NEL,function(){return R.nextLine()}),R._parser.setExecuteHandler(h.C1.HTS,function(){return R.tabSet()}),R._parser.setOscHandler(0,new u.OscHandler(function(U){R.setTitle(U),R.setIconName(U)})),R._parser.setOscHandler(1,new u.OscHandler(function(U){return R.setIconName(U)})),R._parser.setOscHandler(2,new u.OscHandler(function(U){return R.setTitle(U)})),R._parser.setEscHandler({final:"7"},function(){return R.saveCursor()}),R._parser.setEscHandler({final:"8"},function(){return R.restoreCursor()}),R._parser.setEscHandler({final:"D"},function(){return R.index()}),R._parser.setEscHandler({final:"E"},function(){return R.nextLine()}),R._parser.setEscHandler({final:"H"},function(){return R.tabSet()}),R._parser.setEscHandler({final:"M"},function(){return R.reverseIndex()}),R._parser.setEscHandler({final:"="},function(){return R.keypadApplicationMode()}),R._parser.setEscHandler({final:">"},function(){return R.keypadNumericMode()}),R._parser.setEscHandler({final:"c"},function(){return R.fullReset()}),R._parser.setEscHandler({final:"n"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"o"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"|"},function(){return R.setgLevel(3)}),R._parser.setEscHandler({final:"}"},function(){return R.setgLevel(2)}),R._parser.setEscHandler({final:"~"},function(){return R.setgLevel(1)}),R._parser.setEscHandler({intermediates:"%",final:"@"},function(){return R.selectDefaultCharset()}),R._parser.setEscHandler({intermediates:"%",final:"G"},function(){return R.selectDefaultCharset()});var j=function(z){B._parser.setEscHandler({intermediates:"(",final:z},function(){return R.selectCharset("("+z)}),B._parser.setEscHandler({intermediates:")",final:z},function(){return R.selectCharset(")"+z)}),B._parser.setEscHandler({intermediates:"*",final:z},function(){return R.selectCharset("*"+z)}),B._parser.setEscHandler({intermediates:"+",final:z},function(){return R.selectCharset("+"+z)}),B._parser.setEscHandler({intermediates:"-",final:z},function(){return R.selectCharset("-"+z)}),B._parser.setEscHandler({intermediates:".",final:z},function(){return R.selectCharset("."+z)}),B._parser.setEscHandler({intermediates:"/",final:z},function(){return R.selectCharset("/"+z)})},B=this;for(var K in c.CHARSETS)j(K);return R._parser.setEscHandler({intermediates:"#",final:"8"},function(){return R.screenAlignmentPattern()}),R._parser.setErrorHandler(function(U){return R._logService.error("Parsing error: ",U),U}),R._parser.setDcsHandler({intermediates:"$",final:"q"},new A(R._bufferService,R._coreService,R._logService,R._optionsService)),R}return S(C,x),Object.defineProperty(C.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),C.prototype.dispose=function(){x.prototype.dispose.call(this)},C.prototype.parse=function(w){var b=this._bufferService.buffer,_=b.x,O=b.y;if(this._logService.debug("parsing data",w),this._parseBuffer.length<w.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(w.length,131072))),this._dirtyRowService.clearRange(),w.length>131072)for(var L=0;L<w.length;L+=131072){var D=L+131072<w.length?L+131072:w.length,N=typeof w=="string"?this._stringDecoder.decode(w.substring(L,D),this._parseBuffer):this._utf8Decoder.decode(w.subarray(L,D),this._parseBuffer);this._parser.parse(this._parseBuffer,N)}else N=typeof w=="string"?this._stringDecoder.decode(w,this._parseBuffer):this._utf8Decoder.decode(w,this._parseBuffer),this._parser.parse(this._parseBuffer,N);(b=this._bufferService.buffer).x===_&&b.y===O||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},C.prototype.print=function(w,b,_){var O,L,D=this._bufferService.buffer,N=this._charsetService.charset,M=this._optionsService.options.screenReaderMode,F=this._bufferService.cols,R=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,B=this._curAttrData,K=D.lines.get(D.ybase+D.y);this._dirtyRowService.markDirty(D.y),D.x&&_-b>0&&K.getWidth(D.x-1)===2&&K.setCellFromCodePoint(D.x-1,0,1,B.fg,B.bg,B.extended);for(var U=b;U<_;++U){if(O=w[U],L=this._unicodeService.wcwidth(O),O<127&&N){var z=N[String.fromCharCode(O)];z&&(O=z.charCodeAt(0))}if(M&&this._onA11yChar.fire(n.stringFromCodePoint(O)),L||!D.x){if(D.x+L-1>=F){if(R){for(;D.x<F;)K.setCellFromCodePoint(D.x++,0,1,B.fg,B.bg,B.extended);D.x=0,D.y++,D.y===D.scrollBottom+1?(D.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(D.y>=this._bufferService.rows&&(D.y=this._bufferService.rows-1),D.lines.get(D.ybase+D.y).isWrapped=!0),K=D.lines.get(D.ybase+D.y)}else if(D.x=F-1,L===2)continue}if(j&&(K.insertCells(D.x,L,D.getNullCell(B),B),K.getWidth(F-1)===2&&K.setCellFromCodePoint(F-1,e.NULL_CELL_CODE,e.NULL_CELL_WIDTH,B.fg,B.bg,B.extended)),K.setCellFromCodePoint(D.x++,O,L,B.fg,B.bg,B.extended),L>0)for(;--L;)K.setCellFromCodePoint(D.x++,0,0,B.fg,B.bg,B.extended)}else K.getWidth(D.x-1)?K.addCodepointToCell(D.x-1,O):K.addCodepointToCell(D.x-2,O)}_-b>0&&(K.loadCell(D.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),D.x<F&&_-b>0&&K.getWidth(D.x)===0&&!K.hasContent(D.x)&&K.setCellFromCodePoint(D.x,0,1,B.fg,B.bg,B.extended),this._dirtyRowService.markDirty(D.y)},C.prototype.addCsiHandler=function(w,b){var _=this;return w.final!=="t"||w.prefix||w.intermediates?this._parser.addCsiHandler(w,b):this._parser.addCsiHandler(w,function(O){return!v(O.params[0],_._optionsService.options.windowOptions)||b(O)})},C.prototype.addDcsHandler=function(w,b){return this._parser.addDcsHandler(w,new f.DcsHandler(b))},C.prototype.addEscHandler=function(w,b){return this._parser.addEscHandler(w,b)},C.prototype.addOscHandler=function(w,b){return this._parser.addOscHandler(w,new u.OscHandler(b))},C.prototype.bell=function(){this._onRequestBell.fire()},C.prototype.lineFeed=function(){var w=this._bufferService.buffer;this._dirtyRowService.markDirty(w.y),this._optionsService.options.convertEol&&(w.x=0),w.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),w.x>=this._bufferService.cols&&w.x--,this._dirtyRowService.markDirty(w.y),this._onLineFeed.fire()},C.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},C.prototype.backspace=function(){var w,b=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(b.x>0&&b.x--);if(this._restrictCursor(this._bufferService.cols),b.x>0)b.x--;else if(b.x===0&&b.y>b.scrollTop&&b.y<=b.scrollBottom&&((w=b.lines.get(b.ybase+b.y))===null||w===void 0?void 0:w.isWrapped)){b.lines.get(b.ybase+b.y).isWrapped=!1,b.y--,b.x=this._bufferService.cols-1;var _=b.lines.get(b.ybase+b.y);_.hasWidth(b.x)&&!_.hasContent(b.x)&&b.x--}this._restrictCursor()},C.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var w=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-w)}},C.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},C.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},C.prototype._restrictCursor=function(w){w===void 0&&(w=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(w,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)},C.prototype._setCursor=function(w,b){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=w,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+b):(this._bufferService.buffer.x=w,this._bufferService.buffer.y=b),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype._moveCursor=function(w,b){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+w,this._bufferService.buffer.y+b)},C.prototype.cursorUp=function(w){var b=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;b>=0?this._moveCursor(0,-Math.min(b,w.params[0]||1)):this._moveCursor(0,-(w.params[0]||1))},C.prototype.cursorDown=function(w){var b=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;b>=0?this._moveCursor(0,Math.min(b,w.params[0]||1)):this._moveCursor(0,w.params[0]||1)},C.prototype.cursorForward=function(w){this._moveCursor(w.params[0]||1,0)},C.prototype.cursorBackward=function(w){this._moveCursor(-(w.params[0]||1),0)},C.prototype.cursorNextLine=function(w){this.cursorDown(w),this._bufferService.buffer.x=0},C.prototype.cursorPrecedingLine=function(w){this.cursorUp(w),this._bufferService.buffer.x=0},C.prototype.cursorCharAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},C.prototype.cursorPosition=function(w){this._setCursor(w.length>=2?(w.params[1]||1)-1:0,(w.params[0]||1)-1)},C.prototype.charPosAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},C.prototype.hPositionRelative=function(w){this._moveCursor(w.params[0]||1,0)},C.prototype.linePosAbsolute=function(w){this._setCursor(this._bufferService.buffer.x,(w.params[0]||1)-1)},C.prototype.vPositionRelative=function(w){this._moveCursor(0,w.params[0]||1)},C.prototype.hVPosition=function(w){this.cursorPosition(w)},C.prototype.tabClear=function(w){var b=w.params[0];b===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:b===3&&(this._bufferService.buffer.tabs={})},C.prototype.cursorForwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=w.params[0]||1;b--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},C.prototype.cursorBackwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=w.params[0]||1,_=this._bufferService.buffer;b--;)_.x=_.prevStop()},C.prototype._eraseInBufferLine=function(w,b,_,O){O===void 0&&(O=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);L.replaceCells(b,_,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),O&&(L.isWrapped=!1)},C.prototype._resetBufferLine=function(w){var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);b.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),b.isWrapped=!1},C.prototype.eraseInDisplay=function(w){var b;switch(this._restrictCursor(),w.params[0]){case 0:for(b=this._bufferService.buffer.y,this._dirtyRowService.markDirty(b),this._eraseInBufferLine(b++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);b<this._bufferService.rows;b++)this._resetBufferLine(b);this._dirtyRowService.markDirty(b);break;case 1:for(b=this._bufferService.buffer.y,this._dirtyRowService.markDirty(b),this._eraseInBufferLine(b,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(b+1).isWrapped=!1);b--;)this._resetBufferLine(b);this._dirtyRowService.markDirty(0);break;case 2:for(b=this._bufferService.rows,this._dirtyRowService.markDirty(b-1);b--;)this._resetBufferLine(b);this._dirtyRowService.markDirty(0);break;case 3:var _=this._bufferService.buffer.lines.length-this._bufferService.rows;_>0&&(this._bufferService.buffer.lines.trimStart(_),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-_,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-_,0),this._onScroll.fire(0))}},C.prototype.eraseInLine=function(w){switch(this._restrictCursor(),w.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)},C.prototype.insertLines=function(w){this._restrictCursor();var b=w.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){for(var O=_.ybase+_.y,L=this._bufferService.rows-1-_.scrollBottom,D=this._bufferService.rows-1+_.ybase-L+1;b--;)_.lines.splice(D-1,1),_.lines.splice(O,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},C.prototype.deleteLines=function(w){this._restrictCursor();var b=w.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){var O,L=_.ybase+_.y;for(O=this._bufferService.rows-1-_.scrollBottom,O=this._bufferService.rows-1+_.ybase-O;b--;)_.lines.splice(L,1),_.lines.splice(O,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},C.prototype.insertChars=function(w){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.insertCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.deleteChars=function(w){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.deleteCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.scrollUp=function(w){for(var b=w.params[0]||1,_=this._bufferService.buffer;b--;)_.lines.splice(_.ybase+_.scrollTop,1),_.lines.splice(_.ybase+_.scrollBottom,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},C.prototype.scrollDown=function(w){for(var b=w.params[0]||1,_=this._bufferService.buffer;b--;)_.lines.splice(_.ybase+_.scrollBottom,1),_.lines.splice(_.ybase+_.scrollTop,0,_.getBlankLine(t.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},C.prototype.scrollLeft=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=w.params[0]||1,O=b.scrollTop;O<=b.scrollBottom;++O){var L=b.lines.get(b.ybase+O);L.deleteCells(0,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.scrollRight=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=w.params[0]||1,O=b.scrollTop;O<=b.scrollBottom;++O){var L=b.lines.get(b.ybase+O);L.insertCells(0,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.insertColumns=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=w.params[0]||1,O=b.scrollTop;O<=b.scrollBottom;++O){var L=this._bufferService.buffer.lines.get(b.ybase+O);L.insertCells(b.x,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.deleteColumns=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=w.params[0]||1,O=b.scrollTop;O<=b.scrollBottom;++O){var L=b.lines.get(b.ybase+O);L.deleteCells(b.x,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.eraseChars=function(w){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(w.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.repeatPrecedingCharacter=function(w){if(this._parser.precedingCodepoint){for(var b=w.params[0]||1,_=new Uint32Array(b),O=0;O<b;++O)_[O]=this._parser.precedingCodepoint;this.print(_,0,_.length)}},C.prototype.sendDeviceAttributesPrimary=function(w){w.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"))},C.prototype.sendDeviceAttributesSecondary=function(w){w.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(w.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(h.C0.ESC+"[>83;40003;0c"))},C.prototype._is=function(w){return(this._optionsService.options.termName+"").indexOf(w)===0},C.prototype.setMode=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 4:this._coreService.modes.insertMode=!0}},C.prototype.setModePrivate=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),this._charsetService.setgCharset(1,c.DEFAULT_CHARSET),this._charsetService.setgCharset(2,c.DEFAULT_CHARSET),this._charsetService.setgCharset(3,c.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}},C.prototype.resetMode=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 4:this._coreService.modes.insertMode=!1}},C.prototype.resetModePrivate=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){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(),w.params[b]===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}},C.prototype._updateAttrColor=function(w,b,_,O,L){return b===2?(w|=50331648,w&=-16777216,w|=l.AttributeData.fromColorRGB([_,O,L])):b===5&&(w&=-50331904,w|=33554432|255&_),w},C.prototype._extractColor=function(w,b,_){var O=[0,0,-1,0,0,0],L=0,D=0;do{if(O[D+L]=w.params[b+D],w.hasSubParams(b+D)){var N=w.getSubParams(b+D),M=0;do O[1]===5&&(L=1),O[D+M+1+L]=N[M];while(++M<N.length&&M+D+1+L<O.length);break}if(O[1]===5&&D+L>=2||O[1]===2&&D+L>=5)break;O[1]&&(L=1)}while(++D+b<w.length&&D+L<O.length);for(M=2;M<O.length;++M)O[M]===-1&&(O[M]=0);switch(O[0]){case 38:_.fg=this._updateAttrColor(_.fg,O[1],O[3],O[4],O[5]);break;case 48:_.bg=this._updateAttrColor(_.bg,O[1],O[3],O[4],O[5]);break;case 58:_.extended=_.extended.clone(),_.extended.underlineColor=this._updateAttrColor(_.extended.underlineColor,O[1],O[3],O[4],O[5])}return D},C.prototype._processUnderline=function(w,b){b.extended=b.extended.clone(),(!~w||w>5)&&(w=1),b.extended.underlineStyle=w,b.fg|=268435456,w===0&&(b.fg&=-268435457),b.updateExtended()},C.prototype.charAttributes=function(w){if(w.length===1&&w.params[0]===0)return this._curAttrData.fg=t.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=t.DEFAULT_ATTR_DATA.bg);for(var b,_=w.length,O=this._curAttrData,L=0;L<_;L++)(b=w.params[L])>=30&&b<=37?(O.fg&=-50331904,O.fg|=16777216|b-30):b>=40&&b<=47?(O.bg&=-50331904,O.bg|=16777216|b-40):b>=90&&b<=97?(O.fg&=-50331904,O.fg|=16777224|b-90):b>=100&&b<=107?(O.bg&=-50331904,O.bg|=16777224|b-100):b===0?(O.fg=t.DEFAULT_ATTR_DATA.fg,O.bg=t.DEFAULT_ATTR_DATA.bg):b===1?O.fg|=134217728:b===3?O.bg|=67108864:b===4?(O.fg|=268435456,this._processUnderline(w.hasSubParams(L)?w.getSubParams(L)[0]:1,O)):b===5?O.fg|=536870912:b===7?O.fg|=67108864:b===8?O.fg|=1073741824:b===2?O.bg|=134217728:b===21?this._processUnderline(2,O):b===22?(O.fg&=-134217729,O.bg&=-134217729):b===23?O.bg&=-67108865:b===24?O.fg&=-268435457:b===25?O.fg&=-536870913:b===27?O.fg&=-67108865:b===28?O.fg&=-1073741825:b===39?(O.fg&=-67108864,O.fg|=16777215&t.DEFAULT_ATTR_DATA.fg):b===49?(O.bg&=-67108864,O.bg|=16777215&t.DEFAULT_ATTR_DATA.bg):b===38||b===48||b===58?L+=this._extractColor(w,L,O):b===59?(O.extended=O.extended.clone(),O.extended.underlineColor=-1,O.updateExtended()):b===100?(O.fg&=-67108864,O.fg|=16777215&t.DEFAULT_ATTR_DATA.fg,O.bg&=-67108864,O.bg|=16777215&t.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",b)},C.prototype.deviceStatus=function(w){switch(w.params[0]){case 5:this._coreService.triggerDataEvent(h.C0.ESC+"[0n");break;case 6:var b=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"["+b+";"+_+"R")}},C.prototype.deviceStatusPrivate=function(w){switch(w.params[0]){case 6:var b=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"[?"+b+";"+_+"R")}},C.prototype.softReset=function(w){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=t.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},C.prototype.setCursorStyle=function(w){var b=w.params[0]||1;switch(b){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 _=b%2==1;this._optionsService.options.cursorBlink=_},C.prototype.setScrollRegion=function(w){var b,_=w.params[0]||1;(w.length<2||(b=w.params[1])>this._bufferService.rows||b===0)&&(b=this._bufferService.rows),b>_&&(this._bufferService.buffer.scrollTop=_-1,this._bufferService.buffer.scrollBottom=b-1,this._setCursor(0,0))},C.prototype.windowOptions=function(w){if(v(w.params[0],this._optionsService.options.windowOptions)){var b=w.length>1?w.params[1]:0;switch(w.params[0]){case 14:b!==2&&this._onRequestWindowsOptionsReport.fire(m.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(m.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:b!==0&&b!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),b!==0&&b!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:b!==0&&b!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),b!==0&&b!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},C.prototype.saveCursor=function(w){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},C.prototype.restoreCursor=function(w){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()},C.prototype.setTitle=function(w){this._windowTitle=w,this._onTitleChange.fire(w)},C.prototype.setIconName=function(w){this._iconName=w},C.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},C.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},C.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},C.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET)},C.prototype.selectCharset=function(w){w.length===2?w[0]!=="/"&&this._charsetService.setgCharset(p[w[0]],c.CHARSETS[w[1]]||c.DEFAULT_CHARSET):this.selectDefaultCharset()},C.prototype.index=function(){this._restrictCursor();var w=this._bufferService.buffer;this._bufferService.buffer.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),this._restrictCursor()},C.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},C.prototype.reverseIndex=function(){this._restrictCursor();var w=this._bufferService.buffer;if(w.y===w.scrollTop){var b=w.scrollBottom-w.scrollTop;w.lines.shiftElements(w.ybase+w.y,b,1),w.lines.set(w.ybase+w.y,w.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}else w.y--,this._restrictCursor()},C.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},C.prototype.reset=function(){this._curAttrData=t.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=t.DEFAULT_ATTR_DATA.clone()},C.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},C.prototype.setgLevel=function(w){this._charsetService.setgLevel(w)},C.prototype.screenAlignmentPattern=function(){var w=new o.CellData;w.content=1<<22|"E".charCodeAt(0),w.fg=this._curAttrData.fg,w.bg=this._curAttrData.bg;var b=this._bufferService.buffer;this._setCursor(0,0);for(var _=0;_<this._bufferService.rows;++_){var O=b.ybase+b.y+_,L=b.lines.get(O);L&&(L.fill(w),L.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},C}(r.Disposable);E.InputHandler=y},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DEFAULT_CHARSET=E.CHARSETS=void 0,E.CHARSETS={},E.DEFAULT_CHARSET=E.CHARSETS.B,E.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"},E.CHARSETS.A={"#":"\xA3"},E.CHARSETS.B=void 0,E.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},E.CHARSETS.C=E.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},E.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},E.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},E.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},E.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},E.CHARSETS.E=E.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},E.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},E.CHARSETS.H=E.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},E.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Params=void 0;var g=function(){function S(m,h){if(m===void 0&&(m=32),h===void 0&&(h=32),this.maxLength=m,this.maxSubParamsLength=h,h>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(m),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(m),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return S.fromArray=function(m){var h=new S;if(!m.length)return h;for(var c=m[0]instanceof Array?1:0;c<m.length;++c){var a=m[c];if(a instanceof Array)for(var r=0;r<a.length;++r)h.addSubParam(a[r]);else h.addParam(a)}return h},S.prototype.clone=function(){var m=new S(this.maxLength,this.maxSubParamsLength);return m.params.set(this.params),m.length=this.length,m._subParams.set(this._subParams),m._subParamsLength=this._subParamsLength,m._subParamsIdx.set(this._subParamsIdx),m._rejectDigits=this._rejectDigits,m._rejectSubDigits=this._rejectSubDigits,m._digitIsSub=this._digitIsSub,m},S.prototype.toArray=function(){for(var m=[],h=0;h<this.length;++h){m.push(this.params[h]);var c=this._subParamsIdx[h]>>8,a=255&this._subParamsIdx[h];a-c>0&&m.push(Array.prototype.slice.call(this._subParams,c,a))}return m},S.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},S.prototype.addParam=function(m){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=m>2147483647?2147483647:m}},S.prototype.addSubParam=function(m){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=m>2147483647?2147483647:m,this._subParamsIdx[this.length-1]++}},S.prototype.hasSubParams=function(m){return(255&this._subParamsIdx[m])-(this._subParamsIdx[m]>>8)>0},S.prototype.getSubParams=function(m){var h=this._subParamsIdx[m]>>8,c=255&this._subParamsIdx[m];return c-h>0?this._subParams.subarray(h,c):null},S.prototype.getSubParamsAll=function(){for(var m={},h=0;h<this.length;++h){var c=this._subParamsIdx[h]>>8,a=255&this._subParamsIdx[h];a-c>0&&(m[h]=this._subParams.slice(c,a))}return m},S.prototype.addDigit=function(m){var h;if(!(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var c=this._digitIsSub?this._subParams:this.params,a=c[h-1];c[h-1]=~a?Math.min(10*a+m,2147483647):m}},S}();E.Params=g},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OscHandler=E.OscParser=void 0;var g=T(23),S=T(8),m=function(){function c(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return c.prototype.addHandler=function(a,r){this._handlers[a]===void 0&&(this._handlers[a]=[]);var i=this._handlers[a];return i.push(r),{dispose:function(){var t=i.indexOf(r);t!==-1&&i.splice(t,1)}}},c.prototype.setHandler=function(a,r){this._handlers[a]=[r]},c.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},c.prototype.setHandlerFallback=function(a){this._handlerFb=a},c.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},c.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},c.prototype._start=function(){var a=this._handlers[this._id];if(a)for(var r=a.length-1;r>=0;r--)a[r].start();else this._handlerFb(this._id,"START")},c.prototype._put=function(a,r,i){var n=this._handlers[this._id];if(n)for(var t=n.length-1;t>=0;t--)n[t].put(a,r,i);else this._handlerFb(this._id,"PUT",S.utf32ToString(a,r,i))},c.prototype._end=function(a){var r=this._handlers[this._id];if(r){for(var i=r.length-1;i>=0&&r[i].end(a)===!1;i--);for(i--;i>=0;i--)r[i].end(!1)}else this._handlerFb(this._id,"END",a)},c.prototype.start=function(){this.reset(),this._id=-1,this._state=1},c.prototype.put=function(a,r,i){if(this._state!==3){if(this._state===1)for(;r<i;){var n=a[r++];if(n===59){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+n-48}this._state===2&&i-r>0&&this._put(a,r,i)}},c.prototype.end=function(a){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(a)),this._id=-1,this._state=0)},c}();E.OscParser=m;var h=function(){function c(a){this._handler=a,this._data="",this._hitLimit=!1}return c.prototype.start=function(){this._data="",this._hitLimit=!1},c.prototype.put=function(a,r,i){this._hitLimit||(this._data+=S.utf32ToString(a,r,i),this._data.length>g.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.end=function(a){var r;return this._hitLimit?r=!1:a&&(r=this._handler(this._data)),this._data="",this._hitLimit=!1,r},c}();E.OscHandler=h},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PAYLOAD_LIMIT=void 0,E.PAYLOAD_LIMIT=1e7},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DcsHandler=E.DcsParser=void 0;var g=T(8),S=T(21),m=T(23),h=[],c=function(){function r(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=function(){}}return r.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},r.prototype.addHandler=function(i,n){this._handlers[i]===void 0&&(this._handlers[i]=[]);var t=this._handlers[i];return t.push(n),{dispose:function(){var e=t.indexOf(n);e!==-1&&t.splice(e,1)}}},r.prototype.setHandler=function(i,n){this._handlers[i]=[n]},r.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},r.prototype.setHandlerFallback=function(i){this._handlerFb=i},r.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=h,this._ident=0},r.prototype.hook=function(i,n){if(this.reset(),this._ident=i,this._active=this._handlers[i]||h,this._active.length)for(var t=this._active.length-1;t>=0;t--)this._active[t].hook(n);else this._handlerFb(this._ident,"HOOK",n)},r.prototype.put=function(i,n,t){if(this._active.length)for(var s=this._active.length-1;s>=0;s--)this._active[s].put(i,n,t);else this._handlerFb(this._ident,"PUT",g.utf32ToString(i,n,t))},r.prototype.unhook=function(i){if(this._active.length){for(var n=this._active.length-1;n>=0&&this._active[n].unhook(i)===!1;n--);for(n--;n>=0;n--)this._active[n].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",i);this._active=h,this._ident=0},r}();E.DcsParser=c;var a=function(){function r(i){this._handler=i,this._data="",this._hitLimit=!1}return r.prototype.hook=function(i){this._params=i.clone(),this._data="",this._hitLimit=!1},r.prototype.put=function(i,n,t){this._hitLimit||(this._data+=g.utf32ToString(i,n,t),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(i){var n;return this._hitLimit?n=!1:i&&(n=this._handler(this._data,this._params||new S.Params)),this._params=void 0,this._data="",this._hitLimit=!1,n},r}();E.DcsHandler=a},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.removeTerminalFromCache=E.acquireCharAtlas=void 0;var g=T(26),S=T(43),m=[];E.acquireCharAtlas=function(h,c,a,r,i){for(var n=g.generateConfig(r,i,h,a),t=0;t<m.length;t++){var s=(e=m[t]).ownedBy.indexOf(c);if(s>=0){if(g.configEquals(e.config,n))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),m.splice(t,1)):e.ownedBy.splice(s,1);break}}for(t=0;t<m.length;t++){var e=m[t];if(g.configEquals(e.config,n))return e.ownedBy.push(c),e.atlas}var o={atlas:new S.DynamicCharAtlas(document,n),config:n,ownedBy:[c]};return m.push(o),o.atlas},E.removeTerminalFromCache=function(h){for(var c=0;c<m.length;c++){var a=m[c].ownedBy.indexOf(h);if(a!==-1){m[c].ownedBy.length===1?(m[c].atlas.dispose(),m.splice(c,1)):m[c].ownedBy.splice(a,1);break}}}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.is256Color=E.configEquals=E.generateConfig=void 0;var g=T(3);E.generateConfig=function(S,m,h,c){var a={foreground:c.foreground,background:c.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:c.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:S,scaledCharHeight:m,fontFamily:h.fontFamily,fontSize:h.fontSize,fontWeight:h.fontWeight,fontWeightBold:h.fontWeightBold,allowTransparency:h.allowTransparency,colors:a}},E.configEquals=function(S,m){for(var h=0;h<S.colors.ansi.length;h++)if(S.colors.ansi[h].rgba!==m.colors.ansi[h].rgba)return!1;return S.devicePixelRatio===m.devicePixelRatio&&S.fontFamily===m.fontFamily&&S.fontSize===m.fontSize&&S.fontWeight===m.fontWeight&&S.fontWeightBold===m.fontWeightBold&&S.allowTransparency===m.allowTransparency&&S.scaledCharWidth===m.scaledCharWidth&&S.scaledCharHeight===m.scaledCharHeight&&S.colors.foreground===m.colors.foreground&&S.colors.background===m.colors.background},E.is256Color=function(S){return S<g.DEFAULT_COLOR}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ColorManager=E.DEFAULT_ANSI_COLORS=void 0;var g=T(10),S=T(45),m=g.css.toColor("#ffffff"),h=g.css.toColor("#000000"),c=g.css.toColor("#ffffff"),a=g.css.toColor("#000000"),r={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};E.DEFAULT_ANSI_COLORS=function(){for(var n=[g.css.toColor("#2e3436"),g.css.toColor("#cc0000"),g.css.toColor("#4e9a06"),g.css.toColor("#c4a000"),g.css.toColor("#3465a4"),g.css.toColor("#75507b"),g.css.toColor("#06989a"),g.css.toColor("#d3d7cf"),g.css.toColor("#555753"),g.css.toColor("#ef2929"),g.css.toColor("#8ae234"),g.css.toColor("#fce94f"),g.css.toColor("#729fcf"),g.css.toColor("#ad7fa8"),g.css.toColor("#34e2e2"),g.css.toColor("#eeeeec")],t=[0,95,135,175,215,255],s=0;s<216;s++){var e=t[s/36%6|0],o=t[s/6%6|0],l=t[s%6];n.push({css:g.channels.toCss(e,o,l),rgba:g.channels.toRgba(e,o,l)})}for(s=0;s<24;s++){var u=8+10*s;n.push({css:g.channels.toCss(u,u,u),rgba:g.channels.toRgba(u,u,u)})}return n}();var i=function(){function n(t,s){this.allowTransparency=s;var e=t.createElement("canvas");e.width=1,e.height=1;var o=e.getContext("2d");if(!o)throw new Error("Could not get rendering context");this._ctx=o,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new S.ColorContrastCache,this.colors={foreground:m,background:h,cursor:c,cursorAccent:a,selectionTransparent:r,selectionOpaque:g.color.blend(h,r),ansi:E.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return n.prototype.onOptionsChange=function(t){t==="minimumContrastRatio"&&this._contrastCache.clear()},n.prototype.setTheme=function(t){(t===void 0&&(t={}),this.colors.foreground=this._parseColor(t.foreground,m),this.colors.background=this._parseColor(t.background,h),this.colors.cursor=this._parseColor(t.cursor,c,!0),this.colors.cursorAccent=this._parseColor(t.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(t.selection,r,!0),this.colors.selectionOpaque=g.color.blend(this.colors.background,this.colors.selectionTransparent),g.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=g.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(t.black,E.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(t.red,E.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(t.green,E.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(t.yellow,E.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(t.blue,E.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(t.magenta,E.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(t.cyan,E.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(t.white,E.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(t.brightBlack,E.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(t.brightRed,E.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(t.brightGreen,E.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(t.brightYellow,E.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(t.brightBlue,E.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(t.brightMagenta,E.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(t.brightCyan,E.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(t.brightWhite,E.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},n.prototype._parseColor=function(t,s,e){if(e===void 0&&(e=this.allowTransparency),t===void 0)return s;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=t,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+t+" is invalid using fallback "+s.css),s;this._ctx.fillRect(0,0,1,1);var o=this._ctx.getImageData(0,0,1,1).data;if(o[3]!==255){if(!e)return console.warn("Color: "+t+" is using transparency, but allowTransparency is false. Using fallback "+s.css+"."),s;var l=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(y){return Number(y)}),u=l[0],f=l[1],p=l[2],v=l[3],A=Math.round(255*v);return{rgba:g.channels.toRgba(u,f,p,A),css:t}}return{css:this._ctx.fillStyle,rgba:g.channels.toRgba(o[0],o[1],o[2],o[3])}},n}();E.ColorManager=i},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.throwIfFalsy=void 0,E.throwIfFalsy=function(g){if(!g)throw new Error("value must not be falsy");return g}},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(n,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var o in e)e.hasOwnProperty(o)&&(s[o]=e[o])})(n,t)},function(i,n){function t(){this.constructor=i}g(i,n),i.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(E,"__esModule",{value:!0}),E.CharacterJoinerRegistry=E.JoinedCellData=void 0;var m=T(6),h=T(3),c=T(4),a=function(i){function n(t,s,e){var o=i.call(this)||this;return o.content=0,o.combinedData="",o.fg=t.fg,o.bg=t.bg,o.combinedData=s,o._width=e,o}return S(n,i),n.prototype.isCombined=function(){return 2097152},n.prototype.getWidth=function(){return this._width},n.prototype.getChars=function(){return this.combinedData},n.prototype.getCode=function(){return 2097151},n.prototype.setFromCharData=function(t){throw new Error("not implemented")},n.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},n}(m.AttributeData);E.JoinedCellData=a;var r=function(){function i(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return i.prototype.registerCharacterJoiner=function(n){var t={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(t),t.id},i.prototype.deregisterCharacterJoiner=function(n){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===n)return this._characterJoiners.splice(t,1),!0;return!1},i.prototype.getJoinedCharacters=function(n){if(this._characterJoiners.length===0)return[];var t=this._bufferService.buffer.lines.get(n);if(!t||t.length===0)return[];for(var s=[],e=t.translateToString(!0),o=0,l=0,u=0,f=t.getFg(0),p=t.getBg(0),v=0;v<t.getTrimmedLength();v++)if(t.loadCell(v,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==f||this._workCell.bg!==p){if(v-o>1)for(var A=this._getJoinedRanges(e,u,l,t,o),y=0;y<A.length;y++)s.push(A[y]);o=v,u=l,f=this._workCell.fg,p=this._workCell.bg}l+=this._workCell.getChars().length||h.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-o>1)for(A=this._getJoinedRanges(e,u,l,t,o),y=0;y<A.length;y++)s.push(A[y]);return s},i.prototype._getJoinedRanges=function(n,t,s,e,o){for(var l=n.substring(t,s),u=this._characterJoiners[0].handler(l),f=1;f<this._characterJoiners.length;f++)for(var p=this._characterJoiners[f].handler(l),v=0;v<p.length;v++)i._mergeRanges(u,p[v]);return this._stringRangesToCellRanges(u,e,o),u},i.prototype._stringRangesToCellRanges=function(n,t,s){var e=0,o=!1,l=0,u=n[e];if(u){for(var f=s;f<this._bufferService.cols;f++){var p=t.getWidth(f),v=t.getString(f).length||h.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!o&&u[0]<=l&&(u[0]=f,o=!0),u[1]<=l){if(u[1]=f,!(u=n[++e]))break;u[0]<=l?(u[0]=f,o=!0):o=!1}l+=v}}u&&(u[1]=this._bufferService.cols)}},i._mergeRanges=function(n,t){for(var s=!1,e=0;e<n.length;e++){var o=n[e];if(s){if(t[1]<=o[0])return n[e-1][1]=t[1],n;if(t[1]<=o[1])return n[e-1][1]=Math.max(t[1],o[1]),n.splice(e,1),n;n.splice(e,1),e--}else{if(t[1]<=o[0])return n.splice(e,0,t),n;if(t[1]<=o[1])return o[0]=Math.min(t[0],o[0]),n;t[0]<o[1]&&(o[0]=Math.min(t[0],o[0]),s=!0)}}return s?n[n.length-1][1]=t[1]:n.push(t),n},i}();E.CharacterJoinerRegistry=r},function(I,E,T){"use strict";function g(S,m){var h=m.getBoundingClientRect();return[S.clientX-h.left,S.clientY-h.top]}Object.defineProperty(E,"__esModule",{value:!0}),E.getRawByteCoords=E.getCoords=E.getCoordsRelativeToElement=void 0,E.getCoordsRelativeToElement=g,E.getCoords=function(S,m,h,c,a,r,i,n){if(a){var t=g(S,m);if(t)return t[0]=Math.ceil((t[0]+(n?r/2:0))/r),t[1]=Math.ceil(t[1]/i),t[0]=Math.min(Math.max(t[0],1),h+(n?1:0)),t[1]=Math.min(Math.max(t[1],1),c),t}},E.getRawByteCoords=function(S){if(S)return{x:S[0]+32,y:S[1]+32}}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.RenderDebouncer=void 0;var g=function(){function S(m){this._renderCallback=m}return S.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},S.prototype.refresh=function(m,h,c){var a=this;this._rowCount=c,m=m!==void 0?m:0,h=h!==void 0?h:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,m):m,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,h):h,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return a._innerRefresh()}))},S.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var m=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(m,h)}},S}();E.RenderDebouncer=g},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(c,a){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(c,a)},function(h,c){function a(){this.constructor=h}g(h,c),h.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(E,"__esModule",{value:!0}),E.ScreenDprMonitor=void 0;var m=function(h){function c(){var a=h!==null&&h.apply(this,arguments)||this;return a._currentDevicePixelRatio=window.devicePixelRatio,a}return S(c,h),c.prototype.setListener=function(a){var r=this;this._listener&&this.clearListener(),this._listener=a,this._outerListener=function(){r._listener&&(r._listener(window.devicePixelRatio,r._currentDevicePixelRatio),r._updateDpr())},this._updateDpr()},c.prototype.dispose=function(){h.prototype.dispose.call(this),this.clearListener()},c.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))},c.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)},c}(T(2).Disposable);E.ScreenDprMonitor=m},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.clone=void 0,E.clone=function g(S,m){if(m===void 0&&(m=5),typeof S!="object")return S;var h=Array.isArray(S)?[]:{};for(var c in S)h[c]=m<=1?S[c]:S[c]?g(S[c],m-1):S[c];return h}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Terminal=void 0;var g=T(4),S=T(35),m=T(18),h=T(0),c=T(83),a=function(){function e(o){this._core=new S.Terminal(o),this._addonManager=new c.AddonManager}return e.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(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new t(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new s(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),new i(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(o,l){this._verifyIntegers(o,l),this._core.resize(o,l)},e.prototype.open=function(o){this._core.open(o)},e.prototype.attachCustomKeyEventHandler=function(o){this._core.attachCustomKeyEventHandler(o)},e.prototype.registerLinkMatcher=function(o,l,u){return this._checkProposedApi(),this._core.registerLinkMatcher(o,l,u)},e.prototype.deregisterLinkMatcher=function(o){this._checkProposedApi(),this._core.deregisterLinkMatcher(o)},e.prototype.registerLinkProvider=function(o){return this._checkProposedApi(),this._core.registerLinkProvider(o)},e.prototype.registerCharacterJoiner=function(o){return this._checkProposedApi(),this._core.registerCharacterJoiner(o)},e.prototype.deregisterCharacterJoiner=function(o){this._checkProposedApi(),this._core.deregisterCharacterJoiner(o)},e.prototype.registerMarker=function(o){return this._checkProposedApi(),this._verifyIntegers(o),this._core.addMarker(o)},e.prototype.addMarker=function(o){return this.registerMarker(o)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(o,l,u){this._verifyIntegers(o,l,u),this._core.select(o,l,u)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(o,l){this._verifyIntegers(o,l),this._core.selectLines(o,l)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(o){this._verifyIntegers(o),this._core.scrollLines(o)},e.prototype.scrollPages=function(o){this._verifyIntegers(o),this._core.scrollPages(o)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(o){this._verifyIntegers(o),this._core.scrollToLine(o)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(o,l){this._core.write(o,l)},e.prototype.writeUtf8=function(o,l){this._core.write(o,l)},e.prototype.writeln=function(o,l){this._core.write(o),this._core.write(`\r
|
|
|
`,l)},e.prototype.paste=function(o){this._core.paste(o)},e.prototype.getOption=function(o){return this._core.optionsService.getOption(o)},e.prototype.setOption=function(o,l){this._core.optionsService.setOption(o,l)},e.prototype.refresh=function(o,l){this._verifyIntegers(o,l),this._core.refresh(o,l)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(o){return this._addonManager.loadAddon(this,o)},Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];for(var u=0,f=o;u<f.length;u++){var p=f[u];if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}},e}();E.Terminal=a;var r=function(){function e(o,l){this._buffer=o,this.type=l}return e.prototype.init=function(o){return this._buffer=o,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(o){var l=this._buffer.lines.get(o);if(l)return new n(l)},e.prototype.getNullCell=function(){return new g.CellData},e}(),i=function(){function e(o){var l=this;this._buffers=o,this._onBufferChange=new h.EventEmitter,this._normal=new r(this._buffers.normal,"normal"),this._alternate=new r(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return l._onBufferChange.fire(l.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.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(e.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),e}(),n=function(){function e(o){this._line=o}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(o,l){if(!(o<0||o>=this._line.length))return l?(this._line.loadCell(o,l),l):this._line.loadCell(o,new g.CellData)},e.prototype.translateToString=function(o,l,u){return this._line.translateToString(o,l,u)},e}(),t=function(){function e(o){this._core=o}return e.prototype.registerCsiHandler=function(o,l){return this._core.addCsiHandler(o,function(u){return l(u.toArray())})},e.prototype.addCsiHandler=function(o,l){return this.registerCsiHandler(o,l)},e.prototype.registerDcsHandler=function(o,l){return this._core.addDcsHandler(o,function(u,f){return l(u,f.toArray())})},e.prototype.addDcsHandler=function(o,l){return this.registerDcsHandler(o,l)},e.prototype.registerEscHandler=function(o,l){return this._core.addEscHandler(o,l)},e.prototype.addEscHandler=function(o,l){return this.registerEscHandler(o,l)},e.prototype.registerOscHandler=function(o,l){return this._core.addOscHandler(o,l)},e.prototype.addOscHandler=function(o,l){return this.registerOscHandler(o,l)},e}(),s=function(){function e(o){this._core=o}return e.prototype.register=function(o){this._core.unicodeService.register(o)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(l){this._core.unicodeService.activeVersion=l},enumerable:!1,configurable:!0}),e}()},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(R,j){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,K){B.__proto__=K}||function(B,K){for(var U in K)K.hasOwnProperty(U)&&(B[U]=K[U])})(R,j)},function(F,R){function j(){this.constructor=F}g(F,R),F.prototype=R===null?Object.create(R):(j.prototype=R.prototype,new j)});Object.defineProperty(E,"__esModule",{value:!0}),E.Terminal=void 0;var m=T(36),h=T(37),c=T(38),a=T(12),r=T(19),i=T(40),n=T(50),t=T(51),s=T(11),e=T(7),o=T(18),l=T(54),u=T(55),f=T(56),p=T(57),v=T(59),A=T(0),y=T(16),x=T(27),C=T(60),w=T(5),b=T(61),_=T(62),O=T(63),L=T(64),D=T(65),N=typeof window!="undefined"?window.document:null,M=function(F){function R(j){j===void 0&&(j={});var B=F.call(this,j)||this;return B.browser=s,B._keyDownHandled=!1,B._onCursorMove=new A.EventEmitter,B._onKey=new A.EventEmitter,B._onRender=new A.EventEmitter,B._onSelectionChange=new A.EventEmitter,B._onTitleChange=new A.EventEmitter,B._onFocus=new A.EventEmitter,B._onBlur=new A.EventEmitter,B._onA11yCharEmitter=new A.EventEmitter,B._onA11yTabEmitter=new A.EventEmitter,B._setup(),B.linkifier=B._instantiationService.createInstance(n.Linkifier),B.linkifier2=B.register(B._instantiationService.createInstance(O.Linkifier2)),B.register(B._inputHandler.onRequestBell(function(){return B.bell()})),B.register(B._inputHandler.onRequestRefreshRows(function(K,U){return B.refresh(K,U)})),B.register(B._inputHandler.onRequestReset(function(){return B.reset()})),B.register(B._inputHandler.onRequestScroll(function(K,U){return B.scroll(K,U||void 0)})),B.register(B._inputHandler.onRequestWindowsOptionsReport(function(K){return B._reportWindowsOptions(K)})),B.register(A.forwardEvent(B._inputHandler.onCursorMove,B._onCursorMove)),B.register(A.forwardEvent(B._inputHandler.onTitleChange,B._onTitleChange)),B.register(A.forwardEvent(B._inputHandler.onA11yChar,B._onA11yCharEmitter)),B.register(A.forwardEvent(B._inputHandler.onA11yTab,B._onA11yTabEmitter)),B.register(B._bufferService.onResize(function(K){return B._afterResize(K.cols,K.rows)})),B}return S(R,F),Object.defineProperty(R.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),R.prototype.dispose=function(){var j,B,K;this._isDisposed||(F.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(K=(B=this.element)===null||B===void 0?void 0:B.parentNode)===null||K===void 0||K.removeChild(this.element))},R.prototype._setup=function(){F.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(R.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),R.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},R.prototype._updateOptions=function(j){var B,K,U,z;switch(F.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(B=this._renderService)===null||B===void 0||B.clear(),(K=this._charSizeService)===null||K===void 0||K.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":(U=this.viewport)===null||U===void 0||U.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new f.AccessibilityManager(this,this._renderService)):((z=this._accessibilityManager)===null||z===void 0||z.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},R.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()},R.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},R.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()},R.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),B=this._bufferService.buffer.y*j,K=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=K+"px",this.textarea.style.top=B+"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"}},R.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(e.addDisposableDomListener(this.element,"copy",function(K){j.hasSelection()&&c.copyHandler(K,j._selectionService)}));var B=function(U){return c.handlePasteEvent(U,j.textarea,j._coreService)};this.register(e.addDisposableDomListener(this.textarea,"paste",B)),this.register(e.addDisposableDomListener(this.element,"paste",B)),s.isFirefox?this.register(e.addDisposableDomListener(this.element,"mousedown",function(K){K.button===2&&c.rightClickHandler(K,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(e.addDisposableDomListener(this.element,"contextmenu",function(K){c.rightClickHandler(K,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),s.isLinux&&this.register(e.addDisposableDomListener(this.element,"auxclick",function(K){K.button===1&&c.moveTextAreaUnderMouseCursor(K,j.textarea,j.screenElement)}))},R.prototype._bindKeys=function(){var j=this;this.register(e.addDisposableDomListener(this.textarea,"keyup",function(B){return j._keyUp(B)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keydown",function(B){return j._keyDown(B)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keypress",function(B){return j._keyPress(B)},!0)),this.register(e.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(e.addDisposableDomListener(this.textarea,"compositionupdate",function(B){return j._compositionHelper.compositionupdate(B)})),this.register(e.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(B){return j._queueLinkification(B.start,B.end)}))},R.prototype.open=function(j){var B=this;if(!j)throw new Error("Terminal requires a parent element.");N.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 K=N.createDocumentFragment();this._viewportElement=N.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),K.appendChild(this._viewportElement),this._viewportScrollArea=N.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=N.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=N.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),K.appendChild(this.screenElement),this.textarea=N.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.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(e.addDisposableDomListener(this.textarea,"focus",function(V){return B._onTextAreaFocus(V)})),this.register(e.addDisposableDomListener(this.textarea,"blur",function(){return B._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var U=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(w.ICoreBrowserService,U),this._charSizeService=this._instantiationService.createInstance(b.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(w.ICharSizeService,this._charSizeService),this._compositionView=N.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(m.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(K),this._theme=this.options.theme||this._theme,this._colorManager=new x.ColorManager(N,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(V){return B._colorManager.onOptionsChange(V)})),this._colorManager.setTheme(this._theme);var z=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(C.RenderService,z,this.rows,this.screenElement)),this._instantiationService.setService(w.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(V){return B._onRender.fire(V)})),this.onResize(function(V){return B._renderService.resize(V.cols,V.rows)}),this._soundService=this._instantiationService.createInstance(l.SoundService),this._instantiationService.setService(w.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(w.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,function(V,Y){return B.scrollLines(V,Y)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return B.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){B._renderService.onCursorMove(),B._syncTextArea()})),this.register(this.onResize(function(){return B._renderService.onResize(B.cols,B.rows)})),this.register(this.onBlur(function(){return B._renderService.onBlur()})),this.register(this.onFocus(function(){return B._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return B.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(t.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(w.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(V){return B.scrollLines(V.amount,V.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return B._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(V){return B._renderService.onSelectionChanged(V.start,V.end,V.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(V){B.textarea.value=V,B.textarea.focus(),B.textarea.select()})),this.register(this.onScroll(function(){B.viewport.syncScrollArea(),B._selectionService.refresh()})),this.register(e.addDisposableDomListener(this._viewportElement,"scroll",function(){return B._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(u.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return B._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(e.addDisposableDomListener(this.element,"mousedown",function(V){return B._selectionService.onMouseDown(V)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new f.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},R.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(i.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(p.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},R.prototype._setTheme=function(j){var B,K,U;this._theme=j,(B=this._colorManager)===null||B===void 0||B.setTheme(j),(K=this._renderService)===null||K===void 0||K.setColors(this._colorManager.colors),(U=this.viewport)===null||U===void 0||U.onThemeChange(this._colorManager.colors)},R.prototype.bindMouse=function(){var j=this,B=this,K=this.element;function U($){var ae,ge,pe=B._mouseService.getRawByteCoords($,B.screenElement,B.cols,B.rows);if(!pe)return!1;switch($.overrideType||$.type){case"mousemove":ge=32,$.buttons===void 0?(ae=3,$.button!==void 0&&(ae=$.button<3?$.button:3)):ae=1&$.buttons?0:4&$.buttons?1:2&$.buttons?2:3;break;case"mouseup":ge=0,ae=$.button<3?$.button:3;break;case"mousedown":ge=1,ae=$.button<3?$.button:3;break;case"wheel":$.deltaY!==0&&(ge=$.deltaY<0?0:1),ae=4;break;default:return!1}return!(ge===void 0||ae===void 0||ae>4)&&B._coreMouseService.triggerMouseEvent({col:pe.x-33,row:pe.y-33,button:ae,action:ge,ctrl:$.ctrlKey,alt:$.altKey,shift:$.shiftKey})}var z={mouseup:null,wheel:null,mousedrag:null,mousemove:null},V=function(ae){return U(ae),ae.buttons||(j._document.removeEventListener("mouseup",z.mouseup),z.mousedrag&&j._document.removeEventListener("mousemove",z.mousedrag)),j.cancel(ae)},Y=function(ae){return U(ae),ae.preventDefault(),j.cancel(ae)},J=function(ae){ae.buttons&&U(ae)},se=function(ae){ae.buttons||U(ae)};this.register(this._coreMouseService.onProtocolChange(function($){$?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents($)),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&$?z.mousemove||(K.addEventListener("mousemove",se),z.mousemove=se):(K.removeEventListener("mousemove",z.mousemove),z.mousemove=null),16&$?z.wheel||(K.addEventListener("wheel",Y,{passive:!1}),z.wheel=Y):(K.removeEventListener("wheel",z.wheel),z.wheel=null),2&$?z.mouseup||(z.mouseup=V):(j._document.removeEventListener("mouseup",z.mouseup),z.mouseup=null),4&$?z.mousedrag||(z.mousedrag=J):(j._document.removeEventListener("mousemove",z.mousedrag),z.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(e.addDisposableDomListener(K,"mousedown",function($){if($.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection($))return U($),z.mouseup&&j._document.addEventListener("mouseup",z.mouseup),z.mousedrag&&j._document.addEventListener("mousemove",z.mousedrag),j.cancel($)})),this.register(e.addDisposableDomListener(K,"wheel",function($){if(!z.wheel){if(!j.buffer.hasScrollback){var ae=j.viewport.getLinesScrolled($);if(ae===0)return;for(var ge=a.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+($.deltaY<0?"A":"B"),pe="",Ne=0;Ne<Math.abs(ae);Ne++)pe+=ge;j._coreService.triggerDataEvent(pe,!0)}}},{passive:!0})),this.register(e.addDisposableDomListener(K,"wheel",function($){if(!z.wheel)return j.viewport.onWheel($)?void 0:j.cancel($)},{passive:!1})),this.register(e.addDisposableDomListener(K,"touchstart",function($){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart($),j.cancel($)},{passive:!0})),this.register(e.addDisposableDomListener(K,"touchmove",function($){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove($)?void 0:j.cancel($)},{passive:!1}))},R.prototype.refresh=function(j,B){var K;(K=this._renderService)===null||K===void 0||K.refreshRows(j,B)},R.prototype._queueLinkification=function(j,B){var K;(K=this.linkifier)===null||K===void 0||K.linkifyRows(j,B)},R.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},R.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},R.prototype.scrollLines=function(j,B){F.prototype.scrollLines.call(this,j,B),this.refresh(0,this.rows-1)},R.prototype.paste=function(j){c.paste(j,this.textarea,this._coreService)},R.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},R.prototype.registerLinkMatcher=function(j,B,K){var U=this.linkifier.registerLinkMatcher(j,B,K);return this.refresh(0,this.rows-1),U},R.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},R.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},R.prototype.registerCharacterJoiner=function(j){var B=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),B},R.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(R.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),R.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},R.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},R.prototype.select=function(j,B,K){this._selectionService.setSelection(j,B,K)},R.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},R.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]}},R.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},R.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},R.prototype.selectLines=function(j,B){var K;(K=this._selectionService)===null||K===void 0||K.selectLines(j,B)},R.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 B=v.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),B.type===3||B.type===2){var K=this.rows-1;return this.scrollLines(B.type===2?-K:K),this.cancel(j,!0)}return B.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(B.cancel&&this.cancel(j,!0),!B.key||(B.key!==a.C0.ETX&&B.key!==a.C0.CR||(this.textarea.value=""),this._onKey.fire({key:B.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(B.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},R.prototype._isThirdLevelShift=function(j,B){var K=j.isMac&&!this.options.macOptionIsMeta&&B.altKey&&!B.ctrlKey&&!B.metaKey||j.isWindows&&B.altKey&&B.ctrlKey&&!B.metaKey;return B.type==="keypress"?K:K&&(!B.keyCode||B.keyCode>47)},R.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(B){return B.keyCode===16||B.keyCode===17||B.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},R.prototype._keyPress=function(j){var B;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)B=j.charCode;else if(j.which===null||j.which===void 0)B=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;B=j.which}return!(!B||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(B=String.fromCharCode(B),this._onKey.fire({key:B,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(B,!0),!0)},R.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},R.prototype.resize=function(j,B){j!==this.cols||B!==this.rows?F.prototype.resize.call(this,j,B):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},R.prototype._afterResize=function(j,B){var K,U;(K=this._charSizeService)===null||K===void 0||K.measure(),(U=this.viewport)===null||U===void 0||U.syncScrollArea(!0)},R.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(y.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},R.prototype.reset=function(){var j,B;this.options.rows=this.rows,this.options.cols=this.cols;var K=this._customKeyEventHandler;this._setup(),F.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=K,this.refresh(0,this.rows-1),(B=this.viewport)===null||B===void 0||B.syncScrollArea()},R.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var B=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),K=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[4;"+K+";"+B+"t");break;case r.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var U=this._renderService.dimensions.scaledCellWidth.toFixed(0),z=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[6;"+z+";"+U+"t")}},R.prototype.cancel=function(j,B){if(this.options.cancelEvents||B)return j.preventDefault(),j.stopPropagation(),!1},R.prototype._visualBell=function(){return!1},R.prototype._soundBell=function(){return this.options.bellStyle==="sound"},R}(D.CoreTerminal);E.Terminal=M},function(I,E,T){"use strict";var g=this&&this.__decorate||function(a,r,i,n){var t,s=arguments.length,e=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,i,n);else for(var o=a.length-1;o>=0;o--)(t=a[o])&&(e=(s<3?t(e):s>3?t(r,i,e):t(r,i))||e);return s>3&&e&&Object.defineProperty(r,i,e),e},S=this&&this.__param||function(a,r){return function(i,n){r(i,n,a)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CompositionHelper=void 0;var m=T(5),h=T(1),c=function(){function a(r,i,n,t,s,e){this._textarea=r,this._compositionView=i,this._bufferService=n,this._optionsService=t,this._charSizeService=s,this._coreService=e,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(r){var i=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){i._compositionPosition.end=i._textarea.value.length},0)},a.prototype.compositionend=function(){this._finalizeComposition(!0)},a.prototype.keydown=function(r){if(this._isComposing||this._isSendingComposition){if(r.keyCode===229)return!1;if(r.keyCode===16||r.keyCode===17||r.keyCode===18)return!1;this._finalizeComposition(!1)}return r.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},a.prototype._finalizeComposition=function(r){var i=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(i._isSendingComposition){i._isSendingComposition=!1;var s=void 0;s=i._isComposing?i._textarea.value.substring(n.start,n.end):i._textarea.value.substring(n.start),i._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;var t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}},a.prototype._handleAnyTextareaChanges=function(){var r=this,i=this._textarea.value;setTimeout(function(){if(!r._isComposing){var n=r._textarea.value.replace(i,"");n.length>0&&r._coreService.triggerDataEvent(n,!0)}},0)},a.prototype.updateCompositionElements=function(r){var i=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),t=this._bufferService.buffer.y*n,s=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=s+"px",this._compositionView.style.top=t+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._compositionView.getBoundingClientRect();this._textarea.style.left=s+"px",this._textarea.style.top=t+"px",this._textarea.style.width=e.width+"px",this._textarea.style.height=e.height+"px",this._textarea.style.lineHeight=e.height+"px"}r||setTimeout(function(){return i.updateCompositionElements(!0)},0)}},a=g([S(2,h.IBufferService),S(3,h.IOptionsService),S(4,m.ICharSizeService),S(5,h.ICoreService)],a)}();E.CompositionHelper=c},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(s,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(s,e)},function(t,s){function e(){this.constructor=t}g(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),m=this&&this.__decorate||function(t,s,e,o){var l,u=arguments.length,f=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var p=t.length-1;p>=0;p--)(l=t[p])&&(f=(u<3?l(f):u>3?l(s,e,f):l(s,e))||f);return u>3&&f&&Object.defineProperty(s,e,f),f},h=this&&this.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Viewport=void 0;var c=T(2),a=T(7),r=T(5),i=T(1),n=function(t){function s(e,o,l,u,f,p,v){var A=t.call(this)||this;return A._scrollLines=e,A._viewportElement=o,A._scrollArea=l,A._bufferService=u,A._optionsService=f,A._charSizeService=p,A._renderService=v,A.scrollBarWidth=0,A._currentRowHeight=0,A._lastRecordedBufferLength=0,A._lastRecordedViewportHeight=0,A._lastRecordedBufferHeight=0,A._lastTouchY=0,A._lastScrollTop=0,A._wheelPartialScroll=0,A._refreshAnimationFrame=null,A._ignoreNextScrollEvent=!1,A.scrollBarWidth=A._viewportElement.offsetWidth-A._scrollArea.offsetWidth||15,A.register(a.addDisposableDomListener(A._viewportElement,"scroll",A._onScroll.bind(A))),setTimeout(function(){return A.syncScrollArea()},0),A}return S(s,t),s.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},s.prototype._refresh=function(e){var o=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return o._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==o&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=o),this._refreshAnimationFrame=null},s.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===o&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)}else this._refresh(e)},s.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var o=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(o,!0)}},s.prototype._bubbleScroll=function(e,o){var l=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(o<0&&this._viewportElement.scrollTop!==0||o>0&&l<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},s.prototype.onWheel=function(e){var o=this._getPixelsScrolled(e);return o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(e,o))},s.prototype._getPixelsScrolled=function(e){if(e.deltaY===0)return 0;var o=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?o*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._currentRowHeight*this._bufferService.rows),o},s.prototype.getLinesScrolled=function(e){if(e.deltaY===0)return 0;var o=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(o/=this._currentRowHeight+0,this._wheelPartialScroll+=o,o=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o},s.prototype._applyScrollModifier=function(e,o){var l=this._optionsService.options.fastScrollModifier;return l==="alt"&&o.altKey||l==="ctrl"&&o.ctrlKey||l==="shift"&&o.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},s.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},s.prototype.onTouchMove=function(e){var o=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(e,o))},s=m([h(3,i.IBufferService),h(4,i.IOptionsService),h(5,r.ICharSizeService),h(6,r.IRenderService)],s)}(c.Disposable);E.Viewport=n},function(I,E,T){"use strict";function g(c){return c.replace(/\r?\n/g,"\r")}function S(c,a){return a?"[200~"+c+"[201~":c}function m(c,a,r){c=S(c=g(c),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(c,!0),a.value=""}function h(c,a,r){var i=r.getBoundingClientRect(),n=c.clientX-i.left-10,t=c.clientY-i.top-10;a.style.width="20px",a.style.height="20px",a.style.left=n+"px",a.style.top=t+"px",a.style.zIndex="1000",a.focus()}Object.defineProperty(E,"__esModule",{value:!0}),E.rightClickHandler=E.moveTextAreaUnderMouseCursor=E.paste=E.handlePasteEvent=E.copyHandler=E.bracketTextForPaste=E.prepareTextForTerminal=void 0,E.prepareTextForTerminal=g,E.bracketTextForPaste=S,E.copyHandler=function(c,a){c.clipboardData&&c.clipboardData.setData("text/plain",a.selectionText),c.preventDefault()},E.handlePasteEvent=function(c,a,r){c.stopPropagation(),c.clipboardData&&m(c.clipboardData.getData("text/plain"),a,r)},E.paste=m,E.moveTextAreaUnderMouseCursor=h,E.rightClickHandler=function(c,a,r,i,n){h(c,a,r),n&&!i.isClickInSelection(c)&&i.selectWordAtCursor(c),a.value=i.selectionText,a.select()}},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(s,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(s,e)},function(t,s){function e(){this.constructor=t}g(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)});Object.defineProperty(E,"__esModule",{value:!0}),E.EscapeSequenceParser=E.VT500_TRANSITION_TABLE=E.TransitionTable=void 0;var m=T(2),h=T(15),c=T(21),a=T(22),r=T(24),i=function(){function t(s){this.table=new Uint8Array(s)}return t.prototype.setDefault=function(s,e){h.fill(this.table,s<<4|e)},t.prototype.add=function(s,e,o,l){this.table[e<<8|s]=o<<4|l},t.prototype.addMany=function(s,e,o,l){for(var u=0;u<s.length;u++)this.table[e<<8|s[u]]=o<<4|l},t}();E.TransitionTable=i,E.VT500_TRANSITION_TABLE=function(){var t=new i(4095),s=Array.apply(null,Array(256)).map(function(p,v){return v}),e=function(v,A){return s.slice(v,A)},o=e(32,127),l=e(0,24);l.push(25),l.push.apply(l,e(28,32));var u,f=e(0,14);for(u in t.setDefault(1,0),t.addMany(o,0,2,0),f)t.addMany([24,26,153,154],u,3,0),t.addMany(e(128,144),u,3,0),t.addMany(e(144,152),u,3,0),t.add(156,u,0,0),t.add(27,u,11,1),t.add(157,u,4,8),t.addMany([152,158,159],u,0,7),t.add(155,u,11,3),t.add(144,u,11,9);return t.addMany(l,0,3,0),t.addMany(l,1,3,1),t.add(127,1,0,1),t.addMany(l,8,0,8),t.addMany(l,3,3,3),t.add(127,3,0,3),t.addMany(l,4,3,4),t.add(127,4,0,4),t.addMany(l,6,3,6),t.addMany(l,5,3,5),t.add(127,5,0,5),t.addMany(l,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(o,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(e(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(o,7,0,7),t.addMany(l,7,0,7),t.add(156,7,0,0),t.add(127,7,0,7),t.add(91,1,11,3),t.addMany(e(64,127),3,7,0),t.addMany(e(48,60),3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(e(48,60),4,8,4),t.addMany(e(64,127),4,7,0),t.addMany([60,61,62,63],4,0,6),t.addMany(e(32,64),6,0,6),t.add(127,6,0,6),t.addMany(e(64,127),6,0,0),t.addMany(e(32,48),3,9,5),t.addMany(e(32,48),5,9,5),t.addMany(e(48,64),5,0,6),t.addMany(e(64,127),5,7,0),t.addMany(e(32,48),4,9,5),t.addMany(e(32,48),1,9,2),t.addMany(e(32,48),2,9,2),t.addMany(e(48,127),2,10,0),t.addMany(e(48,80),1,10,0),t.addMany(e(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(e(96,127),1,10,0),t.add(80,1,11,9),t.addMany(l,9,0,9),t.add(127,9,0,9),t.addMany(e(28,32),9,0,9),t.addMany(e(32,48),9,9,12),t.addMany(e(48,60),9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(l,11,0,11),t.addMany(e(32,128),11,0,11),t.addMany(e(28,32),11,0,11),t.addMany(l,10,0,10),t.add(127,10,0,10),t.addMany(e(28,32),10,0,10),t.addMany(e(48,60),10,8,10),t.addMany([60,61,62,63],10,0,11),t.addMany(e(32,48),10,9,12),t.addMany(l,12,0,12),t.add(127,12,0,12),t.addMany(e(28,32),12,0,12),t.addMany(e(32,48),12,9,12),t.addMany(e(48,64),12,0,11),t.addMany(e(64,127),12,12,13),t.addMany(e(64,127),10,12,13),t.addMany(e(64,127),9,12,13),t.addMany(l,13,13,13),t.addMany(o,13,13,13),t.add(127,13,0,13),t.addMany([27,156,24,26],13,14,0),t.add(160,0,2,0),t.add(160,8,5,8),t.add(160,6,0,6),t.add(160,11,0,11),t.add(160,13,13,13),t}();var n=function(t){function s(e){e===void 0&&(e=E.VT500_TRANSITION_TABLE);var o=t.call(this)||this;return o._transitions=e,o.initialState=0,o.currentState=o.initialState,o._params=new c.Params,o._params.addParam(0),o._collect=0,o.precedingCodepoint=0,o._printHandlerFb=function(l,u,f){},o._executeHandlerFb=function(l){},o._csiHandlerFb=function(l,u){},o._escHandlerFb=function(l){},o._errorHandlerFb=function(l){return l},o._printHandler=o._printHandlerFb,o._executeHandlers=Object.create(null),o._csiHandlers=Object.create(null),o._escHandlers=Object.create(null),o._oscParser=new a.OscParser,o._dcsParser=new r.DcsParser,o._errorHandler=o._errorHandlerFb,o.setEscHandler({final:"\\"},function(){}),o}return S(s,t),s.prototype._identifier=function(e,o){o===void 0&&(o=[64,126]);var l=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((l=e.prefix.charCodeAt(0))&&60>l||l>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var u=0;u<e.intermediates.length;++u){var f=e.intermediates.charCodeAt(u);if(32>f||f>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");l<<=8,l|=f}}if(e.final.length!==1)throw new Error("final must be a single byte");var p=e.final.charCodeAt(0);if(o[0]>p||p>o[1])throw new Error("final must be in range "+o[0]+" .. "+o[1]);return l<<=8,l|=p},s.prototype.identToString=function(e){for(var o=[];e;)o.push(String.fromCharCode(255&e)),e>>=8;return o.reverse().join("")},s.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},s.prototype.setPrintHandler=function(e){this._printHandler=e},s.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},s.prototype.addEscHandler=function(e,o){var l=this._identifier(e,[48,126]);this._escHandlers[l]===void 0&&(this._escHandlers[l]=[]);var u=this._escHandlers[l];return u.push(o),{dispose:function(){var p=u.indexOf(o);p!==-1&&u.splice(p,1)}}},s.prototype.setEscHandler=function(e,o){this._escHandlers[this._identifier(e,[48,126])]=[o]},s.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},s.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},s.prototype.setExecuteHandler=function(e,o){this._executeHandlers[e.charCodeAt(0)]=o},s.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},s.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},s.prototype.addCsiHandler=function(e,o){var l=this._identifier(e);this._csiHandlers[l]===void 0&&(this._csiHandlers[l]=[]);var u=this._csiHandlers[l];return u.push(o),{dispose:function(){var p=u.indexOf(o);p!==-1&&u.splice(p,1)}}},s.prototype.setCsiHandler=function(e,o){this._csiHandlers[this._identifier(e)]=[o]},s.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},s.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},s.prototype.addDcsHandler=function(e,o){return this._dcsParser.addHandler(this._identifier(e),o)},s.prototype.setDcsHandler=function(e,o){this._dcsParser.setHandler(this._identifier(e),o)},s.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},s.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},s.prototype.addOscHandler=function(e,o){return this._oscParser.addHandler(e,o)},s.prototype.setOscHandler=function(e,o){this._oscParser.setHandler(e,o)},s.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},s.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},s.prototype.setErrorHandler=function(e){this._errorHandler=e},s.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},s.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},s.prototype.parse=function(e,o){for(var l=0,u=0,f=this.currentState,p=this._oscParser,v=this._dcsParser,A=this._collect,y=this._params,x=this._transitions.table,C=0;C<o;++C){switch((u=x[f<<8|((l=e[C])<160?l:160)])>>4){case 2:for(var w=C+1;;++w){if(w>=o||(l=e[w])<32||l>126&&l<160){this._printHandler(e,C,w),C=w-1;break}if(++w>=o||(l=e[w])<32||l>126&&l<160){this._printHandler(e,C,w),C=w-1;break}if(++w>=o||(l=e[w])<32||l>126&&l<160){this._printHandler(e,C,w),C=w-1;break}if(++w>=o||(l=e[w])<32||l>126&&l<160){this._printHandler(e,C,w),C=w-1;break}}break;case 3:this._executeHandlers[l]?this._executeHandlers[l]():this._executeHandlerFb(l),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:C,code:l,currentState:f,collect:A,params:y,abort:!1}).abort)return;break;case 7:for(var b=this._csiHandlers[A<<8|l],_=b?b.length-1:-1;_>=0&&b[_](y)===!1;_--);_<0&&this._csiHandlerFb(A<<8|l,y),this.precedingCodepoint=0;break;case 8:do switch(l){case 59:y.addParam(0);break;case 58:y.addSubParam(-1);break;default:y.addDigit(l-48)}while(++C<o&&(l=e[C])>47&&l<60);C--;break;case 9:A<<=8,A|=l;break;case 10:for(var O=this._escHandlers[A<<8|l],L=O?O.length-1:-1;L>=0&&O[L]()===!1;L--);L<0&&this._escHandlerFb(A<<8|l),this.precedingCodepoint=0;break;case 11:y.reset(),y.addParam(0),A=0;break;case 12:v.hook(A<<8|l,y);break;case 13:for(var D=C+1;;++D)if(D>=o||(l=e[D])===24||l===26||l===27||l>127&&l<160){v.put(e,C,D),C=D-1;break}break;case 14:v.unhook(l!==24&&l!==26),l===27&&(u|=1),y.reset(),y.addParam(0),A=0,this.precedingCodepoint=0;break;case 4:p.start();break;case 5:for(var N=C+1;;N++)if(N>=o||(l=e[N])<32||l>127&&l<=159){p.put(e,C,N),C=N-1;break}break;case 6:p.end(l!==24&&l!==26),l===27&&(u|=1),y.reset(),y.addParam(0),A=0,this.precedingCodepoint=0}f=15&u}this._collect=A,this.currentState=f},s}(m.Disposable);E.EscapeSequenceParser=n},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(v,A){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var C in x)x.hasOwnProperty(C)&&(y[C]=x[C])})(v,A)},function(p,v){function A(){this.constructor=p}g(p,v),p.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)}),m=this&&this.__decorate||function(p,v,A,y){var x,C=arguments.length,w=C<3?v:y===null?y=Object.getOwnPropertyDescriptor(v,A):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,v,A,y);else for(var b=p.length-1;b>=0;b--)(x=p[b])&&(w=(C<3?x(w):C>3?x(v,A,w):x(v,A))||w);return C>3&&w&&Object.defineProperty(v,A,w),w},h=this&&this.__param||function(p,v){return function(A,y){v(A,y,p)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Renderer=void 0;var c=T(41),a=T(47),r=T(48),i=T(49),n=T(29),t=T(2),s=T(5),e=T(1),o=T(25),l=T(0),u=1,f=function(p){function v(A,y,x,C,w,b,_,O,L){var D=p.call(this)||this;D._colors=A,D._screenElement=y,D._bufferService=w,D._charSizeService=b,D._optionsService=_,D._id=u++,D._onRequestRedraw=new l.EventEmitter;var N=D._optionsService.options.allowTransparency;return D._characterJoinerRegistry=new n.CharacterJoinerRegistry(D._bufferService),D._renderLayers=[new c.TextRenderLayer(D._screenElement,0,D._colors,D._characterJoinerRegistry,N,D._id,D._bufferService,_),new a.SelectionRenderLayer(D._screenElement,1,D._colors,D._id,D._bufferService,_),new i.LinkRenderLayer(D._screenElement,2,D._colors,D._id,x,C,D._bufferService,_),new r.CursorRenderLayer(D._screenElement,3,D._colors,D._id,D._onRequestRedraw,D._bufferService,_,O,L)],D.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},D._devicePixelRatio=window.devicePixelRatio,D._updateDimensions(),D.onOptionsChanged(),D}return S(v,p),Object.defineProperty(v.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),v.prototype.dispose=function(){for(var A=0,y=this._renderLayers;A<y.length;A++)y[A].dispose();p.prototype.dispose.call(this),o.removeTerminalFromCache(this._id)},v.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},v.prototype.setColors=function(A){this._colors=A;for(var y=0,x=this._renderLayers;y<x.length;y++){var C=x[y];C.setColors(this._colors),C.reset()}},v.prototype.onResize=function(A,y){this._updateDimensions();for(var x=0,C=this._renderLayers;x<C.length;x++)C[x].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},v.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},v.prototype.onBlur=function(){this._runOperation(function(A){return A.onBlur()})},v.prototype.onFocus=function(){this._runOperation(function(A){return A.onFocus()})},v.prototype.onSelectionChanged=function(A,y,x){x===void 0&&(x=!1),this._runOperation(function(C){return C.onSelectionChanged(A,y,x)})},v.prototype.onCursorMove=function(){this._runOperation(function(A){return A.onCursorMove()})},v.prototype.onOptionsChanged=function(){this._runOperation(function(A){return A.onOptionsChanged()})},v.prototype.clear=function(){this._runOperation(function(A){return A.reset()})},v.prototype._runOperation=function(A){for(var y=0,x=this._renderLayers;y<x.length;y++)A(x[y])},v.prototype.renderRows=function(A,y){for(var x=0,C=this._renderLayers;x<C.length;x++)C[x].onGridChanged(A,y)},v.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)},v.prototype.registerCharacterJoiner=function(A){return this._characterJoinerRegistry.registerCharacterJoiner(A)},v.prototype.deregisterCharacterJoiner=function(A){return this._characterJoinerRegistry.deregisterCharacterJoiner(A)},v=m([h(4,e.IBufferService),h(5,s.ICharSizeService),h(6,e.IOptionsService),h(7,e.ICoreService),h(8,s.ICoreBrowserService)],v)}(t.Disposable);E.Renderer=f},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(s,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(s,e)},function(t,s){function e(){this.constructor=t}g(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)});Object.defineProperty(E,"__esModule",{value:!0}),E.TextRenderLayer=void 0;var m=T(42),h=T(13),c=T(6),a=T(3),r=T(29),i=T(4),n=function(t){function s(e,o,l,u,f,p,v,A){var y=t.call(this,e,"text",o,f,l,p,v,A)||this;return y._characterWidth=0,y._characterFont="",y._characterOverlapCache={},y._workCell=new i.CellData,y._state=new m.GridCache,y._characterJoinerRegistry=u,y}return S(s,t),s.prototype.resize=function(e){t.prototype.resize.call(this,e);var o=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===o||(this._characterWidth=e.scaledCharWidth,this._characterFont=o,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},s.prototype.reset=function(){this._state.clear(),this._clearAll()},s.prototype._forEachCell=function(e,o,l,u){for(var f=e;f<=o;f++)for(var p=f+this._bufferService.buffer.ydisp,v=this._bufferService.buffer.lines.get(p),A=l?l.getJoinedCharacters(p):[],y=0;y<this._bufferService.cols;y++){v.loadCell(y,this._workCell);var x=this._workCell,C=!1,w=y;if(x.getWidth()!==0){if(A.length>0&&y===A[0][0]){C=!0;var b=A.shift();x=new r.JoinedCellData(this._workCell,v.translateToString(!0,b[0],b[1]),b[1]-b[0]),w=b[1]-1}!C&&this._isOverlapping(x)&&w<v.length-1&&v.getCodePoint(w+1)===a.NULL_CELL_CODE&&(x.content&=-12582913,x.content|=2<<22),u(x,y,f),y=w}}},s.prototype._drawBackground=function(e,o){var l=this,u=this._ctx,f=this._bufferService.cols,p=0,v=0,A=null;u.save(),this._forEachCell(e,o,null,function(y,x,C){var w=null;y.isInverse()?w=y.isFgDefault()?l._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":l._colors.ansi[y.getFgColor()].css:y.isBgRGB()?w="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(w=l._colors.ansi[y.getBgColor()].css),A===null&&(p=x,v=C),C!==v?(u.fillStyle=A||"",l._fillCells(p,v,f-p,1),p=x,v=C):A!==w&&(u.fillStyle=A||"",l._fillCells(p,v,x-p,1),p=x,v=C),A=w}),A!==null&&(u.fillStyle=A,this._fillCells(p,v,f-p,1)),u.restore()},s.prototype._drawForeground=function(e,o){var l=this;this._forEachCell(e,o,this._characterJoinerRegistry,function(u,f,p){if(!u.isInvisible()&&(l._drawChars(u,f,p),u.isUnderline())){if(l._ctx.save(),u.isInverse())if(u.isBgDefault())l._ctx.fillStyle=l._colors.background.css;else if(u.isBgRGB())l._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getBgColor()).join(",")+")";else{var v=u.getBgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&v<8&&(v+=8),l._ctx.fillStyle=l._colors.ansi[v].css}else if(u.isFgDefault())l._ctx.fillStyle=l._colors.foreground.css;else if(u.isFgRGB())l._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getFgColor()).join(",")+")";else{var A=u.getFgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&A<8&&(A+=8),l._ctx.fillStyle=l._colors.ansi[A].css}l._fillBottomLineAtCells(f,p,u.getWidth()),l._ctx.restore()}})},s.prototype.onGridChanged=function(e,o){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,o-e+1),this._drawBackground(e,o),this._drawForeground(e,o))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(e){if(e.getWidth()!==1)return!1;if(e.getCode()<256)return!1;var o=e.getChars();if(this._characterOverlapCache.hasOwnProperty(o))return this._characterOverlapCache[o];this._ctx.save(),this._ctx.font=this._characterFont;var l=Math.floor(this._ctx.measureText(o).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[o]=l,l},s}(h.BaseRenderLayer);E.TextRenderLayer=n},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.GridCache=void 0;var g=function(){function S(){this.cache=[]}return S.prototype.resize=function(m,h){for(var c=0;c<m;c++){this.cache.length<=c&&this.cache.push([]);for(var a=this.cache[c].length;a<h;a++)this.cache[c].push(void 0);this.cache[c].length=h}this.cache.length=m},S.prototype.clear=function(){for(var m=0;m<this.cache.length;m++)for(var h=0;h<this.cache[m].length;h++)this.cache[m][h]=void 0},S}();E.GridCache=g},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(u,f){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var A in v)v.hasOwnProperty(A)&&(p[A]=v[A])})(u,f)},function(l,u){function f(){this.constructor=l}g(l,u),l.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)});Object.defineProperty(E,"__esModule",{value:!0}),E.NoneCharAtlas=E.DynamicCharAtlas=E.getGlyphCacheKey=void 0;var m=T(9),h=T(44),c=T(27),a=T(46),r=T(11),i=T(28),n=T(10),t={css:"rgba(0, 0, 0, 0)",rgba:0};function s(l){return l.code<<21|l.bg<<12|l.fg<<3|(l.bold?0:4)+(l.dim?0:2)+(l.italic?0:1)}E.getGlyphCacheKey=s;var e=function(l){function u(f,p){var v=l.call(this)||this;v._config=p,v._drawToCacheCount=0,v._glyphsWaitingOnBitmap=[],v._bitmapCommitTimeout=null,v._bitmap=null,v._cacheCanvas=f.createElement("canvas"),v._cacheCanvas.width=1024,v._cacheCanvas.height=1024,v._cacheCtx=i.throwIfFalsy(v._cacheCanvas.getContext("2d",{alpha:!0}));var A=f.createElement("canvas");A.width=v._config.scaledCharWidth,A.height=v._config.scaledCharHeight,v._tmpCtx=i.throwIfFalsy(A.getContext("2d",{alpha:v._config.allowTransparency})),v._width=Math.floor(1024/v._config.scaledCharWidth),v._height=Math.floor(1024/v._config.scaledCharHeight);var y=v._width*v._height;return v._cacheMap=new a.LRUMap(y),v._cacheMap.prealloc(y),v}return S(u,l),u.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},u.prototype.beginFrame=function(){this._drawToCacheCount=0},u.prototype.draw=function(f,p,v,A){if(p.code===32)return!0;if(!this._canCache(p))return!1;var y=s(p),x=this._cacheMap.get(y);if(x!=null)return this._drawFromCache(f,x,v,A),!0;if(this._drawToCacheCount<100){var C=void 0;C=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var w=this._drawToCache(p,C);return this._cacheMap.set(y,w),this._drawFromCache(f,w,v,A),!0}return!1},u.prototype._canCache=function(f){return f.code<256},u.prototype._toCoordinateX=function(f){return f%this._width*this._config.scaledCharWidth},u.prototype._toCoordinateY=function(f){return Math.floor(f/this._width)*this._config.scaledCharHeight},u.prototype._drawFromCache=function(f,p,v,A){if(!p.isEmpty){var y=this._toCoordinateX(p.index),x=this._toCoordinateY(p.index);f.drawImage(p.inBitmap?this._bitmap:this._cacheCanvas,y,x,this._config.scaledCharWidth,this._config.scaledCharHeight,v,A,this._config.scaledCharWidth,this._config.scaledCharHeight)}},u.prototype._getColorFromAnsiIndex=function(f){return f<this._config.colors.ansi.length?this._config.colors.ansi[f]:c.DEFAULT_ANSI_COLORS[f]},u.prototype._getBackgroundColor=function(f){return this._config.allowTransparency?t:f.bg===m.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:f.bg<256?this._getColorFromAnsiIndex(f.bg):this._config.colors.background},u.prototype._getForegroundColor=function(f){return f.fg===m.INVERTED_DEFAULT_COLOR?n.color.opaque(this._config.colors.background):f.fg<256?this._getColorFromAnsiIndex(f.fg):this._config.colors.foreground},u.prototype._drawToCache=function(f,p){this._drawToCacheCount++,this._tmpCtx.save();var v=this._getBackgroundColor(f);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=v.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var A=f.bold?this._config.fontWeightBold:this._config.fontWeight,y=f.italic?"italic":"";this._tmpCtx.font=y+" "+A+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(f).css,f.dim&&(this._tmpCtx.globalAlpha=m.DIM_OPACITY),this._tmpCtx.fillText(f.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var x=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),C=!1;this._config.allowTransparency||(C=function(O,L){for(var D=!0,N=L.rgba>>>24,M=L.rgba>>>16&255,F=L.rgba>>>8&255,R=0;R<O.data.length;R+=4)O.data[R]===N&&O.data[R+1]===M&&O.data[R+2]===F?O.data[R+3]=0:D=!1;return D}(x,v));var w=this._toCoordinateX(p),b=this._toCoordinateY(p);this._cacheCtx.putImageData(x,w,b);var _={index:p,isEmpty:C,inBitmap:!1};return this._addGlyphToBitmap(_),_},u.prototype._addGlyphToBitmap=function(f){var p=this;!("createImageBitmap"in window)||r.isFirefox||r.isSafari||(this._glyphsWaitingOnBitmap.push(f),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return p._generateBitmap()},100)))},u.prototype._generateBitmap=function(){var f=this,p=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(v){f._bitmap=v;for(var A=0;A<p.length;A++)p[A].inBitmap=!0}),this._bitmapCommitTimeout=null},u}(h.BaseCharAtlas);E.DynamicCharAtlas=e;var o=function(l){function u(f,p){return l.call(this)||this}return S(u,l),u.prototype.draw=function(f,p,v,A){return!1},u}(h.BaseCharAtlas);E.NoneCharAtlas=o},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BaseCharAtlas=void 0;var g=function(){function S(){this._didWarmUp=!1}return S.prototype.dispose=function(){},S.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},S.prototype._doWarmUp=function(){},S.prototype.beginFrame=function(){},S}();E.BaseCharAtlas=g},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ColorContrastCache=void 0;var g=function(){function S(){this._color={},this._rgba={}}return S.prototype.clear=function(){this._color={},this._rgba={}},S.prototype.setCss=function(m,h,c){this._rgba[m]||(this._rgba[m]={}),this._rgba[m][h]=c},S.prototype.getCss=function(m,h){return this._rgba[m]?this._rgba[m][h]:void 0},S.prototype.setColor=function(m,h,c){this._color[m]||(this._color[m]={}),this._color[m][h]=c},S.prototype.getColor=function(m,h){return this._color[m]?this._color[m][h]:void 0},S}();E.ColorContrastCache=g},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.LRUMap=void 0;var g=function(){function S(m){this.capacity=m,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return S.prototype._unlinkNode=function(m){var h=m.prev,c=m.next;m===this._head&&(this._head=c),m===this._tail&&(this._tail=h),h!==null&&(h.next=c),c!==null&&(c.prev=h)},S.prototype._appendNode=function(m){var h=this._tail;h!==null&&(h.next=m),m.prev=h,m.next=null,this._tail=m,this._head===null&&(this._head=m)},S.prototype.prealloc=function(m){for(var h=this._nodePool,c=0;c<m;c++)h.push({prev:null,next:null,key:null,value:null})},S.prototype.get=function(m){var h=this._map[m];return h!==void 0?(this._unlinkNode(h),this._appendNode(h),h.value):null},S.prototype.peekValue=function(m){var h=this._map[m];return h!==void 0?h.value:null},S.prototype.peek=function(){var m=this._head;return m===null?null:m.value},S.prototype.set=function(m,h){var c=this._map[m];if(c!==void 0)c=this._map[m],this._unlinkNode(c),c.value=h;else if(this.size>=this.capacity)c=this._head,this._unlinkNode(c),delete this._map[c.key],c.key=m,c.value=h,this._map[m]=c;else{var a=this._nodePool;a.length>0?((c=a.pop()).key=m,c.value=h):c={prev:null,next:null,key:m,value:h},this._map[m]=c,this.size++}this._appendNode(c)},S}();E.LRUMap=g},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(c,a){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(c,a)},function(h,c){function a(){this.constructor=h}g(h,c),h.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionRenderLayer=void 0;var m=function(h){function c(a,r,i,n,t,s){var e=h.call(this,a,"selection",r,!0,i,n,t,s)||this;return e._clearState(),e}return S(c,h),c.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},c.prototype.resize=function(a){h.prototype.resize.call(this,a),this._clearState()},c.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},c.prototype.onSelectionChanged=function(a,r,i){if(this._didStateChange(a,r,i,this._bufferService.buffer.ydisp))if(this._clearAll(),a&&r){var n=a[1]-this._bufferService.buffer.ydisp,t=r[1]-this._bufferService.buffer.ydisp,s=Math.max(n,0),e=Math.min(t,this._bufferService.rows-1);if(!(s>=this._bufferService.rows||e<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var o=a[0],l=r[0]-o,u=e-s+1;this._fillCells(o,s,l,u)}else{o=n===s?a[0]:0;var f=s===e?r[0]:this._bufferService.cols;this._fillCells(o,s,f-o,1);var p=Math.max(e-s-1,0);if(this._fillCells(0,s+1,this._bufferService.cols,p),s!==e){var v=t===e?r[0]:this._bufferService.cols;this._fillCells(0,e,v,1)}}this._state.start=[a[0],a[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},c.prototype._didStateChange=function(a,r,i,n){return!this._areCoordinatesEqual(a,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||i!==this._state.columnSelectMode||n!==this._state.ydisp},c.prototype._areCoordinatesEqual=function(a,r){return!(!a||!r)&&a[0]===r[0]&&a[1]===r[1]},c}(T(13).BaseRenderLayer);E.SelectionRenderLayer=m},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(i,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var e in s)s.hasOwnProperty(e)&&(t[e]=s[e])})(i,n)},function(r,i){function n(){this.constructor=r}g(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.CursorRenderLayer=void 0;var m=T(13),h=T(4),c=function(r){function i(n,t,s,e,o,l,u,f,p){var v=r.call(this,n,"cursor",t,!0,s,e,l,u)||this;return v._onRequestRedraw=o,v._coreService=f,v._coreBrowserService=p,v._cell=new h.CellData,v._state={x:0,y:0,isFocused:!1,style:"",width:0},v._cursorRenderers={bar:v._renderBarCursor.bind(v),block:v._renderBlockCursor.bind(v),underline:v._renderUnderlineCursor.bind(v)},v}return S(i,r),i.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},i.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},i.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onOptionsChanged=function(){var n,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){t._render(!0)})):((n=this._cursorBlinkStateManager)===null||n===void 0||n.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype.onGridChanged=function(n,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype._render=function(n){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,s=t-this._bufferService.buffer.ydisp;if(s<0||s>=this._bufferService.rows)this._clearCursor();else{var e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(e,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var o=this._optionsService.options.cursorStyle;return o&&o!=="block"?this._cursorRenderers[o](e,s,this._cell):this._renderBlurCursor(e,s,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=s,this._state.isFocused=!1,this._state.style=o,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e&&this._state.y===s&&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"](e,s,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=s,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},i.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})},i.prototype._renderBarCursor=function(n,t,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,t,this._optionsService.options.cursorWidth),this._ctx.restore()},i.prototype._renderBlockCursor=function(n,t,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,t,s.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(s,n,t),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(n,t,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,t),this._ctx.restore()},i.prototype._renderBlurCursor=function(n,t,s){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,t,s.getWidth(),1),this._ctx.restore()},i}(m.BaseRenderLayer);E.CursorRenderLayer=c;var a=function(){function r(i,n){this._renderCallback=n,this.isCursorVisible=!0,i&&this._restartInterval()}return Object.defineProperty(r.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),r.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)},r.prototype.restartBlinkAnimation=function(){var i=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})))},r.prototype._restartInterval=function(i){var n=this;i===void 0&&(i=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(n._animationTimeRestarted){var t=600-(Date.now()-n._animationTimeRestarted);if(n._animationTimeRestarted=void 0,t>0)return void n._restartInterval(t)}n.isCursorVisible=!1,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0}),n._blinkInterval=window.setInterval(function(){if(n._animationTimeRestarted){var s=600-(Date.now()-n._animationTimeRestarted);return n._animationTimeRestarted=void 0,void n._restartInterval(s)}n.isCursorVisible=!n.isCursorVisible,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})},600)},i)},r.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)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(i,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var e in s)s.hasOwnProperty(e)&&(t[e]=s[e])})(i,n)},function(r,i){function n(){this.constructor=r}g(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.LinkRenderLayer=void 0;var m=T(13),h=T(9),c=T(26),a=function(r){function i(n,t,s,e,o,l,u,f){var p=r.call(this,n,"link",t,!0,s,e,u,f)||this;return o.onShowLinkUnderline(function(v){return p._onShowLinkUnderline(v)}),o.onHideLinkUnderline(function(v){return p._onHideLinkUnderline(v)}),l.onShowLinkUnderline(function(v){return p._onShowLinkUnderline(v)}),l.onHideLinkUnderline(function(v){return p._onHideLinkUnderline(v)}),p}return S(i,r),i.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state=void 0},i.prototype.reset=function(){this._clearCurrentLink()},i.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var n=this._state.y2-this._state.y1-1;n>0&&this._clearCells(0,this._state.y1+1,this._state.cols,n),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},i.prototype._onShowLinkUnderline=function(n){if(n.fg===h.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:n.fg&&c.is256Color(n.fg)?this._ctx.fillStyle=this._colors.ansi[n.fg].css:this._ctx.fillStyle=this._colors.foreground.css,n.y1===n.y2)this._fillBottomLineAtCells(n.x1,n.y1,n.x2-n.x1);else{this._fillBottomLineAtCells(n.x1,n.y1,n.cols-n.x1);for(var t=n.y1+1;t<n.y2;t++)this._fillBottomLineAtCells(0,t,n.cols);this._fillBottomLineAtCells(0,n.y2,n.x2)}this._state=n},i.prototype._onHideLinkUnderline=function(n){this._clearCurrentLink()},i}(m.BaseRenderLayer);E.LinkRenderLayer=a},function(I,E,T){"use strict";var g=this&&this.__decorate||function(r,i,n,t){var s,e=arguments.length,o=e<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,i,n,t);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(o=(e<3?s(o):e>3?s(i,n,o):s(i,n))||o);return e>3&&o&&Object.defineProperty(i,n,o),o},S=this&&this.__param||function(r,i){return function(n,t){i(n,t,r)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseZone=E.Linkifier=void 0;var m=T(0),h=T(1),c=function(){function r(i,n,t){this._bufferService=i,this._logService=n,this._unicodeService=t,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new m.EventEmitter,this._onHideLinkUnderline=new m.EventEmitter,this._onLinkTooltip=new m.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),r.prototype.attachToDom=function(i,n){this._element=i,this._mouseZoneManager=n},r.prototype.linkifyRows=function(i,n){var t=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=i,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,i),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(i,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return t._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var i=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var n=i.ydisp+this._rowsToLinkify.start;if(!(n>=i.lines.length)){for(var t=i.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,s=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,n,t,s,s);e.hasNext();)for(var o=e.next(),l=0;l<this._linkMatchers.length;l++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[l]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(i,n,t){if(t===void 0&&(t={}),!n)throw new Error("handler must be defined");var s={id:this._nextLinkMatcherId++,regex:i,handler:n,matchIndex:t.matchIndex,validationCallback:t.validationCallback,hoverTooltipCallback:t.tooltipCallback,hoverLeaveCallback:t.leaveCallback,willLinkActivate:t.willLinkActivate,priority:t.priority||0};return this._addLinkMatcherToList(s),s.id},r.prototype._addLinkMatcherToList=function(i){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(i.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},r.prototype.deregisterLinkMatcher=function(i){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===i)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(i,n,t){for(var s,e=this,o=new RegExp(t.regex.source,(t.regex.flags||"")+"g"),l=-1,u=function(){var v=s[typeof t.matchIndex!="number"?0:t.matchIndex];if(!v)return f._logService.debug("match found without corresponding matchIndex",s,t),"break";if(l=n.indexOf(v,l+1),o.lastIndex=l+v.length,l<0)return"break";var A=f._bufferService.buffer.stringIndexToBufferIndex(i,l);if(A[0]<0)return"break";var y=f._bufferService.buffer.lines.get(A[0]);if(!y)return"break";var x=y.getFg(A[1]),C=x?x>>9&511:void 0;t.validationCallback?t.validationCallback(v,function(w){e._rowsTimeoutId||w&&e._addLink(A[1],A[0]-e._bufferService.buffer.ydisp,v,t,C)}):f._addLink(A[1],A[0]-f._bufferService.buffer.ydisp,v,t,C)},f=this;(s=o.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(i,n,t,s,e){var o=this;if(this._mouseZoneManager&&this._element){var l=this._unicodeService.getStringCellWidth(t),u=i%this._bufferService.cols,f=n+Math.floor(i/this._bufferService.cols),p=(u+l)%this._bufferService.cols,v=f+Math.floor((u+l)/this._bufferService.cols);p===0&&(p=this._bufferService.cols,v--),this._mouseZoneManager.add(new a(u+1,f+1,p+1,v+1,function(A){if(s.handler)return s.handler(A,t);var y=window.open();y?(y.opener=null,y.location.href=t):console.warn("Opening link blocked as opener could not be cleared")},function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(u,f,p,v,e)),o._element.classList.add("xterm-cursor-pointer")},function(A){o._onLinkTooltip.fire(o._createLinkHoverEvent(u,f,p,v,e)),s.hoverTooltipCallback&&s.hoverTooltipCallback(A,t,{start:{x:u,y:f},end:{x:p,y:v}})},function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(u,f,p,v,e)),o._element.classList.remove("xterm-cursor-pointer"),s.hoverLeaveCallback&&s.hoverLeaveCallback()},function(A){return!s.willLinkActivate||s.willLinkActivate(A,t)}))}},r.prototype._createLinkHoverEvent=function(i,n,t,s,e){return{x1:i,y1:n,x2:t,y2:s,cols:this._bufferService.cols,fg:e}},r._timeBeforeLatency=200,r=g([S(0,h.IBufferService),S(1,h.ILogService),S(2,h.IUnicodeService)],r)}();E.Linkifier=c;var a=function(i,n,t,s,e,o,l,u,f){this.x1=i,this.y1=n,this.x2=t,this.y2=s,this.clickCallback=e,this.hoverCallback=o,this.tooltipCallback=l,this.leaveCallback=u,this.willLinkActivate=f};E.MouseZone=a},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(v,A){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var C in x)x.hasOwnProperty(C)&&(y[C]=x[C])})(v,A)},function(p,v){function A(){this.constructor=p}g(p,v),p.prototype=v===null?Object.create(v):(A.prototype=v.prototype,new A)}),m=this&&this.__decorate||function(p,v,A,y){var x,C=arguments.length,w=C<3?v:y===null?y=Object.getOwnPropertyDescriptor(v,A):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,v,A,y);else for(var b=p.length-1;b>=0;b--)(x=p[b])&&(w=(C<3?x(w):C>3?x(v,A,w):x(v,A))||w);return C>3&&w&&Object.defineProperty(v,A,w),w},h=this&&this.__param||function(p,v){return function(A,y){v(A,y,p)}};Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionService=void 0;var c=T(11),a=T(52),r=T(4),i=T(0),n=T(5),t=T(1),s=T(30),e=T(53),o=T(2),l=String.fromCharCode(160),u=new RegExp(l,"g"),f=function(p){function v(A,y,x,C,w,b,_){var O=p.call(this)||this;return O._element=A,O._screenElement=y,O._bufferService=x,O._coreService=C,O._mouseService=w,O._optionsService=b,O._renderService=_,O._dragScrollAmount=0,O._enabled=!0,O._workCell=new r.CellData,O._mouseDownTimeStamp=0,O._onLinuxMouseSelection=O.register(new i.EventEmitter),O._onRedrawRequest=O.register(new i.EventEmitter),O._onSelectionChange=O.register(new i.EventEmitter),O._onRequestScrollLines=O.register(new i.EventEmitter),O._mouseMoveListener=function(L){return O._onMouseMove(L)},O._mouseUpListener=function(L){return O._onMouseUp(L)},O._coreService.onUserInput(function(){O.hasSelection&&O.clearSelection()}),O._trimListener=O._bufferService.buffer.lines.onTrim(function(L){return O._onTrim(L)}),O.register(O._bufferService.buffers.onBufferActivate(function(L){return O._onBufferActivate(L)})),O.enable(),O._model=new a.SelectionModel(O._bufferService),O._activeSelectionMode=0,O}return S(v,p),Object.defineProperty(v.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),v.prototype.dispose=function(){this._removeMouseDownListeners()},v.prototype.reset=function(){this.clearSelection()},v.prototype.disable=function(){this.clearSelection(),this._enabled=!1},v.prototype.enable=function(){this._enabled=!0},Object.defineProperty(v.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;return!(!y||!x)&&(y[0]!==x[0]||y[1]!==x[1])},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;if(!y||!x)return"";var C=this._bufferService.buffer,w=[];if(this._activeSelectionMode===3){if(y[0]===x[0])return"";for(var b=y[1];b<=x[1];b++){var _=C.translateBufferLineToString(b,!0,y[0],x[0]);w.push(_)}}else{var O=y[1]===x[1]?x[0]:void 0;for(w.push(C.translateBufferLineToString(y[1],!0,y[0],O)),b=y[1]+1;b<=x[1]-1;b++){var L=C.lines.get(b);_=C.translateBufferLineToString(b,!0),L&&L.isWrapped?w[w.length-1]+=_:w.push(_)}y[1]!==x[1]&&(L=C.lines.get(x[1]),_=C.translateBufferLineToString(x[1],!0,0,x[0]),L&&L.isWrapped?w[w.length-1]+=_:w.push(_))}return w.map(function(D){return D.replace(u," ")}).join(c.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),v.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},v.prototype.refresh=function(A){var y=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return y._refresh()})),c.isLinux&&A)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},v.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},v.prototype.isClickInSelection=function(A){var y=this._getMouseBufferCoords(A),x=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!!(x&&C&&y)&&this._areCoordsInSelection(y,x,C)},v.prototype._areCoordsInSelection=function(A,y,x){return A[1]>y[1]&&A[1]<x[1]||y[1]===x[1]&&A[1]===y[1]&&A[0]>=y[0]&&A[0]<x[0]||y[1]<x[1]&&A[1]===x[1]&&A[0]<x[0]||y[1]<x[1]&&A[1]===y[1]&&A[0]>=y[0]},v.prototype.selectWordAtCursor=function(A){var y=this._getMouseBufferCoords(A);y&&(this._selectWordAt(y,!1),this._model.selectionEnd=void 0,this.refresh(!0))},v.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},v.prototype.selectLines=function(A,y){this._model.clearSelection(),A=Math.max(A,0),y=Math.min(y,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,A],this._model.selectionEnd=[this._bufferService.cols,y],this.refresh(),this._onSelectionChange.fire()},v.prototype._onTrim=function(A){this._model.onTrim(A)&&this.refresh()},v.prototype._getMouseBufferCoords=function(A){var y=this._mouseService.getCoords(A,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(y)return y[0]--,y[1]--,y[1]+=this._bufferService.buffer.ydisp,y},v.prototype._getMouseEventScrollAmount=function(A){var y=s.getCoordsRelativeToElement(A,this._screenElement)[1],x=this._renderService.dimensions.canvasHeight;return y>=0&&y<=x?0:(y>x&&(y-=x),y=Math.min(Math.max(y,-50),50),(y/=50)/Math.abs(y)+Math.round(14*y))},v.prototype.shouldForceSelection=function(A){return c.isMac?A.altKey&&this._optionsService.options.macOptionClickForcesSelection:A.shiftKey},v.prototype.onMouseDown=function(A){if(this._mouseDownTimeStamp=A.timeStamp,(A.button!==2||!this.hasSelection)&&A.button===0){if(!this._enabled){if(!this.shouldForceSelection(A))return;A.stopPropagation()}A.preventDefault(),this._dragScrollAmount=0,this._enabled&&A.shiftKey?this._onIncrementalClick(A):A.detail===1?this._onSingleClick(A):A.detail===2?this._onDoubleClick(A):A.detail===3&&this._onTripleClick(A),this._addMouseDownListeners(),this.refresh(!0)}},v.prototype._addMouseDownListeners=function(){var A=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return A._dragScroll()},50)},v.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},v.prototype._onIncrementalClick=function(A){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(A))},v.prototype._onSingleClick=function(A){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(A)?3:0,this._model.selectionStart=this._getMouseBufferCoords(A),this._model.selectionStart){this._model.selectionEnd=void 0;var y=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);y&&y.length!==this._model.selectionStart[0]&&y.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},v.prototype._onDoubleClick=function(A){var y=this._getMouseBufferCoords(A);y&&(this._activeSelectionMode=1,this._selectWordAt(y,!0))},v.prototype._onTripleClick=function(A){var y=this._getMouseBufferCoords(A);y&&(this._activeSelectionMode=2,this._selectLineAt(y[1]))},v.prototype.shouldColumnSelect=function(A){return A.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},v.prototype._onMouseMove=function(A){if(A.stopImmediatePropagation(),this._model.selectionStart){var y=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(A),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(A),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var x=this._bufferService.buffer;if(this._model.selectionEnd[1]<x.lines.length){var C=x.lines.get(this._model.selectionEnd[1]);C&&C.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}y&&y[0]===this._model.selectionEnd[0]&&y[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},v.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var A=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(A.ydisp+this._bufferService.rows,A.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=A.ydisp),this.refresh()}},v.prototype._onMouseUp=function(A){var y=A.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&y<500&&A.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var x=this._mouseService.getCoords(A,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(x&&x[0]!==void 0&&x[1]!==void 0){var C=e.moveToCellSequence(x[0]-1,x[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(C,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},v.prototype._onBufferActivate=function(A){var y=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=A.activeBuffer.lines.onTrim(function(x){return y._onTrim(x)})},v.prototype._convertViewportColToCharacterIndex=function(A,y){for(var x=y[0],C=0;y[0]>=C;C++){var w=A.loadCell(C,this._workCell).getChars().length;this._workCell.getWidth()===0?x--:w>1&&y[0]!==C&&(x+=w-1)}return x},v.prototype.setSelection=function(A,y,x){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[A,y],this._model.selectionStartLength=x,this.refresh()},v.prototype._getWordAt=function(A,y,x,C){if(x===void 0&&(x=!0),C===void 0&&(C=!0),!(A[0]>=this._bufferService.cols)){var w=this._bufferService.buffer,b=w.lines.get(A[1]);if(b){var _=w.translateBufferLineToString(A[1],!1),O=this._convertViewportColToCharacterIndex(b,A),L=O,D=A[0]-O,N=0,M=0,F=0,R=0;if(_.charAt(O)===" "){for(;O>0&&_.charAt(O-1)===" ";)O--;for(;L<_.length&&_.charAt(L+1)===" ";)L++}else{var j=A[0],B=A[0];b.getWidth(j)===0&&(N++,j--),b.getWidth(B)===2&&(M++,B++);var K=b.getString(B).length;for(K>1&&(R+=K-1,L+=K-1);j>0&&O>0&&!this._isCharWordSeparator(b.loadCell(j-1,this._workCell));){b.loadCell(j-1,this._workCell);var U=this._workCell.getChars().length;this._workCell.getWidth()===0?(N++,j--):U>1&&(F+=U-1,O-=U-1),O--,j--}for(;B<b.length&&L+1<_.length&&!this._isCharWordSeparator(b.loadCell(B+1,this._workCell));){b.loadCell(B+1,this._workCell);var z=this._workCell.getChars().length;this._workCell.getWidth()===2?(M++,B++):z>1&&(R+=z-1,L+=z-1),L++,B++}}L++;var V=O+D-N+F,Y=Math.min(this._bufferService.cols,L-O+N+M-F-R);if(y||_.slice(O,L).trim()!==""){if(x&&V===0&&b.getCodePoint(0)!==32){var J=w.lines.get(A[1]-1);if(J&&b.isWrapped&&J.getCodePoint(this._bufferService.cols-1)!==32){var se=this._getWordAt([this._bufferService.cols-1,A[1]-1],!1,!0,!1);if(se){var $=this._bufferService.cols-se.start;V-=$,Y+=$}}}if(C&&V+Y===this._bufferService.cols&&b.getCodePoint(this._bufferService.cols-1)!==32){var ae=w.lines.get(A[1]+1);if(ae&&ae.isWrapped&&ae.getCodePoint(0)!==32){var ge=this._getWordAt([0,A[1]+1],!1,!1,!0);ge&&(Y+=ge.length)}}return{start:V,length:Y}}}}},v.prototype._selectWordAt=function(A,y){var x=this._getWordAt(A,y);if(x){for(;x.start<0;)x.start+=this._bufferService.cols,A[1]--;this._model.selectionStart=[x.start,A[1]],this._model.selectionStartLength=x.length}},v.prototype._selectToWordAt=function(A){var y=this._getWordAt(A,!0);if(y){for(var x=A[1];y.start<0;)y.start+=this._bufferService.cols,x--;if(!this._model.areSelectionValuesReversed())for(;y.start+y.length>this._bufferService.cols;)y.length-=this._bufferService.cols,x++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?y.start:y.start+y.length,x]}},v.prototype._isCharWordSeparator=function(A){return A.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(A.getChars())>=0},v.prototype._selectLineAt=function(A){var y=this._bufferService.buffer.getWrappedRangeForLine(A);this._model.selectionStart=[0,y.first],this._model.selectionEnd=[this._bufferService.cols,y.last],this._model.selectionStartLength=0},v=m([h(2,t.IBufferService),h(3,t.ICoreService),h(4,n.IMouseService),h(5,t.IOptionsService),h(6,n.IRenderService)],v)}(o.Disposable);E.SelectionService=f},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionModel=void 0;var g=function(){function S(m){this._bufferService=m,this.isSelectAllActive=!1,this.selectionStartLength=0}return S.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(S.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(S.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}),S.prototype.areSelectionValuesReversed=function(){var m=this.selectionStart,h=this.selectionEnd;return!(!m||!h)&&(m[1]>h[1]||m[1]===h[1]&&m[0]>h[0])},S.prototype.onTrim=function(m){return this.selectionStart&&(this.selectionStart[1]-=m),this.selectionEnd&&(this.selectionEnd[1]-=m),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},S}();E.SelectionModel=g},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.moveToCellSequence=void 0;var g=T(12);function S(i,n,t,s){var e=i-m(t,i),o=n-m(t,n);return r(Math.abs(e-o)-function(l,u,f){for(var p=0,v=l-m(f,l),A=u-m(f,u),y=0;y<Math.abs(v-A);y++){var x=h(l,u)==="A"?-1:1,C=f.buffer.lines.get(v+x*y);C&&C.isWrapped&&p++}return p}(i,n,t),a(h(i,n),s))}function m(i,n){for(var t=0,s=i.buffer.lines.get(n),e=s&&s.isWrapped;e&&n>=0&&n<i.rows;)t++,e=(s=i.buffer.lines.get(--n))&&s.isWrapped;return t}function h(i,n){return i>n?"A":"B"}function c(i,n,t,s,e,o){for(var l=i,u=n,f="";l!==t||u!==s;)l+=e?1:-1,e&&l>o.cols-1?(f+=o.buffer.translateBufferLineToString(u,!1,i,l),l=0,i=0,u++):!e&&l<0&&(f+=o.buffer.translateBufferLineToString(u,!1,0,i+1),i=l=o.cols-1,u--);return f+o.buffer.translateBufferLineToString(u,!1,i,l)}function a(i,n){var t=n?"O":"[";return g.C0.ESC+t+i}function r(i,n){i=Math.floor(i);for(var t="",s=0;s<i;s++)t+=n;return t}E.moveToCellSequence=function(i,n,t,s){var e,o=t.buffer.x,l=t.buffer.y;if(!t.buffer.hasScrollback)return function(f,p,v,A,y,x){return S(p,A,y,x).length===0?"":r(c(f,p,f,p-m(y,p),!1,y).length,a("D",x))}(o,l,0,n,t,s)+S(l,n,t,s)+function(f,p,v,A,y,x){var C;C=S(p,A,y,x).length>0?A-m(y,A):p;var w=A,b=function(_,O,L,D,N,M){var F;return F=S(L,D,N,M).length>0?D-m(N,D):O,_<L&&F<=D||_>=L&&F<D?"C":"D"}(f,p,v,A,y,x);return r(c(f,C,v,w,b==="C",y).length,a(b,x))}(o,l,i,n,t,s);if(l===n)return e=o>i?"D":"C",r(Math.abs(o-i),a(e,s));e=l>n?"D":"C";var u=Math.abs(l-n);return r(function(f,p){return p.cols-f}(l>n?i:o,t)+(u-1)*t.cols+1+((l>n?o:i)-1),a(e,s))}},function(I,E,T){"use strict";var g=this&&this.__decorate||function(c,a,r,i){var n,t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,a,r,i);else for(var e=c.length-1;e>=0;e--)(n=c[e])&&(s=(t<3?n(s):t>3?n(a,r,s):n(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},S=this&&this.__param||function(c,a){return function(r,i){a(r,i,c)}};Object.defineProperty(E,"__esModule",{value:!0}),E.SoundService=void 0;var m=T(1),h=function(){function c(a){this._optionsService=a}return Object.defineProperty(c,"audioContext",{get:function(){if(!c._audioContext){var r=window.AudioContext||window.webkitAudioContext;if(!r)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;c._audioContext=new r}return c._audioContext},enumerable:!1,configurable:!0}),c.prototype.playBellSound=function(){var a=c.audioContext;if(a){var r=a.createBufferSource();a.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(i){r.buffer=i,r.connect(a.destination),r.start(0)})}},c.prototype._base64ToArrayBuffer=function(a){for(var r=window.atob(a),i=r.length,n=new Uint8Array(i),t=0;t<i;t++)n[t]=r.charCodeAt(t);return n.buffer},c.prototype._removeMimeType=function(a){return a.split(",")[1]},c=g([S(0,m.IOptionsService)],c)}();E.SoundService=h},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(s,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(s,e)},function(t,s){function e(){this.constructor=t}g(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),m=this&&this.__decorate||function(t,s,e,o){var l,u=arguments.length,f=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var p=t.length-1;p>=0;p--)(l=t[p])&&(f=(u<3?l(f):u>3?l(s,e,f):l(s,e))||f);return u>3&&f&&Object.defineProperty(s,e,f),f},h=this&&this.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseZoneManager=void 0;var c=T(2),a=T(7),r=T(5),i=T(1),n=function(t){function s(e,o,l,u,f,p){var v=t.call(this)||this;return v._element=e,v._screenElement=o,v._bufferService=l,v._mouseService=u,v._selectionService=f,v._optionsService=p,v._zones=[],v._areZonesActive=!1,v._lastHoverCoords=[void 0,void 0],v._initialSelectionLength=0,v.register(a.addDisposableDomListener(v._element,"mousedown",function(A){return v._onMouseDown(A)})),v._mouseMoveListener=function(A){return v._onMouseMove(A)},v._mouseLeaveListener=function(A){return v._onMouseLeave(A)},v._clickListener=function(A){return v._onClick(A)},v}return S(s,t),s.prototype.dispose=function(){t.prototype.dispose.call(this),this._deactivate()},s.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},s.prototype.clearAll=function(e,o){if(this._zones.length!==0){e&&o||(e=0,o=this._bufferService.rows-1);for(var l=0;l<this._zones.length;l++){var u=this._zones[l];(u.y1>e&&u.y1<=o+1||u.y2>e&&u.y2<=o+1||u.y1<e&&u.y2>o+1)&&(this._currentZone&&this._currentZone===u&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(l--,1))}this._zones.length===0&&this._deactivate()}},s.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))},s.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))},s.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},s.prototype._onHover=function(e){var o=this,l=this._findZoneEventAt(e);l!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),l&&(this._currentZone=l,l.hoverCallback&&l.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return o._onTooltip(e)},this._optionsService.options.linkTooltipHoverDuration)))},s.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var o=this._findZoneEventAt(e);o&&o.tooltipCallback&&o.tooltipCallback(e)},s.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var o=this._findZoneEventAt(e);(o==null?void 0:o.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},s.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},s.prototype._onClick=function(e){var o=this._findZoneEventAt(e),l=this._getSelectionLength();o&&l===this._initialSelectionLength&&(o.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},s.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},s.prototype._findZoneEventAt=function(e){var o=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(o)for(var l=o[0],u=o[1],f=0;f<this._zones.length;f++){var p=this._zones[f];if(p.y1===p.y2){if(u===p.y1&&l>=p.x1&&l<p.x2)return p}else if(u===p.y1&&l>=p.x1||u===p.y2&&l<p.x2||u>p.y1&&u<p.y2)return p}},s=m([h(2,i.IBufferService),h(3,r.IMouseService),h(4,r.ISelectionService),h(5,i.IOptionsService)],s)}(c.Disposable);E.MouseZoneManager=n},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(e,o){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var f in u)u.hasOwnProperty(f)&&(l[f]=u[f])})(e,o)},function(s,e){function o(){this.constructor=s}g(s,e),s.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(E,"__esModule",{value:!0}),E.AccessibilityManager=void 0;var m=T(18),h=T(11),c=T(31),a=T(7),r=T(2),i=T(32),n=T(17),t=function(s){function e(o,l){var u=s.call(this)||this;u._terminal=o,u._renderService=l,u._liveRegionLineCount=0,u._charsToConsume=[],u._charsToAnnounce="",u._accessibilityTreeRoot=document.createElement("div"),u._accessibilityTreeRoot.classList.add("xterm-accessibility"),u._rowContainer=document.createElement("div"),u._rowContainer.classList.add("xterm-accessibility-tree"),u._rowContainer.setAttribute("role","list"),u._rowElements=[];for(var f=0;f<u._terminal.rows;f++)u._rowElements[f]=u._createAccessibilityTreeNode(),u._rowContainer.appendChild(u._rowElements[f]);if(u._topBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,0)},u._bottomBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,1)},u._rowElements[0].addEventListener("focus",u._topBoundaryFocusListener),u._rowElements[u._rowElements.length-1].addEventListener("focus",u._bottomBoundaryFocusListener),u._refreshRowsDimensions(),u._accessibilityTreeRoot.appendChild(u._rowContainer),u._renderRowsDebouncer=new c.RenderDebouncer(u._renderRows.bind(u)),u._refreshRows(),u._liveRegion=document.createElement("div"),u._liveRegion.classList.add("live-region"),u._liveRegion.setAttribute("aria-live","assertive"),u._accessibilityTreeRoot.appendChild(u._liveRegion),!u._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return u._terminal.element.insertAdjacentElement("afterbegin",u._accessibilityTreeRoot),u.register(u._renderRowsDebouncer),u.register(u._terminal.onResize(function(p){return u._onResize(p.rows)})),u.register(u._terminal.onRender(function(p){return u._refreshRows(p.start,p.end)})),u.register(u._terminal.onScroll(function(){return u._refreshRows()})),u.register(u._terminal.onA11yChar(function(p){return u._onChar(p)})),u.register(u._terminal.onLineFeed(function(){return u._onChar(`
|
|
|
`)})),u.register(u._terminal.onA11yTab(function(p){return u._onTab(p)})),u.register(u._terminal.onKey(function(p){return u._onKey(p.key)})),u.register(u._terminal.onBlur(function(){return u._clearLiveRegion()})),u.register(u._renderService.onDimensionsChange(function(){return u._refreshRowsDimensions()})),u._screenDprMonitor=new i.ScreenDprMonitor,u.register(u._screenDprMonitor),u._screenDprMonitor.setListener(function(){return u._refreshRowsDimensions()}),u.register(a.addDisposableDomListener(window,"resize",function(){return u._refreshRowsDimensions()})),u}return S(e,s),e.prototype.dispose=function(){s.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(o,l){var u=o.target,f=this._rowElements[l===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(l===0?"1":""+this._terminal.buffer.lines.length)&&o.relatedTarget===f){var p,v;if(l===0?(p=u,v=this._rowElements.pop(),this._rowContainer.removeChild(v)):(p=this._rowElements.shift(),v=u,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),v.removeEventListener("focus",this._bottomBoundaryFocusListener),l===0){var A=this._createAccessibilityTreeNode();this._rowElements.unshift(A),this._rowContainer.insertAdjacentElement("afterbegin",A)}else A=this._createAccessibilityTreeNode(),this._rowElements.push(A),this._rowContainer.appendChild(A);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(l===0?-1:1),this._rowElements[l===0?1:this._rowElements.length-2].focus(),o.preventDefault(),o.stopImmediatePropagation()}},e.prototype._onResize=function(o){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var l=this._rowContainer.children.length;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);for(;this._rowElements.length>o;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var o=document.createElement("div");return o.setAttribute("role","listitem"),o.tabIndex=-1,this._refreshRowDimensions(o),o},e.prototype._onTab=function(o){for(var l=0;l<o;l++)this._onChar(" ")},e.prototype._onChar=function(o){var l=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==o&&(this._charsToAnnounce+=o):this._charsToAnnounce+=o,o===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=m.tooMuchOutput)),h.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){l._accessibilityTreeRoot.appendChild(l._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,h.isMac&&n.removeElementFromParent(this._liveRegion)},e.prototype._onKey=function(o){this._clearLiveRegion(),this._charsToConsume.push(o)},e.prototype._refreshRows=function(o,l){this._renderRowsDebouncer.refresh(o,l,this._terminal.rows)},e.prototype._renderRows=function(o,l){for(var u=this._terminal.buffer,f=u.lines.length.toString(),p=o;p<=l;p++){var v=u.translateBufferLineToString(u.ydisp+p,!0),A=(u.ydisp+p+1).toString(),y=this._rowElements[p];y&&(v.length===0?y.innerHTML=" ":y.textContent=v,y.setAttribute("aria-posinset",A),y.setAttribute("aria-setsize",f))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var o=0;o<this._terminal.rows;o++)this._refreshRowDimensions(this._rowElements[o])}},e.prototype._refreshRowDimensions=function(o){o.style.height=this._renderService.dimensions.actualCellHeight+"px"},e.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},e}(r.Disposable);E.AccessibilityManager=t},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(f,p){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,A){v.__proto__=A}||function(v,A){for(var y in A)A.hasOwnProperty(y)&&(v[y]=A[y])})(f,p)},function(u,f){function p(){this.constructor=u}g(u,f),u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}),m=this&&this.__decorate||function(u,f,p,v){var A,y=arguments.length,x=y<3?f:v===null?v=Object.getOwnPropertyDescriptor(f,p):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(u,f,p,v);else for(var C=u.length-1;C>=0;C--)(A=u[C])&&(x=(y<3?A(x):y>3?A(f,p,x):A(f,p))||x);return y>3&&x&&Object.defineProperty(f,p,x),x},h=this&&this.__param||function(u,f){return function(p,v){f(p,v,u)}};Object.defineProperty(E,"__esModule",{value:!0}),E.DomRenderer=void 0;var c=T(58),a=T(9),r=T(2),i=T(5),n=T(1),t=T(0),s=T(10),e=T(17),o=1,l=function(u){function f(p,v,A,y,x,C,w,b,_){var O=u.call(this)||this;return O._colors=p,O._element=v,O._screenElement=A,O._viewportElement=y,O._linkifier=x,O._linkifier2=C,O._charSizeService=w,O._optionsService=b,O._bufferService=_,O._terminalClass=o++,O._rowElements=[],O._rowContainer=document.createElement("div"),O._rowContainer.classList.add("xterm-rows"),O._rowContainer.style.lineHeight="normal",O._rowContainer.setAttribute("aria-hidden","true"),O._refreshRowElements(O._bufferService.cols,O._bufferService.rows),O._selectionContainer=document.createElement("div"),O._selectionContainer.classList.add("xterm-selection"),O._selectionContainer.setAttribute("aria-hidden","true"),O.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},O._updateDimensions(),O._injectCss(),O._rowFactory=new c.DomRendererRowFactory(document,O._optionsService,O._colors),O._element.classList.add("xterm-dom-renderer-owner-"+O._terminalClass),O._screenElement.appendChild(O._rowContainer),O._screenElement.appendChild(O._selectionContainer),O._linkifier.onShowLinkUnderline(function(L){return O._onLinkHover(L)}),O._linkifier.onHideLinkUnderline(function(L){return O._onLinkLeave(L)}),O._linkifier2.onShowLinkUnderline(function(L){return O._onLinkHover(L)}),O._linkifier2.onHideLinkUnderline(function(L){return O._onLinkLeave(L)}),O}return S(f,u),Object.defineProperty(f.prototype,"onRequestRedraw",{get:function(){return new t.EventEmitter().event},enumerable:!1,configurable:!0}),f.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),e.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),u.prototype.dispose.call(this)},f.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 p=0,v=this._rowElements;p<v.length;p++){var A=v[p];A.style.width=this.dimensions.canvasWidth+"px",A.style.height=this.dimensions.actualCellHeight+"px",A.style.lineHeight=this.dimensions.actualCellHeight+"px",A.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var y=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=y,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},f.prototype.setColors=function(p){this._colors=p,this._injectCss()},f.prototype._injectCss=function(){var p=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var v=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";v+=this._terminalSelector+" span:not(."+c.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+c.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+c.ITALIC_CLASS+" { font-style: italic;}",v+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",v+="@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+"; }}",v+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+":not(."+c.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",v+=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(A,y){v+=p._terminalSelector+" .xterm-fg-"+y+" { color: "+A.css+"; }"+p._terminalSelector+" .xterm-bg-"+y+" { background-color: "+A.css+"; }"}),v+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+s.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=v},f.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},f.prototype._refreshRowElements=function(p,v){for(var A=this._rowElements.length;A<=v;A++){var y=document.createElement("div");this._rowContainer.appendChild(y),this._rowElements.push(y)}for(;this._rowElements.length>v;)this._rowContainer.removeChild(this._rowElements.pop())},f.prototype.onResize=function(p,v){this._refreshRowElements(p,v),this._updateDimensions()},f.prototype.onCharSizeChanged=function(){this._updateDimensions()},f.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},f.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},f.prototype.onSelectionChanged=function(p,v,A){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(p&&v){var y=p[1]-this._bufferService.buffer.ydisp,x=v[1]-this._bufferService.buffer.ydisp,C=Math.max(y,0),w=Math.min(x,this._bufferService.rows-1);if(!(C>=this._bufferService.rows||w<0)){var b=document.createDocumentFragment();if(A)b.appendChild(this._createSelectionElement(C,p[0],v[0],w-C+1));else{var _=y===C?p[0]:0,O=C===w?v[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(C,_,O));var L=w-C-1;if(b.appendChild(this._createSelectionElement(C+1,0,this._bufferService.cols,L)),C!==w){var D=x===w?v[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(w,0,D))}}this._selectionContainer.appendChild(b)}}},f.prototype._createSelectionElement=function(p,v,A,y){y===void 0&&(y=1);var x=document.createElement("div");return x.style.height=y*this.dimensions.actualCellHeight+"px",x.style.top=p*this.dimensions.actualCellHeight+"px",x.style.left=v*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(A-v)+"px",x},f.prototype.onCursorMove=function(){},f.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},f.prototype.clear=function(){for(var p=0,v=this._rowElements;p<v.length;p++)v[p].innerHTML=""},f.prototype.renderRows=function(p,v){for(var A=this._bufferService.buffer.ybase+this._bufferService.buffer.y,y=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.options.cursorBlink,C=p;C<=v;C++){var w=this._rowElements[C];w.innerHTML="";var b=C+this._bufferService.buffer.ydisp,_=this._bufferService.buffer.lines.get(b),O=this._optionsService.options.cursorStyle;w.appendChild(this._rowFactory.createRow(_,b===A,O,y,x,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(f.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),f.prototype.registerCharacterJoiner=function(p){return-1},f.prototype.deregisterCharacterJoiner=function(p){return!1},f.prototype._onLinkHover=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!0)},f.prototype._onLinkLeave=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!1)},f.prototype._setCellUnderline=function(p,v,A,y,x,C){for(;p!==v||A!==y;){var w=this._rowElements[A];if(!w)return;var b=w.children[p];b&&(b.style.textDecoration=C?"underline":"none"),++p>=x&&(p=0,A++)}},f=m([h(6,i.ICharSizeService),h(7,n.IOptionsService),h(8,n.IBufferService)],f)}(r.Disposable);E.DomRenderer=l},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DomRendererRowFactory=E.CURSOR_STYLE_UNDERLINE_CLASS=E.CURSOR_STYLE_BAR_CLASS=E.CURSOR_STYLE_BLOCK_CLASS=E.CURSOR_BLINK_CLASS=E.CURSOR_CLASS=E.UNDERLINE_CLASS=E.ITALIC_CLASS=E.DIM_CLASS=E.BOLD_CLASS=void 0;var g=T(9),S=T(3),m=T(4),h=T(10);E.BOLD_CLASS="xterm-bold",E.DIM_CLASS="xterm-dim",E.ITALIC_CLASS="xterm-italic",E.UNDERLINE_CLASS="xterm-underline",E.CURSOR_CLASS="xterm-cursor",E.CURSOR_BLINK_CLASS="xterm-cursor-blink",E.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",E.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",E.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var c=function(){function r(i,n,t){this._document=i,this._optionsService=n,this._colors=t,this._workCell=new m.CellData}return r.prototype.setColors=function(i){this._colors=i},r.prototype.createRow=function(i,n,t,s,e,o,l){for(var u=this._document.createDocumentFragment(),f=0,p=Math.min(i.length,l)-1;p>=0;p--)if(i.loadCell(p,this._workCell).getCode()!==S.NULL_CELL_CODE||n&&p===s){f=p+1;break}for(p=0;p<f;p++){i.loadCell(p,this._workCell);var v=this._workCell.getWidth();if(v!==0){var A=this._document.createElement("span");if(v>1&&(A.style.width=o*v+"px"),n&&p===s)switch(A.classList.add(E.CURSOR_CLASS),e&&A.classList.add(E.CURSOR_BLINK_CLASS),t){case"bar":A.classList.add(E.CURSOR_STYLE_BAR_CLASS);break;case"underline":A.classList.add(E.CURSOR_STYLE_UNDERLINE_CLASS);break;default:A.classList.add(E.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&A.classList.add(E.BOLD_CLASS),this._workCell.isItalic()&&A.classList.add(E.ITALIC_CLASS),this._workCell.isDim()&&A.classList.add(E.DIM_CLASS),this._workCell.isUnderline()&&A.classList.add(E.UNDERLINE_CLASS),this._workCell.isInvisible()?A.textContent=S.WHITESPACE_CELL_CHAR:A.textContent=this._workCell.getChars()||S.WHITESPACE_CELL_CHAR;var y=this._workCell.getFgColor(),x=this._workCell.getFgColorMode(),C=this._workCell.getBgColor(),w=this._workCell.getBgColorMode(),b=!!this._workCell.isInverse();if(b){var _=y;y=C,C=_;var O=x;x=w,w=O}switch(x){case 16777216:case 33554432:this._workCell.isBold()&&y<8&&this._optionsService.options.drawBoldTextInBrightColors&&(y+=8),this._applyMinimumContrast(A,this._colors.background,this._colors.ansi[y])||A.classList.add("xterm-fg-"+y);break;case 50331648:var L=h.rgba.toColor(y>>16&255,y>>8&255,255&y);this._applyMinimumContrast(A,this._colors.background,L)||this._addStyle(A,"color:#"+a(y.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(A,this._colors.background,this._colors.foreground)||b&&A.classList.add("xterm-fg-"+g.INVERTED_DEFAULT_COLOR)}switch(w){case 16777216:case 33554432:A.classList.add("xterm-bg-"+C);break;case 50331648:this._addStyle(A,"background-color:#"+a(C.toString(16),"0",6));break;case 0:default:b&&A.classList.add("xterm-bg-"+g.INVERTED_DEFAULT_COLOR)}u.appendChild(A)}}return u},r.prototype._applyMinimumContrast=function(i,n,t){if(this._optionsService.options.minimumContrastRatio===1)return!1;var s=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return s===void 0&&(s=h.color.ensureContrastRatio(n,t,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,s!=null?s:null)),!!s&&(this._addStyle(i,"color:"+s.css),!0)},r.prototype._addStyle=function(i,n){i.setAttribute("style",""+(i.getAttribute("style")||"")+n+";")},r}();function a(r,i,n){for(;r.length<n;)r=i+r;return r}E.DomRendererRowFactory=c},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.evaluateKeyboardEvent=void 0;var g=T(12),S={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:["'",'"']};E.evaluateKeyboardEvent=function(m,h,c,a){var r={type:0,cancel:!1,key:void 0},i=(m.shiftKey?1:0)|(m.altKey?2:0)|(m.ctrlKey?4:0)|(m.metaKey?8:0);switch(m.keyCode){case 0:m.key==="UIKeyInputUpArrow"?r.key=h?g.C0.ESC+"OA":g.C0.ESC+"[A":m.key==="UIKeyInputLeftArrow"?r.key=h?g.C0.ESC+"OD":g.C0.ESC+"[D":m.key==="UIKeyInputRightArrow"?r.key=h?g.C0.ESC+"OC":g.C0.ESC+"[C":m.key==="UIKeyInputDownArrow"&&(r.key=h?g.C0.ESC+"OB":g.C0.ESC+"[B");break;case 8:if(m.shiftKey){r.key=g.C0.BS;break}if(m.altKey){r.key=g.C0.ESC+g.C0.DEL;break}r.key=g.C0.DEL;break;case 9:if(m.shiftKey){r.key=g.C0.ESC+"[Z";break}r.key=g.C0.HT,r.cancel=!0;break;case 13:r.key=m.altKey?g.C0.ESC+g.C0.CR:g.C0.CR,r.cancel=!0;break;case 27:r.key=g.C0.ESC,m.altKey&&(r.key=g.C0.ESC+g.C0.ESC),r.cancel=!0;break;case 37:if(m.metaKey)break;i?(r.key=g.C0.ESC+"[1;"+(i+1)+"D",r.key===g.C0.ESC+"[1;3D"&&(r.key=g.C0.ESC+(c?"b":"[1;5D"))):r.key=h?g.C0.ESC+"OD":g.C0.ESC+"[D";break;case 39:if(m.metaKey)break;i?(r.key=g.C0.ESC+"[1;"+(i+1)+"C",r.key===g.C0.ESC+"[1;3C"&&(r.key=g.C0.ESC+(c?"f":"[1;5C"))):r.key=h?g.C0.ESC+"OC":g.C0.ESC+"[C";break;case 38:if(m.metaKey)break;i?(r.key=g.C0.ESC+"[1;"+(i+1)+"A",c||r.key!==g.C0.ESC+"[1;3A"||(r.key=g.C0.ESC+"[1;5A")):r.key=h?g.C0.ESC+"OA":g.C0.ESC+"[A";break;case 40:if(m.metaKey)break;i?(r.key=g.C0.ESC+"[1;"+(i+1)+"B",c||r.key!==g.C0.ESC+"[1;3B"||(r.key=g.C0.ESC+"[1;5B")):r.key=h?g.C0.ESC+"OB":g.C0.ESC+"[B";break;case 45:m.shiftKey||m.ctrlKey||(r.key=g.C0.ESC+"[2~");break;case 46:r.key=i?g.C0.ESC+"[3;"+(i+1)+"~":g.C0.ESC+"[3~";break;case 36:r.key=i?g.C0.ESC+"[1;"+(i+1)+"H":h?g.C0.ESC+"OH":g.C0.ESC+"[H";break;case 35:r.key=i?g.C0.ESC+"[1;"+(i+1)+"F":h?g.C0.ESC+"OF":g.C0.ESC+"[F";break;case 33:m.shiftKey?r.type=2:r.key=g.C0.ESC+"[5~";break;case 34:m.shiftKey?r.type=3:r.key=g.C0.ESC+"[6~";break;case 112:r.key=i?g.C0.ESC+"[1;"+(i+1)+"P":g.C0.ESC+"OP";break;case 113:r.key=i?g.C0.ESC+"[1;"+(i+1)+"Q":g.C0.ESC+"OQ";break;case 114:r.key=i?g.C0.ESC+"[1;"+(i+1)+"R":g.C0.ESC+"OR";break;case 115:r.key=i?g.C0.ESC+"[1;"+(i+1)+"S":g.C0.ESC+"OS";break;case 116:r.key=i?g.C0.ESC+"[15;"+(i+1)+"~":g.C0.ESC+"[15~";break;case 117:r.key=i?g.C0.ESC+"[17;"+(i+1)+"~":g.C0.ESC+"[17~";break;case 118:r.key=i?g.C0.ESC+"[18;"+(i+1)+"~":g.C0.ESC+"[18~";break;case 119:r.key=i?g.C0.ESC+"[19;"+(i+1)+"~":g.C0.ESC+"[19~";break;case 120:r.key=i?g.C0.ESC+"[20;"+(i+1)+"~":g.C0.ESC+"[20~";break;case 121:r.key=i?g.C0.ESC+"[21;"+(i+1)+"~":g.C0.ESC+"[21~";break;case 122:r.key=i?g.C0.ESC+"[23;"+(i+1)+"~":g.C0.ESC+"[23~";break;case 123:r.key=i?g.C0.ESC+"[24;"+(i+1)+"~":g.C0.ESC+"[24~";break;default:if(!m.ctrlKey||m.shiftKey||m.altKey||m.metaKey)if(c&&!a||!m.altKey||m.metaKey)c&&!m.altKey&&!m.ctrlKey&&m.metaKey?m.keyCode===65&&(r.type=1):m.key&&!m.ctrlKey&&!m.altKey&&!m.metaKey&&m.keyCode>=48&&m.key.length===1?r.key=m.key:m.key&&m.ctrlKey&&m.key==="_"&&(r.key=g.C0.US);else{var n=S[m.keyCode],t=n&&n[m.shiftKey?1:0];if(t)r.key=g.C0.ESC+t;else if(m.keyCode>=65&&m.keyCode<=90){var s=m.ctrlKey?m.keyCode-64:m.keyCode+32;r.key=g.C0.ESC+String.fromCharCode(s)}}else m.keyCode>=65&&m.keyCode<=90?r.key=String.fromCharCode(m.keyCode-64):m.keyCode===32?r.key=g.C0.NUL:m.keyCode>=51&&m.keyCode<=55?r.key=String.fromCharCode(m.keyCode-51+27):m.keyCode===56?r.key=g.C0.DEL:m.keyCode===219?r.key=g.C0.ESC:m.keyCode===220?r.key=g.C0.FS:m.keyCode===221&&(r.key=g.C0.GS)}return r}},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(l,u){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var v in p)p.hasOwnProperty(v)&&(f[v]=p[v])})(l,u)},function(o,l){function u(){this.constructor=o}g(o,l),o.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}),m=this&&this.__decorate||function(o,l,u,f){var p,v=arguments.length,A=v<3?l:f===null?f=Object.getOwnPropertyDescriptor(l,u):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(o,l,u,f);else for(var y=o.length-1;y>=0;y--)(p=o[y])&&(A=(v<3?p(A):v>3?p(l,u,A):p(l,u))||A);return v>3&&A&&Object.defineProperty(l,u,A),A},h=this&&this.__param||function(o,l){return function(u,f){l(u,f,o)}};Object.defineProperty(E,"__esModule",{value:!0}),E.RenderService=void 0;var c=T(31),a=T(0),r=T(2),i=T(32),n=T(7),t=T(1),s=T(5),e=function(o){function l(u,f,p,v,A,y){var x=o.call(this)||this;if(x._renderer=u,x._rowCount=f,x._isPaused=!1,x._needsFullRefresh=!1,x._isNextRenderRedrawOnly=!0,x._needsSelectionRefresh=!1,x._canvasWidth=0,x._canvasHeight=0,x._selectionState={start:void 0,end:void 0,columnSelectMode:!1},x._onDimensionsChange=new a.EventEmitter,x._onRender=new a.EventEmitter,x._onRefreshRequest=new a.EventEmitter,x.register({dispose:function(){return x._renderer.dispose()}}),x._renderDebouncer=new c.RenderDebouncer(function(w,b){return x._renderRows(w,b)}),x.register(x._renderDebouncer),x._screenDprMonitor=new i.ScreenDprMonitor,x._screenDprMonitor.setListener(function(){return x.onDevicePixelRatioChange()}),x.register(x._screenDprMonitor),x.register(y.onResize(function(w){return x._fullRefresh()})),x.register(v.onOptionChange(function(){return x._renderer.onOptionsChanged()})),x.register(A.onCharSizeChange(function(){return x.onCharSizeChanged()})),x._renderer.onRequestRedraw(function(w){return x.refreshRows(w.start,w.end,!0)}),x.register(n.addDisposableDomListener(window,"resize",function(){return x.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var C=new IntersectionObserver(function(w){return x._onIntersectionChange(w[w.length-1])},{threshold:0});C.observe(p),x.register({dispose:function(){return C.disconnect()}})}return x}return S(l,o),Object.defineProperty(l.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),l.prototype._onIntersectionChange=function(u){this._isPaused=u.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},l.prototype.refreshRows=function(u,f,p){p===void 0&&(p=!1),this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,f,this._rowCount))},l.prototype._renderRows=function(u,f){this._renderer.renderRows(u,f),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:u,end:f}),this._isNextRenderRedrawOnly=!0},l.prototype.resize=function(u,f){this._rowCount=f,this._fireOnCanvasResize()},l.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},l.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},l.prototype.dispose=function(){o.prototype.dispose.call(this)},l.prototype.setRenderer=function(u){var f=this;this._renderer.dispose(),this._renderer=u,this._renderer.onRequestRedraw(function(p){return f.refreshRows(p.start,p.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},l.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},l.prototype.setColors=function(u){this._renderer.setColors(u),this._fullRefresh()},l.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},l.prototype.onResize=function(u,f){this._renderer.onResize(u,f),this._fullRefresh()},l.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},l.prototype.onBlur=function(){this._renderer.onBlur()},l.prototype.onFocus=function(){this._renderer.onFocus()},l.prototype.onSelectionChanged=function(u,f,p){this._selectionState.start=u,this._selectionState.end=f,this._selectionState.columnSelectMode=p,this._renderer.onSelectionChanged(u,f,p)},l.prototype.onCursorMove=function(){this._renderer.onCursorMove()},l.prototype.clear=function(){this._renderer.clear()},l.prototype.registerCharacterJoiner=function(u){return this._renderer.registerCharacterJoiner(u)},l.prototype.deregisterCharacterJoiner=function(u){return this._renderer.deregisterCharacterJoiner(u)},l=m([h(3,t.IOptionsService),h(4,s.ICharSizeService),h(5,t.IBufferService)],l)}(r.Disposable);E.RenderService=e},function(I,E,T){"use strict";var g=this&&this.__decorate||function(r,i,n,t){var s,e=arguments.length,o=e<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,i,n,t);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(o=(e<3?s(o):e>3?s(i,n,o):s(i,n))||o);return e>3&&o&&Object.defineProperty(i,n,o),o},S=this&&this.__param||function(r,i){return function(n,t){i(n,t,r)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CharSizeService=void 0;var m=T(1),h=T(0),c=function(){function r(i,n,t){this._optionsService=t,this.width=0,this.height=0,this._onCharSizeChange=new h.EventEmitter,this._measureStrategy=new a(i,n,this._optionsService)}return Object.defineProperty(r.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),r.prototype.measure=function(){var i=this._measureStrategy.measure();i.width===this.width&&i.height===this.height||(this.width=i.width,this.height=i.height,this._onCharSizeChange.fire())},r=g([S(2,m.IOptionsService)],r)}();E.CharSizeService=c;var a=function(){function r(i,n,t){this._document=i,this._parentElement=n,this._optionsService=t,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 r.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var i=this._measureElement.getBoundingClientRect();return i.width!==0&&i.height!==0&&(this._result.width=i.width,this._result.height=Math.ceil(i.height)),this._result},r}()},function(I,E,T){"use strict";var g=this&&this.__decorate||function(a,r,i,n){var t,s=arguments.length,e=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(a,r,i,n);else for(var o=a.length-1;o>=0;o--)(t=a[o])&&(e=(s<3?t(e):s>3?t(r,i,e):t(r,i))||e);return s>3&&e&&Object.defineProperty(r,i,e),e},S=this&&this.__param||function(a,r){return function(i,n){r(i,n,a)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseService=void 0;var m=T(5),h=T(30),c=function(){function a(r,i){this._renderService=r,this._charSizeService=i}return a.prototype.getCoords=function(r,i,n,t,s){return h.getCoords(r,i,n,t,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,s)},a.prototype.getRawByteCoords=function(r,i,n,t){var s=this.getCoords(r,i,n,t);return h.getRawByteCoords(s)},a=g([S(0,m.IRenderService),S(1,m.ICharSizeService)],a)}();E.MouseService=c},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(s,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(s,e)},function(t,s){function e(){this.constructor=t}g(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),m=this&&this.__decorate||function(t,s,e,o){var l,u=arguments.length,f=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var p=t.length-1;p>=0;p--)(l=t[p])&&(f=(u<3?l(f):u>3?l(s,e,f):l(s,e))||f);return u>3&&f&&Object.defineProperty(s,e,f),f},h=this&&this.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Linkifier2=void 0;var c=T(1),a=T(0),r=T(2),i=T(7),n=function(t){function s(e){var o=t.call(this)||this;return o._bufferService=e,o._linkProviders=[],o._linkCacheDisposables=[],o._isMouseOut=!0,o._activeLine=-1,o._onShowLinkUnderline=o.register(new a.EventEmitter),o._onHideLinkUnderline=o.register(new a.EventEmitter),o.register(r.getDisposeArrayDisposable(o._linkCacheDisposables)),o}return S(s,t),Object.defineProperty(s.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),s.prototype.registerLinkProvider=function(e){var o=this;return this._linkProviders.push(e),{dispose:function(){var u=o._linkProviders.indexOf(e);u!==-1&&o._linkProviders.splice(u,1)}}},s.prototype.attachToDom=function(e,o,l){var u=this;this._element=e,this._mouseService=o,this._renderService=l,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},s.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var o=this._positionFromMouseEvent(e,this._element,this._mouseService);if(o){this._isMouseOut=!1;for(var l=e.composedPath(),u=0;u<l.length;u++){var f=l[u];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&o.x===this._lastBufferCell.x&&o.y===this._lastBufferCell.y||(this._onHover(o),this._lastBufferCell=o)}}},s.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},s.prototype._askForLink=function(e,o){var l=this;this._activeProviderReplies&&o||(this._activeProviderReplies=new Map,this._activeLine=e.y);var u=!1;this._linkProviders.forEach(function(f,p){var v;o?((v=l._activeProviderReplies)===null||v===void 0?void 0:v.get(p))&&(u=l._checkLinkProviderResult(p,e,u)):f.provideLinks(e.y,function(A){var y,x;if(!l._isMouseOut){var C=A==null?void 0:A.map(function(w){return{link:w}});(y=l._activeProviderReplies)===null||y===void 0||y.set(p,C),u=l._checkLinkProviderResult(p,e,u),((x=l._activeProviderReplies)===null||x===void 0?void 0:x.size)===l._linkProviders.length&&l._removeIntersectingLinks(e.y,l._activeProviderReplies)}})})},s.prototype._removeIntersectingLinks=function(e,o){for(var l=new Set,u=0;u<o.size;u++){var f=o.get(u);if(f)for(var p=0;p<f.length;p++)for(var v=f[p],A=v.link.range.start.y<e?0:v.link.range.start.x,y=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x,x=A;x<=y;x++){if(l.has(x)){f.splice(p--,1);break}l.add(x)}}},s.prototype._checkLinkProviderResult=function(e,o,l){var u,f=this;if(!this._activeProviderReplies)return l;for(var p=this._activeProviderReplies.get(e),v=!1,A=0;A<e;A++)this._activeProviderReplies.has(A)&&!this._activeProviderReplies.get(A)||(v=!0);if(!v&&p){var y=p.find(function(C){return f._linkAtPosition(C.link,o)});y&&(l=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviders.length&&!l)for(A=0;A<this._activeProviderReplies.size;A++){var x=(u=this._activeProviderReplies.get(A))===null||u===void 0?void 0:u.find(function(C){return f._linkAtPosition(C.link,o)});if(x){l=!0,this._handleNewLink(x);break}}return l},s.prototype._onClick=function(e){if(this._element&&this._mouseService&&this._currentLink){var o=this._positionFromMouseEvent(e,this._element,this._mouseService);o&&this._linkAtPosition(this._currentLink.link,o)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},s.prototype._clearCurrentLink=function(e,o){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!o||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=o)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,r.disposeArray(this._linkCacheDisposables))},s.prototype._handleNewLink=function(e){var o=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(e.link,l)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var f,p;return(p=(f=o._currentLink)===null||f===void 0?void 0:f.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(f){var p,v;((p=o._currentLink)===null||p===void 0?void 0:p.state)&&o._currentLink.state.decorations.pointerCursor!==f&&(o._currentLink.state.decorations.pointerCursor=f,o._currentLink.state.isHovered&&((v=o._element)===null||v===void 0||v.classList.toggle("xterm-cursor-pointer",f)))}},underline:{get:function(){var f,p;return(p=(f=o._currentLink)===null||f===void 0?void 0:f.state)===null||p===void 0?void 0:p.decorations.underline},set:function(f){var p,v,A;((p=o._currentLink)===null||p===void 0?void 0:p.state)&&((A=(v=o._currentLink)===null||v===void 0?void 0:v.state)===null||A===void 0?void 0:A.decorations.underline)!==f&&(o._currentLink.state.decorations.underline=f,o._currentLink.state.isHovered&&o._fireUnderlineEvent(e.link,f))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(u){var f=u.start===0?0:u.start+1+o._bufferService.buffer.ydisp;o._clearCurrentLink(f,u.end+1+o._bufferService.buffer.ydisp)})))}},s.prototype._linkHover=function(e,o,l){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),o.hover&&o.hover(l,o.text)},s.prototype._fireUnderlineEvent=function(e,o){var l=e.range,u=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-u-1,l.end.x,l.end.y-u-1,void 0);(o?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)},s.prototype._linkLeave=function(e,o,l){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),o.leave&&o.leave(l,o.text)},s.prototype._linkAtPosition=function(e,o){var l=e.range.start.y===e.range.end.y,u=e.range.start.y<o.y,f=e.range.end.y>o.y;return(l&&e.range.start.x<=o.x&&e.range.end.x>=o.x||u&&e.range.end.x>=o.x||f&&e.range.start.x<=o.x||u&&f)&&e.range.start.y<=o.y&&e.range.end.y>=o.y},s.prototype._positionFromMouseEvent=function(e,o,l){var u=l.getCoords(e,o,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},s.prototype._createLinkUnderlineEvent=function(e,o,l,u,f){return{x1:e,y1:o,x2:l,y2:u,cols:this._bufferService.cols,fg:f}},s=m([h(0,c.IBufferService)],s)}(r.Disposable);E.Linkifier2=n},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CoreBrowserService=void 0;var g=function(){function S(m){this._textarea=m}return Object.defineProperty(S.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),S}();E.CoreBrowserService=g},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(y,x){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var b in w)w.hasOwnProperty(b)&&(C[b]=w[b])})(y,x)},function(A,y){function x(){this.constructor=A}g(A,y),A.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)});Object.defineProperty(E,"__esModule",{value:!0}),E.CoreTerminal=void 0;var m=T(2),h=T(1),c=T(66),a=T(67),r=T(68),i=T(74),n=T(75),t=T(0),s=T(76),e=T(77),o=T(78),l=T(80),u=T(81),f=T(19),p=T(82),v=function(A){function y(x){var C=A.call(this)||this;return C._onBinary=new t.EventEmitter,C._onData=new t.EventEmitter,C._onLineFeed=new t.EventEmitter,C._onResize=new t.EventEmitter,C._onScroll=new t.EventEmitter,C._instantiationService=new c.InstantiationService,C.optionsService=new i.OptionsService(x),C._instantiationService.setService(h.IOptionsService,C.optionsService),C._bufferService=C.register(C._instantiationService.createInstance(r.BufferService)),C._instantiationService.setService(h.IBufferService,C._bufferService),C._logService=C._instantiationService.createInstance(a.LogService),C._instantiationService.setService(h.ILogService,C._logService),C._coreService=C.register(C._instantiationService.createInstance(n.CoreService,function(){return C.scrollToBottom()})),C._instantiationService.setService(h.ICoreService,C._coreService),C._coreMouseService=C._instantiationService.createInstance(s.CoreMouseService),C._instantiationService.setService(h.ICoreMouseService,C._coreMouseService),C._dirtyRowService=C._instantiationService.createInstance(e.DirtyRowService),C._instantiationService.setService(h.IDirtyRowService,C._dirtyRowService),C.unicodeService=C._instantiationService.createInstance(o.UnicodeService),C._instantiationService.setService(h.IUnicodeService,C.unicodeService),C._charsetService=C._instantiationService.createInstance(l.CharsetService),C._instantiationService.setService(h.ICharsetService,C._charsetService),C._inputHandler=new f.InputHandler(C._bufferService,C._charsetService,C._coreService,C._dirtyRowService,C._logService,C.optionsService,C._coreMouseService,C.unicodeService),C.register(t.forwardEvent(C._inputHandler.onLineFeed,C._onLineFeed)),C.register(C._inputHandler),C.register(t.forwardEvent(C._bufferService.onResize,C._onResize)),C.register(t.forwardEvent(C._coreService.onData,C._onData)),C.register(t.forwardEvent(C._coreService.onBinary,C._onBinary)),C.register(C.optionsService.onOptionChange(function(w){return C._updateOptions(w)})),C._writeBuffer=new p.WriteBuffer(function(w){return C._inputHandler.parse(w)}),C}return S(y,A),Object.defineProperty(y.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var x;this._isDisposed||(A.prototype.dispose.call(this),(x=this._windowsMode)===null||x===void 0||x.dispose(),this._windowsMode=void 0)},y.prototype.write=function(x,C){this._writeBuffer.write(x,C)},y.prototype.writeSync=function(x){this._writeBuffer.writeSync(x)},y.prototype.resize=function(x,C){isNaN(x)||isNaN(C)||(x=Math.max(x,r.MINIMUM_COLS),C=Math.max(C,r.MINIMUM_ROWS),this._bufferService.resize(x,C))},y.prototype.scroll=function(x,C){C===void 0&&(C=!1);var w,b=this._bufferService.buffer;(w=this._cachedBlankLine)&&w.length===this.cols&&w.getFg(0)===x.fg&&w.getBg(0)===x.bg||(w=b.getBlankLine(x,C),this._cachedBlankLine=w),w.isWrapped=C;var _=b.ybase+b.scrollTop,O=b.ybase+b.scrollBottom;if(b.scrollTop===0){var L=b.lines.isFull;O===b.lines.length-1?L?b.lines.recycle().copyFrom(w):b.lines.push(w.clone()):b.lines.splice(O+1,0,w.clone()),L?this._bufferService.isUserScrolling&&(b.ydisp=Math.max(b.ydisp-1,0)):(b.ybase++,this._bufferService.isUserScrolling||b.ydisp++)}else{var D=O-_+1;b.lines.shiftElements(_+1,D-1,-1),b.lines.set(O,w.clone())}this._bufferService.isUserScrolling||(b.ydisp=b.ybase),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom),this._onScroll.fire(b.ydisp)},y.prototype.scrollLines=function(x,C){var w=this._bufferService.buffer;if(x<0){if(w.ydisp===0)return;this._bufferService.isUserScrolling=!0}else x+w.ydisp>=w.ybase&&(this._bufferService.isUserScrolling=!1);var b=w.ydisp;w.ydisp=Math.max(Math.min(w.ydisp+x,w.ybase),0),b!==w.ydisp&&(C||this._onScroll.fire(w.ydisp))},y.prototype.scrollPages=function(x){this.scrollLines(x*(this.rows-1))},y.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},y.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},y.prototype.scrollToLine=function(x){var C=x-this._bufferService.buffer.ydisp;C!==0&&this.scrollLines(C)},y.prototype.addEscHandler=function(x,C){return this._inputHandler.addEscHandler(x,C)},y.prototype.addDcsHandler=function(x,C){return this._inputHandler.addDcsHandler(x,C)},y.prototype.addCsiHandler=function(x,C){return this._inputHandler.addCsiHandler(x,C)},y.prototype.addOscHandler=function(x,C){return this._inputHandler.addOscHandler(x,C)},y.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},y.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},y.prototype._updateOptions=function(x){var C;switch(x){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)}},y.prototype._enableWindowsMode=function(){var x=this;if(!this._windowsMode){var C=[];C.push(this.onLineFeed(u.updateWindowsModeWrappedState.bind(null,this._bufferService))),C.push(this.addCsiHandler({final:"H"},function(){return u.updateWindowsModeWrappedState(x._bufferService),!1})),this._windowsMode={dispose:function(){for(var b=0,_=C;b<_.length;b++)_[b].dispose()}}}},y}(m.Disposable);E.CoreTerminal=v},function(I,E,T){"use strict";var g=this&&this.__spreadArrays||function(){for(var a=0,r=0,i=arguments.length;r<i;r++)a+=arguments[r].length;var n=Array(a),t=0;for(r=0;r<i;r++)for(var s=arguments[r],e=0,o=s.length;e<o;e++,t++)n[t]=s[e];return n};Object.defineProperty(E,"__esModule",{value:!0}),E.InstantiationService=E.ServiceCollection=void 0;var S=T(1),m=T(14),h=function(){function a(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._entries=new Map;for(var n=0,t=r;n<t.length;n++){var s=t[n],e=s[0],o=s[1];this.set(e,o)}}return a.prototype.set=function(r,i){var n=this._entries.get(r);return this._entries.set(r,i),n},a.prototype.forEach=function(r){this._entries.forEach(function(i,n){return r(n,i)})},a.prototype.has=function(r){return this._entries.has(r)},a.prototype.get=function(r){return this._entries.get(r)},a}();E.ServiceCollection=h;var c=function(){function a(){this._services=new h,this._services.set(S.IInstantiationService,this)}return a.prototype.setService=function(r,i){this._services.set(r,i)},a.prototype.getService=function(r){return this._services.get(r)},a.prototype.createInstance=function(r){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var t=m.getServiceDependencies(r).sort(function(p,v){return p.index-v.index}),s=[],e=0,o=t;e<o.length;e++){var l=o[e],u=this._services.get(l.id);if(!u)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+l.id+".");s.push(u)}var f=t.length>0?t[0].index:i.length;if(i.length!==f)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(f+1)+" conflicts with "+i.length+" static arguments");return new(r.bind.apply(r,g([void 0],g(i,s))))},a}();E.InstantiationService=c},function(I,E,T){"use strict";var g=this&&this.__decorate||function(i,n,t,s){var e,o=arguments.length,l=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(i,n,t,s);else for(var u=i.length-1;u>=0;u--)(e=i[u])&&(l=(o<3?e(l):o>3?e(n,t,l):e(n,t))||l);return o>3&&l&&Object.defineProperty(n,t,l),l},S=this&&this.__param||function(i,n){return function(t,s){n(t,s,i)}},m=this&&this.__spreadArrays||function(){for(var i=0,n=0,t=arguments.length;n<t;n++)i+=arguments[n].length;var s=Array(i),e=0;for(n=0;n<t;n++)for(var o=arguments[n],l=0,u=o.length;l<u;l++,e++)s[e]=o[l];return s};Object.defineProperty(E,"__esModule",{value:!0}),E.LogService=E.LogLevel=void 0;var h,c=T(1);!function(i){i[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF"}(h=E.LogLevel||(E.LogLevel={}));var a={debug:h.DEBUG,info:h.INFO,warn:h.WARN,error:h.ERROR,off:h.OFF},r=function(){function i(n){var t=this;this._optionsService=n,this._updateLogLevel(),this._optionsService.onOptionChange(function(s){s==="logLevel"&&t._updateLogLevel()})}return i.prototype._updateLogLevel=function(){this._logLevel=a[this._optionsService.options.logLevel]},i.prototype._evalLazyOptionalParams=function(n){for(var t=0;t<n.length;t++)typeof n[t]=="function"&&(n[t]=n[t]())},i.prototype._log=function(n,t,s){this._evalLazyOptionalParams(s),n.call.apply(n,m([console,"xterm.js: "+t],s))},i.prototype.debug=function(n){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];this._logLevel<=h.DEBUG&&this._log(console.log,n,t)},i.prototype.info=function(n){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];this._logLevel<=h.INFO&&this._log(console.info,n,t)},i.prototype.warn=function(n){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];this._logLevel<=h.WARN&&this._log(console.warn,n,t)},i.prototype.error=function(n){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];this._logLevel<=h.ERROR&&this._log(console.error,n,t)},i=g([S(0,c.IOptionsService)],i)}();E.LogService=r},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(s,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])})(s,e)},function(t,s){function e(){this.constructor=t}g(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),m=this&&this.__decorate||function(t,s,e,o){var l,u=arguments.length,f=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var p=t.length-1;p>=0;p--)(l=t[p])&&(f=(u<3?l(f):u>3?l(s,e,f):l(s,e))||f);return u>3&&f&&Object.defineProperty(s,e,f),f},h=this&&this.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.BufferService=E.MINIMUM_ROWS=E.MINIMUM_COLS=void 0;var c=T(1),a=T(69),r=T(0),i=T(2);E.MINIMUM_COLS=2,E.MINIMUM_ROWS=1;var n=function(t){function s(e){var o=t.call(this)||this;return o._optionsService=e,o.isUserScrolling=!1,o._onResize=new r.EventEmitter,o.cols=Math.max(e.options.cols,E.MINIMUM_COLS),o.rows=Math.max(e.options.rows,E.MINIMUM_ROWS),o.buffers=new a.BufferSet(e,o),o}return S(s,t),Object.defineProperty(s.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),s.prototype.dispose=function(){t.prototype.dispose.call(this),this.buffers.dispose()},s.prototype.resize=function(e,o){this.cols=e,this.rows=o,this.buffers.resize(e,o),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:o})},s.prototype.reset=function(){this.buffers.dispose(),this.buffers=new a.BufferSet(this._optionsService,this),this.isUserScrolling=!1},s=m([h(0,c.IOptionsService)],s)}(i.Disposable);E.BufferService=n},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(r,i){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var s in t)t.hasOwnProperty(s)&&(n[s]=t[s])})(r,i)},function(a,r){function i(){this.constructor=a}g(a,r),a.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)});Object.defineProperty(E,"__esModule",{value:!0}),E.BufferSet=void 0;var m=T(70),h=T(0),c=function(a){function r(i,n){var t=a.call(this)||this;return t._onBufferActivate=t.register(new h.EventEmitter),t._normal=new m.Buffer(!0,i,n),t._normal.fillViewportRows(),t._alt=new m.Buffer(!1,i,n),t._activeBuffer=t._normal,t.setupTabStops(),t}return S(r,a),Object.defineProperty(r.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),r.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}))},r.prototype.activateAltBuffer=function(i){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(i),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}))},r.prototype.resize=function(i,n){this._normal.resize(i,n),this._alt.resize(i,n)},r.prototype.setupTabStops=function(i){this._normal.setupTabStops(i),this._alt.setupTabStops(i)},r}(T(2).Disposable);E.BufferSet=c},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BufferStringIterator=E.Buffer=E.MAX_BUFFER_SIZE=void 0;var g=T(71),S=T(16),m=T(4),h=T(3),c=T(72),a=T(73),r=T(20),i=T(6);E.MAX_BUFFER_SIZE=4294967295;var n=function(){function s(e,o,l){this._hasScrollback=e,this._optionsService=o,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=S.DEFAULT_ATTR_DATA.clone(),this.savedCharset=r.DEFAULT_CHARSET,this.markers=[],this._nullCell=m.CellData.fromCharData([0,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE]),this._whitespaceCell=m.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 g.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return s.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new i.ExtendedAttrs),this._nullCell},s.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},s.prototype.getBlankLine=function(e,o){return new S.BufferLine(this._bufferService.cols,this.getNullCell(e),o)},Object.defineProperty(s.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isCursorInViewport",{get:function(){var o=this.ybase+this.y-this.ydisp;return o>=0&&o<this._rows},enumerable:!1,configurable:!0}),s.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var o=e+this._optionsService.options.scrollback;return o>E.MAX_BUFFER_SIZE?E.MAX_BUFFER_SIZE:o},s.prototype.fillViewportRows=function(e){if(this.lines.length===0){e===void 0&&(e=S.DEFAULT_ATTR_DATA);for(var o=this._rows;o--;)this.lines.push(this.getBlankLine(e))}},s.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new g.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},s.prototype.resize=function(e,o){var l=this.getNullCell(S.DEFAULT_ATTR_DATA),u=this._getCorrectBufferLength(o);if(u>this.lines.maxLength&&(this.lines.maxLength=u),this.lines.length>0){if(this._cols<e)for(var f=0;f<this.lines.length;f++)this.lines.get(f).resize(e,l);var p=0;if(this._rows<o)for(var v=this._rows;v<o;v++)this.lines.length<o+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new S.BufferLine(e,l)):this.ybase>0&&this.lines.length<=this.ybase+this.y+p+1?(this.ybase--,p++,this.ydisp>0&&this.ydisp--):this.lines.push(new S.BufferLine(e,l)));else for(v=this._rows;v>o;v--)this.lines.length>o+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(u<this.lines.maxLength){var A=this.lines.length-u;A>0&&(this.lines.trimStart(A),this.ybase=Math.max(this.ybase-A,0),this.ydisp=Math.max(this.ydisp-A,0),this.savedY=Math.max(this.savedY-A,0)),this.lines.maxLength=u}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,o-1),p&&(this.y+=p),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=o-1,this._isReflowEnabled&&(this._reflow(e,o),this._cols>e))for(f=0;f<this.lines.length;f++)this.lines.get(f).resize(e,l);this._cols=e,this._rows=o},Object.defineProperty(s.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),s.prototype._reflow=function(e,o){this._cols!==e&&(e>this._cols?this._reflowLarger(e,o):this._reflowSmaller(e,o))},s.prototype._reflowLarger=function(e,o){var l=c.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(S.DEFAULT_ATTR_DATA));if(l.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,l);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(e,o,u.countRemoved)}},s.prototype._reflowLargerAdjustViewport=function(e,o,l){for(var u=this.getNullCell(S.DEFAULT_ATTR_DATA),f=l;f-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<o&&this.lines.push(new S.BufferLine(e,u))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-l,0)},s.prototype._reflowSmaller=function(e,o){for(var l=this.getNullCell(S.DEFAULT_ATTR_DATA),u=[],f=0,p=this.lines.length-1;p>=0;p--){var v=this.lines.get(p);if(!(!v||!v.isWrapped&&v.getTrimmedLength()<=e)){for(var A=[v];v.isWrapped&&p>0;)v=this.lines.get(--p),A.unshift(v);var y=this.ybase+this.y;if(!(y>=p&&y<p+A.length)){var x=A[A.length-1].getTrimmedLength(),C=c.reflowSmallerGetNewLineLengths(A,this._cols,e),w=C.length-A.length,b=void 0;b=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+w):Math.max(0,this.lines.length-this.lines.maxLength+w);for(var _=[],O=0;O<w;O++){var L=this.getBlankLine(S.DEFAULT_ATTR_DATA,!0);_.push(L)}_.length>0&&(u.push({start:p+A.length+f,newLines:_}),f+=_.length),A.push.apply(A,_);var D=C.length-1,N=C[D];N===0&&(N=C[--D]);for(var M=A.length-w-1,F=x;M>=0;){var R=Math.min(F,N);if(A[D].copyCellsFrom(A[M],F-R,N-R,R,!0),(N-=R)===0&&(N=C[--D]),(F-=R)===0){M--;var j=Math.max(M,0);F=c.getWrappedLineTrimmedLength(A,j,this._cols)}}for(O=0;O<A.length;O++)C[O]<e&&A[O].setCell(C[O],l);for(var B=w-b;B-- >0;)this.ybase===0?this.y<o-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+f)-o&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+w,this.ybase+o-1)}}}if(u.length>0){var K=[],U=[];for(O=0;O<this.lines.length;O++)U.push(this.lines.get(O));var z=this.lines.length,V=z-1,Y=0,J=u[Y];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+f);var se=0;for(O=Math.min(this.lines.maxLength-1,z+f-1);O>=0;O--)if(J&&J.start>V+se){for(var $=J.newLines.length-1;$>=0;$--)this.lines.set(O--,J.newLines[$]);O++,K.push({index:V+1,amount:J.newLines.length}),se+=J.newLines.length,J=u[++Y]}else this.lines.set(O,U[V--]);var ae=0;for(O=K.length-1;O>=0;O--)K[O].index+=ae,this.lines.onInsertEmitter.fire(K[O]),ae+=K[O].amount;var ge=Math.max(0,z+f-this.lines.maxLength);ge>0&&this.lines.onTrimEmitter.fire(ge)}},s.prototype.stringIndexToBufferIndex=function(e,o,l){for(l===void 0&&(l=!1);o;){var u=this.lines.get(e);if(!u)return[-1,-1];for(var f=l?u.getTrimmedLength():u.length,p=0;p<f;++p)if(u.get(p)[h.CHAR_DATA_WIDTH_INDEX]&&(o-=u.get(p)[h.CHAR_DATA_CHAR_INDEX].length||1),o<0)return[e,p];e++}return[e,0]},s.prototype.translateBufferLineToString=function(e,o,l,u){l===void 0&&(l=0);var f=this.lines.get(e);return f?f.translateToString(o,l,u):""},s.prototype.getWrappedRangeForLine=function(e){for(var o=e,l=e;o>0&&this.lines.get(o).isWrapped;)o--;for(;l+1<this.lines.length&&this.lines.get(l+1).isWrapped;)l++;return{first:o,last:l}},s.prototype.setupTabStops=function(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},s.prototype.prevStop=function(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},s.prototype.nextStop=function(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},s.prototype.addMarker=function(e){var o=this,l=new a.Marker(e);return this.markers.push(l),l.register(this.lines.onTrim(function(u){l.line-=u,l.line<0&&l.dispose()})),l.register(this.lines.onInsert(function(u){l.line>=u.index&&(l.line+=u.amount)})),l.register(this.lines.onDelete(function(u){l.line>=u.index&&l.line<u.index+u.amount&&l.dispose(),l.line>u.index&&(l.line-=u.amount)})),l.register(l.onDispose(function(){return o._removeMarker(l)})),l},s.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},s.prototype.iterator=function(e,o,l,u,f){return new t(this,e,o,l,u,f)},s}();E.Buffer=n;var t=function(){function s(e,o,l,u,f,p){l===void 0&&(l=0),u===void 0&&(u=e.lines.length),f===void 0&&(f=0),p===void 0&&(p=0),this._buffer=e,this._trimRight=o,this._startIndex=l,this._endIndex=u,this._startOverscan=f,this._endOverscan=p,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return s.prototype.hasNext=function(){return this._current<this._endIndex},s.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var o="",l=e.first;l<=e.last;++l)o+=this._buffer.translateBufferLineToString(l,this._trimRight);return this._current=e.last+1,{range:e,content:o}},s}();E.BufferStringIterator=t},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CircularList=void 0;var g=T(0),S=function(){function m(h){this._maxLength=h,this.onDeleteEmitter=new g.EventEmitter,this.onInsertEmitter=new g.EventEmitter,this.onTrimEmitter=new g.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(m.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"maxLength",{get:function(){return this._maxLength},set:function(c){if(this._maxLength!==c){for(var a=new Array(c),r=0;r<Math.min(c,this.length);r++)a[r]=this._array[this._getCyclicIndex(r)];this._array=a,this._maxLength=c,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"length",{get:function(){return this._length},set:function(c){if(c>this._length)for(var a=this._length;a<c;a++)this._array[a]=void 0;this._length=c},enumerable:!1,configurable:!0}),m.prototype.get=function(h){return this._array[this._getCyclicIndex(h)]},m.prototype.set=function(h,c){this._array[this._getCyclicIndex(h)]=c},m.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++},m.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(m.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),m.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},m.prototype.splice=function(h,c){for(var a=[],r=2;r<arguments.length;r++)a[r-2]=arguments[r];if(c){for(var i=h;i<this._length-c;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+c)];this._length-=c}for(i=this._length-1;i>=h;i--)this._array[this._getCyclicIndex(i+a.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<a.length;i++)this._array[this._getCyclicIndex(h+i)]=a[i];if(this._length+a.length>this._maxLength){var n=this._length+a.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=a.length},m.prototype.trimStart=function(h){h>this._length&&(h=this._length),this._startIndex+=h,this._length-=h,this.onTrimEmitter.fire(h)},m.prototype.shiftElements=function(h,c,a){if(!(c<=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 r=c-1;r>=0;r--)this.set(h+r+a,this.get(h+r));var i=h+c+a-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<c;r++)this.set(h+r+a,this.get(h+r))}},m.prototype._getCyclicIndex=function(h){return(this._startIndex+h)%this._maxLength},m}();E.CircularList=S},function(I,E,T){"use strict";function g(S,m,h){if(m===S.length-1)return S[m].getTrimmedLength();var c=!S[m].hasContent(h-1)&&S[m].getWidth(h-1)===1,a=S[m+1].getWidth(0)===2;return c&&a?h-1:h}Object.defineProperty(E,"__esModule",{value:!0}),E.getWrappedLineTrimmedLength=E.reflowSmallerGetNewLineLengths=E.reflowLargerApplyNewLayout=E.reflowLargerCreateNewLayout=E.reflowLargerGetLinesToRemove=void 0,E.reflowLargerGetLinesToRemove=function(S,m,h,c,a){for(var r=[],i=0;i<S.length-1;i++){var n=i,t=S.get(++n);if(t.isWrapped){for(var s=[S.get(i)];n<S.length&&t.isWrapped;)s.push(t),t=S.get(++n);if(c>=i&&c<n)i+=s.length-1;else{for(var e=0,o=g(s,e,m),l=1,u=0;l<s.length;){var f=g(s,l,m),p=f-u,v=h-o,A=Math.min(p,v);s[e].copyCellsFrom(s[l],u,o,A,!1),(o+=A)===h&&(e++,o=0),(u+=A)===f&&(l++,u=0),o===0&&e!==0&&s[e-1].getWidth(h-1)===2&&(s[e].copyCellsFrom(s[e-1],h-1,o++,1,!1),s[e-1].setCell(h-1,a))}s[e].replaceCells(o,h,a);for(var y=0,x=s.length-1;x>0&&(x>e||s[x].getTrimmedLength()===0);x--)y++;y>0&&(r.push(i+s.length-y),r.push(y)),i+=s.length-1}}}return r},E.reflowLargerCreateNewLayout=function(S,m){for(var h=[],c=0,a=m[c],r=0,i=0;i<S.length;i++)if(a===i){var n=m[++c];S.onDeleteEmitter.fire({index:i-r,amount:n}),i+=n-1,r+=n,a=m[++c]}else h.push(i);return{layout:h,countRemoved:r}},E.reflowLargerApplyNewLayout=function(S,m){for(var h=[],c=0;c<m.length;c++)h.push(S.get(m[c]));for(c=0;c<h.length;c++)S.set(c,h[c]);S.length=m.length},E.reflowSmallerGetNewLineLengths=function(S,m,h){for(var c=[],a=S.map(function(o,l){return g(S,l,m)}).reduce(function(o,l){return o+l}),r=0,i=0,n=0;n<a;){if(a-n<h){c.push(a-n);break}r+=h;var t=g(S,i,m);r>t&&(r-=t,i++);var s=S[i].getWidth(r-1)===2;s&&r--;var e=s?h-1:h;c.push(e),n+=e}return c},E.getWrappedLineTrimmedLength=g},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(a,r){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var t in n)n.hasOwnProperty(t)&&(i[t]=n[t])})(a,r)},function(c,a){function r(){this.constructor=c}g(c,a),c.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)});Object.defineProperty(E,"__esModule",{value:!0}),E.Marker=void 0;var m=T(0),h=function(c){function a(r){var i=c.call(this)||this;return i.line=r,i._id=a._nextId++,i.isDisposed=!1,i._onDispose=new m.EventEmitter,i}return S(a,c),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}(T(2).Disposable);E.Marker=h},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OptionsService=E.DEFAULT_OPTIONS=E.DEFAULT_BELL_SOUND=void 0;var g=T(0),S=T(11),m=T(33);E.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",E.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:E.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:S.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var h=["cols","rows"],c=function(){function a(r){this._onOptionChange=new g.EventEmitter,this.options=m.clone(E.DEFAULT_OPTIONS);for(var i=0,n=Object.keys(r);i<n.length;i++){var t=n[i];if(t in this.options){var s=r[t];this.options[t]=s}}}return Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),a.prototype.setOption=function(r,i){if(!(r in E.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');if(h.indexOf(r)!==-1)throw new Error('Option "'+r+'" can only be set in the constructor');this.options[r]!==i&&(i=this._sanitizeAndValidateOption(r,i),this.options[r]!==i&&(this.options[r]=i,this._onOptionChange.fire(r)))},a.prototype._sanitizeAndValidateOption=function(r,i){switch(r){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":i||(i=E.DEFAULT_OPTIONS[r]);break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(r+" cannot be less than 1, value: "+i);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(r+" cannot be less than 0, value: "+i);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(r+" cannot be less than or equal to 0, value: "+i)}return i},a.prototype.getOption=function(r){if(!(r in E.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return this.options[r]},a}();E.OptionsService=c},function(I,E,T){"use strict";var g,S=this&&this.__extends||(g=function(o,l){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])})(o,l)},function(e,o){function l(){this.constructor=e}g(e,o),e.prototype=o===null?Object.create(o):(l.prototype=o.prototype,new l)}),m=this&&this.__decorate||function(e,o,l,u){var f,p=arguments.length,v=p<3?o:u===null?u=Object.getOwnPropertyDescriptor(o,l):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,o,l,u);else for(var A=e.length-1;A>=0;A--)(f=e[A])&&(v=(p<3?f(v):p>3?f(o,l,v):f(o,l))||v);return p>3&&v&&Object.defineProperty(o,l,v),v},h=this&&this.__param||function(e,o){return function(l,u){o(l,u,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CoreService=void 0;var c=T(1),a=T(0),r=T(33),i=T(2),n=Object.freeze({insertMode:!1}),t=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),s=function(e){function o(l,u,f,p){var v=e.call(this)||this;return v._bufferService=u,v._logService=f,v._optionsService=p,v.isCursorInitialized=!1,v.isCursorHidden=!1,v._onData=v.register(new a.EventEmitter),v._onUserInput=v.register(new a.EventEmitter),v._onBinary=v.register(new a.EventEmitter),v._scrollToBottom=l,v.register({dispose:function(){return v._scrollToBottom=void 0}}),v.modes=r.clone(n),v.decPrivateModes=r.clone(t),v}return S(o,e),Object.defineProperty(o.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),o.prototype.reset=function(){this.modes=r.clone(n),this.decPrivateModes=r.clone(t)},o.prototype.triggerDataEvent=function(l,u){if(u===void 0&&(u=!1),!this._optionsService.options.disableStdin){var f=this._bufferService.buffer;f.ybase!==f.ydisp&&this._scrollToBottom(),u&&this._onUserInput.fire(),this._logService.debug('sending data "'+l+'"',function(){return l.split("").map(function(p){return p.charCodeAt(0)})}),this._onData.fire(l)}},o.prototype.triggerBinaryEvent=function(l){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+l+'"',function(){return l.split("").map(function(u){return u.charCodeAt(0)})}),this._onBinary.fire(l))},o=m([h(1,c.IBufferService),h(2,c.ILogService),h(3,c.IOptionsService)],o)}(i.Disposable);E.CoreService=s},function(I,E,T){"use strict";var g=this&&this.__decorate||function(t,s,e,o){var l,u=arguments.length,f=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,e):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(t,s,e,o);else for(var p=t.length-1;p>=0;p--)(l=t[p])&&(f=(u<3?l(f):u>3?l(s,e,f):l(s,e))||f);return u>3&&f&&Object.defineProperty(s,e,f),f},S=this&&this.__param||function(t,s){return function(e,o){s(e,o,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CoreMouseService=void 0;var m=T(1),h=T(0),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(s){return s.button!==4&&s.action===1&&(s.ctrl=!1,s.alt=!1,s.shift=!1,!0)}},VT200:{events:19,restrict:function(s){return s.action!==32}},DRAG:{events:23,restrict:function(s){return s.action!==32||s.button!==3}},ANY:{events:31,restrict:function(s){return!0}}};function a(t,s){var e=(t.ctrl?16:0)|(t.shift?4:0)|(t.alt?8:0);return t.button===4?(e|=64,e|=t.action):(e|=3&t.button,4&t.button&&(e|=64),8&t.button&&(e|=128),t.action===32?e|=32:t.action!==0||s||(e|=3)),e}var r=String.fromCharCode,i={DEFAULT:function(s){var e=[a(s,!1)+32,s.col+32,s.row+32];return e[0]>255||e[1]>255||e[2]>255?"":"[M"+r(e[0])+r(e[1])+r(e[2])},SGR:function(s){var e=s.action===0&&s.button!==4?"m":"M";return"[<"+a(s,!0)+";"+s.col+";"+s.row+e}},n=function(){function t(s,e){this._bufferService=s,this._coreService=e,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new h.EventEmitter,this._lastEvent=null;for(var o=0,l=Object.keys(c);o<l.length;o++){var u=l[o];this.addProtocol(u,c[u])}for(var f=0,p=Object.keys(i);f<p.length;f++){var v=p[f];this.addEncoding(v,i[v])}this.reset()}return t.prototype.addProtocol=function(s,e){this._protocols[s]=e},t.prototype.addEncoding=function(s,e){this._encodings[s]=e},Object.defineProperty(t.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(e){if(!this._protocols[e])throw new Error('unknown protocol "'+e+'"');this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(e){if(!this._encodings[e])throw new Error('unknown encoding "'+e+'"');this._activeEncoding=e},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(t.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),t.prototype.triggerMouseEvent=function(s){if(s.col<0||s.col>=this._bufferService.cols||s.row<0||s.row>=this._bufferService.rows)return!1;if(s.button===4&&s.action===32)return!1;if(s.button===3&&s.action!==32)return!1;if(s.button!==4&&(s.action===2||s.action===3))return!1;if(s.col++,s.row++,s.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,s))return!1;if(!this._protocols[this._activeProtocol].restrict(s))return!1;var e=this._encodings[this._activeEncoding](s);return e&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(e):this._coreService.triggerDataEvent(e,!0)),this._lastEvent=s,!0},t.prototype.explainEvents=function(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}},t.prototype._compareEvents=function(s,e){return s.col===e.col&&s.row===e.row&&s.button===e.button&&s.action===e.action&&s.ctrl===e.ctrl&&s.alt===e.alt&&s.shift===e.shift},t=g([S(0,m.IBufferService),S(1,m.ICoreService)],t)}();E.CoreMouseService=n},function(I,E,T){"use strict";var g=this&&this.__decorate||function(c,a,r,i){var n,t=arguments.length,s=t<3?a:i===null?i=Object.getOwnPropertyDescriptor(a,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,a,r,i);else for(var e=c.length-1;e>=0;e--)(n=c[e])&&(s=(t<3?n(s):t>3?n(a,r,s):n(a,r))||s);return t>3&&s&&Object.defineProperty(a,r,s),s},S=this&&this.__param||function(c,a){return function(r,i){a(r,i,c)}};Object.defineProperty(E,"__esModule",{value:!0}),E.DirtyRowService=void 0;var m=T(1),h=function(){function c(a){this._bufferService=a,this.clearRange()}return Object.defineProperty(c.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),c.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},c.prototype.markDirty=function(a){a<this._start?this._start=a:a>this._end&&(this._end=a)},c.prototype.markRangeDirty=function(a,r){if(a>r){var i=a;a=r,r=i}a<this._start&&(this._start=a),r>this._end&&(this._end=r)},c.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},c=g([S(0,m.IBufferService)],c)}();E.DirtyRowService=h},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UnicodeService=void 0;var g=T(0),S=T(79),m=function(){function h(){this._providers=Object.create(null),this._active="",this._onChange=new g.EventEmitter;var c=new S.UnicodeV6;this.register(c),this._active=c.version,this._activeProvider=c}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(c){this._providers[c.version]=c},h.prototype.wcwidth=function(c){return this._activeProvider.wcwidth(c)},h.prototype.getStringCellWidth=function(c){for(var a=0,r=c.length,i=0;i<r;++i){var n=c.charCodeAt(i);if(55296<=n&&n<=56319){if(++i>=r)return a+this.wcwidth(n);var t=c.charCodeAt(i);56320<=t&&t<=57343?n=1024*(n-55296)+t-56320+65536:a+=this.wcwidth(t)}a+=this.wcwidth(n)}return a},h}();E.UnicodeService=m},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UnicodeV6=void 0;var g,S=T(15),m=[[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]],c=function(){function a(){if(this.version="6",!g){g=new Uint8Array(65536),S.fill(g,1),g[0]=0,S.fill(g,0,1,32),S.fill(g,0,127,160),S.fill(g,2,4352,4448),g[9001]=2,g[9002]=2,S.fill(g,2,11904,42192),g[12351]=1,S.fill(g,2,44032,55204),S.fill(g,2,63744,64256),S.fill(g,2,65040,65050),S.fill(g,2,65072,65136),S.fill(g,2,65280,65377),S.fill(g,2,65504,65511);for(var r=0;r<m.length;++r)S.fill(g,0,m[r][0],m[r][1]+1)}}return a.prototype.wcwidth=function(r){return r<32?0:r<127?1:r<65536?g[r]:function(i,n){var t,s=0,e=n.length-1;if(i<n[0][0]||i>n[e][1])return!1;for(;e>=s;)if(i>n[t=s+e>>1][1])s=t+1;else{if(!(i<n[t][0]))return!0;e=t-1}return!1}(r,h)?0:r>=131072&&r<=196605||r>=196608&&r<=262141?2:1},a}();E.UnicodeV6=c},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CharsetService=void 0;var g=function(){function S(){this.glevel=0,this._charsets=[]}return S.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},S.prototype.setgLevel=function(m){this.glevel=m,this.charset=this._charsets[m]},S.prototype.setgCharset=function(m,h){this._charsets[m]=h,this.glevel===m&&(this.charset=h)},S}();E.CharsetService=g},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.updateWindowsModeWrappedState=void 0;var g=T(3);E.updateWindowsModeWrappedState=function(S){var m=S.buffer.lines.get(S.buffer.ybase+S.buffer.y-1),h=m==null?void 0:m.get(S.cols-1),c=S.buffer.lines.get(S.buffer.ybase+S.buffer.y);c&&h&&(c.isWrapped=h[g.CHAR_DATA_CODE_INDEX]!==g.NULL_CELL_CODE&&h[g.CHAR_DATA_CODE_INDEX]!==g.WHITESPACE_CELL_CODE)}},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.WriteBuffer=void 0;var g=function(){function S(m){this._action=m,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return S.prototype.writeSync=function(m){if(this._writeBuffer.length){for(var h=this._bufferOffset;h<this._writeBuffer.length;++h){var c=this._writeBuffer[h],a=this._callbacks[h];this._action(c),a&&a()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(m)},S.prototype.write=function(m,h){var c=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 c._innerWrite()})),this._pendingData+=m.length,this._writeBuffer.push(m),this._callbacks.push(h)},S.prototype._innerWrite=function(){for(var m=this,h=Date.now();this._writeBuffer.length>this._bufferOffset;){var c=this._writeBuffer[this._bufferOffset],a=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(c),this._pendingData-=c.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 m._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},S}();E.WriteBuffer=g},function(I,E,T){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AddonManager=void 0;var g=function(){function S(){this._addons=[]}return S.prototype.dispose=function(){for(var m=this._addons.length-1;m>=0;m--)this._addons[m].instance.dispose()},S.prototype.loadAddon=function(m,h){var c=this,a={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(a),h.dispose=function(){return c._wrappedAddonDispose(a)},h.activate(m)},S.prototype._wrappedAddonDispose=function(m){if(!m.isDisposed){for(var h=-1,c=0;c<this._addons.length;c++)if(this._addons[c]===m){h=c;break}if(h===-1)throw new Error("Could not dispose an addon that has not been loaded");m.isDisposed=!0,m.dispose.apply(m.instance),this._addons.splice(h,1)}},S}();E.AddonManager=g}])})},"/SeX":function(H,k,d){var I=d("knOB"),E=d("qZFw"),T=function(S){this.name=S||"",this.cx=0,this.cy=0,this._radiusAxis=new I,this._angleAxis=new E,this._radiusAxis.polar=this._angleAxis.polar=this};T.prototype={type:"polar",axisPointerEnabled:!0,constructor:T,dimensions:["radius","angle"],model:null,containPoint:function(S){var m=this.pointToCoord(S);return this._radiusAxis.contain(m[0])&&this._angleAxis.contain(m[1])},containData:function(S){return this._radiusAxis.containData(S[0])&&this._angleAxis.containData(S[1])},getAxis:function(S){return this["_"+S+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(S){var m=[],h=this._angleAxis,c=this._radiusAxis;return h.scale.type===S&&m.push(h),c.scale.type===S&&m.push(c),m},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(S){var m=this._angleAxis;return S===m?this._radiusAxis:m},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(S){var m=S!=null&&S!=="auto"?this.getAxis(S):this.getBaseAxis();return{baseAxes:[m],otherAxes:[this.getOtherAxis(m)]}},dataToPoint:function(S,m){return this.coordToPoint([this._radiusAxis.dataToRadius(S[0],m),this._angleAxis.dataToAngle(S[1],m)])},pointToData:function(S,m){var h=this.pointToCoord(S);return[this._radiusAxis.radiusToData(h[0],m),this._angleAxis.angleToData(h[1],m)]},pointToCoord:function(S){var m=S[0]-this.cx,h=S[1]-this.cy,c=this.getAngleAxis(),a=c.getExtent(),r=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]);c.inverse?r=i-360:i=r+360;var n=Math.sqrt(m*m+h*h);m/=n,h/=n;for(var t=Math.atan2(-h,m)/Math.PI*180,s=t<r?1:-1;t<r||t>i;)t+=s*360;return[n,t]},coordToPoint:function(S){var m=S[0],h=S[1]/180*Math.PI,c=Math.cos(h)*m+this.cx,a=-Math.sin(h)*m+this.cy;return[c,a]},getArea:function(){var S=this.getAngleAxis(),m=this.getRadiusAxis(),h=m.getExtent().slice();h[0]>h[1]&&h.reverse();var c=S.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:h[0],r:h[1],startAngle:-c[0]*a,endAngle:-c[1]*a,clockwise:S.inverse,contain:function(r,i){var n=r-this.cx,t=i-this.cy,s=n*n+t*t,e=this.r,o=this.r0;return s<=e*e&&s>=o*o}}}};var g=T;H.exports=g},"/WM3":function(H,k,d){var I=d("QuXc"),E=d("bYtY"),T=E.isFunction,g={createOnAllSeries:!0,performRawSeries:!0,reset:function(S,m){var h=S.getData(),c=(S.visualColorAccessPath||"itemStyle.color").split("."),a=S.get(c),r=T(a)&&!(a instanceof I)?a:null;(!a||r)&&(a=S.getColorFromPalette(S.name,null,m.getSeriesCount())),h.setVisual("color",a);var i=(S.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),n=S.get(i);if(h.setVisual("borderColor",n),!m.isSeriesFiltered(S)){r&&h.each(function(s){h.setItemVisual(s,"color",r(S.getDataParams(s)))});var t=function(s,e){var o=s.getItemModel(e),l=o.get(c,!0),u=o.get(i,!0);l!=null&&s.setItemVisual(e,"color",l),u!=null&&s.setItemVisual(e,"borderColor",u)};return{dataEach:h.hasItemOption?t:null}}}};H.exports=g},"/d5a":function(H,k){var d={average:function(T){for(var g=0,S=0,m=0;m<T.length;m++)isNaN(T[m])||(g+=T[m],S++);return S===0?NaN:g/S},sum:function(T){for(var g=0,S=0;S<T.length;S++)g+=T[S]||0;return g},max:function(T){for(var g=-Infinity,S=0;S<T.length;S++)T[S]>g&&(g=T[S]);return isFinite(g)?g:NaN},min:function(T){for(var g=Infinity,S=0;S<T.length;S++)T[S]<g&&(g=T[S]);return isFinite(g)?g:NaN},nearest:function(T){return T[0]}},I=function(T,g){return Math.round(T.length/2)};function E(T){return{seriesType:T,modifyOutputEnd:!0,reset:function(g,S,m){var h=g.getData(),c=g.get("sampling"),a=g.coordinateSystem;if(a.type==="cartesian2d"&&c){var r=a.getBaseAxis(),i=a.getOtherAxis(r),n=r.getExtent(),t=n[1]-n[0],s=Math.round(h.count()/t);if(s>1){var e;typeof c=="string"?e=d[c]:typeof c=="function"&&(e=c),e&&g.setData(h.downSample(h.mapDimension(i.dim),1/s,e,I))}}}}}H.exports=E},"/ezw":function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("cDf5"),m=d.n(S),h=d("q1tI"),c=d("TSYQ"),a=d.n(c),r=function(B){var K=B.prefixCls,U=B.className,z=B.width,V=B.style;return h.createElement("h3",{className:a()(K,U),style:g()({width:z},V)})},i=r,n=d("RIqP"),t=d.n(n),s=function(B){var K=function($){var ae=B.width,ge=B.rows,pe=ge===void 0?2:ge;return Array.isArray(ae)?ae[$]:pe-1===$?ae:void 0},U=B.prefixCls,z=B.className,V=B.style,Y=B.rows,J=t()(Array(Y)).map(function(se,$){return h.createElement("li",{key:$,style:{width:K($)}})});return h.createElement("ul",{className:a()(U,z),style:V},J)},e=s,o=d("H84U"),l=function(B){var K,U,z=B.prefixCls,V=B.className,Y=B.style,J=B.size,se=B.shape,$=a()((K={},E()(K,"".concat(z,"-lg"),J==="large"),E()(K,"".concat(z,"-sm"),J==="small"),K)),ae=a()((U={},E()(U,"".concat(z,"-circle"),se==="circle"),E()(U,"".concat(z,"-square"),se==="square"),E()(U,"".concat(z,"-round"),se==="round"),U)),ge=typeof J=="number"?{width:J,height:J,lineHeight:"".concat(J,"px")}:{};return h.createElement("span",{className:a()(z,V,$,ae),style:g()(g()({},ge),Y)})},u=l,f=d("BGR+"),p=function(B){var K=function(z){var V=z.getPrefixCls,Y=B.prefixCls,J=B.className,se=B.active,$=V("skeleton",Y),ae=Object(f.default)(B,["prefixCls"]),ge=a()($,J,"".concat($,"-element"),E()({},"".concat($,"-active"),se));return h.createElement("div",{className:ge},h.createElement(u,g()({prefixCls:"".concat($,"-avatar")},ae)))};return h.createElement(o.a,null,K)};p.defaultProps={size:"default",shape:"circle"};var v=p,A=function(B){var K=function(z){var V=z.getPrefixCls,Y=B.prefixCls,J=B.className,se=B.active,$=V("skeleton",Y),ae=Object(f.default)(B,["prefixCls"]),ge=a()($,J,"".concat($,"-element"),E()({},"".concat($,"-active"),se));return h.createElement("div",{className:ge},h.createElement(u,g()({prefixCls:"".concat($,"-button")},ae)))};return h.createElement(o.a,null,K)};A.defaultProps={size:"default"};var y=A,x=function(B){var K=function(z){var V=z.getPrefixCls,Y=B.prefixCls,J=B.className,se=B.active,$=V("skeleton",Y),ae=Object(f.default)(B,["prefixCls"]),ge=a()($,J,"".concat($,"-element"),E()({},"".concat($,"-active"),se));return h.createElement("div",{className:ge},h.createElement(u,g()({prefixCls:"".concat($,"-input")},ae)))};return h.createElement(o.a,null,K)};x.defaultProps={size:"default"};var C=x,w="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",b=function(B){var K=function(z){var V=z.getPrefixCls,Y=B.prefixCls,J=B.className,se=B.style,$=V("skeleton",Y),ae=a()($,J,"".concat($,"-element"));return h.createElement("div",{className:ae},h.createElement("div",{className:a()("".concat($,"-image"),J),style:se},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat($,"-image-svg")},h.createElement("path",{d:w,className:"".concat($,"-image-path")}))))};return h.createElement(o.a,null,K)},_=b;function O(j){return j&&m()(j)==="object"?j:{}}function L(j,B){return j&&!B?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function D(j,B){return!j&&B?{width:"38%"}:j&&B?{width:"50%"}:{}}function N(j,B){var K={};return(!j||!B)&&(K.width="61%"),!j&&B?K.rows=3:K.rows=2,K}var M=function(B){var K=function(z){var V=z.getPrefixCls,Y=z.direction,J=B.prefixCls,se=B.loading,$=B.className,ae=B.children,ge=B.avatar,pe=B.title,Ne=B.paragraph,de=B.active,Le=B.round,Q=V("skeleton",J);if(se||!("loading"in B)){var ce,Ke=!!ge,ee=!!pe,X=!!Ne,G;if(Ke){var Z=g()(g()({prefixCls:"".concat(Q,"-avatar")},L(ee,X)),O(ge));G=h.createElement("div",{className:"".concat(Q,"-header")},h.createElement(u,Z))}var ve;if(ee||X){var ue;if(ee){var _e=g()(g()({prefixCls:"".concat(Q,"-title")},D(Ke,X)),O(pe));ue=h.createElement(i,_e)}var xe;if(X){var oe=g()(g()({prefixCls:"".concat(Q,"-paragraph")},N(Ke,ee)),O(Ne));xe=h.createElement(e,oe)}ve=h.createElement("div",{className:"".concat(Q,"-content")},ue,xe)}var fe=a()(Q,$,(ce={},E()(ce,"".concat(Q,"-with-avatar"),Ke),E()(ce,"".concat(Q,"-active"),de),E()(ce,"".concat(Q,"-rtl"),Y==="rtl"),E()(ce,"".concat(Q,"-round"),Le),ce));return h.createElement("div",{className:fe},G,ve)}return ae};return h.createElement(o.a,null,K)};M.defaultProps={avatar:!1,title:!0,paragraph:!0},M.Button=y,M.Avatar=v,M.Input=C,M.Image=_;var F=M,R=k.a=F},"/iHx":function(H,k,d){var I=d("6GrX"),E=d("IwbS"),T=["textStyle","color"],g={getTextColor:function(S){var m=this.ecModel;return this.getShallow("color")||(!S&&m?m.get(T):null)},getFont:function(){return E.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(S){return I.getBoundingRect(S,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};H.exports=g},"/ry/":function(H,k,d){var I=d("bYtY"),E=d("T4UG"),T=d("5GhG"),g=T.seriesModelMixin,S=E.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}});I.mixin(S,g,!0);var m=S;H.exports=m},"/stD":function(H,k,d){var I=d("bYtY"),E=d("IUWy"),T=d("Kagy"),g=T.toolbox.brush;function S(c,a,r){this.model=c,this.ecModel=a,this.api=r,this._brushType,this._brushMode}S.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:I.clone(g.title)};var m=S.prototype;m.render=m.updateView=function(c,a,r){var i,n,t;a.eachComponent({mainType:"brush"},function(s){i=s.brushType,n=s.brushOption.brushMode||"single",t|=s.areas.length}),this._brushType=i,this._brushMode=n,I.each(c.get("type",!0),function(s){c.setIconStatus(s,(s==="keep"?n==="multiple":s==="clear"?t:s===i)?"emphasis":"normal")})},m.getIcons=function(){var c=this.model,a=c.get("icon",!0),r={};return I.each(c.get("type",!0),function(i){a[i]&&(r[i]=a[i])}),r},m.onclick=function(c,a,r){var i=this._brushType,n=this._brushMode;r==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?i:i===r?!1:r,brushMode:r==="keep"?n==="multiple"?"single":"multiple":n}})},E.register("brush",S);var h=S;H.exports=h},"/wGt":function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("PJYZ"),r=d.n(a),i=d("7W2i"),n=d.n(i),t=d("LQ03"),s=d.n(t),e=d("q1tI"),o=d("Ff2n"),l=d("1OyB"),u=d("vuIU"),f=d("Ji7U"),p=d("md7G"),v=d("foSv"),A=d("1W/9"),y=d("rePB"),x=d("JX7q"),C=d("TSYQ"),w=d.n(C),b=d("qx4F"),_=d("4IlW");function O(ue){return Array.isArray(ue)?ue:[ue]}var L={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},D=Object.keys(L).filter(function(ue){if(typeof document=="undefined")return!1;var _e=document.getElementsByTagName("html")[0];return ue in(_e?_e.style:{})})[0],N=L[D];function M(ue,_e,xe,oe){ue.addEventListener?ue.addEventListener(_e,xe,oe):ue.attachEvent&&ue.attachEvent("on".concat(_e),xe)}function F(ue,_e,xe,oe){ue.removeEventListener?ue.removeEventListener(_e,xe,oe):ue.attachEvent&&ue.detachEvent("on".concat(_e),xe)}function R(ue,_e){var xe=typeof ue=="function"?ue(_e):ue;return Array.isArray(xe)?xe.length===2?xe:[xe[0],xe[1]]:[xe]}var j=function(_e){return!isNaN(parseFloat(_e))&&isFinite(_e)},B=!(typeof window!="undefined"&&window.document&&window.document.createElement),K=function ue(_e,xe,oe,fe){if(!xe||xe===document||xe instanceof Document)return!1;if(xe===_e.parentNode)return!0;var Te=Math.max(Math.abs(oe),Math.abs(fe))===Math.abs(fe),ze=Math.max(Math.abs(oe),Math.abs(fe))===Math.abs(oe),it=xe.scrollHeight-xe.clientHeight,et=xe.scrollWidth-xe.clientWidth,Oe=document.defaultView.getComputedStyle(xe),gt=Oe.overflowY==="auto"||Oe.overflowY==="scroll",Ge=Oe.overflowX==="auto"||Oe.overflowX==="scroll",wt=it&>,xt=et&&Ge;return Te&&(!wt||wt&&(xe.scrollTop>=it&&fe<0||xe.scrollTop<=0&&fe>0))||ze&&(!xt||xt&&(xe.scrollLeft>=et&&oe<0||xe.scrollLeft<=0&&oe>0))?ue(_e,xe.parentNode,oe,fe):!1};function U(ue){var _e=z();return function(){var oe=Object(v.a)(ue),fe;if(_e){var Te=Object(v.a)(this).constructor;fe=Reflect.construct(oe,arguments,Te)}else fe=oe.apply(this,arguments);return Object(p.a)(this,fe)}}function z(){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(ue){return!1}}var V={},Y=function(ue){Object(f.a)(xe,ue);var _e=U(xe);function xe(oe){var fe;return Object(l.a)(this,xe),fe=_e.call(this,oe),fe.domFocus=function(){fe.dom&&fe.dom.focus()},fe.removeStartHandler=function(Te){if(Te.touches.length>1)return;fe.startPos={x:Te.touches[0].clientX,y:Te.touches[0].clientY}},fe.removeMoveHandler=function(Te){if(Te.changedTouches.length>1)return;var ze=Te.currentTarget,it=Te.changedTouches[0].clientX-fe.startPos.x,et=Te.changedTouches[0].clientY-fe.startPos.y;(ze===fe.maskDom||ze===fe.handlerDom||ze===fe.contentDom&&K(ze,Te.target,it,et))&&Te.cancelable&&Te.preventDefault()},fe.transitionEnd=function(Te){var ze=Te.target;F(ze,N,fe.transitionEnd),ze.style.transition=""},fe.onKeyDown=function(Te){if(Te.keyCode===_.a.ESC){var ze=fe.props.onClose;Te.stopPropagation(),ze&&ze(Te)}},fe.onWrapperTransitionEnd=function(Te){var ze=fe.props,it=ze.open,et=ze.afterVisibleChange;Te.target===fe.contentWrapper&&Te.propertyName.match(/transform$/)&&(fe.dom.style.transition="",!it&&fe.getCurrentDrawerSome()&&(document.body.style.overflowX="",fe.maskDom&&(fe.maskDom.style.left="",fe.maskDom.style.width="")),et&&et(!!it))},fe.openLevelTransition=function(){var Te=fe.props,ze=Te.open,it=Te.width,et=Te.height,Oe=fe.getHorizontalBoolAndPlacementName(),gt=Oe.isHorizontal,Ge=Oe.placementName,wt=fe.contentDom?fe.contentDom.getBoundingClientRect()[gt?"width":"height"]:0,xt=(gt?it:et)||wt;fe.setLevelAndScrolling(ze,Ge,xt)},fe.setLevelTransform=function(Te,ze,it,et){var Oe=fe.props,gt=Oe.placement,Ge=Oe.levelMove,wt=Oe.duration,xt=Oe.ease,Ct=Oe.showMask;fe.levelDom.forEach(function(Dt){Dt.style.transition="transform ".concat(wt," ").concat(xt),M(Dt,N,fe.transitionEnd);var Ht=Te?it:0;if(Ge){var Je=R(Ge,{target:Dt,open:Te});Ht=Te?Je[0]:Je[1]||0}var ye=typeof Ht=="number"?"".concat(Ht,"px"):Ht,ie=gt==="left"||gt==="top"?ye:"-".concat(ye);ie=Ct&>==="right"&&et?"calc(".concat(ie," + ").concat(et,"px)"):ie,Dt.style.transform=Ht?"".concat(ze,"(").concat(ie,")"):""})},fe.setLevelAndScrolling=function(Te,ze,it){var et=fe.props.onChange;if(!B){var Oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(b.a)(!0):0;fe.setLevelTransform(Te,ze,it,Oe),fe.toggleScrollingToDrawerAndBody(Oe)}et&&et(Te)},fe.toggleScrollingToDrawerAndBody=function(Te){var ze=fe.props,it=ze.getOpenCount,et=ze.getContainer,Oe=ze.showMask,gt=ze.open,Ge=et&&et(),wt=it&&it();if(Ge&&Ge.parentNode===document.body&&Oe){var xt=["touchstart"],Ct=[document.body,fe.maskDom,fe.handlerDom,fe.contentDom];gt&&document.body.style.overflow!=="hidden"?(Te&&fe.addScrollingEffect(Te),wt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Ct.forEach(function(Dt,Ht){if(!Dt)return;M(Dt,xt[Ht]||"touchmove",Ht?fe.removeMoveHandler:fe.removeStartHandler,fe.passive)})):fe.getCurrentDrawerSome()&&(wt||(document.body.style.overflow=""),document.body.style.touchAction="",Te&&fe.remScrollingEffect(Te),Ct.forEach(function(Dt,Ht){if(!Dt)return;F(Dt,xt[Ht]||"touchmove",Ht?fe.removeMoveHandler:fe.removeStartHandler,fe.passive)}))}},fe.addScrollingEffect=function(Te){var ze=fe.props,it=ze.placement,et=ze.duration,Oe=ze.ease,gt=ze.getOpenCount,Ge=ze.switchScrollingEffect,wt=gt&>();wt===1&&Ge();var xt="width ".concat(et," ").concat(Oe),Ct="transform ".concat(et," ").concat(Oe);fe.dom.style.transition="none";switch(it){case"right":fe.dom.style.transform="translateX(-".concat(Te,"px)");break;case"top":case"bottom":fe.dom.style.width="calc(100% - ".concat(Te,"px)"),fe.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){fe.dom&&(fe.dom.style.transition="".concat(Ct,",").concat(xt),fe.dom.style.width="",fe.dom.style.transform="")})},fe.remScrollingEffect=function(Te){var ze=fe.props,it=ze.placement,et=ze.duration,Oe=ze.ease,gt=ze.getOpenCount,Ge=ze.switchScrollingEffect,wt=gt&>();wt||Ge(!0),D&&(document.body.style.overflowX="hidden"),fe.dom.style.transition="none";var xt,Ct="width ".concat(et," ").concat(Oe),Dt="transform ".concat(et," ").concat(Oe);switch(it){case"left":{fe.dom.style.width="100%",Ct="width 0s ".concat(Oe," ").concat(et);break}case"right":{fe.dom.style.transform="translateX(".concat(Te,"px)"),fe.dom.style.width="100%",Ct="width 0s ".concat(Oe," ").concat(et),fe.maskDom&&(fe.maskDom.style.left="-".concat(Te,"px"),fe.maskDom.style.width="calc(100% + ".concat(Te,"px)"));break}case"top":case"bottom":{fe.dom.style.width="calc(100% + ".concat(Te,"px)"),fe.dom.style.height="100%",fe.dom.style.transform="translateZ(0)",xt="height 0s ".concat(Oe," ").concat(et);break}default:break}clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){fe.dom&&(fe.dom.style.transition="".concat(Dt,",").concat(xt?"".concat(xt,","):"").concat(Ct),fe.dom.style.transform="",fe.dom.style.width="",fe.dom.style.height="")})},fe.getCurrentDrawerSome=function(){return!Object.keys(V).some(function(Te){return V[Te]})},fe.getLevelDom=function(Te){var ze=Te.level,it=Te.getContainer;if(B)return;var et=it&&it(),Oe=et?et.parentNode:null;if(fe.levelDom=[],ze==="all"){var gt=Oe?Array.prototype.slice.call(Oe.children):[];gt.forEach(function(Ge){Ge.nodeName!=="SCRIPT"&&Ge.nodeName!=="STYLE"&&Ge.nodeName!=="LINK"&&Ge!==et&&fe.levelDom.push(Ge)})}else ze&&O(ze).forEach(function(Ge){document.querySelectorAll(Ge).forEach(function(wt){fe.levelDom.push(wt)})})},fe.getHorizontalBoolAndPlacementName=function(){var Te=fe.props.placement,ze=Te==="left"||Te==="right",it="translate".concat(ze?"X":"Y");return{isHorizontal:ze,placementName:it}},fe.state={_self:Object(x.a)(fe)},fe}return Object(u.a)(xe,[{key:"componentDidMount",value:function(){var fe=this;if(!B){var Te=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Te=!0,null}}))}catch(gt){}this.passive=Te?{passive:!1}:!1}var ze=this.props,it=ze.open,et=ze.getContainer,Oe=et&&et();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),it&&(Oe&&Oe.parentNode===document.body&&(V[this.drawerId]=it),this.openLevelTransition(),this.forceUpdate(function(){fe.domFocus()}))}},{key:"componentDidUpdate",value:function(fe){var Te=this.props,ze=Te.open,it=Te.getContainer,et=it&&it();ze!==fe.open&&(ze&&this.domFocus(),et&&et.parentNode===document.body&&(V[this.drawerId]=!!ze),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var fe=this.props,Te=fe.getOpenCount,ze=fe.open,it=fe.switchScrollingEffect,et=typeof Te=="function"&&Te();delete V[this.drawerId],ze&&(this.setLevelTransform(!1),document.body.style.touchAction=""),et||(document.body.style.overflow="",it(!0))}},{key:"render",value:function(){var fe,Te=this,ze=this.props,it=ze.className,et=ze.children,Oe=ze.style,gt=ze.width,Ge=ze.height,wt=ze.defaultOpen,xt=ze.open,Ct=ze.prefixCls,Dt=ze.placement,Ht=ze.level,Je=ze.levelMove,ye=ze.ease,ie=ze.duration,bt=ze.getContainer,qe=ze.handler,me=ze.onChange,Rt=ze.afterVisibleChange,er=ze.showMask,ct=ze.maskClosable,zt=ze.maskStyle,sr=ze.onClose,Kr=ze.onHandleClick,ar=ze.keyboard,nr=ze.getOpenCount,Lt=ze.switchScrollingEffect,st=Object(o.a)(ze,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),Qe=this.dom?xt:!1,qt=w()(Ct,(fe={},Object(y.a)(fe,"".concat(Ct,"-").concat(Dt),!0),Object(y.a)(fe,"".concat(Ct,"-open"),Qe),Object(y.a)(fe,it||"",!!it),Object(y.a)(fe,"no-mask",!er),fe)),Sr=this.getHorizontalBoolAndPlacementName(),Ar=Sr.placementName,hr=Dt==="left"||Dt==="top"?"-100%":"100%",vn=Qe?"":"".concat(Ar,"(").concat(hr,")"),Zr=qe&&e.cloneElement(qe,{onClick:function($e){qe.props.onClick&&qe.props.onClick(),Kr&&Kr($e)},ref:function($e){Te.handlerDom=$e}});return e.createElement("div",Object.assign({},st,{tabIndex:-1,className:qt,style:Oe,ref:function($e){Te.dom=$e},onKeyDown:Qe&&ar?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),er&&e.createElement("div",{className:"".concat(Ct,"-mask"),onClick:ct?sr:void 0,style:zt,ref:function($e){Te.maskDom=$e}}),e.createElement("div",{className:"".concat(Ct,"-content-wrapper"),style:{transform:vn,msTransform:vn,width:j(gt)?"".concat(gt,"px"):gt,height:j(Ge)?"".concat(Ge,"px"):Ge},ref:function($e){Te.contentWrapper=$e}},e.createElement("div",{className:"".concat(Ct,"-content"),ref:function($e){Te.contentDom=$e},onTouchStart:Qe&&er?this.removeStartHandler:void 0,onTouchMove:Qe&&er?this.removeMoveHandler:void 0},et),Zr))}}],[{key:"getDerivedStateFromProps",value:function(fe,Te){var ze=Te.prevProps,it=Te._self,et={prevProps:fe};if(ze!==void 0){var Oe=fe.placement,gt=fe.level;Oe!==ze.placement&&(it.contentDom=null),gt!==ze.level&&it.getLevelDom(fe)}return et}}]),xe}(e.Component);Y.defaultProps={switchScrollingEffect:function(){}};var J=Y;function se(ue){var _e=$();return function(){var oe=Object(v.a)(ue),fe;if(_e){var Te=Object(v.a)(this).constructor;fe=Reflect.construct(oe,arguments,Te)}else fe=oe.apply(this,arguments);return Object(p.a)(this,fe)}}function $(){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(ue){return!1}}var ae=function(ue){Object(f.a)(xe,ue);var _e=se(xe);function xe(oe){var fe;Object(l.a)(this,xe),fe=_e.call(this,oe),fe.onHandleClick=function(ze){var it=fe.props,et=it.onHandleClick,Oe=it.open;if(et&&et(ze),typeof Oe=="undefined"){var gt=fe.state.open;fe.setState({open:!gt})}},fe.onClose=function(ze){var it=fe.props,et=it.onClose,Oe=it.open;et&&et(ze),typeof Oe=="undefined"&&fe.setState({open:!1})};var Te=typeof oe.open!="undefined"?oe.open:!!oe.defaultOpen;return fe.state={open:Te},"onMaskClick"in oe&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),fe}return Object(u.a)(xe,[{key:"render",value:function(){var fe=this,Te=this.props,ze=Te.defaultOpen,it=Te.getContainer,et=Te.wrapperClassName,Oe=Te.forceRender,gt=Te.handler,Ge=Object(o.a)(Te,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),wt=this.state.open;if(!it)return e.createElement("div",{className:et,ref:function(Dt){fe.dom=Dt}},e.createElement(J,Object.assign({},Ge,{open:wt,handler:gt,getContainer:function(){return fe.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var xt=!!gt||Oe;return e.createElement(A.a,{visible:wt,forceRender:xt,getContainer:it,wrapperClassName:et},function(Ct){var Dt=Ct.visible,Ht=Ct.afterClose,Je=Object(o.a)(Ct,["visible","afterClose"]);return e.createElement(J,Object.assign({},Ge,Je,{open:Dt!==void 0?Dt:wt,afterVisibleChange:Ht!==void 0?Ht:Ge.afterVisibleChange,handler:gt,onClose:fe.onClose,onHandleClick:fe.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(fe,Te){var ze=Te.prevProps,it={prevProps:fe};return typeof ze!="undefined"&&fe.open!==ze.open&&(it.open=fe.open),it}}]),xe}(e.Component);ae.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:e.createElement("div",{className:"drawer-handle"},e.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var ge=ae,pe=ge,Ne=d("V/uB"),de=d.n(Ne),Le=d("BGR+"),Q=d("H84U"),ce=d("CWQg"),Ke=function(ue,_e){var xe={};for(var oe in ue)Object.prototype.hasOwnProperty.call(ue,oe)&&_e.indexOf(oe)<0&&(xe[oe]=ue[oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,oe=Object.getOwnPropertySymbols(ue);fe<oe.length;fe++)_e.indexOf(oe[fe])<0&&Object.prototype.propertyIsEnumerable.call(ue,oe[fe])&&(xe[oe[fe]]=ue[oe[fe]]);return xe},ee=e.createContext(null),X=Object(ce.a)("top","right","bottom","left"),G={distance:180},Z=function(ue){n()(xe,ue);var _e=s()(xe);function xe(){var oe;return m()(this,xe),oe=_e.apply(this,arguments),oe.state={push:!1},oe.push=function(){oe.props.push&&oe.setState({push:!0})},oe.pull=function(){oe.props.push&&oe.setState({push:!1})},oe.onDestroyTransitionEnd=function(){var fe=oe.getDestroyOnClose();if(!fe)return;oe.props.visible||(oe.destroyClose=!0,oe.forceUpdate())},oe.getDestroyOnClose=function(){return oe.props.destroyOnClose&&!oe.props.visible},oe.getPushDistance=function(){var fe=oe.props.push,Te;return typeof fe=="boolean"?Te=fe?G.distance:0:Te=fe.distance,parseFloat(String(Te||0))},oe.getPushTransform=function(fe){var Te=oe.getPushDistance();if(fe==="left"||fe==="right")return"translateX(".concat(fe==="left"?Te:-Te,"px)");if(fe==="top"||fe==="bottom")return"translateY(".concat(fe==="top"?Te:-Te,"px)")},oe.getRcDrawerStyle=function(){var fe=oe.props,Te=fe.zIndex,ze=fe.placement,it=fe.mask,et=fe.style,Oe=oe.state.push,gt=it?{}:oe.getOffsetStyle();return g()(g()({zIndex:Te,transform:Oe?oe.getPushTransform(ze):void 0},gt),et)},oe.renderBody=function(){var fe=oe.props,Te=fe.bodyStyle,ze=fe.drawerStyle,it=fe.prefixCls,et=fe.visible;if(oe.destroyClose&&!et)return null;oe.destroyClose=!1;var Oe={},gt=oe.getDestroyOnClose();return gt&&(Oe.opacity=0,Oe.transition="opacity .3s"),e.createElement("div",{className:"".concat(it,"-wrapper-body"),style:g()(g()({},Oe),ze),onTransitionEnd:oe.onDestroyTransitionEnd},oe.renderHeader(),e.createElement("div",{className:"".concat(it,"-body"),style:Te},oe.props.children),oe.renderFooter())},oe.renderProvider=function(fe){return oe.parentDrawer=fe,e.createElement(Q.a,null,function(Te){var ze=Te.getPopupContainer,it=Te.getPrefixCls,et=oe.props,Oe=et.prefixCls,gt=et.placement,Ge=et.className,wt=et.mask,xt=et.direction,Ct=et.visible,Dt=Ke(et,["prefixCls","placement","className","mask","direction","visible"]),Ht=it("select",Oe),Je=w()(Ge,E()({"no-mask":!wt},"".concat(Ht,"-rtl"),xt==="rtl")),ye=wt?oe.getOffsetStyle():{};return e.createElement(ee.Provider,{value:r()(oe)},e.createElement(pe,g()({handler:!1},Object(Le.default)(Dt,["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:Dt.getContainer===void 0&&ze?function(){return ze(document.body)}:Dt.getContainer},ye,{prefixCls:Ht,open:Ct,showMask:wt,placement:gt,style:oe.getRcDrawerStyle(),className:Je}),oe.renderBody()))})},oe}return c()(xe,[{key:"componentDidMount",value:function(){var fe=this.props.visible;fe&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(fe){var Te=this.props.visible;fe.visible!==Te&&this.parentDrawer&&(Te?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var fe=this.props,Te=fe.placement,ze=fe.width,it=fe.height,et=fe.visible,Oe=fe.mask;if(!et&&!Oe)return{};var gt={};return Te==="left"||Te==="right"?gt.width=ze:gt.height=it,gt}},{key:"renderHeader",value:function(){var fe=this.props,Te=fe.title,ze=fe.prefixCls,it=fe.closable,et=fe.headerStyle;if(!Te&&!it)return null;var Oe=Te?"".concat(ze,"-header"):"".concat(ze,"-header-no-title");return e.createElement("div",{className:Oe,style:et},Te&&e.createElement("div",{className:"".concat(ze,"-title")},Te),it&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var fe=this.props,Te=fe.footer,ze=fe.footerStyle,it=fe.prefixCls;if(!Te)return null;var et="".concat(it,"-footer");return e.createElement("div",{className:et,style:ze},Te)}},{key:"renderCloseIcon",value:function(){var fe=this.props,Te=fe.closable,ze=fe.closeIcon,it=ze===void 0?e.createElement(de.a,null):ze,et=fe.prefixCls,Oe=fe.onClose;return Te&&e.createElement("button",{onClick:Oe,"aria-label":"Close",className:"".concat(et,"-close"),style:{"--scroll-bar":"".concat(Object(b.a)(),"px")}},it)}},{key:"render",value:function(){return e.createElement(ee.Consumer,null,this.renderProvider)}}]),xe}(e.Component);Z.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:G};var ve=k.a=Object(Q.c)({prefixCls:"drawer"})(Z)},"/y7N":function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("6GrX"),g=d("7aKB"),S=d("Fofx"),m=d("aX7z"),h=d("+rIm");function c(l){var u=l.get("type"),f=l.getModel(u+"Style"),p;return u==="line"?(p=f.getLineStyle(),p.fill=null):u==="shadow"&&(p=f.getAreaStyle(),p.stroke=null),p}function a(l,u,f,p,v){var A=f.get("value"),y=i(A,u.axis,u.ecModel,f.get("seriesDataIndices"),{precision:f.get("label.precision"),formatter:f.get("label.formatter")}),x=f.getModel("label"),C=g.normalizeCssArray(x.get("padding")||0),w=x.getFont(),b=T.getBoundingRect(y,w),_=v.position,O=b.width+C[1]+C[3],L=b.height+C[0]+C[2],D=v.align;D==="right"&&(_[0]-=O),D==="center"&&(_[0]-=O/2);var N=v.verticalAlign;N==="bottom"&&(_[1]-=L),N==="middle"&&(_[1]-=L/2),r(_,O,L,p);var M=x.get("backgroundColor");(!M||M==="auto")&&(M=u.get("axisLine.lineStyle.color")),l.label={shape:{x:0,y:0,width:O,height:L,r:x.get("borderRadius")},position:_.slice(),style:{text:y,textFont:w,textFill:x.getTextColor(),textPosition:"inside",textPadding:C,fill:M,stroke:x.get("borderColor")||"transparent",lineWidth:x.get("borderWidth")||0,shadowBlur:x.get("shadowBlur"),shadowColor:x.get("shadowColor"),shadowOffsetX:x.get("shadowOffsetX"),shadowOffsetY:x.get("shadowOffsetY")},z2:10}}function r(l,u,f,p){var v=p.getWidth(),A=p.getHeight();l[0]=Math.min(l[0]+u,v)-u,l[1]=Math.min(l[1]+f,A)-f,l[0]=Math.max(l[0],0),l[1]=Math.max(l[1],0)}function i(l,u,f,p,v){l=u.scale.parse(l);var A=u.scale.getLabel(l,{precision:v.precision}),y=v.formatter;if(y){var x={value:m.getAxisRawValue(u,l),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};I.each(p,function(C){var w=f.getSeriesByIndex(C.seriesIndex),b=C.dataIndexInside,_=w&&w.getDataParams(b);_&&x.seriesData.push(_)}),I.isString(y)?A=y.replace("{value}",A):I.isFunction(y)&&(A=y(x))}return A}function n(l,u,f){var p=S.create();return S.rotate(p,p,f.rotation),S.translate(p,p,f.position),E.applyTransform([l.dataToCoord(u),(f.labelOffset||0)+(f.labelDirection||1)*(f.labelMargin||0)],p)}function t(l,u,f,p,v,A){var y=h.innerTextLayout(f.rotation,0,f.labelDirection);f.labelMargin=v.get("label.margin"),a(u,p,v,A,{position:n(p.axis,l,f),align:y.textAlign,verticalAlign:y.textVerticalAlign})}function s(l,u,f){return f=f||0,{x1:l[f],y1:l[1-f],x2:u[f],y2:u[1-f]}}function e(l,u,f){return f=f||0,{x:l[f],y:l[1-f],width:u[f],height:u[1-f]}}function o(l,u,f,p,v,A){return{cx:l,cy:u,r0:f,r:p,startAngle:v,endAngle:A,clockwise:!0}}k.buildElStyle=c,k.buildLabelElOption=a,k.getValueLabel=i,k.getTransformedPosition=n,k.buildCartesianSingleLabelElOption=t,k.makeLineShape=s,k.makeRectShape=e,k.makeSectorShape=o},"/zsF":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("bE4E"),g=d.n(T)},"0/Rx":function(H,k){function d(I){return{seriesType:I,reset:function(E,T){var g=T.findComponents({mainType:"legend"});if(!g||!g.length)return;var S=E.getData();S.filterSelf(function(m){for(var h=S.getName(m),c=0;c<g.length;c++)if(!g[c].isSelected(h))return!1;return!0})}}}H.exports=d},"01d+":function(H,k,d){var I=d("bYtY"),E=I.each,T=d("HF/U"),g=T.simpleLayout,S=T.simpleLayoutEdge;function m(h,c){h.eachSeriesByType("graph",function(a){var r=a.get("layout"),i=a.coordinateSystem;if(i&&i.type!=="view"){var n=a.getData(),t=[];E(i.dimensions,function(f){t=t.concat(n.mapDimension(f,!0))});for(var s=0;s<n.count();s++){for(var e=[],o=!1,l=0;l<t.length;l++){var u=n.get(t[l],s);isNaN(u)||(o=!0),e.push(u)}o?n.setItemLayout(s,i.dataToPoint(e)):n.setItemLayout(s,[NaN,NaN])}S(n.graph)}else(!r||r==="none")&&g(a)})}H.exports=m},"06DH":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("Kagy"),g=d("IUWy"),S=T.toolbox.magicType,m="__ec_magicType_stack__";function h(n){this.model=n}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:E.clone(S.title),option:{},seriesIndex:{}};var c=h.prototype;c.getIcons=function(){var n=this.model,t=n.get("icon"),s={};return E.each(n.get("type"),function(e){t[e]&&(s[e]=t[e])}),s};var a={line:function(n,t,s,e){if(n==="bar")return E.merge({id:t,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},e.get("option.line")||{},!0)},bar:function(n,t,s,e){if(n==="line")return E.merge({id:t,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},e.get("option.bar")||{},!0)},stack:function(n,t,s,e){var o=s.get("stack")===m;if(n==="line"||n==="bar")return e.setIconStatus("stack",o?"normal":"emphasis"),E.merge({id:t,stack:o?"":m},e.get("option.stack")||{},!0)}},r=[["line","bar"],["stack"]];c.onclick=function(n,t,s){var e=this.model,o=e.get("seriesIndex."+s);if(!a[s])return;var l={series:[]},u=function(v){var A=v.subType,y=v.id,x=a[s](A,y,v,e);x&&(E.defaults(x,v.option),l.series.push(x));var C=v.coordinateSystem;if(C&&C.type==="cartesian2d"&&(s==="line"||s==="bar")){var w=C.getAxesByScale("ordinal")[0];if(w){var b=w.dim,_=b+"Axis",O=n.queryComponents({mainType:_,index:v.get(name+"Index"),id:v.get(name+"Id")})[0],L=O.componentIndex;l[_]=l[_]||[];for(var D=0;D<=L;D++)l[_][L]=l[_][L]||{};l[_][L].boundaryGap=s==="bar"}}};E.each(r,function(v){E.indexOf(v,s)>=0&&E.each(v,function(A){e.setIconStatus(A,"normal")})}),e.setIconStatus(s,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var f;if(s==="stack"){var p=l.series&&l.series[0]&&l.series[0].stack===m;f=p?E.merge({stack:S.title.tiled},S.title):E.clone(S.title)}t.dispatchAction({type:"changeMagicType",currentType:s,newOption:l,newTitle:f,featureName:"magicType"})},I.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)}),g.register("magicType",h);var i=h;H.exports=i},"06Qe":function(H,k,d){var I=d("ItGF"),E="urn:schemas-microsoft-com:vml",T=typeof window=="undefined"?null:window,g=!1,S=T&&T.document;function m(a){return h(a)}var h;if(S&&!I.canvasSupported)try{!S.namespaces.zrvml&&S.namespaces.add("zrvml",E),h=function(r){return S.createElement("<zrvml:"+r+' class="zrvml">')}}catch(a){h=function(i){return S.createElement("<"+i+' xmlns="'+E+'" class="zrvml">')}}function c(){if(g||!S)return;g=!0;var a=S.styleSheets;a.length<31?S.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}k.doc=S,k.createNode=m,k.initVML=c},"09Wf":function(H,k,d){"use strict";d.d(k,"b",function(){return E}),d.d(k,"a",function(){return T});var I=d("CWQg"),E=Object(I.a)("success","processing","error","default","warning"),T=Object(I.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(H,k,d){var I=d("T4UG"),E=d("I3/A"),T=d("7aKB"),g=T.encodeHTML,S=d("Qxkt"),m=d("Tghj"),h=m.__DEV__,c=I.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,i){for(var n=r.edges||r.links,t=r.data||r.nodes,s=r.levels,e=this.levelModels={},o=0;o<s.length;o++)s[o].depth!=null&&s[o].depth>=0&&(e[s[o].depth]=new S(s[o],this,i));if(t&&n){var l=E(t,n,this,!0,u);return l.data}function u(f,p){f.wrapMethod("getItemModel",function(v,A){return v.customizeGetParent(function(y){var x=this.parentModel,C=x.getData().getItemLayout(A).depth,w=x.levelModels[C];return w||this.parentModel}),v}),p.wrapMethod("getItemModel",function(v,A){return v.customizeGetParent(function(y){var x=this.parentModel,C=x.getGraph().getEdgeByIndex(A),w=C.node1.getLayout().depth,b=x.levelModels[w];return b||this.parentModel}),v})}},setNodePosition:function(r,i){var n=this.option.data[r];n.localX=i[0],n.localY=i[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(r,i,n){if(n==="edge"){var t=this.getDataParams(r,n),s=t.data,e=s.source+" -- "+s.target;return t.value&&(e+=" : "+t.value),g(e)}else if(n==="node"){var o=this.getGraph().getNodeByIndex(r),l=o.getLayout().value,u=this.getDataParams(r,n).data.name;if(l)var e=u+" : "+l;return g(e)}return c.superCall(this,"formatTooltip",r,i)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,i){var n=c.superCall(this,"getDataParams",r,i);if(n.value==null&&i==="node"){var t=this.getGraph().getNodeByIndex(r),s=t.getLayout().value;n.value=s}return n},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=c;H.exports=a},"0HBW":function(H,k,d){var I=d("ProS"),E=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function T(g,S){S.update="updateView",I.registerAction(S,function(m,h){var c={};return h.eachComponent({mainType:"geo",query:m},function(a){a[g](m.name);var r=a.coordinateSystem;E.each(r.regions,function(i){c[i.name]=a.isSelected(i.name)||!1})}),{selected:c,name:m.name}})}T("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),T("select",{type:"geoSelect",event:"geoselected"}),T("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(H,k,d){var I=d("bYtY"),E=d("+TT/"),T=d("OELB"),g=d("IDmD"),S=864e5;function m(a,r,i){this._model=a}m.prototype={constructor:m,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=T.parseDate(a);var r=a.getFullYear(),i=a.getMonth()+1;i=i<10?"0"+i:i;var n=a.getDate();n=n<10?"0"+n:n;var t=a.getDay();return t=Math.abs((t+7-this.getFirstDayOfWeek())%7),{y:r,m:i,d:n,day:t,time:a.getTime(),formatedDate:r+"-"+i+"-"+n,date:a}},getNextNDay:function(a,r){return r=r||0,r===0?this.getDateInfo(a):(a=new Date(this.getDateInfo(a).time),a.setDate(a.getDate()+r),this.getDateInfo(a))},update:function(a,r){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 i=this._rangeInfo.weeks||1,n=["width","height"],t=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),e=this._orient==="horizontal"?[i,7]:[7,i];I.each([0,1],function(f){u(t,f)&&(s[n[f]]=t[f]*e[f])});var o={width:r.getWidth(),height:r.getHeight()},l=this._rect=E.getLayoutRect(s,o);I.each([0,1],function(f){u(t,f)||(t[f]=l[n[f]]/e[f])});function u(f,p){return f[p]!=null&&f[p]!=="auto"}this._sw=t[0],this._sh=t[1]},dataToPoint:function(a,r){I.isArray(a)&&(a=a[0]),r==null&&(r=!0);var i=this.getDateInfo(a),n=this._rangeInfo,t=i.formatedDate;if(r&&!(i.time>=n.start.time&&i.time<n.end.time+S))return[NaN,NaN];var s=i.day,e=this._getRangeInfo([n.start.time,t]).nthWeek;return this._orient==="vertical"?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]:[this._rect.x+e*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},pointToData:function(a){var r=this.pointToDate(a);return r&&r.time},dataToRect:function(a,r){var i=this.dataToPoint(a,r);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(a){var r=Math.floor((a[0]-this._rect.x)/this._sw)+1,i=Math.floor((a[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,r-1,n):this._getDateByWeeksAndDay(r,i-1,n)},convertToPixel:I.curry(h,"dataToPoint"),convertFromPixel:I.curry(h,"pointToData"),_initRangeOption:function(){var a=this._model.get("range"),r=a;if(I.isArray(r)&&r.length===1&&(r=r[0]),/^\d{4}$/.test(r)&&(a=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),n=i.date;n.setMonth(n.getMonth()+1);var t=this.getNextNDay(n,-1);a=[i.formatedDate,t.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(a=[r,r]);var s=this._getRangeInfo(a);return s.start.time>s.end.time&&a.reverse(),a},_getRangeInfo:function(a){a=[this.getDateInfo(a[0]),this.getDateInfo(a[1])];var r;a[0].time>a[1].time&&(r=!0,a.reverse());var i=Math.floor(a[1].time/S)-Math.floor(a[0].time/S)+1,n=new Date(a[0].time),t=n.getDate(),s=a[1].date.getDate();n.setDate(t+i-1);var e=n.getDate();if(e!==s)for(var o=n.getTime()-a[1].time>0?1:-1;(e=n.getDate())!==s&&(n.getTime()-a[1].time)*o>0;)i-=o,n.setDate(e-o);var l=Math.floor((i+a[0].day+6)/7),u=r?-l+1:l-1;return r&&a.reverse(),{range:[a[0].formatedDate,a[1].formatedDate],start:a[0],end:a[1],allDay:i,weeks:l,nthWeek:u,fweek:a[0].day,lweek:a[1].day}},_getDateByWeeksAndDay:function(a,r,i){var n=this._getRangeInfo(i);if(a>n.weeks||a===0&&r<n.fweek||a===n.weeks&&r>n.lweek)return!1;var t=(a-1)*7-n.fweek+r,s=new Date(n.start.time);return s.setDate(n.start.d+t),this.getDateInfo(s)}},m.dimensions=m.prototype.dimensions,m.getDimensionsInfo=m.prototype.getDimensionsInfo,m.create=function(a,r){var i=[];return a.eachComponent("calendar",function(n){var t=new m(n,a,r);i.push(t),n.coordinateSystem=t}),a.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=i[n.get("calendarIndex")||0])}),i};function h(a,r,i,n){var t=i.calendarModel,s=i.seriesModel,e=t?t.coordinateSystem:s?s.coordinateSystem:null;return e===this?e[a](n):null}g.register("calendar",m);var c=m;H.exports=c},"0JQy":function(H,k){var d="\\ud800-\\udfff",I="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",T="\\u20d0-\\u20ff",g=I+E+T,S="\\ufe0e\\ufe0f",m="["+d+"]",h="["+g+"]",c="\\ud83c[\\udffb-\\udfff]",a="(?:"+h+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",t="\\u200d",s=a+"?",e="["+S+"]?",o="(?:"+t+"(?:"+[r,i,n].join("|")+")"+e+s+")*",l=e+s+o,u="(?:"+[r+h+"?",h,i,n,m].join("|")+")",f=RegExp(c+"(?="+c+")|"+u+l,"g");function p(v){return v.match(f)||[]}H.exports=p},"0NbB":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="CaretDownOutlined";var h=k.a=E.forwardRef(m)},"0V0F":function(H,k,d){var I=d("bYtY"),E=I.createHashMap,T=I.each;function g(m){var h=E();m.eachSeries(function(c){var a=c.get("stack");if(a){var r=h.get(a)||h.set(a,[]),i=c.getData(),n={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:c};if(!n.stackedDimension||!(n.isStackedByIndex||n.stackedByDimension))return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(n)}}),h.each(S)}function S(m){T(m,function(h,c){var a=[],r=[NaN,NaN],i=[h.stackResultDimension,h.stackedOverDimension],n=h.data,t=h.isStackedByIndex,s=n.map(i,function(e,o,l){var u=n.get(h.stackedDimension,l);if(isNaN(u))return r;var f,p;t?p=n.getRawIndex(l):f=n.get(h.stackedByDimension,l);for(var v=NaN,A=c-1;A>=0;A--){var y=m[A];if(t||(p=y.data.rawIndexOf(y.stackedByDimension,f)),p>=0){var x=y.data.getByRawIndex(y.stackResultDimension,p);if(u>=0&&x>0||u<=0&&x<0){u+=x,v=x;break}}}return a[0]=u,a[1]=v,a});n.hostModel.setData(s),h.data=s})}H.exports=g},"0XgM":function(H,k,d){},"0fbx":function(H,k,d){},"0o9m":function(H,k,d){var I=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var E=d("kDyi"),T=d("bLfw");I.registerProcessor(I.PRIORITY.PROCESSOR.SERIES_FILTER,E),T.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(H,k,d){var I=d("ProS");I.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),I.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(H,k){var d=arguments[3],I=arguments[4],E=arguments[5],T=JSON.stringify;H.exports=function(g,S){for(var m,h=Object.keys(E),c=0,a=h.length;c<a;c++){var r=h[c],i=E[r].exports;if(i===g||i&&i.default===g){m=r;break}}if(!m){m=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var n={},c=0,a=h.length;c<a;c++){var r=h[c];n[r]=r}I[m]=["function(require,module,exports){"+g+"(self); }",n]}var t=Math.floor(Math.pow(16,8)*Math.random()).toString(16),s={};s[m]=m,I[t]=["function(require,module,exports){var f = require("+T(m)+");(f.default ? f.default : f)(self);}",s];var e={};o(t);function o(A){e[A]=!0;for(var y in I[A][1]){var x=I[A][1][y];e[x]||o(x)}}var l="("+d+")({"+Object.keys(e).map(function(A){return T(A)+":["+I[A][0]+","+T(I[A][1])+"]"}).join(",")+"},{},["+T(t)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,f=new Blob([l],{type:"text/javascript"});if(S&&S.bare)return f;var p=u.createObjectURL(f),v=new Worker(p);return v.objectURL=p,v}},"0s+r":function(H,k,d){var I=d("bYtY"),E=d("QBsz"),T=d("y23F"),g=d("H6uX"),S=d("YH21"),m=d("C0SR"),h="silent";function c(o,l,u){return{type:o,event:u,target:l.target,topTarget:l.topTarget,cancelBubble:!1,offsetX:u.zrX,offsetY:u.zrY,gestureEvent:u.gestureEvent,pinchX:u.pinchX,pinchY:u.pinchY,pinchScale:u.pinchScale,wheelDelta:u.zrDelta,zrByTouch:u.zrByTouch,which:u.which,stop:a}}function a(){S.stop(this.event)}function r(){}r.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(l,u,f,p){g.call(this),this.storage=l,this.painter=u,this.painterRoot=p,f=f||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,T.call(this),this.setHandlerProxy(f)};n.prototype={constructor:n,setHandlerProxy:function(l){this.proxy&&this.proxy.dispose(),l&&(I.each(i,function(u){l.on&&l.on(u,this[u],this)},this),l.handler=this),this.proxy=l},mousemove:function(l){var u=l.zrX,f=l.zrY,p=s(this,u,f),v=this._hovered,A=v.target;A&&!A.__zr&&(v=this.findHover(v.x,v.y),A=v.target);var y=this._hovered=p?{x:u,y:f}:this.findHover(u,f),x=y.target,C=this.proxy;C.setCursor&&C.setCursor(x?x.cursor:"default"),A&&x!==A&&this.dispatchToElement(v,"mouseout",l),this.dispatchToElement(y,"mousemove",l),x&&x!==A&&this.dispatchToElement(y,"mouseover",l)},mouseout:function(l){var u=l.zrEventControl,f=l.zrIsToLocalDOM;u!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",l),u!=="no_globalout"&&(!f&&this.trigger("globalout",{type:"globalout",event:l}))},resize:function(l){this._hovered={}},dispatch:function(l,u){var f=this[l];f&&f.call(this,u)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(l){var u=this.proxy;u.setCursor&&u.setCursor(l)},dispatchToElement:function(l,u,f){l=l||{};var p=l.target;if(p&&p.silent)return;for(var v="on"+u,A=c(u,l,f);p&&!(p[v]&&(A.cancelBubble=p[v].call(p,A)),p.trigger(u,A),p=p.parent,A.cancelBubble););A.cancelBubble||(this.trigger(u,A),this.painter&&this.painter.eachOtherLayer(function(y){typeof y[v]=="function"&&y[v].call(y,A),y.trigger&&y.trigger(u,A)}))},findHover:function(l,u,f){for(var p=this.storage.getDisplayList(),v={x:l,y:u},A=p.length-1;A>=0;A--){var y;if(p[A]!==f&&!p[A].ignore&&(y=t(p[A],l,u))&&(!v.topTarget&&(v.topTarget=p[A]),y!==h)){v.target=p[A];break}}return v},processGesture:function(l,u){this._gestureMgr||(this._gestureMgr=new m);var f=this._gestureMgr;u==="start"&&f.clear();var p=f.recognize(l,this.findHover(l.zrX,l.zrY,null).target,this.proxy.dom);if(u==="end"&&f.clear(),p){var v=p.type;l.gestureEvent=v,this.dispatchToElement({target:p.target},v,p.event)}}},I.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){n.prototype[o]=function(l){var u=l.zrX,f=l.zrY,p=s(this,u,f),v,A;if((o!=="mouseup"||!p)&&(v=this.findHover(u,f),A=v.target),o==="mousedown")this._downEl=A,this._downPoint=[l.zrX,l.zrY],this._upEl=A;else if(o==="mouseup")this._upEl=A;else if(o==="click"){if(this._downEl!==this._upEl||!this._downPoint||E.dist(this._downPoint,[l.zrX,l.zrY])>4)return;this._downPoint=null}this.dispatchToElement(v,o,l)}});function t(o,l,u){if(o[o.rectHover?"rectContain":"contain"](l,u)){for(var f=o,p;f;){if(f.clipPath&&!f.clipPath.contain(l,u))return!1;f.silent&&(p=!0),f=f.parent}return p?h:!0}return!1}function s(o,l,u){var f=o.painter;return l<0||l>f.getWidth()||u<0||u>f.getHeight()}I.mixin(n,g),I.mixin(n,T);var e=n;H.exports=e},"10cm":function(H,k,d){var I=d("ProS"),E=d("2B6p"),T=E.updateCenterAndZoom;d("0qV/");var g={type:"graphRoam",event:"graphRoam",update:"none"};I.registerAction(g,function(S,m){m.eachComponent({mainType:"series",query:S},function(h){var c=h.coordinateSystem,a=T(c,S);h.setCenter&&h.setCenter(a.center),h.setZoom&&h.setZoom(a.zoom)})})},"15/o":function(H,k,d){},"19Vz":function(H,k,d){(function(I){I(d("VrN/"))})(function(I){I.defineOption("placeholder","",function(c,a,r){var i=r&&r!=I.Init;if(a&&!i)c.on("blur",S),c.on("change",m),c.on("swapDoc",m),I.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){g(c)}),m(c);else if(!a&&i){c.off("blur",S),c.off("change",m),c.off("swapDoc",m),I.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),E(c);var n=c.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}a&&!c.hasFocus()&&S(c)});function E(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function T(c){E(c);var a=c.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=c.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var r=c.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),a.appendChild(r),c.display.lineSpace.insertBefore(a,c.display.lineSpace.firstChild)}function g(c){setTimeout(function(){var a=!1,r=c.getInputField();r.nodeName=="TEXTAREA"?a=!r.value:c.lineCount()==1&&(a=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),a?T(c):E(c)},20)}function S(c){h(c)&&T(c)}function m(c){var a=c.getWrapperElement(),r=h(c);a.className=a.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?T(c):E(c)}function h(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(H,k,d){var I=d("y+Vt"),E=d("T6xi"),T=I.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(S,m){E.buildPath(S,m,!1)}});H.exports=T},"1LEl":function(H,k,d){var I=d("ProS"),E=d("F9bG"),T=I.extendComponentView({type:"axisPointer",render:function(S,m,h){var c=m.getComponent("tooltip"),a=S.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";E.register("axisPointer",h,function(r,i,n){a!=="none"&&(r==="leave"||a.indexOf(r)>=0)&&n({type:"updateAxisPointer",currTrigger:r,x:i&&i.offsetX,y:i&&i.offsetY})})},remove:function(S,m){E.unregister(m.getZr(),"axisPointer"),T.superApply(this._model,"remove",arguments)},dispose:function(S,m){E.unregister("axisPointer",m),T.superApply(this._model,"dispose",arguments)}}),g=T;H.exports=g},"1MYJ":function(H,k,d){var I=d("y+Vt"),E=I.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var g=this.__dirtyPath,S=this.shape.paths,m=0;m<S.length;m++)g=g||S[m].__dirtyPath;this.__dirtyPath=g,this.__dirty=this.__dirty||g},beforeBrush:function(){this._updatePathDirty();for(var g=this.shape.paths||[],S=this.getGlobalScale(),m=0;m<g.length;m++)g[m].path||g[m].createPathProxy(),g[m].path.setScale(S[0],S[1],g[m].segmentIgnoreThreshold)},buildPath:function(g,S){for(var m=S.paths||[],h=0;h<m.length;h++)m[h].buildPath(g,m[h].shape,!0)},afterBrush:function(){for(var g=this.shape.paths||[],S=0;S<g.length;S++)g[S].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),I.prototype.getBoundingRect.call(this)}});H.exports=E},"1NG9":function(H,k,d){var I=d("y+Vt"),E=d("QBsz"),T=d("iXp4"),g=E.min,S=E.max,m=E.scaleAndAdd,h=E.copy,c=[],a=[],r=[];function i(u){return isNaN(u[0])||isNaN(u[1])}function n(u,f,p,v,A,y,x,C,w,b,_){return b==="none"||!b?s.apply(this,arguments):t.apply(this,arguments)}function t(u,f,p,v,A,y,x,C,w,b,_){for(var O=0,L=p,D=0;D<v;D++){var N=f[L];if(L>=A||L<0)break;if(i(N)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](N[0],N[1]);else if(w>0){var M=f[O],F=b==="y"?1:0,R=(N[F]-M[F])*w;h(a,M),a[F]=M[F]+R,h(r,N),r[F]=N[F]-R,u.bezierCurveTo(a[0],a[1],r[0],r[1],N[0],N[1])}else u.lineTo(N[0],N[1]);O=L,L+=y}return D}function s(u,f,p,v,A,y,x,C,w,b,_){for(var O=0,L=p,D=0;D<v;D++){var N=f[L];if(L>=A||L<0)break;if(i(N)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](N[0],N[1]),h(a,N);else if(w>0){var M=L+y,F=f[M];if(_)for(;F&&i(f[M]);)M+=y,F=f[M];var R=.5,j=f[O],F=f[M];if(!F||i(F))h(r,N);else{i(F)&&!_&&(F=N),E.sub(c,F,j);var B,K;if(b==="x"||b==="y"){var U=b==="x"?0:1;B=Math.abs(N[U]-j[U]),K=Math.abs(N[U]-F[U])}else B=E.dist(N,j),K=E.dist(N,F);R=K/(K+B),m(r,N,c,-w*(1-R))}g(a,a,C),S(a,a,x),g(r,r,C),S(r,r,x),u.bezierCurveTo(a[0],a[1],r[0],r[1],N[0],N[1]),m(a,N,c,w*R)}else u.lineTo(N[0],N[1]);O=L,L+=y}return D}function e(u,f){var p=[Infinity,Infinity],v=[-Infinity,-Infinity];if(f)for(var A=0;A<u.length;A++){var y=u[A];y[0]<p[0]&&(p[0]=y[0]),y[1]<p[1]&&(p[1]=y[1]),y[0]>v[0]&&(v[0]=y[0]),y[1]>v[1]&&(v[1]=y[1])}return{min:f?p:v,max:f?v:p}}var o=I.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:T(I.prototype.brush),buildPath:function(u,f){var p=f.points,v=0,A=p.length,y=e(p,f.smoothConstraint);if(f.connectNulls){for(;A>0&&i(p[A-1]);A--);for(;v<A&&i(p[v]);v++);}for(;v<A;)v+=n(u,p,v,A,A,1,y.min,y.max,f.smooth,f.smoothMonotone,f.connectNulls)+1}}),l=I.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:T(I.prototype.brush),buildPath:function(u,f){var p=f.points,v=f.stackedOnPoints,A=0,y=p.length,x=f.smoothMonotone,C=e(p,f.smoothConstraint),w=e(v,f.smoothConstraint);if(f.connectNulls){for(;y>0&&i(p[y-1]);y--);for(;A<y&&i(p[A]);A++);}for(;A<y;){var b=n(u,p,A,y,y,1,C.min,C.max,f.smooth,x,f.connectNulls);n(u,v,A+b-1,b,y,-1,w.min,w.max,f.stackedOnSmooth,x,f.connectNulls),A+=b+1,u.closePath()}}});k.Polyline=o,k.Polygon=l},"1RvN":function(H,k){var d=function(){this.head=null,this.tail=null,this._len=0},I=d.prototype;I.insert=function(m){var h=new E(m);return this.insertEntry(h),h},I.insertEntry=function(m){this.head?(this.tail.next=m,m.prev=this.tail,m.next=null,this.tail=m):this.head=this.tail=m,this._len++},I.remove=function(m){var h=m.prev,c=m.next;h?h.next=c:this.head=c,c?c.prev=h:this.tail=h,m.next=m.prev=null,this._len--},I.len=function(){return this._len},I.clear=function(){this.head=this.tail=null,this._len=0};var E=function(h){this.value=h,this.next,this.prev},T=function(h){this._list=new d,this._map={},this._maxSize=h||10,this._lastRemovedEntry=null},g=T.prototype;g.put=function(m,h){var c=this._list,a=this._map,r=null;if(a[m]==null){var i=c.len(),n=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var t=c.head;c.remove(t),delete a[t.key],r=t.value,this._lastRemovedEntry=t}n?n.value=h:n=new E(h),n.key=m,c.insertEntry(n),a[m]=n}return r},g.get=function(m){var h=this._map[m],c=this._list;if(h!=null)return h!==c.tail&&(c.remove(h),c.insertEntry(h)),h.value},g.clear=function(){this._list.clear(),this._map={}};var S=T;H.exports=S},"1bdT":function(H,k,d){var I=d("3gBT"),E=d("H6uX"),T=d("DN4a"),g=d("vWvF"),S=d("bYtY"),m=function(a){T.call(this,a),E.call(this,a),g.call(this,a),this.id=a.id||I()};m.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(a,r){switch(this.draggable){case"horizontal":r=0;break;case"vertical":a=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=a,i[5]+=r,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(a,r){},attrKV:function(a,r){if(a==="position"||a==="scale"||a==="origin"){if(r){var i=this[a];i||(i=this[a]=[]),i[0]=r[0],i[1]=r[1]}}else this[a]=r},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(a,r){if(typeof a=="string")this.attrKV(a,r);else if(S.isObject(a))for(var i in a)a.hasOwnProperty(i)&&this.attrKV(i,a[i]);return this.dirty(!1),this},setClipPath:function(a){var r=this.__zr;r&&a.addSelfToZr(r),this.clipPath&&this.clipPath!==a&&this.removeClipPath(),this.clipPath=a,a.__zr=r,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 r=this.animators;if(r)for(var i=0;i<r.length;i++)a.animation.addAnimator(r[i]);this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)a.animation.removeAnimator(r[i]);this.clipPath&&this.clipPath.removeSelfFromZr(a)}},S.mixin(m,g),S.mixin(m,T),S.mixin(m,E);var h=m;H.exports=h},"1dTM":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=d("GQ8N"),E=b(d("Lo0S")),T=d("VSMT"),g=d("GdRQ"),S=d("SZEN"),m=d("vewr"),h=C(d("YJ9k")),c=C(d("MZdM")),a=C(d("ItS6")),r=C(d("whVF")),i=C(d("Fv0C")),n=C(d("LCi9")),t=C(d("rwxt")),s=C(d("Mmt2")),e=C(d("iUHT")),o=C(d("mHUz")),l=C(d("P2ho")),u=d("NBmB");d("mdZa");var f=C(d("34/K")),p=C(d("hXwI")),v=C(d("SgaC")),A=C(d("3690")),y=C(d("8K/p")),x=C(d("xO64"));function C(ve){return ve&&ve.__esModule?ve:{default:ve}}function w(){if(typeof WeakMap!="function")return null;var ve=new WeakMap;return w=function(){return ve},ve}function b(ve){if(ve&&ve.__esModule)return ve;if(ve===null||_(ve)!=="object"&&typeof ve!="function")return{default:ve};var ue=w();if(ue&&ue.has(ve))return ue.get(ve);var _e={},xe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in ve)if(Object.prototype.hasOwnProperty.call(ve,oe)){var fe=xe?Object.getOwnPropertyDescriptor(ve,oe):null;fe&&(fe.get||fe.set)?Object.defineProperty(_e,oe,fe):_e[oe]=ve[oe]}return _e.default=ve,ue&&ue.set(ve,_e),_e}function _(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(_e){return typeof _e}:_=function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_(ve)}function O(ve,ue){if(!(ve instanceof ue))throw new TypeError("Cannot call a class as a function")}function L(ve,ue){for(var _e=0;_e<ue.length;_e++){var xe=ue[_e];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(ve,xe.key,xe)}}function D(ve,ue,_e){return ue&&L(ve.prototype,ue),_e&&L(ve,_e),ve}function N(ve,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(ue&&ue.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),ue&&M(ve,ue)}function M(ve,ue){return M=Object.setPrototypeOf||function(xe,oe){return xe.__proto__=oe,xe},M(ve,ue)}function F(ve){var ue=B();return function(){var xe=K(ve),oe;if(ue){var fe=K(this).constructor;oe=Reflect.construct(xe,arguments,fe)}else oe=xe.apply(this,arguments);return R(this,oe)}}function R(ve,ue){return ue&&(_(ue)==="object"||typeof ue=="function")?ue:j(ve)}function j(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}function B(){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(ve){return!1}}function K(ve){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(_e){return _e.__proto__||Object.getPrototypeOf(_e)},K(ve)}var U=3,z="rgb(40, 40, 40)",V=17,Y=50,J=19,se=75,$=50,ae=1e3,ge=50,pe=1,Ne=1<<1,de=1<<2,Le=1<<3,Q=1<<4,ce=1<<24,Ke=1<<25,ee=1<<26,X=1<<27,G=1<<28,Z=function(ve){N(_e,ve);var ue=F(_e);function _e(xe,oe,fe){var Te;if(O(this,_e),!xe)throw new Error("Must specify target");if(!oe)throw new Error("Must specify URL");Te=ue.call(this),Te._target=xe,Te._url=oe,fe=fe||{},Te._rfbCredentials=fe.credentials||{},Te._shared="shared"in fe?!!fe.shared:!0,Te._repeaterID=fe.repeaterID||"",Te._wsProtocols=fe.wsProtocols||[],Te._rfbConnectionState="",Te._rfbInitState="",Te._rfbAuthScheme=-1,Te._rfbCleanDisconnect=!0,Te._rfbVersion=0,Te._rfbMaxVersion=3.8,Te._rfbTightVNC=!1,Te._rfbVeNCryptState=0,Te._rfbXvpVer=0,Te._fbWidth=0,Te._fbHeight=0,Te._fbName="",Te._capabilities={power:!1},Te._supportsFence=!1,Te._supportsContinuousUpdates=!1,Te._enabledContinuousUpdates=!1,Te._supportsSetDesktopSize=!1,Te._screenID=0,Te._screenFlags=0,Te._qemuExtKeyEventSupported=!1,Te._clipboardText=null,Te._clipboardServerCapabilitiesActions={},Te._clipboardServerCapabilitiesFormats={},Te._sock=null,Te._display=null,Te._flushing=!1,Te._keyboard=null,Te._gestures=null,Te._disconnTimer=null,Te._resizeTimeout=null,Te._mouseMoveTimer=null,Te._decoders={},Te._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Te._mousePos={},Te._mouseButtonMask=0,Te._mouseLastMoveTime=0,Te._viewportDragging=!1,Te._viewportDragPos={},Te._viewportHasMoved=!1,Te._accumulatedWheelDeltaX=0,Te._accumulatedWheelDeltaY=0,Te._gestureLastTapTime=null,Te._gestureFirstDoubleTapEv=null,Te._gestureLastMagnitudeX=0,Te._gestureLastMagnitudeY=0,Te._eventHandlers={focusCanvas:Te._focusCanvas.bind(j(Te)),windowResize:Te._windowResize.bind(j(Te)),handleMouse:Te._handleMouse.bind(j(Te)),handleWheel:Te._handleWheel.bind(j(Te)),handleGesture:Te._handleGesture.bind(j(Te))},E.Debug(">> RFB.constructor"),Te._screen=document.createElement("div"),Te._screen.style.display="flex",Te._screen.style.width="100%",Te._screen.style.height="100%",Te._screen.style.overflow="auto",Te._screen.style.background=z,Te._canvas=document.createElement("canvas"),Te._canvas.style.margin="auto",Te._canvas.style.outline="none",Te._canvas.style.flexShrink="0",Te._canvas.width=0,Te._canvas.height=0,Te._canvas.tabIndex=-1,Te._screen.appendChild(Te._canvas),Te._cursor=new t.default,Te._cursorImage=_e.cursors.none,Te._decoders[u.encodings.encodingRaw]=new f.default,Te._decoders[u.encodings.encodingCopyRect]=new p.default,Te._decoders[u.encodings.encodingRRE]=new v.default,Te._decoders[u.encodings.encodingHextile]=new A.default,Te._decoders[u.encodings.encodingTight]=new y.default,Te._decoders[u.encodings.encodingTightPNG]=new x.default;try{Te._display=new c.default(Te._canvas)}catch(ze){throw E.Error("Display exception: "+ze),ze}return Te._display.onflush=Te._onFlush.bind(j(Te)),Te._keyboard=new i.default(Te._canvas),Te._keyboard.onkeyevent=Te._handleKeyEvent.bind(j(Te)),Te._gestures=new n.default,Te._sock=new s.default,Te._sock.on("message",function(){Te._handleMessage()}),Te._sock.on("open",function(){Te._rfbConnectionState==="connecting"&&Te._rfbInitState===""?(Te._rfbInitState="ProtocolVersion",E.Debug("Starting VNC handshake")):Te._fail("Unexpected server connection while "+Te._rfbConnectionState)}),Te._sock.on("close",function(ze){E.Debug("WebSocket on-close event");var it="";ze.code&&(it="(code: "+ze.code,ze.reason&&(it+=", reason: "+ze.reason),it+=")");switch(Te._rfbConnectionState){case"connecting":Te._fail("Connection closed "+it);break;case"connected":Te._updateConnectionState("disconnecting"),Te._updateConnectionState("disconnected");break;case"disconnecting":Te._updateConnectionState("disconnected");break;case"disconnected":Te._fail("Unexpected server disconnect when already disconnected "+it);break;default:Te._fail("Unexpected server disconnect before connecting "+it);break}Te._sock.off("close")}),Te._sock.on("error",function(ze){return E.Warn("WebSocket on-error event")}),setTimeout(Te._updateConnectionState.bind(j(Te),"connecting")),E.Debug("<< RFB.constructor"),Te.dragViewport=!1,Te.focusOnClick=!0,Te._viewOnly=!1,Te._clipViewport=!1,Te._scaleViewport=!1,Te._resizeSession=!1,Te._showDotCursor=!1,fe.showDotCursor!==void 0&&(E.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Te._showDotCursor=fe.showDotCursor),Te._qualityLevel=6,Te._compressionLevel=2,Te}return D(_e,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(oe){this._rfbCredentials=oe,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;E.Info("Sending Ctrl-Alt-Del"),this.sendKey(o.default.XK_Control_L,"ControlLeft",!0),this.sendKey(o.default.XK_Alt_L,"AltLeft",!0),this.sendKey(o.default.XK_Delete,"Delete",!0),this.sendKey(o.default.XK_Delete,"Delete",!1),this.sendKey(o.default.XK_Alt_L,"AltLeft",!1),this.sendKey(o.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(oe,fe,Te){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Te===void 0){this.sendKey(oe,fe,!0),this.sendKey(oe,fe,!1);return}var ze=l.default[fe];if(this._qemuExtKeyEventSupported&&ze)oe=oe||0,E.Info("Sending key ("+(Te?"down":"up")+"): keysym "+oe+", scancode "+ze),_e.messages.QEMUExtendedKeyEvent(this._sock,oe,Te,ze);else{if(!oe)return;E.Info("Sending keysym ("+(Te?"down":"up")+"): "+oe),_e.messages.keyEvent(this._sock,oe,Te?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(oe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[pe]&&this._clipboardServerCapabilitiesActions[X])this._clipboardText=oe,_e.messages.extendedClipboardNotify(this._sock,[pe]);else{for(var fe=new Uint8Array(oe.length),Te=0;Te<oe.length;Te++)fe[Te]=oe.charCodeAt(Te);_e.messages.clientCutText(this._sock,fe)}}},{key:"_connect",value:function(){E.Debug(">> RFB.connect"),E.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(oe){oe.name==="SyntaxError"?this._fail("Invalid host or port ("+oe+")"):this._fail("Error when opening socket ("+oe+")")}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),E.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){E.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(oe){if(!(oe.name==="NotFoundError"))throw oe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),E.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(oe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(oe){this._fbName=oe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(oe){var fe=this;window.requestAnimationFrame(function(){fe._updateClip(),fe._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var oe=this._display.clipViewport,fe=this._clipViewport;if(this._scaleViewport&&(fe=!1),oe!==fe&&(this._display.clipViewport=fe),fe){var Te=this._screenSize();this._display.viewportChangeSize(Te.w,Te.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var oe=this._screenSize();this._display.autoscale(oe.w,oe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var oe=this._screenSize();_e.messages.setDesktopSize(this._sock,Math.floor(oe.w),Math.floor(oe.h),this._screenID,this._screenFlags),E.Debug("Requested new desktop size: "+oe.w+"x"+oe.h)}},{key:"_screenSize",value:function(){var oe=this._screen.getBoundingClientRect();return{w:oe.width,h:oe.height}}},{key:"_fixScrollbars",value:function(){var oe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=oe}},{key:"_updateConnectionState",value:function(oe){var fe=this,Te=this._rfbConnectionState;if(oe===Te){E.Debug("Already in state '"+oe+"', ignoring");return}if(Te==="disconnected"){E.Error("Tried changing state of a disconnected RFB object");return}switch(oe){case"connected":if(Te!=="connecting"){E.Error("Bad transition to connected state, previous connection state: "+Te);return}break;case"disconnected":if(Te!=="disconnecting"){E.Error("Bad transition to disconnected state, previous connection state: "+Te);return}break;case"connecting":if(Te!==""){E.Error("Bad transition to connecting state, previous connection state: "+Te);return}break;case"disconnecting":if(Te!=="connected"&&Te!=="connecting"){E.Error("Bad transition to disconnecting state, previous connection state: "+Te);return}break;default:E.Error("Unknown connection state: "+oe);return}this._rfbConnectionState=oe,E.Debug("New state '"+oe+"', was '"+Te+"'."),this._disconnTimer&&oe!=="disconnecting"&&(E.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(oe){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){E.Error("Disconnection timed out."),fe._updateConnectionState("disconnected")},U*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(oe){switch(this._rfbConnectionState){case"disconnecting":E.Error("Failed when disconnecting: "+oe);break;case"connected":E.Error("Failed while connected: "+oe);break;case"connecting":E.Error("Failed when connecting: "+oe);break;default:E.Error("RFB failure: "+oe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(oe,fe){this._capabilities[oe]=fe,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){E.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":E.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(oe,fe,Te){this.sendKey(oe,fe,Te)}},{key:"_handleMouse",value:function(oe){if(oe.type==="click"&&oe.target!==this._canvas)return;if(oe.stopPropagation(),oe.preventDefault(),oe.type==="click"||oe.type==="contextmenu")return;var fe=(0,S.clientToElement)(oe.clientX,oe.clientY,this._canvas);switch(oe.type){case"mousedown":(0,m.setCapture)(this._canvas),this._handleMouseButton(fe.x,fe.y,!0,1<<oe.button);break;case"mouseup":this._handleMouseButton(fe.x,fe.y,!1,1<<oe.button);break;case"mousemove":this._handleMouseMove(fe.x,fe.y);break}}},{key:"_handleMouseButton",value:function(oe,fe,Te,ze){if(this.dragViewport)if(Te&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:oe,y:fe},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(oe,fe,ze)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(oe,fe,this._mouseButtonMask)),Te?this._mouseButtonMask|=ze:this._mouseButtonMask&=~ze,this._sendMouse(oe,fe,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(oe,fe){var Te=this;if(this._viewportDragging){var ze=this._viewportDragPos.x-oe,it=this._viewportDragPos.y-fe;(this._viewportHasMoved||Math.abs(ze)>g.dragThreshold||Math.abs(it)>g.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:oe,y:fe},this._display.viewportChangePos(ze,it));return}if(this._mousePos={x:oe,y:fe},this._mouseMoveTimer==null){var et=Date.now()-this._mouseLastMoveTime;et>V?(this._sendMouse(oe,fe,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Te._handleDelayedMouseMove()},V-et)}}},{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(oe,fe,Te){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;_e.messages.pointerEvent(this._sock,this._display.absX(oe),this._display.absY(fe),Te)}},{key:"_handleWheel",value:function(oe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;oe.stopPropagation(),oe.preventDefault();var fe=(0,S.clientToElement)(oe.clientX,oe.clientY,this._canvas),Te=oe.deltaX,ze=oe.deltaY;oe.deltaMode!==0&&(Te*=J,ze*=J),this._accumulatedWheelDeltaX+=Te,this._accumulatedWheelDeltaY+=ze,Math.abs(this._accumulatedWheelDeltaX)>=Y&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(fe.x,fe.y,!0,1<<5),this._handleMouseButton(fe.x,fe.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(fe.x,fe.y,!0,1<<6),this._handleMouseButton(fe.x,fe.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=Y&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(fe.x,fe.y,!0,1<<3),this._handleMouseButton(fe.x,fe.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(fe.x,fe.y,!0,1<<4),this._handleMouseButton(fe.x,fe.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(oe,fe,Te){this._handleMouseMove(fe,Te),this._cursor.move(oe.detail.clientX,oe.detail.clientY)}},{key:"_handleTapEvent",value:function(oe,fe){var Te=(0,S.clientToElement)(oe.detail.clientX,oe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<ae&&this._gestureFirstDoubleTapEv.detail.type===oe.detail.type){var ze=this._gestureFirstDoubleTapEv.detail.clientX-oe.detail.clientX,it=this._gestureFirstDoubleTapEv.detail.clientY-oe.detail.clientY,et=Math.hypot(ze,it);et<ge?Te=(0,S.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=oe}else this._gestureFirstDoubleTapEv=oe;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,fe),this._handleMouseButton(Te.x,Te.y,!1,fe)}},{key:"_handleGesture",value:function(oe){var fe,Te=(0,S.clientToElement)(oe.detail.clientX,oe.detail.clientY,this._canvas);switch(oe.type){case"gesturestart":switch(oe.detail.type){case"onetap":this._handleTapEvent(oe,1);break;case"twotap":this._handleTapEvent(oe,4);break;case"threetap":this._handleTapEvent(oe,2);break;case"drag":this._fakeMouseMove(oe,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,1);break;case"longpress":this._fakeMouseMove(oe,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=oe.detail.magnitudeX,this._gestureLastMagnitudeY=oe.detail.magnitudeY,this._fakeMouseMove(oe,Te.x,Te.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(oe.detail.magnitudeX,oe.detail.magnitudeY),this._fakeMouseMove(oe,Te.x,Te.y);break}break;case"gesturemove":switch(oe.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(oe,Te.x,Te.y);break;case"twodrag":for(this._fakeMouseMove(oe,Te.x,Te.y);oe.detail.magnitudeY-this._gestureLastMagnitudeY>$;)this._handleMouseButton(Te.x,Te.y,!0,8),this._handleMouseButton(Te.x,Te.y,!1,8),this._gestureLastMagnitudeY+=$;for(;oe.detail.magnitudeY-this._gestureLastMagnitudeY<-$;)this._handleMouseButton(Te.x,Te.y,!0,16),this._handleMouseButton(Te.x,Te.y,!1,16),this._gestureLastMagnitudeY-=$;for(;oe.detail.magnitudeX-this._gestureLastMagnitudeX>$;)this._handleMouseButton(Te.x,Te.y,!0,32),this._handleMouseButton(Te.x,Te.y,!1,32),this._gestureLastMagnitudeX+=$;for(;oe.detail.magnitudeX-this._gestureLastMagnitudeX<-$;)this._handleMouseButton(Te.x,Te.y,!0,64),this._handleMouseButton(Te.x,Te.y,!1,64),this._gestureLastMagnitudeX-=$;break;case"pinch":if(this._fakeMouseMove(oe,Te.x,Te.y),fe=Math.hypot(oe.detail.magnitudeX,oe.detail.magnitudeY),Math.abs(fe-this._gestureLastMagnitudeX)>se){for(this._handleKeyEvent(o.default.XK_Control_L,"ControlLeft",!0);fe-this._gestureLastMagnitudeX>se;)this._handleMouseButton(Te.x,Te.y,!0,8),this._handleMouseButton(Te.x,Te.y,!1,8),this._gestureLastMagnitudeX+=se;for(;fe-this._gestureLastMagnitudeX<-se;)this._handleMouseButton(Te.x,Te.y,!0,16),this._handleMouseButton(Te.x,Te.y,!1,16),this._gestureLastMagnitudeX-=se}this._handleKeyEvent(o.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(oe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(oe,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!1,1);break;case"longpress":this._fakeMouseMove(oe,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var oe=this._sock.rQshiftStr(12).substr(4,7);E.Info("Server ProtocolVersion: "+oe);var fe=0;switch(oe){case"000.000":fe=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 "+oe)}if(fe){for(var Te="ID:"+this._repeaterID;Te.length<250;)Te+="\0";return this._sock.sendString(Te),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var ze="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+ze+`
|
|
|
`),E.Debug("Sent ProtocolVersion: "+ze),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function oe(ze,it){for(var et=0;et<it.length;et++)if(it[et]===ze)return!0;return!1}if(this._rfbVersion>=3.7){var fe=this._sock.rQshift8();if(this._sock.rQwait("security type",fe,1))return!1;if(fe===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Te=this._sock.rQshiftBytes(fe);if(E.Debug("Server security types: "+Te),oe(1,Te))this._rfbAuthScheme=1;else if(oe(22,Te))this._rfbAuthScheme=22;else if(oe(16,Te))this._rfbAuthScheme=16;else if(oe(2,Te))this._rfbAuthScheme=2;else if(oe(19,Te))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Te+")");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",E.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var oe=this._sock.rQshift32(),fe="";if(oe>0){if(this._sock.rQwait("reason",oe,4))return!1;fe=this._sock.rQshiftStr(oe)}return fe!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:fe}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+fe+")")):(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 oe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(oe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var oe=this._sock.rQshift8(),fe=this._sock.rQshift8();if(!(oe==0&&fe==2))return this._fail("Unsupported VeNCrypt version "+oe+"."+fe);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Te=this._sock.rQshift8();if(Te!=0)return this._fail("VeNCrypt failure "+Te);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var ze=this._sock.rQshift8();if(ze<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=ze,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var it=[],et=0;et<this._rfbVeNCryptSubtypesLength;et++)it.push(this._sock.rQshift32());if(it.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 Oe=(0,T.encodeUTF8)(this._rfbCredentials.username),gt=(0,T.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Oe.length]),this._sock.send([0,0,0,gt.length]),this._sock.sendString(Oe),this._sock.sendString(gt),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 oe=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),fe=_e.genDES(this._rfbCredentials.password,oe);return this._sock.send(fe),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(oe){for(var fe={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Te={},ze=0;ze<oe;ze++){var it=this._sock.rQshift32(),et=this._sock.rQshiftStr(4),Oe=this._sock.rQshiftStr(8);Te[it]={vendor:et,signature:Oe}}return E.Debug("Server Tight tunnel types: "+Te),Te[1]&&Te[1].vendor==="SICR"&&Te[1].signature==="SCHANNEL"&&(E.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Te[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Te[0]?Te[0].vendor!=fe[0].vendor||Te[0].signature!=fe[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(E.Debug("Selected tunnel type: "+fe[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 oe=this._sock.rQshift32();if(oe>0&&this._sock.rQwait("tunnel capabilities",16*oe,4))return!1;if(this._rfbTightVNC=!0,oe>0)return this._negotiateTightTunnels(oe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var fe=this._sock.rQshift32();if(fe===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*fe,4))return!1;for(var Te={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},ze=[],it=0;it<fe;it++){this._sock.rQshift32();var et=this._sock.rQshiftStr(12);ze.push(et)}E.Debug("Server Tight authentication types: "+ze);for(var Oe in Te)if(ze.indexOf(Oe)!=-1){this._sock.send([0,0,0,Te[Oe]]),E.Debug("Selected authentication type: "+Oe);switch(Oe){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: "+Oe+")")}}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 oe=this._sock.rQshift32();return oe===0?(this._rfbInitState="ClientInitialisation",E.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=oe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:oe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var oe=this._sock.rQshift16(),fe=this._sock.rQshift16(),Te=this._sock.rQshift8(),ze=this._sock.rQshift8(),it=this._sock.rQshift8(),et=this._sock.rQshift8(),Oe=this._sock.rQshift16(),gt=this._sock.rQshift16(),Ge=this._sock.rQshift16(),wt=this._sock.rQshift8(),xt=this._sock.rQshift8(),Ct=this._sock.rQshift8();this._sock.rQskipBytes(3);var Dt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Dt,24))return!1;var Ht=this._sock.rQshiftStr(Dt);if(Ht=(0,T.decodeUTF8)(Ht,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Dt))return!1;var Je=this._sock.rQshift16(),ye=this._sock.rQshift16(),ie=this._sock.rQshift16();this._sock.rQskipBytes(2);var bt=(Je+ye+ie)*16;if(this._sock.rQwait("TightVNC extended server init header",bt,32+Dt))return!1;this._sock.rQskipBytes(16*Je),this._sock.rQskipBytes(16*ye),this._sock.rQskipBytes(16*ie)}return E.Info("Screen: "+oe+"x"+fe+", bpp: "+Te+", depth: "+ze+", bigEndian: "+it+", trueColor: "+et+", redMax: "+Oe+", greenMax: "+gt+", blueMax: "+Ge+", redShift: "+wt+", greenShift: "+xt+", blueShift: "+Ct),this._setDesktopName(Ht),this._resize(oe,fe),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(E.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),_e.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),_e.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var oe=[];oe.push(u.encodings.encodingCopyRect),this._fbDepth==24&&(oe.push(u.encodings.encodingTight),oe.push(u.encodings.encodingTightPNG),oe.push(u.encodings.encodingHextile),oe.push(u.encodings.encodingRRE)),oe.push(u.encodings.encodingRaw),oe.push(u.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),oe.push(u.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),oe.push(u.encodings.pseudoEncodingDesktopSize),oe.push(u.encodings.pseudoEncodingLastRect),oe.push(u.encodings.pseudoEncodingQEMUExtendedKeyEvent),oe.push(u.encodings.pseudoEncodingExtendedDesktopSize),oe.push(u.encodings.pseudoEncodingXvp),oe.push(u.encodings.pseudoEncodingFence),oe.push(u.encodings.pseudoEncodingContinuousUpdates),oe.push(u.encodings.pseudoEncodingDesktopName),oe.push(u.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(oe.push(u.encodings.pseudoEncodingVMwareCursor),oe.push(u.encodings.pseudoEncodingCursor)),_e.messages.clientEncodings(this._sock,oe)}},{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 E.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(E.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var oe=this._sock.rQshift32();if(oe=(0,I.toSigned32bit)(oe),this._sock.rQwait("ServerCutText content",Math.abs(oe),8))return!1;if(oe>=0){var fe=this._sock.rQshiftStr(oe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:fe}}))}else{oe=Math.abs(oe);var Te=this._sock.rQshift32(),ze=Te&65535,it=Te&4278190080,et=!!(it&ce);if(et){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Oe=0;Oe<=15;Oe++){var gt=1<<Oe;ze>&&(this._clipboardServerCapabilitiesFormats[gt]=!0,this._sock.rQshift32())}for(var Ge=24;Ge<=31;Ge++){var wt=1<<Ge;this._clipboardServerCapabilitiesActions[wt]=!!(it&wt)}var xt=[ce,Ke,ee,X,G];_e.messages.extendedClipboardCaps(this._sock,xt,{extendedClipboardFormatText:0})}else if(it===Ke){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[G]&&(ze&pe&&_e.messages.extendedClipboardProvide(this._sock,[pe],[this._clipboardText]))}else if(it===ee){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[X]&&(this._clipboardText!=null?_e.messages.extendedClipboardNotify(this._sock,[pe]):_e.messages.extendedClipboardNotify(this._sock,[]))}else if(it===X){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Ke]&&(ze&pe&&_e.messages.extendedClipboardRequest(this._sock,[pe]))}else if(it===G){if(this._viewOnly)return!0;if(!(ze&pe))return!0;this._clipboardText=null;var Ct=this._sock.rQshiftBytes(oe-4),Dt=new a.default,Ht=null;Dt.setInput(Ct);for(var Je=0;Je<=15;Je++){var ye=1<<Je;if(ze&ye){var ie=0,bt=Dt.inflate(4);ie|=bt[0]<<24,ie|=bt[1]<<16,ie|=bt[2]<<8,ie|=bt[3];var qe=Dt.inflate(ie);ye===pe&&(Ht=qe)}}if(Dt.setInput(null),Ht!==null){for(var me="",Rt=0;Rt<Ht.length;Rt++)me+=String.fromCharCode(Ht[Rt]);Ht=me,Ht=(0,T.decodeUTF8)(Ht),Ht.length>0&&Ht.charAt(Ht.length-1)==="\0"&&(Ht=Ht.slice(0,-1)),Ht=Ht.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Ht}}))}}else return this._fail("Unexpected action in extended clipboard message: "+it)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var oe=this._sock.rQshift32(),fe=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",fe,9))return!1;fe>64&&(E.Warn("Bad payload length ("+fe+") in fence response"),fe=64);var Te=this._sock.rQshiftStr(fe);return this._supportsFence=!0,oe&1<<31?(oe&=1<<0|1<<1,_e.messages.clientFence(this._sock,oe,Te),!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 oe=this._sock.rQshift8(),fe=this._sock.rQshift8();switch(fe){case 0:E.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=oe,E.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+fe+")");break}return!0}},{key:"_normalMsg",value:function(){var oe;this._FBU.rects>0?oe=0:oe=this._sock.rQshift8();var fe,Te;switch(oe){case 0:return Te=this._framebufferUpdate(),Te&&!this._enabledContinuousUpdates&&_e.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Te;case 1:return this._handleSetColourMapMsg();case 2:return E.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return fe=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,fe&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),E.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+oe+")"),E.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 oe=this._sock.rQshiftBytes(12);this._FBU.x=(oe[0]<<8)+oe[1],this._FBU.y=(oe[2]<<8)+oe[3],this._FBU.width=(oe[4]<<8)+oe[5],this._FBU.height=(oe[6]<<8)+oe[7],this._FBU.encoding=parseInt((oe[8]<<24)+(oe[9]<<16)+(oe[10]<<8)+oe[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 u.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case u.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case u.encodings.pseudoEncodingCursor:return this._handleCursor();case u.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var oe=document.createEvent("keyboardEvent");oe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(fe){}return!0;case u.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case u.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case u.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var oe=this._FBU.x,fe=this._FBU.y,Te=this._FBU.width,ze=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var it=this._sock.rQshift8();this._sock.rQshift8();var et,Oe=4;if(it==0){var gt=4294967040|0;if(et=new Array(Te*ze*Oe),this._sock.rQwait("VMware cursor classic encoding",Te*ze*Oe*2,2))return!1;for(var Ge=new Array(Te*ze),wt=0;wt<Te*ze;wt++)Ge[wt]=this._sock.rQshift32();for(var xt=new Array(Te*ze),Ct=0;Ct<Te*ze;Ct++)xt[Ct]=this._sock.rQshift32();for(var Dt=0;Dt<Te*ze;Dt++)if(Ge[Dt]==0){var Ht=xt[Dt],Je=Ht>>8&255,ye=Ht>>16&255,ie=Ht>>24&255;et[Dt*Oe]=Je,et[Dt*Oe+1]=ye,et[Dt*Oe+2]=ie,et[Dt*Oe+3]=255}else(Ge[Dt]>)==gt?xt[Dt]==0?(et[Dt*Oe]=0,et[Dt*Oe+1]=0,et[Dt*Oe+2]=0,et[Dt*Oe+3]=0):((xt[Dt]>)==gt,et[Dt*Oe]=0,et[Dt*Oe+1]=0,et[Dt*Oe+2]=0,et[Dt*Oe+3]=255):(et[Dt*Oe]=0,et[Dt*Oe+1]=0,et[Dt*Oe+2]=0,et[Dt*Oe+3]=255)}else if(it==1){if(this._sock.rQwait("VMware cursor alpha encoding",Te*ze*4,2))return!1;et=new Array(Te*ze*Oe);for(var bt=0;bt<Te*ze;bt++){var qe=this._sock.rQshift32();et[bt*4]=qe>>24&255,et[bt*4+1]=qe>>16&255,et[bt*4+2]=qe>>8&255,et[bt*4+3]=qe&255}}else return E.Warn("The given cursor type is not supported: "+it+" given."),!1;return this._updateCursor(et,oe,fe,Te,ze),!0}},{key:"_handleCursor",value:function(){var oe=this._FBU.x,fe=this._FBU.y,Te=this._FBU.width,ze=this._FBU.height,it=Te*ze*4,et=Math.ceil(Te/8)*ze,Oe=it+et;if(this._sock.rQwait("cursor encoding",Oe))return!1;for(var gt=this._sock.rQshiftBytes(it),Ge=this._sock.rQshiftBytes(et),wt=new Uint8Array(Te*ze*4),xt=0,Ct=0;Ct<ze;Ct++)for(var Dt=0;Dt<Te;Dt++){var Ht=Ct*Math.ceil(Te/8)+Math.floor(Dt/8),Je=Ge[Ht]<<Dt%8&128?255:0;wt[xt]=gt[xt+2],wt[xt+1]=gt[xt+1],wt[xt+2]=gt[xt],wt[xt+3]=Je,xt+=4}return this._updateCursor(wt,oe,fe,Te,ze),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var oe=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",oe,4))return!1;var fe=this._sock.rQshiftStr(oe);return fe=(0,T.decodeUTF8)(fe,!0),this._setDesktopName(fe),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var oe=this._sock.rQpeek8(),fe=4+oe*16;if(this._sock.rQwait("ExtendedDesktopSize",fe))return!1;var Te=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Te&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var ze=0;ze<oe;ze+=1)ze===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 it="";switch(this._FBU.y){case 1:it="Resize is administratively prohibited";break;case 2:it="Out of resources";break;case 3:it="Invalid screen layout";break;default:it="Unknown reason";break}E.Warn("Server did not accept the resize request: "+it)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var oe=this._decoders[this._FBU.encoding];if(!oe)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return oe.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(fe){return this._fail("Error decoding rect: "+fe),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;_e.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(oe,fe){this._fbWidth=oe,this._fbHeight=fe,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(oe,fe){if(this._rfbXvpVer<oe)return;E.Info("Sending XVP operation "+fe+" (version "+oe+")"),_e.messages.xvpOp(this._sock,oe,fe)}},{key:"_updateCursor",value:function(oe,fe,Te,ze,it){this._cursorImage={rgbaPixels:oe,hotx:fe,hoty:Te,w:ze,h:it},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var oe=3;oe<this._cursorImage.rgbaPixels.length;oe+=4)if(this._cursorImage.rgbaPixels[oe])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var oe=this._shouldShowDotCursor()?_e.cursors.dot:this._cursorImage;this._cursor.change(oe.rgbaPixels,oe.hotx,oe.hoty,oe.w,oe.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(oe){this._viewOnly=oe,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(oe?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(oe){E.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(oe){this._clipViewport=oe,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(oe){this._scaleViewport=oe,oe&&this._clipViewport&&this._updateClip(),this._updateScale(),!oe&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(oe){this._resizeSession=oe,oe&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(oe){this._showDotCursor=oe,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(oe){this._screen.style.background=oe}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(oe){if(!Number.isInteger(oe)||oe<0||oe>9){E.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===oe)return;this._qualityLevel=oe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(oe){if(!Number.isInteger(oe)||oe<0||oe>9){E.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===oe)return;this._compressionLevel=oe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(oe,fe){var Te=oe.split("").map(function(ze){return ze.charCodeAt(0)});return new e.default(Te).encrypt(fe)}}]),_e}(h.default);k.default=Z,Z.messages={keyEvent:function(ue,_e,xe){var oe=ue._sQ,fe=ue._sQlen;oe[fe]=4,oe[fe+1]=xe,oe[fe+2]=0,oe[fe+3]=0,oe[fe+4]=_e>>24,oe[fe+5]=_e>>16,oe[fe+6]=_e>>8,oe[fe+7]=_e,ue._sQlen+=8,ue.flush()},QEMUExtendedKeyEvent:function(ue,_e,xe,oe){function fe(et){var Oe=oe>>8,gt=oe&255;return Oe===224&><127?gt|128:et}var Te=ue._sQ,ze=ue._sQlen;Te[ze]=255,Te[ze+1]=0,Te[ze+2]=xe>>8,Te[ze+3]=xe,Te[ze+4]=_e>>24,Te[ze+5]=_e>>16,Te[ze+6]=_e>>8,Te[ze+7]=_e;var it=fe(oe);Te[ze+8]=it>>24,Te[ze+9]=it>>16,Te[ze+10]=it>>8,Te[ze+11]=it,ue._sQlen+=12,ue.flush()},pointerEvent:function(ue,_e,xe,oe){var fe=ue._sQ,Te=ue._sQlen;fe[Te]=5,fe[Te+1]=oe,fe[Te+2]=_e>>8,fe[Te+3]=_e,fe[Te+4]=xe>>8,fe[Te+5]=xe,ue._sQlen+=6,ue.flush()},_buildExtendedClipboardFlags:function(ue,_e){for(var xe=new Uint8Array(4),oe=0,fe=0,Te=0;Te<ue.length;Te++)fe|=ue[Te];for(var ze=0;ze<_e.length;ze++)oe|=_e[ze];return xe[0]=fe>>24,xe[1]=0,xe[2]=0,xe[3]=oe,xe},extendedClipboardProvide:function(ue,_e,xe){for(var oe=new r.default,fe=[],Te=0;Te<_e.length;Te++){if(_e[Te]!=pe)throw new Error("Unsupported extended clipboard format for Provide message.");xe[Te]=xe[Te].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var ze=(0,T.encodeUTF8)(xe[Te]+"\0");fe.push(ze.length>>24&255,ze.length>>16&255,ze.length>>8&255,ze.length&255);for(var it=0;it<ze.length;it++)fe.push(ze.charCodeAt(it))}var et=oe.deflate(new Uint8Array(fe)),Oe=new Uint8Array(4+et.length);Oe.set(Z.messages._buildExtendedClipboardFlags([G],_e)),Oe.set(et,4),Z.messages.clientCutText(ue,Oe,!0)},extendedClipboardNotify:function(ue,_e){var xe=Z.messages._buildExtendedClipboardFlags([X],_e);Z.messages.clientCutText(ue,xe,!0)},extendedClipboardRequest:function(ue,_e){var xe=Z.messages._buildExtendedClipboardFlags([Ke],_e);Z.messages.clientCutText(ue,xe,!0)},extendedClipboardCaps:function(ue,_e,xe){var oe=Object.keys(xe),fe=new Uint8Array(4+4*oe.length);oe.map(function(it){return parseInt(it)}),oe.sort(function(it,et){return it-et}),fe.set(Z.messages._buildExtendedClipboardFlags(_e,[]));for(var Te=4,ze=0;ze<oe.length;ze++)fe[Te]=xe[oe[ze]]>>24,fe[Te+1]=xe[oe[ze]]>>16,fe[Te+2]=xe[oe[ze]]>>8,fe[Te+3]=xe[oe[ze]]>>0,Te+=4,fe[3]|=1<<oe[ze];Z.messages.clientCutText(ue,fe,!0)},clientCutText:function(ue,_e){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=ue._sQ,fe=ue._sQlen;oe[fe]=6,oe[fe+1]=0,oe[fe+2]=0,oe[fe+3]=0;var Te;xe?Te=(0,I.toUnsigned32bit)(-_e.length):Te=_e.length,oe[fe+4]=Te>>24,oe[fe+5]=Te>>16,oe[fe+6]=Te>>8,oe[fe+7]=Te,ue._sQlen+=8;for(var ze=0,it=_e.length;it>0;){for(var et=Math.min(it,ue._sQbufferSize-ue._sQlen),Oe=0;Oe<et;Oe++)oe[ue._sQlen+Oe]=_e[ze+Oe];ue._sQlen+=et,ue.flush(),it-=et,ze+=et}},setDesktopSize:function(ue,_e,xe,oe,fe){var Te=ue._sQ,ze=ue._sQlen;Te[ze]=251,Te[ze+1]=0,Te[ze+2]=_e>>8,Te[ze+3]=_e,Te[ze+4]=xe>>8,Te[ze+5]=xe,Te[ze+6]=1,Te[ze+7]=0,Te[ze+8]=oe>>24,Te[ze+9]=oe>>16,Te[ze+10]=oe>>8,Te[ze+11]=oe,Te[ze+12]=0,Te[ze+13]=0,Te[ze+14]=0,Te[ze+15]=0,Te[ze+16]=_e>>8,Te[ze+17]=_e,Te[ze+18]=xe>>8,Te[ze+19]=xe,Te[ze+20]=fe>>24,Te[ze+21]=fe>>16,Te[ze+22]=fe>>8,Te[ze+23]=fe,ue._sQlen+=24,ue.flush()},clientFence:function(ue,_e,xe){var oe=ue._sQ,fe=ue._sQlen;oe[fe]=248,oe[fe+1]=0,oe[fe+2]=0,oe[fe+3]=0,oe[fe+4]=_e>>24,oe[fe+5]=_e>>16,oe[fe+6]=_e>>8,oe[fe+7]=_e;var Te=xe.length;oe[fe+8]=Te;for(var ze=0;ze<Te;ze++)oe[fe+9+ze]=xe.charCodeAt(ze);ue._sQlen+=9+Te,ue.flush()},enableContinuousUpdates:function(ue,_e,xe,oe,fe,Te){var ze=ue._sQ,it=ue._sQlen;ze[it]=150,ze[it+1]=_e,ze[it+2]=xe>>8,ze[it+3]=xe,ze[it+4]=oe>>8,ze[it+5]=oe,ze[it+6]=fe>>8,ze[it+7]=fe,ze[it+8]=Te>>8,ze[it+9]=Te,ue._sQlen+=10,ue.flush()},pixelFormat:function(ue,_e,xe){var oe=ue._sQ,fe=ue._sQlen,Te;_e>16?Te=32:_e>8?Te=16:Te=8;var ze=Math.floor(_e/3);oe[fe]=0,oe[fe+1]=0,oe[fe+2]=0,oe[fe+3]=0,oe[fe+4]=Te,oe[fe+5]=_e,oe[fe+6]=0,oe[fe+7]=xe?1:0,oe[fe+8]=0,oe[fe+9]=(1<<ze)-1,oe[fe+10]=0,oe[fe+11]=(1<<ze)-1,oe[fe+12]=0,oe[fe+13]=(1<<ze)-1,oe[fe+14]=ze*2,oe[fe+15]=ze*1,oe[fe+16]=ze*0,oe[fe+17]=0,oe[fe+18]=0,oe[fe+19]=0,ue._sQlen+=20,ue.flush()},clientEncodings:function(ue,_e){var xe=ue._sQ,oe=ue._sQlen;xe[oe]=2,xe[oe+1]=0,xe[oe+2]=_e.length>>8,xe[oe+3]=_e.length;for(var fe=oe+4,Te=0;Te<_e.length;Te++){var ze=_e[Te];xe[fe]=ze>>24,xe[fe+1]=ze>>16,xe[fe+2]=ze>>8,xe[fe+3]=ze,fe+=4}ue._sQlen+=fe-oe,ue.flush()},fbUpdateRequest:function(ue,_e,xe,oe,fe,Te){var ze=ue._sQ,it=ue._sQlen;typeof xe=="undefined"&&(xe=0),typeof oe=="undefined"&&(oe=0),ze[it]=3,ze[it+1]=_e?1:0,ze[it+2]=xe>>8&255,ze[it+3]=xe&255,ze[it+4]=oe>>8&255,ze[it+5]=oe&255,ze[it+6]=fe>>8&255,ze[it+7]=fe&255,ze[it+8]=Te>>8&255,ze[it+9]=Te&255,ue._sQlen+=10,ue.flush()},xvpOp:function(ue,_e,xe){var oe=ue._sQ,fe=ue._sQlen;oe[fe]=250,oe[fe+1]=0,oe[fe+2]=_e,oe[fe+3]=xe,ue._sQlen+=4,ue.flush()}},Z.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(H,k,d){(function(I){I(d("VrN/"))})(function(I){"use strict";var E={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},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(g,S){var m=g.indentUnit,h={},c=S.htmlMode?E:T;for(var a in c)h[a]=c[a];for(var a in S)h[a]=S[a];var r,i;function n(O,L){function D(F){return L.tokenize=F,F(O,L)}var N=O.next();if(N=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?D(e("atom","]]>")):null:O.match("--")?D(e("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),D(o(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),L.tokenize=e("meta","?>"),"meta"):(r=O.eat("/")?"closeTag":"openTag",L.tokenize=t,"tag bracket");if(N=="&"){var M;return O.eat("#")?O.eat("x")?M=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):M=O.eatWhile(/[\d]/)&&O.eat(";"):M=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),M?"atom":"error"}else return O.eatWhile(/[^&<]/),null}n.isInText=!0;function t(O,L){var D=O.next();if(D==">"||D=="/"&&O.eat(">"))return L.tokenize=n,r=D==">"?"endTag":"selfcloseTag","tag bracket";if(D=="=")return r="equals",null;if(D=="<"){L.tokenize=n,L.state=p,L.tagName=L.tagStart=null;var N=L.tokenize(O,L);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(D)?(L.tokenize=s(D),L.stringStartCol=O.column(),L.tokenize(O,L)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(O){var L=function(N,M){for(;!N.eol();)if(N.next()==O){M.tokenize=t;break}return"string"};return L.isInAttribute=!0,L}function e(O,L){return function(D,N){for(;!D.eol();){if(D.match(L)){N.tokenize=n;break}D.next()}return O}}function o(O){return function(L,D){for(var N;(N=L.next())!=null;){if(N=="<")return D.tokenize=o(O+1),D.tokenize(L,D);if(N==">")if(O==1){D.tokenize=n;break}else return D.tokenize=o(O-1),D.tokenize(L,D)}return"meta"}}function l(O,L,D){this.prev=O.context,this.tagName=L,this.indent=O.indented,this.startOfLine=D,(h.doNotIndent.hasOwnProperty(L)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function u(O){O.context&&(O.context=O.context.prev)}function f(O,L){for(var D;;){if(!O.context)return;if(D=O.context.tagName,!h.contextGrabbers.hasOwnProperty(D)||!h.contextGrabbers[D].hasOwnProperty(L))return;u(O)}}function p(O,L,D){return O=="openTag"?(D.tagStart=L.column(),v):O=="closeTag"?A:p}function v(O,L,D){return O=="word"?(D.tagName=L.current(),i="tag",C):h.allowMissingTagName&&O=="endTag"?(i="tag bracket",C(O,L,D)):(i="error",v)}function A(O,L,D){if(O=="word"){var N=L.current();return D.context&&D.context.tagName!=N&&h.implicitlyClosed.hasOwnProperty(D.context.tagName)&&u(D),D.context&&D.context.tagName==N||h.matchClosing===!1?(i="tag",y):(i="tag error",x)}else return h.allowMissingTagName&&O=="endTag"?(i="tag bracket",y(O,L,D)):(i="error",x)}function y(O,L,D){return O!="endTag"?(i="error",y):(u(D),p)}function x(O,L,D){return i="error",y(O,L,D)}function C(O,L,D){if(O=="word")return i="attribute",w;if(O=="endTag"||O=="selfcloseTag"){var N=D.tagName,M=D.tagStart;return D.tagName=D.tagStart=null,O=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(N)?f(D,N):(f(D,N),D.context=new l(D,N,M==D.indented)),p}return i="error",C}function w(O,L,D){return O=="equals"?b:(h.allowMissing||(i="error"),C(O,L,D))}function b(O,L,D){return O=="string"?_:O=="word"&&h.allowUnquoted?(i="string",C):(i="error",C(O,L,D))}function _(O,L,D){return O=="string"?_:C(O,L,D)}return{startState:function(L){var D={tokenize:n,state:p,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(D.baseIndent=L),D},token:function(L,D){if(!D.tagName&&L.sol()&&(D.indented=L.indentation()),L.eatSpace())return null;r=null;var N=D.tokenize(L,D);return(N||r)&&N!="comment"&&(i=null,D.state=D.state(r||N,L,D),i&&(N=i=="error"?N+" error":i)),N},indent:function(L,D,N){var M=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+m;if(M&&M.noIndent)return I.Pass;if(L.tokenize!=t&&L.tokenize!=n)return N?N.match(/^(\s*)/)[0].length:0;if(L.tagName)return h.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+m*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var F=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(F&&F[1])for(;M;)if(M.tagName==F[2]){M=M.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M.tagName))M=M.prev;else break;else if(F)for(;M;){var R=h.contextGrabbers[M.tagName];if(R&&R.hasOwnProperty(F[2]))M=M.prev;else break}for(;M&&M.prev&&!M.startOfLine;)M=M.prev;return M?M.indent+m:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(L){L.state==b&&(L.state=C)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var D=[],N=L.context;N;N=N.prev)N.tagName&&D.push(N.tagName);return D.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1n7x":function(H,k,d){(function(I,E){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(g,S){H.exports=S(d("dtIV"),d("wOnQ"))})(self,function(T,g){return function(){var S={"./src/plugin/hyperlinks.js":function(r,i,n){"use strict";n.r(i);var t=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),s=n.n(t),e=n("./node_modules/core-js/modules/es.string.link.js"),o=n.n(e),l=n("./src/worker.js"),u=n("./src/utils.js"),f=[],p={toContainer:l.default.prototype.toContainer,toPdf:l.default.prototype.toPdf};l.default.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){if(this.opt.enableLinks){var y=this.prop.container,x=y.querySelectorAll("a"),C=(0,u.unitConvert)(y.getBoundingClientRect(),this.prop.pageSize.k);f=[],Array.prototype.forEach.call(x,function(w){for(var b=w.getClientRects(),_=0;_<b.length;_++){var O=(0,u.unitConvert)(b[_],this.prop.pageSize.k);O.left-=C.left,O.top-=C.top;var L=Math.floor(O.top/this.prop.pageSize.inner.height)+1,D=this.opt.margin[0]+O.top%this.prop.pageSize.inner.height,N=this.opt.margin[1]+O.left;f.push({page:L,top:D,left:N,clientRect:O,link:w})}},this)}})},l.default.prototype.toPdf=function(){return p.toPdf.call(this).then(function(){if(this.opt.enableLinks){f.forEach(function(x){this.prop.pdf.setPage(x.page),this.prop.pdf.link(x.left,x.top,x.clientRect.width,x.clientRect.height,{url:x.link.href})},this);var y=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(y)}})}},"./src/plugin/jspdf-plugin.js":function(r,i,n){"use strict";n.r(i);var t=n("./node_modules/core-js/modules/es.symbol.js"),s=n.n(t),e=n("./node_modules/core-js/modules/es.symbol.description.js"),o=n.n(e),l=n("./node_modules/core-js/modules/es.object.to-string.js"),u=n.n(l),f=n("./node_modules/core-js/modules/es.symbol.iterator.js"),p=n.n(f),v=n("./node_modules/core-js/modules/es.array.iterator.js"),A=n.n(v),y=n("./node_modules/core-js/modules/es.string.iterator.js"),x=n.n(y),C=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),w=n.n(C),b=n("jspdf"),_=n.n(b);function O(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(N){return typeof N}:O=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},O(L)}b.jsPDF.getPageSize=function(L,D,N){if(O(L)==="object"){var M=L;L=M.orientation,D=M.unit||D,N=M.format||N}D=D||"mm",N=N||"a4",L=(""+(L||"P")).toLowerCase();var F=(""+N).toLowerCase(),R={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(D){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: "+D}if(R.hasOwnProperty(F))var B=R[F][1]/j,K=R[F][0]/j;else try{var B=N[1],K=N[0]}catch(V){throw new Error("Invalid format: "+N)}if(L==="p"||L==="portrait"){if(L="p",K>B){var U=K;K=B,B=U}}else if(L==="l"||L==="landscape"){if(L="l",B>K){var U=K;K=B,B=U}}else throw"Invalid orientation: "+L;var z={width:K,height:B,unit:D,k:j};return z},i.default=b.jsPDF},"./src/plugin/pagebreaks.js":function(r,i,n){"use strict";n.r(i);var t=n("./node_modules/core-js/modules/es.array.concat.js"),s=n.n(t),e=n("./node_modules/core-js/modules/es.array.slice.js"),o=n.n(e),l=n("./node_modules/core-js/modules/es.array.join.js"),u=n.n(l),f=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=n.n(f),v=n("./node_modules/core-js/modules/es.object.keys.js"),A=n.n(v),y=n("./src/worker.js"),x=n("./src/utils.js"),C={toContainer:y.default.prototype.toContainer};y.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},y.default.prototype.toContainer=function(){return C.toContainer.call(this).then(function(){var _=this.prop.container,O=this.prop.pageSize.inner.px.height,L=[].concat(this.opt.pagebreak.mode),D={avoidAll:L.indexOf("avoid-all")!==-1,css:L.indexOf("css")!==-1,legacy:L.indexOf("legacy")!==-1},N={},M=this;["before","after","avoid"].forEach(function(j){var B=D.avoidAll&&j==="avoid";N[j]=B?[]:[].concat(M.opt.pagebreak[j]||[]),N[j].length>0&&(N[j]=Array.prototype.slice.call(_.querySelectorAll(N[j].join(", "))))});var F=_.querySelectorAll(".html2pdf__page-break");F=Array.prototype.slice.call(F);var R=_.querySelectorAll("*");Array.prototype.forEach.call(R,function(B){var K={before:!1,after:D.legacy&&F.indexOf(B)!==-1,avoid:D.avoidAll};if(D.css){var U=window.getComputedStyle(B),z=["always","page","left","right"],V=["avoid","avoid-page"];K={before:K.before||z.indexOf(U.breakBefore||U.pageBreakBefore)!==-1,after:K.after||z.indexOf(U.breakAfter||U.pageBreakAfter)!==-1,avoid:K.avoid||V.indexOf(U.breakInside||U.pageBreakInside)!==-1}}Object.keys(K).forEach(function(ge){K[ge]=K[ge]||N[ge].indexOf(B)!==-1});var Y=B.getBoundingClientRect();if(K.avoid&&!K.before){var J=Math.floor(Y.top/O),se=Math.floor(Y.bottom/O),$=Math.abs(Y.bottom-Y.top)/O;se!==J&&$<=1&&(K.before=!0)}if(K.before){var ae=(0,x.createElement)("div",{style:{display:"block",height:O-Y.top%O+"px"}});B.parentNode.insertBefore(ae,B)}if(K.after){var ae=(0,x.createElement)("div",{style:{display:"block",height:O-Y.bottom%O+"px"}});B.parentNode.insertBefore(ae,B.nextSibling)}})})}},"./src/utils.js":function(r,i,n){"use strict";n.r(i),n.d(i,{objType:function(){return L},createElement:function(){return D},cloneNode:function(){return N},unitConvert:function(){return M},toPx:function(){return F}});var t=n("./node_modules/core-js/modules/es.number.constructor.js"),s=n.n(t),e=n("./node_modules/core-js/modules/es.symbol.js"),o=n.n(e),l=n("./node_modules/core-js/modules/es.symbol.description.js"),u=n.n(l),f=n("./node_modules/core-js/modules/es.object.to-string.js"),p=n.n(f),v=n("./node_modules/core-js/modules/es.symbol.iterator.js"),A=n.n(v),y=n("./node_modules/core-js/modules/es.array.iterator.js"),x=n.n(y),C=n("./node_modules/core-js/modules/es.string.iterator.js"),w=n.n(C),b=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_=n.n(b);function O(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(B){return typeof B}:O=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},O(R)}var L=function(j){var B=O(j);return B==="undefined"?"undefined":B==="string"||j instanceof String?"string":B==="number"||j instanceof Number?"number":B==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":B==="object"?"object":"unknown"},D=function(j,B){var K=document.createElement(j);if(B.className&&(K.className=B.className),B.innerHTML){K.innerHTML=B.innerHTML;for(var U=K.getElementsByTagName("script"),z=U.length;z-- >0;null)U[z].parentNode.removeChild(U[z])}for(var V in B.style)K.style[V]=B.style[V];return K},N=function R(j,B){for(var K=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),U=j.firstChild;U;U=U.nextSibling)(B===!0||U.nodeType!==1||U.nodeName!=="SCRIPT")&&K.appendChild(R(U,B));return j.nodeType===1&&(j.nodeName==="CANVAS"?(K.width=j.width,K.height=j.height,K.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(K.value=j.value),K.addEventListener("load",function(){K.scrollTop=j.scrollTop,K.scrollLeft=j.scrollLeft},!0)),K},M=function(j,B){if(L(j)==="number")return j*72/96/B;var K={};for(var U in j)K[U]=j[U]*72/96/B;return K},F=function(j,B){return Math.floor(j*B/72*96)}},"./src/worker.js":function(r,i,n){"use strict";n.r(i);var t=n("./node_modules/core-js/modules/es.object.assign.js"),s=n.n(t),e=n("./node_modules/core-js/modules/es.array.map.js"),o=n.n(e),l=n("./node_modules/core-js/modules/es.object.keys.js"),u=n.n(l),f=n("./node_modules/core-js/modules/es.array.concat.js"),p=n.n(f),v=n("./node_modules/core-js/modules/es.object.to-string.js"),A=n.n(v),y=n("./node_modules/core-js/modules/es.regexp.to-string.js"),x=n.n(y),C=n("./node_modules/core-js/modules/es.function.name.js"),w=n.n(C),b=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=n.n(b),O=n("jspdf"),L=n.n(O),D=n("html2canvas"),N=n.n(D),M=n("./src/utils.js"),F=n("./node_modules/es6-promise/dist/es6-promise.js"),R=n.n(F),j=R().Promise,B=function K(U){var z=Object.assign(K.convert(j.resolve()),JSON.parse(JSON.stringify(K.template))),V=K.convert(j.resolve(),z);return V=V.setProgress(1,K,1,[K]),V=V.set(U),V};B.prototype=Object.create(j.prototype),B.prototype.constructor=B,B.convert=function(U,z){return U.__proto__=z||B.prototype,U},B.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:{}}},B.prototype.from=function(U,z){function V(Y){switch((0,M.objType)(Y)){case"string":return"string";case"element":return Y.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){z=z||V(U);switch(z){case"string":return this.set({src:(0,M.createElement)("div",{innerHTML:U})});case"element":return this.set({src:U});case"canvas":return this.set({canvas:U});case"img":return this.set({img:U});default:return this.error("Unknown source type.")}})},B.prototype.to=function(U){switch(U){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.")}},B.prototype.toContainer=function(){var U=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(U).then(function(){var V={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Y={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};V.opacity=0;var J=(0,M.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,M.createElement)("div",{className:"html2pdf__overlay",style:V}),this.prop.container=(0,M.createElement)("div",{className:"html2pdf__container",style:Y}),this.prop.container.appendChild(J),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},B.prototype.toCanvas=function(){var U=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(U).then(function(){var V=Object.assign({},this.opt.html2canvas);return delete V.onrendered,D(this.prop.container,V)}).then(function(V){var Y=this.opt.html2canvas.onrendered||function(){};Y(V),this.prop.canvas=V,document.body.removeChild(this.prop.overlay)})},B.prototype.toImg=function(){var U=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(U).then(function(){var V=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=V})},B.prototype.toPdf=function(){var U=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(U).then(function(){var V=this.prop.canvas,Y=this.opt,J=V.height,se=Math.floor(V.width*this.prop.pageSize.inner.ratio),$=Math.ceil(J/se),ae=this.prop.pageSize.inner.height,ge=document.createElement("canvas"),pe=ge.getContext("2d");ge.width=V.width,ge.height=se,this.prop.pdf=this.prop.pdf||new O.jsPDF(Y.jsPDF);for(var Ne=0;Ne<$;Ne++){Ne===$-1&&J%se!==0&&(ge.height=J%se,ae=ge.height*this.prop.pageSize.inner.width/ge.width);var de=ge.width,Le=ge.height;pe.fillStyle="white",pe.fillRect(0,0,de,Le),pe.drawImage(V,0,Ne*se,de,Le,0,0,de,Le),Ne&&this.prop.pdf.addPage();var Q=ge.toDataURL("image/"+Y.image.type,Y.image.quality);this.prop.pdf.addImage(Q,Y.image.type,Y.margin[1],Y.margin[0],this.prop.pageSize.inner.width,ae)}})},B.prototype.output=function(U,z,V){return V=V||"pdf",V.toLowerCase()==="img"||V.toLowerCase()==="image"?this.outputImg(U,z):this.outputPdf(U,z)},B.prototype.outputPdf=function(U,z){var V=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(V).then(function(){return this.prop.pdf.output(U,z)})},B.prototype.outputImg=function(U,z){var V=[function(){return this.prop.img||this.toImg()}];return this.thenList(V).then(function(){switch(U){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 "'+U+'" is not supported.'}})},B.prototype.save=function(U){var z=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(z).set(U?{filename:U}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},B.prototype.set=function(U){if((0,M.objType)(U)!=="object")return this;var z=Object.keys(U||{}).map(function(V){switch(V){case"margin":return this.setMargin.bind(this,U.margin);case"jsPDF":return function(){return this.opt.jsPDF=U.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,U.pageSize);default:return V in B.template.prop?function(){this.prop[V]=U[V]}:function(){this.opt[V]=U[V]}}},this);return this.then(function(){return this.thenList(z)})},B.prototype.get=function(U,z){return this.then(function(){var Y=U in B.template.prop?this.prop[U]:this.opt[U];return z?z(Y):Y})},B.prototype.setMargin=function(U){return this.then(function(){switch((0,M.objType)(U)){case"number":U=[U,U,U,U];case"array":if(U.length===2&&(U=[U[0],U[1],U[0],U[1]]),U.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=U}).then(this.setPageSize)},B.prototype.setPageSize=function(U){return this.then(function(){U=U||O.jsPDF.getPageSize(this.opt.jsPDF),U.hasOwnProperty("inner")||(U.inner={width:U.width-this.opt.margin[1]-this.opt.margin[3],height:U.height-this.opt.margin[0]-this.opt.margin[2]},U.inner.px={width:(0,M.toPx)(U.inner.width,U.k),height:(0,M.toPx)(U.inner.height,U.k)},U.inner.ratio=U.inner.height/U.inner.width),this.prop.pageSize=U})},B.prototype.setProgress=function(U,z,V,Y){return U!=null&&(this.progress.val=U),z!=null&&(this.progress.state=z),V!=null&&(this.progress.n=V),Y!=null&&(this.progress.stack=Y),this.progress.ratio=this.progress.val/this.progress.state,this},B.prototype.updateProgress=function(U,z,V,Y){return this.setProgress(U?this.progress.val+U:null,z||null,V?this.progress.n+V:null,Y?this.progress.stack.concat(Y):null)},B.prototype.then=function(U,z){var V=this;return this.thenCore(U,z,function(J,se){return V.updateProgress(null,null,1,[J]),j.prototype.then.call(this,function(ae){return V.updateProgress(null,J),ae}).then(J,se).then(function(ae){return V.updateProgress(1),ae})})},B.prototype.thenCore=function(U,z,V){V=V||j.prototype.then;var Y=this;U&&(U=U.bind(Y)),z&&(z=z.bind(Y));var J=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",se=J?Y:B.convert(Object.assign({},Y),j.prototype),$=V.call(se,U,z);return B.convert($,Y.__proto__)},B.prototype.thenExternal=function(U,z){return j.prototype.then.call(this,U,z)},B.prototype.thenList=function(U){var z=this;return U.forEach(function(Y){z=z.thenCore(Y)}),z},B.prototype.catch=function(K){K&&(K=K.bind(this));var U=j.prototype.catch.call(this,K);return B.convert(U,this)},B.prototype.catchExternal=function(U){return j.prototype.catch.call(this,U)},B.prototype.error=function(U){return this.then(function(){throw new Error(U)})},B.prototype.using=B.prototype.set,B.prototype.saveAs=B.prototype.save,B.prototype.export=B.prototype.output,B.prototype.run=B.prototype.then,i.default=B},"./node_modules/core-js/internals/a-function.js":function(r){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"./node_modules/core-js/internals/a-possible-prototype.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!t(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"./node_modules/core-js/internals/add-to-unscopables.js":function(r,i,n){var t=n("./node_modules/core-js/internals/well-known-symbol.js"),s=n("./node_modules/core-js/internals/object-create.js"),e=n("./node_modules/core-js/internals/object-define-property.js"),o=t("unscopables"),l=Array.prototype;l[o]==null&&e.f(l,o,{configurable:!0,value:s(null)}),r.exports=function(u){l[o][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!t(s))throw TypeError(String(s)+" is not an object");return s}},"./node_modules/core-js/internals/array-for-each.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/array-iteration.js").forEach,s=n("./node_modules/core-js/internals/array-method-is-strict.js"),e=s("forEach");r.exports=e?[].forEach:function(l){return t(this,l,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-length.js"),e=n("./node_modules/core-js/internals/to-absolute-index.js"),o=function(u){return function(f,p,v){var A=t(f),y=s(A.length),x=e(v,y),C;if(u&&p!=p){for(;y>x;)if(C=A[x++],C!=C)return!0}else for(;y>x;x++)if((u||x in A)&&A[x]===p)return u||x||0;return!u&&-1}};r.exports={includes:o(!0),indexOf:o(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(r,i,n){var t=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),e=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,f=function(v){var A=v==1,y=v==2,x=v==3,C=v==4,w=v==6,b=v==7,_=v==5||w;return function(O,L,D,N){for(var M=e(O),F=s(M),R=t(L,D,3),j=o(F.length),B=0,K=N||l,U=A?K(O,j):y||b?K(O,0):void 0,z,V;j>B;B++)if((_||B in F)&&(z=F[B],V=R(z,B,M),v))if(A)U[B]=V;else if(V)switch(v){case 3:return!0;case 5:return z;case 6:return B;case 2:u.call(U,z)}else switch(v){case 4:return!1;case 7:u.call(U,z)}return w?-1:x||C?C:U}};r.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(r,i,n){var t=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),e=n("./node_modules/core-js/internals/engine-v8-version.js"),o=s("species");r.exports=function(l){return e>=51||!t(function(){var u=[],f=u.constructor={};return f[o]=function(){return{foo:1}},u[l](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/fails.js");r.exports=function(s,e){var o=[][s];return!!o&&t(function(){o.call(null,e||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-array.js"),e=n("./node_modules/core-js/internals/well-known-symbol.js"),o=e("species");r.exports=function(l){var u;return s(l)&&(u=l.constructor,typeof u=="function"&&(u===Array||s(u.prototype))?u=void 0:t(u)&&(u=u[o],u===null&&(u=void 0))),u===void 0?Array:u}},"./node_modules/core-js/internals/array-species-create.js":function(r,i,n){var t=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(s,e){return new(t(s))(e===0?0:e)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var i={}.toString;r.exports=function(n){return i.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),e=n("./node_modules/core-js/internals/well-known-symbol.js"),o=e("toStringTag"),l=s(function(){return arguments}())=="Arguments",u=function(p,v){try{return p[v]}catch(A){}};r.exports=t?s:function(f){var p,v,A;return f===void 0?"Undefined":f===null?"Null":typeof(v=u(p=Object(f),o))=="string"?v:l?s(p):(A=s(p))=="Object"&&typeof p.callee=="function"?"Arguments":A}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(r,i,n){var t=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/own-keys.js"),e=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),o=n("./node_modules/core-js/internals/object-define-property.js");r.exports=function(l,u){for(var f=s(u),p=o.f,v=e.f,A=0;A<f.length;A++){var y=f[A];t(l,y)||p(l,y,v(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(r,i,n){var t=n("./node_modules/core-js/internals/fails.js");r.exports=!t(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},"./node_modules/core-js/internals/create-html.js":function(r,i,n){var t=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),e=/"/g;r.exports=function(o,l,u,f){var p=s(t(o)),v="<"+l;return u!==""&&(v+=" "+u+'="'+s(f).replace(e,""")+'"'),v+">"+p+"</"+l+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,s=n("./node_modules/core-js/internals/object-create.js"),e=n("./node_modules/core-js/internals/create-property-descriptor.js"),o=n("./node_modules/core-js/internals/set-to-string-tag.js"),l=n("./node_modules/core-js/internals/iterators.js"),u=function(){return this};r.exports=function(f,p,v){var A=p+" Iterator";return f.prototype=s(t,{next:e(1,v)}),o(f,A,!1,!0),l[A]=u,f}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(r,i,n){var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),e=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=t?function(o,l,u){return s.f(o,l,e(1,u))}:function(o,l,u){return o[l]=u,o}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}}},"./node_modules/core-js/internals/create-property.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/to-property-key.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),e=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=function(o,l,u){var f=t(l);f in o?s.f(o,f,e(0,u)):o[f]=u}},"./node_modules/core-js/internals/define-iterator.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-iterator-constructor.js"),e=n("./node_modules/core-js/internals/object-get-prototype-of.js"),o=n("./node_modules/core-js/internals/object-set-prototype-of.js"),l=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),f=n("./node_modules/core-js/internals/redefine.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),v=n("./node_modules/core-js/internals/is-pure.js"),A=n("./node_modules/core-js/internals/iterators.js"),y=n("./node_modules/core-js/internals/iterators-core.js"),x=y.IteratorPrototype,C=y.BUGGY_SAFARI_ITERATORS,w=p("iterator"),b="keys",_="values",O="entries",L=function(){return this};r.exports=function(D,N,M,F,R,j,B){s(M,N,F);var K=function(Ne){if(Ne===R&&J)return J;if(!C&&Ne in V)return V[Ne];switch(Ne){case b:return function(){return new M(this,Ne)};case _:return function(){return new M(this,Ne)};case O:return function(){return new M(this,Ne)}}return function(){return new M(this)}},U=N+" Iterator",z=!1,V=D.prototype,Y=V[w]||V["@@iterator"]||R&&V[R],J=!C&&Y||K(R),se=N=="Array"&&V.entries||Y,$,ae,ge;if(se&&($=e(se.call(new D)),x!==Object.prototype&&$.next&&(!v&&e($)!==x&&(o?o($,x):typeof $[w]!="function"&&u($,w,L)),l($,U,!0,!0),v&&(A[U]=L))),R==_&&Y&&Y.name!==_&&(z=!0,J=function(){return Y.call(this)}),(!v||B)&&V[w]!==J&&u(V,w,J),A[N]=J,R)if(ae={values:K(_),keys:j?J:K(b),entries:K(O)},B)for(ge in ae)(C||z||!(ge in V))&&f(V,ge,ae[ge]);else t({target:N,proto:!0,forced:C||z},ae);return ae}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,i,n){var t=n("./node_modules/core-js/internals/path.js"),s=n("./node_modules/core-js/internals/has.js"),e=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),o=n("./node_modules/core-js/internals/object-define-property.js").f;r.exports=function(l){var u=t.Symbol||(t.Symbol={});s(u,l)||o(u,l,{value:e.f(l)})}},"./node_modules/core-js/internals/descriptors.js":function(r,i,n){var t=n("./node_modules/core-js/internals/fails.js");r.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/is-object.js"),e=t.document,o=s(e)&&s(e.createElement);r.exports=function(l){return o?e.createElement(l):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(r){r.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(r,i,n){var t=n("./node_modules/core-js/internals/get-built-in.js");r.exports=t("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/engine-user-agent.js"),e=t.process,o=t.Deno,l=e&&e.versions||o&&o.version,u=l&&l.v8,f,p;u?(f=u.split("."),p=f[0]<4?1:f[0]+f[1]):s&&(f=s.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=s.match(/Chrome\/(\d+)/),f&&(p=f[1]))),r.exports=p&&+p},"./node_modules/core-js/internals/enum-bug-keys.js":function(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,e=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/set-global.js"),u=n("./node_modules/core-js/internals/copy-constructor-properties.js"),f=n("./node_modules/core-js/internals/is-forced.js");r.exports=function(p,v){var A=p.target,y=p.global,x=p.stat,C,w,b,_,O,L;if(y?w=t:x?w=t[A]||l(A,{}):w=(t[A]||{}).prototype,w)for(b in v){if(O=v[b],p.noTargetGet?(L=s(w,b),_=L&&L.value):_=w[b],C=f(y?b:A+(x?".":"#")+b,p.forced),!C&&_!==void 0){if(typeof O===typeof _)continue;u(O,_)}(p.sham||_&&_.sham)&&e(O,"sham",!0),o(w,b,O,p)}}},"./node_modules/core-js/internals/fails.js":function(r){r.exports=function(i){try{return!!i()}catch(n){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(r,i,n){var t=n("./node_modules/core-js/internals/a-function.js");r.exports=function(s,e,o){if(t(s),e===void 0)return s;switch(o){case 0:return function(){return s.call(e)};case 1:return function(l){return s.call(e,l)};case 2:return function(l,u){return s.call(e,l,u)};case 3:return function(l,u,f){return s.call(e,l,u,f)}}return function(){return s.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=function(o){return typeof o=="function"?o:void 0};r.exports=function(e,o){return arguments.length<2?s(t[e]):t[e]&&t[e][o]}},"./node_modules/core-js/internals/global.js":function(r){var i=function(t){return t&&t.Math==Math&&t};r.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof I=="object"&&I)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-object.js"),s={}.hasOwnProperty;r.exports=Object.hasOwn||function(o,l){return s.call(t(o),l)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,i,n){var t=n("./node_modules/core-js/internals/get-built-in.js");r.exports=t("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(r,i,n){var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),e=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!t&&!s(function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,i,n){var t=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),e="".split;r.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(o){return s(o)=="String"?e.call(o,""):Object(o)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(e,o,l){var u,f;return s&&typeof(u=o.constructor)=="function"&&u!==l&&t(f=u.prototype)&&f!==l.prototype&&s(e,f),e}},"./node_modules/core-js/internals/inspect-source.js":function(r,i,n){var t=n("./node_modules/core-js/internals/shared-store.js"),s=Function.toString;typeof t.inspectSource!="function"&&(t.inspectSource=function(e){return s.call(e)}),r.exports=t.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,i,n){var t=n("./node_modules/core-js/internals/native-weak-map.js"),s=n("./node_modules/core-js/internals/global.js"),e=n("./node_modules/core-js/internals/is-object.js"),o=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/shared-store.js"),f=n("./node_modules/core-js/internals/shared-key.js"),p=n("./node_modules/core-js/internals/hidden-keys.js"),v="Object already initialized",A=s.WeakMap,y,x,C,w=function(F){return C(F)?x(F):y(F,{})},b=function(F){return function(R){var j;if(!e(R)||(j=x(R)).type!==F)throw TypeError("Incompatible receiver, "+F+" required");return j}};if(t||u.state){var _=u.state||(u.state=new A),O=_.get,L=_.has,D=_.set;y=function(F,R){if(L.call(_,F))throw new TypeError(v);return R.facade=F,D.call(_,F,R),R},x=function(F){return O.call(_,F)||{}},C=function(F){return L.call(_,F)}}else{var N=f("state");p[N]=!0,y=function(F,R){if(l(F,N))throw new TypeError(v);return R.facade=F,o(F,N,R),R},x=function(F){return l(F,N)?F[N]:{}},C=function(F){return l(F,N)}}r.exports={set:y,get:x,has:C,enforce:w,getterFor:b}},"./node_modules/core-js/internals/is-array.js":function(r,i,n){var t=n("./node_modules/core-js/internals/classof-raw.js");r.exports=Array.isArray||function(e){return t(e)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(r,i,n){var t=n("./node_modules/core-js/internals/fails.js"),s=/#|\.prototype\./,e=function(v,A){var y=l[o(v)];return y==f?!0:y==u?!1:typeof A=="function"?t(A):!!A},o=e.normalize=function(p){return String(p).replace(s,".").toLowerCase()},l=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";r.exports=e},"./node_modules/core-js/internals/is-object.js":function(r){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"./node_modules/core-js/internals/is-pure.js":function(r){r.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(r,i,n){var t=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/use-symbol-as-uid.js");r.exports=s?function(e){return typeof e=="symbol"}:function(e){var o=t("Symbol");return typeof o=="function"&&Object(e)instanceof o}},"./node_modules/core-js/internals/iterators-core.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/object-get-prototype-of.js"),e=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),f=l("iterator"),p=!1,v=function(){return this},A,y,x;[].keys&&(x=[].keys(),"next"in x?(y=s(s(x)),y!==Object.prototype&&(A=y)):p=!0);var C=A==null||t(function(){var w={};return A[f].call(w)!==w});C&&(A={}),(!u||C)&&!o(A,f)&&e(A,f,v),r.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:p}},"./node_modules/core-js/internals/iterators.js":function(r){r.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(r,i,n){var t=n("./node_modules/core-js/internals/engine-v8-version.js"),s=n("./node_modules/core-js/internals/fails.js");r.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41})},"./node_modules/core-js/internals/native-weak-map.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),e=t.WeakMap;r.exports=typeof e=="function"&&/native code/.test(s(e))},"./node_modules/core-js/internals/object-assign.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),e=n("./node_modules/core-js/internals/object-keys.js"),o=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),u=n("./node_modules/core-js/internals/to-object.js"),f=n("./node_modules/core-js/internals/indexed-object.js"),p=Object.assign,v=Object.defineProperty;r.exports=!p||s(function(){if(t&&p({b:1},p(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var A={},y={},x=Symbol(),C="abcdefghijklmnopqrst";return A[x]=7,C.split("").forEach(function(w){y[w]=w}),p({},A)[x]!=7||e(p({},y)).join("")!=C})?function(y,x){for(var C=u(y),w=arguments.length,b=1,_=o.f,O=l.f;w>b;)for(var L=f(arguments[b++]),D=_?e(L).concat(_(L)):e(L),N=D.length,M=0,F;N>M;)F=D[M++],(!t||O.call(L,F))&&(C[F]=L[F]);return C}:p},"./node_modules/core-js/internals/object-create.js":function(r,i,n){var t=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/object-define-properties.js"),e=n("./node_modules/core-js/internals/enum-bug-keys.js"),o=n("./node_modules/core-js/internals/hidden-keys.js"),l=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),f=n("./node_modules/core-js/internals/shared-key.js"),p=">",v="<",A="prototype",y="script",x=f("IE_PROTO"),C=function(){},w=function(N){return v+y+p+N+v+"/"+y+p},b=function(N){N.write(w("")),N.close();var M=N.parentWindow.Object;return N=null,M},_=function(){var N=u("iframe"),M="java"+y+":",F;if(N.style)return N.style.display="none",l.appendChild(N),N.src=String(M),F=N.contentWindow.document,F.open(),F.write(w("document.F=Object")),F.close(),F.F},O,L=function(){try{O=new ActiveXObject("htmlfile")}catch(M){}L=document.domain&&O?b(O):_()||b(O);for(var N=e.length;N--;)delete L[A][e[N]];return L()};o[x]=!0,r.exports=Object.create||function(N,M){var F;return N!==null?(C[A]=t(N),F=new C,C[A]=null,F[x]=N):F=L(),M===void 0?F:s(F,M)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,i,n){var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),e=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/object-keys.js");r.exports=t?Object.defineProperties:function(u,f){e(u);for(var p=o(f),v=p.length,A=0,y;v>A;)s.f(u,y=p[A++],f[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(r,i,n){var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/ie8-dom-define.js"),e=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/to-property-key.js"),l=Object.defineProperty;i.f=t?l:function(f,p,v){if(e(f),p=o(p),e(v),s)try{return l(f,p,v)}catch(A){}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(f[p]=v.value),f}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(r,i,n){var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),e=n("./node_modules/core-js/internals/create-property-descriptor.js"),o=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has.js"),f=n("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;i.f=t?p:function(A,y){if(A=o(A),y=l(y),f)try{return p(A,y)}catch(x){}if(u(A,y))return e(!s.f.call(A,y),A[y])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,e={}.toString,o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(f){try{return s(f)}catch(p){return o.slice()}};r.exports.f=function(f){return o&&e.call(f)=="[object Window]"?l(f):s(t(f))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(r,i,n){var t=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js"),e=s.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(l){return t(l,e)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(r,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(r,i,n){var t=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/to-object.js"),e=n("./node_modules/core-js/internals/shared-key.js"),o=n("./node_modules/core-js/internals/correct-prototype-getter.js"),l=e("IE_PROTO"),u=Object.prototype;r.exports=o?Object.getPrototypeOf:function(f){return f=s(f),t(f,l)?f[l]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(r,i,n){var t=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),e=n("./node_modules/core-js/internals/array-includes.js").indexOf,o=n("./node_modules/core-js/internals/hidden-keys.js");r.exports=function(l,u){var f=s(l),p=0,v=[],A;for(A in f)!t(o,A)&&t(f,A)&&v.push(A);for(;u.length>p;)t(f,A=u[p++])&&(~e(v,A)||v.push(A));return v}},"./node_modules/core-js/internals/object-keys.js":function(r,i,n){var t=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js");r.exports=Object.keys||function(o){return t(o,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,i){"use strict";var n={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,s=t&&!n.call({1:2},1);i.f=s?function(o){var l=t(this,o);return!!l&&l.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,i,n){var t=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/a-possible-prototype.js");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,o={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(o,[]),e=o instanceof Array}catch(u){}return function(f,p){return t(f),s(p),e?l.call(f,p):f.__proto__=p,f}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof.js");r.exports=t?{}.toString:function(){return"[object "+s(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s,e){var o,l;if(e==="string"&&typeof(o=s.toString)=="function"&&!t(l=o.call(s)))return l;if(typeof(o=s.valueOf)=="function"&&!t(l=o.call(s)))return l;if(e!=="string"&&typeof(o=s.toString)=="function"&&!t(l=o.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,i,n){var t=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js"),e=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),o=n("./node_modules/core-js/internals/an-object.js");r.exports=t("Reflect","ownKeys")||function(u){var f=s.f(o(u)),p=e.f;return p?f.concat(p(u)):f}},"./node_modules/core-js/internals/path.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js");r.exports=t},"./node_modules/core-js/internals/redefine.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),e=n("./node_modules/core-js/internals/has.js"),o=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),f=u.get,p=u.enforce,v=String(String).split("String");(r.exports=function(A,y,x,C){var w=C?!!C.unsafe:!1,b=C?!!C.enumerable:!1,_=C?!!C.noTargetGet:!1,O;if(typeof x=="function"&&(typeof y=="string"&&!e(x,"name")&&s(x,"name",y),O=p(x),O.source||(O.source=v.join(typeof y=="string"?y:""))),A===t){b?A[y]=x:o(y,x);return}else w?!_&&A[y]&&(b=!0):delete A[y];b?A[y]=x:s(A,y,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||l(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/an-object.js");r.exports=function(){var s=t(this),e="";return s.global&&(e+="g"),s.ignoreCase&&(e+="i"),s.multiline&&(e+="m"),s.dotAll&&(e+="s"),s.unicode&&(e+="u"),s.sticky&&(e+="y"),e}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js");r.exports=function(s,e){try{Object.defineProperty(t,s,{value:e,configurable:!0,writable:!0})}catch(o){t[s]=e}return e}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,i,n){var t=n("./node_modules/core-js/internals/object-define-property.js").f,s=n("./node_modules/core-js/internals/has.js"),e=n("./node_modules/core-js/internals/well-known-symbol.js"),o=e("toStringTag");r.exports=function(l,u,f){l&&!s(l=f?l:l.prototype,o)&&t(l,o,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(r,i,n){var t=n("./node_modules/core-js/internals/shared.js"),s=n("./node_modules/core-js/internals/uid.js"),e=t("keys");r.exports=function(o){return e[o]||(e[o]=s(o))}},"./node_modules/core-js/internals/shared-store.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/set-global.js"),e="__core-js_shared__",o=t[e]||s(e,{});r.exports=o},"./node_modules/core-js/internals/shared.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(e,o){return s[e]||(s[e]=o!==void 0?o:{})})("versions",[]).push({version:"3.16.0",mode:t?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(r,i,n){var t=n("./node_modules/core-js/internals/fails.js");r.exports=function(s){return t(function(){var e=""[s]('"');return e!==e.toLowerCase()||e.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-integer.js"),s=n("./node_modules/core-js/internals/to-string.js"),e=n("./node_modules/core-js/internals/require-object-coercible.js"),o=function(u){return function(f,p){var v=s(e(f)),A=t(p),y=v.length,x,C;return A<0||A>=y?u?"":void 0:(x=v.charCodeAt(A),x<55296||x>56319||A+1===y||(C=v.charCodeAt(A+1))<56320||C>57343?u?v.charAt(A):x:u?v.slice(A,A+2):(x-55296<<10)+(C-56320)+65536)}};r.exports={codeAt:o(!1),charAt:o(!0)}},"./node_modules/core-js/internals/string-trim.js":function(r,i,n){var t=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),e=n("./node_modules/core-js/internals/whitespaces.js"),o="["+e+"]",l=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),f=function(v){return function(A){var y=s(t(A));return v&1&&(y=y.replace(l,"")),v&2&&(y=y.replace(u,"")),y}};r.exports={start:f(1),end:f(2),trim:f(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-integer.js"),s=Math.max,e=Math.min;r.exports=function(o,l){var u=t(o);return u<0?s(u+l,0):e(u,l)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,i,n){var t=n("./node_modules/core-js/internals/indexed-object.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(e){return t(s(e))}},"./node_modules/core-js/internals/to-integer.js":function(r){var i=Math.ceil,n=Math.floor;r.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},"./node_modules/core-js/internals/to-length.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-integer.js"),s=Math.min;r.exports=function(e){return e>0?s(t(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,i,n){var t=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(s){return Object(t(s))}},"./node_modules/core-js/internals/to-primitive.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-symbol.js"),e=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js"),l=o("toPrimitive");r.exports=function(u,f){if(!t(u)||s(u))return u;var p=u[l],v;if(p!==void 0){if(f===void 0&&(f="default"),v=p.call(u,f),!t(v)||s(v))return v;throw TypeError("Can't convert object to primitive value")}return f===void 0&&(f="number"),e(u,f)}},"./node_modules/core-js/internals/to-property-key.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-primitive.js"),s=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(e){var o=t(e,"string");return s(o)?o:String(o)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,i,n){var t=n("./node_modules/core-js/internals/well-known-symbol.js"),s=t("toStringTag"),e={};e[s]="z",r.exports=String(e)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,i,n){var t=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(s){if(t(s))throw TypeError("Cannot convert a Symbol value to a string");return String(s)}},"./node_modules/core-js/internals/uid.js":function(r){var i=0,n=Math.random();r.exports=function(t){return"Symbol("+String(t===void 0?"":t)+")_"+(++i+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(r,i,n){var t=n("./node_modules/core-js/internals/native-symbol.js");r.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(r,i,n){var t=n("./node_modules/core-js/internals/well-known-symbol.js");i.f=t},"./node_modules/core-js/internals/well-known-symbol.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/shared.js"),e=n("./node_modules/core-js/internals/has.js"),o=n("./node_modules/core-js/internals/uid.js"),l=n("./node_modules/core-js/internals/native-symbol.js"),u=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),f=s("wks"),p=t.Symbol,v=u?p:p&&p.withoutSetter||o;r.exports=function(A){return(!e(f,A)||!(l||typeof f[A]=="string"))&&(l&&e(p,A)?f[A]=p[A]:f[A]=v("Symbol."+A)),f[A]}},"./node_modules/core-js/internals/whitespaces.js":function(r){r.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(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/fails.js"),e=n("./node_modules/core-js/internals/is-array.js"),o=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/to-object.js"),u=n("./node_modules/core-js/internals/to-length.js"),f=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/array-species-create.js"),v=n("./node_modules/core-js/internals/array-method-has-species-support.js"),A=n("./node_modules/core-js/internals/well-known-symbol.js"),y=n("./node_modules/core-js/internals/engine-v8-version.js"),x=A("isConcatSpreadable"),C=9007199254740991,w="Maximum allowed index exceeded",b=y>=51||!s(function(){var D=[];return D[x]=!1,D.concat()[0]!==D}),_=v("concat"),O=function(N){if(!o(N))return!1;var M=N[x];return M!==void 0?!!M:e(N)},L=!b||!_;t({target:"Array",proto:!0,forced:L},{concat:function(N){var M=l(this),F=p(M,0),R=0,j,B,K,U,z;for(j=-1,K=arguments.length;j<K;j++)if(z=j===-1?M:arguments[j],O(z)){if(U=u(z.length),R+U>C)throw TypeError(w);for(B=0;B<U;B++,R++)B in z&&f(F,R,z[B])}else{if(R>=C)throw TypeError(w);f(F,R++,z)}return F.length=R,F}})},"./node_modules/core-js/modules/es.array.iterator.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/add-to-unscopables.js"),e=n("./node_modules/core-js/internals/iterators.js"),o=n("./node_modules/core-js/internals/internal-state.js"),l=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",f=o.set,p=o.getterFor(u);r.exports=l(Array,"Array",function(v,A){f(this,{type:u,target:t(v),index:0,kind:A})},function(){var v=p(this),A=v.target,y=v.kind,x=v.index++;return!A||x>=A.length?(v.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:x,done:!1}:y=="values"?{value:A[x],done:!1}:{value:[x,A[x]],done:!1}},"values"),e.Arguments=e.Array,s("keys"),s("values"),s("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),e=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/array-method-is-strict.js"),l=[].join,u=s!=Object,f=o("join",",");t({target:"Array",proto:!0,forced:u||!f},{join:function(v){return l.call(e(this),v===void 0?",":v)}})},"./node_modules/core-js/modules/es.array.map.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/array-iteration.js").map,e=n("./node_modules/core-js/internals/array-method-has-species-support.js"),o=e("map");t({target:"Array",proto:!0,forced:!o},{map:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-object.js"),e=n("./node_modules/core-js/internals/is-array.js"),o=n("./node_modules/core-js/internals/to-absolute-index.js"),l=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),f=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),v=n("./node_modules/core-js/internals/array-method-has-species-support.js"),A=v("slice"),y=p("species"),x=[].slice,C=Math.max;t({target:"Array",proto:!0,forced:!A},{slice:function(b,_){var O=u(this),L=l(O.length),D=o(b,L),N=o(_===void 0?L:_,L),M,F,R;if(e(O)&&(M=O.constructor,typeof M=="function"&&(M===Array||e(M.prototype))?M=void 0:s(M)&&(M=M[y],M===null&&(M=void 0)),M===Array||M===void 0))return x.call(O,D,N);for(F=new(M===void 0?Array:M)(C(N-D,0)),R=0;D<N;D++,R++)D in O&&f(F,R,O[D]);return F.length=R,F}})},"./node_modules/core-js/modules/es.function.name.js":function(r,i,n){var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js").f,e=Function.prototype,o=e.toString,l=/^\s*function ([^ (]*)/,u="name";t&&!(u in e)&&s(e,u,{configurable:!0,get:function(){try{return o.call(this).match(l)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/global.js"),e=n("./node_modules/core-js/internals/is-forced.js"),o=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/classof-raw.js"),f=n("./node_modules/core-js/internals/inherit-if-required.js"),p=n("./node_modules/core-js/internals/is-symbol.js"),v=n("./node_modules/core-js/internals/to-primitive.js"),A=n("./node_modules/core-js/internals/fails.js"),y=n("./node_modules/core-js/internals/object-create.js"),x=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,C=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,w=n("./node_modules/core-js/internals/object-define-property.js").f,b=n("./node_modules/core-js/internals/string-trim.js").trim,_="Number",O=s[_],L=O.prototype,D=u(y(L))==_,N=function(K){if(p(K))throw TypeError("Cannot convert a Symbol value to a number");var U=v(K,"number"),z,V,Y,J,se,$,ae,ge;if(typeof U=="string"&&U.length>2){if(U=b(U),z=U.charCodeAt(0),z===43||z===45){if(V=U.charCodeAt(2),V===88||V===120)return NaN}else if(z===48){switch(U.charCodeAt(1)){case 66:case 98:Y=2,J=49;break;case 79:case 111:Y=8,J=55;break;default:return+U}for(se=U.slice(2),$=se.length,ae=0;ae<$;ae++)if(ge=se.charCodeAt(ae),ge<48||ge>J)return NaN;return parseInt(se,Y)}}return+U};if(e(_,!O(" 0o1")||!O("0b1")||O("+0x1"))){for(var M=function(K){var U=arguments.length<1?0:K,z=this;return z instanceof M&&(D?A(function(){L.valueOf.call(z)}):u(z)!=_)?f(new O(N(U)),z,M):N(U)},F=t?x(O):"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(","),R=0,j;F.length>R;R++)l(O,j=F[R])&&!l(M,j)&&w(M,j,C(O,j));M.prototype=L,L.constructor=M,o(s,_,M)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,i,n){var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/object-assign.js");t({target:"Object",stat:!0,forced:Object.assign!==s},{assign:s})},"./node_modules/core-js/modules/es.object.keys.js":function(r,i,n){var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/to-object.js"),e=n("./node_modules/core-js/internals/object-keys.js"),o=n("./node_modules/core-js/internals/fails.js"),l=o(function(){e(1)});t({target:"Object",stat:!0,forced:l},{keys:function(f){return e(s(f))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(r,i,n){var t=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/redefine.js"),e=n("./node_modules/core-js/internals/object-to-string.js");t||s(Object.prototype,"toString",e,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/an-object.js"),e=n("./node_modules/core-js/internals/to-string.js"),o=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/regexp-flags.js"),u="toString",f=RegExp.prototype,p=f[u],v=o(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),A=p.name!=u;(v||A)&&t(RegExp.prototype,u,function(){var x=s(this),C=e(x.source),w=x.flags,b=e(w===void 0&&x instanceof RegExp&&!("flags"in f)?l.call(x):w);return"/"+C+"/"+b},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/string-multibyte.js").charAt,s=n("./node_modules/core-js/internals/to-string.js"),e=n("./node_modules/core-js/internals/internal-state.js"),o=n("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=e.set,f=e.getterFor(l);o(String,"String",function(p){u(this,{type:l,string:s(p),index:0})},function(){var v=f(this),A=v.string,y=v.index,x;return y>=A.length?{value:void 0,done:!0}:(x=t(A,y),v.index+=x.length,{value:x,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-html.js"),e=n("./node_modules/core-js/internals/string-html-forced.js");t({target:"String",proto:!0,forced:e("link")},{link:function(l){return s(this,"a","href",l)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/descriptors.js"),e=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-define-property.js").f,f=n("./node_modules/core-js/internals/copy-constructor-properties.js"),p=e.Symbol;if(s&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var v={},A=function(){var _=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),O=this instanceof A?new p(_):_===void 0?p():p(_);return _===""&&(v[O]=!0),O};f(A,p);var y=A.prototype=p.prototype;y.constructor=A;var x=y.toString,C=String(p("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var _=l(this)?this.valueOf():this,O=x.call(_);if(o(v,_))return"";var L=C?O.slice(7,-1):O.replace(w,"$1");return L===""?void 0:L}}),t({global:!0,forced:!0},{Symbol:A})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(r,i,n){var t=n("./node_modules/core-js/internals/define-well-known-symbol.js");t("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(r,i,n){"use strict";var t=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global.js"),e=n("./node_modules/core-js/internals/get-built-in.js"),o=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/native-symbol.js"),f=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/has.js"),v=n("./node_modules/core-js/internals/is-array.js"),A=n("./node_modules/core-js/internals/is-object.js"),y=n("./node_modules/core-js/internals/is-symbol.js"),x=n("./node_modules/core-js/internals/an-object.js"),C=n("./node_modules/core-js/internals/to-object.js"),w=n("./node_modules/core-js/internals/to-indexed-object.js"),b=n("./node_modules/core-js/internals/to-property-key.js"),_=n("./node_modules/core-js/internals/to-string.js"),O=n("./node_modules/core-js/internals/create-property-descriptor.js"),L=n("./node_modules/core-js/internals/object-create.js"),D=n("./node_modules/core-js/internals/object-keys.js"),N=n("./node_modules/core-js/internals/object-get-own-property-names.js"),M=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),F=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),R=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=n("./node_modules/core-js/internals/object-define-property.js"),B=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),K=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),U=n("./node_modules/core-js/internals/redefine.js"),z=n("./node_modules/core-js/internals/shared.js"),V=n("./node_modules/core-js/internals/shared-key.js"),Y=n("./node_modules/core-js/internals/hidden-keys.js"),J=n("./node_modules/core-js/internals/uid.js"),se=n("./node_modules/core-js/internals/well-known-symbol.js"),$=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ae=n("./node_modules/core-js/internals/define-well-known-symbol.js"),ge=n("./node_modules/core-js/internals/set-to-string-tag.js"),pe=n("./node_modules/core-js/internals/internal-state.js"),Ne=n("./node_modules/core-js/internals/array-iteration.js").forEach,de=V("hidden"),Le="Symbol",Q="prototype",ce=se("toPrimitive"),Ke=pe.set,ee=pe.getterFor(Le),X=Object[Q],G=s.Symbol,Z=e("JSON","stringify"),ve=R.f,ue=j.f,_e=M.f,xe=B.f,oe=z("symbols"),fe=z("op-symbols"),Te=z("string-to-symbol-registry"),ze=z("symbol-to-string-registry"),it=z("wks"),et=s.QObject,Oe=!et||!et[Q]||!et[Q].findChild,gt=l&&f(function(){return L(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(bt,qe,me){var Rt=ve(X,qe);Rt&&delete X[qe],ue(bt,qe,me),Rt&&bt!==X&&ue(X,qe,Rt)}:ue,Ge=function(qe,me){var Rt=oe[qe]=L(G[Q]);return Ke(Rt,{type:Le,tag:qe,description:me}),l||(Rt.description=me),Rt},wt=function(qe,me,Rt){qe===X&&wt(fe,me,Rt),x(qe);var er=b(me);return x(Rt),p(oe,er)?(Rt.enumerable?(p(qe,de)&&qe[de][er]&&(qe[de][er]=!1),Rt=L(Rt,{enumerable:O(0,!1)})):(p(qe,de)||ue(qe,de,O(1,{})),qe[de][er]=!0),gt(qe,er,Rt)):ue(qe,er,Rt)},xt=function(qe,me){x(qe);var Rt=w(me),er=D(Rt).concat(ye(Rt));return Ne(er,function(ct){(!l||Dt.call(Rt,ct))&&wt(qe,ct,Rt[ct])}),qe},Ct=function(qe,me){return me===void 0?L(qe):xt(L(qe),me)},Dt=function(qe){var me=b(qe),Rt=xe.call(this,me);return this===X&&p(oe,me)&&!p(fe,me)?!1:Rt||!p(this,me)||!p(oe,me)||p(this,de)&&this[de][me]?Rt:!0},Ht=function(qe,me){var Rt=w(qe),er=b(me);if(Rt===X&&p(oe,er)&&!p(fe,er))return;var ct=ve(Rt,er);return ct&&p(oe,er)&&!(p(Rt,de)&&Rt[de][er])&&(ct.enumerable=!0),ct},Je=function(qe){var me=_e(w(qe)),Rt=[];return Ne(me,function(er){!p(oe,er)&&!p(Y,er)&&Rt.push(er)}),Rt},ye=function(qe){var me=qe===X,Rt=_e(me?fe:w(qe)),er=[];return Ne(Rt,function(ct){p(oe,ct)&&(!me||p(X,ct))&&er.push(oe[ct])}),er};if(u||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var qe=!arguments.length||arguments[0]===void 0?void 0:_(arguments[0]),me=J(qe),Rt=function er(ct){this===X&&er.call(fe,ct),p(this,de)&&p(this[de],me)&&(this[de][me]=!1),gt(this,me,O(1,ct))};return l&&Oe&>(X,me,{configurable:!0,set:Rt}),Ge(me,qe)},U(G[Q],"toString",function(){return ee(this).tag}),U(G,"withoutSetter",function(bt){return Ge(J(bt),bt)}),B.f=Dt,j.f=wt,R.f=Ht,N.f=M.f=Je,F.f=ye,$.f=function(bt){return Ge(se(bt),bt)},l&&(ue(G[Q],"description",{configurable:!0,get:function(){return ee(this).description}}),o||U(X,"propertyIsEnumerable",Dt,{unsafe:!0}))),t({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),Ne(D(it),function(bt){ae(bt)}),t({target:Le,stat:!0,forced:!u},{for:function(qe){var me=_(qe);if(p(Te,me))return Te[me];var Rt=G(me);return Te[me]=Rt,ze[Rt]=me,Rt},keyFor:function(qe){if(!y(qe))throw TypeError(qe+" is not a symbol");if(p(ze,qe))return ze[qe]},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),t({target:"Object",stat:!0,forced:!u,sham:!l},{create:Ct,defineProperty:wt,defineProperties:xt,getOwnPropertyDescriptor:Ht}),t({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Je,getOwnPropertySymbols:ye}),t({target:"Object",stat:!0,forced:f(function(){F.f(1)})},{getOwnPropertySymbols:function(qe){return F.f(C(qe))}}),Z){var ie=!u||f(function(){var bt=G();return Z([bt])!="[null]"||Z({a:bt})!="{}"||Z(Object(bt))!="{}"});t({target:"JSON",stat:!0,forced:ie},{stringify:function(qe,me,Rt){for(var er=[qe],ct=1,zt;arguments.length>ct;)er.push(arguments[ct++]);return zt=me,!A(me)&&qe===void 0||y(qe)?void 0:(v(me)||(me=function(Kr,ar){if(typeof zt=="function"&&(ar=zt.call(this,Kr,ar)),!y(ar))return ar}),er[1]=me,Z.apply(null,er))}})}G[Q][ce]||K(G[Q],ce,G[Q].valueOf),ge(G,Le),Y[de]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),e=n("./node_modules/core-js/internals/array-for-each.js"),o=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var l in s){var u=t[l],f=u&&u.prototype;if(f&&f.forEach!==e)try{o(f,"forEach",e)}catch(p){f.forEach=e}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(r,i,n){var t=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),e=n("./node_modules/core-js/modules/es.array.iterator.js"),o=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=l("iterator"),f=l("toStringTag"),p=e.values;for(var v in s){var A=t[v],y=A&&A.prototype;if(y){if(y[u]!==p)try{o(y,u,p)}catch(C){y[u]=p}if(y[f]||o(y,f,v),s[v]){for(var x in e)if(y[x]!==e[x])try{o(y,x,e[x])}catch(C){y[x]=e[x]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(r){/*!
|
|
|
* @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(i,n){r.exports=n()})(this,function(){"use strict";function i(et){var Oe=typeof et;return et!==null&&(Oe==="object"||Oe==="function")}function n(et){return typeof et=="function"}var t=void 0;Array.isArray?t=Array.isArray:t=function(Oe){return Object.prototype.toString.call(Oe)==="[object Array]"};var s=t,e=0,o=void 0,l=void 0,u=function(Oe,gt){D[e]=Oe,D[e+1]=gt,e+=2,e===2&&(l?l(N):F())};function f(et){l=et}function p(et){u=et}var v=typeof window!="undefined"?window:void 0,A=v||{},y=A.MutationObserver||A.WebKitMutationObserver,x=typeof self=="undefined"&&typeof E!="undefined"&&{}.toString.call(E)==="[object process]",C=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function w(){return function(){return E.nextTick(N)}}function b(){return typeof o!="undefined"?function(){o(N)}:L()}function _(){var et=0,Oe=new y(N),gt=document.createTextNode("");return Oe.observe(gt,{characterData:!0}),function(){gt.data=et=++et%2}}function O(){var et=new MessageChannel;return et.port1.onmessage=N,function(){return et.port2.postMessage(0)}}function L(){var et=setTimeout;return function(){return et(N,1)}}var D=new Array(1e3);function N(){for(var et=0;et<e;et+=2){var Oe=D[et],gt=D[et+1];Oe(gt),D[et]=void 0,D[et+1]=void 0}e=0}function M(){try{var et=Function("return this")().require("vertx");return o=et.runOnLoop||et.runOnContext,b()}catch(Oe){return L()}}var F=void 0;x?F=w():y?F=_():C?F=O():v===void 0&&!0?F=M():F=L();function R(et,Oe){var gt=this,Ge=new this.constructor(K);Ge[B]===void 0&&Z(Ge);var wt=gt._state;if(wt){var xt=arguments[wt-1];u(function(){return Ke(wt,Ge,xt,gt._result)})}else Q(gt,Ge,et,Oe);return Ge}function j(et){var Oe=this;if(et&&typeof et=="object"&&et.constructor===Oe)return et;var gt=new Oe(K);return pe(gt,et),gt}var B=Math.random().toString(36).substring(2);function K(){}var U=void 0,z=1,V=2;function Y(){return new TypeError("You cannot resolve a promise with itself")}function J(){return new TypeError("A promises callback cannot return that same promise.")}function se(et,Oe,gt,Ge){try{et.call(Oe,gt,Ge)}catch(wt){return wt}}function $(et,Oe,gt){u(function(Ge){var wt=!1,xt=se(gt,Oe,function(Ct){if(wt)return;wt=!0,Oe!==Ct?pe(Ge,Ct):de(Ge,Ct)},function(Ct){if(wt)return;wt=!0,Le(Ge,Ct)},"Settle: "+(Ge._label||" unknown promise"));!wt&&xt&&(wt=!0,Le(Ge,xt))},et)}function ae(et,Oe){Oe._state===z?de(et,Oe._result):Oe._state===V?Le(et,Oe._result):Q(Oe,void 0,function(gt){return pe(et,gt)},function(gt){return Le(et,gt)})}function ge(et,Oe,gt){Oe.constructor===et.constructor&>===R&&Oe.constructor.resolve===j?ae(et,Oe):gt===void 0?de(et,Oe):n(gt)?$(et,Oe,gt):de(et,Oe)}function pe(et,Oe){if(et===Oe)Le(et,Y());else if(i(Oe)){var gt=void 0;try{gt=Oe.then}catch(Ge){Le(et,Ge);return}ge(et,Oe,gt)}else de(et,Oe)}function Ne(et){et._onerror&&et._onerror(et._result),ce(et)}function de(et,Oe){if(et._state!==U)return;et._result=Oe,et._state=z,et._subscribers.length!==0&&u(ce,et)}function Le(et,Oe){if(et._state!==U)return;et._state=V,et._result=Oe,u(Ne,et)}function Q(et,Oe,gt,Ge){var wt=et._subscribers,xt=wt.length;et._onerror=null,wt[xt]=Oe,wt[xt+z]=gt,wt[xt+V]=Ge,xt===0&&et._state&&u(ce,et)}function ce(et){var Oe=et._subscribers,gt=et._state;if(Oe.length===0)return;for(var Ge=void 0,wt=void 0,xt=et._result,Ct=0;Ct<Oe.length;Ct+=3)Ge=Oe[Ct],wt=Oe[Ct+gt],Ge?Ke(gt,Ge,wt,xt):wt(xt);et._subscribers.length=0}function Ke(et,Oe,gt,Ge){var wt=n(gt),xt=void 0,Ct=void 0,Dt=!0;if(wt){try{xt=gt(Ge)}catch(Ht){Dt=!1,Ct=Ht}if(Oe===xt){Le(Oe,J());return}}else xt=Ge;Oe._state!==U||(wt&&Dt?pe(Oe,xt):Dt===!1?Le(Oe,Ct):et===z?de(Oe,xt):et===V&&Le(Oe,xt))}function ee(et,Oe){try{Oe(function(Ge){pe(et,Ge)},function(Ge){Le(et,Ge)})}catch(gt){Le(et,gt)}}var X=0;function G(){return X++}function Z(et){et[B]=X++,et._state=void 0,et._result=void 0,et._subscribers=[]}function ve(){return new Error("Array Methods must be provided an Array")}var ue=function(){function et(Oe,gt){this._instanceConstructor=Oe,this.promise=new Oe(K),this.promise[B]||Z(this.promise),s(gt)?(this.length=gt.length,this._remaining=gt.length,this._result=new Array(this.length),this.length===0?de(this.promise,this._result):(this.length=this.length||0,this._enumerate(gt),this._remaining===0&&de(this.promise,this._result))):Le(this.promise,ve())}return et.prototype._enumerate=function(gt){for(var Ge=0;this._state===U&&Ge<gt.length;Ge++)this._eachEntry(gt[Ge],Ge)},et.prototype._eachEntry=function(gt,Ge){var wt=this._instanceConstructor,xt=wt.resolve;if(xt===j){var Ct=void 0,Dt=void 0,Ht=!1;try{Ct=gt.then}catch(ye){Ht=!0,Dt=ye}if(Ct===R&>._state!==U)this._settledAt(gt._state,Ge,gt._result);else if(typeof Ct!="function")this._remaining--,this._result[Ge]=gt;else if(wt===ze){var Je=new wt(K);Ht?Le(Je,Dt):ge(Je,gt,Ct),this._willSettleAt(Je,Ge)}else this._willSettleAt(new wt(function(ye){return ye(gt)}),Ge)}else this._willSettleAt(xt(gt),Ge)},et.prototype._settledAt=function(gt,Ge,wt){var xt=this.promise;xt._state===U&&(this._remaining--,gt===V?Le(xt,wt):this._result[Ge]=wt),this._remaining===0&&de(xt,this._result)},et.prototype._willSettleAt=function(gt,Ge){var wt=this;Q(gt,void 0,function(xt){return wt._settledAt(z,Ge,xt)},function(xt){return wt._settledAt(V,Ge,xt)})},et}();function _e(et){return new ue(this,et).promise}function xe(et){var Oe=this;return s(et)?new Oe(function(gt,Ge){for(var wt=et.length,xt=0;xt<wt;xt++)Oe.resolve(et[xt]).then(gt,Ge)}):new Oe(function(gt,Ge){return Ge(new TypeError("You must pass an array to race."))})}function oe(et){var Oe=this,gt=new Oe(K);return Le(gt,et),gt}function fe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ze=function(){function et(Oe){this[B]=G(),this._result=this._state=void 0,this._subscribers=[],K!==Oe&&(typeof Oe!="function"&&fe(),this instanceof et?ee(this,Oe):Te())}return et.prototype.catch=function(gt){return this.then(null,gt)},et.prototype.finally=function(gt){var Ge=this,wt=Ge.constructor;return n(gt)?Ge.then(function(xt){return wt.resolve(gt()).then(function(){return xt})},function(xt){return wt.resolve(gt()).then(function(){throw xt})}):Ge.then(gt,gt)},et}();ze.prototype.then=R,ze.all=_e,ze.race=xe,ze.resolve=j,ze.reject=oe,ze._setScheduler=f,ze._setAsap=p,ze._asap=u;function it(){var et=void 0;if(typeof I!="undefined")et=I;else if(typeof self!="undefined")et=self;else try{et=Function("return this")()}catch(Ge){throw new Error("polyfill failed because global object is unavailable in this environment")}var Oe=et.Promise;if(Oe){var gt=null;try{gt=Object.prototype.toString.call(Oe.resolve())}catch(Ge){}if(gt==="[object Promise]"&&!Oe.cast)return}et.Promise=ze}return ze.polyfill=it,ze.Promise=ze,ze})},html2canvas:function(r){"use strict";r.exports=g},jspdf:function(r){"use strict";r.exports=T}},m={};function h(a){var r=m[a];if(r!==void 0)return r.exports;var i=m[a]={exports:{}};return S[a].call(i.exports,i,i.exports,h),i.exports}!function(){h.n=function(a){var r=a&&a.__esModule?function(){return a.default}:function(){return a};return h.d(r,{a:r}),r}}(),!function(){h.d=function(a,r){for(var i in r)h.o(r,i)&&!h.o(a,i)&&Object.defineProperty(a,i,{enumerable:!0,get:r[i]})}}(),!function(){h.o=function(a,r){return Object.prototype.hasOwnProperty.call(a,r)}}(),!function(){h.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var c={};return!function(){"use strict";/*!**********************!*\
|
|
|
!*** ./src/index.js ***!
|
|
|
\**********************/h.r(c);var a=h("./src/worker.js"),r=h("./src/plugin/jspdf-plugin.js"),i=h("./src/plugin/pagebreaks.js"),n=h("./src/plugin/hyperlinks.js"),t=function s(e,o){var l=new s.Worker(o);return e?l.from(e).save():l};t.Worker=a.default,c.default=t}(),c=c.default,c}()})}).call(this,d("yLpj"),d("Q2Ig"))},"1q3G":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=I;function I(){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(H,k,d){var I=d("MBQ8"),E=I.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(g){return g.stack=null,E.superApply(this,"getInitialData",arguments)}}),T=E;H.exports=T},"1u/T":function(H,k,d){var I=d("ProS"),E={type:"selectDataRange",event:"dataRangeSelected",update:"update"};I.registerAction(E,function(T,g){g.eachComponent({mainType:"visualMap",query:T},function(S){S.setSelected(T.selected)})})},"1uat":function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("MlIO"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.Hasher,S=E.x64,m=S.Word,h=S.WordArray,c=E.algo;function a(){return m.create.apply(m,arguments)}var r=[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)],i=[];(function(){for(var t=0;t<80;t++)i[t]=a()})();var n=c.SHA512=g.extend({_doReset:function(){this._hash=new h.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(s,e){for(var o=this._hash.words,l=o[0],u=o[1],f=o[2],p=o[3],v=o[4],A=o[5],y=o[6],x=o[7],C=l.high,w=l.low,b=u.high,_=u.low,O=f.high,L=f.low,D=p.high,N=p.low,M=v.high,F=v.low,R=A.high,j=A.low,B=y.high,K=y.low,U=x.high,z=x.low,V=C,Y=w,J=b,se=_,$=O,ae=L,ge=D,pe=N,Ne=M,de=F,Le=R,Q=j,ce=B,Ke=K,ee=U,X=z,G=0;G<80;G++){var Z,ve,ue=i[G];if(G<16)ve=ue.high=s[e+G*2]|0,Z=ue.low=s[e+G*2+1]|0;else{var _e=i[G-15],xe=_e.high,oe=_e.low,fe=(xe>>>1|oe<<31)^(xe>>>8|oe<<24)^xe>>>7,Te=(oe>>>1|xe<<31)^(oe>>>8|xe<<24)^(oe>>>7|xe<<25),ze=i[G-2],it=ze.high,et=ze.low,Oe=(it>>>19|et<<13)^(it<<3|et>>>29)^it>>>6,gt=(et>>>19|it<<13)^(et<<3|it>>>29)^(et>>>6|it<<26),Ge=i[G-7],wt=Ge.high,xt=Ge.low,Ct=i[G-16],Dt=Ct.high,Ht=Ct.low;Z=Te+xt,ve=fe+wt+(Z>>>0<Te>>>0?1:0),Z=Z+gt,ve=ve+Oe+(Z>>>0<gt>>>0?1:0),Z=Z+Ht,ve=ve+Dt+(Z>>>0<Ht>>>0?1:0),ue.high=ve,ue.low=Z}var Je=Ne&Le^~Ne&ce,ye=de&Q^~de&Ke,ie=V&J^V&$^J&$,bt=Y&se^Y&ae^se&ae,qe=(V>>>28|Y<<4)^(V<<30|Y>>>2)^(V<<25|Y>>>7),me=(Y>>>28|V<<4)^(Y<<30|V>>>2)^(Y<<25|V>>>7),Rt=(Ne>>>14|de<<18)^(Ne>>>18|de<<14)^(Ne<<23|de>>>9),er=(de>>>14|Ne<<18)^(de>>>18|Ne<<14)^(de<<23|Ne>>>9),ct=r[G],zt=ct.high,sr=ct.low,Kr=X+er,ar=ee+Rt+(Kr>>>0<X>>>0?1:0),Kr=Kr+ye,ar=ar+Je+(Kr>>>0<ye>>>0?1:0),Kr=Kr+sr,ar=ar+zt+(Kr>>>0<sr>>>0?1:0),Kr=Kr+Z,ar=ar+ve+(Kr>>>0<Z>>>0?1:0),nr=me+bt,Lt=qe+ie+(nr>>>0<me>>>0?1:0);ee=ce,X=Ke,ce=Le,Ke=Q,Le=Ne,Q=de,de=pe+Kr|0,Ne=ge+ar+(de>>>0<pe>>>0?1:0)|0,ge=$,pe=ae,$=J,ae=se,J=V,se=Y,Y=Kr+nr|0,V=ar+Lt+(Y>>>0<Kr>>>0?1:0)|0}w=l.low=w+Y,l.high=C+V+(w>>>0<Y>>>0?1:0),_=u.low=_+se,u.high=b+J+(_>>>0<se>>>0?1:0),L=f.low=L+ae,f.high=O+$+(L>>>0<ae>>>0?1:0),N=p.low=N+pe,p.high=D+ge+(N>>>0<pe>>>0?1:0),F=v.low=F+de,v.high=M+Ne+(F>>>0<de>>>0?1:0),j=A.low=j+Q,A.high=R+Le+(j>>>0<Q>>>0?1:0),K=y.low=K+Ke,y.high=B+ce+(K>>>0<Ke>>>0?1:0),z=x.low=z+X,x.high=U+ee+(z>>>0<X>>>0?1:0)},_doFinalize:function(){var s=this._data,e=s.words,o=this._nDataBytes*8,l=s.sigBytes*8;e[l>>>5]|=128<<24-l%32,e[(l+128>>>10<<5)+30]=Math.floor(o/4294967296),e[(l+128>>>10<<5)+31]=o,s.sigBytes=e.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var s=g.clone.call(this);return s._hash=this._hash.clone(),s},blockSize:1024/32});E.SHA512=g._createHelper(n),E.HmacSHA512=g._createHmacHelper(n)}(),I.SHA512})},"1vzs":function(H,k,d){"use strict";d.d(k,"a",function(){return e});var I=d("q1tI"),E=d.n(I),T=d("HQEm"),g=d.n(T),S=d("gZBC"),m=d.n(S),h=d("NAnI"),c=d.n(h),a=d("V/uB"),r=d.n(a),i=d("kbBi"),n=d.n(i),t=d("w6Tc"),s=d.n(t);function e(o){var l=o.suffixIcon,u=o.clearIcon,f=o.menuItemSelectedIcon,p=o.removeIcon,v=o.loading,A=o.multiple,y=o.prefixCls,x=u;u||(x=I.createElement(n.a,null));var C=null;if(l!==void 0)C=l;else if(v)C=I.createElement(m.a,{spin:!0});else{var w="".concat(y,"-suffix");C=function(L){var D=L.open,N=L.showSearch;return D&&N?I.createElement(s.a,{className:w}):I.createElement(g.a,{className:w})}}var b=null;f!==void 0?b=f:A?b=I.createElement(c.a,null):b=null;var _=null;return p!==void 0?_=p:_=I.createElement(r.a,null),{clearIcon:x,suffixIcon:C,itemIcon:b,removeIcon:_}}},"1xaR":function(H,k,d){var I=d("ProS"),E=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var T=d("mOdp"),g=d("y3NT"),S=d("0/Rx");I.registerVisual(E.curry(T,"sunburst")),I.registerLayout(E.curry(g,"sunburst")),I.registerProcessor(E.curry(S,"sunburst"))},"24YM":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.SensorTabIndex=k.SensorClassName=k.SizeSensorId=void 0;var I="size-sensor-id";k.SizeSensorId=I;var E="size-sensor-object";k.SensorClassName=E;var T="-1";k.SensorTabIndex=T},"2548":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("6GrX"),g=d("IUWy"),S=d("IwbS"),m=d("Qxkt"),h=d("gPAo"),c=d("eRkO"),a=I.extendComponentView({type:"toolbox",render:function(i,n,t,s){var e=this.group;if(e.removeAll(),!i.get("show"))return;var o=+i.get("itemSize"),l=i.get("feature")||{},u=this._features||(this._features={}),f=[];E.each(l,function(A,y){f.push(y)}),new h(this._featureNames||[],f).add(p).update(p).remove(E.curry(p,null)).execute(),this._featureNames=f;function p(A,y){var x=f[A],C=f[y],w=l[x],b=new m(w,i,i.ecModel),_;if(s&&s.newTitle!=null&&s.featureName===x&&(w.title=s.newTitle),x&&!C){if(r(x))_={model:b,onclick:b.option.onclick,featureName:x};else{var O=g.get(x);if(!O)return;_=new O(b,n,t)}u[x]=_}else{if(_=u[C],!_)return;_.model=b,_.ecModel=n,_.api=t}if(!x&&C){_.dispose&&_.dispose(n,t);return}if(!b.get("show")||_.unusable){_.remove&&_.remove(n,t);return}v(b,_,x),b.setIconStatus=function(L,D){var N=this.option,M=this.iconPaths;N.iconStatus=N.iconStatus||{},N.iconStatus[L]=D,M[L]&&M[L].trigger(D)},_.render&&_.render(b,n,t,s)}function v(A,y,x){var C=A.getModel("iconStyle"),w=A.getModel("emphasis.iconStyle"),b=y.getIcons?y.getIcons():A.get("icon"),_=A.get("title")||{};if(typeof b=="string"){var O=b,L=_;b={},_={},b[x]=O,_[x]=L}var D=A.iconPaths={};E.each(b,function(N,M){var F=S.createIcon(N,{},{x:-o/2,y:-o/2,width:o,height:o});F.setStyle(C.getItemStyle()),F.hoverStyle=w.getItemStyle(),F.setStyle({text:_[M],textAlign:w.get("textAlign"),textBorderRadius:w.get("textBorderRadius"),textPadding:w.get("textPadding"),textFill:null});var R=i.getModel("tooltip");R&&R.get("show")&&F.attr("tooltip",E.extend({content:_[M],formatter:R.get("formatter",!0)||function(){return _[M]},formatterParams:{componentType:"toolbox",name:M,title:_[M],$vars:["name","title"]},position:R.get("position",!0)||"bottom"},R.option)),S.setHoverStyle(F),i.get("showTitle")&&(F.__title=_[M],F.on("mouseover",function(){var j=w.getItemStyle(),B=i.get("orient")==="vertical"?i.get("right")==null?"right":"left":i.get("bottom")==null?"bottom":"top";F.setStyle({textFill:w.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:w.get("textBackgroundColor"),textPosition:w.get("textPosition")||B})}).on("mouseout",function(){F.setStyle({textFill:null,textBackgroundColor:null})})),F.trigger(A.get("iconStatus."+M)||"normal"),e.add(F),F.on("click",E.bind(y.onclick,y,n,t,M)),D[M]=F})}c.layout(e,i,t),e.add(c.makeBackground(e.getBoundingRect(),i)),e.eachChild(function(A){var y=A.__title,x=A.hoverStyle;if(x&&y){var C=T.getBoundingRect(y,T.makeFont(x)),w=A.position[0]+e.position[0],b=A.position[1]+e.position[1]+o,_=!1;b+C.height>t.getHeight()&&(x.textPosition="top",_=!0);var O=_?-5-C.height:o+8;w+C.width/2>t.getWidth()?(x.textPosition=["100%",O],x.textAlign="right"):w-C.width/2<0&&(x.textPosition=[0,O],x.textAlign="left")}})},updateView:function(i,n,t,s){E.each(this._features,function(e){e.updateView&&e.updateView(e.model,n,t,s)})},remove:function(i,n){E.each(this._features,function(t){t.remove&&t.remove(i,n)}),this.group.removeAll()},dispose:function(i,n){E.each(this._features,function(t){t.dispose&&t.dispose(i,n)})}});function r(i){return i.indexOf("my")===0}H.exports=a},"2B6p":function(H,k){function d(I,E,T){var g=I.getZoom(),S=I.getCenter(),m=E.zoom,h=I.dataToPoint(S);if(E.dx!=null&&E.dy!=null){h[0]-=E.dx,h[1]-=E.dy;var S=I.pointToData(h);I.setCenter(S)}if(m!=null){if(T){var c=T.min||0,a=T.max||Infinity;m=Math.max(Math.min(g*m,a),c)/g}I.scale[0]*=m,I.scale[1]*=m;var r=I.position,i=(E.originX-r[0])*(m-1),n=(E.originY-r[1])*(m-1);r[0]-=i,r[1]-=n,I.updateTransform();var S=I.pointToData(h);I.setCenter(S),I.setZoom(m*g)}return{center:I.getCenter(),zoom:I.getZoom()}}k.updateCenterAndZoom=d},"2BaD":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="CloseCircleOutlined";var h=k.a=E.forwardRef(m)},"2DNl":function(H,k,d){var I=d("IMiH"),E=d("loD1"),T=d("59Ip"),g=d("aKvl"),S=d("n1HI"),m=d("hX1E"),h=m.normalizeRadian,c=d("Sj9i"),a=d("hyiK"),r=I.CMD,i=Math.PI*2,n=1e-4;function t(y,x){return Math.abs(y-x)<n}var s=[-1,-1,-1],e=[-1,-1];function o(){var y=e[0];e[0]=e[1],e[1]=y}function l(y,x,C,w,b,_,O,L,D,N){if(N>x&&N>w&&N>_&&N>L||N<x&&N<w&&N<_&&N<L)return 0;var M=c.cubicRootAt(x,w,_,L,N,s);if(M===0)return 0;for(var F=0,R=-1,j,B,K=0;K<M;K++){var U=s[K],z=U===0||U===1?.5:1,V=c.cubicAt(y,C,b,O,U);if(V<D)continue;R<0&&(R=c.cubicExtrema(x,w,_,L,e),e[1]<e[0]&&R>1&&o(),j=c.cubicAt(x,w,_,L,e[0]),R>1&&(B=c.cubicAt(x,w,_,L,e[1]))),R===2?U<e[0]?F+=j<x?z:-z:U<e[1]?F+=B<j?z:-z:F+=L<B?z:-z:U<e[0]?F+=j<x?z:-z:F+=L<j?z:-z}return F}function u(y,x,C,w,b,_,O,L){if(L>x&&L>w&&L>_||L<x&&L<w&&L<_)return 0;var D=c.quadraticRootAt(x,w,_,L,s);if(D===0)return 0;var N=c.quadraticExtremum(x,w,_);if(N>=0&&N<=1){for(var M=0,F=c.quadraticAt(x,w,_,N),R=0;R<D;R++){var j=s[R]===0||s[R]===1?.5:1,B=c.quadraticAt(y,C,b,s[R]);if(B<O)continue;s[R]<N?M+=F<x?j:-j:M+=_<F?j:-j}return M}else{var j=s[0]===0||s[0]===1?.5:1,B=c.quadraticAt(y,C,b,s[0]);return B<O?0:_<x?j:-j}}function f(y,x,C,w,b,_,O,L){if(L-=x,L>C||L<-C)return 0;var D=Math.sqrt(C*C-L*L);s[0]=-D,s[1]=D;var N=Math.abs(w-b);if(N<1e-4)return 0;if(N%i<1e-4){w=0,b=i;var M=_?1:-1;return O>=s[0]+y&&O<=s[1]+y?M:0}if(_){var D=w;w=h(b),b=h(D)}else w=h(w),b=h(b);w>b&&(b+=i);for(var F=0,R=0;R<2;R++){var j=s[R];if(j+y>O){var B=Math.atan2(L,j),M=_?1:-1;B<0&&(B=i+B),(B>=w&&B<=b||B+i>=w&&B+i<=b)&&(B>Math.PI/2&&B<Math.PI*1.5&&(M=-M),F+=M)}}return F}function p(y,x,C,w,b){for(var _=0,O=0,L=0,D=0,N=0,M=0;M<y.length;){var F=y[M++];F===r.M&&M>1&&(C||(_+=a(O,L,D,N,w,b))),M===1&&(O=y[M],L=y[M+1],D=O,N=L);switch(F){case r.M:D=y[M++],N=y[M++],O=D,L=N;break;case r.L:if(C){if(E.containStroke(O,L,y[M],y[M+1],x,w,b))return!0}else _+=a(O,L,y[M],y[M+1],w,b)||0;O=y[M++],L=y[M++];break;case r.C:if(C){if(T.containStroke(O,L,y[M++],y[M++],y[M++],y[M++],y[M],y[M+1],x,w,b))return!0}else _+=l(O,L,y[M++],y[M++],y[M++],y[M++],y[M],y[M+1],w,b)||0;O=y[M++],L=y[M++];break;case r.Q:if(C){if(g.containStroke(O,L,y[M++],y[M++],y[M],y[M+1],x,w,b))return!0}else _+=u(O,L,y[M++],y[M++],y[M],y[M+1],w,b)||0;O=y[M++],L=y[M++];break;case r.A:var R=y[M++],j=y[M++],B=y[M++],K=y[M++],U=y[M++],z=y[M++];M+=1;var V=1-y[M++],Y=Math.cos(U)*B+R,J=Math.sin(U)*K+j;M>1?_+=a(O,L,Y,J,w,b):(D=Y,N=J);var se=(w-R)*K/B+R;if(C){if(S.containStroke(R,j,K,U,U+z,V,x,se,b))return!0}else _+=f(R,j,K,U,U+z,V,se,b);O=Math.cos(U+z)*B+R,L=Math.sin(U+z)*K+j;break;case r.R:D=O=y[M++],N=L=y[M++];var $=y[M++],ae=y[M++],Y=D+$,J=N+ae;if(C){if(E.containStroke(D,N,Y,N,x,w,b)||E.containStroke(Y,N,Y,J,x,w,b)||E.containStroke(Y,J,D,J,x,w,b)||E.containStroke(D,J,D,N,x,w,b))return!0}else _+=a(Y,N,Y,J,w,b),_+=a(D,J,D,N,w,b);break;case r.Z:if(C){if(E.containStroke(O,L,D,N,x,w,b))return!0}else _+=a(O,L,D,N,w,b);O=D,L=N;break}}return!C&&!t(L,N)&&(_+=a(O,L,D,N,w,b)||0),_!==0}function v(y,x,C){return p(y,0,!1,x,C)}function A(y,x,C,w){return p(y,x,!0,C,w)}k.contain=v,k.containStroke=A},"2KFj":function(H,k,d){"use strict";d.d(k,"a",function(){return T});var I=d("XPR9");function E(g,S){for(;!Object.prototype.hasOwnProperty.call(g,S)&&!(g=Object(I.a)(g),g===null););return g}function T(g,S,m){return typeof Reflect!="undefined"&&Reflect.get?T=Reflect.get:T=function(c,a,r){var i=E(c,a);if(!i)return;var n=Object.getOwnPropertyDescriptor(i,a);return n.get?n.get.call(r):n.value},T(g,S,m||g)}},"2Qr1":function(H,k,d){"use strict";d.d(k,"d",function(){return a}),d.d(k,"c",function(){return i}),d.d(k,"e",function(){return n}),d.d(k,"b",function(){return e}),d.d(k,"f",function(){return o}),d.d(k,"g",function(){return l}),d.d(k,"a",function(){return u});var I=d("rePB"),E=d("KQm4"),T=d("T5bk"),g=d("U8pU"),S=d("VTBJ"),m=d("Kwbf"),h=d("WKfj");function c(f,p){var v=f.key,A;return"value"in f&&(A=f.value),v!=null?v:A!==void 0?A:"rc-index-key-".concat(p)}function a(f){var p=[];function v(A,y){A.forEach(function(x){y||!("options"in x)?p.push({key:c(x,p.length),groupOption:y,data:x}):(p.push({key:c(x,p.length),group:!0,data:x}),v(x.options,!0))})}return v(f,!1),p}function r(f){var p=Object(S.a)({},f);return"props"in p||Object.defineProperty(p,"props",{get:function(){return Object(m.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),p}}),p}function i(f,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=v.prevValueOptions,y=A===void 0?[]:A,x=new Map;return p.forEach(function(C){if(!C.group){var w=C.data;x.set(w.value,w)}}),f.map(function(C){var w=x.get(C);return w||(w=Object(S.a)({},y.find(function(b){return b._INTERNAL_OPTION_VALUE_===C}))),r(w)})}var n=function(p,v){var A=v.options,y=v.prevValue,x=v.labelInValue,C=v.optionLabelProp,w=i([p],A)[0],b={value:p},_,O=Object(h.d)(y);return x&&(_=O.find(function(L){return Object(g.a)(L)==="object"&&"value"in L?L.value===p:L.key===p})),_&&Object(g.a)(_)==="object"&&"label"in _?(b.label=_.label,w&&typeof _.label=="string"&&typeof w[C]=="string"&&_.label.trim()!==w[C].trim()&&Object(m.a)(!1,"`label` of `value` is not same as `label` in Select options.")):w&&C in w?b.label=w[C]:b.label=p,b.key=b.value,b};function t(f){return Object(h.d)(f).join("")}function s(f){return function(p,v){var A=p.toLowerCase();if("options"in v)return t(v.label).toLowerCase().includes(A);var y=v[f],x=t(y).toLowerCase();return x.includes(A)}}function e(f,p,v){var A=v.optionFilterProp,y=v.filterOption,x=[],C;return y===!1?p:(typeof y=="function"?C=y:C=s(A),p.forEach(function(w){if("options"in w){var b=C(f,w);if(b)x.push(w);else{var _=w.options.filter(function(O){return C(f,O)});_.length&&x.push(Object(S.a)(Object(S.a)({},w),{},{options:_}))}return}C(f,r(w))&&x.push(w)}),x)}function o(f,p){if(!p||!p.length)return null;var v=!1;function A(x,C){var w=Object(T.a)(C),b=w[0],_=w.slice(1);if(!b)return[x];var O=x.split(b);return v=v||O.length>1,O.reduce(function(L,D){return[].concat(Object(E.a)(L),Object(E.a)(A(D,_)))},[]).filter(function(L){return L})}var y=A(f,p);return v?y:null}function l(f,p){var v=i([f],p)[0];return v.disabled}function u(f,p,v,A){var y=Object(h.d)(p).slice().sort(),x=Object(E.a)(f),C=new Set;return f.forEach(function(w){w.options?w.options.forEach(function(b){C.add(b.value)}):C.add(w.value)}),y.forEach(function(w){var b=A?w.value:w;if(!C.has(b)){var _;x.push(A?(_={},Object(I.a)(_,v,w.label),Object(I.a)(_,"value",b),_):{value:b})}}),x}},"2dDv":function(H,k,d){var I=d("bYtY"),E=d("Fofx"),T=d("+TT/"),g=d("aX7z"),S=d("D1WM"),m=d("IwbS"),h=d("OELB"),c=d("72pK"),a=I.each,r=Math.min,i=Math.max,n=Math.floor,t=Math.ceil,s=h.round,e=Math.PI;function o(v,A,y){this._axesMap=I.createHashMap(),this._axesLayout={},this.dimensions=v.dimensions,this._rect,this._model=v,this._init(v,A,y)}o.prototype={type:"parallel",constructor:o,_init:function(v,A,y){var x=v.dimensions,C=v.parallelAxisIndex;a(x,function(w,b){var _=C[b],O=A.getComponent("parallelAxis",_),L=this._axesMap.set(w,new S(w,g.createScaleByModel(O),[0,0],O.get("type"),_)),D=L.type==="category";L.onBand=D&&O.get("boundaryGap"),L.inverse=O.get("inverse"),O.axis=L,L.model=O,L.coordinateSystem=O.coordinateSystem=this},this)},update:function(v,A){this._updateAxesFromSeries(this._model,v)},containPoint:function(v){var A=this._makeLayoutInfo(),y=A.axisBase,x=A.layoutBase,C=A.pixelDimIndex,w=v[1-C],b=v[C];return w>=y&&w<=y+A.axisLength&&b>=x&&b<=x+A.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(v,A){A.eachSeries(function(y){if(!v.contains(y,A))return;var x=y.getData();a(this.dimensions,function(C){var w=this._axesMap.get(C);w.scale.unionExtentFromData(x,x.mapDimension(C)),g.niceScaleExtent(w.scale,w.model)},this)},this)},resize:function(v,A){this._rect=T.getLayoutRect(v.getBoxLayoutParams(),{width:A.getWidth(),height:A.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var v=this._model,A=this._rect,y=["x","y"],x=["width","height"],C=v.get("layout"),w=C==="horizontal"?0:1,b=A[x[w]],_=[0,b],O=this.dimensions.length,L=l(v.get("axisExpandWidth"),_),D=l(v.get("axisExpandCount")||0,[0,O]),N=v.get("axisExpandable")&&O>3&&O>D&&D>1&&L>0&&b>0,M=v.get("axisExpandWindow"),F;if(M)F=l(M[1]-M[0],_),M[1]=M[0]+F;else{F=l(L*(D-1),_);var R=v.get("axisExpandCenter")||n(O/2);M=[L*R-F/2],M[1]=M[0]+F}var j=(b-F)/(O-D);j<3&&(j=0);var B=[n(s(M[0]/L,1))+1,t(s(M[1]/L,1))-1],K=j/L*M[0];return{layout:C,pixelDimIndex:w,layoutBase:A[y[w]],layoutLength:b,axisBase:A[y[1-w]],axisLength:A[x[1-w]],axisExpandable:N,axisExpandWidth:L,axisCollapseWidth:j,axisExpandWindow:M,axisCount:O,winInnerIndices:B,axisExpandWindow0Pos:K}},_layoutAxes:function(){var v=this._rect,A=this._axesMap,y=this.dimensions,x=this._makeLayoutInfo(),C=x.layout;A.each(function(w){var b=[0,x.axisLength],_=w.inverse?1:0;w.setExtent(b[_],b[1-_])}),a(y,function(w,b){var _=(x.axisExpandable?f:u)(b,x),O={horizontal:{x:_.position,y:x.axisLength},vertical:{x:0,y:_.position}},L={horizontal:e/2,vertical:0},D=[O[C].x+v.x,O[C].y+v.y],N=L[C],M=E.create();E.rotate(M,M,N),E.translate(M,M,D),this._axesLayout[w]={position:D,rotation:N,transform:M,axisNameAvailableWidth:_.axisNameAvailableWidth,axisLabelShow:_.axisLabelShow,nameTruncateMaxWidth:_.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(v){return this._axesMap.get(v)},dataToPoint:function(v,A){return this.axisCoordToPoint(this._axesMap.get(A).dataToCoord(v),A)},eachActiveState:function(v,A,y,x){y==null&&(y=0),x==null&&(x=v.count());var C=this._axesMap,w=this.dimensions,b=[],_=[];I.each(w,function(j){b.push(v.mapDimension(j)),_.push(C.get(j).model)});for(var O=this.hasAxisBrushed(),L=y;L<x;L++){var D;if(!O)D="normal";else{D="active";for(var N=v.getValues(b,L),M=0,F=w.length;M<F;M++){var R=_[M].getActiveState(N[M]);if(R==="inactive"){D="inactive";break}}}A(D,L)}},hasAxisBrushed:function(){for(var v=this.dimensions,A=this._axesMap,y=!1,x=0,C=v.length;x<C;x++)A.get(v[x]).model.getActiveState()!=="normal"&&(y=!0);return y},axisCoordToPoint:function(v,A){var y=this._axesLayout[A];return m.applyTransform([v,0],y.transform)},getAxisLayout:function(v){return I.clone(this._axesLayout[v])},getSlidedAxisExpandWindow:function(v){var A=this._makeLayoutInfo(),y=A.pixelDimIndex,x=A.axisExpandWindow.slice(),C=x[1]-x[0],w=[0,A.axisExpandWidth*(A.axisCount-1)];if(!this.containPoint(v))return{behavior:"none",axisExpandWindow:x};var b=v[y]-A.layoutBase-A.axisExpandWindow0Pos,_,O="slide",L=A.axisCollapseWidth,D=this._model.get("axisExpandSlideTriggerArea"),N=D[0]!=null;if(L)N&&L&&b<C*D[0]?(O="jump",_=b-C*D[2]):N&&L&&b>C*(1-D[0])?(O="jump",_=b-C*(1-D[2])):(_=b-C*D[1])>=0&&(_=b-C*(1-D[1]))<=0&&(_=0),_*=A.axisExpandWidth/L,_?c(_,x,w,"all"):O="none";else{var C=x[1]-x[0],M=w[1]*b/C;x=[i(0,M-C/2)],x[1]=r(w[1],x[0]+C),x[0]=x[1]-C}return{axisExpandWindow:x,behavior:O}}};function l(v,A){return r(i(v,A[0]),A[1])}function u(v,A){var y=A.layoutLength/(A.axisCount-1);return{position:y*v,axisNameAvailableWidth:y,axisLabelShow:!0}}function f(v,A){var y=A.layoutLength,x=A.axisExpandWidth,C=A.axisCount,w=A.axisCollapseWidth,b=A.winInnerIndices,_,O=w,L=!1,D;return v<b[0]?(_=v*w,D=w):v<=b[1]?(_=A.axisExpandWindow0Pos+v*x-A.axisExpandWindow[0],O=x,L=!0):(_=y-(C-1-v)*w,D=w),{position:_,axisNameAvailableWidth:O,axisLabelShow:L,nameTruncateMaxWidth:D}}var p=o;H.exports=p},"2fGM":function(H,k,d){var I=d("bYtY"),E=d("bLfw"),T=d("nkfE"),g=d("ICMv"),S=E.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});I.merge(S.prototype,g);var m={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function h(c,a){return a.type||(a.data?"category":"value")}T("angle",S,h,m.angle),T("radius",S,h,m.radius)},"2fM7":function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("7W2i"),r=d.n(a),i=d("LQ03"),n=d.n(i),t=d("q1tI"),s=d("BGR+"),e=d("TSYQ"),o=d.n(e),l=d("1OyB"),u=d("vuIU"),f=d("Ji7U"),p=d("LK+K"),v=d("rePB"),A=d("Ff2n"),y=d("ODXe"),x=d("4IlW"),C=d("bX4T"),w=d("YrtM"),b=d("+nKL"),_=d("8OUc"),O=function(G,Z){var ve=G.prefixCls,ue=G.id,_e=G.flattenOptions,xe=G.childrenAsData,oe=G.values,fe=G.searchValue,Te=G.multiple,ze=G.defaultActiveFirstOption,it=G.height,et=G.itemHeight,Oe=G.notFoundContent,gt=G.open,Ge=G.menuItemSelectedIcon,wt=G.virtual,xt=G.onSelect,Ct=G.onToggleOpen,Dt=G.onActiveValue,Ht=G.onScroll,Je=G.onMouseEnter,ye="".concat(ve,"-item"),ie=Object(w.a)(function(){return _e},[gt,_e],function(Lt,st){return st[0]&&Lt[1]!==st[1]}),bt=t.useRef(null),qe=function(st){st.preventDefault()},me=function(st){bt.current&&bt.current.scrollTo({index:st})},Rt=function(st){for(var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,qt=ie.length,Sr=0;Sr<qt;Sr+=1){var Ar=(st+Sr*Qe+qt)%qt,hr=ie[Ar],vn=hr.group,Zr=hr.data;if(!vn&&!Zr.disabled)return Ar}return-1},er=t.useState(function(){return Rt(0)}),ct=Object(y.a)(er,2),zt=ct[0],sr=ct[1],Kr=function(st){sr(st);var Qe=ie[st];if(!Qe){Dt(null,-1);return}Dt(Qe.data.value,st)};t.useEffect(function(){Kr(ze!==!1?Rt(0):-1)},[ie.length,fe]),t.useEffect(function(){var Lt=setTimeout(function(){if(!Te&>&&oe.size===1){var st=Array.from(oe)[0],Qe=ie.findIndex(function(qt){var Sr=qt.data;return Sr.value===st});Kr(Qe),me(Qe)}});return function(){return clearTimeout(Lt)}},[gt]);var ar=function(st){st!==void 0&&xt(st,{selected:!oe.has(st)}),Te||Ct(!1)};if(t.useImperativeHandle(Z,function(){return{onKeyDown:function(st){var Qe=st.which;switch(Qe){case x.a.UP:case x.a.DOWN:{var qt=0;if(Qe===x.a.UP?qt=-1:Qe===x.a.DOWN&&(qt=1),qt!==0){var Sr=Rt(zt+qt,qt);me(Sr),Kr(Sr)}break}case x.a.ENTER:{var Ar=ie[zt];Ar&&!Ar.data.disabled?ar(Ar.data.value):ar(void 0),gt&&st.preventDefault();break}case x.a.ESC:Ct(!1)}},onKeyUp:function(){},scrollTo:function(st){me(st)}}}),ie.length===0)return t.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),className:"".concat(ye,"-empty"),onMouseDown:qe},Oe);function nr(Lt){var st=ie[Lt];if(!st)return null;var Qe=st.data||{},qt=Qe.value,Sr=Qe.label,Ar=Qe.children,hr=Object(C.a)(Qe,!0),vn=xe?Ar:Sr;return st?t.createElement("div",Object.assign({"aria-label":typeof vn=="string"?vn:null},hr,{key:Lt,role:"option",id:"".concat(ue,"_list_").concat(Lt),"aria-selected":oe.has(qt)}),qt):null}return t.createElement(t.Fragment,null,t.createElement("div",{role:"listbox",id:"".concat(ue,"_list"),style:{height:0,width:0,overflow:"hidden"}},nr(zt-1),nr(zt),nr(zt+1)),t.createElement(b.a,{itemKey:"key",ref:bt,data:ie,height:it,itemHeight:et,fullHeight:!1,onMouseDown:qe,onScroll:Ht,virtual:wt,onMouseEnter:Je},function(Lt,st){var Qe,qt=Lt.group,Sr=Lt.groupOption,Ar=Lt.data,hr=Ar.label,vn=Ar.key;if(qt)return t.createElement("div",{className:o()(ye,"".concat(ye,"-group"))},hr!==void 0?hr:vn);var Zr=Ar.disabled,Ln=Ar.value,$e=Ar.title,tt=Ar.children,Ee=Ar.style,Re=Ar.className,je=Object(A.a)(Ar,["disabled","value","title","children","style","className"]),nt=oe.has(Ln),Vt="".concat(ye,"-option"),Bt=o()(ye,Vt,Re,(Qe={},Object(v.a)(Qe,"".concat(Vt,"-grouped"),Sr),Object(v.a)(Qe,"".concat(Vt,"-active"),zt===st&&!Zr),Object(v.a)(Qe,"".concat(Vt,"-disabled"),Zr),Object(v.a)(Qe,"".concat(Vt,"-selected"),nt),Qe)),Xt=xe?tt:hr,Rr=!Ge||typeof Ge=="function"||nt;return t.createElement("div",Object.assign({},je,{"aria-selected":nt,className:Bt,title:$e,onMouseMove:function(){if(zt===st||Zr)return;Kr(st)},onClick:function(){Zr||ar(Ln)},style:Ee}),t.createElement("div",{className:"".concat(Vt,"-content")},Xt||Ln),t.isValidElement(Ge)||nt,Rr&&t.createElement(_.a,{className:"".concat(ye,"-option-state"),customizeIcon:Ge,customizeIconProps:{isSelected:nt}},nt?"\u2713":null))}))},L=t.forwardRef(O);L.displayName="OptionList";var D=L,N=function(){return null};N.isSelectOption=!0;var M=N,F=function(){return null};F.isSelectOptGroup=!0;var R=F,j=d("VTBJ"),B=d("Zm9Q");function K(X){var G=X.key,Z=X.props,ve=Z.children,ue=Z.value,_e=Object(A.a)(Z,["children","value"]);return Object(j.a)({key:G,value:ue!==void 0?ue:G,children:ve},_e)}function U(X){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(X).map(function(Z,ve){if(!t.isValidElement(Z)||!Z.type)return null;var ue=Z.type.isSelectOptGroup,_e=Z.key,xe=Z.props,oe=xe.children,fe=Object(A.a)(xe,["children"]);return G||!ue?K(Z):Object(j.a)(Object(j.a)({key:"__RC_SELECT_GRP__".concat(_e===null?ve:_e,"__"),label:_e},fe),{},{options:U(oe)})}).filter(function(Z){return Z})}var z=d("2Qr1"),V=d("qNPg"),Y=d("U8pU"),J=d("Kwbf"),se=d("WKfj");function $(X){var G=X.mode,Z=X.options,ve=X.children,ue=X.backfill,_e=X.allowClear,xe=X.placeholder,oe=X.getInputElement,fe=X.showSearch,Te=X.onSearch,ze=X.defaultOpen,it=X.autoFocus,et=X.labelInValue,Oe=X.value,gt=X.inputValue,Ge=X.optionLabelProp,wt=G==="multiple"||G==="tags",xt=fe!==void 0?fe:wt||G==="combobox",Ct=Z||U(ve);if(Object(J.a)(G!=="tags"||Ct.every(function(ye){return!ye.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var Dt=Ct.some(function(ye){return ye.options?ye.options.some(function(ie){return typeof("value"in ie?ie.value:ie.key)=="number"}):typeof("value"in ye?ye.value:ye.key)=="number"});Object(J.a)(!Dt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(J.a)(G!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(J.a)(G==="combobox"||!ue,"`backfill` only works with `combobox` mode."),Object(J.a)(G==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object(J.b)(G!=="combobox"||!oe||!_e||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Te&&!xt&&G!=="combobox"&&G!=="tags"&&Object(J.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(J.b)(!ze||it,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Oe!=null){var Ht=Object(se.d)(Oe);Object(J.a)(!et||Ht.every(function(ye){return Object(Y.a)(ye)==="object"&&("key"in ye||"value"in ye)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(J.a)(!wt||Array.isArray(Oe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ve){var Je=null;Object(B.a)(ve).some(function(ye){if(!t.isValidElement(ye)||!ye.type)return!1;var ie=ye.type;if(ie.isSelectOption)return!1;if(ie.isSelectOptGroup){var bt=Object(B.a)(ye.props.children).every(function(qe){return!t.isValidElement(qe)||!ye.type||qe.type.isSelectOption?!0:(Je=qe.type,!1)});return!bt}return Je=ie,!0}),Je&&Object(J.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Je.displayName||Je.name||Je,"`.")),Object(J.a)(gt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ae=$,ge=Object(V.a)({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:U,flattenOptions:z.d,getLabeledValue:z.e,filterOptions:z.b,isValueDisabled:z.g,findValueOption:z.c,warningProps:ae,fillOptionsWithMissingValue:z.a}),pe=function(X){Object(f.a)(Z,X);var G=Object(p.a)(Z);function Z(){var ve;return Object(l.a)(this,Z),ve=G.apply(this,arguments),ve.selectRef=t.createRef(),ve.focus=function(){ve.selectRef.current.focus()},ve.blur=function(){ve.selectRef.current.blur()},ve}return Object(u.a)(Z,[{key:"render",value:function(){return t.createElement(ge,Object.assign({ref:this.selectRef},this.props))}}]),Z}(t.Component);pe.Option=M,pe.OptGroup=R;var Ne=pe,de=Ne,Le=d("H84U"),Q=d("1vzs"),ce=d("3Nzz"),Ke=function(X){r()(Z,X);var G=n()(Z);function Z(){var ve;return m()(this,Z),ve=G.apply(this,arguments),ve.selectRef=t.createRef(),ve.focus=function(){ve.selectRef.current&&ve.selectRef.current.focus()},ve.blur=function(){ve.selectRef.current&&ve.selectRef.current.blur()},ve.getMode=function(){var ue=ve.props.mode;return ue==="combobox"?void 0:ue===Z.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":ue},ve.renderSelect=function(ue){var _e=ue.getPopupContainer,xe=ue.getPrefixCls,oe=ue.renderEmpty,fe=ue.direction,Te=ue.virtual,ze=ue.dropdownMatchSelectWidth,it=ve.props,et=it.prefixCls,Oe=it.notFoundContent,gt=it.className,Ge=it.size,wt=it.listHeight,xt=wt===void 0?256:wt,Ct=it.listItemHeight,Dt=Ct===void 0?24:Ct,Ht=it.getPopupContainer,Je=it.dropdownClassName,ye=it.bordered,ie=xe("select",et),bt=ve.getMode(),qe=bt==="multiple"||bt==="tags",me;Oe!==void 0?me=Oe:bt==="combobox"?me=null:me=oe("Select");var Rt=Object(Q.a)(g()(g()({},ve.props),{multiple:qe,prefixCls:ie})),er=Rt.suffixIcon,ct=Rt.itemIcon,zt=Rt.removeIcon,sr=Rt.clearIcon,Kr=Object(s.default)(ve.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),ar=o()(Je,E()({},"".concat(ie,"-dropdown-").concat(fe),fe==="rtl"));return t.createElement(ce.b.Consumer,null,function(nr){var Lt,st=Ge||nr,Qe=o()(gt,(Lt={},E()(Lt,"".concat(ie,"-lg"),st==="large"),E()(Lt,"".concat(ie,"-sm"),st==="small"),E()(Lt,"".concat(ie,"-rtl"),fe==="rtl"),E()(Lt,"".concat(ie,"-borderless"),!ye),Lt));return t.createElement(de,g()({ref:ve.selectRef,virtual:Te,dropdownMatchSelectWidth:ze},Kr,{listHeight:xt,listItemHeight:Dt,mode:bt,prefixCls:ie,direction:fe,inputIcon:er,menuItemSelectedIcon:ct,removeIcon:zt,clearIcon:sr,notFoundContent:me,className:Qe,getPopupContainer:Ht||_e,dropdownClassName:ar}))})},ve}return c()(Z,[{key:"render",value:function(){return t.createElement(Le.a,null,this.renderSelect)}}]),Z}(t.Component);Ke.Option=M,Ke.OptGroup=R,Ke.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ke.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ee=k.a=Ke},"2fw6":function(H,k,d){var I=d("y+Vt"),E=I.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(g,S,m){m&&g.moveTo(S.cx+S.r,S.cy),g.arc(S.cx,S.cy,S.r,0,Math.PI*2,!0)}});H.exports=E},"2jpz":function(H,k,d){"use strict";d.d(k,"a",function(){return u});var I=d("cDf5"),E=d.n(I),T=d("q1tI"),g=d.n(T),S=d("TSYQ"),m=d.n(S),h=d("gZBC"),c=d.n(h),a=d("vk+C"),r=d.n(a),i=d("pG52"),n=d.n(i),t=d("Csr3"),s=d.n(t),e=d("e5VY"),o=d.n(e),l=d("0n0R");function u(f,p,v,A){var y=A.isLeaf,x=A.expanded,C=A.loading;if(C)return T.createElement(c.a,{className:"".concat(f,"-switcher-loading-icon")});var w;if(v&&E()(v)==="object"&&(w=v.showLeafIcon),y)return v?E()(v)==="object"&&!w?T.createElement("span",{className:"".concat(f,"-switcher-leaf-line")}):T.createElement(r.a,{className:"".concat(f,"-switcher-line-icon")}):null;var b="".concat(f,"-switcher-icon");return Object(l.b)(p)?Object(l.a)(p,{className:m()(p.props.className||"",b)}):p||(v?x?T.createElement(n.a,{className:"".concat(f,"-switcher-line-icon")}):T.createElement(s.a,{className:"".concat(f,"-switcher-line-icon")}):T.createElement(o.a,{className:b}))}},"2oIt":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},"2uGb":function(H,k,d){var I=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var E=d("kMLO"),T=d("nKiI");I.registerVisual(E),I.registerLayout(T)},"2w7y":function(H,k,d){var I=d("ProS");d("qMZE"),d("g0SD"),I.registerPreprocessor(function(E){E.markPoint=E.markPoint||{}})},"33Ds":function(H,k,d){var I=d("ProS"),E=d("b9oc"),T=d("Kagy"),g=d("IUWy"),S=T.toolbox.restore;function m(a){this.model=a}m.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:S.title};var h=m.prototype;h.onclick=function(a,r,i){E.clear(a),r.dispatchAction({type:"restore",from:this.uid})},g.register("restore",m),I.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,r){r.resetOption("recreate")});var c=m;H.exports=c},"34/K":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function I(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function E(S,m){for(var h=0;h<m.length;h++){var c=m[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,h){return m&&E(S.prototype,m),h&&E(S,h),S}var g=function(){function S(){I(this,S),this._lines=0}return T(S,[{key:"decodeRect",value:function(h,c,a,r,i,n,t){this._lines===0&&(this._lines=r);var s=t==8?1:4,e=a*s;if(i.rQwait("RAW",e))return!1;var o=c+(r-this._lines),l=Math.min(this._lines,Math.floor(i.rQlen/e)),u=i.rQ,f=i.rQi;if(t==8){for(var p=a*l,v=new Uint8Array(p*4),A=0;A<p;A++)v[A*4+0]=(u[f+A]>>0&3)*255/3,v[A*4+1]=(u[f+A]>>2&3)*255/3,v[A*4+2]=(u[f+A]>>4&3)*255/3,v[A*4+4]=0;u=v,f=0}return n.blitImage(h,o,a,l,u,f),i.rQskipBytes(l*e),this._lines-=l,!(this._lines>0)}}]),S}();k.default=g},"3690":function(H,k,d){"use strict";function I(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(i){return typeof i}:I=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},I(a)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=g(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return T=function(){return a},a}function g(a){if(a&&a.__esModule)return a;if(a===null||I(a)!=="object"&&typeof a!="function")return{default:a};var r=T();if(r&&r.has(a))return r.get(a);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t)){var s=n?Object.getOwnPropertyDescriptor(a,t):null;s&&(s.get||s.set)?Object.defineProperty(i,t,s):i[t]=a[t]}return i.default=a,r&&r.set(a,i),i}function S(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function m(a,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function h(a,r,i){return r&&m(a.prototype,r),i&&m(a,i),a}var c=function(){function a(){S(this,a),this._tiles=0,this._lastsubencoding=0}return h(a,[{key:"decodeRect",value:function(i,n,t,s,e,o,l){for(this._tiles===0&&(this._tilesX=Math.ceil(t/16),this._tilesY=Math.ceil(s/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var u=1;if(e.rQwait("HEXTILE",u))return!1;var f=e.rQ,p=e.rQi,v=f[p];if(v>30)throw new Error("Illegal hextile subencoding (subencoding: "+v+")");var A=this._totalTiles-this._tiles,y=A%this._tilesX,x=Math.floor(A/this._tilesX),C=i+y*16,w=n+x*16,b=Math.min(16,i+t-C),_=Math.min(16,n+s-w);if(v&1)u+=b*_*4;else if(v&2&&(u+=4),v&4&&(u+=4),v&8){if(u++,e.rQwait("HEXTILE",u))return!1;var O=f[p+u-1];v&16?u+=O*(4+2):u+=O*2}if(e.rQwait("HEXTILE",u))return!1;if(p++,v===0)this._lastsubencoding&1?E.Debug(" Ignoring blank after RAW"):o.fillRect(C,w,b,_,this._background);else if(v&1)o.blitImage(C,w,b,_,f,p),p+=u-1;else{if(v&2&&(this._background=[f[p],f[p+1],f[p+2],f[p+3]],p+=4),v&4&&(this._foreground=[f[p],f[p+1],f[p+2],f[p+3]],p+=4),o.startTile(C,w,b,_,this._background),v&8){var L=f[p];p++;for(var D=0;D<L;D++){var N=void 0;v&16?(N=[f[p],f[p+1],f[p+2],f[p+3]],p+=4):N=this._foreground;var M=f[p];p++;var F=M>>4,R=M&15,j=f[p];p++;var B=(j>>4)+1,K=(j&15)+1;o.subTile(F,R,B,K,N)}}o.finishTile()}e.rQi=p,this._lastsubencoding=v,this._tiles--}return!0}}]),a}();k.default=c},"3C/r":function(H,k){var d=function(T,g){this.image=T,this.repeat=g,this.type="pattern"};d.prototype.getCanvasPattern=function(E){return E.createPattern(this.image,this.repeat||"repeat")};var I=d;H.exports=I},"3CBa":function(H,k,d){var I=d("hydK"),E=I.createElement,T=d("bYtY"),g=d("SUKs"),S=d("y+Vt"),m=d("Dagg"),h=d("dqUG"),c=d("DBLp"),a=d("sW+o"),r=d("n6Mw"),i=d("vKoX"),n=d("P47w"),t=n.path,s=n.image,e=n.text;function o(b){return parseInt(b,10)}function l(b){return b instanceof S?t:b instanceof m?s:b instanceof h?e:t}function u(b,_){return _&&b&&_.parentNode!==b}function f(b,_,O){if(u(b,_)&&O){var L=O.nextSibling;L?b.insertBefore(_,L):b.appendChild(_)}}function p(b,_){if(u(b,_)){var O=b.firstChild;O?b.insertBefore(_,O):b.appendChild(_)}}function v(b,_){_&&b&&_.parentNode===b&&b.removeChild(_)}function A(b){return b.__textSvgEl}function y(b){return b.__svgEl}var x=function(_,O,L,D){this.root=_,this.storage=O,this._opts=L=T.extend({},L||{});var N=E("svg");N.setAttribute("xmlns","http://www.w3.org/2000/svg"),N.setAttribute("version","1.1"),N.setAttribute("baseProfile","full"),N.style.cssText="user-select:none;position:absolute;left:0;top:0;";var M=E("g");N.appendChild(M);var F=E("g");N.appendChild(F),this.gradientManager=new a(D,F),this.clipPathManager=new r(D,F),this.shadowManager=new i(D,F);var R=document.createElement("div");R.style.cssText="overflow:hidden;position:relative",this._svgDom=N,this._svgRoot=F,this._backgroundRoot=M,this._viewport=R,_.appendChild(R),R.appendChild(N),this.resize(L.width,L.height),this._visibleList=[]};x.prototype={constructor:x,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var _=this.getViewportRoot();if(_)return{offsetLeft:_.offsetLeft||0,offsetTop:_.offsetTop||0}},refresh:function(){var _=this.storage.getDisplayList(!0);this._paintList(_)},setBackgroundColor:function(_){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var O=E("rect");O.setAttribute("width",this.getWidth()),O.setAttribute("height",this.getHeight()),O.setAttribute("x",0),O.setAttribute("y",0),O.setAttribute("id",0),O.style.fill=_,this._backgroundRoot.appendChild(O),this._backgroundNode=O},_paintList:function(_){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var O=this._svgRoot,L=this._visibleList,D=_.length,N=[],M;for(M=0;M<D;M++){var F=_[M],R=l(F),j=y(F)||A(F);F.invisible||(F.__dirty&&(R&&R.brush(F),this.clipPathManager.update(F),F.style&&(this.gradientManager.update(F.style.fill),this.gradientManager.update(F.style.stroke),this.shadowManager.update(j,F)),F.__dirty=!1),N.push(F))}var B=c(L,N),K;for(M=0;M<B.length;M++){var U=B[M];if(U.removed)for(var z=0;z<U.count;z++){var F=L[U.indices[z]],j=y(F),V=A(F);v(O,j),v(O,V)}}for(M=0;M<B.length;M++){var U=B[M];if(U.added)for(var z=0;z<U.count;z++){var F=N[U.indices[z]],j=y(F),V=A(F);K?f(O,j,K):p(O,j),j?f(O,V,j):K?f(O,V,K):p(O,V),f(O,V,j),K=V||j||K,this.gradientManager.addWithoutUpdate(j||V,F),this.shadowManager.addWithoutUpdate(j||V,F),this.clipPathManager.markUsed(F)}else if(!U.removed)for(var z=0;z<U.count;z++){var F=N[U.indices[z]],j=y(F),V=A(F),j=y(F),V=A(F);this.gradientManager.markUsed(F),this.gradientManager.addWithoutUpdate(j||V,F),this.shadowManager.markUsed(F),this.shadowManager.addWithoutUpdate(j||V,F),this.clipPathManager.markUsed(F),V&&f(O,V,j),K=j||V||K}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=N},_getDefs:function(_){var O=this._svgDom,L=O.getElementsByTagName("defs");if(L.length===0)if(_){var L=O.insertBefore(E("defs"),O.firstChild);return L.contains||(L.contains=function(N){var M=L.children;if(!M)return!1;for(var F=M.length-1;F>=0;--F)if(M[F]===N)return!0;return!1}),L}else return null;else return L[0]},resize:function(_,O){var L=this._viewport;L.style.display="none";var D=this._opts;if(_!=null&&(D.width=_),O!=null&&(D.height=O),_=this._getSize(0),O=this._getSize(1),L.style.display="",this._width!==_||this._height!==O){this._width=_,this._height=O;var N=L.style;N.width=_+"px",N.height=O+"px";var M=this._svgDom;M.setAttribute("width",_),M.setAttribute("height",O)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",_),this._backgroundNode.setAttribute("height",O))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(_){var O=this._opts,L=["width","height"][_],D=["clientWidth","clientHeight"][_],N=["paddingLeft","paddingTop"][_],M=["paddingRight","paddingBottom"][_];if(O[L]!=null&&O[L]!=="auto")return parseFloat(O[L]);var F=this.root,R=document.defaultView.getComputedStyle(F);return(F[D]||o(R[L])||o(F.style[L]))-(o(R[N])||0)-(o(R[M])||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 _=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+_}};function C(b){return function(){g('In SVG mode painter not support method "'+b+'"')}}T.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(b){x.prototype[b]=C(b)});var w=x;H.exports=w},"3LNs":function(H,k,d){var I=d("bYtY"),E=d("Yl7c"),T=d("IwbS"),g=d("zTMp"),S=d("YH21"),m=d("iLNv"),h=d("4NO4"),c=h.makeInner,a=c(),r=I.clone,i=I.bind;function n(){}n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(f,p,v,A){var y=p.get("value"),x=p.get("status");if(this._axisModel=f,this._axisPointerModel=p,this._api=v,!A&&this._lastValue===y&&this._lastStatus===x)return;this._lastValue=y,this._lastStatus=x;var C=this._group,w=this._handle;if(!x||x==="hide"){C&&C.hide(),w&&w.hide();return}C&&C.show(),w&&w.show();var b={};this.makeElOption(b,y,f,p,v);var _=b.graphicKey;_!==this._lastGraphicKey&&this.clear(v),this._lastGraphicKey=_;var O=this._moveAnimation=this.determineAnimation(f,p);if(!C)C=this._group=new T.Group,this.createPointerEl(C,b,f,p),this.createLabelEl(C,b,f,p),v.getZr().add(C);else{var L=I.curry(t,p,O);this.updatePointerEl(C,b,L,p),this.updateLabelEl(C,b,L,p)}l(C,p,!0),this._renderHandle(y)},remove:function(f){this.clear(f)},dispose:function(f){this.clear(f)},determineAnimation:function(f,p){var v=p.get("animation"),A=f.axis,y=A.type==="category",x=p.get("snap");if(!x&&!y)return!1;if(v==="auto"||v==null){var C=this.animationThreshold;if(y&&A.getBandWidth()>C)return!0;if(x){var w=g.getAxisInfo(f).seriesDataCount,b=A.getExtent();return Math.abs(b[0]-b[1])/w>C}return!1}return v===!0},makeElOption:function(f,p,v,A,y){},createPointerEl:function(f,p,v,A){var y=p.pointer;if(y){var x=a(f).pointerEl=new T[y.type](r(p.pointer));f.add(x)}},createLabelEl:function(f,p,v,A){if(p.label){var y=a(f).labelEl=new T.Rect(r(p.label));f.add(y),e(y,A)}},updatePointerEl:function(f,p,v){var A=a(f).pointerEl;A&&p.pointer&&(A.setStyle(p.pointer.style),v(A,{shape:p.pointer.shape}))},updateLabelEl:function(f,p,v,A){var y=a(f).labelEl;y&&(y.setStyle(p.label.style),v(y,{shape:p.label.shape,position:p.label.position}),e(y,A))},_renderHandle:function(f){if(this._dragging||!this.updateHandleTransform)return;var p=this._axisPointerModel,v=this._api.getZr(),A=this._handle,y=p.getModel("handle"),x=p.get("status");if(!y.get("show")||!x||x==="hide"){A&&v.remove(A),this._handle=null;return}var C;this._handle||(C=!0,A=this._handle=T.createIcon(y.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(_){S.stop(_.event)},onmousedown:i(this._onHandleDragMove,this,0,0),drift:i(this._onHandleDragMove,this),ondragend:i(this._onHandleDragEnd,this)}),v.add(A)),l(A,p,!1);var w=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];A.setStyle(y.getItemStyle(null,w));var b=y.get("size");I.isArray(b)||(b=[b,b]),A.attr("scale",[b[0]/2,b[1]/2]),m.createOrUpdate(this,"_doDispatchAxisPointer",y.get("throttle")||0,"fixRate"),this._moveHandleToValue(f,C)},_moveHandleToValue:function(f,p){t(this._axisPointerModel,!p&&this._moveAnimation,this._handle,o(this.getHandleTransform(f,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(f,p){var v=this._handle;if(!v)return;this._dragging=!0;var A=this.updateHandleTransform(o(v),[f,p],this._axisModel,this._axisPointerModel);this._payloadInfo=A,v.stopAnimation(),v.attr(o(A)),a(v).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var f=this._handle;if(!f)return;var p=this._payloadInfo,v=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:p.cursorPoint[0],y:p.cursorPoint[1],tooltipOption:p.tooltipOption,axesInfo:[{axisDim:v.axis.dim,axisIndex:v.componentIndex}]})},_onHandleDragEnd:function(f){this._dragging=!1;var p=this._handle;if(!p)return;var v=this._axisPointerModel.get("value");this._moveHandleToValue(v),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(f){this._lastValue=null,this._lastStatus=null;var p=f.getZr(),v=this._group,A=this._handle;p&&v&&(this._lastGraphicKey=null,v&&p.remove(v),A&&p.remove(A),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(f,p,v){return v=v||0,{x:f[v],y:f[1-v],width:p[v],height:p[1-v]}}},n.prototype.constructor=n;function t(f,p,v,A){s(a(v).lastProp,A)||(a(v).lastProp=A,p?T.updateProps(v,A,f):(v.stopAnimation(),v.attr(A)))}function s(f,p){if(I.isObject(f)&&I.isObject(p)){var v=!0;return I.each(p,function(A,y){v=v&&s(f[y],A)}),!!v}else return f===p}function e(f,p){f[p.get("label.show")?"show":"hide"]()}function o(f){return{position:f.position.slice(),rotation:f.rotation||0}}function l(f,p,v){var A=p.get("z"),y=p.get("zlevel");f&&f.traverse(function(x){x.type!=="group"&&(A!=null&&(x.z=A),y!=null&&(x.zlevel=y),x.silent=v)})}E.enableClassExtend(n);var u=n;H.exports=u},"3OrL":function(H,k,d){var I=d("bYtY"),E=d("6Ic6"),T=d("IwbS"),g=d("y+Vt"),S=["itemStyle"],m=["emphasis","itemStyle"],h=E.extend({type:"boxplot",render:function(t,s,e){var o=t.getData(),l=this.group,u=this._data;this._data||l.removeAll();var f=t.get("layout")==="horizontal"?1:0;o.diff(u).add(function(p){if(o.hasValue(p)){var v=o.getItemLayout(p),A=a(v,o,p,f,!0);o.setItemGraphicEl(p,A),l.add(A)}}).update(function(p,v){var A=u.getItemGraphicEl(v);if(!o.hasValue(p)){l.remove(A);return}var y=o.getItemLayout(p);A?r(y,A,o,p):A=a(y,o,p,f),l.add(A),o.setItemGraphicEl(p,A)}).remove(function(p){var v=u.getItemGraphicEl(p);v&&l.remove(v)}).execute(),this._data=o},remove:function(t){var s=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(o){o&&s.remove(o)})},dispose:I.noop}),c=g.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,s){var e=s.points,o=0;for(t.moveTo(e[o][0],e[o][1]),o++;o<4;o++)t.lineTo(e[o][0],e[o][1]);for(t.closePath();o<e.length;o++)t.moveTo(e[o][0],e[o][1]),o++,t.lineTo(e[o][0],e[o][1])}});function a(t,s,e,o,l){var u=t.ends,f=new c({shape:{points:l?i(u,o,t):u}});return r(t,f,s,e,l),f}function r(t,s,e,o,l){var u=e.hostModel,f=T[l?"initProps":"updateProps"];f(s,{shape:{points:t.ends}},u,o);var p=e.getItemModel(o),v=p.getModel(S),A=e.getItemVisual(o,"color"),y=v.getItemStyle(["borderColor"]);y.stroke=A,y.strokeNoScale=!0,s.useStyle(y),s.z2=100;var x=p.getModel(m).getItemStyle();T.setHoverStyle(s,x)}function i(t,s,e){return I.map(t,function(o){return o=o.slice(),o[s]=e.initBaseline,o})}var n=h;H.exports=n},"3S7+":function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("J4zp"),g=d.n(T),S=d("pVnL"),m=d.n(S),h=d("q1tI"),c=d("U8pU"),a=d("VTBJ"),r=d("Ff2n"),i=d("uciX"),n={adjustX:1,adjustY:1},t=[0,0],s={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:t},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:t},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:t},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:t},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:t},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:t},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:t},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:t},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:t},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:t},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:t},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:t}},e=s,o=function(B){var K=B.overlay,U=B.prefixCls,z=B.id,V=B.overlayInnerStyle;return h.createElement("div",{className:"".concat(U,"-inner"),id:z,role:"tooltip",style:V},typeof K=="function"?K():K)},l=o,u=function(B,K){var U=B.overlayClassName,z=B.trigger,V=z===void 0?["hover"]:z,Y=B.mouseEnterDelay,J=Y===void 0?0:Y,se=B.mouseLeaveDelay,$=se===void 0?.1:se,ae=B.overlayStyle,ge=B.prefixCls,pe=ge===void 0?"rc-tooltip":ge,Ne=B.children,de=B.onVisibleChange,Le=B.afterVisibleChange,Q=B.transitionName,ce=B.animation,Ke=B.placement,ee=Ke===void 0?"right":Ke,X=B.align,G=X===void 0?{}:X,Z=B.destroyTooltipOnHide,ve=Z===void 0?!1:Z,ue=B.defaultVisible,_e=B.getTooltipContainer,xe=B.overlayInnerStyle,oe=Object(r.a)(B,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),fe=Object(h.useRef)(null);Object(h.useImperativeHandle)(K,function(){return fe.current});var Te=Object(a.a)({},oe);"visible"in B&&(Te.popupVisible=B.visible);var ze=function(){var Ge=B.arrowContent,wt=Ge===void 0?null:Ge,xt=B.overlay,Ct=B.id;return[h.createElement("div",{className:"".concat(pe,"-arrow"),key:"arrow"},wt),h.createElement(l,{key:"content",prefixCls:pe,id:Ct,overlay:xt,overlayInnerStyle:xe})]},it=!1,et=!1;if(typeof ve=="boolean")it=ve;else if(ve&&Object(c.a)(ve)==="object"){var Oe=ve.keepParent;it=Oe===!0,et=Oe===!1}return h.createElement(i.a,Object.assign({popupClassName:U,prefixCls:pe,popup:ze,action:V,builtinPlacements:s,popupPlacement:ee,ref:fe,popupAlign:G,getPopupContainer:_e,onPopupVisibleChange:de,afterPopupVisibleChange:Le,popupTransitionName:Q,popupAnimation:ce,defaultPopupVisible:ue,destroyPopupOnHide:it,autoDestroy:et,mouseLeaveDelay:$,popupStyle:ae,mouseEnterDelay:J},Te),Ne)},f=Object(h.forwardRef)(u),p=f,v=d("TSYQ"),A=d.n(v),y={adjustX:1,adjustY:1},x={adjustX:0,adjustY:0},C=[0,0];function w(j){return typeof j=="boolean"?j?y:x:m()(m()({},x),j)}function b(j){var B=j.arrowWidth,K=B===void 0?5:B,U=j.horizontalArrowShift,z=U===void 0?16:U,V=j.verticalArrowShift,Y=V===void 0?8:V,J=j.autoAdjustOverflow,se={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:[-(z+K),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Y+K)]},topRight:{points:["br","tc"],offset:[z+K,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Y+K)]},bottomRight:{points:["tr","bc"],offset:[z+K,4]},rightBottom:{points:["bl","cr"],offset:[4,Y+K]},bottomLeft:{points:["tl","bc"],offset:[-(z+K),4]},leftBottom:{points:["br","cl"],offset:[-4,Y+K]}};return Object.keys(se).forEach(function($){se[$]=j.arrowPointAtCenter?m()(m()({},se[$]),{overflow:w(J),targetOffset:C}):m()(m()({},s[$]),{overflow:w(J)}),se[$].ignoreShake=!0}),se}var _=d("0n0R"),O=d("H84U"),L=d("09Wf"),D=function(B,K){var U={},z=m()({},B);return K.forEach(function(V){B&&V in B&&(U[V]=B[V],delete z[V])}),{picked:U,omitted:z}},N=new RegExp("^(".concat(L.a.join("|"),")(-inverse)?$"));function M(j,B){var K=j.type;if((K.__ANT_BUTTON===!0||K.__ANT_SWITCH===!0||K.__ANT_CHECKBOX===!0||j.type==="button")&&j.props.disabled){var U=D(j.props.style,["position","left","right","top","bottom","float","display","zIndex"]),z=U.picked,V=U.omitted,Y=m()(m()({display:"inline-block"},z),{cursor:"not-allowed",width:j.props.block?"100%":null}),J=m()(m()({},V),{pointerEvents:"none"}),se=Object(_.a)(j,{style:J,className:null});return h.createElement("span",{style:Y,className:A()(j.props.className,"".concat(B,"-disabled-compatible-wrapper"))},se)}return j}var F=h.forwardRef(function(j,B){var K,U=h.useContext(O.b),z=U.getPopupContainer,V=U.getPrefixCls,Y=U.direction,J=h.useState(!!j.visible||!!j.defaultVisible),se=g()(J,2),$=se[0],ae=se[1];h.useEffect(function(){"visible"in j&&ae(j.visible)},[j.visible]);var ge=function(){var Oe=j.title,gt=j.overlay;return!Oe&&!gt&&Oe!==0},pe=function(Oe){"visible"in j||ae(ge()?!1:Oe),j.onVisibleChange&&!ge()&&j.onVisibleChange(Oe)},Ne=function(){var Oe=j.builtinPlacements,gt=j.arrowPointAtCenter,Ge=j.autoAdjustOverflow;return Oe||b({arrowPointAtCenter:gt,autoAdjustOverflow:Ge})},de=function(Oe,gt){var Ge=Ne(),wt=Object.keys(Ge).filter(function(Dt){return Ge[Dt].points[0]===gt.points[0]&&Ge[Dt].points[1]===gt.points[1]})[0];if(!wt)return;var xt=Oe.getBoundingClientRect(),Ct={top:"50%",left:"50%"};wt.indexOf("top")>=0||wt.indexOf("Bottom")>=0?Ct.top="".concat(xt.height-gt.offset[1],"px"):(wt.indexOf("Top")>=0||wt.indexOf("bottom")>=0)&&(Ct.top="".concat(-gt.offset[1],"px")),wt.indexOf("left")>=0||wt.indexOf("Right")>=0?Ct.left="".concat(xt.width-gt.offset[0],"px"):(wt.indexOf("right")>=0||wt.indexOf("Left")>=0)&&(Ct.left="".concat(-gt.offset[0],"px")),Oe.style.transformOrigin="".concat(Ct.left," ").concat(Ct.top)},Le=function(){var Oe=j.title,gt=j.overlay;return Oe===0?Oe:gt||Oe||""},Q=j.prefixCls,ce=j.openClassName,Ke=j.getPopupContainer,ee=j.getTooltipContainer,X=j.overlayClassName,G=j.color,Z=j.overlayInnerStyle,ve=j.children,ue=V("tooltip",Q),_e=$;!("visible"in j)&&ge()&&(_e=!1);var xe=M(Object(_.b)(ve)?ve:h.createElement("span",null,ve),ue),oe=xe.props,fe=A()(oe.className,E()({},ce||"".concat(ue,"-open"),!0)),Te=A()(X,(K={},E()(K,"".concat(ue,"-rtl"),Y==="rtl"),E()(K,"".concat(ue,"-").concat(G),G&&N.test(G)),K)),ze,it;return G&&!N.test(G)&&(ze=m()(m()({},Z),{background:G}),it={background:G}),h.createElement(p,m()({},j,{prefixCls:ue,overlayClassName:Te,getTooltipContainer:Ke||ee||z,ref:B,builtinPlacements:Ne(),overlay:Le(),visible:_e,onVisibleChange:pe,onPopupAlign:de,overlayInnerStyle:ze,arrowContent:h.createElement("span",{className:"".concat(ue,"-arrow-content"),style:it})}),_e?Object(_.a)(xe,{className:fe}):xe)});F.displayName="Tooltip",F.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var R=k.a=F},"3TkU":function(H,k,d){d("aTJb"),d("OlYY"),d("fc+c"),d("QUw5"),d("Swgg"),d("LBfv"),d("noeP")},"3X6L":function(H,k,d){var I=d("bYtY"),E=d("7a+S"),T=d("OKJ2"),g=E.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:[]}});I.mixin(g,T);var S=g;H.exports=S},"3e3G":function(H,k,d){var I=d("bYtY"),E=d("QuXc"),T=function(m,h,c,a,r){this.x=m==null?.5:m,this.y=h==null?.5:h,this.r=c==null?.5:c,this.type="radial",this.global=r||!1,E.call(this,a)};T.prototype={constructor:T},I.inherits(T,E);var g=T;H.exports=g},"3gBT":function(H,k){var d=2311;function I(){return d++}H.exports=I},"3hzK":function(H,k){var d={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")}}};H.exports=d},"3m61":function(H,k){function d(E){return E instanceof Array||(E=[E,E]),E}function I(E){E.eachSeriesByType("graph",function(T){var g=T.getGraph(),S=T.getEdgeData(),m=d(T.get("edgeSymbol")),h=d(T.get("edgeSymbolSize")),c="lineStyle.color".split("."),a="lineStyle.opacity".split(".");S.setVisual("fromSymbol",m&&m[0]),S.setVisual("toSymbol",m&&m[1]),S.setVisual("fromSymbolSize",h&&h[0]),S.setVisual("toSymbolSize",h&&h[1]),S.setVisual("color",T.get(c)),S.setVisual("opacity",T.get(a)),S.each(function(r){var i=S.getItemModel(r),n=g.getEdgeByIndex(r),t=d(i.getShallow("symbol",!0)),s=d(i.getShallow("symbolSize",!0)),e=i.get(c),o=i.get(a);switch(e){case"source":e=n.node1.getVisual("color");break;case"target":e=n.node2.getVisual("color");break}t[0]&&n.setVisual("fromSymbol",t[0]),t[1]&&n.setVisual("toSymbol",t[1]),s[0]&&n.setVisual("fromSymbolSize",s[0]),s[1]&&n.setVisual("toSymbolSize",s[1]),n.setVisual("color",e),n.setVisual("opacity",o)})})}H.exports=I},"3ouR":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="CloseSquareOutlined";var h=k.a=E.forwardRef(m)},"3y9D":function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.WordArray,S=T.Hasher,m=E.algo,h=[],c=m.SHA1=S.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,i){for(var n=this._hash.words,t=n[0],s=n[1],e=n[2],o=n[3],l=n[4],u=0;u<80;u++){if(u<16)h[u]=r[i+u]|0;else{var f=h[u-3]^h[u-8]^h[u-14]^h[u-16];h[u]=f<<1|f>>>31}var p=(t<<5|t>>>27)+l+h[u];u<20?p+=(s&e|~s&o)+1518500249:u<40?p+=(s^e^o)+1859775393:u<60?p+=(s&e|s&o|e&o)-1894007588:p+=(s^e^o)-899497514,l=o,o=e,e=s<<30|s>>>2,s=t,t=p}n[0]=n[0]+t|0,n[1]=n[1]+s|0,n[2]=n[2]+e|0,n[3]=n[3]+o|0,n[4]=n[4]+l|0},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,t=r.sigBytes*8;return i[t>>>5]|=128<<24-t%32,i[(t+64>>>9<<4)+14]=Math.floor(n/4294967296),i[(t+64>>>9<<4)+15]=n,r.sigBytes=i.length*4,this._process(),this._hash},clone:function(){var r=S.clone.call(this);return r._hash=this._hash.clone(),r}});E.SHA1=S._createHelper(c),E.HmacSHA1=S._createHmacHelper(c)}(),I.SHA1})},"3zoK":function(H,k,d){var I=d("bYtY"),E=d("bLfw"),T=d("KCsZ"),g=d("nkfE"),S=d("OELB"),m=d("ICMv"),h=E.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return T([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(i){var n=this.activeIntervals=I.clone(i);if(n)for(var t=n.length-1;t>=0;t--)S.asc(n[t])},getActiveState:function(i){var n=this.activeIntervals;if(!n.length)return"normal";if(i==null||isNaN(i))return"inactive";if(n.length===1){var t=n[0];if(t[0]<=i&&i<=t[1])return"active"}else for(var s=0,e=n.length;s<e;s++)if(n[s][0]<=i&&i<=n[s][1])return"active";return"inactive"}}),c={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};I.merge(h.prototype,m);function a(i,n){return n.type||(n.data?"category":"value")}g("parallel",h,a,c);var r=h;H.exports=r},"4Feb":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("IwbS"),S=d("x3X8"),m=S.getDefaultLabel,h=d("MwEJ"),c=d("nVfU"),a=c.getLayoutOnAxis,r=d("gPAo"),i=d("T4UG"),n=d("Qxkt"),t=d("6Ic6"),s=d("sK/D"),e=s.createClipPath,o=d("qj72"),l=d("ANjR"),u=d("MHtr"),f=d("6usn"),p=d("Rx6q"),v=g.CACHED_LABEL_STYLE_PROPERTIES,A=["itemStyle"],y=["emphasis","itemStyle"],x=["label"],C=["emphasis","label"],w="e\0\0",b={cartesian2d:o,geo:l,singleAxis:u,polar:f,calendar:p};i.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($,ae){return h(this.getSource(),this)},getDataParams:function($,ae,ge){var pe=i.prototype.getDataParams.apply(this,arguments);return ge&&(pe.info=ge.info),pe}}),t.extend({type:"custom",_data:null,render:function($,ae,ge,pe){var Ne=this._data,de=$.getData(),Le=this.group,Q=D($,de,ae,ge);de.diff(Ne).add(function(Ke){M(null,Ke,Q(Ke,pe),$,Le,de)}).update(function(Ke,ee){var X=Ne.getItemGraphicEl(ee);M(X,Ke,Q(Ke,pe),$,Le,de)}).remove(function(Ke){var ee=Ne.getItemGraphicEl(Ke);ee&&Le.remove(ee)}).execute();var ce=$.get("clip",!0)?e($.coordinateSystem,!1,$):null;ce?Le.setClipPath(ce):Le.removeClipPath(),this._data=de},incrementalPrepareRender:function($,ae,ge){this.group.removeAll(),this._data=null},incrementalRender:function($,ae,ge,pe,Ne){var de=ae.getData(),Le=D(ae,de,ge,pe);function Q(ee){ee.isGroup||(ee.incremental=!0,ee.useHoverLayer=!0)}for(var ce=$.start;ce<$.end;ce++){var Ke=M(null,ce,Le(ce,Ne),ae,this.group,de);Ke.traverse(Q)}},dispose:T.noop,filterForExposedEvent:function($,ae,ge,pe){var Ne=ae.element;if(Ne==null||ge.name===Ne)return!0;for(;(ge=ge.parent)&&ge!==this.group;)if(ge.name===Ne)return!0;return!1}});function _($){var ae=$.type,ge;if(ae==="path"){var pe=$.shape,Ne=pe.width!=null&&pe.height!=null?{x:pe.x||0,y:pe.y||0,width:pe.width,height:pe.height}:null,de=Y(pe);ge=g.makePath(de,null,Ne,pe.layout||"center"),ge.__customPathData=de}else if(ae==="image")ge=new g.Image({}),ge.__customImagePath=$.style.image;else if(ae==="text")ge=new g.Text({}),ge.__customText=$.style.text;else if(ae==="group")ge=new g.Group;else{if(ae==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Le=g.getShapeClass(ae);ge=new Le}return ge.__customGraphicType=ae,ge.name=$.name,ge}function O($,ae,ge,pe,Ne,de,Le){var Q={},ce=ge.style||{};if(ge.shape&&(Q.shape=T.clone(ge.shape)),ge.position&&(Q.position=ge.position.slice()),ge.scale&&(Q.scale=ge.scale.slice()),ge.origin&&(Q.origin=ge.origin.slice()),ge.rotation&&(Q.rotation=ge.rotation),$.type==="image"&&ge.style){var Ke=Q.style={};T.each(["x","y","width","height"],function(G){L(G,Ke,ce,$.style,de)})}if($.type==="text"&&ge.style){var Ke=Q.style={};T.each(["x","y"],function(Z){L(Z,Ke,ce,$.style,de)}),!ce.hasOwnProperty("textFill")&&ce.fill&&(ce.textFill=ce.fill),!ce.hasOwnProperty("textStroke")&&ce.stroke&&(ce.textStroke=ce.stroke)}if($.type!=="group"&&($.useStyle(ce),de)){$.style.opacity=0;var ee=ce.opacity;ee==null&&(ee=1),g.initProps($,{style:{opacity:ee}},pe,ae)}de?$.attr(Q):g.updateProps($,Q,pe,ae),ge.hasOwnProperty("z2")&&$.attr("z2",ge.z2||0),ge.hasOwnProperty("silent")&&$.attr("silent",ge.silent),ge.hasOwnProperty("invisible")&&$.attr("invisible",ge.invisible),ge.hasOwnProperty("ignore")&&$.attr("ignore",ge.ignore),ge.hasOwnProperty("info")&&$.attr("info",ge.info);var X=ge.styleEmphasis;g.setElementHoverStyle($,X),Le&&g.setAsHighDownDispatcher($,X!==!1)}function L($,ae,ge,pe,Ne){ge[$]!=null&&!Ne&&(ae[$]=ge[$],ge[$]=pe[$])}function D($,ae,ge,pe){var Ne=$.get("renderItem"),de=$.coordinateSystem,Le={};de&&(Le=de.prepareCustoms?de.prepareCustoms():b[de.type](de));var Q=T.defaults({getWidth:pe.getWidth,getHeight:pe.getHeight,getZr:pe.getZr,getDevicePixelRatio:pe.getDevicePixelRatio,value:_e,style:xe,styleEmphasis:oe,visual:fe,barLayout:Te,currentSeriesIndices:ze,font:it},Le.api||{}),ce={context:{},seriesId:$.id,seriesName:$.name,seriesIndex:$.seriesIndex,coordSys:Le.coordSys,dataInsideLength:ae.count(),encode:N($.getData())},Ke,ee=!0,X,G,Z,ve;return function(et,Oe){return Ke=et,ee=!0,Ne&&Ne(T.defaults({dataIndexInside:et,dataIndex:ae.getRawIndex(et),actionType:Oe?Oe.type:null},ce),Q)};function ue(et){et==null&&(et=Ke),ee&&(X=ae.getItemModel(et),G=X.getModel(x),Z=X.getModel(C),ve=ae.getItemVisual(et,"color"),ee=!1)}function _e(et,Oe){return Oe==null&&(Oe=Ke),ae.get(ae.getDimension(et||0),Oe)}function xe(et,Oe){Oe==null&&(Oe=Ke),ue(Oe);var gt=X.getModel(A).getItemStyle();ve!=null&&(gt.fill=ve);var Ge=ae.getItemVisual(Oe,"opacity");Ge!=null&&(gt.opacity=Ge);var wt=et?U(et,G):G;return g.setTextStyle(gt,wt,null,{autoColor:ve,isRectText:!0}),gt.text=wt.getShallow("show")?T.retrieve2($.getFormattedLabel(Oe,"normal"),m(ae,Oe)):null,et&&z(gt,et),gt}function oe(et,Oe){Oe==null&&(Oe=Ke),ue(Oe);var gt=X.getModel(y).getItemStyle(),Ge=et?U(et,Z):Z;return g.setTextStyle(gt,Ge,null,{isRectText:!0},!0),gt.text=Ge.getShallow("show")?T.retrieve3($.getFormattedLabel(Oe,"emphasis"),$.getFormattedLabel(Oe,"normal"),m(ae,Oe)):null,et&&z(gt,et),gt}function fe(et,Oe){return Oe==null&&(Oe=Ke),ae.getItemVisual(Oe,et)}function Te(et){if(de.getBaseAxis){var Oe=de.getBaseAxis();return a(T.defaults({axis:Oe},et),pe)}}function ze(){return ge.getCurrentSeriesIndices()}function it(et){return g.getFont(et,ge)}}function N($){var ae={};return T.each($.dimensions,function(ge,pe){var Ne=$.getDimensionInfo(ge);if(!Ne.isExtraCoord){var de=Ne.coordDim,Le=ae[de]=ae[de]||[];Le[Ne.coordDimIndex]=pe}}),ae}function M($,ae,ge,pe,Ne,de){return $=F($,ae,ge,pe,Ne,de,!0),$&&de.setItemGraphicEl(ae,$),$}function F($,ae,ge,pe,Ne,de,Le){var Q=!ge;ge=ge||{};var ce=ge.type,Ke=ge.shape,ee=ge.style;if($&&(Q||ce!=null&&ce!==$.__customGraphicType||ce==="path"&&J(Ke)&&Y(Ke)!==$.__customPathData||ce==="image"&&se(ee,"image")&&ee.image!==$.__customImagePath||ce==="text"&&se(Ke,"text")&&ee.text!==$.__customText)&&(Ne.remove($),$=null),Q)return;var X=!$;return!$&&($=_(ge)),O($,ae,ge,pe,de,X,Le),ce==="group"&&R($,ae,ge,pe,de),Ne.add($),$}function R($,ae,ge,pe,Ne){var de=ge.children,Le=de?de.length:0,Q=ge.$mergeChildren,ce=Q==="byName"||ge.diffChildrenByName,Ke=Q===!1;if(!Le&&!ce&&!Ke)return;if(ce){j({oldChildren:$.children()||[],newChildren:de||[],dataIndex:ae,animatableModel:pe,group:$,data:Ne});return}Ke&&$.removeAll();for(var ee=0;ee<Le;ee++)de[ee]&&F($.childAt(ee),ae,de[ee],pe,$,Ne)}function j($){new r($.oldChildren,$.newChildren,B,B,$).add(K).update(K).remove(V).execute()}function B($,ae){var ge=$&&$.name;return ge!=null?ge:w+ae}function K($,ae){var ge=this.context,pe=$!=null?ge.newChildren[$]:null,Ne=ae!=null?ge.oldChildren[ae]:null;F(Ne,ge.dataIndex,pe,ge.animatableModel,ge.group,ge.data)}function U($,ae){var ge=new n({},ae);return T.each(v,function(pe,Ne){$.hasOwnProperty(pe)&&(ge.option[Ne]=$[pe])}),ge}function z($,ae){for(var ge in ae)(ae.hasOwnProperty(ge)||!v.hasOwnProperty(ge))&&($[ge]=ae[ge])}function V($){var ae=this.context,ge=ae.oldChildren[$];ge&&ae.group.remove(ge)}function Y($){return $&&($.pathData||$.d)}function J($){return $&&($.hasOwnProperty("pathData")||$.hasOwnProperty("d"))}function se($,ae){return $&&$.hasOwnProperty(ae)}},"4HMb":function(H,k,d){var I=d("bYtY"),E=d("6GrX"),T=d("4NO4"),g=T.makeInner,S=d("aX7z"),m=S.makeLabelFormatter,h=S.getOptionCategoryInterval,c=S.shouldShowAllLabels,a=g();function r(x){return x.type==="category"?n(x):e(x)}function i(x,C){return x.type==="category"?s(x,C):{ticks:x.scale.getTicks()}}function n(x){var C=x.getLabelModel(),w=t(x,C);return!C.get("show")||x.scale.isBlank()?{labels:[],labelCategoryInterval:w.labelCategoryInterval}:w}function t(x,C){var w=o(x,"labels"),b=h(C),_=l(w,b);if(_)return _;var O,L;return I.isFunction(b)?O=y(x,b):(L=b==="auto"?f(x):b,O=A(x,L)),u(w,b,{labels:O,labelCategoryInterval:L})}function s(x,C){var w=o(x,"ticks"),b=h(C),_=l(w,b);if(_)return _;var O,L;if((!C.get("show")||x.scale.isBlank())&&(O=[]),I.isFunction(b))O=y(x,b,!0);else if(b==="auto"){var D=t(x,x.getLabelModel());L=D.labelCategoryInterval,O=I.map(D.labels,function(N){return N.tickValue})}else L=b,O=A(x,L,!0);return u(w,b,{ticks:O,tickCategoryInterval:L})}function e(x){var C=x.scale.getTicks(),w=m(x);return{labels:I.map(C,function(b,_){return{formattedLabel:w(b,_),rawLabel:x.scale.getLabel(b),tickValue:b}})}}function o(x,C){return a(x)[C]||(a(x)[C]=[])}function l(x,C){for(var w=0;w<x.length;w++)if(x[w].key===C)return x[w].value}function u(x,C,w){return x.push({key:C,value:w}),w}function f(x){var C=a(x).autoInterval;return C!=null?C:a(x).autoInterval=x.calculateCategoryInterval()}function p(x){var C=v(x),w=m(x),b=(C.axisRotate-C.labelRotate)/180*Math.PI,_=x.scale,O=_.getExtent(),L=_.count();if(O[1]-O[0]<1)return 0;var D=1;L>40&&(D=Math.max(1,Math.floor(L/40)));for(var N=O[0],M=x.dataToCoord(N+1)-x.dataToCoord(N),F=Math.abs(M*Math.cos(b)),R=Math.abs(M*Math.sin(b)),j=0,B=0;N<=O[1];N+=D){var K=0,U=0,z=E.getBoundingRect(w(N),C.font,"center","top");K=z.width*1.3,U=z.height*1.3,j=Math.max(j,K,7),B=Math.max(B,U,7)}var V=j/F,Y=B/R;isNaN(V)&&(V=Infinity),isNaN(Y)&&(Y=Infinity);var J=Math.max(0,Math.floor(Math.min(V,Y))),se=a(x.model),$=x.getExtent(),ae=se.lastAutoInterval,ge=se.lastTickCount;return ae!=null&&ge!=null&&Math.abs(ae-J)<=1&&Math.abs(ge-L)<=1&&ae>J&&se.axisExtend0===$[0]&&se.axisExtend1===$[1]?J=ae:(se.lastTickCount=L,se.lastAutoInterval=J,se.axisExtend0=$[0],se.axisExtend1=$[1]),J}function v(x){var C=x.getLabelModel();return{axisRotate:x.getRotate?x.getRotate():x.isHorizontal&&!x.isHorizontal()?90:0,labelRotate:C.get("rotate")||0,font:C.getFont()}}function A(x,C,w){var b=m(x),_=x.scale,O=_.getExtent(),L=x.getLabelModel(),D=[],N=Math.max((C||0)+1,1),M=O[0],F=_.count();M!==0&&N>1&&F/N>2&&(M=Math.round(Math.ceil(M/N)*N));var R=c(x),j=L.get("showMinLabel")||R,B=L.get("showMaxLabel")||R;j&&M!==O[0]&&U(O[0]);for(var K=M;K<=O[1];K+=N)U(K);B&&K-N!==O[1]&&U(O[1]);function U(z){D.push(w?z:{formattedLabel:b(z),rawLabel:_.getLabel(z),tickValue:z})}return D}function y(x,C,w){var b=x.scale,_=m(x),O=[];return I.each(b.getTicks(),function(L){var D=b.getLabel(L);C(L,D)&&O.push(w?L:{formattedLabel:_(L),rawLabel:D,tickValue:L})}),O}k.createAxisLabels=r,k.createAxisTicks=i,k.calculateCategoryInterval=p},"4NO4":function(H,k,d){var I=d("bYtY"),E=d("ItGF"),T=I.each,g=I.isObject,S=I.isArray,m="series\0";function h(w){return w instanceof Array?w:w==null?[]:[w]}function c(w,b,_){if(w){w[b]=w[b]||{},w.emphasis=w.emphasis||{},w.emphasis[b]=w.emphasis[b]||{};for(var O=0,L=_.length;O<L;O++){var D=_[O];!w.emphasis[b].hasOwnProperty(D)&&w[b].hasOwnProperty(D)&&(w.emphasis[b][D]=w[b][D])}}}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 r(w){return g(w)&&!S(w)&&!(w instanceof Date)?w.value:w}function i(w){return g(w)&&!(w instanceof Array)}function n(w,b){b=(b||[]).slice();var _=I.map(w||[],function(O,L){return{exist:O}});return T(b,function(O,L){if(!g(O))return;for(var D=0;D<_.length;D++)if(!_[D].option&&O.id!=null&&_[D].exist.id===O.id+""){_[D].option=O,b[L]=null;return}for(var D=0;D<_.length;D++){var N=_[D].exist;if(!_[D].option&&(N.id==null||O.id==null)&&O.name!=null&&!e(O)&&!e(N)&&N.name===O.name+""){_[D].option=O,b[L]=null;return}}}),T(b,function(O,L){if(!g(O))return;for(var D=0;D<_.length;D++){var N=_[D].exist;if(!_[D].option&&!e(N)&&O.id==null){_[D].option=O;break}}D>=_.length&&_.push({option:O})}),_}function t(w){var b=I.createHashMap();T(w,function(_,O){var L=_.exist;L&&b.set(L.id,_)}),T(w,function(_,O){var L=_.option;I.assert(!L||L.id==null||!b.get(L.id)||b.get(L.id)===_,"id duplicates: "+(L&&L.id)),L&&L.id!=null&&b.set(L.id,_),!_.keyInfo&&(_.keyInfo={})}),T(w,function(_,O){var L=_.exist,D=_.option,N=_.keyInfo;if(!g(D))return;if(N.name=D.name!=null?D.name+"":L?L.name:m+O,L)N.id=L.id;else if(D.id!=null)N.id=D.id+"";else{var M=0;do N.id="\0"+N.name+"\0"+M++;while(b.get(N.id))}b.set(N.id,_)})}function s(w){var b=w.name;return!!(b&&b.indexOf(m))}function e(w){return g(w)&&w.id&&(w.id+"").indexOf("\0_ec_\0")===0}function o(w,b){var _={},O={};return L(w||[],_),L(b||[],O,_),[D(_),D(O)];function L(N,M,F){for(var R=0,j=N.length;R<j;R++)for(var B=N[R].seriesId,K=h(N[R].dataIndex),U=F&&F[B],z=0,V=K.length;z<V;z++){var Y=K[z];U&&U[Y]?U[Y]=null:(M[B]||(M[B]={}))[Y]=1}}function D(N,M){var F=[];for(var R in N)if(N.hasOwnProperty(R)&&N[R]!=null)if(M)F.push(+R);else{var j=D(N[R],!0);j.length&&F.push({seriesId:R,dataIndex:j})}return F}}function l(w,b){if(b.dataIndexInside!=null)return b.dataIndexInside;if(b.dataIndex!=null)return I.isArray(b.dataIndex)?I.map(b.dataIndex,function(_){return w.indexOfRawIndex(_)}):w.indexOfRawIndex(b.dataIndex);if(b.name!=null)return I.isArray(b.name)?I.map(b.name,function(_){return w.indexOfName(_)}):w.indexOfName(b.name)}function u(){var w="__\0ec_inner_"+f+++"_"+Math.random().toFixed(5);return function(b){return b[w]||(b[w]={})}}var f=0;function p(w,b,_){if(I.isString(b)){var O={};O[b+"Index"]=0,b=O}var L=_&&_.defaultMainType;L&&!v(b,L+"Index")&&!v(b,L+"Id")&&!v(b,L+"Name")&&(b[L+"Index"]=0);var D={};return T(b,function(N,M){var N=b[M];if(M==="dataIndex"||M==="dataIndexInside"){D[M]=N;return}var F=M.match(/^(\w+)(Index|Id|Name)$/)||[],R=F[1],j=(F[2]||"").toLowerCase();if(!R||!j||N==null||j==="index"&&N==="none"||_&&_.includeMainTypes&&I.indexOf(_.includeMainTypes,R)<0)return;var B={mainType:R};(j!=="index"||N!=="all")&&(B[j]=N);var K=w.queryComponents(B);D[R+"Models"]=K,D[R+"Model"]=K[0]}),D}function v(w,b){return w&&w.hasOwnProperty(b)}function A(w,b,_){w.setAttribute?w.setAttribute(b,_):w[b]=_}function y(w,b){return w.getAttribute?w.getAttribute(b):w[b]}function x(w){return w==="auto"?E.domSupported?"html":"richText":w||"html"}function C(w,b){var _=I.createHashMap(),O=[];return I.each(w,function(L){var D=b(L);(_.get(D)||(O.push(D),_.set(D,[]))).push(L)}),{keys:O,buckets:_}}k.normalizeToArray=h,k.defaultEmphasis=c,k.TEXT_STYLE_OPTIONS=a,k.getDataItemValue=r,k.isDataItemOption=i,k.mappingToExists=n,k.makeIdAndName=t,k.isNameSpecified=s,k.isIdInner=e,k.compressBatches=o,k.queryDataIndex=l,k.makeInner=u,k.parseFinder=p,k.setAttribute=A,k.getAttribute=y,k.getTooltipRenderMode=x,k.groupData=C},"4NgU":function(H,k,d){var I=d("Yl7c");function E(g){this._setting=g||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}E.prototype.parse=function(g){return g},E.prototype.getSetting=function(g){return this._setting[g]},E.prototype.contain=function(g){var S=this._extent;return g>=S[0]&&g<=S[1]},E.prototype.normalize=function(g){var S=this._extent;return S[1]===S[0]?.5:(g-S[0])/(S[1]-S[0])},E.prototype.scale=function(g){var S=this._extent;return g*(S[1]-S[0])+S[0]},E.prototype.unionExtent=function(g){var S=this._extent;g[0]<S[0]&&(S[0]=g[0]),g[1]>S[1]&&(S[1]=g[1])},E.prototype.unionExtentFromData=function(g,S){this.unionExtent(g.getApproximateExtent(S))},E.prototype.getExtent=function(){return this._extent.slice()},E.prototype.setExtent=function(g,S){var m=this._extent;isNaN(g)||(m[0]=g),isNaN(S)||(m[1]=S)},E.prototype.isBlank=function(){return this._isBlank},E.prototype.setBlank=function(g){this._isBlank=g},E.prototype.getLabel=null,I.enableClassExtend(E),I.enableClassManagement(E,{registerWhenExtend:!0});var T=E;H.exports=T},"4fz+":function(H,k,d){var I=d("bYtY"),E=d("1bdT"),T=d("mFDi"),g=function(h){h=h||{},E.call(this,h);for(var c in h)h.hasOwnProperty(c)&&(this[c]=h[c]);this._children=[],this.__storage=null,this.__dirty=!0};g.prototype={constructor:g,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(h){return this._children[h]},childOfName:function(h){for(var c=this._children,a=0;a<c.length;a++)if(c[a].name===h)return c[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,c){if(h&&h!==this&&h.parent!==this&&c&&c.parent===this){var a=this._children,r=a.indexOf(c);r>=0&&(a.splice(r,0,h),this._doAdd(h))}return this},_doAdd:function(h){h.parent&&h.parent.remove(h),h.parent=this;var c=this.__storage,a=this.__zr;c&&c!==h.__storage&&(c.addToStorage(h),h instanceof g&&h.addChildrenToStorage(c)),a&&a.refresh()},remove:function(h){var c=this.__zr,a=this.__storage,r=this._children,i=I.indexOf(r,h);return i<0?this:(r.splice(i,1),h.parent=null,a&&(a.delFromStorage(h),h instanceof g&&h.delChildrenFromStorage(a)),c&&c.refresh(),this)},removeAll:function(){var h=this._children,c=this.__storage,a,r;for(r=0;r<h.length;r++)a=h[r],c&&(c.delFromStorage(a),a instanceof g&&a.delChildrenFromStorage(c)),a.parent=null;return h.length=0,this},eachChild:function(h,c){for(var a=this._children,r=0;r<a.length;r++){var i=a[r];h.call(c,i,r)}return this},traverse:function(h,c){for(var a=0;a<this._children.length;a++){var r=this._children[a];h.call(c,r),r.type==="group"&&r.traverse(h,c)}return this},addChildrenToStorage:function(h){for(var c=0;c<this._children.length;c++){var a=this._children[c];h.addToStorage(a),a instanceof g&&a.addChildrenToStorage(h)}},delChildrenFromStorage:function(h){for(var c=0;c<this._children.length;c++){var a=this._children[c];h.delFromStorage(a),a instanceof g&&a.delChildrenFromStorage(h)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(h){for(var c=null,a=new T(0,0,0,0),r=h||this._children,i=[],n=0;n<r.length;n++){var t=r[n];if(t.ignore||t.invisible)continue;var s=t.getBoundingRect(),e=t.getLocalTransform(i);e?(a.copy(s),a.applyTransform(e),c=c||a.clone(),c.union(a)):(c=c||s.clone(),c.union(s))}return c||a}},I.inherits(g,E);var S=g;H.exports=S},"4i/N":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="CloseOutlined";var h=k.a=E.forwardRef(m)},"4mN7":function(H,k,d){var I=d("QBsz"),E=d("Sj9i"),T=Math.min,g=Math.max,S=Math.sin,m=Math.cos,h=Math.PI*2,c=I.create(),a=I.create(),r=I.create();function i(u,f,p){if(u.length===0)return;var v=u[0],A=v[0],y=v[0],x=v[1],C=v[1],w;for(w=1;w<u.length;w++)v=u[w],A=T(A,v[0]),y=g(y,v[0]),x=T(x,v[1]),C=g(C,v[1]);f[0]=A,f[1]=x,p[0]=y,p[1]=C}function n(u,f,p,v,A,y){A[0]=T(u,p),A[1]=T(f,v),y[0]=g(u,p),y[1]=g(f,v)}var t=[],s=[];function e(u,f,p,v,A,y,x,C,w,b){var _=E.cubicExtrema,O=E.cubicAt,L,D=_(u,p,A,x,t);for(w[0]=Infinity,w[1]=Infinity,b[0]=-Infinity,b[1]=-Infinity,L=0;L<D;L++){var N=O(u,p,A,x,t[L]);w[0]=T(N,w[0]),b[0]=g(N,b[0])}for(D=_(f,v,y,C,s),L=0;L<D;L++){var M=O(f,v,y,C,s[L]);w[1]=T(M,w[1]),b[1]=g(M,b[1])}w[0]=T(u,w[0]),b[0]=g(u,b[0]),w[0]=T(x,w[0]),b[0]=g(x,b[0]),w[1]=T(f,w[1]),b[1]=g(f,b[1]),w[1]=T(C,w[1]),b[1]=g(C,b[1])}function o(u,f,p,v,A,y,x,C){var w=E.quadraticExtremum,b=E.quadraticAt,_=g(T(w(u,p,A),1),0),O=g(T(w(f,v,y),1),0),L=b(u,p,A,_),D=b(f,v,y,O);x[0]=T(u,A,L),x[1]=T(f,y,D),C[0]=g(u,A,L),C[1]=g(f,y,D)}function l(u,f,p,v,A,y,x,C,w){var b=I.min,_=I.max,O=Math.abs(A-y);if(O%h<1e-4&&O>1e-4){C[0]=u-p,C[1]=f-v,w[0]=u+p,w[1]=f+v;return}if(c[0]=m(A)*p+u,c[1]=S(A)*v+f,a[0]=m(y)*p+u,a[1]=S(y)*v+f,b(C,c,a),_(w,c,a),A=A%h,A<0&&(A=A+h),y=y%h,y<0&&(y=y+h),A>y&&!x?y+=h:A<y&&x&&(A+=h),x){var L=y;y=A,A=L}for(var D=0;D<y;D+=Math.PI/2)D>A&&(r[0]=m(D)*p+u,r[1]=S(D)*v+f,b(C,r,C),_(w,r,w))}k.fromPoints=i,k.fromLine=n,k.fromCubic=e,k.fromQuadratic=o,k.fromArc=l},"4vCz":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("X2/X")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="PlusSquareOutlined";var c=g.forwardRef(h);k.default=c},"4xFK":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},"56rv":function(H,k,d){var I=d("IwbS"),E=d("x3X8"),T=E.getDefaultLabel;function g(m,h,c,a,r,i,n){var t=c.getModel("label"),s=c.getModel("emphasis.label");I.setLabelStyle(m,h,t,s,{labelFetcher:r,labelDataIndex:i,defaultText:T(r.getData(),i),isRectText:!0,autoColor:a}),S(m),S(h)}function S(m,h){m.textPosition==="outside"&&(m.textPosition=h)}k.setLabel=g},"59Ip":function(H,k,d){var I=d("Sj9i");function E(T,g,S,m,h,c,a,r,i,n,t){if(i===0)return!1;var s=i;if(t>g+s&&t>m+s&&t>c+s&&t>r+s||t<g-s&&t<m-s&&t<c-s&&t<r-s||n>T+s&&n>S+s&&n>h+s&&n>a+s||n<T-s&&n<S-s&&n<h-s&&n<a-s)return!1;var e=I.cubicProjectPoint(T,g,S,m,h,c,a,r,n,t,null);return e<=s/2}k.containStroke=E},"5Dmo":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("5YgA"),g=d.n(T)},"5GOC":function(H,k,d){"use strict";var I=d("cIOH"),E=d("b56q"),T=d("15/o")},"5GhG":function(H,k,d){var I=d("5GtS"),E=d("bYtY"),T=d("L0Ub"),g=T.getDimensionTypeByAxis,S=d("D5nY"),m=S.makeSeriesEncodeForAxisCoordSys,h={_baseAxisDim:null,getInitialData:function(c,a){var r,i=a.getComponent("xAxis",this.get("xAxisIndex")),n=a.getComponent("yAxis",this.get("yAxisIndex")),t=i.get("type"),s=n.get("type"),e;t==="category"?(c.layout="horizontal",r=i.getOrdinalMeta(),e=!0):s==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),e=!0):c.layout=c.layout||"horizontal";var o=["x","y"],l=c.layout==="horizontal"?0:1,u=this._baseAxisDim=o[l],f=o[1-l],p=[i,n],v=p[l].get("type"),A=p[1-l].get("type"),y=c.data;if(y&&e){var x=[];E.each(y,function(b,_){var O;b.value&&E.isArray(b.value)?(O=b.value.slice(),b.value.unshift(_)):E.isArray(b)?(O=b.slice(),b.unshift(_)):O=b,x.push(O)}),c.data=x}var C=this.defaultValueDimensions,w=[{name:u,type:g(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:g(A),dimsDef:C.slice()}];return I(this,{coordDimensions:w,dimensionsCount:C.length+1,encodeDefaulter:E.curry(m,w,this)})},getBaseAxis:function(){var c=this._baseAxisDim;return this.ecModel.getComponent(c+"Axis",this.get(c+"AxisIndex")).axis}};k.seriesModelMixin=h},"5GtS":function(H,k,d){var I=d("sdST"),E=d("YXkt"),T=d("bYtY"),g=T.extend,S=T.isArray;function m(h,c,a){c=S(c)&&{coordDimensions:c}||g({},c);var r=h.getSource(),i=I(r,c),n=new E(i,h);return n.initData(r,a),n}H.exports=m},"5Hur":function(H,k,d){var I=d("4NO4"),E=I.makeInner,T=I.normalizeToArray,g=E();function S(h,c){for(var a=h.length,r=0;r<a;r++)if(h[r].length>c)return h[r];return h[a-1]}var m={clearColorPalette:function(){g(this).colorIdx=0,g(this).colorNameMap={}},getColorFromPalette:function(h,c,a){c=c||this;var r=g(c),i=r.colorIdx||0,n=r.colorNameMap=r.colorNameMap||{};if(n.hasOwnProperty(h))return n[h];var t=T(this.get("color",!0)),s=this.get("colorLayer",!0),e=a==null||!s?t:S(s,a);if(e=e||t,!e||!e.length)return;var o=e[i];return h&&(n[h]=o),r.colorIdx=(i+1)%e.length,o}};H.exports=m},"5NDa":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("OnYD"),g=d.n(T),S=d("+L6B")},"5NHt":function(H,k,d){d("aTJb"),d("OlYY"),d("fc+c"),d("N5BQ"),d("IyUQ"),d("LBfv"),d("noeP")},"5OYt":function(H,k,d){"use strict";var I=d("J4zp"),E=d.n(I),T=d("q1tI"),g=d.n(T),S=d("ACnJ");function m(){var h=Object(T.useState)({}),c=E()(h,2),a=c[0],r=c[1];return Object(T.useEffect)(function(){var i=S.a.subscribe(function(n){r(n)});return function(){return S.a.unsubscribe(i)}},[]),a}k.a=m},"5RzL":function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("7W2i"),r=d.n(a),i=d("LQ03"),n=d.n(i),t=d("q1tI"),s=d("1OyB"),e=d("vuIU"),o=d("Ji7U"),l=d("LK+K"),u=d("KQm4"),f=d("U8pU"),p=d("ODXe"),v=d("VTBJ"),A=d("qNPg"),y=d("2Qr1"),x=d("815F"),C=d("NvD2"),w=d("wPlo"),b=d("6cGi"),_=d("Kwbf"),O=d("4IlW"),L=d("YrtM"),D=d("fAei"),N=t.createContext(null);function M(ct,zt){if(!ct)return!0;var sr=ct.data,Kr=sr.disabled,ar=sr.disableCheckbox;switch(zt){case"select":return Kr;case"checkbox":return Kr||ar}return!1}function F(ct,zt){var sr=t.useCallback(function(ar){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Lt=arguments.length>2?arguments[2]:void 0,st=ct.get(ar);return!Lt&&M(st,nr)?null:st},[ct]),Kr=t.useCallback(function(ar){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Lt=arguments.length>2?arguments[2]:void 0,st=zt.get(ar);return!Lt&&M(st,nr)?null:st},[zt]);return[sr,Kr]}function R(ct){return t.useMemo(function(){var zt=new Map,sr=new Map;return ct.forEach(function(Kr){zt.set(Kr.key,Kr),sr.set(Kr.data.value,Kr)}),[zt,sr]},[ct])}var j={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},B=function(zt,sr){var Kr=zt.prefixCls,ar=zt.height,nr=zt.itemHeight,Lt=zt.virtual,st=zt.options,Qe=zt.flattenOptions,qt=zt.multiple,Sr=zt.searchValue,Ar=zt.onSelect,hr=zt.onToggleOpen,vn=zt.open,Zr=zt.notFoundContent,Ln=zt.onMouseEnter,$e=t.useContext(N),tt=$e.checkable,Ee=$e.checkedKeys,Re=$e.halfCheckedKeys,je=$e.treeExpandedKeys,nt=$e.treeDefaultExpandAll,Vt=$e.treeDefaultExpandedKeys,Bt=$e.onTreeExpand,Xt=$e.treeIcon,Rr=$e.showTreeIcon,Br=$e.switcherIcon,cn=$e.treeLine,Ut=$e.treeNodeFilterProp,pt=$e.loadData,ut=$e.treeLoadedKeys,Jt=$e.treeMotion,Zt=$e.onTreeLoad,At=t.useRef(),Pt=Object(L.a)(function(){return st},[vn,st],function(kr,yr){return yr[0]&&kr[1]!==yr[1]}),vt=R(Qe),Ft=Object(p.a)(vt,2),gr=Ft[0],or=Ft[1],ur=F(gr,or),Yr=Object(p.a)(ur,2),Jr=Yr[0],Tn=Yr[1],Dn=t.useMemo(function(){return Ee.map(function(kr){var yr=Tn(kr);return yr?yr.key:null})},[Ee]),zn=t.useMemo(function(){return tt?{checked:Dn,halfChecked:Re}:null},[Dn,Re,tt]);t.useEffect(function(){if(vn&&!qt&&Dn.length){var kr;(kr=At.current)===null||kr===void 0||kr.scrollTo({key:Dn[0]})}},[vn]);var qn=String(Sr).toLowerCase(),Ai=function(yr){return qn?String(yr[Ut]).toLowerCase().includes(qn):!1},Mi=t.useState(Vt),Ye=Object(p.a)(Mi,2),Ce=Ye[0],ke=Ye[1],Fe=t.useState(null),Ve=Object(p.a)(Fe,2),We=Ve[0],Ze=Ve[1],yt=t.useMemo(function(){return je?Object(u.a)(je):Sr?We:Ce},[Ce,We,qn,je]);t.useEffect(function(){Sr&&Ze(Qe.map(function(kr){return kr.key}))},[Sr]);var lt=function(yr){ke(yr),Ze(yr),Bt&&Bt(yr)},kt=function(yr){yr.preventDefault()},wr=function(yr,En){var kn=En.node.key,ii=Jr(kn,tt?"checkbox":"select");ii!==null&&Ar(ii.data.value,{selected:!Ee.includes(ii.data.value)}),qt||hr(!1)},pr=t.useState(null),_r=Object(p.a)(pr,2),Wt=_r[0],un=_r[1],ir=Jr(Wt);if(t.useImperativeHandle(sr,function(){return{onKeyDown:function(yr){var En,kn=yr.which;switch(kn){case O.a.UP:case O.a.DOWN:case O.a.LEFT:case O.a.RIGHT:(En=At.current)===null||En===void 0||En.onKeyDown(yr);break;case O.a.ENTER:{ir!==null&&wr(null,{node:{key:Wt},selected:!Ee.includes(ir.data.value)});break}case O.a.ESC:hr(!1)}},onKeyUp:function(){}}}),Pt.length===0)return t.createElement("div",{role:"listbox",className:"".concat(Kr,"-empty"),onMouseDown:kt},Zr);var Gr={};return ut&&(Gr.loadedKeys=ut),yt&&(Gr.expandedKeys=yt),t.createElement("div",{onMouseDown:kt,onMouseEnter:Ln},ir&&vn&&t.createElement("span",{style:j,"aria-live":"assertive"},ir.data.value),t.createElement(D.b,Object.assign({ref:At,focusable:!1,prefixCls:"".concat(Kr,"-tree"),treeData:Pt,height:ar,itemHeight:nr,virtual:Lt,multiple:qt,icon:Xt,showIcon:Rr,switcherIcon:Br,showLine:cn,loadData:Sr?null:pt,motion:Jt,checkable:tt,checkStrictly:!0,checkedKeys:zn,selectedKeys:tt?[]:Dn,defaultExpandAll:nt},Gr,{onActiveChange:un,onSelect:wr,onCheck:wr,onExpand:lt,onLoad:Zt,filterTreeNode:Ai})))},K=t.forwardRef(B);K.displayName="OptionList";var U=K,z=function(){return null},V=z,Y=d("Ff2n"),J=d("Zm9Q");function se(ct){return Object(J.a)(ct).map(function(zt){if(!t.isValidElement(zt)||!zt.type)return null;var sr=zt.key,Kr=zt.props,ar=Kr.children,nr=Kr.value,Lt=Object(Y.a)(Kr,["children","value"]),st=Object(v.a)({key:sr,value:nr},Lt),Qe=se(ar);return Qe.length&&(st.children=Qe),st}).filter(function(zt){return zt})}function $(ct){if(!ct)return ct;var zt=Object(v.a)({},ct);return"props"in zt||Object.defineProperty(zt,"props",{get:function(){return Object(_.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),zt}}),zt}function ae(ct,zt,sr,Kr,ar){var nr=null,Lt=null;function st(){function Qe(qt){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return qt.map(function(hr,vn){var Zr="".concat(Sr,"-").concat(vn),Ln=sr.includes(hr.value),$e=Qe(hr.children||[],Zr,Ln),tt=t.createElement(V,Object.assign({},hr),$e.map(function(Re){return Re.node}));if(zt===hr.value&&(nr=tt),Ln){var Ee={pos:Zr,node:tt,children:$e};return Ar||Lt.push(Ee),Ee}return null}).filter(function(hr){return hr})}Lt||(Lt=[],Qe(Kr),Lt.sort(function(qt,Sr){var Ar=qt.node.props.value,hr=Sr.node.props.value,vn=sr.indexOf(Ar),Zr=sr.indexOf(hr);return vn-Zr}))}Object.defineProperty(ct,"triggerNode",{get:function(){return Object(_.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),st(),nr}}),Object.defineProperty(ct,"allCheckedNodes",{get:function(){return Object(_.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),st(),ar?Lt:Lt.map(function(qt){var Sr=qt.node;return Sr})}})}function ge(ct){return Array.isArray(ct)?ct:ct!==void 0?[ct]:[]}function pe(ct,zt){var sr=new Map;return zt.forEach(function(Kr){var ar=Kr.data;sr.set(ar.value,ar)}),ct.map(function(Kr){return $(sr.get(Kr))})}function Ne(ct,zt){var sr=pe([ct],zt)[0];return sr?sr.disabled:!1}function de(ct){return ct.disabled||ct.disableCheckbox||ct.checkable===!1}function Le(ct){for(var zt=ct.parent,sr=0,Kr=zt;Kr;)Kr=Kr.parent,sr+=1;return sr}function Q(ct){function zt(Kr){return(Kr||[]).map(function(ar){var nr=ar.value,Lt=ar.key,st=ar.children,Qe=Object(v.a)(Object(v.a)({},ar),{},{key:"key"in ar?Lt:nr});return st&&(Qe.children=zt(st)),Qe})}var sr=Object(x.d)(zt(ct),!0);return sr.map(function(Kr){return{key:Kr.data.key,data:Kr.data,level:Le(Kr)}})}function ce(ct){return function(zt,sr){var Kr=sr[ct];return String(Kr).toLowerCase().includes(String(zt).toLowerCase())}}function Ke(ct,zt,sr){var Kr=sr.optionFilterProp,ar=sr.filterOption;if(ar===!1)return zt;var nr;typeof ar=="function"?nr=ar:nr=ce(Kr);function Lt(st){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return st.map(function(qt){var Sr=qt.children,Ar=Qe||nr(ct,$(qt)),hr=Lt(Sr||[],Ar);return Ar||hr.length?Object(v.a)(Object(v.a)({},qt),{},{children:hr}):null}).filter(function(qt){return qt})}return Lt(zt)}function ee(ct,zt,sr,Kr){var ar=new Map;return ge(zt).forEach(function(nr){nr&&Object(f.a)(nr)==="object"&&"value"in nr&&ar.set(nr.value,nr)}),ct.map(function(nr){var Lt={value:nr},st=sr(nr,"select",!0),Qe=st?Kr(st.data):nr;if(ar.has(nr)){var qt=ar.get(nr);Lt.label="label"in qt?qt.label:Qe,"halfChecked"in qt&&(Lt.halfChecked=qt.halfChecked)}else Lt.label=Qe;return Lt})}function X(ct,zt){var sr=new Set(ct);return sr.add(zt),Array.from(sr)}function G(ct,zt){var sr=new Set(ct);return sr.delete(zt),Array.from(sr)}function Z(ct){var zt=ct.searchPlaceholder,sr=ct.treeCheckStrictly,Kr=ct.treeCheckable,ar=ct.labelInValue,nr=ct.value,Lt=ct.multiple;Object(_.a)(!zt,"`searchPlaceholder` has been removed."),sr&&ar===!1&&Object(_.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ar||sr)&&Object(_.a)(ge(nr).every(function(st){return st&&Object(f.a)(st)==="object"&&"value"in st}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),sr||Lt||Kr?Object(_.a)(!nr||Array.isArray(nr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(_.a)(!Array.isArray(nr),"`value` should not be array when `TreeSelect` is single mode.")}var ve=Z,ue=10;function _e(ct,zt){var sr=zt.id,Kr=zt.pId,ar=zt.rootPId,nr={},Lt=[],st=ct.map(function(Qe){var qt=Object(v.a)({},Qe),Sr=qt[sr];return nr[Sr]=qt,qt.key=qt.key||Sr,qt});return st.forEach(function(Qe){var qt=Qe[Kr],Sr=nr[qt];Sr&&(Sr.children=Sr.children||[],Sr.children.push(Qe)),(qt===ar||!Sr&&ar===null)&&Lt.push(Qe)}),Lt}function xe(ct,zt){var sr=0,Kr=new Set;function ar(nr){return(nr||[]).map(function(Lt){var st=Lt.key,Qe=Lt.value,qt=Lt.children,Sr=Object(Y.a)(Lt,["key","value","children"]),Ar="value"in Lt?Qe:st,hr=Object(v.a)(Object(v.a)({},Sr),{},{key:st!=null?st:Ar,value:Ar,title:zt(Lt)});return"children"in Lt&&(hr.children=ar(qt)),hr})}return ar(ct)}function oe(ct,zt,sr){var Kr=sr.getLabelProp,ar=sr.simpleMode,nr=t.useRef({});return ct?(nr.current.formatTreeData=nr.current.treeData===ct?nr.current.formatTreeData:xe(ar?_e(ct,Object(v.a)({id:"id",pId:"pId",rootPId:null},ar!==!0?ar:{})):ct,Kr),nr.current.treeData=ct):nr.current.formatTreeData=nr.current.children===zt?nr.current.formatTreeData:xe(se(zt),Kr),nr.current.formatTreeData}var fe="SHOW_ALL",Te="SHOW_PARENT",ze="SHOW_CHILD";function it(ct,zt,sr){var Kr=new Set(ct);return zt===ze?ct.filter(function(ar){var nr=sr[ar];return!(nr&&nr.children&&nr.children.every(function(Lt){var st=Lt.node;return de(st)||Kr.has(st.key)}))}):zt===Te?ct.filter(function(ar){var nr=sr[ar],Lt=nr?nr.parent:null;return!(Lt&&!de(Lt.node)&&Kr.has(Lt.node.key))}):ct}function et(ct,zt){var sr=zt.value,Kr=zt.getEntityByValue,ar=zt.getEntityByKey,nr=zt.treeConduction,Lt=zt.showCheckedStrategy,st=zt.conductKeyEntities,Qe=zt.getLabelProp;return t.useMemo(function(){var qt=ct;if(nr){var Sr=it(ct.map(function(Ar){var hr=Kr(Ar);return hr?hr.key:Ar}),Lt,st);qt=Sr.map(function(Ar){var hr=ar(Ar);return hr?hr.data.value:Ar})}return ee(qt,sr,Kr,Qe)},[ct,sr,nr,Lt,Kr])}var Oe=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],gt=Object(A.a)({prefixCls:"rc-tree-select",components:{optionList:U},convertChildrenToData:function(){return null},flattenOptions:Q,getLabeledValue:y.e,filterOptions:Ke,isValueDisabled:Ne,findValueOption:pe,omitDOMProps:function(zt){var sr=Object(v.a)({},zt);return Oe.forEach(function(Kr){delete sr[Kr]}),sr}});gt.displayName="Select";var Ge=t.forwardRef(function(ct,zt){var sr=ct.multiple,Kr=ct.treeCheckable,ar=ct.treeCheckStrictly,nr=ct.showCheckedStrategy,Lt=nr===void 0?"SHOW_CHILD":nr,st=ct.labelInValue,Qe=ct.loadData,qt=ct.treeLoadedKeys,Sr=ct.treeNodeFilterProp,Ar=Sr===void 0?"value":Sr,hr=ct.treeNodeLabelProp,vn=ct.treeDataSimpleMode,Zr=ct.treeData,Ln=ct.treeExpandedKeys,$e=ct.treeDefaultExpandedKeys,tt=ct.treeDefaultExpandAll,Ee=ct.children,Re=ct.treeIcon,je=ct.showTreeIcon,nt=ct.switcherIcon,Vt=ct.treeLine,Bt=ct.treeMotion,Xt=ct.filterTreeNode,Rr=ct.dropdownPopupAlign,Br=ct.onChange,cn=ct.onTreeExpand,Ut=ct.onTreeLoad,pt=ct.onDropdownVisibleChange,ut=ct.onSelect,Jt=ct.onDeselect,Zt=Kr||ar,At=sr||Zt,Pt=Kr&&!ar,vt=ar||st,Ft=t.useRef(null);t.useImperativeHandle(zt,function(){return{focus:Ft.current.focus,blur:Ft.current.blur}});var gr=function(kn){return Zr&&kn.label||kn.title},or=function(kn){return hr?kn[hr]:gr(kn)},ur=oe(Zr,Ee,{getLabelProp:gr,simpleMode:vn}),Yr=Object(t.useMemo)(function(){return Q(ur)},[ur]),Jr=R(Yr),Tn=Object(p.a)(Jr,2),Dn=Tn[0],zn=Tn[1],qn=F(Dn,zn),Ai=Object(p.a)(qn,2),Mi=Ai[0],Ye=Ai[1],Ce=Object(t.useMemo)(function(){return Pt?Object(x.a)(ur):{keyEntities:null}},[ur,Kr,ar]),ke=Ce.keyEntities,Fe=Object(b.a)(ct.defaultValue,{value:ct.value}),Ve=Object(p.a)(Fe,2),We=Ve[0],Ze=Ve[1],yt=function(kn){var ii=[],oi=[];return kn.forEach(function(ei){Ye(ei)?oi.push(ei):ii.push(ei)}),{missingRawValues:ii,existRawValues:oi}},lt=Object(t.useMemo)(function(){var En=[],kn=[];if(ge(We).forEach(function(zr){if(zr&&Object(f.a)(zr)==="object"&&"value"in zr)if(zr.halfChecked&&ar){var Cn=Ye(zr.value);En.push(Cn?Cn.key:zr.value)}else kn.push(zr.value);else kn.push(zr)}),Pt){var ii=yt(kn),oi=ii.missingRawValues,ei=ii.existRawValues,ci=ei.map(function(zr){return Ye(zr).key}),Pn=Object(C.a)(ci,!0,ke),xi=Pn.checkedKeys,gn=Pn.halfCheckedKeys;return[[].concat(Object(u.a)(oi),Object(u.a)(xi.map(function(zr){return Mi(zr).data.value}))),gn]}return[kn,En]},[We,At,vt,Kr,ar]),kt=Object(p.a)(lt,2),wr=kt[0],pr=kt[1],_r=et(wr,{treeConduction:Pt,value:We,showCheckedStrategy:Lt,conductKeyEntities:ke,getEntityByValue:Ye,getEntityByKey:Mi,getLabelProp:or}),Wt=function(kn,ii,oi){if(Ze(At?kn:kn[0]),Br){var ei=kn;if(Pt&&Lt!=="SHOW_ALL"){var ci=kn.map(function(wi){var Gn=Ye(wi);return Gn?Gn.key:wi}),Pn=it(ci,Lt,ke);ei=Pn.map(function(wi){var Gn=Mi(wi);return Gn?Gn.data.value:wi})}var xi=ii||{triggerValue:void 0,selected:void 0},gn=xi.triggerValue,zr=xi.selected,Cn=vt?ee(ei,We,Ye,or):ei;if(ar){var on=pr.map(function(wi){var Gn=Mi(wi);return Gn?Gn.data.value:wi}).filter(function(wi){return!ei.includes(wi)});Cn=[].concat(Object(u.a)(Cn),Object(u.a)(ee(on,We,Ye,or)))}var li={preValue:_r,triggerValue:gn},ri=!0;(ar||oi==="selection"&&!zr)&&(ri=!1),ae(li,gn,kn,ur,ri),Zt?li.checked=zr:li.selected=zr,Br(At?Cn:Cn[0],vt?null:ei.map(function(wi){var Gn=Ye(wi);return Gn?or(Gn.data):null}),li)}},un=function(kn,ii,oi){var ei=kn;if(!At)Wt([kn],{selected:!0,triggerValue:kn},oi);else{var ci=X(wr,kn);if(Pt){var Pn=yt(ci),xi=Pn.missingRawValues,gn=Pn.existRawValues,zr=gn.map(function(li){return Ye(li).key}),Cn=Object(C.a)(zr,!0,ke),on=Cn.checkedKeys;ci=[].concat(Object(u.a)(xi),Object(u.a)(on.map(function(li){return Mi(li).data.value})))}Wt(ci,{selected:!0,triggerValue:kn},oi)}ut&&ut(ei,ii)},ir=function(kn,ii,oi){var ei=kn,ci=G(wr,kn);if(Pt){var Pn=yt(ci),xi=Pn.missingRawValues,gn=Pn.existRawValues,zr=gn.map(function(li){return Ye(li).key}),Cn=Object(C.a)(zr,{checked:!1,halfCheckedKeys:pr},ke),on=Cn.checkedKeys;ci=[].concat(Object(u.a)(xi),Object(u.a)(on.map(function(li){return Mi(li).data.value})))}Wt(ci,{selected:!1,triggerValue:kn},oi),Jt&&Jt(ei,ii)},Gr=function(){Wt([],null,"clear")},kr=t.useCallback(function(En){if(pt){var kn={};Object.defineProperty(kn,"documentClickClose",{get:function(){return Object(_.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),pt(En,kn)}},[pt]),yr={optionLabelProp:null,optionFilterProp:Ar,dropdownAlign:Rr,internalProps:{mark:w.a,onClear:Gr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:un,onRawDeselect:ir}};return"filterTreeNode"in ct&&(yr.filterOption=Xt),t.createElement(N.Provider,{value:{checkable:Zt,loadData:Qe,treeLoadedKeys:qt,onTreeLoad:Ut,checkedKeys:wr,halfCheckedKeys:pr,treeDefaultExpandAll:tt,treeExpandedKeys:Ln,treeDefaultExpandedKeys:$e,onTreeExpand:cn,treeIcon:Re,treeMotion:Bt,showTreeIcon:je,switcherIcon:nt,treeLine:Vt,treeNodeFilterProp:Ar}},t.createElement(gt,Object.assign({ref:Ft,mode:At?"multiple":null},ct,yr,{value:_r,labelInValue:!0,options:ur,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:kr})))}),wt=function(ct){Object(o.a)(sr,ct);var zt=Object(l.a)(sr);function sr(){var Kr;return Object(s.a)(this,sr),Kr=zt.apply(this,arguments),Kr.selectRef=t.createRef(),Kr.focus=function(){Kr.selectRef.current.focus()},Kr.blur=function(){Kr.selectRef.current.blur()},Kr}return Object(e.a)(sr,[{key:"render",value:function(){return t.createElement(Ge,Object.assign({ref:this.selectRef},this.props))}}]),sr}(t.Component);wt.TreeNode=V,wt.SHOW_ALL=fe,wt.SHOW_PARENT=Te,wt.SHOW_CHILD=ze;var xt=wt,Ct=xt,Dt=d("TSYQ"),Ht=d.n(Dt),Je=d("BGR+"),ye=d("H84U"),ie=d("uaoM"),bt=d("1vzs"),qe=d("2jpz"),me=d("3Nzz"),Rt=function(ct){r()(sr,ct);var zt=n()(sr);function sr(Kr){var ar;return m()(this,sr),ar=zt.call(this,Kr),ar.selectRef=t.createRef(),ar.renderTreeSelect=function(nr){var Lt=nr.getPopupContainer,st=nr.getPrefixCls,Qe=nr.renderEmpty,qt=nr.direction,Sr=nr.virtual,Ar=nr.dropdownMatchSelectWidth,hr=ar.props,vn=hr.prefixCls,Zr=hr.size,Ln=hr.className,$e=hr.treeCheckable,tt=hr.multiple,Ee=hr.listHeight,Re=Ee===void 0?256:Ee,je=hr.listItemHeight,nt=je===void 0?26:je,Vt=hr.notFoundContent,Bt=hr.switcherIcon,Xt=hr.treeLine,Rr=hr.getPopupContainer,Br=hr.dropdownClassName,cn=hr.bordered,Ut=hr.treeIcon,pt=Ut===void 0?!1:Ut,ut=st("select",vn),Jt=st("select-tree",vn),Zt=st("tree-select",vn),At=Ht()(Br,"".concat(Zt,"-dropdown"),g()({},"".concat(Zt,"-dropdown-rtl"),qt==="rtl")),Pt=!!($e||tt),vt=Object(bt.a)(E()(E()({},ar.props),{multiple:Pt,prefixCls:ut})),Ft=vt.suffixIcon,gr=vt.itemIcon,or=vt.removeIcon,ur=vt.clearIcon,Yr;Vt!==void 0?Yr=Vt:Yr=Qe("Select");var Jr=Object(Je.default)(ar.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return t.createElement(me.b.Consumer,null,function(Tn){var Dn,zn=Zr||Tn,qn=Ht()(!vn&&Zt,(Dn={},g()(Dn,"".concat(ut,"-lg"),zn==="large"),g()(Dn,"".concat(ut,"-sm"),zn==="small"),g()(Dn,"".concat(ut,"-rtl"),qt==="rtl"),g()(Dn,"".concat(ut,"-borderless"),!cn),Dn),Ln);return t.createElement(Ct,E()({virtual:Sr,dropdownMatchSelectWidth:Ar},Jr,{ref:ar.selectRef,prefixCls:ut,className:qn,listHeight:Re,listItemHeight:nt,treeCheckable:$e&&t.createElement("span",{className:"".concat(ut,"-tree-checkbox-inner")}),inputIcon:Ft,menuItemSelectedIcon:gr,removeIcon:or,clearIcon:ur,switcherIcon:function(Mi){return Object(qe.a)(Jt,Bt,Xt,Mi)},showTreeIcon:pt,notFoundContent:Yr,getPopupContainer:Rr||Lt,treeMotion:null,dropdownClassName:At}))})},Object(ie.a)(Kr.multiple!==!1||!Kr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),ar}return c()(sr,[{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 t.createElement(ye.a,null,this.renderTreeSelect)}}]),sr}(t.Component);Rt.TreeNode=V,Rt.SHOW_ALL=fe,Rt.SHOW_PARENT=Te,Rt.SHOW_CHILD=ze,Rt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var er=k.a=Rt},"5Uyt":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("KmBX"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},"5YOS":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("xb2K"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},"5YgA":function(H,k,d){},"5bA4":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="LeftOutlined";var h=k.a=E.forwardRef(m)},"5hvy":function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("MlIO"))})(this,function(I){return function(E){var T=I,g=T.lib,S=g.WordArray,m=g.Hasher,h=T.x64,c=h.Word,a=T.algo,r=[],i=[],n=[];(function(){for(var e=1,o=0,l=0;l<24;l++){r[e+5*o]=(l+1)*(l+2)/2%64;var u=o%5,f=(2*e+3*o)%5;e=u,o=f}for(var e=0;e<5;e++)for(var o=0;o<5;o++)i[e+5*o]=o+(2*e+3*o)%5*5;for(var p=1,v=0;v<24;v++){for(var A=0,y=0,x=0;x<7;x++){if(p&1){var C=(1<<x)-1;C<32?y^=1<<C:A^=1<<C-32}p&128?p=p<<1^113:p<<=1}n[v]=c.create(A,y)}})();var t=[];(function(){for(var e=0;e<25;e++)t[e]=c.create()})();var s=a.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var o=this._state=[],l=0;l<25;l++)o[l]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(o,l){for(var u=this._state,f=this.blockSize/2,p=0;p<f;p++){var v=o[l+2*p],A=o[l+2*p+1];v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var y=u[p];y.high^=A,y.low^=v}for(var x=0;x<24;x++){for(var C=0;C<5;C++){for(var w=0,b=0,_=0;_<5;_++){var y=u[C+5*_];w^=y.high,b^=y.low}var O=t[C];O.high=w,O.low=b}for(var C=0;C<5;C++)for(var L=t[(C+4)%5],D=t[(C+1)%5],N=D.high,M=D.low,w=L.high^(N<<1|M>>>31),b=L.low^(M<<1|N>>>31),_=0;_<5;_++){var y=u[C+5*_];y.high^=w,y.low^=b}for(var F=1;F<25;F++){var w,b,y=u[F],R=y.high,j=y.low,B=r[F];B<32?(w=R<<B|j>>>32-B,b=j<<B|R>>>32-B):(w=j<<B-32|R>>>64-B,b=R<<B-32|j>>>64-B);var K=t[i[F]];K.high=w,K.low=b}var U=t[0],z=u[0];U.high=z.high,U.low=z.low;for(var C=0;C<5;C++)for(var _=0;_<5;_++){var F=C+5*_,y=u[F],V=t[F],Y=t[(C+1)%5+5*_],J=t[(C+2)%5+5*_];y.high=V.high^~Y.high&J.high,y.low=V.low^~Y.low&J.low}var y=u[0],se=n[x];y.high^=se.high,y.low^=se.low}},_doFinalize:function(){var o=this._data,l=o.words,u=this._nDataBytes*8,f=o.sigBytes*8,p=this.blockSize*32;l[f>>>5]|=1<<24-f%32,l[(E.ceil((f+1)/p)*p>>>5)-1]|=128,o.sigBytes=l.length*4,this._process();for(var v=this._state,A=this.cfg.outputLength/8,y=A/8,x=[],C=0;C<y;C++){var w=v[C],b=w.high,_=w.low;b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,x.push(_),x.push(b)}return new S.init(x,A)},clone:function(){for(var o=m.clone.call(this),l=o._state=this._state.slice(0),u=0;u<25;u++)l[u]=l[u].clone();return o}});T.SHA3=m._createHelper(s),T.HmacSHA3=m._createHmacHelper(s)}(Math),I.SHA3})},"5nXd":function(H,k,d){var I=d("MFOe"),E=I.slice,T=I.pluck,g=I.each,S=I.bind,m=I.create,h=I.isList,c=I.isFunction,a=I.isObject;H.exports={createStore:n};var r={version:"2.0.12",enabled:!1,get:function(s,e){var o=this.storage.read(this._namespacePrefix+s);return this._deserialize(o,e)},set:function(s,e){return e===void 0?this.remove(s):(this.storage.write(this._namespacePrefix+s,this._serialize(e)),e)},remove:function(s){this.storage.remove(this._namespacePrefix+s)},each:function(s){var e=this;this.storage.each(function(o,l){s.call(e,e._deserialize(o),(l||"").replace(e._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(s){return this._namespacePrefix=="__storejs_"+s+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(s){this._addPlugin(s)},namespace:function(s){return n(this.storage,this.plugins,s)}};function i(){var t=typeof console=="undefined"?null:console;if(!t)return;var s=t.warn?t.warn:t.log;s.apply(t,arguments)}function n(t,s,e){e||(e=""),t&&!h(t)&&(t=[t]),s&&!h(s)&&(s=[s]);var o=e?"__storejs_"+e+"_":"",l=e?new RegExp("^"+o):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var f={_namespacePrefix:o,_namespaceRegexp:l,_testStorage:function(A){try{var y="__storejs__test__";A.write(y,y);var x=A.read(y)===y;return A.remove(y),x}catch(C){return!1}},_assignPluginFnProp:function(A,y){var x=this[y];this[y]=function(){var w=E(arguments,0),b=this;function _(){return x?(g(arguments,function(L,D){w[D]=L}),x.apply(b,w)):void 0}var O=[_].concat(w);return A.apply(b,O)}},_serialize:function(A){return JSON.stringify(A)},_deserialize:function(A,y){if(!A)return y;var x="";try{x=JSON.parse(A)}catch(C){x=A}return x!==void 0?x:y},_addStorage:function(A){if(this.enabled)return;this._testStorage(A)&&(this.storage=A,this.enabled=!0)},_addPlugin:function(A){var y=this;if(h(A)){g(A,function(w){y._addPlugin(w)});return}var x=T(this.plugins,function(w){return A===w});if(x)return;if(this.plugins.push(A),!c(A))throw new Error("Plugins must be function values that return objects");var C=A.call(this);if(!a(C))throw new Error("Plugins must return an object of function properties");g(C,function(w,b){if(!c(w))throw new Error("Bad plugin property: "+b+" from plugin "+A.name+". Plugins should only return functions.");y._assignPluginFnProp(w,b)})},addStorage:function(A){i("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(A)}},p=m(f,r,{plugins:[]});return p.raw={},g(p,function(v,A){c(v)&&(p.raw[A]=S(p,v))}),g(t,function(v){p._addStorage(v)}),g(s,function(v){p._addPlugin(v)}),p}},"5rEg":function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lwsE"),g=d.n(T),S=d("W8MJ"),m=d.n(S),h=d("7W2i"),c=d.n(h),a=d("LQ03"),r=d.n(a),i=d("lSNA"),n=d.n(i),t=d("q1tI"),s=d("TSYQ"),e=d.n(s),o=d("BGR+"),l=d("kbBi"),u=d.n(l),f=d("CWQg"),p=d("0n0R"),v=Object(f.a)("text","input");function A(Z){return!!(Z.prefix||Z.suffix||Z.allowClear)}var y=function(Z){c()(ue,Z);var ve=r()(ue);function ue(){var _e;return g()(this,ue),_e=ve.apply(this,arguments),_e.containerRef=t.createRef(),_e.onInputMouseUp=function(xe){var oe;if((oe=_e.containerRef.current)===null||oe===void 0?void 0:oe.contains(xe.target)){var fe=_e.props.triggerFocus;fe()}},_e}return m()(ue,[{key:"renderClearIcon",value:function(xe){var oe=this.props,fe=oe.allowClear,Te=oe.value,ze=oe.disabled,it=oe.readOnly,et=oe.inputType,Oe=oe.handleReset;if(!fe)return null;var gt=!ze&&!it&&Te,Ge=et===v[0]?"".concat(xe,"-textarea-clear-icon"):"".concat(xe,"-clear-icon");return t.createElement(u.a,{onClick:Oe,className:e()(Ge,n()({},"".concat(Ge,"-hidden"),!gt)),role:"button"})}},{key:"renderSuffix",value:function(xe){var oe=this.props,fe=oe.suffix,Te=oe.allowClear;return fe||Te?t.createElement("span",{className:"".concat(xe,"-suffix")},this.renderClearIcon(xe),fe):null}},{key:"renderLabeledIcon",value:function(xe,oe){var fe,Te=this.props,ze=Te.focused,it=Te.value,et=Te.prefix,Oe=Te.className,gt=Te.size,Ge=Te.suffix,wt=Te.disabled,xt=Te.allowClear,Ct=Te.direction,Dt=Te.style,Ht=Te.readOnly,Je=Te.bordered,ye=this.renderSuffix(xe);if(!A(this.props))return Object(p.a)(oe,{value:it});var ie=et?t.createElement("span",{className:"".concat(xe,"-prefix")},et):null,bt=e()(Oe,"".concat(xe,"-affix-wrapper"),(fe={},n()(fe,"".concat(xe,"-affix-wrapper-focused"),ze),n()(fe,"".concat(xe,"-affix-wrapper-disabled"),wt),n()(fe,"".concat(xe,"-affix-wrapper-sm"),gt==="small"),n()(fe,"".concat(xe,"-affix-wrapper-lg"),gt==="large"),n()(fe,"".concat(xe,"-affix-wrapper-input-with-clear-btn"),Ge&&xt&&it),n()(fe,"".concat(xe,"-affix-wrapper-rtl"),Ct==="rtl"),n()(fe,"".concat(xe,"-affix-wrapper-readonly"),Ht),n()(fe,"".concat(xe,"-affix-wrapper-borderless"),!Je),fe));return t.createElement("span",{ref:this.containerRef,className:bt,style:Dt,onMouseUp:this.onInputMouseUp},ie,Object(p.a)(oe,{style:null,value:it,className:L(xe,Je,gt,wt)}),ye)}},{key:"renderInputWithLabel",value:function(xe,oe){var fe,Te,ze=this.props,it=ze.addonBefore,et=ze.addonAfter,Oe=ze.style,gt=ze.size,Ge=ze.className,wt=ze.direction;if(!it&&!et)return oe;var xt="".concat(xe,"-group"),Ct="".concat(xt,"-addon"),Dt=it?t.createElement("span",{className:Ct},it):null,Ht=et?t.createElement("span",{className:Ct},et):null,Je=e()("".concat(xe,"-wrapper"),(fe={},n()(fe,xt,it||et),n()(fe,"".concat(xt,"-rtl"),wt==="rtl"),fe)),ye=e()(Ge,"".concat(xe,"-group-wrapper"),(Te={},n()(Te,"".concat(xe,"-group-wrapper-sm"),gt==="small"),n()(Te,"".concat(xe,"-group-wrapper-lg"),gt==="large"),n()(Te,"".concat(xe,"-group-wrapper-rtl"),wt==="rtl"),Te));return t.createElement("span",{className:ye,style:Oe},t.createElement("span",{className:Je},Dt,Object(p.a)(oe,{style:null}),Ht))}},{key:"renderTextAreaWithClearIcon",value:function(xe,oe){var fe,Te=this.props,ze=Te.value,it=Te.allowClear,et=Te.className,Oe=Te.style,gt=Te.direction,Ge=Te.bordered;if(!it)return Object(p.a)(oe,{value:ze});var wt=e()(et,"".concat(xe,"-affix-wrapper"),"".concat(xe,"-affix-wrapper-textarea-with-clear-btn"),(fe={},n()(fe,"".concat(xe,"-affix-wrapper-rtl"),gt==="rtl"),n()(fe,"".concat(xe,"-affix-wrapper-borderless"),!Ge),fe));return t.createElement("span",{className:wt,style:Oe},Object(p.a)(oe,{style:null,value:ze}),this.renderClearIcon(xe))}},{key:"render",value:function(){var xe=this.props,oe=xe.prefixCls,fe=xe.inputType,Te=xe.element;return fe===v[0]?this.renderTextAreaWithClearIcon(oe,Te):this.renderInputWithLabel(oe,this.renderLabeledIcon(oe,Te))}}]),ue}(t.Component),x=y,C=d("H84U"),w=d("3Nzz"),b=d("uaoM");function _(Z){return typeof Z=="undefined"||Z===null?"":Z}function O(Z,ve,ue){if(ue){var _e=ve;if(ve.type==="click"){_e=Object.create(ve),_e.target=Z,_e.currentTarget=Z;var xe=Z.value;Z.value="",ue(_e),Z.value=xe;return}ue(_e)}}function L(Z,ve,ue,_e,xe){var oe;return e()(Z,(oe={},n()(oe,"".concat(Z,"-sm"),ue==="small"),n()(oe,"".concat(Z,"-lg"),ue==="large"),n()(oe,"".concat(Z,"-disabled"),_e),n()(oe,"".concat(Z,"-rtl"),xe==="rtl"),n()(oe,"".concat(Z,"-borderless"),!ve),oe))}var D=function(Z){c()(ue,Z);var ve=r()(ue);function ue(_e){var xe;g()(this,ue),xe=ve.call(this,_e),xe.direction="ltr",xe.focus=function(){xe.input.focus()},xe.saveClearableInput=function(fe){xe.clearableInput=fe},xe.saveInput=function(fe){xe.input=fe},xe.onFocus=function(fe){var Te=xe.props.onFocus;xe.setState({focused:!0},xe.clearPasswordValueAttribute),Te&&Te(fe)},xe.onBlur=function(fe){var Te=xe.props.onBlur;xe.setState({focused:!1},xe.clearPasswordValueAttribute),Te&&Te(fe)},xe.handleReset=function(fe){xe.setValue("",function(){xe.focus()}),O(xe.input,fe,xe.props.onChange)},xe.renderInput=function(fe,Te,ze){var it=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},et=xe.props,Oe=et.className,gt=et.addonBefore,Ge=et.addonAfter,wt=et.size,xt=et.disabled,Ct=Object(o.default)(xe.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return t.createElement("input",E()({autoComplete:it.autoComplete},Ct,{onChange:xe.handleChange,onFocus:xe.onFocus,onBlur:xe.onBlur,onKeyDown:xe.handleKeyDown,className:e()(L(fe,ze,wt||Te,xt,xe.direction),n()({},Oe,Oe&&!gt&&!Ge)),ref:xe.saveInput}))},xe.clearPasswordValueAttribute=function(){xe.removePasswordTimeout=setTimeout(function(){xe.input&&xe.input.getAttribute("type")==="password"&&xe.input.hasAttribute("value")&&xe.input.removeAttribute("value")})},xe.handleChange=function(fe){xe.setValue(fe.target.value,xe.clearPasswordValueAttribute),O(xe.input,fe,xe.props.onChange)},xe.handleKeyDown=function(fe){var Te=xe.props,ze=Te.onPressEnter,it=Te.onKeyDown;fe.keyCode===13&&ze&&ze(fe),it&&it(fe)},xe.renderComponent=function(fe){var Te=fe.getPrefixCls,ze=fe.direction,it=fe.input,et=xe.state,Oe=et.value,gt=et.focused,Ge=xe.props,wt=Ge.prefixCls,xt=Ge.bordered,Ct=xt===void 0?!0:xt,Dt=Te("input",wt);return xe.direction=ze,t.createElement(w.b.Consumer,null,function(Ht){return t.createElement(x,E()({size:Ht},xe.props,{prefixCls:Dt,inputType:"input",value:_(Oe),element:xe.renderInput(Dt,Ht,Ct,it),handleReset:xe.handleReset,ref:xe.saveClearableInput,direction:ze,focused:gt,triggerFocus:xe.focus,bordered:Ct}))})};var oe=typeof _e.value=="undefined"?_e.defaultValue:_e.value;return xe.state={value:oe,focused:!1,prevValue:_e.value},xe}return m()(ue,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(xe){return A(xe)!==A(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(xe,oe){this.props.value===void 0&&this.setState({value:xe},oe)}},{key:"render",value:function(){return t.createElement(C.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(xe,oe){var fe=oe.prevValue,Te={prevValue:xe.value};return(xe.value!==void 0||fe!==xe.value)&&(Te.value=xe.value),Te}}]),ue}(t.Component);D.defaultProps={type:"text"};var N=D,M=function(ve){return t.createElement(C.a,null,function(ue){var _e,xe=ue.getPrefixCls,oe=ue.direction,fe=ve.prefixCls,Te=ve.className,ze=Te===void 0?"":Te,it=xe("input-group",fe),et=e()(it,(_e={},n()(_e,"".concat(it,"-lg"),ve.size==="large"),n()(_e,"".concat(it,"-sm"),ve.size==="small"),n()(_e,"".concat(it,"-compact"),ve.compact),n()(_e,"".concat(it,"-rtl"),oe==="rtl"),_e),ze);return t.createElement("span",{className:et,style:ve.style,onMouseEnter:ve.onMouseEnter,onMouseLeave:ve.onMouseLeave,onFocus:ve.onFocus,onBlur:ve.onBlur},ve.children)})},F=M,R=d("c+Xe"),j=d("w6Tc"),B=d.n(j),K=d("gZBC"),U=d.n(K),z=d("2/Rp"),V=function(Z,ve){var ue={};for(var _e in Z)Object.prototype.hasOwnProperty.call(Z,_e)&&ve.indexOf(_e)<0&&(ue[_e]=Z[_e]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(Z);xe<_e.length;xe++)ve.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(Z,_e[xe])&&(ue[_e[xe]]=Z[_e[xe]]);return ue},Y=t.forwardRef(function(Z,ve){var ue=t.useRef(null),_e=function(Oe){var gt=Z.onChange,Ge=Z.onSearch;Oe&&Oe.target&&Oe.type==="click"&&Ge&&Ge(Oe.target.value,Oe),gt&>(Oe)},xe=function(Oe){var gt;document.activeElement===((gt=ue.current)===null||gt===void 0?void 0:gt.input)&&Oe.preventDefault()},oe=function(Oe){var gt,Ge=Z.onSearch,wt=Z.loading,xt=Z.disabled;if(wt||xt)return;Ge&&Ge((gt=ue.current)===null||gt===void 0?void 0:gt.input.value,Oe)},fe=function(Oe){var gt=Z.enterButton,Ge=Z.size;return gt?t.createElement(w.b.Consumer,{key:"enterButton"},function(wt){return t.createElement(z.a,{className:"".concat(Oe,"-button"),type:"primary",size:Ge||wt},t.createElement(U.a,null))}):t.createElement(U.a,{className:"".concat(Oe,"-icon"),key:"loadingIcon"})},Te=function(Oe){var gt=Z.suffix,Ge=Z.enterButton,wt=Z.loading;if(wt&&!Ge)return[gt,fe(Oe)];if(Ge)return gt;var xt=t.createElement(B.a,{className:"".concat(Oe,"-icon"),key:"searchIcon",onClick:oe});return gt?[Object(p.c)(gt,null,{key:"suffix"}),xt]:xt},ze=function(Oe,gt){var Ge=Z.enterButton,wt=Z.disabled,xt=Z.addonAfter,Ct=Z.loading,Dt="".concat(Oe,"-button");if(Ct&&Ge)return[fe(Oe),xt];if(!Ge)return xt;var Ht,Je=Ge,ye=Je.type&&Je.type.__ANT_BUTTON===!0;return ye||Je.type==="button"?Ht=Object(p.a)(Je,E()({onMouseDown:xe,onClick:oe,key:"enterButton"},ye?{className:Dt,size:gt}:{})):Ht=t.createElement(z.a,{className:Dt,type:"primary",size:gt,disabled:wt,key:"enterButton",onMouseDown:xe,onClick:oe},Ge===!0?t.createElement(B.a,null):Ge),xt?[Ht,Object(p.c)(xt,null,{key:"addonAfter"})]:Ht},it=function(Oe){var gt=Oe.getPrefixCls,Ge=Oe.direction,wt=Z.prefixCls,xt=Z.inputPrefixCls,Ct=Z.enterButton,Dt=Z.className,Ht=Z.size,Je=V(Z,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Je.onSearch,delete Je.loading;var ye=gt("input-search",wt),ie=gt("input",xt),bt=function(me){var Rt;if(Ct){var er;Rt=e()(ye,Dt,(er={},n()(er,"".concat(ye,"-rtl"),Ge==="rtl"),n()(er,"".concat(ye,"-enter-button"),!!Ct),n()(er,"".concat(ye,"-").concat(me),!!me),er))}else Rt=e()(ye,Dt,n()({},"".concat(ye,"-rtl"),Ge==="rtl"));return Rt};return t.createElement(w.b.Consumer,null,function(qe){return t.createElement(N,E()({ref:Object(R.a)(ue,ve),onPressEnter:oe},Je,{size:Ht||qe,prefixCls:ie,addonAfter:ze(ye,Ht||qe),suffix:Te(ye),onChange:_e,className:bt(Ht||qe)}))})};return t.createElement(C.a,null,it)});Y.defaultProps={enterButton:!1},Y.displayName="Search";var J=Y,se=d("Y1PL"),$=function(Z){c()(ue,Z);var ve=r()(ue);function ue(_e){var xe;g()(this,ue),xe=ve.call(this,_e),xe.focus=function(){xe.resizableTextArea.textArea.focus()},xe.saveTextArea=function(fe){xe.resizableTextArea=fe==null?void 0:fe.resizableTextArea},xe.saveClearableInput=function(fe){xe.clearableInput=fe},xe.handleChange=function(fe){xe.setValue(fe.target.value),O(xe.resizableTextArea.textArea,fe,xe.props.onChange)},xe.handleReset=function(fe){xe.setValue("",function(){xe.focus()}),O(xe.resizableTextArea.textArea,fe,xe.props.onChange)},xe.renderTextArea=function(fe,Te){return t.createElement(se.default,E()({},Object(o.default)(xe.props,["allowClear","bordered"]),{className:e()(xe.props.className,n()({},"".concat(fe,"-borderless"),!Te)),prefixCls:fe,onChange:xe.handleChange,ref:xe.saveTextArea}))},xe.renderComponent=function(fe){var Te=fe.getPrefixCls,ze=fe.direction,it=xe.state.value,et=xe.props,Oe=et.prefixCls,gt=et.bordered,Ge=gt===void 0?!0:gt,wt=Te("input",Oe);return t.createElement(x,E()({},xe.props,{prefixCls:wt,direction:ze,inputType:"text",value:_(it),element:xe.renderTextArea(wt,Ge),handleReset:xe.handleReset,ref:xe.saveClearableInput,triggerFocus:xe.focus,bordered:Ge}))};var oe=typeof _e.value=="undefined"?_e.defaultValue:_e.value;return xe.state={value:oe},xe}return m()(ue,[{key:"setValue",value:function(xe,oe){this.props.value===void 0&&this.setState({value:xe},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return t.createElement(C.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(xe){return xe.value!==void 0?{value:xe.value}:null}}]),ue}(t.Component),ae=$,ge=d("J4zp"),pe=d.n(ge),Ne=d("qPY4"),de=d.n(Ne),Le=d("fUL4"),Q=d.n(Le),ce=function(Z,ve){var ue={};for(var _e in Z)Object.prototype.hasOwnProperty.call(Z,_e)&&ve.indexOf(_e)<0&&(ue[_e]=Z[_e]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(Z);xe<_e.length;xe++)ve.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(Z,_e[xe])&&(ue[_e[xe]]=Z[_e[xe]]);return ue},Ke={click:"onClick",hover:"onMouseOver"},ee=t.forwardRef(function(Z,ve){var ue=Object(t.useState)(!1),_e=pe()(ue,2),xe=_e[0],oe=_e[1],fe=function(){var et=Z.disabled;if(et)return;oe(!xe)},Te=function(et){var Oe,gt=Z.action,Ge=Z.iconRender,wt=Ge===void 0?function(){return null}:Ge,xt=Ke[gt]||"",Ct=wt(xe),Dt=(Oe={},n()(Oe,xt,fe),n()(Oe,"className","".concat(et,"-icon")),n()(Oe,"key","passwordIcon"),n()(Oe,"onMouseDown",function(Je){Je.preventDefault()}),n()(Oe,"onMouseUp",function(Je){Je.preventDefault()}),Oe);return t.cloneElement(t.isValidElement(Ct)?Ct:t.createElement("span",null,Ct),Dt)},ze=function(et){var Oe=et.getPrefixCls,gt=Z.className,Ge=Z.prefixCls,wt=Z.inputPrefixCls,xt=Z.size,Ct=Z.visibilityToggle,Dt=ce(Z,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Ht=Oe("input",wt),Je=Oe("input-password",Ge),ye=Ct&&Te(Je),ie=e()(Je,gt,n()({},"".concat(Je,"-").concat(xt),!!xt)),bt=E()(E()({},Object(o.default)(Dt,["suffix","iconRender"])),{type:xe?"text":"password",className:ie,prefixCls:Ht,suffix:ye});return xt&&(bt.size=xt),t.createElement(N,E()({ref:ve},bt))};return t.createElement(C.a,null,ze)});ee.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(ve){return ve?t.createElement(de.a,null):t.createElement(Q.a,null)}},ee.displayName="Password";var X=ee;N.Group=F,N.Search=J,N.TextArea=ae,N.Password=X;var G=k.a=N},"5s0K":function(H,k,d){var I=d("bYtY");function E(){var T=[],g={},S;return{add:function(m,h,c,a,r){return I.isString(a)&&(r=a,a=0),g[m.id]?!1:(g[m.id]=1,T.push({el:m,target:h,time:c,delay:a,easing:r}),!0)},done:function(m){return S=m,this},start:function(){for(var m=T.length,h=0,c=T.length;h<c;h++){var a=T[h];a.el.animateTo(a.target,a.time,a.delay,a.easing,r)}return this;function r(){m--,m||(T.length=0,g={},S&&S())}}}}k.createWrap=E},"5yev":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},"6/nd":function(H,k,d){var I=d("ProS");I.registerAction("legendScroll","legendscroll",function(E,T){var g=E.scrollDataIndex;g!=null&&T.eachComponent({mainType:"legend",subType:"scroll",query:E},function(S){S.setScrollDataIndex(g)})})},"62sa":function(H,k,d){var I=d("bYtY"),E=d("4NO4"),T=E.makeInner,g=d("zTMp"),S=d("Ez2D"),m=I.each,h=I.curry,c=T();function a(p,v,A){var y=p.currTrigger,x=[p.x,p.y],C=p,w=p.dispatchAction||I.bind(A.dispatchAction,A),b=v.getComponent("axisPointer").coordSysAxesInfo;if(!b)return;f(x)&&(x=S({seriesIndex:C.seriesIndex,dataIndex:C.dataIndex},v).point);var _=f(x),O=C.axesInfo,L=b.axesInfo,D=y==="leave"||f(x),N={},M={},F={list:[],map:{}},R={showPointer:h(n,M),showTooltip:h(t,F)};m(b.coordSysMap,function(B,K){var U=_||B.containPoint(x);m(b.coordSysAxesInfo[K],function(z,V){var Y=z.axis,J=l(O,z);if(!D&&U&&(!O||J)){var se=J&&J.value;se==null&&!_&&(se=Y.pointToData(x)),se!=null&&r(z,se,R,!1,N)}})});var j={};return m(L,function(B,K){var U=B.linkGroup;U&&!M[K]&&m(U.axesInfo,function(z,V){var Y=M[V];if(z!==B&&Y){var J=Y.value;U.mapper&&(J=B.axis.scale.parse(U.mapper(J,u(z),u(B)))),j[B.key]=J}})}),m(j,function(B,K){r(L[K],B,R,!0,N)}),s(M,L,N),e(F,x,p,w),o(L,w,A),N}function r(p,v,A,y,x){var C=p.axis;if(C.scale.isBlank()||!C.containData(v))return;if(!p.involveSeries){A.showPointer(p,v);return}var w=i(v,p),b=w.payloadBatch,_=w.snapToValue;b[0]&&x.seriesIndex==null&&I.extend(x,b[0]),!y&&p.snap&&(C.containData(_)&&_!=null&&(v=_)),A.showPointer(p,v,b,x),A.showTooltip(p,w,_)}function i(p,v){var A=v.axis,y=A.dim,x=p,C=[],w=Number.MAX_VALUE,b=-1;return m(v.seriesModels,function(_,O){var L=_.getData().mapDimension(y,!0),D,N;if(_.getAxisTooltipData){var M=_.getAxisTooltipData(L,p,A);N=M.dataIndices,D=M.nestestValue}else{if(N=_.getData().indicesOfNearest(L[0],p,A.type==="category"?.5:null),!N.length)return;D=_.getData().get(L[0],N[0])}if(D==null||!isFinite(D))return;var F=p-D,R=Math.abs(F);R<=w&&((R<w||F>=0&&b<0)&&(w=R,b=F,x=D,C.length=0),m(N,function(j){C.push({seriesIndex:_.seriesIndex,dataIndexInside:j,dataIndex:_.getData().getRawIndex(j)})}))}),{payloadBatch:C,snapToValue:x}}function n(p,v,A,y){p[v.key]={value:A,payloadBatch:y}}function t(p,v,A,y){var x=A.payloadBatch,C=v.axis,w=C.model,b=v.axisPointerModel;if(!v.triggerTooltip||!x.length)return;var _=v.coordSys.model,O=g.makeKey(_),L=p.map[O];L||(L=p.map[O]={coordSysId:_.id,coordSysIndex:_.componentIndex,coordSysType:_.type,coordSysMainType:_.mainType,dataByAxis:[]},p.list.push(L)),L.dataByAxis.push({axisDim:C.dim,axisIndex:w.componentIndex,axisType:w.type,axisId:w.id,value:y,valueLabelOpt:{precision:b.get("label.precision"),formatter:b.get("label.formatter")},seriesDataIndices:x.slice()})}function s(p,v,A){var y=A.axesInfo=[];m(v,function(x,C){var w=x.axisPointerModel.option,b=p[C];b?(!x.useHandle&&(w.status="show"),w.value=b.value,w.seriesDataIndices=(b.payloadBatch||[]).slice()):!x.useHandle&&(w.status="hide"),w.status==="show"&&y.push({axisDim:x.axis.dim,axisIndex:x.axis.model.componentIndex,value:w.value})})}function e(p,v,A,y){if(f(v)||!p.list.length){y({type:"hideTip"});return}var x=((p.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};y({type:"showTip",escapeConnect:!0,x:v[0],y:v[1],tooltipOption:A.tooltipOption,position:A.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:p.list})}function o(p,v,A){var y=A.getZr(),x="axisPointerLastHighlights",C=c(y)[x]||{},w=c(y)[x]={};m(p,function(O,L){var D=O.axisPointerModel.option;D.status==="show"&&m(D.seriesDataIndices,function(N){var M=N.seriesIndex+" | "+N.dataIndex;w[M]=N})});var b=[],_=[];I.each(C,function(O,L){!w[L]&&_.push(O)}),I.each(w,function(O,L){!C[L]&&b.push(O)}),_.length&&A.dispatchAction({type:"downplay",escapeConnect:!0,batch:_}),b.length&&A.dispatchAction({type:"highlight",escapeConnect:!0,batch:b})}function l(p,v){for(var A=0;A<(p||[]).length;A++){var y=p[A];if(v.axis.dim===y.axisDim&&v.axis.model.componentIndex===y.axisIndex)return y}}function u(p){var v=p.axis.model,A={},y=A.axisDim=p.axis.dim;return A.axisIndex=A[y+"AxisIndex"]=v.componentIndex,A.axisName=A[y+"AxisName"]=v.name,A.axisId=A[y+"AxisId"]=v.id,A}function f(p){return!p||p[0]==null||isNaN(p[0])||p[1]==null||isNaN(p[1])}H.exports=a},"6BzB":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.shrinkBuf=I,k.arraySet=E,k.flattenChunks=T,k.Buf32=k.Buf16=k.Buf8=void 0;function I(h,c){return h.length===c?h:h.subarray?h.subarray(0,c):(h.length=c,h)}function E(h,c,a,r,i){if(c.subarray&&h.subarray){h.set(c.subarray(a,a+r),i);return}for(var n=0;n<r;n++)h[i+n]=c[a+n]}function T(h){var c,a,r,i,n,t;for(r=0,c=0,a=h.length;c<a;c++)r+=h[c].length;for(t=new Uint8Array(r),i=0,c=0,a=h.length;c<a;c++)n=h[c],t.set(n,i),i+=n.length;return t}var g=Uint8Array;k.Buf8=g;var S=Uint16Array;k.Buf16=S;var m=Int32Array;k.Buf32=m},"6D9b":function(H,k,d){},"6GrX":function(H,k,d){var I=d("mFDi"),E=d("Xnb7"),T=d("bYtY"),g=T.getContext,S=T.extend,m=T.retrieve2,h=T.retrieve3,c=T.trim,a={},r=0,i=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,t="12px sans-serif",s={};function e(F,R){s[F]=R}function o(F,R){R=R||t;var j=F+":"+R;if(a[j])return a[j];for(var B=(F+"").split(`
|
|
|
`),K=0,U=0,z=B.length;U<z;U++)K=Math.max(O(B[U],R).width,K);return r>i&&(r=0,a={}),r++,a[j]=K,K}function l(F,R,j,B,K,U,z,V){return z?f(F,R,j,B,K,U,z,V):u(F,R,j,B,K,U,V)}function u(F,R,j,B,K,U,z){var V=L(F,R,K,U,z),Y=o(F,R);K&&(Y+=K[1]+K[3]);var J=V.outerHeight,se=p(0,Y,j),$=v(0,J,B),ae=new I(se,$,Y,J);return ae.lineHeight=V.lineHeight,ae}function f(F,R,j,B,K,U,z,V){var Y=D(F,{rich:z,truncate:V,font:R,textAlign:j,textPadding:K,textLineHeight:U}),J=Y.outerWidth,se=Y.outerHeight,$=p(0,J,j),ae=v(0,se,B);return new I($,ae,J,se)}function p(F,R,j){return j==="right"?F-=R:j==="center"&&(F-=R/2),F}function v(F,R,j){return j==="middle"?F-=R/2:j==="bottom"&&(F-=R),F}function A(F,R,j){var B=R.textPosition,K=R.textDistance,U=j.x,z=j.y;K=K||0;var V=j.height,Y=j.width,J=V/2,se="left",$="top";switch(B){case"left":U-=K,z+=J,se="right",$="middle";break;case"right":U+=K+Y,z+=J,$="middle";break;case"top":U+=Y/2,z-=K,se="center",$="bottom";break;case"bottom":U+=Y/2,z+=V+K,se="center";break;case"inside":U+=Y/2,z+=J,se="center",$="middle";break;case"insideLeft":U+=K,z+=J,$="middle";break;case"insideRight":U+=Y-K,z+=J,se="right",$="middle";break;case"insideTop":U+=Y/2,z+=K,se="center";break;case"insideBottom":U+=Y/2,z+=V-K,se="center",$="bottom";break;case"insideTopLeft":U+=K,z+=K;break;case"insideTopRight":U+=Y-K,z+=K,se="right";break;case"insideBottomLeft":U+=K,z+=V-K,$="bottom";break;case"insideBottomRight":U+=Y-K,z+=V-K,se="right",$="bottom";break}return F=F||{},F.x=U,F.y=z,F.textAlign=se,F.textVerticalAlign=$,F}function y(F,R,j){var B={textPosition:F,textDistance:j};return A({},B,R)}function x(F,R,j,B,K){if(!R)return"";var U=(F+"").split(`
|
|
|
`);K=C(R,j,B,K);for(var z=0,V=U.length;z<V;z++)U[z]=w(U[z],K);return U.join(`
|
|
|
`)}function C(F,R,j,B){B=S({},B),B.font=R;var j=m(j,"...");B.maxIterations=m(B.maxIterations,2);var K=B.minChar=m(B.minChar,0);B.cnCharWidth=o("\u56FD",R);var U=B.ascCharWidth=o("a",R);B.placeholder=m(B.placeholder,"");for(var z=F=Math.max(0,F-1),V=0;V<K&&z>=U;V++)z-=U;var Y=o(j,R);return Y>z&&(j="",Y=0),z=F-Y,B.ellipsis=j,B.ellipsisWidth=Y,B.contentWidth=z,B.containerWidth=F,B}function w(F,R){var j=R.containerWidth,B=R.font,K=R.contentWidth;if(!j)return"";var U=o(F,B);if(U<=j)return F;for(var z=0;;z++){if(U<=K||z>=R.maxIterations){F+=R.ellipsis;break}var V=z===0?b(F,K,R.ascCharWidth,R.cnCharWidth):U>0?Math.floor(F.length*K/U):0;F=F.substr(0,V),U=o(F,B)}return F===""&&(F=R.placeholder),F}function b(F,R,j,B){for(var K=0,U=0,z=F.length;U<z&&K<R;U++){var V=F.charCodeAt(U);K+=0<=V&&V<=127?j:B}return U}function _(F){return o("\u56FD",F)}function O(F,R){return s.measureText(F,R)}s.measureText=function(F,R){var j=g();return j.font=R||t,j.measureText(F)};function L(F,R,j,B,K){F!=null&&(F+="");var U=m(B,_(R)),z=F?F.split(`
|
|
|
`):[],V=z.length*U,Y=V,J=!0;if(j&&(Y+=j[0]+j[2]),F&&K){J=!1;var se=K.outerHeight,$=K.outerWidth;if(se!=null&&Y>se)F="",z=[];else if($!=null)for(var ae=C($-(j?j[1]+j[3]:0),R,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),ge=0,pe=z.length;ge<pe;ge++)z[ge]=w(z[ge],ae)}return{lines:z,height:V,outerHeight:Y,lineHeight:U,canCacheByTextString:J}}function D(F,R){var j={lines:[],width:0,height:0};if(F!=null&&(F+=""),!F)return j;for(var B=n.lastIndex=0,K;(K=n.exec(F))!=null;){var U=K.index;U>B&&N(j,F.substring(B,U)),N(j,K[2],K[1]),B=n.lastIndex}B<F.length&&N(j,F.substring(B,F.length));var z=j.lines,V=0,Y=0,J=[],se=R.textPadding,$=R.truncate,ae=$&&$.outerWidth,ge=$&&$.outerHeight;se&&(ae!=null&&(ae-=se[1]+se[3]),ge!=null&&(ge-=se[0]+se[2]));for(var pe=0;pe<z.length;pe++){for(var Ne=z[pe],de=0,Le=0,Q=0;Q<Ne.tokens.length;Q++){var ce=Ne.tokens[Q],Ke=ce.styleName&&R.rich[ce.styleName]||{},ee=ce.textPadding=Ke.textPadding,X=ce.font=Ke.font||R.font,G=ce.textHeight=m(Ke.textHeight,_(X));if(ee&&(G+=ee[0]+ee[2]),ce.height=G,ce.lineHeight=h(Ke.textLineHeight,R.textLineHeight,G),ce.textAlign=Ke&&Ke.textAlign||R.textAlign,ce.textVerticalAlign=Ke&&Ke.textVerticalAlign||"middle",ge!=null&&V+ce.lineHeight>ge)return{lines:[],width:0,height:0};ce.textWidth=o(ce.text,X);var Z=Ke.textWidth,ve=Z==null||Z==="auto";if(typeof Z=="string"&&Z.charAt(Z.length-1)==="%")ce.percentWidth=Z,J.push(ce),Z=0;else{if(ve){Z=ce.textWidth;var ue=Ke.textBackgroundColor,_e=ue&&ue.image;_e&&(_e=E.findExistImage(_e),E.isImageReady(_e)&&(Z=Math.max(Z,_e.width*G/_e.height)))}var xe=ee?ee[1]+ee[3]:0;Z+=xe;var oe=ae!=null?ae-Le:null;oe!=null&&oe<Z&&(!ve||oe<xe?(ce.text="",ce.textWidth=Z=0):(ce.text=x(ce.text,oe-xe,X,$.ellipsis,{minChar:$.minChar}),ce.textWidth=o(ce.text,X),Z=ce.textWidth+xe))}Le+=ce.width=Z,Ke&&(de=Math.max(de,ce.lineHeight))}Ne.width=Le,Ne.lineHeight=de,V+=de,Y=Math.max(Y,Le)}j.outerWidth=j.width=m(R.textWidth,Y),j.outerHeight=j.height=m(R.textHeight,V),se&&(j.outerWidth+=se[1]+se[3],j.outerHeight+=se[0]+se[2]);for(var pe=0;pe<J.length;pe++){var ce=J[pe],fe=ce.percentWidth;ce.width=parseInt(fe,10)/100*Y}return j}function N(F,R,j){for(var B=R==="",K=R.split(`
|
|
|
`),U=F.lines,z=0;z<K.length;z++){var V=K[z],Y={styleName:j,text:V,isLineHolder:!V&&!B};if(z)U.push({tokens:[Y]});else{var J=(U[U.length-1]||(U[0]={tokens:[]})).tokens,se=J.length;se===1&&J[0].isLineHolder?J[0]=Y:(V||!se||B)&&J.push(Y)}}}function M(F){var R=(F.fontSize||F.fontFamily)&&[F.fontStyle,F.fontWeight,(F.fontSize||12)+"px",F.fontFamily||"sans-serif"].join(" ");return R&&c(R)||F.textFont||F.font}k.DEFAULT_FONT=t,k.$override=e,k.getWidth=o,k.getBoundingRect=l,k.adjustTextX=p,k.adjustTextY=v,k.calculateTextPosition=A,k.adjustTextPositionOnRect=y,k.truncateText=x,k.getLineHeight=_,k.measureText=O,k.parsePlainText=L,k.parseRichText=D,k.makeFont=M},"6Hfg":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("FhB9")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="SwapRightOutlined";var c=g.forwardRef(h);k.default=c},"6Ic6":function(H,k,d){var I=d("bYtY"),E=I.each,T=d("4fz+"),g=d("iRjW"),S=d("Yl7c"),m=d("4NO4"),h=d("IwbS"),c=d("9H2F"),a=c.createTask,r=d("zM3Q"),i=m.makeInner(),n=r();function t(){this.group=new T,this.uid=g.getUID("viewChart"),this.renderTask=a({plan:l,reset:u}),this.renderTask.context={view:this}}t.prototype={type:"chart",init:function(v,A){},render:function(v,A,y,x){},highlight:function(v,A,y,x){o(v.getData(),x,"emphasis")},downplay:function(v,A,y,x){o(v.getData(),x,"normal")},remove:function(v,A){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var s=t.prototype;s.updateView=s.updateLayout=s.updateVisual=function(v,A,y,x){this.render(v,A,y,x)};function e(v,A,y){if(v&&(v.trigger(A,y),v.isGroup&&!h.isHighDownDispatcher(v)))for(var x=0,C=v.childCount();x<C;x++)e(v.childAt(x),A,y)}function o(v,A,y){var x=m.queryDataIndex(v,A),C=A&&A.highlightKey!=null?h.getHighlightDigit(A.highlightKey):null;x!=null?E(m.normalizeToArray(x),function(w){e(v.getItemGraphicEl(w),y,C)}):v.eachItemGraphicEl(function(w){e(w,y,C)})}S.enableClassExtend(t,["dispose"]),S.enableClassManagement(t,{registerWhenExtend:!0}),t.markUpdateMethod=function(v,A){i(v).updateMethod=A};function l(v){return n(v.model)}function u(v){var A=v.model,y=v.ecModel,x=v.api,C=v.payload,w=A.pipelineContext.progressiveRender,b=v.view,_=C&&i(C).updateMethod,O=w?"incrementalPrepareRender":_&&b[_]?_:"render";return O!=="render"&&b[O](A,y,x,C),f[O]}var f={incrementalPrepareRender:{progress:function(v,A){A.view.incrementalRender(v,A.model,A.ecModel,A.api,A.payload)}},render:{forceFirstProgress:!0,progress:function(v,A){A.view.render(A.model,A.ecModel,A.api,A.payload)}}},p=t;H.exports=p},"6MrE":function(H,k,d){},"6Qwc":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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"};k.default=I},"6SEX":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("qWUW"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},"6UJt":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("v56E"),g=d.n(T),S=d("R9oj"),m=d("5NDa")},"6VBw":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("ODXe"),T=d("rePB"),g=d("Ff2n"),S=d("q1tI"),m=d("TSYQ"),h=d.n(m),c=d("Pw59"),a=d("Qi1f"),r=["icon","className","onClick","style","primaryColor","secondaryColor"],i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n(v){var A=v.primaryColor,y=v.secondaryColor;i.primaryColor=A,i.secondaryColor=y||Object(a.b)(A),i.calculated=!!y}function t(){return Object(I.a)({},i)}var s=function(A){var y=A.icon,x=A.className,C=A.onClick,w=A.style,b=A.primaryColor,_=A.secondaryColor,O=Object(g.a)(A,r),L=i;if(b&&(L={primaryColor:b,secondaryColor:_||Object(a.b)(b)}),Object(a.f)(),Object(a.g)(Object(a.c)(y),"icon should be icon definiton, but got ".concat(y)),!Object(a.c)(y))return null;var D=y;return D&&typeof D.icon=="function"&&(D=Object(I.a)(Object(I.a)({},D),{},{icon:D.icon(L.primaryColor,L.secondaryColor)})),Object(a.a)(D.icon,"svg-".concat(D.name),Object(I.a)({className:x,onClick:C,style:w,"data-icon":D.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},O))};s.displayName="IconReact",s.getTwoToneColors=t,s.setTwoToneColors=n;var e=s;function o(v){var A=Object(a.d)(v),y=Object(E.a)(A,2),x=y[0],C=y[1];return e.setTwoToneColors({primaryColor:x,secondaryColor:C})}function l(){var v=e.getTwoToneColors();return v.calculated?[v.primaryColor,v.secondaryColor]:v.primaryColor}var u=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];o("#1890ff");var f=S.forwardRef(function(v,A){var y,x=v.className,C=v.icon,w=v.spin,b=v.rotate,_=v.tabIndex,O=v.onClick,L=v.twoToneColor,D=Object(g.a)(v,u),N=S.useContext(c.a),M=N.prefixCls,F=M===void 0?"anticon":M,R=h()(F,(y={},Object(T.a)(y,"".concat(F,"-").concat(C.name),!!C.name),Object(T.a)(y,"".concat(F,"-spin"),!!w||C.name==="loading"),y),x),j=_;j===void 0&&O&&(j=-1);var B=b?{msTransform:"rotate(".concat(b,"deg)"),transform:"rotate(".concat(b,"deg)")}:void 0,K=Object(a.d)(L),U=Object(E.a)(K,2),z=U[0],V=U[1];return S.createElement("span",Object(I.a)(Object(I.a)({role:"img","aria-label":C.name},D),{},{ref:A,tabIndex:j,onClick:O,className:R}),S.createElement(e,{icon:C,primaryColor:z,secondaryColor:V,style:B}))});f.displayName="AntdIcon",f.getTwoToneColor=l,f.setTwoToneColor=o;var p=k.a=f},"6cGi":function(H,k,d){"use strict";d.d(k,"a",function(){return g});var I=d("ODXe"),E=d("q1tI"),T=d.n(E);function g(S,m){var h=m||{},c=h.defaultValue,a=h.value,r=h.onChange,i=h.postState,n=E.useState(function(){return a!==void 0?a:c!==void 0?typeof c=="function"?c():c:typeof S=="function"?S():S}),t=Object(I.a)(n,2),s=t[0],e=t[1],o=a!==void 0?a:s;i&&(o=i(o));var l=E.useRef(r);l.current=r;var u=E.useCallback(function(p){e(p),o!==p&&l.current&&l.current(p,o)},[o,l]),f=E.useRef(!0);return E.useEffect(function(){if(f.current){f.current=!1;return}a===void 0&&e(a)},[a]),[o,u]}},"6fms":function(H,k,d){var I=d("SUKs"),E=d("06Qe"),T=d("bYtY"),g=T.each;function S(a){return parseInt(a,10)}function m(a,r){E.initVML(),this.root=a,this.storage=r;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",a.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var t=r.delFromStorage,s=r.addToStorage;r.delFromStorage=function(e){t.call(r,e),e&&(e.onRemove&&e.onRemove(n))},r.addToStorage=function(e){e.onAdd&&e.onAdd(n),s.call(r,e)},this._firstPaint=!0}m.prototype={constructor:m,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},refresh:function(){var r=this.storage.getDisplayList(!0,!0);this._paintList(r)},_paintList:function(r){for(var i=this._vmlRoot,n=0;n<r.length;n++){var t=r[n];t.invisible||t.ignore?(t.__alreadyNotVisible||t.onRemove(i),t.__alreadyNotVisible=!0):(t.__alreadyNotVisible&&t.onAdd(i),t.__alreadyNotVisible=!1,t.__dirty&&(t.beforeBrush&&t.beforeBrush(),(t.brushVML||t.brush).call(t,i),t.afterBrush&&t.afterBrush())),t.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(i),this._firstPaint=!1)},resize:function(r,i){var r=r==null?this._getWidth():r,i=i==null?this._getHeight():i;if(this._width!==r||this._height!==i){this._width=r,this._height=i;var n=this._vmlViewport.style;n.width=r+"px",n.height=i+"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 r=this.root,i=r.currentStyle;return(r.clientWidth||S(i.width))-S(i.paddingLeft)-S(i.paddingRight)|0},_getHeight:function(){var r=this.root,i=r.currentStyle;return(r.clientHeight||S(i.height))-S(i.paddingTop)-S(i.paddingBottom)|0}};function h(a){return function(){I('In IE8.0 VML mode painter not support method "'+a+'"')}}g(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(a){m.prototype[a]=h(a)});var c=m;H.exports=c},"6r85":function(H,k,d){var I=d("bYtY");function E(T){if(!T||!I.isArray(T.series))return;I.each(T.series,function(g){I.isObject(g)&&g.type==="k"&&(g.type="candlestick")})}H.exports=E},"6uqw":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("ItGF"),g=d("YOMW"),S=d("XxSj"),m=d("K4ya"),h=d("4NO4"),c=d("OELB"),a=S.mapVisual,r=S.eachVisual,i=E.isArray,n=E.each,t=c.asc,s=c.linearMap,e=E.noop,o=I.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(u,f,p){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(u,p)},optionUpdated:function(u,f){var p=this.option;T.canvasSupported||(p.realtime=!1),!f&&m.replaceVisualOption(p,u,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(u){var f=this.stateList;u=E.bind(u,this),this.controllerVisuals=m.createVisualMappings(this.option.controller,f,u),this.targetVisuals=m.createVisualMappings(this.option.target,f,u)},getTargetSeriesIndices:function(){var u=this.option.seriesIndex,f=[];return u==null||u==="all"?this.ecModel.eachSeries(function(p,v){f.push(v)}):f=h.normalizeToArray(u),f},eachTargetSeries:function(u,f){E.each(this.getTargetSeriesIndices(),function(p){u.call(f,this.ecModel.getSeriesByIndex(p))},this)},isTargetSeries:function(u){var f=!1;return this.eachTargetSeries(function(p){p===u&&(f=!0)}),f},formatValueText:function(u,f,p){var v=this.option,A=v.precision,y=this.dataBound,x=v.formatter,C,w;if(p=p||["<",">"],E.isArray(u)&&(u=u.slice(),C=!0),w=f?u:C?[b(u[0]),b(u[1])]:b(u),E.isString(x))return x.replace("{value}",C?w[0]:w).replace("{value2}",C?w[1]:w);if(E.isFunction(x))return C?x(u[0],u[1]):x(u);if(C)return u[0]===y[0]?p[0]+" "+w[1]:u[1]===y[1]?p[1]+" "+w[0]:w[0]+" - "+w[1];return w;function b(_){return _===y[0]?"min":_===y[1]?"max":(+_).toFixed(Math.min(A,20))}},resetExtent:function(){var u=this.option,f=t([u.min,u.max]);this._dataExtent=f},getDataDimension:function(u){var f=this.option.dimension,p=u.dimensions;if(f==null&&!p.length)return;if(f!=null)return u.getDimension(f);for(var v=u.dimensions,A=v.length-1;A>=0;A--){var y=v[A],x=u.getDimensionInfo(y);if(!x.isCalculationCoord)return y}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var u=this.ecModel,f=this.option,p={inRange:f.inRange,outOfRange:f.outOfRange},v=f.target||(f.target={}),A=f.controller||(f.controller={});E.merge(v,p),E.merge(A,p);var y=this.isCategory();x.call(this,v),x.call(this,A),C.call(this,v,"inRange","outOfRange"),w.call(this,A);function x(b){i(f.color)&&!b.inRange&&(b.inRange={color:f.color.slice().reverse()}),b.inRange=b.inRange||{color:u.get("gradientColor")},n(this.stateList,function(_){var O=b[_];if(E.isString(O)){var L=g.get(O,"active",y);L?(b[_]={},b[_][O]=L):delete b[_]}},this)}function C(b,_,O){var L=b[_],D=b[O];L&&!D&&(D=b[O]={},n(L,function(N,M){if(!S.isValidType(M))return;var F=g.get(M,"inactive",y);F!=null&&(D[M]=F,M==="color"&&!D.hasOwnProperty("opacity")&&!D.hasOwnProperty("colorAlpha")&&(D.opacity=[0,0]))}))}function w(b){var _=(b.inRange||{}).symbol||(b.outOfRange||{}).symbol,O=(b.inRange||{}).symbolSize||(b.outOfRange||{}).symbolSize,L=this.get("inactiveColor");n(this.stateList,function(D){var N=this.itemSize,M=b[D];M||(M=b[D]={color:y?L:[L]}),M.symbol==null&&(M.symbol=_&&E.clone(_)||(y?"roundRect":["roundRect"])),M.symbolSize==null&&(M.symbolSize=O&&E.clone(O)||(y?N[0]:[N[0],N[0]])),M.symbol=a(M.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var F=M.symbolSize;if(F!=null){var R=-Infinity;r(F,function(j){j>R&&(R=j)}),M.symbolSize=a(F,function(j){return s(j,[0,R],[0,N[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:e,getValueState:e,getVisualMeta:e}),l=o;H.exports=l},"6usn":function(H,k,d){var I=d("bYtY");function E(g,S){return I.map(["Radius","Angle"],function(m,h){var c=this["get"+m+"Axis"](),a=S[h],r=g[h]/2,i="dataTo"+m,n=c.type==="category"?c.getBandWidth():Math.abs(c[i](a-r)-c[i](a+r));return m==="Angle"&&(n=n*Math.PI/180),n},this)}function T(g){var S=g.getRadiusAxis(),m=g.getAngleAxis(),h=S.getExtent();return h[0]>h[1]&&h.reverse(),{coordSys:{type:"polar",cx:g.cx,cy:g.cy,r:h[1],r0:h[0]},api:{coord:I.bind(function(c){var a=S.dataToRadius(c[0]),r=m.dataToAngle(c[1]),i=g.coordToPoint([a,r]);return i.push(a,r*Math.PI/180),i}),size:I.bind(E,g)}}}H.exports=T},"6xvX":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("V7ic"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},"711d":function(H,k){function d(I){return function(E){return E==null?void 0:E[I]}}H.exports=d},"72pK":function(H,k){function d(T,g,S,m,h,c){T=T||0;var a=S[1]-S[0];if(h!=null&&(h=E(h,[0,a])),c!=null&&(c=Math.max(c,h!=null?h:0)),m==="all"){var r=Math.abs(g[1]-g[0]);r=E(r,[0,a]),h=c=E(r,[h,c]),m=0}g[0]=E(g[0],S),g[1]=E(g[1],S);var i=I(g,m);g[m]+=T;var n=h||0,t=S.slice();i.sign<0?t[0]+=n:t[1]-=n,g[m]=E(g[m],t);var s=I(g,m);h!=null&&(s.sign!==i.sign||s.span<h)&&(g[1-m]=g[m]+i.sign*h);var s=I(g,m);return c!=null&&s.span>c&&(g[1-m]=g[m]+s.sign*c),g}function I(T,g){var S=T[g]-T[1-g];return{span:Math.abs(S),sign:S>0?-1:S<0?1:g?-1:1}}function E(T,g){return Math.min(g[1]!=null?g[1]:Infinity,Math.max(g[0]!=null?g[0]:-Infinity,T))}H.exports=d},"75ce":function(H,k,d){var I=d("ProS");d("IXuL"),d("8X+K");var E=d("f5Yq"),T=d("h8O9"),g=d("/d5a");d("Ae16"),I.registerVisual(E("line","circle","line")),I.registerLayout(T("line")),I.registerProcessor(I.PRIORITY.PROCESSOR.STATISTIC,g("line"))},"75ev":function(H,k,d){var I=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var E=d("f5Yq"),T=d("yik8");I.registerVisual(E("tree","circle")),I.registerLayout(T)},"7AJT":function(H,k,d){var I=d("bYtY"),E=d("hM6l"),T=function(S,m,h,c,a){E.call(this,S,m,h),this.type=c||"value",this.position=a||"bottom"};T.prototype={constructor:T,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var S=this.position;return S==="top"||S==="bottom"},getGlobalExtent:function(S){var m=this.getExtent();return m[0]=this.toGlobalCoord(m[0]),m[1]=this.toGlobalCoord(m[1]),S&&m[0]>m[1]&&m.reverse(),m},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(S,m){return this.coordToData(this.toLocalCoord(S[this.dim==="x"?0:1]),m)},toLocalCoord:null,toGlobalCoord:null},I.inherits(T,E);var g=T;H.exports=g},"7Cbv":function(H,k,d){"use strict";var I=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),E=new Uint8Array(16);function T(){if(!I)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return I(E)}var g=/^(?:[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 S(t){return typeof t=="string"&&g.test(t)}for(var m=S,h=[],c=0;c<256;++c)h.push((c+256).toString(16).substr(1));function a(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(h[t[s+0]]+h[t[s+1]]+h[t[s+2]]+h[t[s+3]]+"-"+h[t[s+4]]+h[t[s+5]]+"-"+h[t[s+6]]+h[t[s+7]]+"-"+h[t[s+8]]+h[t[s+9]]+"-"+h[t[s+10]]+h[t[s+11]]+h[t[s+12]]+h[t[s+13]]+h[t[s+14]]+h[t[s+15]]).toLowerCase();if(!m(e))throw TypeError("Stringified UUID is invalid");return e}var r=a;function i(t,s,e){t=t||{};var o=t.random||(t.rng||T)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,s){e=e||0;for(var l=0;l<16;++l)s[e+l]=o[l];return s}return r(o)}var n=k.a=i},"7DRL":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=T.createHashMap,S=T.isString,m=T.isArray,h=T.each,c=T.assert,a=d("MEGo"),r=a.parseXML,i=g(),n={registerMap:function(s,e,o){var l;return m(e)?l=e:e.svg?l=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(o=e.specialAreas,e=e.geoJson),l=[{type:"geoJSON",source:e,specialAreas:o}]),h(l,function(u){var f=u.type;f==="geoJson"&&(f=u.type="geoJSON");var p=t[f];p(u)}),i.set(s,l)},retrieveMap:function(s){return i.get(s)}},t={geoJSON:function(s){var e=s.source;s.geoJSON=S(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(s){s.svgXML=r(s.source)}};H.exports=n},"7G+c":function(H,k,d){var I=d("bYtY"),E=I.createHashMap,T=I.isTypedArray,g=d("Yl7c"),S=g.enableClassCheck,m=d("k9D9"),h=m.SOURCE_FORMAT_ORIGINAL,c=m.SERIES_LAYOUT_BY_COLUMN,a=m.SOURCE_FORMAT_UNKNOWN,r=m.SOURCE_FORMAT_TYPED_ARRAY,i=m.SOURCE_FORMAT_KEYED_COLUMNS;function n(s){this.fromDataset=s.fromDataset,this.data=s.data||(s.sourceFormat===i?{}:[]),this.sourceFormat=s.sourceFormat||a,this.seriesLayoutBy=s.seriesLayoutBy||c,this.dimensionsDefine=s.dimensionsDefine,this.encodeDefine=s.encodeDefine&&E(s.encodeDefine),this.startIndex=s.startIndex||0,this.dimensionsDetectCount=s.dimensionsDetectCount}n.seriesDataToSource=function(s){return new n({data:s,sourceFormat:T(s)?r:h,fromDataset:!1})},S(n);var t=n;H.exports=t},"7Kak":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("KPFz"),g=d.n(T)},"7Phj":function(H,k,d){var I=d("bYtY"),E=d("OELB"),T=E.parsePercent,g=I.each;function S(a){var r=m(a);g(r,function(i){var n=i.seriesModels;if(!n.length)return;h(i),g(n,function(t,s){c(t,i.boxOffsetList[s],i.boxWidthList[s])})})}function m(a){var r=[],i=[];return a.eachSeriesByType("boxplot",function(n){var t=n.getBaseAxis(),s=I.indexOf(i,t);s<0&&(s=i.length,i[s]=t,r[s]={axis:t,seriesModels:[]}),r[s].seriesModels.push(n)}),r}function h(a){var r,i=a.axis,n=a.seriesModels,t=n.length,s=a.boxWidthList=[],e=a.boxOffsetList=[],o=[],l;if(i.type==="category")l=i.getBandWidth();else{var u=0;g(n,function(y){u=Math.max(u,y.getData().count())}),r=i.getExtent(),Math.abs(r[1]-r[0])/u}g(n,function(y){var x=y.get("boxWidth");I.isArray(x)||(x=[x,x]),o.push([T(x[0],l)||0,T(x[1],l)||0])});var f=l*.8-2,p=f/t*.3,v=(f-p*(t-1))/t,A=v/2-f/2;g(n,function(y,x){e.push(A),A+=p+v,s.push(Math.min(Math.max(v,o[x][0]),o[x][1]))})}function c(a,r,i){var n=a.coordinateSystem,t=a.getData(),s=i/2,e=a.get("layout")==="horizontal"?0:1,o=1-e,l=["x","y"],u=t.mapDimension(l[e]),f=t.mapDimension(l[o],!0);if(u==null||f.length<5)return;for(var p=0;p<t.count();p++){var v=t.get(u,p),A=_(v,f[2],p),y=_(v,f[0],p),x=_(v,f[1],p),C=_(v,f[3],p),w=_(v,f[4],p),b=[];O(b,x,0),O(b,C,1),b.push(y,x,w,C),L(b,y),L(b,w),L(b,A),t.setItemLayout(p,{initBaseline:A[o],ends:b})}function _(D,N,M){var F=t.get(N,M),R=[];R[e]=D,R[o]=F;var j;return isNaN(D)||isNaN(F)?j=[NaN,NaN]:(j=n.dataToPoint(R),j[e]+=r),j}function O(D,N,M){var F=N.slice(),R=N.slice();F[e]+=s,R[e]-=s,M?D.push(F,R):D.push(R,F)}function L(D,N){var M=N.slice(),F=N.slice();M[e]-=s,F[e]+=s,D.push(M,F)}}H.exports=S},"7SHv":function(H,k,d){var I=d("LPTA"),E=I.devicePixelRatio,T=d("bYtY"),g=d("SUKs"),S=d("mFDi"),m=d("BPZU"),h=d("Xmg4"),c=d("mLcG"),a=d("Dagg"),r=d("ItGF"),i=1e5,n=314159,t=.01,s=.001;function e(C){return parseInt(C,10)}function o(C){return C?C.__builtin__?!0:!(typeof C.resize!="function"||typeof C.refresh!="function"):!1}var l=new S(0,0,0,0),u=new S(0,0,0,0);function f(C,w,b){return l.copy(C.getBoundingRect()),C.transform&&l.applyTransform(C.transform),u.width=w,u.height=b,!l.intersect(u)}function p(C,w){if(C===w)return!1;if(!C||!w||C.length!==w.length)return!0;for(var b=0;b<C.length;b++)if(C[b]!==w[b])return!0;return!1}function v(C,w){for(var b=0;b<C.length;b++){var _=C[b];_.setTransform(w),w.beginPath(),_.buildPath(w,_.shape),w.clip(),_.restoreTransform(w)}}function A(C,w){var b=document.createElement("div");return b.style.cssText=["position:relative","width:"+C+"px","height:"+w+"px","padding:0","margin:0","border-width:0"].join(";")+";",b}var y=function(w,b,_){this.type="canvas";var O=!w.nodeName||w.nodeName.toUpperCase()==="CANVAS";this._opts=_=T.extend({},_||{}),this.dpr=_.devicePixelRatio||E,this._singleCanvas=O,this.root=w;var L=w.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",w.innerHTML=""),this.storage=b;var D=this._zlevelList=[],N=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,O){var F=w.width,R=w.height;_.width!=null&&(F=_.width),_.height!=null&&(R=_.height),this.dpr=_.devicePixelRatio||1,w.width=F*this.dpr,w.height=R*this.dpr,this._width=F,this._height=R;var j=new h(w,this,this.dpr);j.__builtin__=!0,j.initContext(),N[n]=j,j.zlevel=n,D.push(n),this._domRoot=w}else{this._width=this._getSize(0),this._height=this._getSize(1);var M=this._domRoot=A(this._width,this._height);w.appendChild(M)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var w=this.getViewportRoot();if(w)return{offsetLeft:w.offsetLeft||0,offsetTop:w.offsetTop||0}},refresh:function(w){var b=this.storage.getDisplayList(!0),_=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,w,this._redrawId);for(var O=0;O<_.length;O++){var L=_[O],D=this._layers[L];if(!D.__builtin__&&D.refresh){var N=O===0?this._backgroundColor:null;D.refresh(N)}}return this.refreshHover(),this},addHover:function(w,b){if(w.__hoverMir)return;var _=new w.constructor({style:w.style,shape:w.shape,z:w.z,z2:w.z2,silent:w.silent});return _.__from=w,w.__hoverMir=_,b&&_.setStyle(b),this._hoverElements.push(_),_},removeHover:function(w){var b=w.__hoverMir,_=this._hoverElements,O=T.indexOf(_,b);O>=0&&_.splice(O,1),w.__hoverMir=null},clearHover:function(w){for(var b=this._hoverElements,_=0;_<b.length;_++){var O=b[_].__from;O&&(O.__hoverMir=null)}b.length=0},refreshHover:function(){var w=this._hoverElements,b=w.length,_=this._hoverlayer;if(_&&_.clear(),!b)return;m(w,this.storage.displayableSortFunc),_||(_=this._hoverlayer=this.getLayer(i));var O={};_.ctx.save();for(var L=0;L<b;){var D=w[L],N=D.__from;if(!(N&&N.__zr)){w.splice(L,1),N.__hoverMir=null,b--;continue}L++,N.invisible||(D.transform=N.transform,D.invTransform=N.invTransform,D.__clipPaths=N.__clipPaths,this._doPaintEl(D,_,!0,O))}_.ctx.restore()},getHoverLayer:function(){return this.getLayer(i)},_paintList:function(w,b,_){if(this._redrawId!==_)return;b=b||!1,this._updateLayerStatus(w);var O=this._doPaintList(w,b);if(this._needsManuallyCompositing&&this._compositeManually(),!O){var L=this;c(function(){L._paintList(w,b,_)})}},_compositeManually:function(){var w=this.getLayer(n).ctx,b=this._domRoot.width,_=this._domRoot.height;w.clearRect(0,0,b,_),this.eachBuiltinLayer(function(O){O.virtual&&w.drawImage(O.dom,0,0,b,_)})},_doPaintList:function(w,b){for(var _=[],O=0;O<this._zlevelList.length;O++){var L=this._zlevelList[O],D=this._layers[L];D.__builtin__&&D!==this._hoverlayer&&(D.__dirty||b)&&_.push(D)}for(var N=!0,M=0;M<_.length;M++){var D=_[M],F=D.ctx,R={};F.save();var j=b?D.__startIndex:D.__drawIndex,B=!b&&D.incremental&&Date.now,K=B&&Date.now(),U=D.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(D.__startIndex===D.__endIndex)D.clear(!1,U);else if(j===D.__startIndex){var z=w[j];(!z.incremental||!z.notClear||b)&&D.clear(!1,U)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=D.__startIndex);for(var V=j;V<D.__endIndex;V++){var Y=w[V];if(this._doPaintEl(Y,D,b,R),Y.__dirty=Y.__dirtyText=!1,B){var J=Date.now()-K;if(J>15)break}}D.__drawIndex=V,D.__drawIndex<D.__endIndex&&(N=!1),R.prevElClipPaths&&F.restore(),F.restore()}return r.wxa&&T.each(this._layers,function(se){se&&se.ctx&&se.ctx.draw&&se.ctx.draw()}),N},_doPaintEl:function(w,b,_,O){var L=b.ctx,D=w.transform;if((b.__dirty||_)&&!w.invisible&&w.style.opacity!==0&&!(D&&!D[0]&&!D[3])&&!(w.culling&&f(w,this._width,this._height))){var N=w.__clipPaths,M=O.prevElClipPaths;(!M||p(N,M))&&(M&&(L.restore(),O.prevElClipPaths=null,O.prevEl=null),N&&(L.save(),v(N,L),O.prevElClipPaths=N)),w.beforeBrush&&w.beforeBrush(L),w.brush(L,O.prevEl||null),O.prevEl=w,w.afterBrush&&w.afterBrush(L)}},getLayer:function(w,b){this._singleCanvas&&!this._needsManuallyCompositing&&(w=n);var _=this._layers[w];return _||(_=new h("zr_"+w,this,this.dpr),_.zlevel=w,_.__builtin__=!0,this._layerConfig[w]?T.merge(_,this._layerConfig[w],!0):this._layerConfig[w-t]&&T.merge(_,this._layerConfig[w-t],!0),b&&(_.virtual=b),this.insertLayer(w,_),_.initContext()),_},insertLayer:function(w,b){var _=this._layers,O=this._zlevelList,L=O.length,D=null,N=-1,M=this._domRoot;if(_[w]){g("ZLevel "+w+" has been used already");return}if(!o(b)){g("Layer of zlevel "+w+" is not valid");return}if(L>0&&w>O[0]){for(N=0;N<L-1&&!(O[N]<w&&O[N+1]>w);N++);D=_[O[N]]}if(O.splice(N+1,0,w),_[w]=b,!b.virtual)if(D){var F=D.dom;F.nextSibling?M.insertBefore(b.dom,F.nextSibling):M.appendChild(b.dom)}else M.firstChild?M.insertBefore(b.dom,M.firstChild):M.appendChild(b.dom)},eachLayer:function(w,b){var _=this._zlevelList,O,L;for(L=0;L<_.length;L++)O=_[L],w.call(b,this._layers[O],O)},eachBuiltinLayer:function(w,b){var _=this._zlevelList,O,L,D;for(D=0;D<_.length;D++)L=_[D],O=this._layers[L],O.__builtin__&&w.call(b,O,L)},eachOtherLayer:function(w,b){var _=this._zlevelList,O,L,D;for(D=0;D<_.length;D++)L=_[D],O=this._layers[L],O.__builtin__||w.call(b,O,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(w){this.eachBuiltinLayer(function(R,j){R.__dirty=R.__used=!1});function b(R){L&&(L.__endIndex!==R&&(L.__dirty=!0),L.__endIndex=R)}if(this._singleCanvas)for(var _=1;_<w.length;_++){var O=w[_];if(O.zlevel!==w[_-1].zlevel||O.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,D=0,N,_=0;_<w.length;_++){var O=w[_],M=O.zlevel,F;N!==M&&(N=M,D=0),O.incremental?(F=this.getLayer(M+s,this._needsManuallyCompositing),F.incremental=!0,D=1):F=this.getLayer(M+(D>0?t:0),this._needsManuallyCompositing),F.__builtin__||g("ZLevel "+M+" has been used by unkown layer "+F.id),F!==L&&(F.__used=!0,F.__startIndex!==_&&(F.__dirty=!0),F.__startIndex=_,F.incremental?F.__drawIndex=-1:F.__drawIndex=_,b(_),L=F),O.__dirty&&(F.__dirty=!0,F.incremental&&F.__drawIndex<0&&(F.__drawIndex=_))}b(_),this.eachBuiltinLayer(function(R,j){!R.__used&&R.getElementCount()>0&&(R.__dirty=!0,R.__startIndex=R.__endIndex=R.__drawIndex=0),R.__dirty&&R.__drawIndex<0&&(R.__drawIndex=R.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,b){if(b){var _=this._layerConfig;_[w]?T.merge(_[w],b,!0):_[w]=b;for(var O=0;O<this._zlevelList.length;O++){var L=this._zlevelList[O];if(L===w||L===w+t){var D=this._layers[L];T.merge(D,_[w],!0)}}}},delLayer:function(w){var b=this._layers,_=this._zlevelList,O=b[w];if(!O)return;O.dom.parentNode.removeChild(O.dom),delete b[w],_.splice(T.indexOf(_,w),1)},resize:function(w,b){if(this._domRoot.style){var _=this._domRoot;_.style.display="none";var O=this._opts;if(w!=null&&(O.width=w),b!=null&&(O.height=b),w=this._getSize(0),b=this._getSize(1),_.style.display="",this._width!==w||b!==this._height){_.style.width=w+"px",_.style.height=b+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(w,b);T.each(this._progressiveLayers,function(D){D.resize(w,b)}),this.refresh(!0)}this._width=w,this._height=b}else{if(w==null||b==null)return;this._width=w,this._height=b,this.getLayer(n).resize(w,b)}return this},clearLayer:function(w){var b=this._layers[w];b&&b.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(w){if(w=w||{},this._singleCanvas&&!this._compositeManually)return this._layers[n].dom;var b=new h("image",this,w.pixelRatio||this.dpr);if(b.initContext(),b.clear(!1,w.backgroundColor||this._backgroundColor),w.pixelRatio<=this.dpr){this.refresh();var _=b.dom.width,O=b.dom.height,L=b.ctx;this.eachLayer(function(R){R.__builtin__?L.drawImage(R.dom,0,0,_,O):R.renderToCanvas&&(b.ctx.save(),R.renderToCanvas(b.ctx),b.ctx.restore())})}else for(var D={},N=this.storage.getDisplayList(!0),M=0;M<N.length;M++){var F=N[M];this._doPaintEl(F,b,!0,D)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(w){var b=this._opts,_=["width","height"][w],O=["clientWidth","clientHeight"][w],L=["paddingLeft","paddingTop"][w],D=["paddingRight","paddingBottom"][w];if(b[_]!=null&&b[_]!=="auto")return parseFloat(b[_]);var N=this.root,M=document.defaultView.getComputedStyle(N);return(N[O]||e(M[_])||e(N.style[_]))-(e(M[L])||0)-(e(M[D])||0)|0},pathToImage:function(w,b){b=b||this.dpr;var _=document.createElement("canvas"),O=_.getContext("2d"),L=w.getBoundingRect(),D=w.style,N=D.shadowBlur*b,M=D.shadowOffsetX*b,F=D.shadowOffsetY*b,R=D.hasStroke()?D.lineWidth:0,j=Math.max(R/2,-M+N),B=Math.max(R/2,M+N),K=Math.max(R/2,-F+N),U=Math.max(R/2,F+N),z=L.width+j+B,V=L.height+K+U;_.width=z*b,_.height=V*b,O.scale(b,b),O.clearRect(0,0,z,V),O.dpr=b;var Y={position:w.position,rotation:w.rotation,scale:w.scale};w.position=[j-L.x,K-L.y],w.rotation=0,w.scale=[1,1],w.updateTransform(),w&&w.brush(O);var J=a,se=new J({style:{x:0,y:0,image:_}});return Y.position!=null&&(se.position=w.position=Y.position),Y.rotation!=null&&(se.rotation=w.rotation=Y.rotation),Y.scale!=null&&(se.scale=w.scale=Y.scale),se}};var x=y;H.exports=x},"7a+S":function(H,k,d){var I=d("bYtY"),E=d("bLfw"),T=d("YXkt"),g=d("4NO4"),S=E.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,c,a){this._data,this._names,this.mergeDefaultAndTheme(h,a),this._initData()},mergeOption:function(h){S.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(h){h==null&&(h=this.option.currentIndex);var c=this._data.count();this.option.loop?h=(h%c+c)%c:(h>=c&&(h=c-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,c=h.data||[],a=h.axisType,r=this._names=[];if(a==="category"){var i=[];I.each(c,function(s,e){var o=g.getDataItemValue(s),l;I.isObject(s)?(l=I.clone(s),l.value=e):l=e,i.push(l),!I.isString(o)&&(o==null||isNaN(o))&&(o=""),r.push(o+"")}),c=i}var n={category:"ordinal",time:"time"}[a]||"number",t=this._data=new T([{name:"value",type:n}],this);t.initData(c,r)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),m=S;H.exports=m},"7aKB":function(H,k,d){var I=d("bYtY"),E=d("6GrX"),T=d("OELB");function g(A){return isNaN(A)?"-":(A=(A+"").split("."),A[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(A.length>1?"."+A[1]:""))}function S(A,y){return A=(A||"").toLowerCase().replace(/-(.)/g,function(x,C){return C.toUpperCase()}),y&&A&&(A=A.charAt(0).toUpperCase()+A.slice(1)),A}var m=I.normalizeCssArray,h=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function a(A){return A==null?"":(A+"").replace(h,function(y,x){return c[x]})}var r=["a","b","c","d","e","f","g"],i=function(A,y){return"{"+A+(y==null?"":y)+"}"};function n(A,y,x){I.isArray(y)||(y=[y]);var C=y.length;if(!C)return"";for(var w=y[0].$vars||[],b=0;b<w.length;b++){var _=r[b];A=A.replace(i(_),i(_,0))}for(var O=0;O<C;O++)for(var L=0;L<w.length;L++){var D=y[O][w[L]];A=A.replace(i(r[L],O),x?a(D):D)}return A}function t(A,y,x){return I.each(y,function(C,w){A=A.replace("{"+w+"}",x?a(C):C)}),A}function s(A,y){A=I.isString(A)?{color:A,extraCssText:y}:A||{};var x=A.color,C=A.type,y=A.extraCssText,w=A.renderMode||"html",b=A.markerId||"X";return x?w==="html"?C==="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(x)+";"+(y||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(x)+";"+(y||"")+'"></span>':{renderMode:w,content:"{marker"+b+"|} ",style:{color:x}}:""}function e(A,y){return A+="","0000".substr(0,y-A.length)+A}function o(A,y,x){(A==="week"||A==="month"||A==="quarter"||A==="half-year"||A==="year")&&(A=`MM-dd
|
|
|
yyyy`);var C=T.parseDate(y),w=x?"UTC":"",b=C["get"+w+"FullYear"](),_=C["get"+w+"Month"]()+1,O=C["get"+w+"Date"](),L=C["get"+w+"Hours"](),D=C["get"+w+"Minutes"](),N=C["get"+w+"Seconds"](),M=C["get"+w+"Milliseconds"]();return A=A.replace("MM",e(_,2)).replace("M",_).replace("yyyy",b).replace("yy",b%100).replace("dd",e(O,2)).replace("d",O).replace("hh",e(L,2)).replace("h",L).replace("mm",e(D,2)).replace("m",D).replace("ss",e(N,2)).replace("s",N).replace("SSS",e(M,3)),A}function l(A){return A&&A.charAt(0).toUpperCase()+A.substr(1)}var u=E.truncateText;function f(A){return E.getBoundingRect(A.text,A.font,A.textAlign,A.textVerticalAlign,A.textPadding,A.textLineHeight,A.rich,A.truncate)}function p(A,y,x,C,w,b,_,O){return E.getBoundingRect(A,y,x,C,w,O,b,_)}function v(A,y){if(y==="_blank"||y==="blank"){var x=window.open();x.opener=null,x.location=A}else window.open(A,y)}k.addCommas=g,k.toCamelCase=S,k.normalizeCssArray=m,k.encodeHTML=a,k.formatTpl=n,k.formatTplSimple=t,k.getTooltipMarker=s,k.formatTime=o,k.capitalFirst=l,k.truncateText=u,k.getTextBoundingRect=f,k.getTextRect=p,k.windowOpen=v},"7bkD":function(H,k,d){var I=d("bYtY");function E(T,g){g=g||{};var S=T.coordinateSystem,m=T.axis,h={},c=m.position,a=m.orient,r=S.getRect(),i=[r.x,r.x+r.width,r.y,r.y+r.height],n={horizontal:{top:i[2],bottom:i[3]},vertical:{left:i[0],right:i[1]}};h.position=[a==="vertical"?n.vertical[c]:i[0],a==="horizontal"?n.horizontal[c]:i[3]];var t={horizontal:0,vertical:1};h.rotation=Math.PI/2*t[a];var s={top:-1,bottom:1,right:1,left:-1};h.labelDirection=h.tickDirection=h.nameDirection=s[c],T.get("axisTick.inside")&&(h.tickDirection=-h.tickDirection),I.retrieve(g.labelInside,T.get("axisLabel.inside"))&&(h.labelDirection=-h.labelDirection);var e=g.rotate;return e==null&&(e=T.get("axisLabel.rotate")),h.labelRotation=c==="top"?-e:e,h.z2=1,h}k.layout=E},"7hqr":function(H,k,d){var I=d("bYtY"),E=I.each,T=I.isString;function g(h,c,a){a=a||{};var r=a.byIndex,i=a.stackedCoordDimension,n=!!(h&&h.get("stack")),t,s,e,o;if(E(c,function(p,v){T(p)&&(c[v]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!t&&p.ordinalMeta&&(t=p),!s&&p.type!=="ordinal"&&p.type!=="time"&&(!i||i===p.coordDim)&&(s=p))}),s&&!r&&!t&&(r=!0),s){e="__\0ecstackresult",o="__\0ecstackedover",t&&(t.createInvertedIndices=!0);var l=s.coordDim,u=s.type,f=0;E(c,function(p){p.coordDim===l&&f++}),c.push({name:e,coordDim:l,coordDimIndex:f,type:u,isExtraCoord:!0,isCalculationCoord:!0}),f++,c.push({name:o,coordDim:o,coordDimIndex:f,type:u,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:s&&s.name,stackedByDimension:t&&t.name,isStackedByIndex:r,stackedOverDimension:o,stackResultDimension:e}}function S(h,c){return!!c&&c===h.getCalculationInfo("stackedDimension")}function m(h,c){return S(h,c)?h.getCalculationInfo("stackResultDimension"):c}k.enableDataStack=g,k.isDimensionStacked=S,k.getStackedDimension=m},"7mYs":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IwbS"),g=d("7aKB"),S=d("OELB"),m={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"]},c=I.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(a,r,i){var n=this.group;n.removeAll();var t=a.coordinateSystem,s=t.getRangeInfo(),e=t.getOrient();this._renderDayRect(a,s,n),this._renderLines(a,s,e,n),this._renderYearText(a,s,e,n),this._renderMonthText(a,e,n),this._renderWeekText(a,s,e,n)},_renderDayRect:function(a,r,i){for(var n=a.coordinateSystem,t=a.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),e=n.getCellHeight(),o=r.start.time;o<=r.end.time;o=n.getNextNDay(o,1).time){var l=n.dataToRect([o],!1).tl,u=new T.Rect({shape:{x:l[0],y:l[1],width:s,height:e},cursor:"default",style:t});i.add(u)}},_renderLines:function(a,r,i,n){var t=this,s=a.coordinateSystem,e=a.getModel("splitLine.lineStyle").getLineStyle(),o=a.get("splitLine.show"),l=e.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,f=0;u.time<=r.end.time;f++){v(u.formatedDate),f===0&&(u=s.getDateInfo(r.start.y+"-"+r.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=s.getDateInfo(p)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(A){t._firstDayOfMonth.push(s.getDateInfo(A)),t._firstDayPoints.push(s.dataToRect([A],!1).tl);var y=t._getLinePointsOfOneWeek(a,A,i);t._tlpoints.push(y[0]),t._blpoints.push(y[y.length-1]),o&&t._drawSplitline(y,e,n)}o&&this._drawSplitline(t._getEdgesPoints(t._tlpoints,l,i),e,n),o&&this._drawSplitline(t._getEdgesPoints(t._blpoints,l,i),e,n)},_getEdgesPoints:function(a,r,i){var n=[a[0].slice(),a[a.length-1].slice()],t=i==="horizontal"?0:1;return n[0][t]=n[0][t]-r/2,n[1][t]=n[1][t]+r/2,n},_drawSplitline:function(a,r,i){var n=new T.Polyline({z2:20,shape:{points:a},style:r});i.add(n)},_getLinePointsOfOneWeek:function(a,r,i){var n=a.coordinateSystem;r=n.getDateInfo(r);for(var t=[],s=0;s<7;s++){var e=n.getNextNDay(r.time,s),o=n.dataToRect([e.time],!1);t[2*e.day]=o.tl,t[2*e.day+1]=o[i==="horizontal"?"bl":"tr"]}return t},_formatterLabel:function(a,r){return typeof a=="string"&&a?g.formatTplSimple(a,r):typeof a=="function"?a(r):r.nameMap},_yearTextPositionControl:function(a,r,i,n,t){r=r.slice();var s=["center","bottom"];n==="bottom"?(r[1]+=t,s=["center","top"]):n==="left"?r[0]-=t:n==="right"?(r[0]+=t,s=["center","top"]):r[1]-=t;var e=0;return(n==="left"||n==="right")&&(e=Math.PI/2),{rotation:e,position:r,style:{textAlign:s[0],textVerticalAlign:s[1]}}},_renderYearText:function(a,r,i,n){var t=a.getModel("yearLabel");if(!t.get("show"))return;var s=t.get("margin"),e=t.get("position");e||(e=i!=="horizontal"?"top":"left");var o=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(o[0][0]+o[1][0])/2,u=(o[0][1]+o[1][1])/2,f=i==="horizontal"?0:1,p={top:[l,o[f][1]],bottom:[l,o[1-f][1]],left:[o[1-f][0],u],right:[o[f][0],u]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var A=t.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:v},x=this._formatterLabel(A,y),C=new T.Text({z2:30});T.setTextStyle(C.style,t,{text:x}),C.attr(this._yearTextPositionControl(C,p[e],i,e,s)),n.add(C)},_monthTextPositionControl:function(a,r,i,n,t){var s="left",e="top",o=a[0],l=a[1];return i==="horizontal"?(l=l+t,r&&(s="center"),n==="start"&&(e="bottom")):(o=o+t,r&&(e="middle"),n==="start"&&(s="right")),{x:o,y:l,textAlign:s,textVerticalAlign:e}},_renderMonthText:function(a,r,i){var n=a.getModel("monthLabel");if(!n.get("show"))return;var t=n.get("nameMap"),s=n.get("margin"),e=n.get("position"),o=n.get("align"),l=[this._tlpoints,this._blpoints];E.isString(t)&&(t=m[t.toUpperCase()]||[]);var u=e==="start"?0:1,f=r==="horizontal"?0:1;s=e==="start"?-s:s;for(var p=o==="center",v=0;v<l[u].length-1;v++){var A=l[u][v].slice(),y=this._firstDayOfMonth[v];if(p){var x=this._firstDayPoints[v];A[f]=(x[f]+l[0][v+1][f])/2}var C=n.get("formatter"),w=t[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},_=this._formatterLabel(C,b),O=new T.Text({z2:30});E.extend(T.setTextStyle(O.style,n,{text:_}),this._monthTextPositionControl(A,p,r,e,s)),i.add(O)}},_weekTextPositionControl:function(a,r,i,n,t){var s="center",e="middle",o=a[0],l=a[1],u=i==="start";return r==="horizontal"?(o=o+n+(u?1:-1)*t[0]/2,s=u?"right":"left"):(l=l+n+(u?1:-1)*t[1]/2,e=u?"bottom":"top"),{x:o,y:l,textAlign:s,textVerticalAlign:e}},_renderWeekText:function(a,r,i,n){var t=a.getModel("dayLabel");if(!t.get("show"))return;var s=a.coordinateSystem,e=t.get("position"),o=t.get("nameMap"),l=t.get("margin"),u=s.getFirstDayOfWeek();E.isString(o)&&(o=h[o.toUpperCase()]||[]);var f=s.getNextNDay(r.end.time,7-r.lweek).time,p=[s.getCellWidth(),s.getCellHeight()];l=S.parsePercent(l,p[i==="horizontal"?0:1]),e==="start"&&(f=s.getNextNDay(r.start.time,-(7+r.fweek)).time,l=-l);for(var v=0;v<7;v++){var A=s.getNextNDay(f,v),y=s.dataToRect([A.time],!1).center,x=v;x=Math.abs((v+u)%7);var C=new T.Text({z2:30});E.extend(T.setTextStyle(C.style,t,{text:o[x]}),this._weekTextPositionControl(y,i,e,l,p)),n.add(C)}}});H.exports=c},"7oTu":function(H,k,d){var I=d("IMiH"),E=d("QBsz"),T=E.applyTransform,g=I.CMD,S=[[],[],[]],m=Math.sqrt,h=Math.atan2;function c(a,r){var i=a.data,n,t,s,e,o,l,u=g.M,f=g.C,p=g.L,v=g.R,A=g.A,y=g.Q;for(s=0,e=0;s<i.length;){n=i[s++],e=s,t=0;switch(n){case u:t=1;break;case p:t=1;break;case f:t=3;break;case y:t=2;break;case A:var x=r[4],C=r[5],w=m(r[0]*r[0]+r[1]*r[1]),b=m(r[2]*r[2]+r[3]*r[3]),_=h(-r[1]/b,r[0]/w);i[s]*=w,i[s++]+=x,i[s]*=b,i[s++]+=C,i[s++]*=w,i[s++]*=b,i[s++]+=_,i[s++]+=_,s+=2,e=s;break;case v:l[0]=i[s++],l[1]=i[s++],T(l,l,r),i[e++]=l[0],i[e++]=l[1],l[0]+=i[s++],l[1]+=i[s++],T(l,l,r),i[e++]=l[0],i[e++]=l[1]}for(o=0;o<t;o++){var l=S[o];l[0]=i[s++],l[1]=i[s++],T(l,l,r),i[e++]=l[0],i[e++]=l[1]}}}H.exports=c},"7pVf":function(H,k,d){var I=d("ProS"),E=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),I.registerPreprocessor(E)},"7ph2":function(H,k){function d(T){return T instanceof Array||(T=[T,T]),T}var I="lineStyle.opacity".split("."),E={seriesType:"lines",reset:function(T,g,S){var m=d(T.get("symbol")),h=d(T.get("symbolSize")),c=T.getData();c.setVisual("fromSymbol",m&&m[0]),c.setVisual("toSymbol",m&&m[1]),c.setVisual("fromSymbolSize",h&&h[0]),c.setVisual("toSymbolSize",h&&h[1]),c.setVisual("opacity",T.get(I));function a(r,i){var n=r.getItemModel(i),t=d(n.getShallow("symbol",!0)),s=d(n.getShallow("symbolSize",!0)),e=n.get(I);t[0]&&r.setItemVisual(i,"fromSymbol",t[0]),t[1]&&r.setItemVisual(i,"toSymbol",t[1]),s[0]&&r.setItemVisual(i,"fromSymbolSize",s[0]),s[1]&&r.setItemVisual(i,"toSymbolSize",s[1]),r.setItemVisual(i,"opacity",e)}return{dataEach:c.hasItemOption?a:null}}};H.exports=E},"7uqq":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("AUH6"),m=d("+TT/"),h=d("OELB"),c=d("W4dC"),a=d("7DRL");function r(s,e){var o=s.get("boundingCoords");if(o!=null){var l=o[0],u=o[1];isNaN(l[0])||isNaN(l[1])||isNaN(u[0])||isNaN(u[1])||this.setBoundingRect(l[0],l[1],u[0]-l[0],u[1]-l[1])}var f=this.getBoundingRect(),p,v=s.get("layoutCenter"),A=s.get("layoutSize"),y=e.getWidth(),x=e.getHeight(),C=f.width/f.height*this.aspectScale,w=!1;v&&A&&(v=[h.parsePercent(v[0],y),h.parsePercent(v[1],x)],A=h.parsePercent(A,Math.min(y,x)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(A)&&(w=!0));var b;if(w){var b={};C>1?(b.width=A,b.height=A/C):(b.height=A,b.width=A*C),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2}else p=s.getBoxLayoutParams(),p.aspect=C,b=m.getLayoutRect(p,{width:y,height:x});this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(s.get("center")),this.setZoom(s.get("zoom"))}function i(s,e){g.each(e.get("geoCoord"),function(o,l){s.addGeoCoord(l,o)})}var n={dimensions:S.prototype.dimensions,create:function(s,e){var o=[];s.eachComponent("geo",function(u,f){var p=u.get("map"),v=u.get("aspectScale"),A=!0,y=a.retrieveMap(p);y&&y[0]&&y[0].type==="svg"?(v==null&&(v=1),A=!1):v==null&&(v=.75);var x=new S(p+f,p,u.get("nameMap"),A);x.aspectScale=v,x.zoomLimit=u.get("scaleLimit"),o.push(x),i(x,u),u.coordinateSystem=x,x.model=u,x.resize=r,x.resize(u,e)}),s.eachSeries(function(u){var f=u.get("coordinateSystem");if(f==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=o[p]}});var l={};return s.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var f=u.getMapType();l[f]=l[f]||[],l[f].push(u)}}),g.each(l,function(u,f){var p=g.map(u,function(A){return A.get("nameMap")}),v=new S(f,f,g.mergeAll(p));v.zoomLimit=g.retrieve.apply(null,g.map(u,function(A){return A.get("scaleLimit")})),o.push(v),v.resize=r,v.aspectScale=u[0].get("aspectScale"),v.resize(u[0],e),g.each(u,function(A){A.coordinateSystem=v,i(v,A)})}),o},getFilledRegions:function(s,e,o){for(var l=(s||[]).slice(),u=g.createHashMap(),f=0;f<l.length;f++)u.set(l[f].name,l[f]);var p=c.load(e,o);return g.each(p.regions,function(v){var A=v.name;!u.get(A)&&l.push({name:A})}),l}};T.registerCoordinateSystem("geo",n);var t=n;H.exports=t},"7yuC":function(H,k,d){var I=d("QBsz"),E=I.scaleAndAdd;function T(g,S,m){for(var h=m.rect,c=h.width,a=h.height,r=[h.x+c/2,h.y+a/2],i=m.gravity==null?.1:m.gravity,n=0;n<g.length;n++){var t=g[n];t.p||(t.p=I.create(c*(Math.random()-.5)+r[0],a*(Math.random()-.5)+r[1])),t.pp=I.clone(t.p),t.edges=null}var s=m.friction==null?.6:m.friction,e=s;return{warmUp:function(){e=s*.8},setFixed:function(o){g[o].fixed=!0},setUnfixed:function(o){g[o].fixed=!1},step:function(o){for(var l=[],u=g.length,f=0;f<S.length;f++){var p=S[f];if(p.ignoreForceLayout)continue;var v=p.n1,A=p.n2;I.sub(l,A.p,v.p);var y=I.len(l)-p.d,x=A.w/(v.w+A.w);isNaN(x)&&(x=0),I.normalize(l,l),!v.fixed&&E(v.p,v.p,l,x*y*e),!A.fixed&&E(A.p,A.p,l,-(1-x)*y*e)}for(var f=0;f<u;f++){var C=g[f];C.fixed||(I.sub(l,r,C.p),E(C.p,C.p,l,i*e))}for(var f=0;f<u;f++)for(var v=g[f],w=f+1;w<u;w++){var A=g[w];I.sub(l,A.p,v.p);var y=I.len(l);y===0&&(I.set(l,Math.random()-.5,Math.random()-.5),y=1);var b=(v.rep+A.rep)/y/y;!v.fixed&&E(v.pp,v.pp,l,b),!A.fixed&&E(A.pp,A.pp,l,-b)}for(var _=[],f=0;f<u;f++){var C=g[f];C.fixed||(I.sub(_,C.p,C.pp),E(C.p,C.p,_,e),I.copy(C.pp,C.p))}e=e*.992,o&&o(g,S,e<.01)}}}k.forceLayout=T},"8+yF":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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},E={lookup:function(g){if(g>=32&&g<=255)return g;var S=I[g];return S!==void 0?S:16777216|g}};k.default=E},"815F":function(H,k,d){"use strict";d.d(k,"e",function(){return h}),d.d(k,"c",function(){return a}),d.d(k,"d",function(){return r}),d.d(k,"a",function(){return n}),d.d(k,"f",function(){return t}),d.d(k,"b",function(){return s});var I=d("KQm4"),E=d("VTBJ"),T=d("Ff2n"),g=d("Zm9Q"),S=d("Kwbf"),m=d("OZM5");function h(e,o){return e!=null?e:o}function c(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function l(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(p){var v=p.key,A=p.children;Object(S.a)(v!=null,"Tree node must have a certain key: [".concat(f).concat(v,"]"));var y=String(v);Object(S.a)(!o.has(y)||v===null||v===void 0,"Same 'key' exist in the Tree: ".concat(y)),o.set(y,!0),l(A,"".concat(f).concat(y," > "))})}l(e)}function a(e){function o(l){var u=Object(g.a)(l);return u.map(function(f){if(!Object(m.i)(f))return Object(S.a)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var p=f.key,v=f.props,A=v.children,y=Object(T.a)(v,["children"]),x=Object(E.a)({key:p},y),C=o(A);return C.length&&(x.children=C),x}).filter(function(f){return f})}return o(e)}function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=new Set(o===!0?[]:o),u=[];function f(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(A,y){var x=Object(m.h)(v?v.pos:"0",y),C=h(A.key,x),w=Object(E.a)(Object(E.a)({},A),{},{parent:v,pos:x,children:null,data:A,isStart:[].concat(Object(I.a)(v?v.isStart:[]),[y===0]),isEnd:[].concat(Object(I.a)(v?v.isEnd:[]),[y===p.length-1])});return u.push(w),o===!0||l.has(C)?w.children=f(A.children||[],w):w.children=[],w})}return f(e),u}function i(e,o,l){var u;l?typeof l=="string"?u=function(v){return v[l]}:typeof l=="function"&&(u=function(v){return l(v)}):u=function(v,A){return h(v.key,A)};function f(p,v,A){var y=p?p.children:e,x=p?Object(m.h)(A.pos,v):"0";if(p){var C=u(p,x),w={node:p,index:v,pos:x,key:C,parentPos:A.node?A.pos:null,level:A.level+1};o(w)}y&&y.forEach(function(b,_){f(b,_,{node:p,pos:x,level:A?A.level+1:-1})})}f(null)}function n(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.initWrapper,u=o.processEntity,f=o.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,v={},A={},y={posEntities:v,keyEntities:A};return l&&(y=l(y)||y),i(e,function(x){var C=x.node,w=x.index,b=x.pos,_=x.key,O=x.parentPos,L=x.level,D={node:C,index:w,key:_,pos:b,level:L},N=h(_,b);v[b]=D,A[N]=D,D.parent=v[O],D.parent&&(D.parent.children=D.parent.children||[],D.parent.children.push(D)),u&&u(D,y)},p),f&&f(y),y}function t(e,o){var l=o.expandedKeys,u=o.selectedKeys,f=o.loadedKeys,p=o.loadingKeys,v=o.checkedKeys,A=o.halfCheckedKeys,y=o.dragOverNodeKey,x=o.dropPosition,C=o.keyEntities,w=C[e],b={eventKey:e,expanded:l.indexOf(e)!==-1,selected:u.indexOf(e)!==-1,loaded:f.indexOf(e)!==-1,loading:p.indexOf(e)!==-1,checked:v.indexOf(e)!==-1,halfChecked:A.indexOf(e)!==-1,pos:String(w?w.pos:""),dragOver:y===e&&x===0,dragOverGapTop:y===e&&x===-1,dragOverGapBottom:y===e&&x===1};return b}function s(e){var o=e.data,l=e.expanded,u=e.selected,f=e.checked,p=e.loaded,v=e.loading,A=e.halfChecked,y=e.dragOver,x=e.dragOverGapTop,C=e.dragOverGapBottom,w=e.pos,b=e.active,_=Object(E.a)(Object(E.a)({},o),{},{expanded:l,selected:u,checked:f,loaded:p,loading:v,halfChecked:A,dragOver:y,dragOverGapTop:x,dragOverGapBottom:C,pos:w,active:b});return"props"in _||Object.defineProperty(_,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),_}},"8CQX":function(H,k,d){"use strict";function I(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(o){return typeof o}:I=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},I(s)}Object.defineProperty(k,"__esModule",{value:!0}),k.getKeycode=i,k.getKey=n,k.getKeysym=t;var E=r(d("mHUz")),T=r(d("8+yF")),g=r(d("6Qwc")),S=r(d("gIYZ")),m=r(d("mTgk")),h=a(d("GdRQ"));function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function a(s){if(s&&s.__esModule)return s;if(s===null||I(s)!=="object"&&typeof s!="function")return{default:s};var e=c();if(e&&e.has(s))return e.get(s);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var f=l?Object.getOwnPropertyDescriptor(s,u):null;f&&(f.get||f.set)?Object.defineProperty(o,u,f):o[u]=s[u]}return o.default=s,e&&e.set(s,o),o}function r(s){return s&&s.__esModule?s:{default:s}}function i(s){if(s.code){switch(s.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return s.code}if(s.type!=="keypress"&&s.keyCode in g.default){var e=g.default[s.keyCode];if(h.isMac()&&e==="ContextMenu"&&(e="MetaRight"),s.location===2)switch(e){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(s.location===3)switch(e){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 e}return"Unidentified"}function n(s){if(s.key!==void 0){switch(s.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 s.char}switch(s.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(s.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(s.key==="\0"&&s.code==="NumpadDecimal")return"Delete";if(!h.isIE()&&!h.isEdge())return s.key;if(s.key.length!==1&&s.key!=="Unidentified")return s.key}var e=i(s);return e in S.default?S.default[e]:s.charCode?String.fromCharCode(s.charCode):"Unidentified"}function t(s){var e=n(s);if(e==="Unidentified")return null;if(e in m.default){var o=s.location;if(e==="Meta"&&o===0&&(o=2),e==="Clear"&&o===3){var l=i(s);l==="NumLock"&&(o=0)}if((o===void 0||o>3)&&(o=0),e==="Meta"){var u=i(s);if(u==="AltLeft")return E.default.XK_Meta_L;if(u==="AltRight")return E.default.XK_Meta_R}if(e==="Clear"){var f=i(s);if(f==="NumLock")return E.default.XK_Num_Lock}return m.default[e][o]}if(e.length!==1)return null;var p=e.charCodeAt();return p?T.default.lookup(p):null}},"8EBN":function(H,k,d){(function(I){I(d("VrN/"))})(function(I){"use strict";I.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 E=0;E<I.modeInfo.length;E++){var T=I.modeInfo[E];T.mimes&&(T.mime=T.mimes[0])}I.findModeByMIME=function(g){g=g.toLowerCase();for(var S=0;S<I.modeInfo.length;S++){var m=I.modeInfo[S];if(m.mime==g)return m;if(m.mimes){for(var h=0;h<m.mimes.length;h++)if(m.mimes[h]==g)return m}}if(/\+xml$/.test(g))return I.findModeByMIME("application/xml");if(/\+json$/.test(g))return I.findModeByMIME("application/json")},I.findModeByExtension=function(g){g=g.toLowerCase();for(var S=0;S<I.modeInfo.length;S++){var m=I.modeInfo[S];if(m.ext){for(var h=0;h<m.ext.length;h++)if(m.ext[h]==g)return m}}},I.findModeByFileName=function(g){for(var S=0;S<I.modeInfo.length;S++){var m=I.modeInfo[S];if(m.file&&m.file.test(g))return m}var h=g.lastIndexOf("."),c=h>-1&&g.substring(h+1,g.length);if(c)return I.findModeByExtension(c)},I.findModeByName=function(g){g=g.toLowerCase();for(var S=0;S<I.modeInfo.length;S++){var m=I.modeInfo[S];if(m.name.toLowerCase()==g)return m;if(m.alias){for(var h=0;h<m.alias.length;h++)if(m.alias[h].toLowerCase()==g)return m}}}})},"8IMR":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},"8ISB":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("6Hfg"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},"8K/p":function(H,k,d){"use strict";function I(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(t){return typeof t}:I=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(i)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=m(d("Lo0S")),T=g(d("ItS6"));function g(i){return i&&i.__esModule?i:{default:i}}function S(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return S=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||I(i)!=="object"&&typeof i!="function")return{default:i};var n=S();if(n&&n.has(i))return n.get(i);var t={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=s?Object.getOwnPropertyDescriptor(i,e):null;o&&(o.get||o.set)?Object.defineProperty(t,e,o):t[e]=i[e]}return t.default=i,n&&n.set(i,t),t}function h(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function c(i,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function a(i,n,t){return n&&c(i.prototype,n),t&&c(i,t),i}var r=function(){function i(){h(this,i),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var n=0;n<4;n++)this._zlibs[n]=new T.default}return a(i,[{key:"decodeRect",value:function(t,s,e,o,l,u,f){if(this._ctl===null){if(l.rQwait("TIGHT compression-control",1))return!1;this._ctl=l.rQshift8();for(var p=0;p<4;p++)this._ctl>>p&1&&(this._zlibs[p].reset(),E.Info("Reset zlib stream "+p));this._ctl=this._ctl>>4}var v;if(this._ctl===8)v=this._fillRect(t,s,e,o,l,u,f);else if(this._ctl===9)v=this._jpegRect(t,s,e,o,l,u,f);else if(this._ctl===10)v=this._pngRect(t,s,e,o,l,u,f);else if((this._ctl&128)==0)v=this._basicRect(this._ctl,t,s,e,o,l,u,f);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return v&&(this._ctl=null),v}},{key:"_fillRect",value:function(t,s,e,o,l,u,f){if(l.rQwait("TIGHT",3))return!1;var p=l.rQi,v=l.rQ;return u.fillRect(t,s,e,o,[v[p+2],v[p+1],v[p]],!1),l.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(t,s,e,o,l,u,f){var p=this._readData(l);return p===null?!1:(u.imageRect(t,s,e,o,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(t,s,e,o,l,u,f){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(t,s,e,o,l,u,f,p){if(this._filter===null)if(t&4){if(u.rQwait("TIGHT",1))return!1;this._filter=u.rQshift8()}else this._filter=0;var v=t&3,A;switch(this._filter){case 0:A=this._copyFilter(v,s,e,o,l,u,f,p);break;case 1:A=this._paletteFilter(v,s,e,o,l,u,f,p);break;case 2:A=this._gradientFilter(v,s,e,o,l,u,f,p);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return A&&(this._filter=null),A}},{key:"_copyFilter",value:function(t,s,e,o,l,u,f,p){var v=o*l*3,A;if(v<12){if(u.rQwait("TIGHT",v))return!1;A=u.rQshiftBytes(v)}else{if(A=this._readData(u),A===null)return!1;this._zlibs[t].setInput(A),A=this._zlibs[t].inflate(v),this._zlibs[t].setInput(null)}return f.blitRgbImage(s,e,o,l,A,0,!1),!0}},{key:"_paletteFilter",value:function(t,s,e,o,l,u,f,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var v=u.rQpeek8()+1,A=v*3;if(u.rQwait("TIGHT palette",1+A))return!1;this._numColors=v,u.rQskipBytes(1),u.rQshiftTo(this._palette,A)}var y=this._numColors<=2?1:8,x=Math.floor((o*y+7)/8),C=x*l,w;if(C<12){if(u.rQwait("TIGHT",C))return!1;w=u.rQshiftBytes(C)}else{if(w=this._readData(u),w===null)return!1;this._zlibs[t].setInput(w),w=this._zlibs[t].inflate(C),this._zlibs[t].setInput(null)}return this._numColors==2?this._monoRect(s,e,o,l,w,this._palette,f):this._paletteRect(s,e,o,l,w,this._palette,f),this._numColors=0,!0}},{key:"_monoRect",value:function(t,s,e,o,l,u,f){for(var p=this._getScratchBuffer(e*o*4),v=Math.floor((e+7)/8),A=Math.floor(e/8),y=0;y<o;y++){var x=void 0,C=void 0,w=void 0;for(w=0;w<A;w++)for(var b=7;b>=0;b--)x=(y*e+w*8+7-b)*4,C=(l[y*v+w]>>b&1)*3,p[x]=u[C],p[x+1]=u[C+1],p[x+2]=u[C+2],p[x+3]=255;for(var _=7;_>=8-e%8;_--)x=(y*e+w*8+7-_)*4,C=(l[y*v+w]>>_&1)*3,p[x]=u[C],p[x+1]=u[C+1],p[x+2]=u[C+2],p[x+3]=255}f.blitRgbxImage(t,s,e,o,p,0,!1)}},{key:"_paletteRect",value:function(t,s,e,o,l,u,f){for(var p=this._getScratchBuffer(e*o*4),v=e*o*4,A=0,y=0;A<v;A+=4,y++){var x=l[y]*3;p[A]=u[x],p[A+1]=u[x+1],p[A+2]=u[x+2],p[A+3]=255}f.blitRgbxImage(t,s,e,o,p,0,!1)}},{key:"_gradientFilter",value:function(t,s,e,o,l,u,f,p){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(t){if(this._len===0){if(t.rQwait("TIGHT",3))return null;var s;s=t.rQshift8(),this._len=s&127,s&128&&(s=t.rQshift8(),this._len|=(s&127)<<7,s&128&&(s=t.rQshift8(),this._len|=s<<14))}if(t.rQwait("TIGHT",this._len))return null;var e=t.rQshiftBytes(this._len);return this._len=0,e}},{key:"_getScratchBuffer",value:function(t){return(!this._scratchBuffer||this._scratchBuffer.length<t)&&(this._scratchBuffer=new Uint8Array(t)),this._scratchBuffer}}]),i}();k.default=r},"8OUc":function(H,k,d){"use strict";var I=d("q1tI"),E=d.n(I),T=d("TSYQ"),g=d.n(T),S=function(h){var c=h.className,a=h.customizeIcon,r=h.customizeIconProps,i=h.onMouseDown,n=h.onClick,t=h.children,s;return typeof a=="function"?s=a(r):s=a,I.createElement("span",{className:c,onMouseDown:function(o){o.preventDefault(),i&&i(o)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:n,"aria-hidden":!0},s!==void 0?s:I.createElement("span",{className:g()(c.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},t))};k.a=S},"8SMY":function(H,k,d){var I=d("n4Lv"),E=I.prepareDataCoordInfo,T=I.getStackedOnPoint;function g(m,h){var c=[];return h.diff(m).add(function(a){c.push({cmd:"+",idx:a})}).update(function(a,r){c.push({cmd:"=",idx:r,idx1:a})}).remove(function(a){c.push({cmd:"-",idx:a})}).execute(),c}function S(m,h,c,a,r,i,n,t){for(var s=g(m,h),e=[],o=[],l=[],u=[],f=[],p=[],v=[],A=E(r,h,n),y=E(i,m,t),x=0;x<s.length;x++){var C=s[x],w=!0;switch(C.cmd){case"=":var b=m.getItemLayout(C.idx),_=h.getItemLayout(C.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=_.slice()),e.push(b),o.push(_),l.push(c[C.idx]),u.push(a[C.idx1]),v.push(h.getRawIndex(C.idx1));break;case"+":var O=C.idx;e.push(r.dataToPoint([h.get(A.dataDimsForPoint[0],O),h.get(A.dataDimsForPoint[1],O)])),o.push(h.getItemLayout(O).slice()),l.push(T(A,r,h,O)),u.push(a[O]),v.push(h.getRawIndex(O));break;case"-":var O=C.idx,L=m.getRawIndex(O);L!==O?(e.push(m.getItemLayout(O)),o.push(i.dataToPoint([m.get(y.dataDimsForPoint[0],O),m.get(y.dataDimsForPoint[1],O)])),l.push(c[O]),u.push(T(y,i,m,O)),v.push(L)):w=!1}w&&(f.push(C),p.push(p.length))}p.sort(function(j,B){return v[j]-v[B]});for(var D=[],N=[],M=[],F=[],R=[],x=0;x<p.length;x++){var O=p[x];D[x]=e[O],N[x]=o[O],M[x]=l[O],F[x]=u[O],R[x]=f[O]}return{current:D,next:N,stackedOnCurrent:M,stackedOnNext:F,status:R}}H.exports=S},"8Skl":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="DownOutlined";var h=k.a=E.forwardRef(m)},"8Th4":function(H,k,d){var I=d("3LNs"),E=d("/y7N"),T=d("7bkD"),g=d("Znkb"),S=["x","y"],m=["width","height"],h=I.extend({makeElOption:function(n,t,s,e,o){var l=s.axis,u=l.coordinateSystem,f=r(u,1-a(l)),p=u.dataToPoint(t)[0],v=e.get("type");if(v&&v!=="none"){var A=E.buildElStyle(e),y=c[v](l,p,f);y.style=A,n.graphicKey=y.type,n.pointer=y}var x=T.layout(s);E.buildCartesianSingleLabelElOption(t,n,x,s,e,o)},getHandleTransform:function(n,t,s){var e=T.layout(t,{labelInside:!1});return e.labelMargin=s.get("handle.margin"),{position:E.getTransformedPosition(t.axis,n,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,t,s,e){var o=s.axis,l=o.coordinateSystem,u=a(o),f=r(l,u),p=n.position;p[u]+=t[u],p[u]=Math.min(f[1],p[u]),p[u]=Math.max(f[0],p[u]);var v=r(l,1-u),A=(v[1]+v[0])/2,y=[A,A];return y[u]=p[u],{position:p,rotation:n.rotation,cursorPoint:y,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(n,t,s){var e=E.makeLineShape([t,s[0]],[t,s[1]],a(n));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(n,t,s){var e=n.getBandWidth(),o=s[1]-s[0];return{type:"Rect",shape:E.makeRectShape([t-e/2,s[0]],[e,o],a(n))}}};function a(n){return n.isHorizontal()?0:1}function r(n,t){var s=n.getRect();return[s[S[t]],s[S[t]]+s[m[t]]]}g.registerAxisPointerClass("SingleAxisPointer",h);var i=h;H.exports=i},"8Uz6":function(H,k,d){var I=d("hNWo"),E=d("+TT/"),T=E.mergeLayoutParam,g=E.getLayoutParams,S=I.extend({type:"legend.scroll",setScrollDataIndex:function(c){this.option.scrollDataIndex=c},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(c,a,r,i){var n=g(c);S.superCall(this,"init",c,a,r,i),m(this,c,n)},mergeOption:function(c,a){S.superCall(this,"mergeOption",c,a),m(this,this.option,c)}});function m(c,a,r){var i=c.getOrient(),n=[1,1];n[i.index]=0,T(a,r,{type:"box",ignoreSize:n})}var h=S;H.exports=h},"8X+K":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("4mN7"),S=g.fromPoints,m=d("9wZj"),h=d("FBjb"),c=d("8SMY"),a=d("IwbS"),r=d("4NO4"),i=d("1NG9"),n=i.Polyline,t=i.Polygon,s=d("6Ic6"),e=d("n4Lv"),o=e.prepareDataCoordInfo,l=e.getStackedOnPoint,u=d("sK/D"),f=u.createGridClipPath,p=u.createPolarClipPath;function v(D,N){if(D.length!==N.length)return;for(var M=0;M<D.length;M++){var F=D[M],R=N[M];if(F[0]!==R[0]||F[1]!==R[1])return}return!0}function A(D,N){var M=[],F=[],R=[],j=[];return S(D,M,F),S(N,R,j),Math.max(Math.abs(M[0]-R[0]),Math.abs(M[1]-R[1]),Math.abs(F[0]-j[0]),Math.abs(F[1]-j[1]))}function y(D){return typeof D=="number"?D:D?.5:0}function x(D,N,M){if(!M.valueDim)return[];for(var F=[],R=0,j=N.count();R<j;R++)F.push(l(M,D,N,R));return F}function C(D,N,M){for(var F=N.getBaseAxis(),R=F.dim==="x"||F.dim==="radius"?0:1,j=[],B=0;B<D.length-1;B++){var K=D[B+1],U=D[B];j.push(U);var z=[];switch(M){case"end":z[R]=K[R],z[1-R]=U[1-R],j.push(z);break;case"middle":var V=(U[R]+K[R])/2,Y=[];z[R]=Y[R]=V,z[1-R]=U[1-R],Y[1-R]=K[1-R],j.push(z),j.push(Y);break;default:z[R]=U[R],z[1-R]=K[1-R],j.push(z)}}return D[B]&&j.push(D[B]),j}function w(D,N){var M=D.getVisual("visualMeta");if(!M||!M.length||!D.count())return;if(N.type!=="cartesian2d")return;for(var F,R,j=M.length-1;j>=0;j--){var B=M[j].dimension,K=D.dimensions[B],U=D.getDimensionInfo(K);if(F=U&&U.coordDim,F==="x"||F==="y"){R=M[j];break}}if(!R)return;var z=N.getAxis(F),V=T.map(R.stops,function(Ne){return{coord:z.toGlobalCoord(z.dataToCoord(Ne.value)),color:Ne.color}}),Y=V.length,J=R.outerColors.slice();Y&&V[0].coord>V[Y-1].coord&&(V.reverse(),J.reverse());var se=10,$=V[0].coord-se,ae=V[Y-1].coord+se,ge=ae-$;if(ge<.001)return"transparent";T.each(V,function(Ne){Ne.offset=(Ne.coord-$)/ge}),V.push({offset:Y?V[Y-1].offset:.5,color:J[1]||"transparent"}),V.unshift({offset:Y?V[0].offset:.5,color:J[0]||"transparent"});var pe=new a.LinearGradient(0,0,0,0,V,!0);return pe[F]=$,pe[F+"2"]=ae,pe}function b(D,N,M){var F=D.get("showAllSymbol"),R=F==="auto";if(F&&!R)return;var j=M.getAxesByScale("ordinal")[0];if(!j)return;if(R&&_(j,N))return;var B=N.mapDimension(j.dim),K={};return T.each(j.getViewLabels(),function(U){K[U.tickValue]=1}),function(U){return!K.hasOwnProperty(N.get(B,U))}}function _(D,N){var M=D.getExtent(),F=Math.abs(M[1]-M[0])/D.scale.count();isNaN(F)&&(F=0);for(var R=N.count(),j=Math.max(1,Math.round(R/5)),B=0;B<R;B+=j)if(h.getSymbolSize(N,B)[D.isHorizontal()?1:0]*1.5>F)return!1;return!0}function O(D,N,M){if(D.type==="cartesian2d"){var F=D.getBaseAxis().isHorizontal(),R=f(D,N,M);if(!M.get("clip",!0)){var j=R.shape,B=Math.max(j.width,j.height);F?(j.y-=B,j.height+=B*2):(j.x-=B,j.width+=B*2)}return R}else return p(D,N,M)}var L=s.extend({type:"line",init:function(){var D=new a.Group,N=new m;this.group.add(N.group),this._symbolDraw=N,this._lineGroup=D},render:function(D,N,M){var F=D.coordinateSystem,R=this.group,j=D.getData(),B=D.getModel("lineStyle"),K=D.getModel("areaStyle"),U=j.mapArray(j.getItemLayout),z=F.type==="polar",V=this._coordSys,Y=this._symbolDraw,J=this._polyline,se=this._polygon,$=this._lineGroup,ae=D.get("animation"),ge=!K.isEmpty(),pe=K.get("origin"),Ne=o(F,j,pe),de=x(F,j,Ne),Le=D.get("showSymbol"),Q=Le&&!z&&b(D,j,F),ce=this._data;ce&&ce.eachItemGraphicEl(function(ue,_e){ue.__temp&&(R.remove(ue),ce.setItemGraphicEl(_e,null))}),Le||Y.remove(),R.add($);var Ke=!z&&D.get("step"),ee;F&&F.getArea&&D.get("clip",!0)&&(ee=F.getArea(),ee.width!=null?(ee.x-=.1,ee.y-=.1,ee.width+=.2,ee.height+=.2):ee.r0&&(ee.r0-=.5,ee.r1+=.5)),this._clipShapeForSymbol=ee,J&&V.type===F.type&&Ke===this._step?(ge&&!se?se=this._newPolygon(U,de,F,ae):se&&!ge&&($.remove(se),se=this._polygon=null),$.setClipPath(O(F,!1,D)),Le&&Y.updateData(j,{isIgnore:Q,clipShape:ee}),j.eachItemGraphicEl(function(ue){ue.stopAnimation(!0)}),(!v(this._stackedOnPoints,de)||!v(this._points,U))&&(ae?this._updateAnimation(j,de,F,M,Ke,pe):(Ke&&(U=C(U,F,Ke),de=C(de,F,Ke)),J.setShape({points:U}),se&&se.setShape({points:U,stackedOnPoints:de})))):(Le&&Y.updateData(j,{isIgnore:Q,clipShape:ee}),Ke&&(U=C(U,F,Ke),de=C(de,F,Ke)),J=this._newPolyline(U,F,ae),ge&&(se=this._newPolygon(U,de,F,ae)),$.setClipPath(O(F,!0,D)));var X=w(j,F)||j.getVisual("color");J.useStyle(T.defaults(B.getLineStyle(),{fill:"none",stroke:X,lineJoin:"bevel"}));var G=D.get("smooth");if(G=y(D.get("smooth")),J.setShape({smooth:G,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")}),se){var Z=j.getCalculationInfo("stackedOnSeries"),ve=0;se.useStyle(T.defaults(K.getAreaStyle(),{fill:X,opacity:.7,lineJoin:"bevel"})),Z&&(ve=y(Z.get("smooth"))),se.setShape({smooth:G,stackedOnSmooth:ve,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")})}this._data=j,this._coordSys=F,this._stackedOnPoints=de,this._points=U,this._step=Ke,this._valueOrigin=pe},dispose:function(){},highlight:function(D,N,M,F){var R=D.getData(),j=r.queryDataIndex(R,F);if(!(j instanceof Array)&&j!=null&&j>=0){var B=R.getItemGraphicEl(j);if(!B){var K=R.getItemLayout(j);if(!K)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(K[0],K[1]))return;B=new h(R,j),B.position=K,B.setZ(D.get("zlevel"),D.get("z")),B.ignore=isNaN(K[0])||isNaN(K[1]),B.__temp=!0,R.setItemGraphicEl(j,B),B.stopSymbolAnimation(!0),this.group.add(B)}B.highlight()}else s.prototype.highlight.call(this,D,N,M,F)},downplay:function(D,N,M,F){var R=D.getData(),j=r.queryDataIndex(R,F);if(j!=null&&j>=0){var B=R.getItemGraphicEl(j);B&&(B.__temp?(R.setItemGraphicEl(j,null),this.group.remove(B)):B.downplay())}else s.prototype.downplay.call(this,D,N,M,F)},_newPolyline:function(D){var N=this._polyline;return N&&this._lineGroup.remove(N),N=new n({shape:{points:D},silent:!0,z2:10}),this._lineGroup.add(N),this._polyline=N,N},_newPolygon:function(D,N){var M=this._polygon;return M&&this._lineGroup.remove(M),M=new t({shape:{points:D,stackedOnPoints:N},silent:!0}),this._lineGroup.add(M),this._polygon=M,M},_updateAnimation:function(D,N,M,F,R,j){var B=this._polyline,K=this._polygon,U=D.hostModel,z=c(this._data,D,this._stackedOnPoints,N,this._coordSys,M,this._valueOrigin,j),V=z.current,Y=z.stackedOnCurrent,J=z.next,se=z.stackedOnNext;if(R&&(V=C(z.current,M,R),Y=C(z.stackedOnCurrent,M,R),J=C(z.next,M,R),se=C(z.stackedOnNext,M,R)),A(V,J)>3e3||K&&A(Y,se)>3e3){B.setShape({points:J}),K&&K.setShape({points:J,stackedOnPoints:se});return}B.shape.__points=z.current,B.shape.points=V,a.updateProps(B,{shape:{points:J}},U),K&&(K.setShape({points:V,stackedOnPoints:Y}),a.updateProps(K,{shape:{points:J,stackedOnPoints:se}},U));for(var $=[],ae=z.status,ge=0;ge<ae.length;ge++){var pe=ae[ge].cmd;if(pe==="="){var Ne=D.getItemGraphicEl(ae[ge].idx1);Ne&&$.push({el:Ne,ptIdx:ge})}}B.animators&&B.animators.length&&B.animators[0].during(function(){for(var de=0;de<$.length;de++){var Le=$[de].el;Le.attr("position",B.shape.__points[$[de].ptIdx])}})},remove:function(D){var N=this.group,M=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),M&&M.eachItemGraphicEl(function(F,R){F.__temp&&(N.remove(F),M.setItemGraphicEl(R,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});H.exports=L},"8XDt":function(H,k,d){d("qH13");var I=d("aX58"),E=I.registerPainter,T=d("6fms");E("vml",T)},"8hn6":function(H,k){var d="#eee",I=function(){return{axisLine:{lineStyle:{color:d}},axisTick:{lineStyle:{color:d}},axisLabel:{textStyle:{color:d}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:d}}}},E=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],T={color:E,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:d},crossStyle:{color:d},label:{color:"#000"}}},legend:{textStyle:{color:d}},textStyle:{color:d},title:{textStyle:{color:d}},toolbox:{iconStyle:{normal:{borderColor:d}}},dataZoom:{textStyle:{color:d}},visualMap:{textStyle:{color:d}},timeline:{lineStyle:{color:d},itemStyle:{normal:{color:E[1]}},label:{normal:{textStyle:{color:d}}},controlStyle:{normal:{color:d,borderColor:d}}},timeAxis:I(),logAxis:I(),valueAxis:I(),categoryAxis:I(),line:{symbol:"circle"},graph:{color:E},gauge:{title:{textStyle:{color:d}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};T.categoryAxis.splitLine.show=!1;var g=T;H.exports=g},"8nMs":function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("+rIm"),g=d("Znkb"),S=d("AVZG"),m=d("WN+l"),h=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine","minorSplitLine"],i=g.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(n,t,s,e){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new E.Group,this.group.add(this._axisGroup),!n.get("show"))return;var l=n.getCoordSysModel(),u=S.layout(l,n),f=new T(n,u);I.each(a,f.add,f),this._axisGroup.add(f.getGroup()),I.each(r,function(p){n.get(p+".show")&&this["_"+p](n,l)},this),E.groupTransition(o,this._axisGroup,n),i.superCall(this,"render",n,t,s,e)},remove:function(){c(this)},_splitLine:function(n,t){var s=n.axis;if(s.scale.isBlank())return;var e=n.getModel("splitLine"),o=e.getModel("lineStyle"),l=o.get("color");l=I.isArray(l)?l:[l];for(var u=t.coordinateSystem.getRect(),f=s.isHorizontal(),p=0,v=s.getTicksCoords({tickModel:e}),A=[],y=[],x=o.getLineStyle(),C=0;C<v.length;C++){var w=s.toGlobalCoord(v[C].coord);f?(A[0]=w,A[1]=u.y,y[0]=w,y[1]=u.y+u.height):(A[0]=u.x,A[1]=w,y[0]=u.x+u.width,y[1]=w);var b=p++%l.length,_=v[C].tickValue;this._axisGroup.add(new E.Line({anid:_!=null?"line_"+v[C].tickValue:null,subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:y[0],y2:y[1]},style:I.defaults({stroke:l[b]},x),silent:!0}))}},_minorSplitLine:function(n,t){var s=n.axis,e=n.getModel("minorSplitLine"),o=e.getModel("lineStyle"),l=t.coordinateSystem.getRect(),u=s.isHorizontal(),f=s.getMinorTicksCoords();if(!f.length)return;for(var p=[],v=[],A=o.getLineStyle(),y=0;y<f.length;y++)for(var x=0;x<f[y].length;x++){var C=s.toGlobalCoord(f[y][x].coord);u?(p[0]=C,p[1]=l.y,v[0]=C,v[1]=l.y+l.height):(p[0]=l.x,p[1]=C,v[0]=l.x+l.width,v[1]=C),this._axisGroup.add(new E.Line({anid:"minor_line_"+f[y][x].tickValue,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},style:A,silent:!0}))}},_splitArea:function(n,t){h(this,this._axisGroup,n,t)}});i.extend({type:"xAxis"}),i.extend({type:"yAxis"})},"8nly":function(H,k,d){var I=d("mFDi"),E=d("4mN7"),T=d("QBsz"),g=d("BlVb");function S(h,c,a){if(this.name=h,this.geometries=c,a)a=[a[0],a[1]];else{var r=this.getBoundingRect();a=[r.x+r.width/2,r.y+r.height/2]}this.center=a}S.prototype={constructor:S,properties:null,getBoundingRect:function(){var h=this._rect;if(h)return h;for(var c=Number.MAX_VALUE,a=[c,c],r=[-c,-c],i=[],n=[],t=this.geometries,s=0;s<t.length;s++){if(t[s].type!=="polygon")continue;var e=t[s].exterior;E.fromPoints(e,i,n),T.min(a,a,i),T.max(r,r,n)}return s===0&&(a[0]=a[1]=r[0]=r[1]=0),this._rect=new I(a[0],a[1],r[0]-a[0],r[1]-a[1])},contain:function(h){var c=this.getBoundingRect(),a=this.geometries;if(!c.contain(h[0],h[1]))return!1;e:for(var r=0,i=a.length;r<i;r++){if(a[r].type!=="polygon")continue;var n=a[r].exterior,t=a[r].interiors;if(g.contain(n,h[0],h[1])){for(var s=0;s<(t?t.length:0);s++)if(g.contain(t[s]))continue e;return!0}}return!1},transformTo:function(h,c,a,r){var i=this.getBoundingRect(),n=i.width/i.height;a?r||(r=a/n):a=n*r;for(var t=new I(h,c,a,r),s=i.calculateTransform(t),e=this.geometries,o=0;o<e.length;o++){if(e[o].type!=="polygon")continue;for(var l=e[o].exterior,u=e[o].interiors,f=0;f<l.length;f++)T.applyTransform(l[f],l[f],s);for(var p=0;p<(u?u.length:0);p++)for(var f=0;f<u[p].length;f++)T.applyTransform(u[p][f],u[p][f],s)}i=this._rect,i.copy(t),this.center=[i.x+i.width/2,i.y+i.height/2]},cloneShallow:function(h){h==null&&(h=this.name);var c=new S(h,this.geometries,this.center);return c._rect=this._rect,c.transformTo=null,c}};var m=S;H.exports=m},"8txm":function(H,k,d){},"8waO":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("iLNv"),g=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var S=5;I.extendComponentView({type:"parallel",render:function(c,a,r){this._model=c,this._api=r,this._handlers||(this._handlers={},E.each(m,function(i,n){r.getZr().on(n,this._handlers[n]=E.bind(i,this))},this)),T.createOrUpdate(this,"_throttledDispatchExpand",c.get("axisExpandRate"),"fixRate")},dispose:function(c,a){E.each(this._handlers,function(r,i){a.getZr().off(i,r)}),this._handlers=null},_throttledDispatchExpand:function(c){this._dispatchExpand(c)},_dispatchExpand:function(c){c&&this._api.dispatchAction(E.extend({type:"parallelAxisExpand"},c))}});var m={mousedown:function(c){h(this,"click")&&(this._mouseDownPoint=[c.offsetX,c.offsetY])},mouseup:function(c){var a=this._mouseDownPoint;if(h(this,"click")&&a){var r=[c.offsetX,c.offsetY],i=Math.pow(a[0]-r[0],2)+Math.pow(a[1]-r[1],2);if(i>S)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(c){if(this._mouseDownPoint||!h(this,"mousemove"))return;var a=this._model,r=a.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]),i=r.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(a.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:i==="jump"?null:!1})}};function h(c,a){var r=c._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===a}I.registerPreprocessor(g)},"8x+h":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("K4ya"),m=d("Qxkt"),h=["#ddd"],c=T.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(i,n){var t=this.option;!n&&S.replaceVisualOption(t,i,["inBrush","outOfBrush"]);var s=t.inBrush=t.inBrush||{};t.outOfBrush=t.outOfBrush||{color:h},s.hasOwnProperty("liftZ")||(s.liftZ=5)},setAreas:function(i){if(!i)return;this.areas=g.map(i,function(n){return a(this.option,n)},this)},setBrushOption:function(i){this.brushOption=a(this.option,i),this.brushType=this.brushOption.brushType}});function a(i,n){return g.merge({brushType:i.brushType,brushMode:i.brushMode,transformable:i.transformable,brushStyle:new m(i.brushStyle).getItemStyle(),removeOnClick:i.removeOnClick,z:i.z},n,!0)}var r=c;H.exports=r},"8z0m":function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("RIqP"),g=d.n(T),S=d("pVnL"),m=d.n(S),h=d("J4zp"),c=d.n(h),a=d("q1tI"),r=d.n(a),i=d("TSYQ"),n=d.n(i);function t(ar,nr){var Lt="cannot "+ar.method+" "+ar.action+" "+nr.status+"'",st=new Error(Lt);return st.status=nr.status,st.method=ar.method,st.url=ar.action,st}function s(ar){var nr=ar.responseText||ar.response;if(!nr)return nr;try{return JSON.parse(nr)}catch(Lt){return nr}}function e(ar){var nr=new XMLHttpRequest;ar.onProgress&&nr.upload&&(nr.upload.onprogress=function(qt){qt.total>0&&(qt.percent=qt.loaded/qt.total*100),ar.onProgress(qt)});var Lt=new FormData;ar.data&&Object.keys(ar.data).forEach(function(Qe){var qt=ar.data[Qe];if(Array.isArray(qt)){qt.forEach(function(Sr){Lt.append(Qe+"[]",Sr)});return}Lt.append(Qe,ar.data[Qe])}),ar.file instanceof Blob?Lt.append(ar.filename,ar.file,ar.file.name):Lt.append(ar.filename,ar.file),nr.onerror=function(qt){ar.onError(qt)},nr.onload=function(){return nr.status<200||nr.status>=300?ar.onError(t(ar,nr),s(nr)):ar.onSuccess(s(nr),nr)},nr.open(ar.method,ar.action,!0),ar.withCredentials&&"withCredentials"in nr&&(nr.withCredentials=!0);var st=ar.headers||{};return st["X-Requested-With"]!==null&&nr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(st).forEach(function(Qe){st[Qe]!==null&&nr.setRequestHeader(Qe,st[Qe])}),nr.send(Lt),{abort:function(){nr.abort()}}}var o=+new Date,l=0;function u(){return"rc-upload-"+o+"-"+ ++l}function f(ar,nr){return ar.indexOf(nr,ar.length-nr.length)!==-1}var p=function(ar,nr){if(ar&&nr){var Lt=Array.isArray(nr)?nr:nr.split(","),st=ar.name||"",Qe=ar.type||"",qt=Qe.replace(/\/.*$/,"");return Lt.some(function(Sr){var Ar=Sr.trim();return Ar.charAt(0)==="."?f(st.toLowerCase(),Ar.toLowerCase()):/\/\*$/.test(Ar)?qt===Ar.replace(/\/.*$/,""):Qe===Ar})}return!0};function v(ar,nr){var Lt=ar.createReader(),st=[];function Qe(){Lt.readEntries(function(qt){var Sr=Array.prototype.slice.apply(qt);st=st.concat(Sr);var Ar=!Sr.length;Ar?nr(st):Qe()})}Qe()}var A=function(nr,Lt,st){var Qe=function qt(Sr,Ar){Ar=Ar||"",Sr.isFile?Sr.file(function(hr){st(hr)&&(Sr.fullPath&&!hr.webkitRelativePath&&(Object.defineProperties(hr,{webkitRelativePath:{writable:!0}}),hr.webkitRelativePath=Sr.fullPath.replace(/^\//,""),Object.defineProperties(hr,{webkitRelativePath:{writable:!1}})),Lt([hr]))}):Sr.isDirectory&&v(Sr,function(hr){hr.forEach(function(vn){qt(vn,""+Ar+Sr.name+"/")})})};nr.forEach(function(qt){Qe(qt.webkitGetAsEntry())})},y=A,x=Object.assign||function(ar){for(var nr=1;nr<arguments.length;nr++){var Lt=arguments[nr];for(var st in Lt)Object.prototype.hasOwnProperty.call(Lt,st)&&(ar[st]=Lt[st])}return ar},C=function(){function ar(nr,Lt){var st=[],Qe=!0,qt=!1,Sr=void 0;try{for(var Ar=nr[Symbol.iterator](),hr;!(Qe=(hr=Ar.next()).done)&&!(st.push(hr.value),Lt&&st.length===Lt);Qe=!0);}catch(vn){qt=!0,Sr=vn}finally{try{!Qe&&Ar.return&&Ar.return()}finally{if(qt)throw Sr}}return st}return function(nr,Lt){if(Array.isArray(nr))return nr;if(Symbol.iterator in Object(nr))return ar(nr,Lt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function ar(nr,Lt){for(var st=0;st<Lt.length;st++){var Qe=Lt[st];Qe.enumerable=Qe.enumerable||!1,Qe.configurable=!0,"value"in Qe&&(Qe.writable=!0),Object.defineProperty(nr,Qe.key,Qe)}}return function(nr,Lt,st){return Lt&&ar(nr.prototype,Lt),st&&ar(nr,st),nr}}();function b(ar,nr,Lt){return nr in ar?Object.defineProperty(ar,nr,{value:Lt,enumerable:!0,configurable:!0,writable:!0}):ar[nr]=Lt,ar}function _(ar,nr){var Lt={};for(var st in ar){if(nr.indexOf(st)>=0)continue;if(!Object.prototype.hasOwnProperty.call(ar,st))continue;Lt[st]=ar[st]}return Lt}function O(ar,nr){if(!(ar instanceof nr))throw new TypeError("Cannot call a class as a function")}function L(ar,nr){if(!ar)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nr&&(typeof nr=="object"||typeof nr=="function")?nr:ar}function D(ar,nr){if(typeof nr!="function"&&nr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nr);ar.prototype=Object.create(nr&&nr.prototype,{constructor:{value:ar,enumerable:!1,writable:!0,configurable:!0}}),nr&&(Object.setPrototypeOf?Object.setPrototypeOf(ar,nr):ar.__proto__=nr)}var N=function(nr){return Object.keys(nr).reduce(function(Lt,st){return(st.substr(0,5)==="data-"||st.substr(0,5)==="aria-"||st==="role")&&(Lt[st]=nr[st]),Lt},{})},M=function(ar){D(nr,ar);function nr(){var Lt,st,Qe,qt;O(this,nr);for(var Sr=arguments.length,Ar=Array(Sr),hr=0;hr<Sr;hr++)Ar[hr]=arguments[hr];return qt=(st=(Qe=L(this,(Lt=nr.__proto__||Object.getPrototypeOf(nr)).call.apply(Lt,[this].concat(Ar))),Qe),Qe.state={uid:u()},Qe.reqs={},Qe.onChange=function(vn){var Zr=vn.target.files;Qe.uploadFiles(Zr),Qe.reset()},Qe.onClick=function(vn){var Zr=Qe.fileInput;if(!Zr)return;var Ln=Qe.props,$e=Ln.children,tt=Ln.onClick;$e&&$e.type==="button"&&(Zr.parentNode.focus(),Zr.parentNode.querySelector("button").blur()),Zr.click(),tt&&tt(vn)},Qe.onKeyDown=function(vn){vn.key==="Enter"&&Qe.onClick()},Qe.onFileDrop=function(vn){var Zr=Qe.props.multiple;if(vn.preventDefault(),vn.type==="dragover")return;if(Qe.props.directory)y(Array.prototype.slice.call(vn.dataTransfer.items),Qe.uploadFiles,function($e){return p($e,Qe.props.accept)});else{var Ln=Array.prototype.slice.call(vn.dataTransfer.files).filter(function($e){return p($e,Qe.props.accept)});Zr===!1&&(Ln=Ln.slice(0,1)),Qe.uploadFiles(Ln)}},Qe.uploadFiles=function(vn){var Zr=Array.prototype.slice.call(vn);Zr.map(function(Ln){return Ln.uid=u(),Ln}).forEach(function(Ln){Qe.upload(Ln,Zr)})},Qe.saveFileInput=function(vn){Qe.fileInput=vn},st),L(Qe,qt)}return w(nr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(st,Qe){var qt=this,Sr=this.props;if(!Sr.beforeUpload)return setTimeout(function(){return qt.post(st)},0);var Ar=Sr.beforeUpload(st,Qe);Ar&&Ar.then?Ar.then(function(hr){var vn=Object.prototype.toString.call(hr);return vn==="[object File]"||vn==="[object Blob]"?qt.post(hr):qt.post(st)}).catch(function(hr){console.log(hr)}):Ar!==!1&&setTimeout(function(){return qt.post(st)},0);return}},{key:"post",value:function(st){var Qe=this;if(!this._isMounted)return;var qt=this.props,Sr=qt.onStart,Ar=qt.onProgress,hr=qt.transformFile,vn=hr===void 0?function(Zr){return Zr}:hr;new Promise(function(Zr){var Ln=qt.action;return typeof Ln=="function"&&(Ln=Ln(st)),Zr(Ln)}).then(function(Zr){var Ln=st.uid,$e=qt.customRequest||e,tt=Promise.resolve(vn(st)).then(function(Ee){var Re=qt.data;return typeof Re=="function"&&(Re=Re(Ee)),Promise.all([Ee,Re])}).catch(function(Ee){console.error(Ee)});tt.then(function(Ee){var Re=C(Ee,2),je=Re[0],nt=Re[1],Vt={action:Zr,filename:qt.name,data:nt,file:je,headers:qt.headers,withCredentials:qt.withCredentials,method:qt.method||"post",onProgress:Ar?function(Bt){Ar(Bt,st)}:null,onSuccess:function(Xt,Rr){delete Qe.reqs[Ln],qt.onSuccess(Xt,st,Rr)},onError:function(Xt,Rr){delete Qe.reqs[Ln],qt.onError(Xt,Rr,st)}};Sr(st),Qe.reqs[Ln]=$e(Vt)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(st){var Qe=this.reqs;if(st){var qt=st;st&&st.uid&&(qt=st.uid),Qe[qt]&&Qe[qt].abort&&Qe[qt].abort(),delete Qe[qt]}else Object.keys(Qe).forEach(function(Sr){Qe[Sr]&&Qe[Sr].abort&&Qe[Sr].abort(),delete Qe[Sr]})}},{key:"render",value:function(){var st,Qe=this.props,qt=Qe.component,Sr=Qe.prefixCls,Ar=Qe.className,hr=Qe.disabled,vn=Qe.id,Zr=Qe.style,Ln=Qe.multiple,$e=Qe.accept,tt=Qe.children,Ee=Qe.directory,Re=Qe.openFileDialogOnClick,je=Qe.onMouseEnter,nt=Qe.onMouseLeave,Vt=_(Qe,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Bt=n()((st={},b(st,Sr,!0),b(st,Sr+"-disabled",hr),b(st,Ar,Ar),st)),Xt=hr?{}:{onClick:Re?this.onClick:function(){},onKeyDown:Re?this.onKeyDown:function(){},onMouseEnter:je,onMouseLeave:nt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(qt,x({},Xt,{className:Bt,role:"button",style:Zr}),r.a.createElement("input",x({},N(Vt),{id:vn,type:"file",ref:this.saveFileInput,onClick:function(Br){return Br.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:$e,directory:Ee?"directory":null,webkitdirectory:Ee?"webkitdirectory":null,multiple:Ln,onChange:this.onChange})),tt)}}]),nr}(a.Component),F=M,R=Object.assign||function(ar){for(var nr=1;nr<arguments.length;nr++){var Lt=arguments[nr];for(var st in Lt)Object.prototype.hasOwnProperty.call(Lt,st)&&(ar[st]=Lt[st])}return ar},j=function(){function ar(nr,Lt){for(var st=0;st<Lt.length;st++){var Qe=Lt[st];Qe.enumerable=Qe.enumerable||!1,Qe.configurable=!0,"value"in Qe&&(Qe.writable=!0),Object.defineProperty(nr,Qe.key,Qe)}}return function(nr,Lt,st){return Lt&&ar(nr.prototype,Lt),st&&ar(nr,st),nr}}();function B(ar,nr){if(!(ar instanceof nr))throw new TypeError("Cannot call a class as a function")}function K(ar,nr){if(!ar)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nr&&(typeof nr=="object"||typeof nr=="function")?nr:ar}function U(ar,nr){if(typeof nr!="function"&&nr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nr);ar.prototype=Object.create(nr&&nr.prototype,{constructor:{value:ar,enumerable:!1,writable:!0,configurable:!0}}),nr&&(Object.setPrototypeOf?Object.setPrototypeOf(ar,nr):ar.__proto__=nr)}function z(){}var V=function(ar){U(nr,ar);function nr(){var Lt,st,Qe,qt;B(this,nr);for(var Sr=arguments.length,Ar=Array(Sr),hr=0;hr<Sr;hr++)Ar[hr]=arguments[hr];return qt=(st=(Qe=K(this,(Lt=nr.__proto__||Object.getPrototypeOf(nr)).call.apply(Lt,[this].concat(Ar))),Qe),Qe.saveUploader=function(vn){Qe.uploader=vn},st),K(Qe,qt)}return j(nr,[{key:"abort",value:function(st){this.uploader.abort(st)}},{key:"render",value:function(){return r.a.createElement(F,R({},this.props,{ref:this.saveUploader}))}}]),nr}(a.Component);V.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:z,onError:z,onSuccess:z,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Y=V,J=Y,se=function(ar,nr){var Lt={};for(var st in ar)Object.prototype.hasOwnProperty.call(ar,st)&&nr.indexOf(st)<0&&(Lt[st]=ar[st]);if(ar!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,st=Object.getOwnPropertySymbols(ar);Qe<st.length;Qe++)nr.indexOf(st[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ar,st[Qe])&&(Lt[st[Qe]]=ar[st[Qe]]);return Lt},$=function(nr,Lt){var st=nr.style,Qe=nr.height,qt=se(nr,["style","height"]);return a.createElement(sr,m()({ref:Lt},qt,{type:"drag",style:m()(m()({},st),{height:Qe})}))},ae=a.forwardRef($);ae.displayName="Dragger";var ge=ae,pe=d("MFj2"),Ne=d("gZBC"),de=d.n(Ne),Le=d("+d4F"),Q=d.n(Le),ce=d("XAae"),Ke=d.n(ce),ee=d("6xvX"),X=d.n(ee),G=d("qPY4"),Z=d.n(G),ve=d("QB+1"),ue=d.n(ve),_e=d("Qs3X"),xe=d.n(_e),oe=d("0n0R");function fe(){return!0}function Te(ar){return m()(m()({},ar),{lastModified:ar.lastModified,lastModifiedDate:ar.lastModifiedDate,name:ar.name,size:ar.size,type:ar.type,uid:ar.uid,percent:0,originFileObj:ar})}function ze(ar,nr){var Lt=ar.uid!==void 0?"uid":"name";return nr.filter(function(st){return st[Lt]===ar[Lt]})[0]}function it(ar,nr){var Lt=ar.uid!==void 0?"uid":"name",st=nr.filter(function(Qe){return Qe[Lt]!==ar[Lt]});return st.length===nr.length?null:st}var et=function(){var nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Lt=nr.split("/"),st=Lt[Lt.length-1],Qe=st.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Qe)||[""])[0]},Oe=function(nr){return nr.indexOf("image/")===0},gt=function(nr){if(nr.type&&!nr.thumbUrl)return Oe(nr.type);var Lt=nr.thumbUrl||nr.url,st=et(Lt);return/^data:image\//.test(Lt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(st)?!0:/^data:/.test(Lt)?!1:!st},Ge=200;function wt(ar){return new Promise(function(nr){if(!ar.type||!Oe(ar.type)){nr("");return}var Lt=document.createElement("canvas");Lt.width=Ge,Lt.height=Ge,Lt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Ge,"px; height: ").concat(Ge,"px; z-index: 9999; display: none;"),document.body.appendChild(Lt);var st=Lt.getContext("2d"),Qe=new Image;Qe.onload=function(){var qt=Qe.width,Sr=Qe.height,Ar=Ge,hr=Ge,vn=0,Zr=0;qt<Sr?(hr=Sr*(Ge/qt),Zr=-(hr-Ar)/2):(Ar=qt*(Ge/Sr),vn=-(Ar-hr)/2),st.drawImage(Qe,vn,Zr,Ar,hr);var Ln=Lt.toDataURL();document.body.removeChild(Lt),nr(Ln)},Qe.src=window.URL.createObjectURL(ar)})}var xt=d("3S7+"),Ct=d("CFYs"),Dt=d("H84U"),Ht=d("2/Rp"),Je=d("hkKa"),ye=function(nr,Lt){var st,Qe=nr.listType,qt=nr.previewFile,Sr=nr.onPreview,Ar=nr.onDownload,hr=nr.onRemove,vn=nr.locale,Zr=nr.iconRender,Ln=nr.isImageUrl,$e=nr.prefixCls,tt=nr.items,Ee=tt===void 0?[]:tt,Re=nr.showPreviewIcon,je=nr.showRemoveIcon,nt=nr.showDownloadIcon,Vt=nr.removeIcon,Bt=nr.downloadIcon,Xt=nr.progress,Rr=Object(Je.a)();a.useEffect(function(){if(Qe!=="picture"&&Qe!=="picture-card")return;(Ee||[]).forEach(function(or){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(or.originFileObj instanceof File||or.originFileObj instanceof Blob)||or.thumbUrl!==void 0)return;or.thumbUrl="",qt&&qt(or.originFileObj).then(function(ur){or.thumbUrl=ur||"",Rr()})})},[Qe,Ee,qt]);var Br=function(ur,Yr){return Sr?(Yr.preventDefault(),Sr(ur)):void 0},cn=function(ur){typeof Ar=="function"?Ar(ur):ur.url&&window.open(ur.url)},Ut=function(ur){hr&&hr(ur)},pt=function(ur){if(Zr)return Zr(ur,Qe);var Yr=ur.status==="uploading",Jr=Ln&&Ln(ur)?a.createElement(Ke.a,null):a.createElement(X.a,null),Tn=Yr?a.createElement(de.a,null):a.createElement(Q.a,null);return Qe==="picture"?Tn=Yr?a.createElement(de.a,null):Jr:Qe==="picture-card"&&(Tn=Yr?vn.uploading:Jr),Tn},ut=function(ur,Yr,Jr,Tn){var Dn={type:"text",size:"small",title:Tn,onClick:function(Ai){Yr(),Object(oe.b)(ur)&&ur.props.onClick&&ur.props.onClick(Ai)},className:"".concat(Jr,"-list-item-card-actions-btn")};if(Object(oe.b)(ur)){var zn=Object(oe.a)(ur,m()(m()({},ur.props),{onClick:function(){}}));return a.createElement(Ht.a,m()({},Dn,{icon:zn}))}return a.createElement(Ht.a,Dn,a.createElement("span",null,ur))};a.useImperativeHandle(Lt,function(){return{handlePreview:Br,handleDownload:cn}});var Jt=a.useContext(Dt.b),Zt=Jt.getPrefixCls,At=Jt.direction,Pt=Zt("upload",$e),vt=Ee.map(function(or){var ur,Yr,Jr,Tn=pt(or),Dn=a.createElement("div",{className:"".concat(Pt,"-text-icon")},Tn);if(Qe==="picture"||Qe==="picture-card")if(or.status==="uploading"||!or.thumbUrl&&!or.url){var zn,qn=n()((zn={},E()(zn,"".concat(Pt,"-list-item-thumbnail"),!0),E()(zn,"".concat(Pt,"-list-item-file"),or.status!=="uploading"),zn));Dn=a.createElement("div",{className:qn},Tn)}else{var Ai,Mi=Ln&&Ln(or)?a.createElement("img",{src:or.thumbUrl||or.url,alt:or.name,className:"".concat(Pt,"-list-item-image")}):Tn,Ye=n()((Ai={},E()(Ai,"".concat(Pt,"-list-item-thumbnail"),!0),E()(Ai,"".concat(Pt,"-list-item-file"),Ln&&!Ln(or)),Ai));Dn=a.createElement("a",{className:Ye,onClick:function(kr){return Br(or,kr)},href:or.url||or.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mi)}if(or.status==="uploading"){var Ce="percent"in or?a.createElement(Ct.a,m()({},Xt,{type:"line",percent:or.percent})):null;Jr=a.createElement("div",{className:"".concat(Pt,"-list-item-progress"),key:"progress"},Ce)}var ke=n()((ur={},E()(ur,"".concat(Pt,"-list-item"),!0),E()(ur,"".concat(Pt,"-list-item-").concat(or.status),!0),E()(ur,"".concat(Pt,"-list-item-list-type-").concat(Qe),!0),ur)),Fe=typeof or.linkProps=="string"?JSON.parse(or.linkProps):or.linkProps,Ve=je?ut(Vt||a.createElement(ue.a,null),function(){return Ut(or)},Pt,vn.removeFile):null,We=nt&&or.status==="done"?ut(Bt||a.createElement(xe.a,null),function(){return cn(or)},Pt,vn.downloadFile):null,Ze=Qe!=="picture-card"&&a.createElement("span",{key:"download-delete",className:"".concat(Pt,"-list-item-card-actions ").concat(Qe==="picture"?"picture":"")},We,Ve),yt=n()((Yr={},E()(Yr,"".concat(Pt,"-list-item-name"),!0),E()(Yr,"".concat(Pt,"-list-item-name-icon-count-").concat([We,Ve].filter(function(Gr){return Gr}).length),!0),Yr)),lt=or.url?[a.createElement("a",m()({key:"view",target:"_blank",rel:"noopener noreferrer",className:yt,title:or.name},Fe,{href:or.url,onClick:function(kr){return Br(or,kr)}}),or.name),Ze]:[a.createElement("span",{key:"view",className:yt,onClick:function(kr){return Br(or,kr)},title:or.name},or.name),Ze],kt={pointerEvents:"none",opacity:.5},wr=Re?a.createElement("a",{href:or.url||or.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:or.url||or.thumbUrl?void 0:kt,onClick:function(kr){return Br(or,kr)},title:vn.previewFile},a.createElement(Z.a,null)):null,pr=Qe==="picture-card"&&or.status!=="uploading"&&a.createElement("span",{className:"".concat(Pt,"-list-item-actions")},wr,or.status==="done"&&We,Ve),_r;or.response&&typeof or.response=="string"?_r=or.response:_r=or.error&&or.error.statusText||vn.uploadError;var Wt=a.createElement("span",null,Dn,lt),un=a.createElement("div",{className:ke},a.createElement("div",{className:"".concat(Pt,"-list-item-info")},Wt),pr,a.createElement(pe.a,{transitionName:"fade",component:""},Jr)),ir=n()(E()({},"".concat(Pt,"-list-picture-card-container"),Qe==="picture-card"));return a.createElement("div",{key:or.uid,className:ir},or.status==="error"?a.createElement(xt.a,{title:_r,getPopupContainer:function(kr){return kr.parentNode}},un):a.createElement("span",null,un))}),Ft=n()((st={},E()(st,"".concat(Pt,"-list"),!0),E()(st,"".concat(Pt,"-list-").concat(Qe),!0),E()(st,"".concat(Pt,"-list-rtl"),At==="rtl"),st)),gr=Qe==="picture-card"?"animate-inline":"animate";return a.createElement(pe.a,{transitionName:"".concat(Pt,"-").concat(gr),component:"div",className:Ft},vt)},ie=a.forwardRef(ye);ie.displayName="UploadList",ie.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:wt,isImageUrl:gt};var bt=ie,qe=d("YMnH"),me=d("ZvpZ"),Rt=d("uaoM"),er=d("sPtV"),ct=function(nr,Lt){var st,Qe=nr.fileList,qt=nr.defaultFileList,Sr=nr.onRemove,Ar=nr.showUploadList,hr=nr.listType,vn=nr.onPreview,Zr=nr.onDownload,Ln=nr.previewFile,$e=nr.disabled,tt=nr.locale,Ee=nr.iconRender,Re=nr.isImageUrl,je=nr.progress,nt=nr.prefixCls,Vt=nr.className,Bt=nr.type,Xt=nr.children,Rr=nr.style,Br=Object(er.a)(Qe||qt||[]),cn=c()(Br,2),Ut=cn[0],pt=cn[1],ut=a.useState("drop"),Jt=c()(ut,2),Zt=Jt[0],At=Jt[1],Pt=a.useRef();a.useEffect(function(){pt(Qe||qt||[]),Object(Rt.a)("fileList"in nr||!("value"in nr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),a.useEffect(function(){"fileList"in nr&&pt(Qe||[])},[Qe]);var vt=function(lt){"fileList"in nr||pt(lt.fileList);var kt=nr.onChange;kt&&kt(m()(m()({},lt),{fileList:g()(lt.fileList)}))},Ft=function(lt){var kt=Te(lt);kt.status="uploading";var wr=Ut().concat(),pr=wr.findIndex(function(_r){var Wt=_r.uid;return Wt===kt.uid});pr===-1?wr.push(kt):wr[pr]=kt,vt({file:kt,fileList:wr})},gr=function(lt,kt,wr){try{typeof lt=="string"&&(lt=JSON.parse(lt))}catch(_r){}var pr=ze(kt,Ut());if(!pr)return;pr.status="done",pr.response=lt,pr.xhr=wr,vt({file:m()({},pr),fileList:Ut().concat()})},or=function(lt,kt){var wr=ze(kt,Ut());if(!wr)return;wr.percent=lt.percent,vt({event:lt,file:m()({},wr),fileList:Ut().concat()})},ur=function(lt,kt,wr){var pr=ze(wr,Ut());if(!pr)return;pr.error=lt,pr.response=kt,pr.status="error",vt({file:m()({},pr),fileList:Ut().concat()})},Yr=function(lt){Promise.resolve(typeof Sr=="function"?Sr(lt):Sr).then(function(kt){if(kt===!1)return;var wr=it(lt,Ut());wr&&(lt.status="removed",Pt.current&&Pt.current.abort(lt),vt({file:lt,fileList:wr}))})},Jr=function(lt){At(lt.type)},Tn=function(lt,kt){var wr=nr.beforeUpload;if(!wr)return!0;var pr=wr(lt,kt);if(pr===!1){var _r=[];return Ut().concat(kt.map(Te)).forEach(function(Wt){_r.every(function(un){return un.uid!==Wt.uid})&&_r.push(Wt)}),vt({file:lt,fileList:_r}),!1}return pr&&pr.then?pr:!0},Dn=Object(Je.a)();a.useImperativeHandle(Lt,function(){return{onStart:Ft,onSuccess:gr,onProgress:or,onError:ur,fileList:Ut(),upload:Pt.current,forceUpdate:Dn}});var zn=function(lt){var kt=Ar.showRemoveIcon,wr=Ar.showPreviewIcon,pr=Ar.showDownloadIcon,_r=Ar.removeIcon,Wt=Ar.downloadIcon;return a.createElement(bt,{listType:hr,items:Ut(),previewFile:Ln,onPreview:vn,onDownload:Zr,onRemove:Yr,showRemoveIcon:!$e&&kt,showPreviewIcon:wr,showDownloadIcon:pr,removeIcon:_r,downloadIcon:Wt,iconRender:Ee,locale:m()(m()({},lt),tt),isImageUrl:Re,progress:je})},qn=a.useContext(Dt.b),Ai=qn.getPrefixCls,Mi=qn.direction,Ye=Ai("upload",nt),Ce=m()(m()({onStart:Ft,onError:ur,onProgress:or,onSuccess:gr},nr),{prefixCls:Ye,beforeUpload:Tn});delete Ce.className,delete Ce.style,(!Xt||$e)&&delete Ce.id;var ke=Ar?a.createElement(qe.a,{componentName:"Upload",defaultLocale:me.a.Upload},zn):null;if(Bt==="drag"){var Fe,Ve=n()(Ye,(Fe={},E()(Fe,"".concat(Ye,"-drag"),!0),E()(Fe,"".concat(Ye,"-drag-uploading"),Ut().some(function(yt){return yt.status==="uploading"})),E()(Fe,"".concat(Ye,"-drag-hover"),Zt==="dragover"),E()(Fe,"".concat(Ye,"-disabled"),$e),E()(Fe,"".concat(Ye,"-rtl"),Mi==="rtl"),Fe),Vt);return a.createElement("span",null,a.createElement("div",{className:Ve,onDrop:Jr,onDragOver:Jr,onDragLeave:Jr,style:Rr},a.createElement(J,m()({},Ce,{ref:Pt,className:"".concat(Ye,"-btn")}),a.createElement("div",{className:"".concat(Ye,"-drag-container")},Xt))),ke)}var We=n()(Ye,(st={},E()(st,"".concat(Ye,"-select"),!0),E()(st,"".concat(Ye,"-select-").concat(hr),!0),E()(st,"".concat(Ye,"-disabled"),$e),E()(st,"".concat(Ye,"-rtl"),Mi==="rtl"),st)),Ze=a.createElement("div",{className:We,style:Xt?void 0:{display:"none"}},a.createElement(J,m()({},Ce,{ref:Pt})));return hr==="picture-card"?a.createElement("span",{className:n()(Vt,"".concat(Ye,"-picture-card-wrapper"))},ke,Ze):a.createElement("span",{className:Vt},Ze,ke)},zt=a.forwardRef(ct);zt.Dragger=ge,zt.displayName="Upload",zt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:fe,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var sr=zt;sr.Dragger=ge;var Kr=k.a=sr},"98bh":function(H,k,d){var I=d("ProS"),E=d("5GtS"),T=d("bYtY"),g=d("4NO4"),S=d("OELB"),m=S.getPercentWithPrecision,h=d("cCMj"),c=d("KxfA"),a=c.retrieveRawAttr,r=d("D5nY"),i=r.makeSeriesEncodeForNameBased,n=d("xKMd"),t=I.extendSeriesModel({type:"series.pie",init:function(e){t.superApply(this,"init",arguments),this.legendVisualProvider=new n(T.bind(this.getData,this),T.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){t.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,o){return E(this,{coordDimensions:["value"],encodeDefaulter:T.curry(i,this)})},_createSelectableList:function(){for(var e=this.getRawData(),o=e.mapDimension("value"),l=[],u=0,f=e.count();u<f;u++)l.push({name:e.getName(u),value:e.get(o,u),selected:a(e,u,"selected")});return l},getDataParams:function(e){var o=this.getData(),l=t.superCall(this,"getDataParams",e),u=[];return o.each(o.mapDimension("value"),function(f){u.push(f)}),l.percent=m(u,e,o.hostModel.get("percentPrecision")),l.$vars.push("percent"),l},_defaultLabelLine:function(e){g.defaultEmphasis(e,"labelLine",["show"]);var o=e.labelLine,l=e.emphasis.labelLine;o.show=o.show&&e.label.show,l.show=l.show&&e.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"}});T.mixin(t,h);var s=t;H.exports=s},"9H2F":function(H,k,d){var I=d("bYtY"),E=I.assert,T=I.isArray,g=d("Tghj"),S=g.__DEV__;function m(n){return new h(n)}function h(n){n=n||{},this._reset=n.reset,this._plan=n.plan,this._count=n.count,this._onDirty=n.onDirty,this._dirty=!0,this.context}var c=h.prototype;c.perform=function(n){var t=this._upstream,s=n&&n.skip;if(this._dirty&&t){var e=this.context;e.data=e.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!s&&(o=this._plan(this.context));var l=v(this._modBy),u=this._modDataCount||0,f=v(n&&n.modBy),p=n&&n.modDataCount||0;(l!==f||u!==p)&&(o="reset");function v(O){return!(O>=1)&&(O=1),O}var A;(this._dirty||o==="reset")&&(this._dirty=!1,A=i(this,s)),this._modBy=f,this._modDataCount=p;var y=n&&n.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var x=this._dueIndex,C=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!s&&(A||x<C)){var w=this._progress;if(T(w))for(var b=0;b<w.length;b++)r(this,w[b],x,C,f,p);else r(this,w,x,C,f,p)}this._dueIndex=C;var _=this._settedOutputEnd!=null?this._settedOutputEnd:C;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var a=function(){var n,t,s,e,o,l={reset:function(p,v,A,y){t=p,n=v,s=A,e=y,o=Math.ceil(e/s),l.next=s>1&&e>0?f:u}};return l;function u(){return t<n?t++:null}function f(){var p=t%o*s+Math.ceil(t/o),v=t>=n?null:p<e?p:t;return t++,v}}();c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function r(n,t,s,e,o,l){a.reset(s,e,o,l),n._callingProgress=t,n._callingProgress({start:s,end:e,count:e-s,next:a.next},n.context)}function i(n,t){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var s,e;!t&&n._reset&&(s=n._reset(n.context),s&&s.progress&&(e=s.forceFirstProgress,s=s.progress),T(s)&&!s.length&&(s=null)),n._progress=s,n._modBy=n._modDataCount=null;var o=n._downstream;return o&&o.dirty(),e}c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(n){(this._downstream!==n||this._dirty)&&(this._downstream=n,n._upstream=this,n.dirty())},c.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(n){this._outputDueEnd=this._settedOutputEnd=n},k.createTask=m},"9KIM":function(H,k,d){var I=d("mFDi"),E=d("xSat"),T=E.onIrrelevantElement,g=d("IwbS");function S(a){return a=c(a),function(r,i){return g.clipPointsByRect(r,a)}}function m(a,r){return a=c(a),function(i){var n=r!=null?r:i,t=n?a.width:a.height,s=n?a.x:a.y;return[s,s+(t||0)]}}function h(a,r,i){return a=c(a),function(n,t,s){return a.contain(t[0],t[1])&&!T(n,r,i)}}function c(a){return I.create(a)}k.makeRectPanelClipPath=S,k.makeLinearBrushOtherExtent=m,k.makeRectIsTargetByCursor=h},"9OqN":function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.mode.CTR=function(){var E=I.lib.BlockCipherMode.extend(),T=E.Encryptor=E.extend({processBlock:function(S,m){var h=this._cipher,c=h.blockSize,a=this._iv,r=this._counter;a&&(r=this._counter=a.slice(0),this._iv=void 0);var i=r.slice(0);h.encryptBlock(i,0),r[c-1]=r[c-1]+1|0;for(var n=0;n<c;n++)S[m+n]^=i[n]}});return E.Decryptor=T,E}(),I.mode.CTR})},"9ama":function(H,k,d){},"9eas":function(H,k,d){d("HM/N"),d("tBnm")},"9hCq":function(H,k,d){var I=d("IwbS"),E=d("+TT/"),T=d("bYtY"),g=d("VaxA"),S=g.wrapTreePathInfo,m=8,h=8,c=5;function a(t){this.group=new I.Group,t.add(this.group)}a.prototype={constructor:a,render:function(t,s,e,o){var l=t.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!l.get("show")||!e)return;var f=l.getModel("itemStyle"),p=f.getModel("textStyle"),v={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:s.getWidth(),height:s.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(e,v,p),this._renderContent(t,v,f,p,o),E.positionElement(u,v.pos,v.box)},_prepare:function(t,s,e){for(var o=t;o;o=o.parentNode){var l=o.getModel().get("name"),u=e.getTextRect(l),f=Math.max(u.width+m*2,s.emptyItemWidth);s.totalWidth+=f+h,s.renderList.push({node:o,text:l,width:f})}},_renderContent:function(t,s,e,o,l){for(var u=0,f=s.emptyItemWidth,p=t.get("breadcrumb.height"),v=E.getAvailableSize(s.pos,s.box),A=s.totalWidth,y=s.renderList,x=y.length-1;x>=0;x--){var C=y[x],w=C.node,b=C.width,_=C.text;A>v.width&&(A-=b-f,b=f,_=null);var O=new I.Polygon({shape:{points:r(u,0,b,p,x===y.length-1,x===0)},style:T.defaults(e.getItemStyle(),{lineJoin:"bevel",text:_,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:T.curry(l,w)});this.group.add(O),i(O,t,w),u+=b+h}},remove:function(){this.group.removeAll()}};function r(t,s,e,o,l,u){var f=[[l?t:t-c,s],[t+e,s],[t+e,s+o],[l?t:t-c,s+o]];return!u&&f.splice(2,0,[t+e+c,s+o/2]),!l&&f.push([t,s+o/2]),f}function i(t,s,e){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:s.componentIndex,seriesIndex:s.componentIndex,seriesName:s.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&S(e,s)}}var n=a;H.exports=n},"9u0u":function(H,k,d){var I=d("bYtY");function E(g,S){var m={};return I.each(g,function(h){h.each(h.mapDimension("value"),function(c,a){var r="ec-"+h.getName(a);m[r]=m[r]||[],isNaN(c)||m[r].push(c)})}),g[0].map(g[0].mapDimension("value"),function(h,c){for(var a="ec-"+g[0].getName(c),r=0,i=Infinity,n=-Infinity,t=m[a].length,s=0;s<t;s++)i=Math.min(i,m[a][s]),n=Math.max(n,m[a][s]),r+=m[a][s];var e;return S==="min"?e=i:S==="max"?e=n:S==="average"?e=r/t:e=r,t===0?NaN:e})}function T(g){var S={};g.eachSeriesByType("map",function(m){var h=m.getHostGeoModel(),c=h?"o"+h.id:"i"+m.getMapType();(S[c]=S[c]||[]).push(m)}),I.each(S,function(m,h){for(var c=E(I.map(m,function(r){return r.getData()}),m[0].get("mapValueCalculation")),a=0;a<m.length;a++)m[a].originalData=m[a].getData();for(var a=0;a<m.length;a++)m[a].seriesGroup=m,m[a].needsDrawMap=a===0&&!m[a].getHostGeoModel(),m[a].setData(c.cloneShallow()),m[a].mainSeries=m[0]})}H.exports=T},"9wZj":function(H,k,d){var I=d("IwbS"),E=d("FBjb"),T=d("bYtY"),g=T.isObject;function S(i){this.group=new I.Group,this._symbolCtor=i||E}var m=S.prototype;function h(i,n,t,s){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(s.isIgnore&&s.isIgnore(t))&&!(s.clipShape&&!s.clipShape.contain(n[0],n[1]))&&i.getItemVisual(t,"symbol")!=="none"}m.updateData=function(i,n){n=c(n);var t=this.group,s=i.hostModel,e=this._data,o=this._symbolCtor,l=a(i);e||t.removeAll(),i.diff(e).add(function(u){var f=i.getItemLayout(u);if(h(i,f,u,n)){var p=new o(i,u,l);p.attr("position",f),i.setItemGraphicEl(u,p),t.add(p)}}).update(function(u,f){var p=e.getItemGraphicEl(f),v=i.getItemLayout(u);if(!h(i,v,u,n)){t.remove(p);return}p?(p.updateData(i,u,l),I.updateProps(p,{position:v},s)):(p=new o(i,u),p.attr("position",v)),t.add(p),i.setItemGraphicEl(u,p)}).remove(function(u){var f=e.getItemGraphicEl(u);f&&f.fadeOut(function(){t.remove(f)})}).execute(),this._data=i},m.isPersistent=function(){return!0},m.updateLayout=function(){var i=this._data;i&&i.eachItemGraphicEl(function(n,t){var s=i.getItemLayout(t);n.attr("position",s)})},m.incrementalPrepareUpdate=function(i){this._seriesScope=a(i),this._data=null,this.group.removeAll()},m.incrementalUpdate=function(i,n,t){t=c(t);function s(u){u.isGroup||(u.incremental=u.useHoverLayer=!0)}for(var e=i.start;e<i.end;e++){var o=n.getItemLayout(e);if(h(n,o,e,t)){var l=new this._symbolCtor(n,e,this._seriesScope);l.traverse(s),l.attr("position",o),this.group.add(l),n.setItemGraphicEl(e,l)}}};function c(i){return i!=null&&!g(i)&&(i={isIgnore:i}),i||{}}m.remove=function(i){var n=this.group,t=this._data;t&&i?t.eachItemGraphicEl(function(s){s.fadeOut(function(){n.remove(s)})}):n.removeAll()};function a(i){var n=i.hostModel;return{itemStyle:n.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:n.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:n.get("symbolRotate"),symbolOffset:n.get("symbolOffset"),hoverAnimation:n.get("hoverAnimation"),labelModel:n.getModel("label"),hoverLabelModel:n.getModel("emphasis.label"),cursorStyle:n.get("cursor")}}var r=S;H.exports=r},"9yH6":function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("q1tI"),m=d("x1Ya"),h=d("TSYQ"),c=d.n(h),a=d("H84U"),r=S.createContext(null),i=r.Provider,n=r,t=d("cDf5"),s=d.n(t);function e(M,F){typeof M=="function"?M(F):s()(M)==="object"&&M&&"current"in M&&(M.current=F)}function o(){for(var M=arguments.length,F=new Array(M),R=0;R<M;R++)F[R]=arguments[R];return function(j){F.forEach(function(B){e(B,j)})}}var l=d("uaoM"),u=function(M,F){var R={};for(var j in M)Object.prototype.hasOwnProperty.call(M,j)&&F.indexOf(j)<0&&(R[j]=M[j]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,j=Object.getOwnPropertySymbols(M);B<j.length;B++)F.indexOf(j[B])<0&&Object.prototype.propertyIsEnumerable.call(M,j[B])&&(R[j[B]]=M[j[B]]);return R},f=function(F,R){var j,B=S.useContext(n),K=S.useContext(a.b),U=K.getPrefixCls,z=K.direction,V=S.useRef(),Y=o(R,V);S.useEffect(function(){Object(l.a)(!("optionType"in F),"Radio","`optionType` is only support in Radio.Group.")},[]);var J=function(ce){F.onChange&&F.onChange(ce),(B==null?void 0:B.onChange)&&B.onChange(ce)},se=F.prefixCls,$=F.className,ae=F.children,ge=F.style,pe=u(F,["prefixCls","className","children","style"]),Ne=U("radio",se),de=g()({},pe);B&&(de.name=B.name,de.onChange=J,de.checked=F.value===B.value,de.disabled=F.disabled||B.disabled);var Le=c()($,(j={},E()(j,"".concat(Ne,"-wrapper"),!0),E()(j,"".concat(Ne,"-wrapper-checked"),de.checked),E()(j,"".concat(Ne,"-wrapper-disabled"),de.disabled),E()(j,"".concat(Ne,"-wrapper-rtl"),z==="rtl"),j));return S.createElement("label",{className:Le,style:ge,onMouseEnter:F.onMouseEnter,onMouseLeave:F.onMouseLeave},S.createElement(m.a,g()({},de,{prefixCls:Ne,ref:Y})),ae!==void 0?S.createElement("span",null,ae):null)},p=S.forwardRef(f);p.displayName="Radio",p.defaultProps={type:"radio"};var v=p,A=d("J4zp"),y=d.n(A),x=d("6cGi"),C=d("3Nzz"),w=S.forwardRef(function(M,F){var R=S.useContext(a.b),j=R.getPrefixCls,B=R.direction,K=S.useContext(C.b),U=Object(x.a)(M.defaultValue,{value:M.value}),z=y()(U,2),V=z[0],Y=z[1],J=function(ae){var ge=V,pe=ae.target.value;"value"in M||Y(pe);var Ne=M.onChange;Ne&&pe!==ge&&Ne(ae)},se=function(){var ae,ge=M.prefixCls,pe=M.className,Ne=pe===void 0?"":pe,de=M.options,Le=M.optionType,Q=M.buttonStyle,ce=M.disabled,Ke=M.children,ee=M.size,X=M.style,G=M.id,Z=M.onMouseEnter,ve=M.onMouseLeave,ue=j("radio",ge),_e="".concat(ue,"-group"),xe=Ke;if(de&&de.length>0){var oe=Le==="button"?"".concat(ue,"-button"):ue;xe=de.map(function(ze){return typeof ze=="string"?S.createElement(v,{ref:F,key:ze,prefixCls:oe,disabled:ce,value:ze,checked:V===ze},ze):S.createElement(v,{ref:F,key:"radio-group-value-options-".concat(ze.value),prefixCls:oe,disabled:ze.disabled||ce,value:ze.value,checked:V===ze.value,style:ze.style},ze.label)})}var fe=ee||K,Te=c()(_e,"".concat(_e,"-").concat(Q),(ae={},E()(ae,"".concat(_e,"-").concat(fe),fe),E()(ae,"".concat(_e,"-rtl"),B==="rtl"),ae),Ne);return S.createElement("div",{className:Te,style:X,onMouseEnter:Z,onMouseLeave:ve,id:G},xe)};return S.createElement(i,{value:{onChange:J,value:V,disabled:M.disabled,name:M.name}},se())});w.defaultProps={buttonStyle:"outline"};var b=S.memo(w),_=function(M,F){var R={};for(var j in M)Object.prototype.hasOwnProperty.call(M,j)&&F.indexOf(j)<0&&(R[j]=M[j]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,j=Object.getOwnPropertySymbols(M);B<j.length;B++)F.indexOf(j[B])<0&&Object.prototype.propertyIsEnumerable.call(M,j[B])&&(R[j[B]]=M[j[B]]);return R},O=function(F,R){var j=S.useContext(n),B=S.useContext(a.b),K=B.getPrefixCls,U=F.prefixCls,z=_(F,["prefixCls"]),V=K("radio-button",U);return j&&(z.checked=F.value===j.value,z.disabled=F.disabled||j.disabled),S.createElement(v,g()({prefixCls:V},z,{type:"radio",ref:R}))},L=S.forwardRef(O),D=v;D.Button=L,D.Group=b;var N=k.a=D},A1Ka:function(H,k,d){var I=d("bLfw"),E=d("sS/r"),T=d("D5nY"),g=T.detectSourceFormat,S=d("k9D9"),m=S.SERIES_LAYOUT_BY_COLUMN;I.extend({type:"dataset",defaultOption:{seriesLayoutBy:m,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){g(this)}}),E.extend({type:"dataset"})},ABKa:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("Qs9O")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="FolderOutlined";var c=g.forwardRef(h);k.default=c},AE9C:function(H,k,d){var I=d("bYtY"),E=d("crZl"),T=d("IwbS"),g=d("oVpE"),S=g.createSymbol,m=d("+TT/"),h=d("y7Aq"),c=E.extend({type:"visualMap.piecewise",doRender:function(){var r=this.group;r.removeAll();var i=this.visualMapModel,n=i.get("textGap"),t=i.textStyleModel,s=t.getFont(),e=t.getTextColor(),o=this._getItemAlign(),l=i.itemSize,u=this._getViewData(),f=u.endsText,p=I.retrieve(i.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],l,p,o),I.each(u.viewPieceList,v,this),f&&this._renderEndsText(r,f[1],l,p,o),m.box(i.get("orient"),r,i.get("itemGap")),this.renderBackground(r),this.positionGroup(r);function v(A){var y=A.piece,x=new T.Group;x.onclick=I.bind(this._onItemClick,this,y),this._enableHoverLink(x,A.indexInModelPieceList);var C=i.getRepresentValue(y);if(this._createItemSymbol(x,C,[0,0,l[0],l[1]]),p){var w=this.visualMapModel.getValueState(C);x.add(new T.Text({style:{x:o==="right"?-n:l[0]+n,y:l[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:o,textFont:s,textFill:e,opacity:w==="outOfRange"?.5:1}}))}r.add(x)}},_enableHoverLink:function(r,i){r.on("mouseover",I.bind(n,this,"highlight")).on("mouseout",I.bind(n,this,"downplay"));function n(t){var s=this.visualMapModel;s.option.hoverLink&&this.api.dispatchAction({type:t,batch:h.makeHighDownBatch(s.findTargetDataIndices(i),s)})}},_getItemAlign:function(){var r=this.visualMapModel,i=r.option;if(i.orient==="vertical")return h.getItemAlign(r,this.api,r.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},_renderEndsText:function(r,i,n,t,s){if(!i)return;var e=new T.Group,o=this.visualMapModel.textStyleModel;e.add(new T.Text({style:{x:t?s==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:t?s:"center",text:i,textFont:o.getFont(),textFill:o.getTextColor()}})),r.add(e)},_getViewData:function(){var r=this.visualMapModel,i=I.map(r.getPieceList(),function(e,o){return{piece:e,indexInModelPieceList:o}}),n=r.get("text"),t=r.get("orient"),s=r.get("inverse");return(t==="horizontal"?s:!s)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},_createItemSymbol:function(r,i,n){r.add(S(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color")))},_onItemClick:function(r){var i=this.visualMapModel,n=i.option,t=I.clone(n.selected),s=i.getSelectedMapKey(r);n.selectedMode==="single"?(t[s]=!0,I.each(t,function(e,o){t[o]=o===s})):t[s]=!t[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:t})}}),a=c;H.exports=a},AEZ6:function(H,k,d){var I=d("bYtY"),E=I.each,T=I.createHashMap,g=d("T4UG"),S=d("MwEJ"),m=g.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(a,r){var i=this.getSource();return h(i,this),S(i,this)},getRawIndicesByActiveState:function(a){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(t,s){a===t&&n.push(i.getRawIndex(s))}),n},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,r){if(a.encodeDefine)return;var i=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!i)return;var n=a.encodeDefine=T();E(i.dimensions,function(t){var s=c(t);n.set(t,s)})}function c(a){return+a.replace("dim","")}H.exports=m},AH3D:function(H,k,d){var I=d("ProS");d("y4/Y"),d("qWt2"),d("Qvb6"),I.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),I.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("5GtS"),g=d("4NO4"),S=g.defaultEmphasis,m=d("D5nY"),h=m.makeSeriesEncodeForNameBased,c=d("xKMd"),a=I.extendSeriesModel({type:"series.funnel",init:function(i){a.superApply(this,"init",arguments),this.legendVisualProvider=new c(E.bind(this.getData,this),E.bind(this.getRawData,this)),this._defaultLabelLine(i)},getInitialData:function(i,n){return T(this,{coordDimensions:["value"],encodeDefaulter:E.curry(h,this)})},_defaultLabelLine:function(i){S(i,"labelLine",["show"]);var n=i.labelLine,t=i.emphasis.labelLine;n.show=n.show&&i.label.show,t.show=t.show&&i.emphasis.label.show},getDataParams:function(i){var n=this.getData(),t=a.superCall(this,"getDataParams",i),s=n.mapDimension("value"),e=n.getSum(s);return t.percent=e?+(n.get(s,i)/e*100).toFixed(2):0,t.$vars.push("percent"),t},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}}}}),r=a;H.exports=r},ALsQ:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.mode.CFB=function(){var E=I.lib.BlockCipherMode.extend();E.Encryptor=E.extend({processBlock:function(S,m){var h=this._cipher,c=h.blockSize;T.call(this,S,m,c,h),this._prevBlock=S.slice(m,m+c)}}),E.Decryptor=E.extend({processBlock:function(S,m){var h=this._cipher,c=h.blockSize,a=S.slice(m,m+c);T.call(this,S,m,c,h),this._prevBlock=a}});function T(g,S,m,h){var c,a=this._iv;a?(c=a.slice(0),this._iv=void 0):c=this._prevBlock,h.encryptBlock(c,0);for(var r=0;r<m;r++)g[S+r]^=c[r]}return E}(),I.mode.CFB})},ANjR:function(H,k,d){var I=d("bYtY");function E(g,S){return S=S||[0,0],I.map([0,1],function(m){var h=S[m],c=g[m]/2,a=[],r=[];return a[m]=h-c,r[m]=h+c,a[1-m]=r[1-m]=S[1-m],Math.abs(this.dataToPoint(a)[m]-this.dataToPoint(r)[m])},this)}function T(g){var S=g.getBoundingRect();return{coordSys:{type:"geo",x:S.x,y:S.y,width:S.width,height:S.height,zoom:g.getZoom()},api:{coord:function(m){return g.dataToPoint(m)},size:I.bind(E,g)}}}H.exports=T},AOa7:function(H,k,d){},AUH6:function(H,k,d){var I=d("bYtY"),E=d("mFDi"),T=d("bMXI"),g=d("W4dC");function S(c,a,r,i){T.call(this,c),this.map=a;var n=g.load(a,r);this._nameCoordMap=n.nameCoordMap,this._regionsMap=n.regionsMap,this._invertLongitute=i==null?!0:i,this.regions=n.regions,this._rect=n.boundingRect}S.prototype={constructor:S,type:"geo",dimensions:["lng","lat"],containCoord:function(c){for(var a=this.regions,r=0;r<a.length;r++)if(a[r].contain(c))return!0;return!1},transformTo:function(c,a,r,i){var n=this.getBoundingRect(),t=this._invertLongitute;n=n.clone(),t&&(n.y=-n.y-n.height);var s=this._rawTransformable;if(s.transform=n.calculateTransform(new E(c,a,r,i)),s.decomposeTransform(),t){var e=s.scale;e[1]=-e[1]}s.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var a=this.regions,r=0;r<a.length;r++)if(a[r].contain(c))return a[r]},addGeoCoord:function(c,a){this._nameCoordMap.set(c,a)},getGeoCoord:function(c){return this._nameCoordMap.get(c)},getBoundingRect:function(){return this._rect},dataToPoint:function(c,a,r){if(typeof c=="string"&&(c=this.getGeoCoord(c)),c)return T.prototype.dataToPoint.call(this,c,a,r)},convertToPixel:I.curry(m,"dataToPoint"),convertFromPixel:I.curry(m,"pointToData")},I.mixin(S,T);function m(c,a,r,i){var n=r.geoModel,t=r.seriesModel,s=n?n.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return s===this?s[c](i):null}var h=S;H.exports=h},AVZG:function(H,k,d){var I=d("bYtY");function E(T,g,S){S=S||{};var m=T.coordinateSystem,h=g.axis,c={},a=h.getAxesOnZeroOf()[0],r=h.position,i=a?"onZero":r,n=h.dim,t=m.getRect(),s=[t.x,t.x+t.width,t.y,t.y+t.height],e={left:0,right:1,top:0,bottom:1,onZero:2},o=g.get("offset")||0,l=n==="x"?[s[2]-o,s[3]+o]:[s[0]-o,s[1]+o];if(a){var u=a.toGlobalCoord(a.dataToCoord(0));l[e.onZero]=Math.max(Math.min(u,l[1]),l[0])}c.position=[n==="y"?l[e[i]]:s[0],n==="x"?l[e[i]]:s[3]],c.rotation=Math.PI/2*(n==="x"?0:1);var f={top:-1,bottom:1,left:-1,right:1};c.labelDirection=c.tickDirection=c.nameDirection=f[r],c.labelOffset=a?l[e[r]]-l[e.onZero]:0,g.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),I.retrieve(S.labelInside,g.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var p=g.get("axisLabel.rotate");return c.labelRotate=i==="top"?-p:p,c.z2=1,c}k.layout=E},"Ae+d":function(H,k){function d(E,T,g){var S=E.target,m=S.position;m[0]+=T,m[1]+=g,S.dirty()}function I(E,T,g,S){var m=E.target,h=E.zoomLimit,c=m.position,a=m.scale,r=E.zoom=E.zoom||1;if(r*=T,h){var i=h.min||0,n=h.max||Infinity;r=Math.max(Math.min(n,r),i)}var t=r/E.zoom;E.zoom=r,c[0]-=(g-c[0])*(t-1),c[1]-=(S-c[1])*(t-1),a[0]*=t,a[1]*=t,m.dirty()}k.updateViewOnPan=d,k.updateViewOnZoom=I},Ae16:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IwbS");d("Wqna"),d("rySg"),I.extendComponentView({type:"grid",render:function(g,S){this.group.removeAll(),g.get("show")&&this.group.add(new T.Rect({shape:g.coordinateSystem.getRect(),style:E.defaults({fill:g.get("backgroundColor")},g.getItemStyle()),silent:!0,z2:-1}))}}),I.registerPreprocessor(function(g){g.xAxis&&g.yAxis&&!g.grid&&(g.grid={})})},Awhp:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("PQMj"),g=d.n(T)},"B+YJ":function(H,k,d){d("TYVI"),d("p1MT")},"B6l+":function(H,k,d){var I=d("Sq3C"),E=d("Z1HP"),T=d("Sxd8"),g=d("dt0z");function S(m,h,c){m=g(m),h=T(h);var a=h?E(m):0;return h&&a<h?m+I(h-a,c):m}H.exports=S},B9cy:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("0XgM"),g=d.n(T)},B9fm:function(H,k,d){var I=d("bYtY"),E=d("Qe9p"),T=d("YH21"),g=d("Ze12"),S=d("ItGF"),m=d("7aKB"),h=I.each,c=m.toCamelCase,a=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function i(l){var u="cubic-bezier(0.23, 1, 0.32, 1)",f="left "+l+"s "+u+",top "+l+"s "+u;return I.map(a,function(p){return p+"transition:"+f}).join(";")}function n(l){var u=[],f=l.get("fontSize"),p=l.getTextColor();return p&&u.push("color:"+p),u.push("font:"+l.getFont()),f&&u.push("line-height:"+Math.round(f*3/2)+"px"),h(["decoration","align"],function(v){var A=l.get(v);A&&u.push("text-"+v+":"+A)}),u.join(";")}function t(l){var u=[],f=l.get("transitionDuration"),p=l.get("backgroundColor"),v=l.getModel("textStyle"),A=l.get("padding");return f&&u.push(i(f)),p&&(S.canvasSupported?u.push("background-Color:"+p):(u.push("background-Color:#"+E.toHex(p)),u.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(y){var x="border-"+y,C=c(x),w=l.get(C);w!=null&&u.push(x+":"+w+(y==="color"?"":"px"))}),u.push(n(v)),A!=null&&u.push("padding:"+m.normalizeCssArray(A).join("px ")+"px"),u.join(";")+";"}function s(l,u,f,p,v){var A=u&&u.painter;if(f){var y=A&&A.getViewportRoot();y&&g.transformLocalCoord(l,y,document.body,p,v)}else{l[0]=p,l[1]=v;var x=A&&A.getViewportRootOffset();x&&(l[0]+=x.offsetLeft,l[1]+=x.offsetTop)}}function e(l,u,f){if(S.wxa)return null;var p=document.createElement("div");p.domBelongToZr=!0,this.el=p;var v=this._zr=u.getZr(),A=this._appendToBody=f&&f.appendToBody;this._styleCoord=[0,0],s(this._styleCoord,v,A,u.getWidth()/2,u.getHeight()/2),A?document.body.appendChild(p):l.appendChild(p),this._container=l,this._show=!1,this._hideTimeout;var y=this;p.onmouseenter=function(){y._enterable&&(clearTimeout(y._hideTimeout),y._show=!0),y._inContent=!0},p.onmousemove=function(x){if(x=x||window.event,!y._enterable){var C=v.handler,w=v.painter.getViewportRoot();T.normalizeEvent(w,x,!0),C.dispatch("mousemove",x)}},p.onmouseleave=function(){y._enterable&&(y._show&&y.hideLater(y._hideDelay)),y._inContent=!1}}e.prototype={constructor:e,_enterable:!0,update:function(){var l=this._container,u=l.currentStyle||document.defaultView.getComputedStyle(l),f=l.style;f.position!=="absolute"&&u.position!=="absolute"&&(f.position="relative")},show:function(l){clearTimeout(this._hideTimeout);var u=this.el,f=this._styleCoord;u.style.cssText=r+t(l)+";left:"+f[0]+"px;top:"+f[1]+"px;"+(l.get("extraCssText")||""),u.style.display=u.innerHTML?"block":"none",u.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(l){this.el.innerHTML=l==null?"":l},setEnterable:function(l){this._enterable=l},getSize:function(){var l=this.el;return[l.clientWidth,l.clientHeight]},moveTo:function(l,u){var f=this._styleCoord;s(f,this._zr,this._appendToBody,l,u);var p=this.el.style;p.left=f[0]+"px",p.top=f[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(l){this._show&&!(this._inContent&&this._enterable)&&(l?(this._hideDelay=l,this._show=!1,this._hideTimeout=setTimeout(I.bind(this.hide,this),l)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var l=this.el.clientWidth,u=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var f=document.defaultView.getComputedStyle(this.el);f&&(l+=parseInt(f.borderLeftWidth,10)+parseInt(f.borderRightWidth,10),u+=parseInt(f.borderTopWidth,10)+parseInt(f.borderBottomWidth,10))}return{width:l,height:u}}};var o=e;H.exports=o},BPZU:function(H,k){var d=32,I=7,E=256;function T(i){for(var n=0;i>=d;)n|=i&1,i>>=1;return i+n}function g(i,n,t,s){var e=n+1;if(e===t)return 1;if(s(i[e++],i[n])<0){for(;e<t&&s(i[e],i[e-1])<0;)e++;S(i,n,e)}else for(;e<t&&s(i[e],i[e-1])>=0;)e++;return e-n}function S(i,n,t){for(t--;n<t;){var s=i[n];i[n++]=i[t],i[t--]=s}}function m(i,n,t,s,e){for(s===n&&s++;s<t;s++){for(var o=i[s],l=n,u=s,f;l<u;)f=l+u>>>1,e(o,i[f])<0?u=f:l=f+1;var p=s-l;switch(p){case 3:i[l+3]=i[l+2];case 2:i[l+2]=i[l+1];case 1:i[l+1]=i[l];break;default:for(;p>0;)i[l+p]=i[l+p-1],p--}i[l]=o}}function h(i,n,t,s,e,o){var l=0,u=0,f=1;if(o(i,n[t+e])>0){for(u=s-e;f<u&&o(i,n[t+e+f])>0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),l+=e,f+=e}else{for(u=e+1;f<u&&o(i,n[t+e-f])<=0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var p=l;l=e-f,f=e-p}for(l++;l<f;){var v=l+(f-l>>>1);o(i,n[t+v])>0?l=v+1:f=v}return f}function c(i,n,t,s,e,o){var l=0,u=0,f=1;if(o(i,n[t+e])<0){for(u=e+1;f<u&&o(i,n[t+e-f])<0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var p=l;l=e-f,f=e-p}else{for(u=s-e;f<u&&o(i,n[t+e+f])>=0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),l+=e,f+=e}for(l++;l<f;){var v=l+(f-l>>>1);o(i,n[t+v])<0?f=v:l=v+1}return f}function a(i,n){var t=I,s=0,e=E,o=0,l,u,f=0;s=i.length,s<2*E&&(e=s>>>1);var p=[];o=s<120?5:s<1542?10:s<119151?19:40,l=[],u=[];function v(b,_){l[f]=b,u[f]=_,f+=1}function A(){for(;f>1;){var b=f-2;if(b>=1&&u[b-1]<=u[b]+u[b+1]||b>=2&&u[b-2]<=u[b]+u[b-1])u[b-1]<u[b+1]&&b--;else if(u[b]>u[b+1])break;x(b)}}function y(){for(;f>1;){var b=f-2;b>0&&u[b-1]<u[b+1]&&b--,x(b)}}function x(b){var _=l[b],O=u[b],L=l[b+1],D=u[b+1];u[b]=O+D,b===f-3&&(l[b+1]=l[b+2],u[b+1]=u[b+2]),f--;var N=c(i[L],i,_,O,0,n);if(_+=N,O-=N,O===0)return;if(D=h(i[_+O-1],i,L,D,D-1,n),D===0)return;O<=D?C(_,O,L,D):w(_,O,L,D)}function C(b,_,O,L){var D=0;for(D=0;D<_;D++)p[D]=i[b+D];var N=0,M=O,F=b;if(i[F++]=i[M++],--L===0){for(D=0;D<_;D++)i[F+D]=p[N+D];return}if(_===1){for(D=0;D<L;D++)i[F+D]=i[M+D];i[F+L]=p[N];return}for(var R=t,j,B,K;;){j=0,B=0,K=!1;do if(n(i[M],p[N])<0){if(i[F++]=i[M++],B++,j=0,--L===0){K=!0;break}}else if(i[F++]=p[N++],j++,B=0,--_===1){K=!0;break}while((j|B)<R);if(K)break;do{if(j=c(i[M],p,N,_,0,n),j!==0){for(D=0;D<j;D++)i[F+D]=p[N+D];if(F+=j,N+=j,_-=j,_<=1){K=!0;break}}if(i[F++]=i[M++],--L===0){K=!0;break}if(B=h(p[N],i,M,L,0,n),B!==0){for(D=0;D<B;D++)i[F+D]=i[M+D];if(F+=B,M+=B,L-=B,L===0){K=!0;break}}if(i[F++]=p[N++],--_===1){K=!0;break}R--}while(j>=I||B>=I);if(K)break;R<0&&(R=0),R+=2}if(t=R,t<1&&(t=1),_===1){for(D=0;D<L;D++)i[F+D]=i[M+D];i[F+L]=p[N]}else{if(_===0)throw new Error;for(D=0;D<_;D++)i[F+D]=p[N+D]}}function w(b,_,O,L){var D=0;for(D=0;D<L;D++)p[D]=i[O+D];var N=b+_-1,M=L-1,F=O+L-1,R=0,j=0;if(i[F--]=i[N--],--_===0){for(R=F-(L-1),D=0;D<L;D++)i[R+D]=p[D];return}if(L===1){for(F-=_,N-=_,j=F+1,R=N+1,D=_-1;D>=0;D--)i[j+D]=i[R+D];i[F]=p[M];return}for(var B=t;;){var K=0,U=0,z=!1;do if(n(p[M],i[N])<0){if(i[F--]=i[N--],K++,U=0,--_===0){z=!0;break}}else if(i[F--]=p[M--],U++,K=0,--L===1){z=!0;break}while((K|U)<B);if(z)break;do{if(K=_-c(p[M],i,b,_,_-1,n),K!==0){for(F-=K,N-=K,_-=K,j=F+1,R=N+1,D=K-1;D>=0;D--)i[j+D]=i[R+D];if(_===0){z=!0;break}}if(i[F--]=p[M--],--L===1){z=!0;break}if(U=L-h(i[N],p,0,L,L-1,n),U!==0){for(F-=U,M-=U,L-=U,j=F+1,R=M+1,D=0;D<U;D++)i[j+D]=p[R+D];if(L<=1){z=!0;break}}if(i[F--]=i[N--],--_===0){z=!0;break}B--}while(K>=I||U>=I);if(z)break;B<0&&(B=0),B+=2}if(t=B,t<1&&(t=1),L===1){for(F-=_,N-=_,j=F+1,R=N+1,D=_-1;D>=0;D--)i[j+D]=i[R+D];i[F]=p[M]}else{if(L===0)throw new Error;for(R=F-(L-1),D=0;D<L;D++)i[R+D]=p[D]}}this.mergeRuns=A,this.forceMergeRuns=y,this.pushRun=v}function r(i,n,t,s){t||(t=0),s||(s=i.length);var e=s-t;if(e<2)return;var o=0;if(e<d){o=g(i,t,s,n),m(i,t,s,t+o,n);return}var l=new a(i,n),u=T(e);do{if(o=g(i,t,s,n),o<u){var f=e;f>u&&(f=u),m(i,t,t+f,t+o,n),o=f}l.pushRun(t,o),l.mergeRuns(),e-=o,t+=o}while(e!==0);l.forceMergeRuns()}H.exports=r},Bd2K:function(H,k,d){(function(I){I(d("VrN/"),d("osHv"))})(function(I){I.defineOption("autoCloseTags",!1,function(a,r,i){if(i!=I.Init&&i&&a.removeKeyMap("autoCloseTags"),!r)return;var n={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(n["'/'"]=function(t){return m(t)}),(typeof r!="object"||r.whenOpening!==!1)&&(n["'>'"]=function(t){return g(t)}),a.addKeyMap(n)});var E=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["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 g(a){if(a.getOption("disableInput"))return I.Pass;for(var r=a.listSelections(),i=[],n=a.getOption("autoCloseTags"),t=0;t<r.length;t++){if(!r[t].empty())return I.Pass;var s=r[t].head,e=a.getTokenAt(s),o=I.innerMode(a.getMode(),e.state),l=o.state,u=o.mode.xmlCurrentTag&&o.mode.xmlCurrentTag(l),f=u&&u.name;if(!f)return I.Pass;var p=o.mode.configuration=="html",v=typeof n=="object"&&n.dontCloseTags||p&&E,A=typeof n=="object"&&n.indentTags||p&&T;e.end>s.ch&&(f=f.slice(0,f.length-e.end+s.ch));var y=f.toLowerCase();if(!f||e.type=="string"&&(e.end!=s.ch||!/[\"\']/.test(e.string.charAt(e.string.length-1))||e.string.length==1)||e.type=="tag"&&u.close||e.string.indexOf("/")==s.ch-e.start-1||v&&h(v,y)>-1||c(a,o.mode.xmlCurrentContext&&o.mode.xmlCurrentContext(l)||[],f,s,!0))return I.Pass;var x=typeof n=="object"&&n.emptyTags;if(x&&h(x,f)>-1){i[t]={text:"/>",newPos:I.Pos(s.line,s.ch+2)};continue}var C=A&&h(A,y)>-1;i[t]={indent:C,text:">"+(C?`
|
|
|
|
|
|
`:"")+"</"+f+">",newPos:C?I.Pos(s.line+1,0):I.Pos(s.line,s.ch+1)}}for(var w=typeof n=="object"&&n.dontIndentOnAutoClose,t=r.length-1;t>=0;t--){var b=i[t];a.replaceRange(b.text,r[t].head,r[t].anchor,"+insert");var _=a.listSelections().slice(0);_[t]={head:b.newPos,anchor:b.newPos},a.setSelections(_),!w&&b.indent&&(a.indentLine(b.newPos.line,null,!0),a.indentLine(b.newPos.line+1,null,!0))}}function S(a,r){for(var i=a.listSelections(),n=[],t=r?"/":"</",s=a.getOption("autoCloseTags"),e=typeof s=="object"&&s.dontIndentOnSlash,o=0;o<i.length;o++){if(!i[o].empty())return I.Pass;var l=i[o].head,u=a.getTokenAt(l),f=I.innerMode(a.getMode(),u.state),p=f.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=l.ch-1))return I.Pass;var v,A=f.mode.name!="xml"&&a.getMode().name=="htmlmixed";if(A&&f.mode.name=="javascript")v=t+"script";else if(A&&f.mode.name=="css")v=t+"style";else{var y=f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(p);if(!y||y.length&&c(a,y,y[y.length-1],l))return I.Pass;v=t+y[y.length-1]}a.getLine(l.line).charAt(u.end)!=">"&&(v+=">"),n[o]=v}if(a.replaceSelections(n),i=a.listSelections(),!e)for(var o=0;o<i.length;o++)(o==i.length-1||i[o].head.line<i[o+1].head.line)&&a.indentLine(i[o].head.line)}function m(a){return a.getOption("disableInput")?I.Pass:S(a,!0)}I.commands.closeTag=function(a){return S(a)};function h(a,r){if(a.indexOf)return a.indexOf(r);for(var i=0,n=a.length;i<n;++i)if(a[i]==r)return i;return-1}function c(a,r,i,n,t){if(!I.scanForClosingTag)return!1;var s=Math.min(a.lastLine()+1,n.line+500),e=I.scanForClosingTag(a,n,null,s);if(!e||e.tag!=i)return!1;for(var o=t?1:0,l=r.length-1;l>=0&&r[l]==i;l--)++o;n=e.to;for(var l=1;l<o;l++){var u=I.scanForClosingTag(a,n,null,s);if(!u||u.tag!=i)return!1;n=u.to}return!0}})},BlVb:function(H,k,d){var I=d("hyiK"),E=1e-8;function T(S,m){return Math.abs(S-m)<E}function g(S,m,h){var c=0,a=S[0];if(!a)return!1;for(var r=1;r<S.length;r++){var i=S[r];c+=I(a[0],a[1],i[0],i[1],m,h),a=i}var n=S[0];return(!T(a[0],n[0])||!T(a[1],n[1]))&&(c+=I(a[0],a[1],n[0],n[1],m,h)),c!==0}k.contain=g},BoS7:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("czTT"),g=d.n(T)},Bq2U:function(H,k,d){var I=d("RDYZ"),E=d("Qe9p"),T=d("bYtY"),g=T.isArrayLike,S=Array.prototype.slice;function m(v,A){return v[A]}function h(v,A,y){v[A]=y}function c(v,A,y){return(A-v)*y+v}function a(v,A,y){return y>.5?A:v}function r(v,A,y,x,C){var w=v.length;if(C===1)for(var b=0;b<w;b++)x[b]=c(v[b],A[b],y);else for(var _=w&&v[0].length,b=0;b<w;b++)for(var O=0;O<_;O++)x[b][O]=c(v[b][O],A[b][O],y)}function i(v,A,y){var x=v.length,C=A.length;if(x!==C){var w=x>C;if(w)v.length=C;else for(var b=x;b<C;b++)v.push(y===1?A[b]:S.call(A[b]))}for(var _=v[0]&&v[0].length,b=0;b<v.length;b++)if(y===1)isNaN(v[b])&&(v[b]=A[b]);else for(var O=0;O<_;O++)isNaN(v[b][O])&&(v[b][O]=A[b][O])}function n(v,A,y){if(v===A)return!0;var x=v.length;if(x!==A.length)return!1;if(y===1){for(var C=0;C<x;C++)if(v[C]!==A[C])return!1}else for(var w=v[0].length,C=0;C<x;C++)for(var b=0;b<w;b++)if(v[C][b]!==A[C][b])return!1;return!0}function t(v,A,y,x,C,w,b,_,O){var L=v.length;if(O===1)for(var D=0;D<L;D++)_[D]=s(v[D],A[D],y[D],x[D],C,w,b);else for(var N=v[0].length,D=0;D<L;D++)for(var M=0;M<N;M++)_[D][M]=s(v[D][M],A[D][M],y[D][M],x[D][M],C,w,b)}function s(v,A,y,x,C,w,b){var _=(y-v)*.5,O=(x-A)*.5;return(2*(A-y)+_+O)*b+(-3*(A-y)-2*_-O)*w+_*C+A}function e(v){if(g(v)){var A=v.length;if(g(v[0])){for(var y=[],x=0;x<A;x++)y.push(S.call(v[x]));return y}return S.call(v)}return v}function o(v){return v[0]=Math.floor(v[0]),v[1]=Math.floor(v[1]),v[2]=Math.floor(v[2]),"rgba("+v.join(",")+")"}function l(v){var A=v[v.length-1].value;return g(A&&A[0])?2:1}function u(v,A,y,x,C,w){var b=v._getter,_=v._setter,O=A==="spline",L=x.length;if(!L)return;var D=x[0].value,N=g(D),M=!1,F=!1,R=N?l(x):0,j;x.sort(function(X,G){return X.time-G.time}),j=x[L-1].time;for(var B=[],K=[],U=x[0].value,z=!0,V=0;V<L;V++){B.push(x[V].time/j);var Y=x[V].value;if(N&&n(Y,U,R)||!N&&Y===U||(z=!1),U=Y,typeof Y=="string"){var J=E.parse(Y);J?(Y=J,M=!0):F=!0}K.push(Y)}if(!w&&z)return;for(var se=K[L-1],V=0;V<L-1;V++)N?i(K[V],se,R):isNaN(K[V])&&!isNaN(se)&&!F&&!M&&(K[V]=se);N&&i(b(v._target,C),se,R);var $=0,ae=0,ge,pe,Ne,de,Le,Q;if(M)var ce=[0,0,0,0];var Ke=function(G,Z){var ve;if(Z<0)ve=0;else if(Z<ae){for(ge=Math.min($+1,L-1),ve=ge;ve>=0&&!(B[ve]<=Z);ve--);ve=Math.min(ve,L-2)}else{for(ve=$;ve<L&&!(B[ve]>Z);ve++);ve=Math.min(ve-1,L-2)}$=ve,ae=Z;var ue=B[ve+1]-B[ve];if(ue===0)return;if(pe=(Z-B[ve])/ue,O)if(de=K[ve],Ne=K[ve===0?ve:ve-1],Le=K[ve>L-2?L-1:ve+1],Q=K[ve>L-3?L-1:ve+2],N)t(Ne,de,Le,Q,pe,pe*pe,pe*pe*pe,b(G,C),R);else{var _e;if(M)_e=t(Ne,de,Le,Q,pe,pe*pe,pe*pe*pe,ce,1),_e=o(ce);else{if(F)return a(de,Le,pe);_e=s(Ne,de,Le,Q,pe,pe*pe,pe*pe*pe)}_(G,C,_e)}else if(N)r(K[ve],K[ve+1],pe,b(G,C),R);else{var _e;if(M)r(K[ve],K[ve+1],pe,ce,1),_e=o(ce);else{if(F)return a(K[ve],K[ve+1],pe);_e=c(K[ve],K[ve+1],pe)}_(G,C,_e)}},ee=new I({target:v._target,life:j,loop:v._loop,delay:v._delay,onframe:Ke,ondestroy:y});return A&&A!=="spline"&&(ee.easing=A),ee}var f=function(A,y,x,C){this._tracks={},this._target=A,this._loop=y||!1,this._getter=x||m,this._setter=C||h,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};f.prototype={when:function(A,y){var x=this._tracks;for(var C in y){if(!y.hasOwnProperty(C))continue;if(!x[C]){x[C]=[];var w=this._getter(this._target,C);if(w==null)continue;A!==0&&x[C].push({time:0,value:e(w)})}x[C].push({time:A,value:y[C]})}return this},during:function(A){return this._onframeList.push(A),this},pause:function(){for(var A=0;A<this._clipList.length;A++)this._clipList[A].pause();this._paused=!0},resume:function(){for(var A=0;A<this._clipList.length;A++)this._clipList[A].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var A=this._doneList,y=A.length,x=0;x<y;x++)A[x].call(this)},start:function(A,y){var x=this,C=0,w=function(){C--,C||x._doneCallback()},b;for(var _ in this._tracks){if(!this._tracks.hasOwnProperty(_))continue;var O=u(this,A,w,this._tracks[_],_,y);O&&(this._clipList.push(O),C++,this.animation&&this.animation.addClip(O),b=O)}if(b){var L=b.onframe;b.onframe=function(D,N){L(D,N);for(var M=0;M<x._onframeList.length;M++)x._onframeList[M](D,N)}}return C||this._doneCallback(),this},stop:function(A){for(var y=this._clipList,x=this.animation,C=0;C<y.length;C++){var w=y[C];A&&w.onframe(this._target,1),x&&x.removeClip(w)}y.length=0},delay:function(A){return this._delay=A,this},done:function(A){return A&&this._doneList.push(A),this},getClips:function(){return this._clipList}};var p=f;H.exports=p},Bqw1:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},Bsck:function(H,k,d){var I=d("bYtY"),E=d("Qxkt"),T=d("Mdki"),g=d("YXkt"),S=d("sdST"),m=function(r,i){this.name=r||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=i};m.prototype={constructor:m,isRemoved:function(){return this.dataIndex<0},eachNode:function(r,i,n){typeof r=="function"&&(n=i,i=r,r=null),r=r||{},I.isString(r)&&(r={order:r});var t=r.order||"preorder",s=this[r.attr||"children"],e;t==="preorder"&&(e=i.call(n,this));for(var o=0;!e&&o<s.length;o++)s[o].eachNode(r,i,n);t==="postorder"&&i.call(n,this)},updateDepthAndHeight:function(r){var i=0;this.depth=r;for(var n=0;n<this.children.length;n++){var t=this.children[n];t.updateDepthAndHeight(r+1),t.height>i&&(i=t.height)}this.height=i+1},getNodeById:function(r){if(this.getId()===r)return this;for(var i=0,n=this.children,t=n.length;i<t;i++){var s=n[i].getNodeById(r);if(s)return s}},contains:function(r){if(r===this)return!0;for(var i=0,n=this.children,t=n.length;i<t;i++){var s=n[i].contains(r);if(s)return s}},getAncestors:function(r){for(var i=[],n=r?this:this.parentNode;n;)i.push(n),n=n.parentNode;return i.reverse(),i},getValue:function(r){var i=this.hostTree.data;return i.get(i.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,i)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var i=this.hostTree,n=i.data.getItemModel(this.dataIndex),t=this.getLevelModel();return t?n.getModel(r,t.getModel(r)):n.getModel(r)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,i)},getVisual:function(r,i){return this.hostTree.data.getItemVisual(this.dataIndex,r,i)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(r){for(var i=r.parentNode;i;){if(i===this)return!0;i=i.parentNode}return!1},isDescendantOf:function(r){return r!==this&&r.isAncestorOf(this)}};function h(r,i){this.root,this.data,this._nodes=[],this.hostModel=r,this.levelModels=I.map(i||[],function(n){return new E(n,r,r.ecModel)})}h.prototype={constructor:h,type:"tree",eachNode:function(r,i,n){this.root.eachNode(r,i,n)},getNodeByDataIndex:function(r){var i=this.data.getRawIndex(r);return this._nodes[i]},getNodeByName:function(r){return this.root.getNodeByName(r)},update:function(){for(var r=this.data,i=this._nodes,n=0,t=i.length;n<t;n++)i[n].dataIndex=-1;for(var n=0,t=r.count();n<t;n++)i[r.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},h.createTree=function(r,i,n,t){var s=new h(i,n&&n.levels),e=[],o=1;l(r);function l(p,v){var A=p.value;o=Math.max(o,I.isArray(A)?A.length:1),e.push(p);var y=new m(p.name,s);v?c(y,v):s.root=y,s._nodes.push(y);var x=p.children;if(x)for(var C=0;C<x.length;C++)l(x[C],y)}s.root.updateDepthAndHeight(0);var u=S(e,{coordDimensions:["value"],dimensionsCount:o}),f=new g(u,i);return f.initData(e),t&&t(f),T({mainData:f,struct:s,structAttr:"tree"}),s.update(),s};function c(r,i){var n=i.children;if(r.parentNode===i)return;n.push(r),r.parentNode=i}var a=h;H.exports=a},BtR2:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="LikeOutlined";var h=k.a=E.forwardRef(m)},BuqR:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("6uqw"),S=d("XxSj"),m=d("YOMW"),h=d("OELB"),c=h.reformIntervals,a=g.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(t,s){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var e=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(t,s);var o=this.option.categories;this.resetVisual(function(l,u){e==="categories"?(l.mappingMethod="category",l.categories=T.clone(o)):(l.dataExtent=this.getExtent(),l.mappingMethod="piecewise",l.pieceList=T.map(this._pieceList,function(f){var f=T.clone(f);return u!=="inRange"&&(f.visual=null),f}))})},completeVisualOption:function(){var t=this.option,s={},e=S.listVisualTypes(),o=this.isCategory();T.each(t.pieces,function(u){T.each(e,function(f){u.hasOwnProperty(f)&&(s[f]=1)})}),T.each(s,function(u,f){var p=0;T.each(this.stateList,function(v){p|=l(t,v,f)||l(t.target,v,f)},this),!p&&T.each(this.stateList,function(v){(t[v]||(t[v]={}))[f]=m.get(f,v==="inRange"?"active":"inactive",o)})},this);function l(u,f,p){return u&&u[f]&&(T.isObject(u[f])?u[f].hasOwnProperty(p):u[f]===p)}g.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,s){var e=this.option,o=this._pieceList,l=(s?e:t).selected||{};if(e.selected=l,T.each(o,function(f,p){var v=this.getSelectedMapKey(f);l.hasOwnProperty(v)||(l[v]=!0)},this),e.selectedMode==="single"){var u=!1;T.each(o,function(f,p){var v=this.getSelectedMapKey(f);l[v]&&(u?l[v]=!1:u=!0)},this)}},getSelectedMapKey:function(t){return this._mode==="categories"?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=T.clone(t)},getValueState:function(t){var s=S.findPieceIndex(t,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var s=[];return this.eachTargetSeries(function(e){var o=[],l=e.getData();l.each(this.getDataDimension(l),function(u,f){var p=S.findPieceIndex(u,this._pieceList);p===t&&o.push(f)},this),s.push({seriesId:e.id,dataIndex:o})},this),s},getRepresentValue:function(t){var s;if(this.isCategory())s=t.value;else if(t.value!=null)s=t.value;else{var e=t.interval||[];s=e[0]===-Infinity&&e[1]===Infinity?0:(e[0]+e[1])/2}return s},getVisualMeta:function(t){if(this.isCategory())return;var s=[],e=[],o=this;function l(v,A){var y=o.getRepresentValue({interval:v});A||(A=o.getValueState(y));var x=t(y,A);v[0]===-Infinity?e[0]=x:v[1]===Infinity?e[1]=x:s.push({value:v[0],color:x},{value:v[1],color:x})}var u=this._pieceList.slice();if(!u.length)u.push({interval:[-Infinity,Infinity]});else{var f=u[0].interval[0];f!==-Infinity&&u.unshift({interval:[-Infinity,f]}),f=u[u.length-1].interval[1],f!==Infinity&&u.push({interval:[f,Infinity]})}var p=-Infinity;return T.each(u,function(v){var A=v.interval;A&&(A[0]>p&&l([p,A[0]],"outOfRange"),l(A.slice()),p=A[1])},this),{stops:s,outerColors:e}}}),r={splitNumber:function(){var t=this.option,s=this._pieceList,e=Math.min(t.precision,20),o=this.getExtent(),l=t.splitNumber;l=Math.max(parseInt(l,10),1),t.splitNumber=l;for(var u=(o[1]-o[0])/l;+u.toFixed(e)!==u&&e<5;)e++;t.precision=e,u=+u.toFixed(e),t.minOpen&&s.push({interval:[-Infinity,o[0]],close:[0,0]});for(var f=0,p=o[0];f<l;p+=u,f++){var v=f===l-1?o[1]:p+u;s.push({interval:[p,v],close:[1,1]})}t.maxOpen&&s.push({interval:[o[1],Infinity],close:[0,0]}),c(s),T.each(s,function(A,y){A.index=y,A.text=this.formatValueText(A.interval)},this)},categories:function(){var t=this.option;T.each(t.categories,function(s){this._pieceList.push({text:this.formatValueText(s,!0),value:s})},this),i(t,this._pieceList)},pieces:function(){var t=this.option,s=this._pieceList;T.each(t.pieces,function(e,o){T.isObject(e)||(e={value:e});var l={text:"",index:o};if(e.label!=null&&(l.text=e.label),e.hasOwnProperty("value")){var u=l.value=e.value;l.interval=[u,u],l.close=[1,1]}else{for(var f=l.interval=[],p=l.close=[0,0],v=[1,0,1],A=[-Infinity,Infinity],y=[],x=0;x<2;x++){for(var C=[["gte","gt","min"],["lte","lt","max"]][x],w=0;w<3&&f[x]==null;w++)f[x]=e[C[w]],p[x]=v[w],y[x]=w===2;f[x]==null&&(f[x]=A[x])}y[0]&&f[1]===Infinity&&(p[0]=0),y[1]&&f[0]===-Infinity&&(p[1]=0),f[0]===f[1]&&p[0]&&p[1]&&(l.value=f[0])}l.visual=S.retrieveVisuals(e),s.push(l)},this),i(t,s),c(s),T.each(s,function(e){var o=e.close,l=[["<","\u2264"][o[1]],[">","\u2265"][o[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,l)},this)}};function i(t,s){var e=t.inverse;(t.orient==="vertical"?!e:e)&&s.reverse()}var n=a;H.exports=n},BvKs:function(H,k,d){"use strict";d.d(k,"a",function(){return Ut});var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("7W2i"),r=d.n(a),i=d("LQ03"),n=d.n(i),t=d("q1tI"),s=d("VTBJ"),e=d("1OyB"),o=d("vuIU"),l=d("JX7q"),u=d("Ji7U"),f=d("LK+K"),p=d("I8Z2"),v=d("BGR+"),A=d("wx14"),y=d("rePB"),x=d("4IlW"),C=d("2GS6"),w=d("Gytx"),b=d.n(w),_=d("TSYQ"),O=d.n(_),L=d("U8pU"),D=d("ODXe"),N=/iPhone/i,M=/iPod/i,F=/iPad/i,R=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,B=/\bAndroid(?:.+)SD4930UR\b/i,K=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,U=/Windows Phone/i,z=/\bWindows(?:.+)ARM\b/i,V=/BlackBerry/i,Y=/BB10/i,J=/Opera Mini/i,se=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function ae(pt,ut){return pt.test(ut)}function ge(pt){var ut=pt||(typeof navigator!="undefined"?navigator.userAgent:""),Jt=ut.split("[FBAN");if(typeof Jt[1]!="undefined"){var Zt=Jt,At=Object(D.a)(Zt,1);ut=At[0]}if(Jt=ut.split("Twitter"),typeof Jt[1]!="undefined"){var Pt=Jt,vt=Object(D.a)(Pt,1);ut=vt[0]}var Ft={apple:{phone:ae(N,ut)&&!ae(U,ut),ipod:ae(M,ut),tablet:!ae(N,ut)&&ae(F,ut)&&!ae(U,ut),device:(ae(N,ut)||ae(M,ut)||ae(F,ut))&&!ae(U,ut)},amazon:{phone:ae(B,ut),tablet:!ae(B,ut)&&ae(K,ut),device:ae(B,ut)||ae(K,ut)},android:{phone:!ae(U,ut)&&ae(B,ut)||!ae(U,ut)&&ae(R,ut),tablet:!ae(U,ut)&&!ae(B,ut)&&!ae(R,ut)&&(ae(K,ut)||ae(j,ut)),device:!ae(U,ut)&&(ae(B,ut)||ae(K,ut)||ae(R,ut)||ae(j,ut))||ae(/\bokhttp\b/i,ut)},windows:{phone:ae(U,ut),tablet:ae(z,ut),device:ae(U,ut)||ae(z,ut)},other:{blackberry:ae(V,ut),blackberry10:ae(Y,ut),opera:ae(J,ut),firefox:ae($,ut),chrome:ae(se,ut),device:ae(V,ut)||ae(Y,ut)||ae(J,ut)||ae($,ut)||ae(se,ut)},any:null,phone:null,tablet:null};return Ft.any=Ft.apple.device||Ft.android.device||Ft.windows.device||Ft.other.device,Ft.phone=Ft.apple.phone||Ft.android.phone||Ft.windows.phone,Ft.tablet=Ft.apple.tablet||Ft.android.tablet||Ft.windows.tablet,Ft}var pe=Object(s.a)(Object(s.a)({},ge()),{},{isMobile:ge}),Ne=pe;function de(){}function Le(pt,ut,Jt){var Zt=ut||"";return pt.key||"".concat(Zt,"item_").concat(Jt)}function Q(pt){return"".concat(pt,"-menu-")}function ce(pt,ut){var Jt=-1;t.Children.forEach(pt,function(Zt){Jt+=1,Zt&&Zt.type&&Zt.type.isMenuItemGroup?t.Children.forEach(Zt.props.children,function(At){Jt+=1,ut(At,Jt)}):ut(Zt,Jt)})}function Ke(pt,ut,Jt){if(!pt||Jt.find)return;t.Children.forEach(pt,function(Zt){if(Zt){var At=Zt.type;if(!At||!(At.isSubMenu||At.isMenuItem||At.isMenuItemGroup))return;ut.indexOf(Zt.key)!==-1?Jt.find=!0:Zt.props.children&&Ke(Zt.props.children,ut,Jt)}})}var ee=["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"],X=function(ut){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt=ut&&typeof ut.getBoundingClientRect=="function"&&ut.getBoundingClientRect().width;if(Zt){if(Jt){var At=getComputedStyle(ut),Pt=At.marginLeft,vt=At.marginRight;Zt+=+Pt.replace("px","")+ +vt.replace("px","")}Zt=+Zt.toFixed(6)}return Zt||0},G=function(ut,Jt,Zt){ut&&Object(L.a)(ut.style)==="object"&&(ut.style[Jt]=Zt)},Z=function(){return Ne.any},ve=d("KQm4"),ue=d("Ff2n"),_e=d("i8i4"),xe=d("bdgK"),oe=d("uciX"),fe=d("8XRh"),Te={adjustX:1,adjustY:1},ze={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Te,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Te,offset:[4,0]}},it={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Te,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Te,offset:[4,0]}},et=ze,Oe=0,gt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ge=function(ut,Jt,Zt){var At=Q(Jt),Pt=ut.getState();ut.setState({defaultActiveFirst:Object(s.a)(Object(s.a)({},Pt.defaultActiveFirst),{},Object(y.a)({},At,Zt))})},wt=function(pt){Object(u.a)(Jt,pt);var ut=Object(f.a)(Jt);function Jt(Zt){var At;Object(e.a)(this,Jt),At=ut.call(this,Zt),At.onDestroy=function(ur){At.props.onDestroy(ur)},At.onKeyDown=function(ur){var Yr=ur.keyCode,Jr=At.menuInstance,Tn=At.props,Dn=Tn.isOpen,zn=Tn.store;if(Yr===x.a.ENTER)return At.onTitleClick(ur),Ge(zn,At.props.eventKey,!0),!0;if(Yr===x.a.RIGHT)return Dn?Jr.onKeyDown(ur):(At.triggerOpenChange(!0),Ge(zn,At.props.eventKey,!0)),!0;if(Yr===x.a.LEFT){var qn;if(Dn)qn=Jr.onKeyDown(ur);else return;return qn||(At.triggerOpenChange(!1),qn=!0),qn}return Dn&&(Yr===x.a.UP||Yr===x.a.DOWN)?Jr.onKeyDown(ur):void 0},At.onOpenChange=function(ur){At.props.onOpenChange(ur)},At.onPopupVisibleChange=function(ur){At.triggerOpenChange(ur,ur?"mouseenter":"mouseleave")},At.onMouseEnter=function(ur){var Yr=At.props,Jr=Yr.eventKey,Tn=Yr.onMouseEnter,Dn=Yr.store;Ge(Dn,At.props.eventKey,!1),Tn({key:Jr,domEvent:ur})},At.onMouseLeave=function(ur){var Yr=At.props,Jr=Yr.parentMenu,Tn=Yr.eventKey,Dn=Yr.onMouseLeave;Jr.subMenuInstance=Object(l.a)(At),Dn({key:Tn,domEvent:ur})},At.onTitleMouseEnter=function(ur){var Yr=At.props,Jr=Yr.eventKey,Tn=Yr.onItemHover,Dn=Yr.onTitleMouseEnter;Tn({key:Jr,hover:!0}),Dn({key:Jr,domEvent:ur})},At.onTitleMouseLeave=function(ur){var Yr=At.props,Jr=Yr.parentMenu,Tn=Yr.eventKey,Dn=Yr.onItemHover,zn=Yr.onTitleMouseLeave;Jr.subMenuInstance=Object(l.a)(At),Dn({key:Tn,hover:!1}),zn({key:Tn,domEvent:ur})},At.onTitleClick=function(ur){var Yr=Object(l.a)(At),Jr=Yr.props;if(Jr.onTitleClick({key:Jr.eventKey,domEvent:ur}),Jr.triggerSubMenuAction==="hover")return;At.triggerOpenChange(!Jr.isOpen,"click"),Ge(Jr.store,At.props.eventKey,!1)},At.onSubMenuClick=function(ur){typeof At.props.onClick=="function"&&At.props.onClick(At.addKeyPath(ur))},At.onSelect=function(ur){At.props.onSelect(ur)},At.onDeselect=function(ur){At.props.onDeselect(ur)},At.getPrefixCls=function(){return"".concat(At.props.rootPrefixCls,"-submenu")},At.getActiveClassName=function(){return"".concat(At.getPrefixCls(),"-active")},At.getDisabledClassName=function(){return"".concat(At.getPrefixCls(),"-disabled")},At.getSelectedClassName=function(){return"".concat(At.getPrefixCls(),"-selected")},At.getOpenClassName=function(){return"".concat(At.props.rootPrefixCls,"-submenu-open")},At.saveMenuInstance=function(ur){At.menuInstance=ur},At.addKeyPath=function(ur){return Object(s.a)(Object(s.a)({},ur),{},{keyPath:(ur.keyPath||[]).concat(At.props.eventKey)})},At.triggerOpenChange=function(ur,Yr){var Jr=At.props.eventKey,Tn=function(){At.onOpenChange({key:Jr,item:Object(l.a)(At),trigger:Yr,open:ur})};Yr==="mouseenter"?At.mouseenterTimeout=setTimeout(function(){Tn()},0):Tn()},At.isChildrenSelected=function(){var ur={find:!1};return Ke(At.props.children,At.props.selectedKeys,ur),ur.find},At.isOpen=function(){return At.props.openKeys.indexOf(At.props.eventKey)!==-1},At.adjustWidth=function(){if(!At.subMenuTitle||!At.menuInstance)return;var ur=_e.findDOMNode(At.menuInstance);if(ur.offsetWidth>=At.subMenuTitle.offsetWidth)return;ur.style.minWidth="".concat(At.subMenuTitle.offsetWidth,"px")},At.saveSubMenuTitle=function(ur){At.subMenuTitle=ur},At.getBaseProps=function(){var ur=Object(l.a)(At),Yr=ur.props;return{mode:Yr.mode==="horizontal"?"vertical":Yr.mode,visible:At.props.isOpen,level:Yr.level+1,inlineIndent:Yr.inlineIndent,focusable:!1,onClick:At.onSubMenuClick,onSelect:At.onSelect,onDeselect:At.onDeselect,onDestroy:At.onDestroy,selectedKeys:Yr.selectedKeys,eventKey:"".concat(Yr.eventKey,"-menu-"),openKeys:Yr.openKeys,motion:Yr.motion,onOpenChange:At.onOpenChange,subMenuOpenDelay:Yr.subMenuOpenDelay,parentMenu:Object(l.a)(At),subMenuCloseDelay:Yr.subMenuCloseDelay,forceSubMenuRender:Yr.forceSubMenuRender,triggerSubMenuAction:Yr.triggerSubMenuAction,builtinPlacements:Yr.builtinPlacements,defaultActiveFirst:Yr.store.getState().defaultActiveFirst[Q(Yr.eventKey)],multiple:Yr.multiple,prefixCls:Yr.rootPrefixCls,id:At.internalMenuId,manualRef:At.saveMenuInstance,itemIcon:Yr.itemIcon,expandIcon:Yr.expandIcon,direction:Yr.direction}},At.getMotion=function(ur,Yr){var Jr=Object(l.a)(At),Tn=Jr.haveRendered,Dn=At.props,zn=Dn.motion,qn=Dn.rootPrefixCls,Ai=Object(s.a)(Object(s.a)({},zn),{},{leavedClassName:"".concat(qn,"-hidden"),removeOnLeave:!1,motionAppear:Tn||!Yr||ur!=="inline"});return Ai};var Pt=Zt.store,vt=Zt.eventKey,Ft=Pt.getState(),gr=Ft.defaultActiveFirst;At.isRootMenu=!1;var or=!1;return gr&&(or=gr[vt]),Ge(Pt,vt,or),At}return Object(o.a)(Jt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var At=this,Pt=this.props,vt=Pt.mode,Ft=Pt.parentMenu,gr=Pt.manualRef;if(gr&&gr(this),vt!=="horizontal"||!Ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return At.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var At=this.props,Pt=At.onDestroy,vt=At.eventKey;Pt&&Pt(vt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(At){var Pt=this,vt=this.getBaseProps(),Ft=this.getMotion(vt.mode,vt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||vt.visible||vt.forceSubMenuRender,!this.haveOpened)return t.createElement("div",null);var gr=vt.direction;return t.createElement(fe.default,Object.assign({visible:vt.visible},Ft),function(or){var ur=or.className,Yr=or.style,Jr=O()("".concat(vt.prefixCls,"-sub"),ur,Object(y.a)({},"".concat(vt.prefixCls,"-rtl"),gr==="rtl"));return t.createElement(zt,Object.assign({},vt,{id:Pt.internalMenuId,className:Jr,style:Yr}),At)})}},{key:"render",value:function(){var At,Pt=Object(s.a)({},this.props),vt=Pt.isOpen,Ft=this.getPrefixCls(),gr=Pt.mode==="inline",or=O()(Ft,"".concat(Ft,"-").concat(Pt.mode),(At={},Object(y.a)(At,Pt.className,!!Pt.className),Object(y.a)(At,this.getOpenClassName(),vt),Object(y.a)(At,this.getActiveClassName(),Pt.active||vt&&!gr),Object(y.a)(At,this.getDisabledClassName(),Pt.disabled),Object(y.a)(At,this.getSelectedClassName(),this.isChildrenSelected()),At));this.internalMenuId||(Pt.eventKey?this.internalMenuId="".concat(Pt.eventKey,"$Menu"):(Oe+=1,this.internalMenuId="$__$".concat(Oe,"$Menu")));var ur={},Yr={},Jr={};Pt.disabled||(ur={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Yr={onClick:this.onTitleClick},Jr={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Tn={},Dn=Pt.direction;gr&&(Dn==="rtl"?Tn.paddingRight=Pt.inlineIndent*Pt.level:Tn.paddingLeft=Pt.inlineIndent*Pt.level);var zn={};this.props.isOpen&&(zn={"aria-owns":this.internalMenuId});var qn=null;Pt.mode!=="horizontal"&&(qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qn=t.createElement(this.props.expandIcon,Object(s.a)({},this.props))));var Ai=t.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Tn,className:"".concat(Ft,"-title"),role:"button"},Jr,Yr,{"aria-expanded":vt},zn,{"aria-haspopup":"true",title:typeof Pt.title=="string"?Pt.title:void 0}),Pt.title,qn||t.createElement("i",{className:"".concat(Ft,"-arrow")})),Mi=this.renderChildren(Pt.children),Ye=Pt.parentMenu.isRootMenu?Pt.parentMenu.props.getPopupContainer:function(pr){return pr.parentNode},Ce=gt[Pt.mode],ke=Pt.popupOffset?{offset:Pt.popupOffset}:{},Fe=Pt.mode==="inline"?"":Pt.popupClassName;Fe+=Dn==="rtl"?" ".concat(Ft,"-rtl"):"";var Ve=Pt.disabled,We=Pt.triggerSubMenuAction,Ze=Pt.subMenuOpenDelay,yt=Pt.forceSubMenuRender,lt=Pt.subMenuCloseDelay,kt=Pt.builtinPlacements;ee.forEach(function(pr){return delete Pt[pr]}),delete Pt.onClick;var wr=Dn==="rtl"?Object.assign({},it,kt):Object.assign({},ze,kt);return delete Pt.direction,t.createElement("li",Object.assign({},Pt,ur,{className:or,role:"menuitem"}),gr&&Ai,gr&&Mi,!gr&&t.createElement(oe.a,{prefixCls:Ft,popupClassName:O()("".concat(Ft,"-popup"),Fe),getPopupContainer:Ye,builtinPlacements:wr,popupPlacement:Ce,popupVisible:vt,popupAlign:ke,popup:Mi,action:Ve?[]:[We],mouseEnterDelay:Ze,mouseLeaveDelay:lt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:yt},Ai))}}]),Jt}(t.Component);wt.defaultProps={onMouseEnter:de,onMouseLeave:de,onTitleMouseEnter:de,onTitleMouseLeave:de,onTitleClick:de,manualRef:de,mode:"vertical",title:""};var xt=Object(p.b)(function(pt,ut){var Jt=pt.openKeys,Zt=pt.activeKey,At=pt.selectedKeys,Pt=ut.eventKey,vt=ut.subMenuKey;return{isOpen:Jt.indexOf(Pt)>-1,active:Zt[vt]===Pt,selectedKeys:At}})(wt);xt.isSubMenu=!0;var Ct=xt,Dt="menuitem-overflowed",Ht=.5,Je=function(pt){Object(u.a)(Jt,pt);var ut=Object(f.a)(Jt);function Jt(){var Zt;return Object(e.a)(this,Jt),Zt=ut.apply(this,arguments),Zt.resizeObserver=null,Zt.mutationObserver=null,Zt.originalTotalWidth=0,Zt.overflowedItems=[],Zt.menuItemSizes=[],Zt.cancelFrameId=null,Zt.state={lastVisibleIndex:void 0},Zt.getMenuItemNodes=function(){var At=Zt.props.prefixCls,Pt=_e.findDOMNode(Object(l.a)(Zt));return Pt?[].slice.call(Pt.children).filter(function(vt){return vt.className.split(" ").indexOf("".concat(At,"-overflowed-submenu"))<0}):[]},Zt.getOverflowedSubMenuItem=function(At,Pt,vt){var Ft=Zt.props,gr=Ft.overflowedIndicator,or=Ft.level,ur=Ft.mode,Yr=Ft.prefixCls,Jr=Ft.theme;if(or!==1||ur!=="horizontal")return null;var Tn=Zt.props.children[0],Dn=Tn.props,zn=Dn.children,qn=Dn.title,Ai=Dn.style,Mi=Object(ue.a)(Dn,["children","title","style"]),Ye=Object(s.a)({},Ai),Ce="".concat(At,"-overflowed-indicator"),ke="".concat(At,"-overflowed-indicator");Pt.length===0&&vt!==!0?Ye=Object(s.a)(Object(s.a)({},Ye),{},{display:"none"}):vt&&(Ye=Object(s.a)(Object(s.a)({},Ye),{},{visibility:"hidden",position:"absolute"}),Ce="".concat(Ce,"-placeholder"),ke="".concat(ke,"-placeholder"));var Fe=Jr?"".concat(Yr,"-").concat(Jr):"",Ve={};return ee.forEach(function(We){Mi[We]!==void 0&&(Ve[We]=Mi[We])}),t.createElement(Ct,Object.assign({title:gr,className:"".concat(Yr,"-overflowed-submenu"),popupClassName:Fe},Ve,{key:Ce,eventKey:ke,disabled:!1,style:Ye}),Pt)},Zt.setChildrenWidthAndResize=function(){if(Zt.props.mode!=="horizontal")return;var At=_e.findDOMNode(Object(l.a)(Zt));if(!At)return;var Pt=At.children;if(!Pt||Pt.length===0)return;var vt=At.children[Pt.length-1];G(vt,"display","inline-block");var Ft=Zt.getMenuItemNodes(),gr=Ft.filter(function(or){return or.className.split(" ").indexOf(Dt)>=0});gr.forEach(function(or){G(or,"display","inline-block")}),Zt.menuItemSizes=Ft.map(function(or){return X(or,!0)}),gr.forEach(function(or){G(or,"display","none")}),Zt.overflowedIndicatorWidth=X(At.children[At.children.length-1],!0),Zt.originalTotalWidth=Zt.menuItemSizes.reduce(function(or,ur){return or+ur},0),Zt.handleResize(),G(vt,"display","none")},Zt.handleResize=function(){if(Zt.props.mode!=="horizontal")return;var At=_e.findDOMNode(Object(l.a)(Zt));if(!At)return;var Pt=X(At);Zt.overflowedItems=[];var vt=0,Ft;Zt.originalTotalWidth>Pt+Ht&&(Ft=-1,Zt.menuItemSizes.forEach(function(gr){vt+=gr,vt+Zt.overflowedIndicatorWidth<=Pt&&(Ft+=1)})),Zt.setState({lastVisibleIndex:Ft})},Zt}return Object(o.a)(Jt,[{key:"componentDidMount",value:function(){var At=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Pt=_e.findDOMNode(this);if(!Pt)return;this.resizeObserver=new xe.default(function(vt){vt.forEach(function(){var Ft=At.cancelFrameId;cancelAnimationFrame(Ft),At.cancelFrameId=requestAnimationFrame(At.setChildrenWidthAndResize)})}),[].slice.call(Pt.children).concat(Pt).forEach(function(vt){At.resizeObserver.observe(vt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){At.resizeObserver.disconnect(),[].slice.call(Pt.children).concat(Pt).forEach(function(vt){At.resizeObserver.observe(vt)}),At.setChildrenWidthAndResize()}),this.mutationObserver.observe(Pt,{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(At){var Pt=this,vt=this.state.lastVisibleIndex;return(At||[]).reduce(function(Ft,gr,or){var ur=gr;if(Pt.props.mode==="horizontal"){var Yr=Pt.getOverflowedSubMenuItem(gr.props.eventKey,[]);vt!==void 0&&Pt.props.className.indexOf("".concat(Pt.props.prefixCls,"-root"))!==-1&&(or>vt&&(ur=t.cloneElement(gr,{style:{display:"none"},eventKey:"".concat(gr.props.eventKey,"-hidden"),className:"".concat(Dt)})),or===vt+1&&(Pt.overflowedItems=At.slice(vt+1).map(function(Tn){return t.cloneElement(Tn,{key:Tn.props.eventKey,mode:"vertical-left"})}),Yr=Pt.getOverflowedSubMenuItem(gr.props.eventKey,Pt.overflowedItems)));var Jr=[].concat(Object(ve.a)(Ft),[Yr,ur]);return or===At.length-1&&Jr.push(Pt.getOverflowedSubMenuItem(gr.props.eventKey,[],!0)),Jr}return[].concat(Object(ve.a)(Ft),[ur])},[])}},{key:"render",value:function(){var At=this.props,Pt=At.visible,vt=At.prefixCls,Ft=At.overflowedIndicator,gr=At.mode,or=At.level,ur=At.tag,Yr=At.children,Jr=At.theme,Tn=Object(ue.a)(At,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dn=ur;return t.createElement(Dn,Object.assign({},Tn),this.renderChildren(Yr))}}]),Jt}(t.Component);Je.defaultProps={tag:"div",className:""};var ye=Je;function ie(pt){return pt.length?pt.every(function(ut){return!!ut.props.disabled}):!0}function bt(pt,ut,Jt){var Zt=pt.getState();pt.setState({activeKey:Object(s.a)(Object(s.a)({},Zt.activeKey),{},Object(y.a)({},ut,Jt))})}function qe(pt){return pt.eventKey||"0-menu-"}function me(pt,ut){var Jt=ut,Zt=pt.children,At=pt.eventKey;if(Jt){var Pt;if(ce(Zt,function(vt,Ft){vt&&vt.props&&!vt.props.disabled&&Jt===Le(vt,At,Ft)&&(Pt=!0)}),Pt)return Jt}return Jt=null,pt.defaultActiveFirst&&ce(Zt,function(vt,Ft){!Jt&&vt&&!vt.props.disabled&&(Jt=Le(vt,At,Ft))}),Jt}function Rt(pt){if(pt){var ut=this.instanceArray.indexOf(pt);ut!==-1?this.instanceArray[ut]=pt:this.instanceArray.push(pt)}}var er=function(pt){Object(u.a)(Jt,pt);var ut=Object(f.a)(Jt);function Jt(Zt){var At;return Object(e.a)(this,Jt),At=ut.call(this,Zt),At.onKeyDown=function(Pt,vt){var Ft=Pt.keyCode,gr;if(At.getFlatInstanceArray().forEach(function(ur){ur&&ur.props.active&&ur.onKeyDown&&(gr=ur.onKeyDown(Pt))}),gr)return 1;var or=null;return(Ft===x.a.UP||Ft===x.a.DOWN)&&(or=At.step(Ft===x.a.UP?-1:1)),or?(Pt.preventDefault(),bt(At.props.store,qe(At.props),or.props.eventKey),typeof vt=="function"&&vt(or),1):void 0},At.onItemHover=function(Pt){var vt=Pt.key,Ft=Pt.hover;bt(At.props.store,qe(At.props),Ft?vt:null)},At.onDeselect=function(Pt){At.props.onDeselect(Pt)},At.onSelect=function(Pt){At.props.onSelect(Pt)},At.onClick=function(Pt){At.props.onClick(Pt)},At.onOpenChange=function(Pt){At.props.onOpenChange(Pt)},At.onDestroy=function(Pt){At.props.onDestroy(Pt)},At.getFlatInstanceArray=function(){return At.instanceArray},At.step=function(Pt){var vt=At.getFlatInstanceArray(),Ft=At.props.store.getState().activeKey[qe(At.props)],gr=vt.length;if(!gr)return null;Pt<0&&(vt=vt.concat().reverse());var or=-1;if(vt.every(function(Tn,Dn){return Tn&&Tn.props.eventKey===Ft?(or=Dn,!1):!0}),!At.props.defaultActiveFirst&&or!==-1&&ie(vt.slice(or,gr-1)))return;var ur=(or+1)%gr,Yr=ur;do{var Jr=vt[Yr];if(!Jr||Jr.props.disabled)Yr=(Yr+1)%gr;else return Jr}while(Yr!==ur);return null},At.renderCommonMenuItem=function(Pt,vt,Ft){var gr=At.props.store.getState(),or=Object(l.a)(At),ur=or.props,Yr=Le(Pt,ur.eventKey,vt),Jr=Pt.props;if(!Jr||typeof Pt.type=="string")return Pt;var Tn=Yr===gr.activeKey,Dn=Object(s.a)(Object(s.a)({mode:Jr.mode||ur.mode,level:ur.level,inlineIndent:ur.inlineIndent,renderMenuItem:At.renderMenuItem,rootPrefixCls:ur.prefixCls,index:vt,parentMenu:ur.parentMenu,manualRef:Jr.disabled?void 0:Object(C.a)(Pt.ref,Rt.bind(Object(l.a)(At))),eventKey:Yr,active:!Jr.disabled&&Tn,multiple:ur.multiple,onClick:function(qn){(Jr.onClick||de)(qn),At.onClick(qn)},onItemHover:At.onItemHover,motion:ur.motion,subMenuOpenDelay:ur.subMenuOpenDelay,subMenuCloseDelay:ur.subMenuCloseDelay,forceSubMenuRender:ur.forceSubMenuRender,onOpenChange:At.onOpenChange,onDeselect:At.onDeselect,onSelect:At.onSelect,builtinPlacements:ur.builtinPlacements,itemIcon:Jr.itemIcon||At.props.itemIcon,expandIcon:Jr.expandIcon||At.props.expandIcon},Ft),{},{direction:ur.direction});return(ur.mode==="inline"||Z())&&(Dn.triggerSubMenuAction="click"),t.cloneElement(Pt,Dn)},At.renderMenuItem=function(Pt,vt,Ft){if(!Pt)return null;var gr=At.props.store.getState(),or={openKeys:gr.openKeys,selectedKeys:gr.selectedKeys,triggerSubMenuAction:At.props.triggerSubMenuAction,subMenuKey:Ft};return At.renderCommonMenuItem(Pt,vt,or)},Zt.store.setState({activeKey:Object(s.a)(Object(s.a)({},Zt.store.getState().activeKey),{},Object(y.a)({},Zt.eventKey,me(Zt,Zt.activeKey)))}),At.instanceArray=[],At}return Object(o.a)(Jt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(At){return this.props.visible||At.visible||this.props.className!==At.className||!b()(this.props.style,At.style)}},{key:"componentDidUpdate",value:function(At){var Pt=this.props,vt="activeKey"in Pt?Pt.activeKey:Pt.store.getState().activeKey[qe(Pt)],Ft=me(Pt,vt);if(Ft!==vt)bt(Pt.store,qe(Pt),Ft);else if("activeKey"in At){var gr=me(At,At.activeKey);Ft!==gr&&bt(Pt.store,qe(Pt),Ft)}}},{key:"render",value:function(){var At=this,Pt=Object(A.a)({},this.props);this.instanceArray=[];var vt=O()(Pt.prefixCls,Pt.className,"".concat(Pt.prefixCls,"-").concat(Pt.mode)),Ft={className:vt,role:Pt.role||"menu"};Pt.id&&(Ft.id=Pt.id),Pt.focusable&&(Ft.tabIndex=0,Ft.onKeyDown=this.onKeyDown);var gr=Pt.prefixCls,or=Pt.eventKey,ur=Pt.visible,Yr=Pt.level,Jr=Pt.mode,Tn=Pt.overflowedIndicator,Dn=Pt.theme;return ee.forEach(function(zn){return delete Pt[zn]}),delete Pt.onClick,t.createElement(ye,Object.assign({},Pt,{prefixCls:gr,mode:Jr,tag:"ul",level:Yr,theme:Dn,visible:ur,overflowedIndicator:Tn},Ft),t.Children.map(Pt.children,function(zn,qn){return At.renderMenuItem(zn,qn,or||"0-menu-")}))}}]),Jt}(t.Component);er.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:de};var ct=Object(p.b)()(er),zt=ct,sr=d("Kwbf");function Kr(pt,ut,Jt){var Zt=pt.prefixCls,At=pt.motion,Pt=pt.defaultMotions,vt=Pt===void 0?{}:Pt,Ft=pt.openAnimation,gr=pt.openTransitionName,or=ut.switchingModeFromInline;if(At)return At;if(Object(L.a)(Ft)==="object"&&Ft)Object(sr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ft=="string")return{motionName:"".concat(Zt,"-open-").concat(Ft)};if(gr)return{motionName:gr};var ur=vt[Jt];return ur||(or?null:vt.other)}var ar=function(pt){Object(u.a)(Jt,pt);var ut=Object(f.a)(Jt);function Jt(Zt){var At;Object(e.a)(this,Jt),At=ut.call(this,Zt),At.inlineOpenKeys=[],At.onSelect=function(Ft){var gr=Object(l.a)(At),or=gr.props;if(or.selectable){var ur=At.store.getState(),Yr=ur.selectedKeys,Jr=Ft.key;or.multiple?Yr=Yr.concat([Jr]):Yr=[Jr],"selectedKeys"in or||At.store.setState({selectedKeys:Yr}),or.onSelect(Object(s.a)(Object(s.a)({},Ft),{},{selectedKeys:Yr}))}},At.onClick=function(Ft){var gr=At.getRealMenuMode(),or=Object(l.a)(At),ur=or.store,Yr=or.props.onOpenChange;gr!=="inline"&&!("openKeys"in At.props)&&(ur.setState({openKeys:[]}),Yr([])),At.props.onClick(Ft)},At.onKeyDown=function(Ft,gr){At.innerMenu.getWrappedInstance().onKeyDown(Ft,gr)},At.onOpenChange=function(Ft){var gr=Object(l.a)(At),or=gr.props,ur=At.store.getState().openKeys.concat(),Yr=!1,Jr=function(Dn){var zn=!1;if(Dn.open)zn=ur.indexOf(Dn.key)===-1,zn&&ur.push(Dn.key);else{var qn=ur.indexOf(Dn.key);zn=qn!==-1,zn&&ur.splice(qn,1)}Yr=Yr||zn};Array.isArray(Ft)?Ft.forEach(Jr):Jr(Ft),Yr&&("openKeys"in At.props||At.store.setState({openKeys:ur}),or.onOpenChange(ur))},At.onDeselect=function(Ft){var gr=Object(l.a)(At),or=gr.props;if(or.selectable){var ur=At.store.getState().selectedKeys.concat(),Yr=Ft.key,Jr=ur.indexOf(Yr);Jr!==-1&&ur.splice(Jr,1),"selectedKeys"in or||At.store.setState({selectedKeys:ur}),or.onDeselect(Object(s.a)(Object(s.a)({},Ft),{},{selectedKeys:ur}))}},At.onMouseEnter=function(Ft){At.restoreModeVerticalFromInline();var gr=At.props.onMouseEnter;gr&&gr(Ft)},At.onTransitionEnd=function(Ft){var gr=Ft.propertyName==="width"&&Ft.target===Ft.currentTarget,or=Ft.target.className,ur=Object.prototype.toString.call(or)==="[object SVGAnimatedString]"?or.animVal:or,Yr=Ft.propertyName==="font-size"&&ur.indexOf("anticon")>=0;(gr||Yr)&&At.restoreModeVerticalFromInline()},At.setInnerMenu=function(Ft){At.innerMenu=Ft},At.isRootMenu=!0;var Pt=Zt.defaultSelectedKeys,vt=Zt.defaultOpenKeys;return"selectedKeys"in Zt&&(Pt=Zt.selectedKeys||[]),"openKeys"in Zt&&(vt=Zt.openKeys||[]),At.store=Object(p.c)({selectedKeys:Pt,openKeys:vt,activeKey:{"0-menu-":me(Zt,Zt.activeKey)}}),At.state={switchingModeFromInline:!1},At}return Object(o.a)(Jt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(At){this.updateOpentKeysWhenSwitchMode(At),this.updateMiniStore();var Pt=this.props,vt=Pt.siderCollapsed,Ft=Pt.inlineCollapsed,gr=Pt.onOpenChange;(!At.inlineCollapsed&&Ft||!At.siderCollapsed&&vt)&&gr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(At){var Pt=this.props,vt=this.store,Ft=this.inlineOpenKeys,gr=vt.getState(),or={};At.mode==="inline"&&Pt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Pt||((Pt.inlineCollapsed&&!At.inlineCollapsed||Pt.siderCollapsed&&!At.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=gr.openKeys.concat(),or.openKeys=[]),(!Pt.inlineCollapsed&&At.inlineCollapsed||!Pt.siderCollapsed&&At.siderCollapsed)&&(or.openKeys=Ft,this.inlineOpenKeys=[])),Object.keys(or).length&&vt.setState(or)}},{key:"updateMenuDisplay",value:function(){var At=this.props.collapsedWidth,Pt=this.store,vt=this.prevOpenKeys,Ft=this.getInlineCollapsed()&&(At===0||At==="0"||At==="0px");Ft?(this.prevOpenKeys=Pt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):vt&&(this.store.setState({openKeys:vt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var At=this.props.mode,Pt=this.state.switchingModeFromInline,vt=this.getInlineCollapsed();return Pt&&vt?"inline":vt?"vertical":At}},{key:"getInlineCollapsed",value:function(){var At=this.props,Pt=At.inlineCollapsed,vt=At.siderCollapsed;return vt!==void 0?vt:Pt}},{key:"restoreModeVerticalFromInline",value:function(){var At=this.state.switchingModeFromInline;At&&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 At=Object(s.a)({},Object(v.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Pt=this.getRealMenuMode();return At.className+=" ".concat(At.prefixCls,"-root"),At.direction==="rtl"&&(At.className+=" ".concat(At.prefixCls,"-rtl")),At=Object(s.a)(Object(s.a)({},At),{},{mode:Pt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Kr(this.props,this.state,Pt)}),delete At.openAnimation,delete At.openTransitionName,t.createElement(p.a,{store:this.store},t.createElement(zt,Object.assign({},At,{ref:this.setInnerMenu}),this.props.children))}}]),Jt}(t.Component);ar.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:t.createElement("span",null,"\xB7\xB7\xB7")};var nr=ar,Lt=function(pt){Object(u.a)(Jt,pt);var ut=Object(f.a)(Jt);function Jt(){var Zt;return Object(e.a)(this,Jt),Zt=ut.apply(this,arguments),Zt.onKeyDown=function(At){var Pt=At.keyCode;return Pt===x.a.ENTER?(Zt.onClick(At),!0):void 0},Zt.onMouseLeave=function(At){var Pt=Zt.props,vt=Pt.eventKey,Ft=Pt.onItemHover,gr=Pt.onMouseLeave;Ft({key:vt,hover:!1}),gr({key:vt,domEvent:At})},Zt.onMouseEnter=function(At){var Pt=Zt.props,vt=Pt.eventKey,Ft=Pt.onItemHover,gr=Pt.onMouseEnter;Ft({key:vt,hover:!0}),gr({key:vt,domEvent:At})},Zt.onClick=function(At){var Pt=Zt.props,vt=Pt.eventKey,Ft=Pt.multiple,gr=Pt.onClick,or=Pt.onSelect,ur=Pt.onDeselect,Yr=Pt.isSelected,Jr={key:vt,keyPath:[vt],item:Object(l.a)(Zt),domEvent:At};gr(Jr),Ft?Yr?ur(Jr):or(Jr):Yr||or(Jr)},Zt.saveNode=function(At){Zt.node=At},Zt}return Object(o.a)(Jt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var At=this.props;At.onDestroy&&At.onDestroy(At.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 At,Pt=Object(s.a)({},this.props),vt=O()(this.getPrefixCls(),Pt.className,(At={},Object(y.a)(At,this.getActiveClassName(),!Pt.disabled&&Pt.active),Object(y.a)(At,this.getSelectedClassName(),Pt.isSelected),Object(y.a)(At,this.getDisabledClassName(),Pt.disabled),At)),Ft=Object(s.a)(Object(s.a)({},Pt.attribute),{},{title:typeof Pt.title=="string"?Pt.title:void 0,className:vt,role:Pt.role||"menuitem","aria-disabled":Pt.disabled});Pt.role==="option"?Ft=Object(s.a)(Object(s.a)({},Ft),{},{role:"option","aria-selected":Pt.isSelected}):(Pt.role===null||Pt.role==="none")&&(Ft.role="none");var gr={onClick:Pt.disabled?null:this.onClick,onMouseLeave:Pt.disabled?null:this.onMouseLeave,onMouseEnter:Pt.disabled?null:this.onMouseEnter},or=Object(s.a)({},Pt.style);Pt.mode==="inline"&&(Pt.direction==="rtl"?or.paddingRight=Pt.inlineIndent*Pt.level:or.paddingLeft=Pt.inlineIndent*Pt.level),ee.forEach(function(Yr){return delete Pt[Yr]}),delete Pt.direction;var ur=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ur=t.createElement(this.props.itemIcon,this.props)),t.createElement("li",Object.assign({},Object(v.default)(Pt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ft,gr,{style:or,ref:this.saveNode}),Pt.children,ur)}}]),Jt}(t.Component);Lt.isMenuItem=!0,Lt.defaultProps={onSelect:de,onMouseEnter:de,onMouseLeave:de,manualRef:de};var st=Object(p.b)(function(pt,ut){var Jt=pt.activeKey,Zt=pt.selectedKeys,At=ut.eventKey,Pt=ut.subMenuKey;return{active:Jt[Pt]===At,isSelected:Zt.indexOf(At)!==-1}})(Lt),Qe=st,qt=function(pt){Object(u.a)(Jt,pt);var ut=Object(f.a)(Jt);function Jt(){var Zt;return Object(e.a)(this,Jt),Zt=ut.apply(this,arguments),Zt.renderInnerMenuItem=function(At){var Pt=Zt.props,vt=Pt.renderMenuItem,Ft=Pt.index;return vt(At,Ft,Zt.props.subMenuKey)},Zt}return Object(o.a)(Jt,[{key:"render",value:function(){var At=Object(A.a)({},this.props),Pt=At.className,vt=Pt===void 0?"":Pt,Ft=At.rootPrefixCls,gr="".concat(Ft,"-item-group-title"),or="".concat(Ft,"-item-group-list"),ur=At.title,Yr=At.children;return ee.forEach(function(Jr){return delete At[Jr]}),delete At.onClick,delete At.direction,t.createElement("li",Object.assign({},At,{className:"".concat(vt," ").concat(Ft,"-item-group")}),t.createElement("div",{className:gr,title:typeof ur=="string"?ur:void 0},ur),t.createElement("ul",{className:or},t.Children.map(Yr,this.renderInnerMenuItem)))}}]),Jt}(t.Component);qt.isMenuItemGroup=!0,qt.defaultProps={disabled:!0};var Sr=qt,Ar=function(ut){var Jt=ut.className,Zt=ut.rootPrefixCls,At=ut.style;return t.createElement("li",{className:"".concat(Jt," ").concat(Zt,"-item-divider"),style:At})};Ar.defaultProps={disabled:!0,className:"",style:{}};var hr=Ar,vn=nr,Zr=Object(t.createContext)({inlineCollapsed:!1}),Ln=Zr,$e=d("0n0R"),tt=function(pt){r()(Jt,pt);var ut=n()(Jt);function Jt(){return m()(this,Jt),ut.apply(this,arguments)}return c()(Jt,[{key:"renderTitle",value:function(At){var Pt=this.props,vt=Pt.icon,Ft=Pt.title,gr=Pt.level,or=Pt.rootPrefixCls;if(!vt)return At&&gr===1&&Ft&&typeof Ft=="string"?t.createElement("div",{className:"".concat(or,"-inline-collapsed-noicon")},Ft.charAt(0)):Ft;var ur=Object($e.b)(Ft)&&Ft.type==="span";return t.createElement(t.Fragment,null,vt,ur?Ft:t.createElement("span",null,Ft))}},{key:"render",value:function(){var At=this,Pt=this.props,vt=Pt.rootPrefixCls,Ft=Pt.popupClassName;return t.createElement(Ln.Consumer,null,function(gr){var or=gr.inlineCollapsed,ur=gr.antdMenuTheme;return t.createElement(Ct,E()({},Object(v.default)(At.props,["icon"]),{title:At.renderTitle(or),popupClassName:O()(vt,"".concat(vt,"-").concat(ur),Ft)}))})}}]),Jt}(t.Component);tt.contextType=Ln,tt.isSubMenu=1;var Ee=tt,Re=d("Zm9Q"),je=d("3S7+"),nt=d("ZX9x"),Vt=function(pt,ut){var Jt={};for(var Zt in pt)Object.prototype.hasOwnProperty.call(pt,Zt)&&ut.indexOf(Zt)<0&&(Jt[Zt]=pt[Zt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Zt=Object.getOwnPropertySymbols(pt);At<Zt.length;At++)ut.indexOf(Zt[At])<0&&Object.prototype.propertyIsEnumerable.call(pt,Zt[At])&&(Jt[Zt[At]]=pt[Zt[At]]);return Jt},Bt=function(pt){r()(Jt,pt);var ut=n()(Jt);function Jt(){var Zt;return m()(this,Jt),Zt=ut.apply(this,arguments),Zt.renderItem=function(At){var Pt=At.siderCollapsed,vt=Zt.props,Ft=vt.level,gr=vt.className,or=vt.children,ur=vt.rootPrefixCls,Yr=Zt.props,Jr=Yr.title,Tn=Yr.icon,Dn=Yr.danger,zn=Vt(Yr,["title","icon","danger"]);return t.createElement(Ln.Consumer,null,function(qn){var Ai,Mi=qn.inlineCollapsed,Ye=qn.direction,Ce=Jr;typeof Jr=="undefined"?Ce=Ft===1?or:"":Jr===!1&&(Ce="");var ke={title:Ce};!Pt&&!Mi&&(ke.title=null,ke.visible=!1);var Fe=Object(Re.a)(or).length;return t.createElement(je.a,E()({},ke,{placement:Ye==="rtl"?"left":"right",overlayClassName:"".concat(ur,"-inline-collapsed-tooltip")}),t.createElement(Qe,E()({},zn,{className:O()(gr,(Ai={},g()(Ai,"".concat(ur,"-item-danger"),Dn),g()(Ai,"".concat(ur,"-item-only-child"),(Tn?Fe+1:Fe)===1),Ai)),title:Jr}),Tn,Zt.renderItemChildren(Mi)))})},Zt}return c()(Jt,[{key:"renderItemChildren",value:function(At){var Pt=this.props,vt=Pt.icon,Ft=Pt.children,gr=Pt.level,or=Pt.rootPrefixCls;return!vt||Object($e.b)(Ft)&&Ft.type==="span"?Ft&&At&&gr===1&&typeof Ft=="string"?t.createElement("div",{className:"".concat(or,"-inline-collapsed-noicon")},Ft.charAt(0)):Ft:t.createElement("span",null,Ft)}},{key:"render",value:function(){return t.createElement(nt.a.Consumer,null,this.renderItem)}}]),Jt}(t.Component);Bt.isMenuItem=!0;var Xt=d("H84U"),Rr=d("uaoM"),Br=d("EXcs"),cn=function(pt){r()(Jt,pt);var ut=n()(Jt);function Jt(Zt){var At;return m()(this,Jt),At=ut.call(this,Zt),At.renderMenu=function(Pt){var vt=Pt.getPopupContainer,Ft=Pt.getPrefixCls,gr=Pt.direction,or=At.props,ur=or.prefixCls,Yr=or.className,Jr=or.theme,Tn={horizontal:{motionName:"slide-up"},inline:Br.a,other:{motionName:"zoom-big"}},Dn=Ft("menu",ur),zn=O()(Yr,"".concat(Dn,"-").concat(Jr),g()({},"".concat(Dn,"-inline-collapsed"),At.getInlineCollapsed()));return t.createElement(Ln.Provider,{value:{inlineCollapsed:At.getInlineCollapsed()||!1,antdMenuTheme:Jr,direction:gr}},t.createElement(vn,E()({getPopupContainer:vt},At.props,{className:zn,prefixCls:Dn,direction:gr,defaultMotions:Tn})))},Object(Rr.a)(!("inlineCollapsed"in Zt&&Zt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Rr.a)(!(Zt.siderCollapsed!==void 0&&"inlineCollapsed"in Zt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),At}return c()(Jt,[{key:"getInlineCollapsed",value:function(){var At=this.props,Pt=At.inlineCollapsed,vt=At.siderCollapsed;return vt!==void 0?vt:Pt}},{key:"render",value:function(){return t.createElement(Xt.a,null,this.renderMenu)}}]),Jt}(t.Component);cn.defaultProps={className:"",theme:"light",focusable:!1};var Ut=function(pt){r()(Jt,pt);var ut=n()(Jt);function Jt(){return m()(this,Jt),ut.apply(this,arguments)}return c()(Jt,[{key:"render",value:function(){var At=this;return t.createElement(nt.a.Consumer,null,function(Pt){return t.createElement(cn,E()({},At.props,Pt))})}}]),Jt}(t.Component);Ut.Divider=hr,Ut.Item=Bt,Ut.SubMenu=Ee,Ut.ItemGroup=Sr},C0SR:function(H,k,d){var I=d("YH21"),E=function(){this._track=[]};E.prototype={constructor:E,recognize:function(c,a,r){return this._doTrack(c,a,r),this._recognize(c)},clear:function(){return this._track.length=0,this},_doTrack:function(c,a,r){var i=c.touches;if(!i)return;for(var n={points:[],touches:[],target:a,event:c},t=0,s=i.length;t<s;t++){var e=i[t],o=I.clientToLocal(r,e,{});n.points.push([o.zrX,o.zrY]),n.touches.push(e)}this._track.push(n)},_recognize:function(c){for(var a in S)if(S.hasOwnProperty(a)){var r=S[a](this._track,c);if(r)return r}}};function T(h){var c=h[1][0]-h[0][0],a=h[1][1]-h[0][1];return Math.sqrt(c*c+a*a)}function g(h){return[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]}var S={pinch:function(c,a){var r=c.length;if(!r)return;var i=(c[r-1]||{}).points,n=(c[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var t=T(i)/T(n);!isFinite(t)&&(t=1),a.pinchScale=t;var s=g(i);return a.pinchX=s[0],a.pinchY=s[1],{type:"pinch",target:c[0].target,event:a}}}},m=E;H.exports=m},C0tN:function(H,k,d){d("0o9m"),d("8Uz6"),d("Ducp"),d("6/nd")},CBdT:function(H,k,d){var I=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var E=d("q3GZ");I.registerVisual(E)},CF2D:function(H,k,d){var I=d("ProS");d("vZI5"),d("GeKi");var E=d("6r85"),T=d("TJmX"),g=d("CbHG");I.registerPreprocessor(E),I.registerVisual(T),I.registerLayout(g)},CFYs:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("PJYZ"),r=d.n(a),i=d("7W2i"),n=d.n(i),t=d("LQ03"),s=d.n(t),e=d("q1tI"),o=d.n(e),l=d("TSYQ"),u=d.n(l),f=d("BGR+"),p=d("V/uB"),v=d.n(p),A=d("NAnI"),y=d.n(A),x=d("J84W"),C=d.n(x),w=d("kbBi"),b=d.n(w),_=d("H84U"),O=d("CWQg"),L=d("uaoM"),D=d("Zss7"),N=d.n(D),M=2,F=.16,R=.05,j=.05,B=.15,K=5,U=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(Bt,Xt,Rr){var Br;return Math.round(Bt.h)>=60&&Math.round(Bt.h)<=240?Br=Rr?Math.round(Bt.h)-M*Xt:Math.round(Bt.h)+M*Xt:Br=Rr?Math.round(Bt.h)+M*Xt:Math.round(Bt.h)-M*Xt,Br<0?Br+=360:Br>=360&&(Br-=360),Br}function Y(Bt,Xt,Rr){if(Bt.h===0&&Bt.s===0)return Bt.s;var Br;return Rr?Br=Bt.s-F*Xt:Xt===U?Br=Bt.s+F:Br=Bt.s+R*Xt,Br>1&&(Br=1),Rr&&Xt===K&&Br>.1&&(Br=.1),Br<.06&&(Br=.06),Number(Br.toFixed(2))}function J(Bt,Xt,Rr){var Br;return Rr?Br=Bt.v+j*Xt:Br=Bt.v-B*Xt,Br>1&&(Br=1),Number(Br.toFixed(2))}function se(Bt){for(var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rr=[],Br=N()(Bt),cn=K;cn>0;cn-=1){var Ut=Br.toHsv(),pt=N()({h:V(Ut,cn,!0),s:Y(Ut,cn,!0),v:J(Ut,cn,!0)}).toHexString();Rr.push(pt)}Rr.push(Br.toHexString());for(var ut=1;ut<=U;ut+=1){var Jt=Br.toHsv(),Zt=N()({h:V(Jt,ut),s:Y(Jt,ut),v:J(Jt,ut)}).toHexString();Rr.push(Zt)}return Xt.theme==="dark"?z.map(function(At){var Pt=At.index,vt=At.opacity,Ft=N.a.mix(Xt.backgroundColor||"#141414",Rr[Pt],vt*100).toHexString();return Ft}):Rr}var $={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"},ae={},ge={};Object.keys($).forEach(function(Bt){ae[Bt]=se($[Bt]),ae[Bt].primary=ae[Bt][5],ge[Bt]=se($[Bt],{theme:"dark",backgroundColor:"#141414"}),ge[Bt].primary=ge[Bt][5]});var pe=ae.red,Ne=ae.volcano,de=ae.gold,Le=ae.orange,Q=ae.yellow,ce=ae.lime,Ke=ae.green,ee=ae.cyan,X=ae.blue,G=ae.geekblue,Z=ae.purple,ve=ae.magenta,ue=ae.grey;function _e(Bt){return!Bt||Bt<0?0:Bt>100?100:Bt}function xe(Bt){var Xt=Bt.success,Rr=Bt.successPercent,Br=Rr;return Xt&&"progress"in Xt&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Br=Xt.progress),Xt&&"percent"in Xt&&(Br=Xt.percent),Br}var oe=function(Bt,Xt){var Rr={};for(var Br in Bt)Object.prototype.hasOwnProperty.call(Bt,Br)&&Xt.indexOf(Br)<0&&(Rr[Br]=Bt[Br]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Br=Object.getOwnPropertySymbols(Bt);cn<Br.length;cn++)Xt.indexOf(Br[cn])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Br[cn])&&(Rr[Br[cn]]=Bt[Br[cn]]);return Rr},fe=function(Xt){var Rr=[];return Object.keys(Xt).forEach(function(Br){var cn=parseFloat(Br.replace(/%/g,""));isNaN(cn)||Rr.push({key:cn,value:Xt[Br]})}),Rr=Rr.sort(function(Br,cn){return Br.key-cn.key}),Rr.map(function(Br){var cn=Br.key,Ut=Br.value;return"".concat(Ut," ").concat(cn,"%")}).join(", ")},Te=function(Xt){var Rr=Xt.from,Br=Rr===void 0?$.blue:Rr,cn=Xt.to,Ut=cn===void 0?$.blue:cn,pt=Xt.direction,ut=pt===void 0?"to right":pt,Jt=oe(Xt,["from","to","direction"]);if(Object.keys(Jt).length!==0){var Zt=fe(Jt);return{backgroundImage:"linear-gradient(".concat(ut,", ").concat(Zt,")")}}return{backgroundImage:"linear-gradient(".concat(ut,", ").concat(Br,", ").concat(Ut,")")}},ze=function(Xt){var Rr=Xt.prefixCls,Br=Xt.percent,cn=Xt.strokeWidth,Ut=Xt.size,pt=Xt.strokeColor,ut=Xt.strokeLinecap,Jt=Xt.children,Zt=Xt.trailColor,At=Xt.success,Pt=pt&&typeof pt!="string"?Te(pt):{background:pt},vt=Zt?{backgroundColor:Zt}:void 0,Ft=g()({width:"".concat(_e(Br),"%"),height:cn||(Ut==="small"?6:8),borderRadius:ut==="square"?0:""},Pt),gr=xe(Xt),or={width:"".concat(_e(gr),"%"),height:cn||(Ut==="small"?6:8),borderRadius:ut==="square"?0:"",backgroundColor:At==null?void 0:At.strokeColor},ur=gr!==void 0?e.createElement("div",{className:"".concat(Rr,"-success-bg"),style:or}):null;return e.createElement(e.Fragment,null,e.createElement("div",{className:"".concat(Rr,"-outer")},e.createElement("div",{className:"".concat(Rr,"-inner"),style:vt},e.createElement("div",{className:"".concat(Rr,"-bg"),style:Ft}),ur)),Jt)},it=ze,et={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Oe=function(Xt){var Rr=Xt.map(function(){return Object(e.useRef)()}),Br=Object(e.useRef)();return Object(e.useEffect)(function(){var cn=Date.now(),Ut=!1;Object.keys(Rr).forEach(function(pt){var ut=Rr[pt].current;if(!ut)return;Ut=!0;var Jt=ut.style;Jt.transitionDuration=".3s, .3s, .3s, .06s",Br.current&&cn-Br.current<100&&(Jt.transitionDuration="0s, 0s")}),Ut&&(Br.current=Date.now())}),[Rr]};function gt(){return gt=Object.assign||function(Bt){for(var Xt=1;Xt<arguments.length;Xt++){var Rr=arguments[Xt];for(var Br in Rr)Object.prototype.hasOwnProperty.call(Rr,Br)&&(Bt[Br]=Rr[Br])}return Bt},gt.apply(this,arguments)}function Ge(Bt,Xt){return Ht(Bt)||Dt(Bt,Xt)||xt(Bt,Xt)||wt()}function wt(){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 xt(Bt,Xt){if(!Bt)return;if(typeof Bt=="string")return Ct(Bt,Xt);var Rr=Object.prototype.toString.call(Bt).slice(8,-1);if(Rr==="Object"&&Bt.constructor&&(Rr=Bt.constructor.name),Rr==="Map"||Rr==="Set")return Array.from(Bt);if(Rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rr))return Ct(Bt,Xt)}function Ct(Bt,Xt){(Xt==null||Xt>Bt.length)&&(Xt=Bt.length);for(var Rr=0,Br=new Array(Xt);Rr<Xt;Rr++)Br[Rr]=Bt[Rr];return Br}function Dt(Bt,Xt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Bt)))return;var Rr=[],Br=!0,cn=!1,Ut=void 0;try{for(var pt=Bt[Symbol.iterator](),ut;!(Br=(ut=pt.next()).done)&&!(Rr.push(ut.value),Xt&&Rr.length===Xt);Br=!0);}catch(Jt){cn=!0,Ut=Jt}finally{try{!Br&&pt.return!=null&&pt.return()}finally{if(cn)throw Ut}}return Rr}function Ht(Bt){if(Array.isArray(Bt))return Bt}function Je(Bt,Xt){if(Bt==null)return{};var Rr=ye(Bt,Xt),Br,cn;if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(Bt);for(cn=0;cn<Ut.length;cn++){if(Br=Ut[cn],Xt.indexOf(Br)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Bt,Br))continue;Rr[Br]=Bt[Br]}}return Rr}function ye(Bt,Xt){if(Bt==null)return{};var Rr={},Br=Object.keys(Bt),cn,Ut;for(Ut=0;Ut<Br.length;Ut++){if(cn=Br[Ut],Xt.indexOf(cn)>=0)continue;Rr[cn]=Bt[cn]}return Rr}var ie=function(Xt){var Rr=Xt.className,Br=Xt.percent,cn=Xt.prefixCls,Ut=Xt.strokeColor,pt=Xt.strokeLinecap,ut=Xt.strokeWidth,Jt=Xt.style,Zt=Xt.trailColor,At=Xt.trailWidth,Pt=Xt.transition,vt=Je(Xt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete vt.gapPosition;var Ft=Array.isArray(Br)?Br:[Br],gr=Array.isArray(Ut)?Ut:[Ut],or=Oe(Ft),ur=Ge(or,1),Yr=ur[0],Jr=ut/2,Tn=100-ut/2,Dn="M ".concat(pt==="round"?Jr:0,",").concat(Jr,`
|
|
|
L `).concat(pt==="round"?Tn:100,",").concat(Jr),zn="0 0 100 ".concat(ut),qn=0;return o.a.createElement("svg",gt({className:u()("".concat(cn,"-line"),Rr),viewBox:zn,preserveAspectRatio:"none",style:Jt},vt),o.a.createElement("path",{className:"".concat(cn,"-line-trail"),d:Dn,strokeLinecap:pt,stroke:Zt,strokeWidth:At||ut,fillOpacity:"0"}),Ft.map(function(Ai,Mi){var Ye={strokeDasharray:"".concat(Ai,"px, 100px"),strokeDashoffset:"-".concat(qn,"px"),transition:Pt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ce=gr[Mi]||gr[gr.length-1];return qn+=Ai,o.a.createElement("path",{key:Mi,className:"".concat(cn,"-line-path"),d:Dn,strokeLinecap:pt,stroke:Ce,strokeWidth:ut,fillOpacity:"0",ref:Yr[Mi],style:Ye})}))};ie.defaultProps=et;var bt=ie;function qe(){return qe=Object.assign||function(Bt){for(var Xt=1;Xt<arguments.length;Xt++){var Rr=arguments[Xt];for(var Br in Rr)Object.prototype.hasOwnProperty.call(Rr,Br)&&(Bt[Br]=Rr[Br])}return Bt},qe.apply(this,arguments)}function me(Bt,Xt){return sr(Bt)||zt(Bt,Xt)||er(Bt,Xt)||Rt()}function Rt(){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 er(Bt,Xt){if(!Bt)return;if(typeof Bt=="string")return ct(Bt,Xt);var Rr=Object.prototype.toString.call(Bt).slice(8,-1);if(Rr==="Object"&&Bt.constructor&&(Rr=Bt.constructor.name),Rr==="Map"||Rr==="Set")return Array.from(Bt);if(Rr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rr))return ct(Bt,Xt)}function ct(Bt,Xt){(Xt==null||Xt>Bt.length)&&(Xt=Bt.length);for(var Rr=0,Br=new Array(Xt);Rr<Xt;Rr++)Br[Rr]=Bt[Rr];return Br}function zt(Bt,Xt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Bt)))return;var Rr=[],Br=!0,cn=!1,Ut=void 0;try{for(var pt=Bt[Symbol.iterator](),ut;!(Br=(ut=pt.next()).done)&&!(Rr.push(ut.value),Xt&&Rr.length===Xt);Br=!0);}catch(Jt){cn=!0,Ut=Jt}finally{try{!Br&&pt.return!=null&&pt.return()}finally{if(cn)throw Ut}}return Rr}function sr(Bt){if(Array.isArray(Bt))return Bt}function Kr(Bt,Xt){if(Bt==null)return{};var Rr=ar(Bt,Xt),Br,cn;if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(Bt);for(cn=0;cn<Ut.length;cn++){if(Br=Ut[cn],Xt.indexOf(Br)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Bt,Br))continue;Rr[Br]=Bt[Br]}}return Rr}function ar(Bt,Xt){if(Bt==null)return{};var Rr={},Br=Object.keys(Bt),cn,Ut;for(Ut=0;Ut<Br.length;Ut++){if(cn=Br[Ut],Xt.indexOf(cn)>=0)continue;Rr[cn]=Bt[cn]}return Rr}var nr=0;function Lt(Bt){return+Bt.replace("%","")}function st(Bt){return Array.isArray(Bt)?Bt:[Bt]}function Qe(Bt,Xt,Rr,Br){var cn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Ut=arguments.length>5?arguments[5]:void 0,pt=50-Br/2,ut=0,Jt=-pt,Zt=0,At=-2*pt;switch(Ut){case"left":ut=-pt,Jt=0,Zt=2*pt,At=0;break;case"right":ut=pt,Jt=0,Zt=-2*pt,At=0;break;case"bottom":Jt=pt,At=2*pt;break;default:}var Pt="M 50,50 m ".concat(ut,",").concat(Jt,`
|
|
|
a `).concat(pt,",").concat(pt," 0 1 1 ").concat(Zt,",").concat(-At,`
|
|
|
a `).concat(pt,",").concat(pt," 0 1 1 ").concat(-Zt,",").concat(At),vt=Math.PI*2*pt,Ft={stroke:Rr,strokeDasharray:"".concat(Xt/100*(vt-cn),"px ").concat(vt,"px"),strokeDashoffset:"-".concat(cn/2+Bt/100*(vt-cn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Pt,pathStyle:Ft}}var qt=function(Xt){var Rr=Xt.prefixCls,Br=Xt.strokeWidth,cn=Xt.trailWidth,Ut=Xt.gapDegree,pt=Xt.gapPosition,ut=Xt.trailColor,Jt=Xt.strokeLinecap,Zt=Xt.style,At=Xt.className,Pt=Xt.strokeColor,vt=Xt.percent,Ft=Kr(Xt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),gr=Object(e.useMemo)(function(){return nr+=1,nr},[]),or=Qe(0,100,ut,Br,Ut,pt),ur=or.pathString,Yr=or.pathStyle,Jr=st(vt),Tn=st(Pt),Dn=Tn.find(function(Ye){return Object.prototype.toString.call(Ye)==="[object Object]"}),zn=Oe(Jr),qn=me(zn,1),Ai=qn[0],Mi=function(){var Ce=0;return Jr.map(function(ke,Fe){var Ve=Tn[Fe]||Tn[Tn.length-1],We=Object.prototype.toString.call(Ve)==="[object Object]"?"url(#".concat(Rr,"-gradient-").concat(gr,")"):"",Ze=Qe(Ce,ke,Ve,Br,Ut,pt);return Ce+=ke,o.a.createElement("path",{key:Fe,className:"".concat(Rr,"-circle-path"),d:Ze.pathString,stroke:We,strokeLinecap:Jt,strokeWidth:Br,opacity:ke===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:Ai[Fe]})})};return o.a.createElement("svg",qe({className:u()("".concat(Rr,"-circle"),At),viewBox:"0 0 100 100",style:Zt},Ft),Dn&&o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"".concat(Rr,"-gradient-").concat(gr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Dn).sort(function(Ye,Ce){return Lt(Ye)-Lt(Ce)}).map(function(Ye,Ce){return o.a.createElement("stop",{key:Ce,offset:Ye,stopColor:Dn[Ye]})}))),o.a.createElement("path",{className:"".concat(Rr,"-circle-trail"),d:ur,stroke:ut,strokeLinecap:Jt,strokeWidth:cn||Br,fillOpacity:"0",style:Yr}),Mi().reverse())};qt.defaultProps=et;var Sr=qt,Ar={Line:bt,Circle:Sr};function hr(Bt){var Xt=Bt.percent,Rr=Bt.success,Br=Bt.successPercent,cn=_e(Xt),Ut=xe({success:Rr,successPercent:Br});return Ut?[_e(Ut),_e(cn-_e(Ut))]:cn}function vn(Bt){var Xt=Bt.success,Rr=Bt.strokeColor,Br=Bt.successPercent,cn=Rr||null,Ut=xe({success:Xt,successPercent:Br});return Ut?[$.green,cn]:cn}var Zr=function(Xt){var Rr=Xt.prefixCls,Br=Xt.width,cn=Xt.strokeWidth,Ut=Xt.trailColor,pt=Xt.strokeLinecap,ut=Xt.gapPosition,Jt=Xt.gapDegree,Zt=Xt.type,At=Xt.children,Pt=Br||120,vt={width:Pt,height:Pt,fontSize:Pt*.15+6},Ft=cn||6,gr=ut||Zt==="dashboard"&&"bottom"||"top",or=function(){return Jt||Jt===0?Jt:Zt==="dashboard"?75:void 0},ur=vn(Xt),Yr=Object.prototype.toString.call(ur)==="[object Object]",Jr=u()("".concat(Rr,"-inner"),E()({},"".concat(Rr,"-circle-gradient"),Yr));return e.createElement("div",{className:Jr,style:vt},e.createElement(Sr,{percent:hr(Xt),strokeWidth:Ft,trailWidth:Ft,strokeColor:ur,strokeLinecap:pt,trailColor:Ut,prefixCls:Rr,gapDegree:or(),gapPosition:gr}),At)},Ln=Zr,$e=function(Xt){for(var Rr=Xt.size,Br=Xt.steps,cn=Xt.percent,Ut=cn===void 0?0:cn,pt=Xt.strokeWidth,ut=pt===void 0?8:pt,Jt=Xt.strokeColor,Zt=Xt.trailColor,At=Xt.prefixCls,Pt=Xt.children,vt=Math.floor(Br*(Ut/100)),Ft=Rr==="small"?2:14,gr=[],or=0;or<Br;or+=1)gr.push(e.createElement("div",{key:or,className:u()("".concat(At,"-steps-item"),E()({},"".concat(At,"-steps-item-active"),or<=vt-1)),style:{backgroundColor:or<=vt-1?Jt:Zt,width:Ft,height:ut}}));return e.createElement("div",{className:"".concat(At,"-steps-outer")},gr,Pt)},tt=$e,Ee=function(Bt,Xt){var Rr={};for(var Br in Bt)Object.prototype.hasOwnProperty.call(Bt,Br)&&Xt.indexOf(Br)<0&&(Rr[Br]=Bt[Br]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Br=Object.getOwnPropertySymbols(Bt);cn<Br.length;cn++)Xt.indexOf(Br[cn])<0&&Object.prototype.propertyIsEnumerable.call(Bt,Br[cn])&&(Rr[Br[cn]]=Bt[Br[cn]]);return Rr},Re=Object(O.a)("line","circle","dashboard"),je=Object(O.a)("normal","exception","active","success"),nt=function(Bt){n()(Rr,Bt);var Xt=s()(Rr);function Rr(){var Br;return m()(this,Rr),Br=Xt.apply(this,arguments),Br.renderProgress=function(cn){var Ut,pt=cn.getPrefixCls,ut=cn.direction,Jt=r()(Br),Zt=Jt.props,At=Zt.prefixCls,Pt=Zt.className,vt=Zt.size,Ft=Zt.type,gr=Zt.steps,or=Zt.showInfo,ur=Zt.strokeColor,Yr=Ee(Zt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),Jr=pt("progress",At),Tn=Br.getProgressStatus(),Dn=Br.renderProcessInfo(Jr,Tn);Object(L.a)(!("successPercent"in Zt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var zn;Ft==="line"?zn=gr?e.createElement(tt,g()({},Br.props,{strokeColor:typeof ur=="string"?ur:void 0,prefixCls:Jr,steps:gr}),Dn):e.createElement(it,g()({},Br.props,{prefixCls:Jr}),Dn):(Ft==="circle"||Ft==="dashboard")&&(zn=e.createElement(Ln,g()({},Br.props,{prefixCls:Jr,progressStatus:Tn}),Dn));var qn=u()(Jr,(Ut={},E()(Ut,"".concat(Jr,"-").concat(Ft==="dashboard"&&"circle"||gr&&"steps"||Ft),!0),E()(Ut,"".concat(Jr,"-status-").concat(Tn),!0),E()(Ut,"".concat(Jr,"-show-info"),or),E()(Ut,"".concat(Jr,"-").concat(vt),vt),E()(Ut,"".concat(Jr,"-rtl"),ut==="rtl"),Ut),Pt);return e.createElement("div",g()({},Object(f.default)(Yr,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:qn}),zn)},Br}return c()(Rr,[{key:"getPercentNumber",value:function(){var cn=this.props.percent,Ut=cn===void 0?0:cn,pt=xe(this.props);return parseInt(pt!==void 0?pt.toString():Ut.toString(),10)}},{key:"getProgressStatus",value:function(){var cn=this.props.status;return je.indexOf(cn)<0&&this.getPercentNumber()>=100?"success":cn||"normal"}},{key:"renderProcessInfo",value:function(cn,Ut){var pt=this.props,ut=pt.showInfo,Jt=pt.format,Zt=pt.type,At=pt.percent,Pt=xe(this.props);if(!ut)return null;var vt,Ft=Jt||function(or){return"".concat(or,"%")},gr=Zt==="line";return Jt||Ut!=="exception"&&Ut!=="success"?vt=Ft(_e(At),_e(Pt)):Ut==="exception"?vt=gr?e.createElement(b.a,null):e.createElement(v.a,null):Ut==="success"&&(vt=gr?e.createElement(C.a,null):e.createElement(y.a,null)),e.createElement("span",{className:"".concat(cn,"-text"),title:typeof vt=="string"?vt:void 0},vt)}},{key:"render",value:function(){return e.createElement(_.a,null,this.renderProgress)}}]),Rr}(e.Component);nt.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var Vt=k.a=nt},"CMP+":function(H,k,d){var I=d("bYtY"),E=d("hM6l"),T=function(S,m,h,c){E.call(this,S,m,h),this.type=c||"value",this.model=null};T.prototype={constructor:T,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},I.inherits(T,E);var g=T;H.exports=g},CP8R:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},"CWI+":function(H,k,d){},CbHG:function(H,k,d){var I=d("IwbS"),E=I.subPixelOptimize,T=d("zM3Q"),g=d("OELB"),S=g.parsePercent,m=d("bYtY"),h=m.retrieve2,c=typeof Float32Array!="undefined"?Float32Array:Array,a={seriesType:"candlestick",plan:T(),reset:function(n){var t=n.coordinateSystem,s=n.getData(),e=i(n,s),o=0,l=1,u=["x","y"],f=s.mapDimension(u[o]),p=s.mapDimension(u[l],!0),v=p[0],A=p[1],y=p[2],x=p[3];if(s.setLayout({candleWidth:e,isSimpleBox:e<=1.3}),f==null||p.length<4)return;return{progress:n.pipelineContext.large?w:C};function C(b,_){for(var O;(O=b.next())!=null;){var L=_.get(f,O),D=_.get(v,O),N=_.get(A,O),M=_.get(y,O),F=_.get(x,O),R=Math.min(D,N),j=Math.max(D,N),B=Y(R,L),K=Y(j,L),U=Y(M,L),z=Y(F,L),V=[];J(V,K,0),J(V,B,1),V.push($(z),$(K),$(U),$(B)),_.setItemLayout(O,{sign:r(_,O,D,N,A),initBaseline:D>N?K[l]:B[l],ends:V,brushRect:se(M,F,L)})}function Y(ae,ge){var pe=[];return pe[o]=ge,pe[l]=ae,isNaN(ge)||isNaN(ae)?[NaN,NaN]:t.dataToPoint(pe)}function J(ae,ge,pe){var Ne=ge.slice(),de=ge.slice();Ne[o]=E(Ne[o]+e/2,1,!1),de[o]=E(de[o]-e/2,1,!0),pe?ae.push(Ne,de):ae.push(de,Ne)}function se(ae,ge,pe){var Ne=Y(ae,pe),de=Y(ge,pe);return Ne[o]-=e/2,de[o]-=e/2,{x:Ne[0],y:Ne[1],width:l?e:de[0]-Ne[0],height:l?de[1]-Ne[1]:e}}function $(ae){return ae[o]=E(ae[o],1),ae}}function w(b,_){for(var O=new c(b.count*4),L=0,D,N=[],M=[],F;(F=b.next())!=null;){var R=_.get(f,F),j=_.get(v,F),B=_.get(A,F),K=_.get(y,F),U=_.get(x,F);if(isNaN(R)||isNaN(K)||isNaN(U)){O[L++]=NaN,L+=3;continue}O[L++]=r(_,F,j,B,A),N[o]=R,N[l]=K,D=t.dataToPoint(N,null,M),O[L++]=D?D[0]:NaN,O[L++]=D?D[1]:NaN,N[l]=U,D=t.dataToPoint(N,null,M),O[L++]=D?D[1]:NaN}_.setLayout("largePoints",O)}}};function r(n,t,s,e,o){var l;return s>e?l=-1:s<e?l=1:l=t>0?n.get(o,t-1)<=e?1:-1:1,l}function i(n,t){var s=n.getBaseAxis(),e,o=s.type==="category"?s.getBandWidth():(e=s.getExtent(),Math.abs(e[1]-e[0])/t.count()),l=S(h(n.get("barMaxWidth"),o),o),u=S(h(n.get("barMinWidth"),1),o),f=n.get("barWidth");return f!=null?S(f,o):Math.max(Math.min(o/2,l),u)}H.exports=a},Cm0C:function(H,k,d){d("5NHt"),d("f3JH")},Cmcn:function(H,k,d){"use strict";d.d(k,"a",function(){return E});var I=d("0HTW");function E(T,g){var S;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(S=Object(I.a)(T))||g&&T&&typeof T.length=="number"){S&&(T=S);var m=0,h=function(){};return{s:h,n:function(){return m>=T.length?{done:!0}:{done:!1,value:T[m++]}},e:function(n){throw n},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 c=!0,a=!1,r;return{s:function(){S=T[Symbol.iterator]()},n:function(){var n=S.next();return c=n.done,n},e:function(n){a=!0,r=n},f:function(){try{!c&&S.return!=null&&S.return()}finally{if(a)throw r}}}}},CrYA:function(H,k,d){var I=d("MFOe"),E=I.Global;H.exports={name:"sessionStorage",read:g,write:S,each:m,remove:h,clearAll:c};function T(){return E.sessionStorage}function g(a){return T().getItem(a)}function S(a,r){return T().setItem(a,r)}function m(a){for(var r=T().length-1;r>=0;r--){var i=T().key(r);a(g(i),i)}}function h(a){return T().removeItem(a)}function c(){return T().clear()}},Csr3:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("4vCz"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},D1WM:function(H,k,d){var I=d("bYtY"),E=d("hM6l"),T=function(S,m,h,c,a){E.call(this,S,m,h),this.type=c||"value",this.axisIndex=a};T.prototype={constructor:T,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},I.inherits(T,E);var g=T;H.exports=g},D5nY:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("4NO4"),g=T.makeInner,S=T.getDataItemValue,m=d("bYtY"),h=m.createHashMap,c=m.each,a=m.map,r=m.isArray,i=m.isString,n=m.isObject,t=m.isTypedArray,s=m.isArrayLike,e=m.extend,o=m.assert,l=d("7G+c"),u=d("k9D9"),f=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_ARRAY_ROWS,v=u.SOURCE_FORMAT_OBJECT_ROWS,A=u.SOURCE_FORMAT_KEYED_COLUMNS,y=u.SOURCE_FORMAT_UNKNOWN,x=u.SOURCE_FORMAT_TYPED_ARRAY,C=u.SERIES_LAYOUT_BY_ROW,w={Must:1,Might:2,Not:3},b=g();function _(V){var Y=V.option.source,J=y;if(t(Y))J=x;else if(r(Y)){Y.length===0&&(J=p);for(var se=0,$=Y.length;se<$;se++){var ae=Y[se];if(ae==null)continue;if(r(ae)){J=p;break}else if(n(ae)){J=v;break}}}else if(n(Y)){for(var ge in Y)if(Y.hasOwnProperty(ge)&&s(Y[ge])){J=A;break}}else if(Y!=null)throw new Error("Invalid data");b(V).sourceFormat=J}function O(V){return b(V).source}function L(V){b(V).datasetMap=h()}function D(V){var Y=V.option,J=Y.data,se=t(J)?x:f,$=!1,ae=Y.seriesLayoutBy,ge=Y.sourceHeader,pe=Y.dimensions,Ne=K(V);if(Ne){var de=Ne.option;J=de.source,se=b(Ne).sourceFormat,$=!0,ae=ae||de.seriesLayoutBy,ge==null&&(ge=de.sourceHeader),pe=pe||de.dimensions}var Le=N(J,se,ae,ge,pe);b(V).source=new l({data:J,fromDataset:$,seriesLayoutBy:ae,sourceFormat:se,dimensionsDefine:Le.dimensionsDefine,startIndex:Le.startIndex,dimensionsDetectCount:Le.dimensionsDetectCount,encodeDefine:Y.encode})}function N(V,Y,J,se,$){if(!V)return{dimensionsDefine:M($)};var ae,ge;if(Y===p)se==="auto"||se==null?F(function(Ne){Ne!=null&&Ne!=="-"&&(i(Ne)?ge==null&&(ge=1):ge=0)},J,V,10):ge=se?1:0,!$&&ge===1&&($=[],F(function(Ne,de){$[de]=Ne!=null?Ne:""},J,V)),ae=$?$.length:J===C?V.length:V[0]?V[0].length:null;else if(Y===v)$||($=R(V));else if(Y===A)$||($=[],c(V,function(Ne,de){$.push(de)}));else if(Y===f){var pe=S(V[0]);ae=r(pe)&&pe.length||1}else Y===x;return{startIndex:ge,dimensionsDefine:M($),dimensionsDetectCount:ae}}function M(V){if(!V)return;var Y=h();return a(V,function(J,se){if(J=e({},n(J)?J:{name:J}),J.name==null)return J;J.name+="",J.displayName==null&&(J.displayName=J.name);var $=Y.get(J.name);return $?J.name+="-"+$.count++:Y.set(J.name,{count:1}),J})}function F(V,Y,J,se){if(se==null&&(se=Infinity),Y===C)for(var $=0;$<J.length&&$<se;$++)V(J[$]?J[$][0]:null,$);else for(var ae=J[0]||[],$=0;$<ae.length&&$<se;$++)V(ae[$],$)}function R(V){for(var Y=0,J;Y<V.length&&!(J=V[Y++]););if(J){var se=[];return c(J,function($,ae){se.push(ae)}),se}}function j(V,Y,J){var se={},$=K(Y);if(!$||!V)return se;var ae=[],ge=[],pe=Y.ecModel,Ne=b(pe).datasetMap,de=$.uid+"_"+J.seriesLayoutBy,Le,Q;V=V.slice(),c(V,function(X,G){!n(X)&&(V[G]={name:X}),X.type==="ordinal"&&Le==null&&(Le=G,Q=ee(V[G])),se[X.name]=[]});var ce=Ne.get(de)||Ne.set(de,{categoryWayDim:Q,valueWayDim:0});c(V,function(X,G){var Z=X.name,ve=ee(X);if(Le==null){var ue=ce.valueWayDim;Ke(se[Z],ue,ve),Ke(ge,ue,ve),ce.valueWayDim+=ve}else if(Le===G)Ke(se[Z],0,ve),Ke(ae,0,ve);else{var ue=ce.categoryWayDim;Ke(se[Z],ue,ve),Ke(ge,ue,ve),ce.categoryWayDim+=ve}});function Ke(X,G,Z){for(var ve=0;ve<Z;ve++)X.push(G+ve)}function ee(X){var G=X.dimsDef;return G?G.length:1}return ae.length&&(se.itemName=ae),ge.length&&(se.seriesName=ge),se}function B(V,Y,J){var se={},$=K(V);if(!$)return se;var ae=Y.sourceFormat,ge=Y.dimensionsDefine,pe;(ae===v||ae===A)&&c(ge,function(Le,Q){(n(Le)?Le.name:Le)==="name"&&(pe=Q)});var Ne=function(){for(var Le={},Q={},ce=[],Ke=0,ee=Math.min(5,J);Ke<ee;Ke++){var X=z(Y.data,ae,Y.seriesLayoutBy,ge,Y.startIndex,Ke);ce.push(X);var G=X===w.Not;if(G&&Le.v==null&&Ke!==pe&&(Le.v=Ke),(Le.n==null||Le.n===Le.v||!G&&ce[Le.n]===w.Not)&&(Le.n=Ke),Z(Le)&&ce[Le.n]!==w.Not)return Le;G||(X===w.Might&&Q.v==null&&Ke!==pe&&(Q.v=Ke),(Q.n==null||Q.n===Q.v)&&(Q.n=Ke))}function Z(ve){return ve.v!=null&&ve.n!=null}return Z(Le)?Le:Z(Q)?Q:null}();if(Ne){se.value=Ne.v;var de=pe!=null?pe:Ne.n;se.itemName=[de],se.seriesName=[de]}return se}function K(V){var Y=V.option,J=Y.data;if(!J)return V.ecModel.getComponent("dataset",Y.datasetIndex||0)}function U(V,Y){return z(V.data,V.sourceFormat,V.seriesLayoutBy,V.dimensionsDefine,V.startIndex,Y)}function z(V,Y,J,se,$,ae){var ge,pe=5;if(t(V))return w.Not;var Ne,de;if(se){var Le=se[ae];n(Le)?(Ne=Le.name,de=Le.type):i(Le)&&(Ne=Le)}if(de!=null)return de==="ordinal"?w.Must:w.Not;if(Y===p)if(J===C){for(var Q=V[ae],ce=0;ce<(Q||[]).length&&ce<pe;ce++)if((ge=G(Q[$+ce]))!=null)return ge}else for(var ce=0;ce<V.length&&ce<pe;ce++){var Ke=V[$+ce];if(Ke&&(ge=G(Ke[ae]))!=null)return ge}else if(Y===v){if(!Ne)return w.Not;for(var ce=0;ce<V.length&&ce<pe;ce++){var ee=V[ce];if(ee&&(ge=G(ee[Ne]))!=null)return ge}}else if(Y===A){if(!Ne)return w.Not;var Q=V[Ne];if(!Q||t(Q))return w.Not;for(var ce=0;ce<Q.length&&ce<pe;ce++)if((ge=G(Q[ce]))!=null)return ge}else if(Y===f)for(var ce=0;ce<V.length&&ce<pe;ce++){var ee=V[ce],X=S(ee);if(!r(X))return w.Not;if((ge=G(X[ae]))!=null)return ge}function G(Z){var ve=i(Z);if(Z!=null&&isFinite(Z)&&Z!=="")return ve?w.Might:w.Not;if(ve&&Z!=="-")return w.Must}return w.Not}k.BE_ORDINAL=w,k.detectSourceFormat=_,k.getSource=O,k.resetSourceDefaulter=L,k.prepareSource=D,k.makeSeriesEncodeForAxisCoordSys=j,k.makeSeriesEncodeForNameBased=B,k.guessOrdinal=U},D9ME:function(H,k,d){var I=d("IwbS"),E=d("fls0"),T=d("bYtY"),g=d("oVpE"),S=g.createSymbol,m=d("QBsz"),h=d("Sj9i");function c(i,n,t){I.Group.call(this),this.add(this.createLine(i,n,t)),this._updateEffectSymbol(i,n)}var a=c.prototype;a.createLine=function(i,n,t){return new E(i,n,t)},a._updateEffectSymbol=function(i,n){var t=i.getItemModel(n),s=t.getModel("effect"),e=s.get("symbolSize"),o=s.get("symbol");T.isArray(e)||(e=[e,e]);var l=s.get("color")||i.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==o&&(this.remove(u),u=S(o,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),!u)return;u.setStyle("shadowColor",l),u.setStyle(s.getItemStyle(["color"])),u.attr("scale",e),u.setColor(l),u.attr("scale",e),this._symbolType=o,this._symbolScale=e,this._updateEffectAnimation(i,s,n)},a._updateEffectAnimation=function(i,n,t){var s=this.childAt(1);if(!s)return;var e=this,o=i.getItemLayout(t),l=n.get("period")*1e3,u=n.get("loop"),f=n.get("constantSpeed"),p=T.retrieve(n.get("delay"),function(x){return x/i.count()*l/3}),v=typeof p=="function";if(s.ignore=!0,this.updateAnimationPoints(s,o),f>0&&(l=this.getLineLength(s)/f*1e3),l!==this._period||u!==this._loop){s.stopAnimation();var A=p;v&&(A=p(t)),s.__t>0&&(A=-l*s.__t),s.__t=0;var y=s.animate("",u).when(l,{__t:1}).delay(A).during(function(){e.updateSymbolPosition(s)});u||y.done(function(){e.remove(s)}),y.start()}this._period=l,this._loop=u},a.getLineLength=function(i){return m.dist(i.__p1,i.__cp1)+m.dist(i.__cp1,i.__p2)},a.updateAnimationPoints=function(i,n){i.__p1=n[0],i.__p2=n[1],i.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},a.updateData=function(i,n,t){this.childAt(0).updateData(i,n,t),this._updateEffectSymbol(i,n)},a.updateSymbolPosition=function(i){var n=i.__p1,t=i.__p2,s=i.__cp1,e=i.__t,o=i.position,l=[o[0],o[1]],u=h.quadraticAt,f=h.quadraticDerivativeAt;o[0]=u(n[0],s[0],t[0],e),o[1]=u(n[1],s[1],t[1],e);var p=f(n[0],s[0],t[0],e),v=f(n[1],s[1],t[1],e);if(i.rotation=-Math.atan2(v,p)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(i.__lastT!==void 0&&i.__lastT<i.__t){var A=m.dist(l,o)*1.05;i.attr("scale",[i.scale[0],A]),e===1&&(o[0]=l[0]+(o[0]-l[0])/2,o[1]=l[1]+(o[1]-l[1])/2)}else if(i.__lastT===1){var A=2*m.dist(n,o);i.attr("scale",[i.scale[0],A])}else i.attr("scale",this._symbolScale);i.__lastT=i.__t,i.ignore=!1},a.updateLayout=function(i,n){this.childAt(0).updateLayout(i,n);var t=i.getItemModel(n).getModel("effect");this._updateEffectAnimation(i,t,n)},T.inherits(c,I.Group);var r=c;H.exports=r},DBLp:function(H,k){function d(){}d.prototype={diff:function(m,h,c){c||(c=function(v,A){return v===A}),this.equals=c;var a=this;m=m.slice(),h=h.slice();var r=h.length,i=m.length,n=1,t=r+i,s=[{newPos:-1,components:[]}],e=this.extractCommon(s[0],h,m,0);if(s[0].newPos+1>=r&&e+1>=i){for(var o=[],l=0;l<h.length;l++)o.push(l);return[{indices:o,count:h.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var v,A=s[p-1],y=s[p+1],x=(y?y.newPos:0)-p;A&&(s[p-1]=void 0);var C=A&&A.newPos+1<r,w=y&&0<=x&&x<i;if(!C&&!w){s[p]=void 0;continue}if(!C||w&&A.newPos<y.newPos?(v=E(y),a.pushComponent(v.components,void 0,!0)):(v=A,v.newPos++,a.pushComponent(v.components,!0,void 0)),x=a.extractCommon(v,h,m,p),v.newPos+1>=r&&x+1>=i)return I(a,v.components,h,m);s[p]=v}n++}for(;n<=t;){var f=u();if(f)return f}},pushComponent:function(m,h,c){var a=m[m.length-1];a&&a.added===h&&a.removed===c?m[m.length-1]={count:a.count+1,added:h,removed:c}:m.push({count:1,added:h,removed:c})},extractCommon:function(m,h,c,a){for(var r=h.length,i=c.length,n=m.newPos,t=n-a,s=0;n+1<r&&t+1<i&&this.equals(h[n+1],c[t+1]);)n++,t++,s++;return s&&m.components.push({count:s}),m.newPos=n,t},tokenize:function(m){return m.slice()},join:function(m){return m.slice()}};function I(S,m,h,c){for(var a=0,r=m.length,i=0,n=0;a<r;a++){var t=m[a];if(t.removed){for(var s=[],e=n;e<n+t.count;e++)s.push(e);t.indices=s,n+=t.count}else{for(var s=[],e=i;e<i+t.count;e++)s.push(e);t.indices=s,i+=t.count,t.added||(n+=t.count)}}return m}function E(S){return{newPos:S.newPos,components:S.components.slice(0)}}var T=new d;function g(S,m,h){return T.diff(S,m,h)}H.exports=g},DEFe:function(H,k,d){var I=d("bYtY"),E=d("SgGq"),T=d("Ae+d"),g=d("xSat"),S=g.onIrrelevantElement,m=d("IwbS"),h=d("W4dC"),c=d("iRjW"),a=c.getUID,r=d("DN4a");function i(o){var l=o.getItemStyle(),u=o.get("areaColor");return u!=null&&(l.fill=u),l}function n(o,l,u,f,p){u.off("click"),u.off("mousedown"),l.get("selectedMode")&&(u.on("mousedown",function(){o._mouseDownFlag=!0}),u.on("click",function(v){if(!o._mouseDownFlag)return;o._mouseDownFlag=!1;for(var A=v.target;!A.__regions;)A=A.parent;if(!A)return;var y={type:(l.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:I.map(A.__regions,function(x){return{name:x.name,from:p.uid}})};y[l.mainType+"Id"]=l.id,f.dispatchAction(y),t(l,u)}))}function t(o,l){l.eachChild(function(u){I.each(u.__regions,function(f){u.trigger(o.isSelected(f.name)?"emphasis":"normal")})})}function s(o,l){var u=new m.Group;this.uid=a("ec_map_draw"),this._controller=new E(o.getZr()),this._controllerHost={target:l?u:null},this.group=u,this._updateGroup=l,this._mouseDownFlag,this._mapName,this._initialized,u.add(this._regionsGroup=new m.Group),u.add(this._backgroundGroup=new m.Group)}s.prototype={constructor:s,draw:function(o,l,u,f,p){var v=o.mainType==="geo",A=o.getData&&o.getData();v&&l.eachComponent({mainType:"series",subType:"map"},function(K){!A&&K.getHostGeoModel()===o&&(A=K.getData())});var y=o.coordinateSystem;this._updateBackground(y);var x=this._regionsGroup,C=this.group,w=y.getTransformInfo(),b=!x.childAt(0)||p,_;if(b)C.transform=w.roamTransform,C.decomposeTransform(),C.dirty();else{var O=new r;O.transform=w.roamTransform,O.decomposeTransform();var L={scale:O.scale,position:O.position};_=O.scale,m.updateProps(C,L,o)}var D=w.rawScale,N=w.rawPosition;x.removeAll();var M=["itemStyle"],F=["emphasis","itemStyle"],R=["label"],j=["emphasis","label"],B=I.createHashMap();I.each(y.regions,function(K){var U=B.get(K.name)||B.set(K.name,new m.Group),z=new m.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});U.add(z);var V=o.getRegionModel(K.name)||o,Y=V.getModel(M),J=V.getModel(F),se=i(Y),$=i(J),ae=V.getModel(R),ge=V.getModel(j),pe;if(A){pe=A.indexOfName(K.name);var Ne=A.getItemVisual(pe,"color",!0);Ne&&(se.fill=Ne)}var de=function(ue){return[ue[0]*D[0]+N[0],ue[1]*D[1]+N[1]]};I.each(K.geometries,function(ue){if(ue.type!=="polygon")return;for(var _e=[],xe=0;xe<ue.exterior.length;++xe)_e.push(de(ue.exterior[xe]));z.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:_e}}));for(var xe=0;xe<(ue.interiors?ue.interiors.length:0);++xe){for(var oe=ue.interiors[xe],_e=[],fe=0;fe<oe.length;++fe)_e.push(de(oe[fe]));z.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:_e}}))}}),z.setStyle(se),z.style.strokeNoScale=!0,z.culling=!0;var Le=ae.get("show"),Q=ge.get("show"),ce=A&&isNaN(A.get(A.mapDimension("value"),pe)),Ke=A&&A.getItemLayout(pe);if(v||ce&&(Le||Q)||Ke&&Ke.showLabel){var ee=v?K.name:pe,X;(!A||pe>=0)&&(X=o);var G=new m.Text({position:de(K.center.slice()),scale:[1/C.scale[0],1/C.scale[1]],z2:10,silent:!0});if(m.setLabelStyle(G.style,G.hoverStyle={},ae,ge,{labelFetcher:X,labelDataIndex:ee,defaultText:K.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var Z=[1/_[0],1/_[1]];m.updateProps(G,{scale:Z},o)}U.add(G)}if(A)A.setItemGraphicEl(pe,U);else{var V=o.getRegionModel(K.name);z.eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:K.name,region:V&&V.option||{}}}var ve=U.__regions||(U.__regions=[]);ve.push(K),U.highDownSilentOnTouch=!!o.get("selectedMode"),m.setHoverStyle(U,$),x.add(U)}),this._updateController(o,l,u),n(this,o,x,u,f),t(o,x)},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(o){var l=o.map;this._mapName!==l&&I.each(h.makeGraphic(l,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=l},_updateController:function(o,l,u){var f=o.coordinateSystem,p=this._controller,v=this._controllerHost;v.zoomLimit=o.get("scaleLimit"),v.zoom=f.getZoom(),p.enable(o.get("roam")||!1);var A=o.mainType;function y(){var x={type:"geoRoam",componentType:A};return x[A+"Id"]=o.id,x}p.off("pan").on("pan",function(x){this._mouseDownFlag=!1,T.updateViewOnPan(v,x.dx,x.dy),u.dispatchAction(I.extend(y(),{dx:x.dx,dy:x.dy}))},this),p.off("zoom").on("zoom",function(x){if(this._mouseDownFlag=!1,T.updateViewOnZoom(v,x.scale,x.originX,x.originY),u.dispatchAction(I.extend(y(),{zoom:x.scale,originX:x.originX,originY:x.originY})),this._updateGroup){var C=this.group.scale;this._regionsGroup.traverse(function(w){w.type==="text"&&w.attr("scale",[1/C[0],1/C[1]])})}},this),p.setPointerChecker(function(x,C,w){return f.getViewRectAfterRoam().contain(C,w)&&!S(x,u,o)})}};var e=s;H.exports=e},DFOY:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("PJYZ"),r=d.n(a),i=d("7W2i"),n=d.n(i),t=d("LQ03"),s=d.n(t),e=d("q1tI"),o=d("uciX"),l=d("2W6z"),u=d.n(l),f=d("4IlW"),p=d("uK0f"),v=d.n(p);function A(st,Qe){if(st===Qe)return!0;if(!st||!Qe)return!1;var qt=st.length;if(Qe.length!==qt)return!1;for(var Sr=0;Sr<qt;Sr++)if(st[Sr]!==Qe[Sr])return!1;return!0}function y(st){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(qt){return typeof qt}:y=function(qt){return qt&&typeof Symbol=="function"&&qt.constructor===Symbol&&qt!==Symbol.prototype?"symbol":typeof qt},y(st)}function x(st,Qe){if(!(st instanceof Qe))throw new TypeError("Cannot call a class as a function")}function C(st,Qe){for(var qt=0;qt<Qe.length;qt++){var Sr=Qe[qt];Sr.enumerable=Sr.enumerable||!1,Sr.configurable=!0,"value"in Sr&&(Sr.writable=!0),Object.defineProperty(st,Sr.key,Sr)}}function w(st,Qe,qt){return Qe&&C(st.prototype,Qe),qt&&C(st,qt),st}function b(st,Qe){if(typeof Qe!="function"&&Qe!==null)throw new TypeError("Super expression must either be null or a function");st.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:st,writable:!0,configurable:!0}}),Qe&&_(st,Qe)}function _(st,Qe){return _=Object.setPrototypeOf||function(Sr,Ar){return Sr.__proto__=Ar,Sr},_(st,Qe)}function O(st){var Qe=N();return function(){var qt=M(st),Sr;if(Qe){var Ar=M(this).constructor;Sr=Reflect.construct(qt,arguments,Ar)}else Sr=qt.apply(this,arguments);return L(this,Sr)}}function L(st,Qe){return Qe&&(y(Qe)==="object"||typeof Qe=="function")?Qe:D(st)}function D(st){if(st===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return st}function N(){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(st){return!1}}function M(st){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(qt){return qt.__proto__||Object.getPrototypeOf(qt)},M(st)}var F=function(){var st=function(Qe){b(Sr,Qe);var qt=O(Sr);function Sr(){var Ar;return x(this,Sr),Ar=qt.apply(this,arguments),Ar.menuItems={},Ar.saveMenuItem=function(hr){return function(vn){Ar.menuItems[hr]=vn}},Ar}return w(Sr,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(hr){!hr.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(hr){var vn=this.props,Zr=vn.fieldNames,Ln=vn.defaultFieldNames;return Zr[hr]||Ln[hr]}},{key:"getOption",value:function(hr,vn){var Zr=this.props,Ln=Zr.prefixCls,$e=Zr.expandTrigger,tt=Zr.expandIcon,Ee=Zr.loadingIcon,Re=this.props.onSelect.bind(this,hr,vn),je=this.props.onItemDoubleClick.bind(this,hr,vn),nt={onClick:Re,onDoubleClick:je},Vt="".concat(Ln,"-menu-item"),Bt=null,Xt=hr[this.getFieldName("children")]&&hr[this.getFieldName("children")].length>0;(Xt||hr.isLeaf===!1)&&(Vt+=" ".concat(Ln,"-menu-item-expand"),hr.loading||(Bt=e.createElement("span",{className:"".concat(Ln,"-menu-item-expand-icon")},tt))),$e==="hover"&&(Xt||hr.isLeaf===!1)&&(nt={onMouseEnter:this.delayOnSelect.bind(this,Re),onMouseLeave:this.delayOnSelect.bind(this),onClick:Re}),this.isActiveOption(hr,vn)&&(Vt+=" ".concat(Ln,"-menu-item-active"),nt.ref=this.saveMenuItem(vn)),hr.disabled&&(Vt+=" ".concat(Ln,"-menu-item-disabled"));var Rr=null;hr.loading&&(Vt+=" ".concat(Ln,"-menu-item-loading"),Rr=Ee||null);var Br="";return"title"in hr?Br=hr.title:typeof hr[this.getFieldName("label")]=="string"&&(Br=hr[this.getFieldName("label")]),e.createElement("li",Object.assign({key:hr[this.getFieldName("value")],className:Vt,title:Br},nt,{role:"menuitem",onMouseDown:function(Ut){return Ut.preventDefault()}}),hr[this.getFieldName("label")],Bt,Rr)}},{key:"getActiveOptions",value:function(hr){var vn=this,Zr=this.props.options,Ln=hr||this.props.activeValue;return v()(Zr,function($e,tt){return $e[vn.getFieldName("value")]===Ln[tt]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var hr=this,vn=this.props.options,Zr=this.getActiveOptions().map(function(Ln){return Ln[hr.getFieldName("children")]}).filter(function(Ln){return!!Ln});return Zr.unshift(vn),Zr}},{key:"delayOnSelect",value:function(hr){for(var vn=this,Zr=arguments.length,Ln=new Array(Zr>1?Zr-1:0),$e=1;$e<Zr;$e++)Ln[$e-1]=arguments[$e];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof hr=="function"&&(this.delayTimer=window.setTimeout(function(){hr(Ln),vn.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var hr=this.getShowOptions().length,vn=0;vn<hr;vn++){var Zr=this.menuItems[vn];Zr&&Zr.parentElement&&(Zr.parentElement.scrollTop=Zr.offsetTop)}}},{key:"isActiveOption",value:function(hr,vn){var Zr=this.props.activeValue,Ln=Zr===void 0?[]:Zr;return Ln[vn]===hr[this.getFieldName("value")]}},{key:"render",value:function(){var hr=this,vn=this.props,Zr=vn.prefixCls,Ln=vn.dropdownMenuColumnStyle;return e.createElement("div",null,this.getShowOptions().map(function($e,tt){return e.createElement("ul",{className:"".concat(Zr,"-menu"),key:tt,style:Ln},$e.map(function(Ee){return hr.getOption(Ee,tt)}))}))}}]),Sr}(e.Component);return st.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},st}(),R=F,j={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}}},B=j;function K(st){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?K=function(qt){return typeof qt}:K=function(qt){return qt&&typeof Symbol=="function"&&qt.constructor===Symbol&&qt!==Symbol.prototype?"symbol":typeof qt},K(st)}function U(st,Qe){if(st==null)return{};var qt=z(st,Qe),Sr,Ar;if(Object.getOwnPropertySymbols){var hr=Object.getOwnPropertySymbols(st);for(Ar=0;Ar<hr.length;Ar++){if(Sr=hr[Ar],Qe.indexOf(Sr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(st,Sr))continue;qt[Sr]=st[Sr]}}return qt}function z(st,Qe){if(st==null)return{};var qt={},Sr=Object.keys(st),Ar,hr;for(hr=0;hr<Sr.length;hr++){if(Ar=Sr[hr],Qe.indexOf(Ar)>=0)continue;qt[Ar]=st[Ar]}return qt}function V(st){return $(st)||se(st)||J(st)||Y()}function Y(){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 J(st,Qe){if(!st)return;if(typeof st=="string")return ae(st,Qe);var qt=Object.prototype.toString.call(st).slice(8,-1);if(qt==="Object"&&st.constructor&&(qt=st.constructor.name),qt==="Map"||qt==="Set")return Array.from(st);if(qt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qt))return ae(st,Qe)}function se(st){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(st))return Array.from(st)}function $(st){if(Array.isArray(st))return ae(st)}function ae(st,Qe){(Qe==null||Qe>st.length)&&(Qe=st.length);for(var qt=0,Sr=new Array(Qe);qt<Qe;qt++)Sr[qt]=st[qt];return Sr}function ge(st,Qe){if(!(st instanceof Qe))throw new TypeError("Cannot call a class as a function")}function pe(st,Qe){for(var qt=0;qt<Qe.length;qt++){var Sr=Qe[qt];Sr.enumerable=Sr.enumerable||!1,Sr.configurable=!0,"value"in Sr&&(Sr.writable=!0),Object.defineProperty(st,Sr.key,Sr)}}function Ne(st,Qe,qt){return Qe&&pe(st.prototype,Qe),qt&&pe(st,qt),st}function de(st,Qe){if(typeof Qe!="function"&&Qe!==null)throw new TypeError("Super expression must either be null or a function");st.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:st,writable:!0,configurable:!0}}),Qe&&Le(st,Qe)}function Le(st,Qe){return Le=Object.setPrototypeOf||function(Sr,Ar){return Sr.__proto__=Ar,Sr},Le(st,Qe)}function Q(st){var Qe=ee();return function(){var qt=X(st),Sr;if(Qe){var Ar=X(this).constructor;Sr=Reflect.construct(qt,arguments,Ar)}else Sr=qt.apply(this,arguments);return ce(this,Sr)}}function ce(st,Qe){return Qe&&(K(Qe)==="object"||typeof Qe=="function")?Qe:Ke(st)}function Ke(st){if(st===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return st}function ee(){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(st){return!1}}function X(st){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(qt){return qt.__proto__||Object.getPrototypeOf(qt)},X(st)}var G=function(){var st=function(Qe){de(Sr,Qe);var qt=Q(Sr);function Sr(Ar){var hr;ge(this,Sr),hr=qt.call(this,Ar),hr.setPopupVisible=function(Zr){var Ln=hr.state.value;"popupVisible"in hr.props||hr.setState({popupVisible:Zr}),Zr&&!hr.state.popupVisible&&hr.setState({activeValue:Ln}),hr.props.onPopupVisibleChange(Zr)},hr.handleChange=function(Zr,Ln,$e){var tt=Ln.visible;($e.type!=="keydown"||$e.keyCode===f.a.ENTER)&&(hr.props.onChange(Zr.map(function(Ee){return Ee[hr.getFieldName("value")]}),Zr),hr.setPopupVisible(tt))},hr.handlePopupVisibleChange=function(Zr){hr.setPopupVisible(Zr)},hr.handleMenuSelect=function(Zr,Ln,$e){var tt=hr.trigger.getRootDomNode();tt&&tt.focus&&tt.focus();var Ee=hr.props,Re=Ee.changeOnSelect,je=Ee.loadData,nt=Ee.expandTrigger;if(!Zr||Zr.disabled)return;var Vt=hr.state.activeValue;Vt=Vt.slice(0,Ln+1),Vt[Ln]=Zr[hr.getFieldName("value")];var Bt=hr.getActiveOptions(Vt);if(Zr.isLeaf===!1&&!Zr[hr.getFieldName("children")]&&je){Re&&hr.handleChange(Bt,{visible:!0},$e),hr.setState({activeValue:Vt}),je(Bt);return}var Xt={};!Zr[hr.getFieldName("children")]||!Zr[hr.getFieldName("children")].length?(hr.handleChange(Bt,{visible:!1},$e),Xt.value=Vt):Re&&($e.type==="click"||$e.type==="keydown")&&(nt==="hover"?hr.handleChange(Bt,{visible:!1},$e):hr.handleChange(Bt,{visible:!0},$e),Xt.value=Vt),Xt.activeValue=Vt,("value"in hr.props||$e.type==="keydown"&&$e.keyCode!==f.a.ENTER)&&delete Xt.value,hr.setState(Xt)},hr.handleItemDoubleClick=function(){var Zr=hr.props.changeOnSelect;Zr&&hr.setPopupVisible(!1)},hr.handleKeyDown=function(Zr){var Ln=hr.props.children;if(Ln&&Ln.props.onKeyDown){Ln.props.onKeyDown(Zr);return}var $e=V(hr.state.activeValue),tt=$e.length-1<0?0:$e.length-1,Ee=hr.getCurrentLevelOptions(),Re=Ee.map(function(Bt){return Bt[hr.getFieldName("value")]}).indexOf($e[tt]);if(Zr.keyCode!==f.a.DOWN&&Zr.keyCode!==f.a.UP&&Zr.keyCode!==f.a.LEFT&&Zr.keyCode!==f.a.RIGHT&&Zr.keyCode!==f.a.ENTER&&Zr.keyCode!==f.a.SPACE&&Zr.keyCode!==f.a.BACKSPACE&&Zr.keyCode!==f.a.ESC&&Zr.keyCode!==f.a.TAB)return;if(!hr.state.popupVisible&&Zr.keyCode!==f.a.BACKSPACE&&Zr.keyCode!==f.a.LEFT&&Zr.keyCode!==f.a.RIGHT&&Zr.keyCode!==f.a.ESC&&Zr.keyCode!==f.a.TAB){hr.setPopupVisible(!0);return}if(Zr.keyCode===f.a.DOWN||Zr.keyCode===f.a.UP){Zr.preventDefault();var je=Re;je!==-1?Zr.keyCode===f.a.DOWN?(je+=1,je=je>=Ee.length?0:je):(je-=1,je=je<0?Ee.length-1:je):je=0,$e[tt]=Ee[je][hr.getFieldName("value")]}else if(Zr.keyCode===f.a.LEFT||Zr.keyCode===f.a.BACKSPACE)Zr.preventDefault(),$e.splice($e.length-1,1);else if(Zr.keyCode===f.a.RIGHT)Zr.preventDefault(),Ee[Re]&&Ee[Re][hr.getFieldName("children")]&&$e.push(Ee[Re][hr.getFieldName("children")][0][hr.getFieldName("value")]);else if(Zr.keyCode===f.a.ESC||Zr.keyCode===f.a.TAB){hr.setPopupVisible(!1);return}(!$e||$e.length===0)&&hr.setPopupVisible(!1);var nt=hr.getActiveOptions($e),Vt=nt[nt.length-1];hr.handleMenuSelect(Vt,nt.length-1,Zr),hr.props.onKeyDown&&hr.props.onKeyDown(Zr)},hr.saveTrigger=function(Zr){hr.trigger=Zr};var vn=[];return"value"in Ar?vn=Ar.value||[]:"defaultValue"in Ar&&(vn=Ar.defaultValue||[]),u()(!("filedNames"in Ar),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),hr.state={popupVisible:Ar.popupVisible,activeValue:vn,value:vn,prevProps:Ar},hr.defaultFieldNames={label:"label",value:"value",children:"children"},hr}return Ne(Sr,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(hr){var vn=this.defaultFieldNames,Zr=this.props,Ln=Zr.fieldNames,$e=Zr.filedNames;return"filedNames"in this.props?$e[hr]||vn[hr]:Ln[hr]||vn[hr]}},{key:"getFieldNames",value:function(){var hr=this.props,vn=hr.fieldNames,Zr=hr.filedNames;return"filedNames"in this.props?Zr:vn}},{key:"getCurrentLevelOptions",value:function(){var hr=this,vn=this.props.options,Zr=vn===void 0?[]:vn,Ln=this.state.activeValue,$e=Ln===void 0?[]:Ln,tt=v()(Zr,function(Ee,Re){return Ee[hr.getFieldName("value")]===$e[Re]},{childrenKeyName:this.getFieldName("children")});return tt[tt.length-2]?tt[tt.length-2][this.getFieldName("children")]:V(Zr).filter(function(Ee){return!Ee.disabled})}},{key:"getActiveOptions",value:function(hr){var vn=this;return v()(this.props.options||[],function(Zr,Ln){return Zr[vn.getFieldName("value")]===hr[Ln]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var hr=this.props,vn=hr.prefixCls,Zr=hr.transitionName,Ln=hr.popupClassName,$e=hr.options,tt=$e===void 0?[]:$e,Ee=hr.disabled,Re=hr.builtinPlacements,je=hr.popupPlacement,nt=hr.children,Vt=hr.dropdownRender,Bt=U(hr,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Xt=e.createElement("div",null),Rr="";tt&&tt.length>0?Xt=e.createElement(R,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Rr=" ".concat(vn,"-menus-empty");var Br=Xt;return Vt&&(Br=Vt(Xt)),e.createElement(o.a,Object.assign({ref:this.saveTrigger},Bt,{popupPlacement:je,builtinPlacements:Re,popupTransitionName:Zr,action:Ee?[]:["click"],popupVisible:Ee?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(vn,"-menus"),popupClassName:Ln+Rr,popup:Br}),e.cloneElement(nt,{onKeyDown:this.handleKeyDown,tabIndex:Ee?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(hr,vn){var Zr=vn.prevProps,Ln=Zr===void 0?{}:Zr,$e={prevProps:hr};return"value"in hr&&!A(Ln.value,hr.value)&&($e.value=hr.value||[],"loadData"in hr||($e.activeValue=hr.value||[])),"popupVisible"in hr&&($e.popupVisible=hr.popupVisible),$e}}]),Sr}(e.Component);return st.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:B,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},st}(),Z=G,ve=Z,ue=d("TSYQ"),_e=d.n(ue),xe=d("BGR+"),oe=d("kbBi"),fe=d.n(oe),Te=d("HQEm"),ze=d.n(Te),it=d("fEPi"),et=d.n(it),Oe=d("5YOS"),gt=d.n(Oe),Ge=d("DFhj"),wt=d.n(Ge),xt=d("5rEg"),Ct=d("H84U"),Dt=d("YMnH"),Ht=d("uaoM"),Je=d("3Nzz"),ye=d("0n0R"),ie=function(st,Qe){var qt={};for(var Sr in st)Object.prototype.hasOwnProperty.call(st,Sr)&&Qe.indexOf(Sr)<0&&(qt[Sr]=st[Sr]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,Sr=Object.getOwnPropertySymbols(st);Ar<Sr.length;Ar++)Qe.indexOf(Sr[Ar])<0&&Object.prototype.propertyIsEnumerable.call(st,Sr[Ar])&&(qt[Sr[Ar]]=st[Sr[Ar]]);return qt},bt=50;function qe(st,Qe,qt){return st.split(Qe).map(function(Sr,Ar){return Ar===0?Sr:[e.createElement("span",{className:"".concat(qt,"-menu-item-keyword"),key:"seperator"},Qe),Sr]})}function me(st,Qe,qt){return Qe.some(function(Sr){return Sr[qt.label].indexOf(st)>-1})}function Rt(st,Qe,qt,Sr){return Qe.map(function(Ar,hr){var vn=Ar[Sr.label],Zr=vn.indexOf(st)>-1?qe(vn,st,qt):vn;return hr===0?Zr:[" / ",Zr]})}function er(st,Qe,qt,Sr){function Ar(hr){return hr[Sr.label].indexOf(qt)>-1}return st.findIndex(Ar)-Qe.findIndex(Ar)}function ct(st){var Qe=st.fieldNames;return Qe}function zt(st){var Qe=ct(st)||{},qt={children:Qe.children||"children",label:Qe.label||"label",value:Qe.value||"value"};return qt}function sr(st,Qe){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Sr=zt(Qe),Ar=[],hr=Sr.children;return st.forEach(function(vn){var Zr=qt.concat(vn);(Qe.changeOnSelect||!vn[hr]||!vn[hr].length)&&Ar.push(Zr),vn[hr]&&(Ar=Ar.concat(sr(vn[hr],Qe,Zr)))}),Ar}var Kr=function(Qe){return Qe.join(" / ")};function ar(st){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(st||[]).forEach(function(qt){var Sr=Qe.value||"value";Object(Ht.a)(Sr in qt,"Cascader","Not found `value` in `options`."),ar(qt[Qe.children||"children"],Qe)})}var nr=function(st){n()(qt,st);var Qe=s()(qt);function qt(Sr){var Ar;return m()(this,qt),Ar=Qe.call(this,Sr),Ar.cachedOptions=[],Ar.setValue=function(hr){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Ar.props||Ar.setState({value:hr});var Zr=Ar.props.onChange;Zr&&Zr(hr,vn)},Ar.saveInput=function(hr){Ar.input=hr},Ar.handleChange=function(hr,vn){if(Ar.setState({inputValue:""}),vn[0].__IS_FILTERED_OPTION){var Zr=hr[0],Ln=vn[0].path;Ar.setValue(Zr,Ln);return}Ar.setValue(hr,vn)},Ar.handlePopupVisibleChange=function(hr){"popupVisible"in Ar.props||Ar.setState(function(Zr){return{popupVisible:hr,inputFocused:hr,inputValue:hr?Zr.inputValue:""}});var vn=Ar.props.onPopupVisibleChange;vn&&vn(hr)},Ar.handleInputBlur=function(){Ar.setState({inputFocused:!1})},Ar.handleInputClick=function(hr){var vn=Ar.state,Zr=vn.inputFocused,Ln=vn.popupVisible;(Zr||Ln)&&hr.stopPropagation()},Ar.handleKeyDown=function(hr){(hr.keyCode===f.a.BACKSPACE||hr.keyCode===f.a.SPACE)&&hr.stopPropagation()},Ar.handleInputChange=function(hr){var vn=Ar.state.popupVisible,Zr=hr.target.value;vn||Ar.handlePopupVisibleChange(!0),Ar.setState({inputValue:Zr})},Ar.clearSelection=function(hr){var vn=Ar.state.inputValue;hr.preventDefault(),hr.stopPropagation(),vn?Ar.setState({inputValue:""}):(Ar.handlePopupVisibleChange(!1),Ar.clearSelectionTimeout=setTimeout(function(){Ar.setValue([])},200))},Ar.renderCascader=function(hr,vn){var Zr=hr.getPopupContainer,Ln=hr.getPrefixCls,$e=hr.renderEmpty,tt=hr.direction;return e.createElement(Je.b.Consumer,null,function(Ee){var Re,je,nt,Vt,Bt=r()(Ar),Xt=Bt.props,Rr=Bt.state,Br=Xt.prefixCls,cn=Xt.inputPrefixCls,Ut=Xt.children,pt=Xt.placeholder,ut=pt===void 0?vn.placeholder||"Please select":pt,Jt=Xt.size,Zt=Xt.disabled,At=Xt.className,Pt=Xt.style,vt=Xt.allowClear,Ft=Xt.showSearch,gr=Ft===void 0?!1:Ft,or=Xt.suffixIcon,ur=Xt.expandIcon,Yr=Xt.notFoundContent,Jr=Xt.popupClassName,Tn=Xt.bordered,Dn=Xt.dropdownRender,zn=ie(Xt,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),qn=Jt||Ee,Ai=Rr.value,Mi=Rr.inputFocused,Ye=tt==="rtl",Ce=Ln("cascader",Br),ke=Ln("input",cn),Fe=_e()((Re={},g()(Re,"".concat(ke,"-lg"),qn==="large"),g()(Re,"".concat(ke,"-sm"),qn==="small"),Re)),Ve=vt&&!Zt&&Ai.length>0||Rr.inputValue?e.createElement(fe.a,{className:"".concat(Ce,"-picker-clear"),onClick:Ar.clearSelection}):null,We=_e()((je={},g()(je,"".concat(Ce,"-picker-arrow"),!0),g()(je,"".concat(Ce,"-picker-arrow-expand"),Rr.popupVisible),je)),Ze=_e()(At,"".concat(Ce,"-picker"),(nt={},g()(nt,"".concat(Ce,"-picker-rtl"),Ye),g()(nt,"".concat(Ce,"-picker-with-value"),Rr.inputValue),g()(nt,"".concat(Ce,"-picker-disabled"),Zt),g()(nt,"".concat(Ce,"-picker-").concat(qn),!!qn),g()(nt,"".concat(Ce,"-picker-show-search"),!!gr),g()(nt,"".concat(Ce,"-picker-focused"),Mi),g()(nt,"".concat(Ce,"-picker-borderless"),!Tn),nt)),yt=Object(xe.default)(zn,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),lt=Xt.options,kt=zt(Ar.props);if(lt&<.length>0)Rr.inputValue&&(lt=Ar.generateFilteredOptions(Ce,$e));else{var wr;lt=[(wr={},g()(wr,kt.label,Yr||$e("Cascader")),g()(wr,kt.value,"ANT_CASCADER_NOT_FOUND"),wr)]}Rr.popupVisible?Ar.cachedOptions=lt:lt=Ar.cachedOptions;var pr={},_r=(lt||[]).length===1&<[0].isEmptyNode;_r&&(pr.height="auto");var Wt=gr.matchInputWidth!==!1;Wt&&(Rr.inputValue||_r)&&Ar.input&&(pr.width=Ar.input.input.offsetWidth);var un;or?un=Object(ye.c)(or,e.createElement("span",{className:"".concat(Ce,"-picker-arrow")},or),function(){var ii;return{className:_e()((ii={},g()(ii,or.props.className,or.props.className),g()(ii,"".concat(Ce,"-picker-arrow"),!0),ii))}}):un=e.createElement(ze.a,{className:We});var ir=Ut||e.createElement("span",{style:Pt,className:Ze},e.createElement("span",{className:"".concat(Ce,"-picker-label")},Ar.getLabel()),e.createElement(xt.a,E()({},yt,{tabIndex:"-1",ref:Ar.saveInput,prefixCls:ke,placeholder:Ai&&Ai.length>0?void 0:ut,className:"".concat(Ce,"-input ").concat(Fe),value:Rr.inputValue,disabled:Zt,readOnly:!gr,autoComplete:yt.autoComplete||"off",onClick:gr?Ar.handleInputClick:void 0,onBlur:gr?Ar.handleInputBlur:void 0,onKeyDown:Ar.handleKeyDown,onChange:gr?Ar.handleInputChange:void 0})),Ve,un),Gr;ur?Gr=ur:Gr=Ye?e.createElement(wt.a,null):e.createElement(et.a,null);var kr=e.createElement("span",{className:"".concat(Ce,"-menu-item-loading-icon")},e.createElement(gt.a,{spin:!0})),yr=Xt.getPopupContainer||Zr,En=Object(xe.default)(Xt,["inputIcon","expandIcon","loadingIcon","bordered"]),kn=_e()(Jr,(Vt={},g()(Vt,"".concat(Ce,"-menu-").concat(tt),tt==="rtl"),g()(Vt,"".concat(Ce,"-menu-empty"),lt.length===1&<[0].value==="ANT_CASCADER_NOT_FOUND"),Vt));return e.createElement(ve,E()({},En,{prefixCls:Ce,getPopupContainer:yr,options:lt,value:Ai,popupVisible:Rr.popupVisible,onPopupVisibleChange:Ar.handlePopupVisibleChange,onChange:Ar.handleChange,dropdownMenuColumnStyle:pr,expandIcon:Gr,loadingIcon:kr,popupClassName:kn,popupPlacement:Ar.getPopupPlacement(tt),dropdownRender:Dn}),ir)})},Ar.state={value:Sr.value||Sr.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Sr.popupVisible,flattenOptions:Sr.showSearch?sr(Sr.options,Sr):void 0,prevProps:Sr},Ar}return c()(qt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Ar=this.props,hr=Ar.options,vn=Ar.displayRender,Zr=vn===void 0?Kr:vn,Ln=zt(this.props),$e=this.state.value,tt=Array.isArray($e[0])?$e[0]:$e,Ee=v()(hr,function(je,nt){return je[Ln.value]===tt[nt]},{childrenKeyName:Ln.children}),Re=Ee.length?Ee.map(function(je){return je[Ln.label]}):$e;return Zr(Re,Ee)}},{key:"generateFilteredOptions",value:function(Ar,hr){var vn=this,Zr,Ln=this.props,$e=Ln.showSearch,tt=Ln.notFoundContent,Ee=zt(this.props),Re=$e.filter,je=Re===void 0?me:Re,nt=$e.render,Vt=nt===void 0?Rt:nt,Bt=$e.sort,Xt=Bt===void 0?er:Bt,Rr=$e.limit,Br=Rr===void 0?bt:Rr,cn=this.state,Ut=cn.flattenOptions,pt=Ut===void 0?[]:Ut,ut=cn.inputValue,Jt;if(Br>0){Jt=[];var Zt=0;pt.some(function(At){var Pt=je(vn.state.inputValue,At,Ee);return Pt&&(Jt.push(At),Zt+=1),Zt>=Br})}else Object(Ht.a)(typeof Br!="number","Cascader","'limit' of showSearch should be positive number or false."),Jt=pt.filter(function(At){return je(vn.state.inputValue,At,Ee)});return Jt=Jt.sort(function(At,Pt){return Xt(At,Pt,ut,Ee)}),Jt.length>0?Jt.map(function(At){var Pt;return Pt={__IS_FILTERED_OPTION:!0,path:At},g()(Pt,Ee.value,At.map(function(vt){return vt[Ee.value]})),g()(Pt,Ee.label,Vt(ut,At,Ar,Ee)),g()(Pt,"disabled",At.some(function(vt){return!!vt.disabled})),g()(Pt,"isEmptyNode",!0),Pt}):[(Zr={},g()(Zr,Ee.value,"ANT_CASCADER_NOT_FOUND"),g()(Zr,Ee.label,tt||hr("Cascader")),g()(Zr,"disabled",!0),g()(Zr,"isEmptyNode",!0),Zr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",hr=this.props.popupPlacement;return hr!==void 0?hr:Ar==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Ar=this;return e.createElement(Ct.a,null,function(hr){return e.createElement(Dt.a,null,function(vn){return Ar.renderCascader(hr,vn)})})}}],[{key:"getDerivedStateFromProps",value:function(Ar,hr){var vn=hr.prevProps,Zr={prevProps:Ar};return"value"in Ar&&(Zr.value=Ar.value||[]),"popupVisible"in Ar&&(Zr.popupVisible=Ar.popupVisible),Ar.showSearch&&vn.options!==Ar.options&&(Zr.flattenOptions=sr(Ar.options,Ar)),Zr}}]),qt}(e.Component);nr.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Lt=k.a=nr},DFhj:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("GGyF"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},DL4k:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},DN4a:function(H,k,d){var I=d("Fofx"),E=d("QBsz"),T=I.identity,g=5e-5;function S(n){return n>g||n<-g}var m=function(t){t=t||{},t.position||(this.position=[0,0]),t.rotation==null&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},h=m.prototype;h.transform=null,h.needLocalTransform=function(){return S(this.rotation)||S(this.position[0])||S(this.position[1])||S(this.scale[0]-1)||S(this.scale[1]-1)};var c=[];h.updateTransform=function(){var n=this.parent,t=n&&n.transform,s=this.needLocalTransform(),e=this.transform;if(!(s||t)){e&&T(e);return}e=e||I.create(),s?this.getLocalTransform(e):T(e),t&&(s?I.mul(e,n.transform,e):I.copy(e,n.transform)),this.transform=e;var o=this.globalScaleRatio;if(o!=null&&o!==1){this.getGlobalScale(c);var l=c[0]<0?-1:1,u=c[1]<0?-1:1,f=((c[0]-l)*o+l)/c[0]||0,p=((c[1]-u)*o+u)/c[1]||0;e[0]*=f,e[1]*=f,e[2]*=p,e[3]*=p}this.invTransform=this.invTransform||I.create(),I.invert(this.invTransform,e)},h.getLocalTransform=function(n){return m.getLocalTransform(this,n)},h.setTransform=function(n){var t=this.transform,s=n.dpr||1;t?n.setTransform(s*t[0],s*t[1],s*t[2],s*t[3],s*t[4],s*t[5]):n.setTransform(s,0,0,s,0,0)},h.restoreTransform=function(n){var t=n.dpr||1;n.setTransform(t,0,0,t,0,0)};var a=[],r=I.create();h.setLocalTransform=function(n){if(!n)return;var t=n[0]*n[0]+n[1]*n[1],s=n[2]*n[2]+n[3]*n[3],e=this.position,o=this.scale;S(t-1)&&(t=Math.sqrt(t)),S(s-1)&&(s=Math.sqrt(s)),n[0]<0&&(t=-t),n[3]<0&&(s=-s),e[0]=n[4],e[1]=n[5],o[0]=t,o[1]=s,this.rotation=Math.atan2(-n[1]/s,n[0]/t)},h.decomposeTransform=function(){if(!this.transform)return;var n=this.parent,t=this.transform;n&&n.transform&&(I.mul(a,n.invTransform,t),t=a);var s=this.origin;s&&(s[0]||s[1])&&(r[4]=s[0],r[5]=s[1],I.mul(a,t,r),a[4]-=s[0],a[5]-=s[1],t=a),this.setLocalTransform(t)},h.getGlobalScale=function(n){var t=this.transform;return n=n||[],t?(n[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(n[0]=-n[0]),t[3]<0&&(n[1]=-n[1]),n):(n[0]=1,n[1]=1,n)},h.transformCoordToLocal=function(n,t){var s=[n,t],e=this.invTransform;return e&&E.applyTransform(s,s,e),s},h.transformCoordToGlobal=function(n,t){var s=[n,t],e=this.transform;return e&&E.applyTransform(s,s,e),s},m.getLocalTransform=function(n,t){t=t||[],T(t);var s=n.origin,e=n.scale||[1,1],o=n.rotation||0,l=n.position||[0,0];return s&&(t[4]-=s[0],t[5]-=s[1]),I.scale(t,t,e),o&&I.rotate(t,t,o),s&&(t[4]+=s[0],t[5]+=s[1]),t[4]+=l[0],t[5]+=l[1],t};var i=m;H.exports=i},DO2E:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},DYRE:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("OPEp"),g=d.n(T)},DZo9:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("JGo8"),g=d.n(T),S=d("+L6B"),m=d("MXD1"),h=d("5Dmo")},Dagg:function(H,k,d){var I=d("Gev7"),E=d("mFDi"),T=d("bYtY"),g=d("Xnb7");function S(h){I.call(this,h)}S.prototype={constructor:S,type:"image",brush:function(c,a){var r=this.style,i=r.image;r.bind(c,this,a);var n=this._image=g.createOrUpdateImage(i,this._image,this,this.onload);if(!n||!g.isImageReady(n))return;var t=r.x||0,s=r.y||0,e=r.width,o=r.height,l=n.width/n.height;if(e==null&&o!=null?e=o*l:o==null&&e!=null?o=e/l:e==null&&o==null&&(e=n.width,o=n.height),this.setTransform(c),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;c.drawImage(n,u,f,r.sWidth,r.sHeight,t,s,e,o)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,p=e-u,v=o-f;c.drawImage(n,u,f,p,v,t,s,e,o)}else c.drawImage(n,t,s,e,o);r.text!=null&&(this.restoreTransform(c),this.drawRectText(c,this.getBoundingRect()))},getBoundingRect:function(){var c=this.style;return this._rect||(this._rect=new E(c.x||0,c.y||0,c.width||0,c.height||0)),this._rect}},T.inherits(S,I);var m=S;H.exports=m},Dg8C:function(H,k,d){var I=d("XxSj"),E=d("bYtY");function T(g,S){g.eachSeriesByType("sankey",function(m){var h=m.getGraph(),c=h.nodes;if(c.length){var a=Infinity,r=-Infinity;E.each(c,function(i){var n=i.getLayout().value;n<a&&(a=n),n>r&&(r=n)}),E.each(c,function(i){var n=new I({type:"color",mappingMethod:"linear",dataExtent:[a,r],visual:m.get("color")}),t=n.mapValueToVisual(i.getLayout().value),s=i.getModel().get("itemStyle.color");s!=null?i.setVisual("color",s):i.setVisual("color",t)})}})}H.exports=T},DjyN:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("Urep"),g=d.n(T),S=d("OaEy")},DlQD:function(H,k,d){(function(I,E){H.exports=E()})(this,function(){"use strict";function I(Ct,Dt){for(var Ht=0;Ht<Dt.length;Ht++){var Je=Dt[Ht];Je.enumerable=Je.enumerable||!1,Je.configurable=!0,"value"in Je&&(Je.writable=!0),Object.defineProperty(Ct,Je.key,Je)}}function E(Ct,Dt,Ht){return Dt&&I(Ct.prototype,Dt),Ht&&I(Ct,Ht),Ct}function T(Ct,Dt){if(!Ct)return;if(typeof Ct=="string")return g(Ct,Dt);var Ht=Object.prototype.toString.call(Ct).slice(8,-1);if(Ht==="Object"&&Ct.constructor&&(Ht=Ct.constructor.name),Ht==="Map"||Ht==="Set")return Array.from(Ct);if(Ht==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ht))return g(Ct,Dt)}function g(Ct,Dt){(Dt==null||Dt>Ct.length)&&(Dt=Ct.length);for(var Ht=0,Je=new Array(Dt);Ht<Dt;Ht++)Je[Ht]=Ct[Ht];return Je}function S(Ct,Dt){var Ht;if(typeof Symbol=="undefined"||Ct[Symbol.iterator]==null){if(Array.isArray(Ct)||(Ht=T(Ct))||Dt&&Ct&&typeof Ct.length=="number"){Ht&&(Ct=Ht);var Je=0;return function(){return Je>=Ct.length?{done:!0}:{done:!1,value:Ct[Je++]}}}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 Ht=Ct[Symbol.iterator](),Ht.next.bind(Ht)}function m(Ct,Dt){return Dt={exports:{}},Ct(Dt,Dt.exports),Dt.exports}var h=m(function(Ct){function Dt(){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 Ht(Je){Ct.exports.defaults=Je}Ct.exports={defaults:Dt(),getDefaults:Dt,changeDefaults:Ht}}),c=h.defaults,a=h.getDefaults,r=h.changeDefaults,i=/[&<>"']/,n=/[&<>"']/g,t=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,e={"&":"&","<":"<",">":">",'"':""","'":"'"},o=function(Dt){return e[Dt]};function l(Ct,Dt){if(Dt){if(i.test(Ct))return Ct.replace(n,o)}else if(t.test(Ct))return Ct.replace(s,o);return Ct}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function f(Ct){return Ct.replace(u,function(Dt,Ht){return Ht=Ht.toLowerCase(),Ht==="colon"?":":Ht.charAt(0)==="#"?Ht.charAt(1)==="x"?String.fromCharCode(parseInt(Ht.substring(2),16)):String.fromCharCode(+Ht.substring(1)):""})}var p=/(^|[^\[])\^/g;function v(Ct,Dt){Ct=Ct.source||Ct,Dt=Dt||"";var Ht={replace:function(ye,ie){return ie=ie.source||ie,ie=ie.replace(p,"$1"),Ct=Ct.replace(ye,ie),Ht},getRegex:function(){return new RegExp(Ct,Dt)}};return Ht}var A=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(Ct,Dt,Ht){if(Ct){var Je;try{Je=decodeURIComponent(f(Ht)).replace(A,"").toLowerCase()}catch(ye){return null}if(Je.indexOf("javascript:")===0||Je.indexOf("vbscript:")===0||Je.indexOf("data:")===0)return null}Dt&&!y.test(Ht)&&(Ht=O(Dt,Ht));try{Ht=encodeURI(Ht).replace(/%25/g,"%")}catch(ye){return null}return Ht}var C={},w=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function O(Ct,Dt){C[" "+Ct]||(w.test(Ct)?C[" "+Ct]=Ct+"/":C[" "+Ct]=M(Ct,"/",!0)),Ct=C[" "+Ct];var Ht=Ct.indexOf(":")===-1;return Dt.substring(0,2)==="//"?Ht?Dt:Ct.replace(b,"$1")+Dt:Dt.charAt(0)==="/"?Ht?Dt:Ct.replace(_,"$1")+Dt:Ct+Dt}var L={exec:function(){}};function D(Ct){for(var Dt=1,Ht,Je;Dt<arguments.length;Dt++){Ht=arguments[Dt];for(Je in Ht)Object.prototype.hasOwnProperty.call(Ht,Je)&&(Ct[Je]=Ht[Je])}return Ct}function N(Ct,Dt){var Ht=Ct.replace(/\|/g,function(ie,bt,qe){for(var me=!1,Rt=bt;--Rt>=0&&qe[Rt]==="\\";)me=!me;return me?"|":" |"}),Je=Ht.split(/ \|/),ye=0;if(Je.length>Dt)Je.splice(Dt);else for(;Je.length<Dt;)Je.push("");for(;ye<Je.length;ye++)Je[ye]=Je[ye].trim().replace(/\\\|/g,"|");return Je}function M(Ct,Dt,Ht){var Je=Ct.length;if(Je===0)return"";for(var ye=0;ye<Je;){var ie=Ct.charAt(Je-ye-1);if(ie===Dt&&!Ht)ye++;else if(ie!==Dt&&Ht)ye++;else break}return Ct.substr(0,Je-ye)}function F(Ct,Dt){if(Ct.indexOf(Dt[1])===-1)return-1;for(var Ht=Ct.length,Je=0,ye=0;ye<Ht;ye++)if(Ct[ye]==="\\")ye++;else if(Ct[ye]===Dt[0])Je++;else if(Ct[ye]===Dt[1]&&(Je--,Je<0))return ye;return-1}function R(Ct){Ct&&Ct.sanitize&&!Ct.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:l,unescape:f,edit:v,cleanUrl:x,resolveUrl:O,noopTest:L,merge:D,splitCells:N,rtrim:M,findClosingBracket:F,checkSanitizeDeprecation:R},B=h.defaults,K=j.rtrim,U=j.splitCells,z=j.escape,V=j.findClosingBracket;function Y(Ct,Dt,Ht){var Je=Dt.href,ye=Dt.title?z(Dt.title):null,ie=Ct[1].replace(/\\([\[\]])/g,"$1");return Ct[0].charAt(0)!=="!"?{type:"link",raw:Ht,href:Je,title:ye,text:ie}:{type:"image",raw:Ht,href:Je,title:ye,text:z(ie)}}function J(Ct,Dt){var Ht=Ct.match(/^(\s+)(?:```)/);if(Ht===null)return Dt;var Je=Ht[1];return Dt.split(`
|
|
|
`).map(function(ye){var ie=ye.match(/^\s+/);if(ie===null)return ye;var bt=ie[0];return bt.length>=Je.length?ye.slice(Je.length):ye}).join(`
|
|
|
`)}var se=function(){function Ct(Ht){this.options=Ht||B}var Dt=Ct.prototype;return Dt.space=function(Je){var ye=this.rules.block.newline.exec(Je);if(ye)return ye[0].length>1?{type:"space",raw:ye[0]}:{raw:`
|
|
|
`}},Dt.code=function(Je,ye){var ie=this.rules.block.code.exec(Je);if(ie){var bt=ye[ye.length-1];if(bt&&bt.type==="paragraph")return{raw:ie[0],text:ie[0].trimRight()};var qe=ie[0].replace(/^ {4}/gm,"");return{type:"code",raw:ie[0],codeBlockStyle:"indented",text:this.options.pedantic?qe:K(qe,`
|
|
|
`)}}},Dt.fences=function(Je){var ye=this.rules.block.fences.exec(Je);if(ye){var ie=ye[0],bt=J(ie,ye[3]||"");return{type:"code",raw:ie,lang:ye[2]?ye[2].trim():ye[2],text:bt}}},Dt.heading=function(Je){var ye=this.rules.block.heading.exec(Je);if(ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},Dt.nptable=function(Je){var ye=this.rules.block.nptable.exec(Je);if(ye){var ie={type:"table",header:U(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:ye[0]};if(ie.header.length===ie.align.length){var bt=ie.align.length,qe;for(qe=0;qe<bt;qe++)/^ *-+: *$/.test(ie.align[qe])?ie.align[qe]="right":/^ *:-+: *$/.test(ie.align[qe])?ie.align[qe]="center":/^ *:-+ *$/.test(ie.align[qe])?ie.align[qe]="left":ie.align[qe]=null;for(bt=ie.cells.length,qe=0;qe<bt;qe++)ie.cells[qe]=U(ie.cells[qe],ie.header.length);return ie}}},Dt.hr=function(Je){var ye=this.rules.block.hr.exec(Je);if(ye)return{type:"hr",raw:ye[0]}},Dt.blockquote=function(Je){var ye=this.rules.block.blockquote.exec(Je);if(ye){var ie=ye[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ye[0],text:ie}}},Dt.list=function(Je){var ye=this.rules.block.list.exec(Je);if(ye){for(var ie=ye[0],bt=ye[2],qe=bt.length>1,me=bt[bt.length-1]===")",Rt={type:"list",raw:ie,ordered:qe,start:qe?+bt.slice(0,-1):"",loose:!1,items:[]},er=ye[0].match(this.rules.block.item),ct=!1,zt,sr,Kr,ar,nr,Lt,st,Qe=er.length,qt=0;qt<Qe;qt++)zt=er[qt],ie=zt,sr=zt.length,zt=zt.replace(/^ *([*+-]|\d+[.)]) */,""),~zt.indexOf(`
|
|
|
`)&&(sr-=zt.length,zt=this.options.pedantic?zt.replace(/^ {1,4}/gm,""):zt.replace(new RegExp("^ {1,"+sr+"}","gm"),"")),qt!==Qe-1&&(Kr=this.rules.block.bullet.exec(er[qt+1])[0],(qe?Kr.length===1||!me&&Kr[Kr.length-1]===")":Kr.length>1||this.options.smartLists&&Kr!==bt)&&(ar=er.slice(qt+1).join(`
|
|
|
`),Rt.raw=Rt.raw.substring(0,Rt.raw.length-ar.length),qt=Qe-1)),nr=ct||/\n\n(?!\s*$)/.test(zt),qt!==Qe-1&&(ct=zt.charAt(zt.length-1)===`
|
|
|
`,nr||(nr=ct)),nr&&(Rt.loose=!0),Lt=/^\[[ xX]\] /.test(zt),st=void 0,Lt&&(st=zt[1]!==" ",zt=zt.replace(/^\[[ xX]\] +/,"")),Rt.items.push({type:"list_item",raw:ie,task:Lt,checked:st,loose:nr,text:zt});return Rt}},Dt.html=function(Je){var ye=this.rules.block.html.exec(Je);if(ye)return{type:this.options.sanitize?"paragraph":"html",raw:ye[0],pre:!this.options.sanitizer&&(ye[1]==="pre"||ye[1]==="script"||ye[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ye[0]):z(ye[0]):ye[0]}},Dt.def=function(Je){var ye=this.rules.block.def.exec(Je);if(ye){ye[3]&&(ye[3]=ye[3].substring(1,ye[3].length-1));var ie=ye[1].toLowerCase().replace(/\s+/g," ");return{tag:ie,raw:ye[0],href:ye[2],title:ye[3]}}},Dt.table=function(Je){var ye=this.rules.block.table.exec(Je);if(ye){var ie={type:"table",header:U(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(ie.header.length===ie.align.length){ie.raw=ye[0];var bt=ie.align.length,qe;for(qe=0;qe<bt;qe++)/^ *-+: *$/.test(ie.align[qe])?ie.align[qe]="right":/^ *:-+: *$/.test(ie.align[qe])?ie.align[qe]="center":/^ *:-+ *$/.test(ie.align[qe])?ie.align[qe]="left":ie.align[qe]=null;for(bt=ie.cells.length,qe=0;qe<bt;qe++)ie.cells[qe]=U(ie.cells[qe].replace(/^ *\| *| *\| *$/g,""),ie.header.length);return ie}}},Dt.lheading=function(Je){var ye=this.rules.block.lheading.exec(Je);if(ye)return{type:"heading",raw:ye[0],depth:ye[2].charAt(0)==="="?1:2,text:ye[1]}},Dt.paragraph=function(Je){var ye=this.rules.block.paragraph.exec(Je);if(ye)return{type:"paragraph",raw:ye[0],text:ye[1].charAt(ye[1].length-1)===`
|
|
|
`?ye[1].slice(0,-1):ye[1]}},Dt.text=function(Je,ye){var ie=this.rules.block.text.exec(Je);if(ie){var bt=ye[ye.length-1];return bt&&bt.type==="text"?{raw:ie[0],text:ie[0]}:{type:"text",raw:ie[0],text:ie[0]}}},Dt.escape=function(Je){var ye=this.rules.inline.escape.exec(Je);if(ye)return{type:"escape",raw:ye[0],text:z(ye[1])}},Dt.tag=function(Je,ye,ie){var bt=this.rules.inline.tag.exec(Je);if(bt)return!ye&&/^<a /i.test(bt[0])?ye=!0:ye&&/^<\/a>/i.test(bt[0])&&(ye=!1),!ie&&/^<(pre|code|kbd|script)(\s|>)/i.test(bt[0])?ie=!0:ie&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(bt[0])&&(ie=!1),{type:this.options.sanitize?"text":"html",raw:bt[0],inLink:ye,inRawBlock:ie,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(bt[0]):z(bt[0]):bt[0]}},Dt.link=function(Je){var ye=this.rules.inline.link.exec(Je);if(ye){var ie=V(ye[2],"()");if(ie>-1){var bt=ye[0].indexOf("!")===0?5:4,qe=bt+ye[1].length+ie;ye[2]=ye[2].substring(0,ie),ye[0]=ye[0].substring(0,qe).trim(),ye[3]=""}var me=ye[2],Rt="";if(this.options.pedantic){var er=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(me);er?(me=er[1],Rt=er[3]):Rt=""}else Rt=ye[3]?ye[3].slice(1,-1):"";me=me.trim().replace(/^<([\s\S]*)>$/,"$1");var ct=Y(ye,{href:me&&me.replace(this.rules.inline._escapes,"$1"),title:Rt&&Rt.replace(this.rules.inline._escapes,"$1")},ye[0]);return ct}},Dt.reflink=function(Je,ye){var ie;if((ie=this.rules.inline.reflink.exec(Je))||(ie=this.rules.inline.nolink.exec(Je))){var bt=(ie[2]||ie[1]).replace(/\s+/g," ");if(bt=ye[bt.toLowerCase()],!bt||!bt.href){var qe=ie[0].charAt(0);return{type:"text",raw:qe,text:qe}}var me=Y(ie,bt,ie[0]);return me}},Dt.strong=function(Je,ye,ie){ie===void 0&&(ie="");var bt=this.rules.inline.strong.start.exec(Je);if(bt&&(!bt[1]||bt[1]&&(ie===""||this.rules.inline.punctuation.exec(ie)))){ye=ye.slice(-1*Je.length);var qe=bt[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;qe.lastIndex=0;for(var me;(bt=qe.exec(ye))!=null;)if(me=this.rules.inline.strong.middle.exec(ye.slice(0,bt.index+3)),me)return{type:"strong",raw:Je.slice(0,me[0].length),text:Je.slice(2,me[0].length-2)}}},Dt.em=function(Je,ye,ie){ie===void 0&&(ie="");var bt=this.rules.inline.em.start.exec(Je);if(bt&&(!bt[1]||bt[1]&&(ie===""||this.rules.inline.punctuation.exec(ie)))){ye=ye.slice(-1*Je.length);var qe=bt[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;qe.lastIndex=0;for(var me;(bt=qe.exec(ye))!=null;)if(me=this.rules.inline.em.middle.exec(ye.slice(0,bt.index+2)),me)return{type:"em",raw:Je.slice(0,me[0].length),text:Je.slice(1,me[0].length-1)}}},Dt.codespan=function(Je){var ye=this.rules.inline.code.exec(Je);if(ye){var ie=ye[2].replace(/\n/g," "),bt=/[^ ]/.test(ie),qe=ie.startsWith(" ")&&ie.endsWith(" ");return bt&&qe&&(ie=ie.substring(1,ie.length-1)),ie=z(ie,!0),{type:"codespan",raw:ye[0],text:ie}}},Dt.br=function(Je){var ye=this.rules.inline.br.exec(Je);if(ye)return{type:"br",raw:ye[0]}},Dt.del=function(Je){var ye=this.rules.inline.del.exec(Je);if(ye)return{type:"del",raw:ye[0],text:ye[1]}},Dt.autolink=function(Je,ye){var ie=this.rules.inline.autolink.exec(Je);if(ie){var bt,qe;return ie[2]==="@"?(bt=z(this.options.mangle?ye(ie[1]):ie[1]),qe="mailto:"+bt):(bt=z(ie[1]),qe=bt),{type:"link",raw:ie[0],text:bt,href:qe,tokens:[{type:"text",raw:bt,text:bt}]}}},Dt.url=function(Je,ye){var ie;if(ie=this.rules.inline.url.exec(Je)){var bt,qe;if(ie[2]==="@")bt=z(this.options.mangle?ye(ie[0]):ie[0]),qe="mailto:"+bt;else{var me;do me=ie[0],ie[0]=this.rules.inline._backpedal.exec(ie[0])[0];while(me!==ie[0]);bt=z(ie[0]),ie[1]==="www."?qe="http://"+bt:qe=bt}return{type:"link",raw:ie[0],text:bt,href:qe,tokens:[{type:"text",raw:bt,text:bt}]}}},Dt.inlineText=function(Je,ye,ie){var bt=this.rules.inline.text.exec(Je);if(bt){var qe;return ye?qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(bt[0]):z(bt[0]):bt[0]:qe=z(this.options.smartypants?ie(bt[0]):bt[0]),{type:"text",raw:bt[0],text:qe}}},Ct}(),$=j.noopTest,ae=j.edit,ge=j.merge,pe={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:$,table:$,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};pe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,pe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,pe.def=ae(pe.def).replace("label",pe._label).replace("title",pe._title).getRegex(),pe.bullet=/(?:[*+-]|\d{1,9}[.)])/,pe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,pe.item=ae(pe.item,"gm").replace(/bull/g,pe.bullet).getRegex(),pe.list=ae(pe.list).replace(/bull/g,pe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pe.def.source+")").getRegex(),pe._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",pe._comment=/<!--(?!-?>)[\s\S]*?-->/,pe.html=ae(pe.html,"i").replace("comment",pe._comment).replace("tag",pe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pe.paragraph=ae(pe._paragraph).replace("hr",pe.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",pe._tag).getRegex(),pe.blockquote=ae(pe.blockquote).replace("paragraph",pe.paragraph).getRegex(),pe.normal=ge({},pe),pe.gfm=ge({},pe.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*|$)"}),pe.gfm.nptable=ae(pe.gfm.nptable).replace("hr",pe.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",pe._tag).getRegex(),pe.gfm.table=ae(pe.gfm.table).replace("hr",pe.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",pe._tag).getRegex(),pe.pedantic=ge({},pe.normal,{html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pe._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:$,paragraph:ae(pe.normal._paragraph).replace("hr",pe.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",pe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ne={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:$,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:$,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Ne._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ne.punctuation=ae(Ne.punctuation).replace(/punctuation/g,Ne._punctuation).getRegex(),Ne._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Ne._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Ne.em.start=ae(Ne.em.start).replace(/punctuation/g,Ne._punctuation).getRegex(),Ne.em.middle=ae(Ne.em.middle).replace(/punctuation/g,Ne._punctuation).replace(/overlapSkip/g,Ne._overlapSkip).getRegex(),Ne.em.endAst=ae(Ne.em.endAst,"g").replace(/punctuation/g,Ne._punctuation).getRegex(),Ne.em.endUnd=ae(Ne.em.endUnd,"g").replace(/punctuation/g,Ne._punctuation).getRegex(),Ne.strong.start=ae(Ne.strong.start).replace(/punctuation/g,Ne._punctuation).getRegex(),Ne.strong.middle=ae(Ne.strong.middle).replace(/punctuation/g,Ne._punctuation).replace(/blockSkip/g,Ne._blockSkip).getRegex(),Ne.strong.endAst=ae(Ne.strong.endAst,"g").replace(/punctuation/g,Ne._punctuation).getRegex(),Ne.strong.endUnd=ae(Ne.strong.endUnd,"g").replace(/punctuation/g,Ne._punctuation).getRegex(),Ne.blockSkip=ae(Ne._blockSkip,"g").getRegex(),Ne.overlapSkip=ae(Ne._overlapSkip,"g").getRegex(),Ne._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ne._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ne._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])?)+(?![-_])/,Ne.autolink=ae(Ne.autolink).replace("scheme",Ne._scheme).replace("email",Ne._email).getRegex(),Ne._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ne.tag=ae(Ne.tag).replace("comment",pe._comment).replace("attribute",Ne._attribute).getRegex(),Ne._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ne._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Ne._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ne.link=ae(Ne.link).replace("label",Ne._label).replace("href",Ne._href).replace("title",Ne._title).getRegex(),Ne.reflink=ae(Ne.reflink).replace("label",Ne._label).getRegex(),Ne.reflinkSearch=ae(Ne.reflinkSearch,"g").replace("reflink",Ne.reflink).replace("nolink",Ne.nolink).getRegex(),Ne.normal=ge({},Ne),Ne.pedantic=ge({},Ne.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:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",Ne._label).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ne._label).getRegex()}),Ne.gfm=ge({},Ne.normal,{escape:ae(Ne.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Ne.gfm.url=ae(Ne.gfm.url,"i").replace("email",Ne.gfm._extended_email).getRegex(),Ne.breaks=ge({},Ne.gfm,{br:ae(Ne.br).replace("{2,}","*").getRegex(),text:ae(Ne.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var de={block:pe,inline:Ne},Le=h.defaults,Q=de.block,ce=de.inline;function Ke(Ct){return Ct.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 ee(Ct){var Dt="",Ht,Je,ye=Ct.length;for(Ht=0;Ht<ye;Ht++)Je=Ct.charCodeAt(Ht),Math.random()>.5&&(Je="x"+Je.toString(16)),Dt+="&#"+Je+";";return Dt}var X=function(){function Ct(Ht){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ht||Le,this.options.tokenizer=this.options.tokenizer||new se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Je={block:Q.normal,inline:ce.normal};this.options.pedantic?(Je.block=Q.pedantic,Je.inline=ce.pedantic):this.options.gfm&&(Je.block=Q.gfm,this.options.breaks?Je.inline=ce.breaks:Je.inline=ce.gfm),this.tokenizer.rules=Je}Ct.lex=function(Je,ye){var ie=new Ct(ye);return ie.lex(Je)};var Dt=Ct.prototype;return Dt.lex=function(Je){return Je=Je.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Je,this.tokens,!0),this.inline(this.tokens),this.tokens},Dt.blockTokens=function(Je,ye,ie){ye===void 0&&(ye=[]),ie===void 0&&(ie=!0),Je=Je.replace(/^ +$/gm,"");for(var bt,qe,me,Rt;Je;){if(bt=this.tokenizer.space(Je)){Je=Je.substring(bt.raw.length),bt.type&&ye.push(bt);continue}if(bt=this.tokenizer.code(Je,ye)){Je=Je.substring(bt.raw.length),bt.type?ye.push(bt):(Rt=ye[ye.length-1],Rt.raw+=`
|
|
|
`+bt.raw,Rt.text+=`
|
|
|
`+bt.text);continue}if(bt=this.tokenizer.fences(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(bt=this.tokenizer.heading(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(bt=this.tokenizer.nptable(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(bt=this.tokenizer.hr(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(bt=this.tokenizer.blockquote(Je)){Je=Je.substring(bt.raw.length),bt.tokens=this.blockTokens(bt.text,[],ie),ye.push(bt);continue}if(bt=this.tokenizer.list(Je)){for(Je=Je.substring(bt.raw.length),me=bt.items.length,qe=0;qe<me;qe++)bt.items[qe].tokens=this.blockTokens(bt.items[qe].text,[],!1);ye.push(bt);continue}if(bt=this.tokenizer.html(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(ie&&(bt=this.tokenizer.def(Je))){Je=Je.substring(bt.raw.length),this.tokens.links[bt.tag]||(this.tokens.links[bt.tag]={href:bt.href,title:bt.title});continue}if(bt=this.tokenizer.table(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(bt=this.tokenizer.lheading(Je)){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(ie&&(bt=this.tokenizer.paragraph(Je))){Je=Je.substring(bt.raw.length),ye.push(bt);continue}if(bt=this.tokenizer.text(Je,ye)){Je=Je.substring(bt.raw.length),bt.type?ye.push(bt):(Rt=ye[ye.length-1],Rt.raw+=`
|
|
|
`+bt.raw,Rt.text+=`
|
|
|
`+bt.text);continue}if(Je){var er="Infinite loop on byte: "+Je.charCodeAt(0);if(this.options.silent){console.error(er);break}else throw new Error(er)}}return ye},Dt.inline=function(Je){var ye,ie,bt,qe,me,Rt,er=Je.length;for(ye=0;ye<er;ye++){Rt=Je[ye];switch(Rt.type){case"paragraph":case"text":case"heading":{Rt.tokens=[],this.inlineTokens(Rt.text,Rt.tokens);break}case"table":{for(Rt.tokens={header:[],cells:[]},qe=Rt.header.length,ie=0;ie<qe;ie++)Rt.tokens.header[ie]=[],this.inlineTokens(Rt.header[ie],Rt.tokens.header[ie]);for(qe=Rt.cells.length,ie=0;ie<qe;ie++)for(me=Rt.cells[ie],Rt.tokens.cells[ie]=[],bt=0;bt<me.length;bt++)Rt.tokens.cells[ie][bt]=[],this.inlineTokens(me[bt],Rt.tokens.cells[ie][bt]);break}case"blockquote":{this.inline(Rt.tokens);break}case"list":{for(qe=Rt.items.length,ie=0;ie<qe;ie++)this.inline(Rt.items[ie].tokens);break}}}return Je},Dt.inlineTokens=function(Je,ye,ie,bt,qe){ye===void 0&&(ye=[]),ie===void 0&&(ie=!1),bt===void 0&&(bt=!1),qe===void 0&&(qe="");var me,Rt=Je,er;if(this.tokens.links){var ct=Object.keys(this.tokens.links);if(ct.length>0)for(;(er=this.tokenizer.rules.inline.reflinkSearch.exec(Rt))!=null;)ct.includes(er[0].slice(er[0].lastIndexOf("[")+1,-1))&&(Rt=Rt.slice(0,er.index)+"["+"a".repeat(er[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(er=this.tokenizer.rules.inline.blockSkip.exec(Rt))!=null;)Rt=Rt.slice(0,er.index)+"["+"a".repeat(er[0].length-2)+"]"+Rt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Je;){if(me=this.tokenizer.escape(Je)){Je=Je.substring(me.raw.length),ye.push(me);continue}if(me=this.tokenizer.tag(Je,ie,bt)){Je=Je.substring(me.raw.length),ie=me.inLink,bt=me.inRawBlock,ye.push(me);continue}if(me=this.tokenizer.link(Je)){Je=Je.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,bt)),ye.push(me);continue}if(me=this.tokenizer.reflink(Je,this.tokens.links)){Je=Je.substring(me.raw.length),me.type==="link"&&(me.tokens=this.inlineTokens(me.text,[],!0,bt)),ye.push(me);continue}if(me=this.tokenizer.strong(Je,Rt,qe)){Je=Je.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],ie,bt),ye.push(me);continue}if(me=this.tokenizer.em(Je,Rt,qe)){Je=Je.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],ie,bt),ye.push(me);continue}if(me=this.tokenizer.codespan(Je)){Je=Je.substring(me.raw.length),ye.push(me);continue}if(me=this.tokenizer.br(Je)){Je=Je.substring(me.raw.length),ye.push(me);continue}if(me=this.tokenizer.del(Je)){Je=Je.substring(me.raw.length),me.tokens=this.inlineTokens(me.text,[],ie,bt),ye.push(me);continue}if(me=this.tokenizer.autolink(Je,ee)){Je=Je.substring(me.raw.length),ye.push(me);continue}if(!ie&&(me=this.tokenizer.url(Je,ee))){Je=Je.substring(me.raw.length),ye.push(me);continue}if(me=this.tokenizer.inlineText(Je,bt,Ke)){Je=Je.substring(me.raw.length),qe=me.raw.slice(-1),ye.push(me);continue}if(Je){var zt="Infinite loop on byte: "+Je.charCodeAt(0);if(this.options.silent){console.error(zt);break}else throw new Error(zt)}}return ye},E(Ct,null,[{key:"rules",get:function(){return{block:Q,inline:ce}}}]),Ct}(),G=h.defaults,Z=j.cleanUrl,ve=j.escape,ue=function(){function Ct(Ht){this.options=Ht||G}var Dt=Ct.prototype;return Dt.code=function(Je,ye,ie){var bt=(ye||"").match(/\S*/)[0];if(this.options.highlight){var qe=this.options.highlight(Je,bt);qe!=null&&qe!==Je&&(ie=!0,Je=qe)}return bt?'<pre><code class="'+this.options.langPrefix+ve(bt,!0)+'">'+(ie?Je:ve(Je,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(ie?Je:ve(Je,!0))+`</code></pre>
|
|
|
`},Dt.blockquote=function(Je){return`<blockquote>
|
|
|
`+Je+`</blockquote>
|
|
|
`},Dt.html=function(Je){return Je},Dt.heading=function(Je,ye,ie,bt){return this.options.headerIds?"<h"+ye+' id="'+this.options.headerPrefix+bt.slug(ie)+'">'+Je+"</h"+ye+`>
|
|
|
`:"<h"+ye+">"+Je+"</h"+ye+`>
|
|
|
`},Dt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Dt.list=function(Je,ye,ie){var bt=ye?"ol":"ul",qe=ye&&ie!==1?' start="'+ie+'"':"";return"<"+bt+qe+`>
|
|
|
`+Je+"</"+bt+`>
|
|
|
`},Dt.listitem=function(Je){return"<li>"+Je+`</li>
|
|
|
`},Dt.checkbox=function(Je){return"<input "+(Je?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Dt.paragraph=function(Je){return"<p>"+Je+`</p>
|
|
|
`},Dt.table=function(Je,ye){return ye&&(ye="<tbody>"+ye+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Je+`</thead>
|
|
|
`+ye+`</table>
|
|
|
`},Dt.tablerow=function(Je){return`<tr>
|
|
|
`+Je+`</tr>
|
|
|
`},Dt.tablecell=function(Je,ye){var ie=ye.header?"th":"td",bt=ye.align?"<"+ie+' align="'+ye.align+'">':"<"+ie+">";return bt+Je+"</"+ie+`>
|
|
|
`},Dt.strong=function(Je){return"<strong>"+Je+"</strong>"},Dt.em=function(Je){return"<em>"+Je+"</em>"},Dt.codespan=function(Je){return"<code>"+Je+"</code>"},Dt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Dt.del=function(Je){return"<del>"+Je+"</del>"},Dt.link=function(Je,ye,ie){if(Je=Z(this.options.sanitize,this.options.baseUrl,Je),Je===null)return ie;var bt='<a href="'+ve(Je)+'"';return ye&&(bt+=' title="'+ye+'"'),bt+=">"+ie+"</a>",bt},Dt.image=function(Je,ye,ie){if(Je=Z(this.options.sanitize,this.options.baseUrl,Je),Je===null)return ie;var bt='<img src="'+Je+'" alt="'+ie+'"';return ye&&(bt+=' title="'+ye+'"'),bt+=this.options.xhtml?"/>":">",bt},Dt.text=function(Je){return Je},Ct}(),_e=function(){function Ct(){}var Dt=Ct.prototype;return Dt.strong=function(Je){return Je},Dt.em=function(Je){return Je},Dt.codespan=function(Je){return Je},Dt.del=function(Je){return Je},Dt.html=function(Je){return Je},Dt.text=function(Je){return Je},Dt.link=function(Je,ye,ie){return""+ie},Dt.image=function(Je,ye,ie){return""+ie},Dt.br=function(){return""},Ct}(),xe=function(){function Ct(){this.seen={}}var Dt=Ct.prototype;return Dt.slug=function(Je){var ye=Je.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ye)){var ie=ye;do this.seen[ie]++,ye=ie+"-"+this.seen[ie];while(this.seen.hasOwnProperty(ye))}return this.seen[ye]=0,ye},Ct}(),oe=h.defaults,fe=j.unescape,Te=function(){function Ct(Ht){this.options=Ht||oe,this.options.renderer=this.options.renderer||new ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _e,this.slugger=new xe}Ct.parse=function(Je,ye){var ie=new Ct(ye);return ie.parse(Je)};var Dt=Ct.prototype;return Dt.parse=function(Je,ye){ye===void 0&&(ye=!0);var ie="",bt,qe,me,Rt,er,ct,zt,sr,Kr,ar,nr,Lt,st,Qe,qt,Sr,Ar,hr,vn=Je.length;for(bt=0;bt<vn;bt++){ar=Je[bt];switch(ar.type){case"space":continue;case"hr":{ie+=this.renderer.hr();continue}case"heading":{ie+=this.renderer.heading(this.parseInline(ar.tokens),ar.depth,fe(this.parseInline(ar.tokens,this.textRenderer)),this.slugger);continue}case"code":{ie+=this.renderer.code(ar.text,ar.lang,ar.escaped);continue}case"table":{for(sr="",zt="",Rt=ar.header.length,qe=0;qe<Rt;qe++)zt+=this.renderer.tablecell(this.parseInline(ar.tokens.header[qe]),{header:!0,align:ar.align[qe]});for(sr+=this.renderer.tablerow(zt),Kr="",Rt=ar.cells.length,qe=0;qe<Rt;qe++){for(ct=ar.tokens.cells[qe],zt="",er=ct.length,me=0;me<er;me++)zt+=this.renderer.tablecell(this.parseInline(ct[me]),{header:!1,align:ar.align[me]});Kr+=this.renderer.tablerow(zt)}ie+=this.renderer.table(sr,Kr);continue}case"blockquote":{Kr=this.parse(ar.tokens),ie+=this.renderer.blockquote(Kr);continue}case"list":{for(nr=ar.ordered,Lt=ar.start,st=ar.loose,Rt=ar.items.length,Kr="",qe=0;qe<Rt;qe++)qt=ar.items[qe],Sr=qt.checked,Ar=qt.task,Qe="",qt.task&&(hr=this.renderer.checkbox(Sr),st?qt.tokens.length>0&&qt.tokens[0].type==="text"?(qt.tokens[0].text=hr+" "+qt.tokens[0].text,qt.tokens[0].tokens&&qt.tokens[0].tokens.length>0&&qt.tokens[0].tokens[0].type==="text"&&(qt.tokens[0].tokens[0].text=hr+" "+qt.tokens[0].tokens[0].text)):qt.tokens.unshift({type:"text",text:hr}):Qe+=hr),Qe+=this.parse(qt.tokens,st),Kr+=this.renderer.listitem(Qe,Ar,Sr);ie+=this.renderer.list(Kr,nr,Lt);continue}case"html":{ie+=this.renderer.html(ar.text);continue}case"paragraph":{ie+=this.renderer.paragraph(this.parseInline(ar.tokens));continue}case"text":{for(Kr=ar.tokens?this.parseInline(ar.tokens):ar.text;bt+1<vn&&Je[bt+1].type==="text";)ar=Je[++bt],Kr+=`
|
|
|
`+(ar.tokens?this.parseInline(ar.tokens):ar.text);ie+=ye?this.renderer.paragraph(Kr):Kr;continue}default:{var Zr='Token with "'+ar.type+'" type was not found.';if(this.options.silent){console.error(Zr);return}else throw new Error(Zr)}}}return ie},Dt.parseInline=function(Je,ye){ye=ye||this.renderer;var ie="",bt,qe,me=Je.length;for(bt=0;bt<me;bt++){qe=Je[bt];switch(qe.type){case"escape":{ie+=ye.text(qe.text);break}case"html":{ie+=ye.html(qe.text);break}case"link":{ie+=ye.link(qe.href,qe.title,this.parseInline(qe.tokens,ye));break}case"image":{ie+=ye.image(qe.href,qe.title,qe.text);break}case"strong":{ie+=ye.strong(this.parseInline(qe.tokens,ye));break}case"em":{ie+=ye.em(this.parseInline(qe.tokens,ye));break}case"codespan":{ie+=ye.codespan(qe.text);break}case"br":{ie+=ye.br();break}case"del":{ie+=ye.del(this.parseInline(qe.tokens,ye));break}case"text":{ie+=ye.text(qe.text);break}default:{var Rt='Token with "'+qe.type+'" type was not found.';if(this.options.silent){console.error(Rt);return}else throw new Error(Rt)}}}return ie},Ct}(),ze=j.merge,it=j.checkSanitizeDeprecation,et=j.escape,Oe=h.getDefaults,gt=h.changeDefaults,Ge=h.defaults;function wt(Ct,Dt,Ht){if(typeof Ct=="undefined"||Ct===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ct!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ct)+", string expected");if(typeof Dt=="function"&&(Ht=Dt,Dt=null),Dt=ze({},wt.defaults,Dt||{}),it(Dt),Ht){var Je=Dt.highlight,ye;try{ye=X.lex(Ct,Dt)}catch(me){return Ht(me)}var ie=function(Rt){var er;if(!Rt)try{er=Te.parse(ye,Dt)}catch(ct){Rt=ct}return Dt.highlight=Je,Rt?Ht(Rt):Ht(null,er)};if(!Je||Je.length<3)return ie();if(delete Dt.highlight,!ye.length)return ie();var bt=0;wt.walkTokens(ye,function(me){me.type==="code"&&(bt++,setTimeout(function(){Je(me.text,me.lang,function(Rt,er){if(Rt)return ie(Rt);er!=null&&er!==me.text&&(me.text=er,me.escaped=!0),bt--,bt===0&&ie()})},0))}),bt===0&&ie();return}try{var qe=X.lex(Ct,Dt);return Dt.walkTokens&&wt.walkTokens(qe,Dt.walkTokens),Te.parse(qe,Dt)}catch(me){if(me.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Dt.silent)return"<p>An error occurred:</p><pre>"+et(me.message+"",!0)+"</pre>";throw me}}wt.options=wt.setOptions=function(Ct){return ze(wt.defaults,Ct),gt(wt.defaults),wt},wt.getDefaults=Oe,wt.defaults=Ge,wt.use=function(Ct){var Dt=ze({},Ct);if(Ct.renderer&&function(){var Je=wt.defaults.renderer||new ue,ye=function(qe){var me=Je[qe];Je[qe]=function(){for(var Rt=arguments.length,er=new Array(Rt),ct=0;ct<Rt;ct++)er[ct]=arguments[ct];var zt=Ct.renderer[qe].apply(Je,er);return zt===!1&&(zt=me.apply(Je,er)),zt}};for(var ie in Ct.renderer)ye(ie);Dt.renderer=Je}(),Ct.tokenizer&&function(){var Je=wt.defaults.tokenizer||new se,ye=function(qe){var me=Je[qe];Je[qe]=function(){for(var Rt=arguments.length,er=new Array(Rt),ct=0;ct<Rt;ct++)er[ct]=arguments[ct];var zt=Ct.tokenizer[qe].apply(Je,er);return zt===!1&&(zt=me.apply(Je,er)),zt}};for(var ie in Ct.tokenizer)ye(ie);Dt.tokenizer=Je}(),Ct.walkTokens){var Ht=wt.defaults.walkTokens;Dt.walkTokens=function(Je){Ct.walkTokens(Je),Ht&&Ht(Je)}}wt.setOptions(Dt)},wt.walkTokens=function(Ct,Dt){for(var Ht=S(Ct),Je;!(Je=Ht()).done;){var ye=Je.value;Dt(ye);switch(ye.type){case"table":{for(var ie=S(ye.tokens.header),bt;!(bt=ie()).done;){var qe=bt.value;wt.walkTokens(qe,Dt)}for(var me=S(ye.tokens.cells),Rt;!(Rt=me()).done;)for(var er=Rt.value,ct=S(er),zt;!(zt=ct()).done;){var sr=zt.value;wt.walkTokens(sr,Dt)}break}case"list":{wt.walkTokens(ye.items,Dt);break}default:ye.tokens&&wt.walkTokens(ye.tokens,Dt)}}},wt.Parser=Te,wt.parser=Te.parse,wt.Renderer=ue,wt.TextRenderer=_e,wt.Lexer=X,wt.lexer=X.lex,wt.Tokenizer=se,wt.Slugger=xe,wt.parse=wt;var xt=wt;return xt})},"DlR+":function(H,k,d){var I=d("MFOe"),E=I.Global,T=I.trim;H.exports={name:"cookieStorage",read:S,write:h,each:m,remove:c,clearAll:a};var g=E.document;function S(i){if(!i||!r(i))return null;var n="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(g.cookie.replace(new RegExp(n),"$1"))}function m(i){for(var n=g.cookie.split(/; ?/g),t=n.length-1;t>=0;t--){if(!T(n[t]))continue;var s=n[t].split("="),e=unescape(s[0]),o=unescape(s[1]);i(o,e)}}function h(i,n){if(!i)return;g.cookie=escape(i)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(i){if(!i||!r(i))return;g.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function a(){m(function(i,n){c(n)})}function r(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(g.cookie)}},Ducp:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("+TT/"),g=d("XpcN"),S=E.Group,m=["width","height"],h=["x","y"],c=g.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new S),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new S),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(r,i,n,t,s,e,o){var l=this;c.superCall(this,"renderInner",r,i,n,t,s,e,o);var u=this._controllerGroup,f=i.get("pageIconSize",!0);I.isArray(f)||(f=[f,f]),v("pagePrev",0);var p=i.getModel("pageTextStyle");u.add(new E.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),v("pageNext",1);function v(A,y){var x=A+"DataIndex",C=E.createIcon(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:I.bind(l._pageGo,l,x,i,t)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});C.name=A,u.add(C)}},layoutInner:function(r,i,n,t,s,e){var o=this.getSelectorGroup(),l=r.getOrient().index,u=m[l],f=h[l],p=m[1-l],v=h[1-l];s&&T.box("horizontal",o,r.get("selectorItemGap",!0));var A=r.get("selectorButtonGap",!0),y=o.getBoundingRect(),x=[-y.x,-y.y],C=I.clone(n);s&&(C[u]=n[u]-y[u]-A);var w=this._layoutContentAndController(r,t,C,l,u,p,v);if(s){if(e==="end")x[l]+=w[u]+A;else{var b=y[u]+A;x[l]-=b,w[f]-=b}w[u]+=y[u]+A,x[1-l]+=w[v]+w[p]/2-y[p]/2,w[p]=Math.max(w[p],y[p]),w[v]=Math.min(w[v],y[v]+x[1-l]),o.attr("position",x)}return w},_layoutContentAndController:function(r,i,n,t,s,e,o){var l=this.getContentGroup(),u=this._containerGroup,f=this._controllerGroup;T.box(r.get("orient"),l,r.get("itemGap"),t?n.width:null,t?null:n.height),T.box("horizontal",f,r.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),v=f.getBoundingRect(),A=this._showController=p[s]>n[s],y=[-p.x,-p.y];i||(y[t]=l.position[t]);var x=[0,0],C=[-v.x,-v.y],w=I.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(A){var b=r.get("pageButtonPosition",!0);b==="end"?C[t]+=n[s]-v[s]:x[t]+=v[s]+w}C[1-t]+=p[e]/2-v[e]/2,l.attr("position",y),u.attr("position",x),f.attr("position",C);var _={x:0,y:0};if(_[s]=A?n[s]:p[s],_[e]=Math.max(p[e],v[e]),_[o]=Math.min(0,v[o]+C[1-t]),u.__rectSize=n[s],A){var O={x:0,y:0};O[s]=Math.max(n[s]-v[s]-w,0),O[e]=_[e],u.setClipPath(new E.Rect({shape:O})),u.__rectSize=O[s]}else f.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(r);return L.pageIndex!=null&&E.updateProps(l,{position:L.contentPosition},A?r:!1),this._updatePageInfoView(r,L),_},_pageGo:function(r,i,n){var t=this._getPageInfo(i)[r];t!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:i.id})},_updatePageInfoView:function(r,i){var n=this._controllerGroup;I.each(["pagePrev","pageNext"],function(u){var f=i[u+"DataIndex"]!=null,p=n.childOfName(u);p&&(p.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=f?"pointer":"default")});var t=n.childOfName("pageText"),s=r.get("pageFormatter"),e=i.pageIndex,o=e!=null?e+1:0,l=i.pageCount;t&&s&&t.setStyle("text",I.isString(s)?s.replace("{current}",o).replace("{total}",l):s({current:o,total:l}))},_getPageInfo:function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),t=this._containerGroup.__rectSize,s=r.getOrient().index,e=m[s],o=h[s],l=this._findTargetItemIndex(i),u=n.children(),f=u[l],p=u.length,v=p?1:0,A={contentPosition:n.position.slice(),pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return A;var y=_(f);A.contentPosition[s]=-y.s;for(var x=l+1,C=y,w=y,b=null;x<=p;++x)b=_(u[x]),(!b&&w.e>C.s+t||b&&!O(b,C.s))&&(w.i>C.i?C=w:C=b,C&&(A.pageNextDataIndex==null&&(A.pageNextDataIndex=C.i),++A.pageCount)),w=b;for(var x=l-1,C=y,w=y,b=null;x>=-1;--x)b=_(u[x]),(!b||!O(w,b.s))&&C.i<w.i&&(w=C,A.pagePrevDataIndex==null&&(A.pagePrevDataIndex=C.i),++A.pageCount,++A.pageIndex),C=b;return A;function _(L){if(L){var D=L.getBoundingRect(),N=D[o]+L.position[s];return{s:N,e:N+D[e],i:L.__legendDataIndex}}}function O(L,D){return L.e>=D&&L.s<=D+t}},_findTargetItemIndex:function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),t;return n.eachChild(function(s,e){var o=s.__legendDataIndex;t==null&&o!=null&&(t=e),o===r&&(i=e)}),i!=null?i:t}}),a=c;H.exports=a},"E/ki":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},E2g8:function(H,k,d){(function(I,E){/*!
|
|
|
* @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,g){H.exports=g()})(this,function(){"use strict";function T(ue){var _e=typeof ue;return ue!==null&&(_e==="object"||_e==="function")}function g(ue){return typeof ue=="function"}var S=void 0;Array.isArray?S=Array.isArray:S=function(_e){return Object.prototype.toString.call(_e)==="[object Array]"};var m=S,h=0,c=void 0,a=void 0,r=function(_e,xe){y[h]=_e,y[h+1]=xe,h+=2,h===2&&(a?a(x):w())};function i(ue){a=ue}function n(ue){r=ue}var t=typeof window!="undefined"?window:void 0,s=t||{},e=s.MutationObserver||s.WebKitMutationObserver,o=typeof self=="undefined"&&typeof I!="undefined"&&{}.toString.call(I)==="[object process]",l=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return I.nextTick(x)}}function f(){return typeof c!="undefined"?function(){c(x)}:A()}function p(){var ue=0,_e=new e(x),xe=document.createTextNode("");return _e.observe(xe,{characterData:!0}),function(){xe.data=ue=++ue%2}}function v(){var ue=new MessageChannel;return ue.port1.onmessage=x,function(){return ue.port2.postMessage(0)}}function A(){var ue=setTimeout;return function(){return ue(x,1)}}var y=new Array(1e3);function x(){for(var ue=0;ue<h;ue+=2){var _e=y[ue],xe=y[ue+1];_e(xe),y[ue]=void 0,y[ue+1]=void 0}h=0}function C(){try{var ue=Function("return this")().require("vertx");return c=ue.runOnLoop||ue.runOnContext,f()}catch(_e){return A()}}var w=void 0;o?w=u():e?w=p():l?w=v():t===void 0&&!0?w=C():w=A();function b(ue,_e){var xe=this,oe=new this.constructor(L);oe[O]===void 0&&de(oe);var fe=xe._state;if(fe){var Te=arguments[fe-1];r(function(){return ae(fe,oe,Te,xe._result)})}else se(xe,oe,ue,_e);return oe}function _(ue){var _e=this;if(ue&&typeof ue=="object"&&ue.constructor===_e)return ue;var xe=new _e(L);return z(xe,ue),xe}var O=Math.random().toString(36).substring(2);function L(){}var D=void 0,N=1,M=2;function F(){return new TypeError("You cannot resolve a promise with itself")}function R(){return new TypeError("A promises callback cannot return that same promise.")}function j(ue,_e,xe,oe){try{ue.call(_e,xe,oe)}catch(fe){return fe}}function B(ue,_e,xe){r(function(oe){var fe=!1,Te=j(xe,_e,function(ze){if(fe)return;fe=!0,_e!==ze?z(oe,ze):Y(oe,ze)},function(ze){if(fe)return;fe=!0,J(oe,ze)},"Settle: "+(oe._label||" unknown promise"));!fe&&Te&&(fe=!0,J(oe,Te))},ue)}function K(ue,_e){_e._state===N?Y(ue,_e._result):_e._state===M?J(ue,_e._result):se(_e,void 0,function(xe){return z(ue,xe)},function(xe){return J(ue,xe)})}function U(ue,_e,xe){_e.constructor===ue.constructor&&xe===b&&_e.constructor.resolve===_?K(ue,_e):xe===void 0?Y(ue,_e):g(xe)?B(ue,_e,xe):Y(ue,_e)}function z(ue,_e){if(ue===_e)J(ue,F());else if(T(_e)){var xe=void 0;try{xe=_e.then}catch(oe){J(ue,oe);return}U(ue,_e,xe)}else Y(ue,_e)}function V(ue){ue._onerror&&ue._onerror(ue._result),$(ue)}function Y(ue,_e){if(ue._state!==D)return;ue._result=_e,ue._state=N,ue._subscribers.length!==0&&r($,ue)}function J(ue,_e){if(ue._state!==D)return;ue._state=M,ue._result=_e,r(V,ue)}function se(ue,_e,xe,oe){var fe=ue._subscribers,Te=fe.length;ue._onerror=null,fe[Te]=_e,fe[Te+N]=xe,fe[Te+M]=oe,Te===0&&ue._state&&r($,ue)}function $(ue){var _e=ue._subscribers,xe=ue._state;if(_e.length===0)return;for(var oe=void 0,fe=void 0,Te=ue._result,ze=0;ze<_e.length;ze+=3)oe=_e[ze],fe=_e[ze+xe],oe?ae(xe,oe,fe,Te):fe(Te);ue._subscribers.length=0}function ae(ue,_e,xe,oe){var fe=g(xe),Te=void 0,ze=void 0,it=!0;if(fe){try{Te=xe(oe)}catch(et){it=!1,ze=et}if(_e===Te){J(_e,R());return}}else Te=oe;_e._state!==D||(fe&&it?z(_e,Te):it===!1?J(_e,ze):ue===N?Y(_e,Te):ue===M&&J(_e,Te))}function ge(ue,_e){try{_e(function(oe){z(ue,oe)},function(oe){J(ue,oe)})}catch(xe){J(ue,xe)}}var pe=0;function Ne(){return pe++}function de(ue){ue[O]=pe++,ue._state=void 0,ue._result=void 0,ue._subscribers=[]}function Le(){return new Error("Array Methods must be provided an Array")}var Q=function(){function ue(_e,xe){this._instanceConstructor=_e,this.promise=new _e(L),this.promise[O]||de(this.promise),m(xe)?(this.length=xe.length,this._remaining=xe.length,this._result=new Array(this.length),this.length===0?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(xe),this._remaining===0&&Y(this.promise,this._result))):J(this.promise,Le())}return ue.prototype._enumerate=function(xe){for(var oe=0;this._state===D&&oe<xe.length;oe++)this._eachEntry(xe[oe],oe)},ue.prototype._eachEntry=function(xe,oe){var fe=this._instanceConstructor,Te=fe.resolve;if(Te===_){var ze=void 0,it=void 0,et=!1;try{ze=xe.then}catch(gt){et=!0,it=gt}if(ze===b&&xe._state!==D)this._settledAt(xe._state,oe,xe._result);else if(typeof ze!="function")this._remaining--,this._result[oe]=xe;else if(fe===Z){var Oe=new fe(L);et?J(Oe,it):U(Oe,xe,ze),this._willSettleAt(Oe,oe)}else this._willSettleAt(new fe(function(gt){return gt(xe)}),oe)}else this._willSettleAt(Te(xe),oe)},ue.prototype._settledAt=function(xe,oe,fe){var Te=this.promise;Te._state===D&&(this._remaining--,xe===M?J(Te,fe):this._result[oe]=fe),this._remaining===0&&Y(Te,this._result)},ue.prototype._willSettleAt=function(xe,oe){var fe=this;se(xe,void 0,function(Te){return fe._settledAt(N,oe,Te)},function(Te){return fe._settledAt(M,oe,Te)})},ue}();function ce(ue){return new Q(this,ue).promise}function Ke(ue){var _e=this;return m(ue)?new _e(function(xe,oe){for(var fe=ue.length,Te=0;Te<fe;Te++)_e.resolve(ue[Te]).then(xe,oe)}):new _e(function(xe,oe){return oe(new TypeError("You must pass an array to race."))})}function ee(ue){var _e=this,xe=new _e(L);return J(xe,ue),xe}function X(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function G(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Z=function(){function ue(_e){this[O]=Ne(),this._result=this._state=void 0,this._subscribers=[],L!==_e&&(typeof _e!="function"&&X(),this instanceof ue?ge(this,_e):G())}return ue.prototype.catch=function(xe){return this.then(null,xe)},ue.prototype.finally=function(xe){var oe=this,fe=oe.constructor;return g(xe)?oe.then(function(Te){return fe.resolve(xe()).then(function(){return Te})},function(Te){return fe.resolve(xe()).then(function(){throw Te})}):oe.then(xe,xe)},ue}();Z.prototype.then=b,Z.all=ce,Z.race=Ke,Z.resolve=_,Z.reject=ee,Z._setScheduler=i,Z._setAsap=n,Z._asap=r;function ve(){var ue=void 0;if(typeof E!="undefined")ue=E;else if(typeof self!="undefined")ue=self;else try{ue=Function("return this")()}catch(oe){throw new Error("polyfill failed because global object is unavailable in this environment")}var _e=ue.Promise;if(_e){var xe=null;try{xe=Object.prototype.toString.call(_e.resolve())}catch(oe){}if(xe==="[object Promise]"&&!_e.cast)return}ue.Promise=Z}return Z.polyfill=ve,Z.Promise=Z,Z})}).call(this,d("Q2Ig"),d("yLpj"))},E4JC:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.StreamCipher,S=E.algo,m=[],h=[],c=[],a=S.Rabbit=g.extend({_doReset:function(){for(var n=this._key.words,t=this.cfg.iv,s=0;s<4;s++)n[s]=(n[s]<<8|n[s]>>>24)&16711935|(n[s]<<24|n[s]>>>8)&4278255360;var e=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],o=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var s=0;s<4;s++)r.call(this);for(var s=0;s<8;s++)o[s]^=e[s+4&7];if(t){var l=t.words,u=l[0],f=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,v=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,A=p>>>16|v&4294901760,y=v<<16|p&65535;o[0]^=p,o[1]^=A,o[2]^=v,o[3]^=y,o[4]^=p,o[5]^=A,o[6]^=v,o[7]^=y;for(var s=0;s<4;s++)r.call(this)}},_doProcessBlock:function(n,t){var s=this._X;r.call(this),m[0]=s[0]^s[5]>>>16^s[3]<<16,m[1]=s[2]^s[7]>>>16^s[5]<<16,m[2]=s[4]^s[1]>>>16^s[7]<<16,m[3]=s[6]^s[3]>>>16^s[1]<<16;for(var e=0;e<4;e++)m[e]=(m[e]<<8|m[e]>>>24)&16711935|(m[e]<<24|m[e]>>>8)&4278255360,n[t+e]^=m[e]},blockSize:128/32,ivSize:64/32});function r(){for(var i=this._X,n=this._C,t=0;t<8;t++)h[t]=n[t];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<h[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<h[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<h[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<h[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<h[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<h[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<h[6]>>>0?1:0)|0,this._b=n[7]>>>0<h[7]>>>0?1:0;for(var t=0;t<8;t++){var s=i[t]+n[t],e=s&65535,o=s>>>16,l=((e*e>>>17)+e*o>>>15)+o*o,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[t]=l^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.Rabbit=g._createHelper(a)}(),I.Rabbit})},E9nw:function(H,k){H.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var I=document.activeElement,E=[],T=0;T<d.rangeCount;T++)E.push(d.getRangeAt(T));switch(I.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":I.blur();break;default:I=null;break}return d.removeAllRanges(),function(){d.type==="Caret"&&d.removeAllRanges(),d.rangeCount||E.forEach(function(g){d.addRange(g)}),I&&I.focus()}}},ELLl:function(H,k,d){(function(I){I(d("VrN/"))})(function(I){var E={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=I.Pos;I.defineOption("autoCloseBrackets",!1,function(e,o,l){l&&l!=I.Init&&(e.removeKeyMap(S),e.state.closeBrackets=null),o&&(m(g(o,"pairs")),e.state.closeBrackets=o,e.addKeyMap(S))});function g(e,o){return o=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[o]!=null?e[o]:E[o]}var S={Backspace:a,Enter:r};function m(e){for(var o=0;o<e.length;o++){var l=e.charAt(o),u="'"+l+"'";S[u]||(S[u]=h(l))}}m(E.pairs+"`");function h(e){return function(o){return n(o,e)}}function c(e){var o=e.state.closeBrackets;if(!o||o.override)return o;var l=e.getModeAt(e.getCursor());return l.closeBrackets||o}function a(e){var o=c(e);if(!o||e.getOption("disableInput"))return I.Pass;for(var l=g(o,"pairs"),u=e.listSelections(),f=0;f<u.length;f++){if(!u[f].empty())return I.Pass;var p=t(e,u[f].head);if(!p||l.indexOf(p)%2!=0)return I.Pass}for(var f=u.length-1;f>=0;f--){var v=u[f].head;e.replaceRange("",T(v.line,v.ch-1),T(v.line,v.ch+1),"+delete")}}function r(e){var o=c(e),l=o&&g(o,"explode");if(!l||e.getOption("disableInput"))return I.Pass;for(var u=e.listSelections(),f=0;f<u.length;f++){if(!u[f].empty())return I.Pass;var p=t(e,u[f].head);if(!p||l.indexOf(p)%2!=0)return I.Pass}e.operation(function(){var v=e.lineSeparator()||`
|
|
|
`;e.replaceSelection(v+v,null),e.execCommand("goCharLeft"),u=e.listSelections();for(var A=0;A<u.length;A++){var y=u[A].head.line;e.indentLine(y,null,!0),e.indentLine(y+1,null,!0)}})}function i(e){var o=I.cmpPos(e.anchor,e.head)>0;return{anchor:new T(e.anchor.line,e.anchor.ch+(o?-1:1)),head:new T(e.head.line,e.head.ch+(o?1:-1))}}function n(e,o){var l=c(e);if(!l||e.getOption("disableInput"))return I.Pass;var u=g(l,"pairs"),f=u.indexOf(o);if(f==-1)return I.Pass;for(var p=g(l,"closeBefore"),v=g(l,"triples"),A=u.charAt(f+1)==o,y=e.listSelections(),x=f%2==0,C,w=0;w<y.length;w++){var b=y[w],_=b.head,O,L=e.getRange(_,T(_.line,_.ch+1));if(x&&!b.empty())O="surround";else if((A||!x)&&L==o)A&&s(e,_)?O="both":v.indexOf(o)>=0&&e.getRange(_,T(_.line,_.ch+3))==o+o+o?O="skipThree":O="skip";else if(A&&_.ch>1&&v.indexOf(o)>=0&&e.getRange(T(_.line,_.ch-2),_)==o+o){if(_.ch>2&&/\bstring/.test(e.getTokenTypeAt(T(_.line,_.ch-2))))return I.Pass;O="addFour"}else if(A){var D=_.ch==0?" ":e.getRange(T(_.line,_.ch-1),_);if(!I.isWordChar(L)&&D!=o&&!I.isWordChar(D))O="both";else return I.Pass}else if(x&&(L.length===0||/\s/.test(L)||p.indexOf(L)>-1))O="both";else return I.Pass;if(!C)C=O;else if(C!=O)return I.Pass}var N=f%2?u.charAt(f-1):o,M=f%2?o:u.charAt(f+1);e.operation(function(){if(C=="skip")e.execCommand("goCharRight");else if(C=="skipThree")for(var F=0;F<3;F++)e.execCommand("goCharRight");else if(C=="surround"){for(var R=e.getSelections(),F=0;F<R.length;F++)R[F]=N+R[F]+M;e.replaceSelections(R,"around"),R=e.listSelections().slice();for(var F=0;F<R.length;F++)R[F]=i(R[F]);e.setSelections(R)}else C=="both"?(e.replaceSelection(N+M,null),e.triggerElectric(N+M),e.execCommand("goCharLeft")):C=="addFour"&&(e.replaceSelection(N+N+N+N,"before"),e.execCommand("goCharRight"))})}function t(e,o){var l=e.getRange(T(o.line,o.ch-1),T(o.line,o.ch+1));return l.length==2?l:null}function s(e,o){var l=e.getTokenAt(T(o.line,o.ch+1));return/\bstring/.test(l.type)&&l.start==o.ch&&(o.ch==0||!/\bstring/.test(e.getTokenTypeAt(o)))}})},ELcG:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){/** @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(E){var T=I,g=T.lib,S=g.WordArray,m=g.Hasher,h=T.algo,c=S.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=S.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]),r=S.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]),i=S.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]),n=S.create([0,1518500249,1859775393,2400959708,2840853838]),t=S.create([1352829926,1548603684,1836072691,2053994217,0]),s=h.RIPEMD160=m.extend({_doReset:function(){this._hash=S.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,y){for(var x=0;x<16;x++){var C=y+x,w=A[C];A[C]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var b=this._hash.words,_=n.words,O=t.words,L=c.words,D=a.words,N=r.words,M=i.words,F,R,j,B,K,U,z,V,Y,J;U=F=b[0],z=R=b[1],V=j=b[2],Y=B=b[3],J=K=b[4];for(var se,x=0;x<80;x+=1)se=F+A[y+L[x]]|0,x<16?se+=e(R,j,B)+_[0]:x<32?se+=o(R,j,B)+_[1]:x<48?se+=l(R,j,B)+_[2]:x<64?se+=u(R,j,B)+_[3]:se+=f(R,j,B)+_[4],se=se|0,se=p(se,N[x]),se=se+K|0,F=K,K=B,B=p(j,10),j=R,R=se,se=U+A[y+D[x]]|0,x<16?se+=f(z,V,Y)+O[0]:x<32?se+=u(z,V,Y)+O[1]:x<48?se+=l(z,V,Y)+O[2]:x<64?se+=o(z,V,Y)+O[3]:se+=e(z,V,Y)+O[4],se=se|0,se=p(se,M[x]),se=se+J|0,U=J,J=Y,Y=p(V,10),V=z,z=se;se=b[1]+j+Y|0,b[1]=b[2]+B+J|0,b[2]=b[3]+K+U|0,b[3]=b[4]+F+z|0,b[4]=b[0]+R+V|0,b[0]=se},_doFinalize:function(){var A=this._data,y=A.words,x=this._nDataBytes*8,C=A.sigBytes*8;y[C>>>5]|=128<<24-C%32,y[(C+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,A.sigBytes=(y.length+1)*4,this._process();for(var w=this._hash,b=w.words,_=0;_<5;_++){var O=b[_];b[_]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return w},clone:function(){var A=m.clone.call(this);return A._hash=this._hash.clone(),A}});function e(v,A,y){return v^A^y}function o(v,A,y){return v&A|~v&y}function l(v,A,y){return(v|~A)^y}function u(v,A,y){return v&y|A&~y}function f(v,A,y){return v^(A|~y)}function p(v,A){return v<<A|v>>>32-A}T.RIPEMD160=m._createHelper(s),T.HmacRIPEMD160=m._createHmacHelper(s)}(Math),I.RIPEMD160})},EMyp:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("mFDi"),g=d("K4ya"),S=d("qJCg"),m=d("iLNv"),h=d("vZ6x"),c=["inBrush","outOfBrush"],a="__ecBrushSelect",r="__ecInBrushSelectEvent",i=I.PRIORITY.VISUAL.BRUSH;I.registerLayout(i,function(v,A,y){v.eachComponent({mainType:"brush"},function(x){y&&y.type==="takeGlobalCursor"&&x.setBrushOption(y.key==="brush"?y.brushOption:{brushType:!1})}),n(v)});function n(v){v.eachComponent({mainType:"brush"},function(A){var y=A.brushTargetManager=new h(A.option,v);y.setInputRanges(A.areas,v)})}I.registerVisual(i,function(v,A,y){var x=[],C,w;v.eachComponent({mainType:"brush"},function(b,_){var O={brushId:b.id,brushIndex:_,brushName:b.name,areas:E.clone(b.areas),selected:[]};x.push(O);var L=b.option,D=L.brushLink,N=[],M=[],F=[],R=0;_||(C=L.throttleType,w=L.throttleDelay);var j=E.map(b.areas,function(Y){return u(E.defaults({boundingRect:f[Y.brushType](Y)},Y))}),B=g.createVisualMappings(b.option,c,function(Y){Y.mappingMethod="fixed"});E.isArray(D)&&E.each(D,function(Y){N[Y]=1});function K(Y){return D==="all"||N[Y]}function U(Y){return!!Y.length}v.eachSeries(function(Y,J){var se=F[J]=[];Y.subType==="parallel"?z(Y,J,se):V(Y,J,se)});function z(Y,J){var se=Y.coordinateSystem;R|=se.hasAxisBrushed(),K(J)&&se.eachActiveState(Y.getData(),function($,ae){$==="active"&&(M[ae]=1)})}function V(Y,J,se){var $=o(Y);if(!$||l(b,J))return;if(E.each(j,function(ge){$[ge.brushType]&&b.brushTargetManager.controlSeries(ge,Y,v)&&se.push(ge),R|=U(se)}),K(J)&&U(se)){var ae=Y.getData();ae.each(function(ge){e($,se,ae,ge)&&(M[ge]=1)})}}v.eachSeries(function(Y,J){var se={seriesId:Y.id,seriesIndex:J,seriesName:Y.name,dataIndex:[]};O.selected.push(se);var $=o(Y),ae=F[J],ge=Y.getData(),pe=K(J)?function(Ne){return M[Ne]?(se.dataIndex.push(ge.getRawIndex(Ne)),"inBrush"):"outOfBrush"}:function(Ne){return e($,ae,ge,Ne)?(se.dataIndex.push(ge.getRawIndex(Ne)),"inBrush"):"outOfBrush"};(K(J)?R:U(ae))&&g.applyVisual(c,B,ge,pe)})}),t(A,C,w,x,y)});function t(v,A,y,x,C){if(!C)return;var w=v.getZr();if(w[r])return;w[a]||(w[a]=s);var b=m.createOrUpdate(w,a,y,A);b(v,x)}function s(v,A){if(!v.isDisposed()){var y=v.getZr();y[r]=!0,v.dispatchAction({type:"brushSelect",batch:A}),y[r]=!1}}function e(v,A,y,x){for(var C=0,w=A.length;C<w;C++){var b=A[C];if(v[b.brushType](x,y,b.selectors,b))return!0}}function o(v){var A=v.brushSelector;if(E.isString(A)){var y=[];return E.each(S,function(C,w){y[w]=function(b,_,O,L){var D=_.getItemLayout(b);return C[A](D,O,L)}}),y}else if(E.isFunction(A)){var x={};return E.each(S,function(C,w){x[w]=A}),x}return A}function l(v,A){var y=v.option.seriesIndex;return y!=null&&y!=="all"&&(E.isArray(y)?E.indexOf(y,A)<0:A!==y)}function u(v){var A=v.selectors={};return E.each(S[v.brushType],function(y,x){A[x]=function(C){return y(C,A,v)}}),v}var f={lineX:E.noop,lineY:E.noop,rect:function(v){return p(v.range)},polygon:function(v){for(var A,y=v.range,x=0,C=y.length;x<C;x++){A=A||[[Infinity,-Infinity],[Infinity,-Infinity]];var w=y[x];w[0]<A[0][0]&&(A[0][0]=w[0]),w[0]>A[0][1]&&(A[0][1]=w[0]),w[1]<A[1][0]&&(A[1][0]=w[1]),w[1]>A[1][1]&&(A[1][1]=w[1])}return A&&p(A)}};function p(v){return new T(v[0][0],v[1][0],v[0][1]-v[0][0],v[1][1]-v[1][0])}k.layoutCovers=n},ERHi:function(H,k,d){var I=d("ProS");d("Z6js"),d("R4Th");var E=d("f5Yq"),T=d("h8O9");I.registerVisual(E("effectScatter","circle")),I.registerLayout(T("effectScatter"))},ETIr:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.WordArray,S=E.enc,m=S.Base64={stringify:function(a){var r=a.words,i=a.sigBytes,n=this._map;a.clamp();for(var t=[],s=0;s<i;s+=3)for(var e=r[s>>>2]>>>24-s%4*8&255,o=r[s+1>>>2]>>>24-(s+1)%4*8&255,l=r[s+2>>>2]>>>24-(s+2)%4*8&255,u=e<<16|o<<8|l,f=0;f<4&&s+f*.75<i;f++)t.push(n.charAt(u>>>6*(3-f)&63));var p=n.charAt(64);if(p)for(;t.length%4;)t.push(p);return t.join("")},parse:function(a){var r=a.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var t=0;t<i.length;t++)n[i.charCodeAt(t)]=t}var s=i.charAt(64);if(s){var e=a.indexOf(s);e!==-1&&(r=e)}return h(a,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function h(c,a,r){for(var i=[],n=0,t=0;t<a;t++)if(t%4){var s=r[c.charCodeAt(t-1)]<<t%4*2,e=r[c.charCodeAt(t)]>>>6-t%4*2,o=s|e;i[n>>>2]|=o<<24-n%4*8,n++}return g.create(i,n)}}(),I.enc.Base64})},EXcs:function(H,k,d){"use strict";var I=function(){return{height:0,opacity:0}},E=function(h){return{height:h.scrollHeight,opacity:1}},T=function(h){return{height:h.offsetHeight}},g=function(h,c){return c.propertyName==="height"},S={motionName:"ant-motion-collapse",onAppearStart:I,onEnterStart:I,onAppearActive:E,onEnterActive:E,onLeaveStart:T,onLeaveActive:I,onAppearEnd:g,onEnterEnd:g,onLeaveEnd:g,motionDeadline:500};k.a=S},Em2t:function(H,k,d){var I=d("bahg"),E=d("quyA"),T=d("0JQy");function g(S){return E(S)?T(S):I(S)}H.exports=g},Ez2D:function(H,k,d){var I=d("bYtY"),E=d("4NO4");function T(g,S){var m=[],h=g.seriesIndex,c;if(h==null||!(c=S.getSeriesByIndex(h)))return{point:[]};var a=c.getData(),r=E.queryDataIndex(a,g);if(r==null||r<0||I.isArray(r))return{point:[]};var i=a.getItemGraphicEl(r),n=c.coordinateSystem;if(c.getTooltipPosition)m=c.getTooltipPosition(r)||[];else if(n&&n.dataToPoint)m=n.dataToPoint(a.getValues(I.map(n.dimensions,function(s){return a.mapDimension(s)}),r,!0))||[];else if(i){var t=i.getBoundingRect().clone();t.applyTransform(i.transform),m=[t.x+t.width/2,t.y+t.height/2]}return{point:m,el:i}}H.exports=T},"F+F2":function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(){if(typeof ArrayBuffer!="function")return;var E=I,T=E.lib,g=T.WordArray,S=g.init,m=g.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 c=h.byteLength,a=[],r=0;r<c;r++)a[r>>>2]|=h[r]<<24-r%4*8;S.call(this,a,c)}else S.apply(this,arguments)};m.prototype=g}(),I.lib.WordArray})},F0hE:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("ca2m"),g=d("Qxkt"),S=d("ICMv"),m=T.valueAxis;function h(r,i){return E.defaults({show:i},r)}var c=I.extendComponentModel({type:"radar",optionUpdated:function(){var r=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("scale"),t=this.get("axisLine"),s=this.get("axisTick"),e=this.get("axisType"),o=this.get("axisLabel"),l=this.get("name"),u=this.get("name.show"),f=this.get("name.formatter"),p=this.get("nameGap"),v=this.get("triggerEvent"),A=E.map(this.get("indicator")||[],function(y){y.max!=null&&y.max>0&&!y.min?y.min=0:y.min!=null&&y.min<0&&!y.max&&(y.max=0);var x=l;if(y.color!=null&&(x=E.defaults({color:y.color},l)),y=E.merge(E.clone(y),{boundaryGap:r,splitNumber:i,scale:n,axisLine:t,axisTick:s,axisType:e,axisLabel:o,name:y.text,nameLocation:"end",nameGap:p,nameTextStyle:x,triggerEvent:v},!1),u||(y.name=""),typeof f=="string"){var C=y.name;y.name=f.replace("{value}",C!=null?C:"")}else typeof f=="function"&&(y.name=f(y.name,y));var w=E.extend(new g(y,null,this.ecModel),S);return w.mainType="radar",w.componentIndex=this.componentIndex,w},this);this.getIndicatorModels=function(){return A}},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:E.merge({lineStyle:{color:"#bbb"}},m.axisLine),axisLabel:h(m.axisLabel,!1),axisTick:h(m.axisTick,!1),axisType:"interval",splitLine:h(m.splitLine,!0),splitArea:h(m.splitArea,!0),indicator:[]}}),a=c;H.exports=a},F5Ls:function(H,k){var d={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function I(E,T){if(E==="china"){var g=d[T.name];if(g){var S=T.center;S[0]+=g[0]/10.5,S[1]+=-g[1]/(10.5/.75)}}}H.exports=I},F7hV:function(H,k,d){var I=d("MBQ8"),E=I.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var T=this.get("progressiveThreshold"),g=this.get("largeThreshold");return g>T&&(T=g),T},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}}});H.exports=E},F9bG:function(H,k,d){var I=d("bYtY"),E=d("ItGF"),T=d("4NO4"),g=T.makeInner,S=g(),m=I.each;function h(s,e,o){if(E.node)return;var l=e.getZr();S(l).records||(S(l).records={}),c(l,e);var u=S(l).records[s]||(S(l).records[s]={});u.handler=o}function c(s,e){if(S(s).initialized)return;S(s).initialized=!0,o("click",I.curry(i,"click")),o("mousemove",I.curry(i,"mousemove")),o("globalout",r);function o(l,u){s.on(l,function(f){var p=n(e);m(S(s).records,function(v){v&&u(v,f,p.dispatchAction)}),a(p.pendings,e)})}}function a(s,e){var o=s.showTip.length,l=s.hideTip.length,u;o?u=s.showTip[o-1]:l&&(u=s.hideTip[l-1]),u&&(u.dispatchAction=null,e.dispatchAction(u))}function r(s,e,o){s.handler("leave",null,o)}function i(s,e,o,l){e.handler(s,o,l)}function n(s){var e={showTip:[],hideTip:[]},o=function(l){var u=e[l.type];u?u.push(l):(l.dispatchAction=o,s.dispatchAction(l))};return{dispatchAction:o,pendings:e}}function t(s,e){if(E.node)return;var o=e.getZr(),l=(S(o).records||{})[s];l&&(S(o).records[s]=null)}k.register=h,k.unregister=t},FBjb:function(H,k,d){var I=d("bYtY"),E=d("oVpE"),T=E.createSymbol,g=d("IwbS"),S=d("OELB"),m=S.parsePercent,h=d("x3X8"),c=h.getDefaultLabel;function a(p,v,A){g.Group.call(this),this.updateData(p,v,A)}var r=a.prototype,i=a.getSymbolSize=function(p,v){var A=p.getItemVisual(v,"symbolSize");return A instanceof Array?A.slice():[+A,+A]};function n(p){return[p[0]/2,p[1]/2]}function t(p,v){this.parent.drift(p,v)}r._createSymbol=function(p,v,A,y,x){this.removeAll();var C=v.getItemVisual(A,"color"),w=T(p,-1,-1,2,2,C,x);w.attr({z2:100,culling:!0,scale:n(y)}),w.drift=t,this._symbolType=p,this.add(w)},r.stopSymbolAnimation=function(p){this.childAt(0).stopAnimation(p)},r.getSymbolPath=function(){return this.childAt(0)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(p,v){var A=this.childAt(0);A.zlevel=p,A.z=v},r.setDraggable=function(p){var v=this.childAt(0);v.draggable=p,v.cursor=p?"move":v.cursor},r.updateData=function(p,v,A){this.silent=!1;var y=p.getItemVisual(v,"symbol")||"circle",x=p.hostModel,C=i(p,v),w=y!==this._symbolType;if(w){var b=p.getItemVisual(v,"symbolKeepAspect");this._createSymbol(y,p,v,C,b)}else{var _=this.childAt(0);_.silent=!1,g.updateProps(_,{scale:n(C)},x,v)}if(this._updateCommon(p,v,C,A),w){var _=this.childAt(0),O=A&&A.fadeIn,L={scale:_.scale.slice()};O&&(L.style={opacity:_.style.opacity}),_.scale=[0,0],O&&(_.style.opacity=0),g.initProps(_,L,x,v)}this._seriesModel=x};var s=["itemStyle"],e=["emphasis","itemStyle"],o=["label"],l=["emphasis","label"];r._updateCommon=function(p,v,A,y){var x=this.childAt(0),C=p.hostModel,w=p.getItemVisual(v,"color");x.type!=="image"?x.useStyle({strokeNoScale:!0}):x.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var b=y&&y.itemStyle,_=y&&y.hoverItemStyle,O=y&&y.symbolOffset,L=y&&y.labelModel,D=y&&y.hoverLabelModel,N=y&&y.hoverAnimation,M=y&&y.cursorStyle;if(!y||p.hasItemOption){var F=y&&y.itemModel?y.itemModel:p.getItemModel(v);b=F.getModel(s).getItemStyle(["color"]),_=F.getModel(e).getItemStyle(),O=F.getShallow("symbolOffset"),L=F.getModel(o),D=F.getModel(l),N=F.getShallow("hoverAnimation"),M=F.getShallow("cursor")}else _=I.extend({},_);var R=x.style,j=p.getItemVisual(v,"symbolRotate");x.attr("rotation",(j||0)*Math.PI/180||0),O&&x.attr("position",[m(O[0],A[0]),m(O[1],A[1])]),M&&x.attr("cursor",M),x.setColor(w,y&&y.symbolInnerColor),x.setStyle(b);var B=p.getItemVisual(v,"opacity");B!=null&&(R.opacity=B);var K=p.getItemVisual(v,"liftZ"),U=x.__z2Origin;K!=null?U==null&&(x.__z2Origin=x.z2,x.z2+=K):U!=null&&(x.z2=U,x.__z2Origin=null);var z=y&&y.useNameLabel;g.setLabelStyle(R,_,L,D,{labelFetcher:C,labelDataIndex:v,defaultText:V,isRectText:!0,autoColor:w});function V(Y,J){return z?p.getName(Y):c(p,Y)}x.__symbolOriginalScale=n(A),x.hoverStyle=_,x.highDownOnUpdate=N&&C.isAnimationEnabled()?u:null,g.setHoverStyle(x)};function u(p,v){if(this.incremental||this.useHoverLayer)return;if(v==="emphasis"){var A=this.__symbolOriginalScale,y=A[1]/A[0],x={scale:[Math.max(A[0]*1.1,A[0]+3),Math.max(A[1]*1.1,A[1]+3*y)]};this.animateTo(x,400,"elasticOut")}else v==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}r.fadeOut=function(p,v){var A=this.childAt(0);this.silent=A.silent=!0,!(v&&v.keepLabel)&&(A.style.text=null),g.updateProps(A,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,p)},I.inherits(a,g.Group);var f=a;H.exports=f},FGaS:function(H,k,d){var I=d("ProS"),E=d("IwbS"),T=d("bYtY"),g=d("oVpE");function S(h){return T.isArray(h)||(h=[+h,+h]),h}var m=I.extendChartView({type:"radar",render:function(h,c,a){var r=h.coordinateSystem,i=this.group,n=h.getData(),t=this._data;function s(l,u){var f=l.getItemVisual(u,"symbol")||"circle",p=l.getItemVisual(u,"color");if(f==="none")return;var v=S(l.getItemVisual(u,"symbolSize")),A=g.createSymbol(f,-1,-1,2,2,p);return A.attr({style:{strokeNoScale:!0},z2:100,scale:[v[0]/2,v[1]/2]}),A}function e(l,u,f,p,v,A){f.removeAll();for(var y=0;y<u.length-1;y++){var x=s(p,v);x&&(x.__dimIdx=y,l[y]?(x.attr("position",l[y]),E[A?"initProps":"updateProps"](x,{position:u[y]},h,v)):x.attr("position",u[y]),f.add(x))}}function o(l){return T.map(l,function(u){return[r.cx,r.cy]})}n.diff(t).add(function(l){var u=n.getItemLayout(l);if(!u)return;var f=new E.Polygon,p=new E.Polyline,v={shape:{points:u}};f.shape.points=o(u),p.shape.points=o(u),E.initProps(f,v,h,l),E.initProps(p,v,h,l);var A=new E.Group,y=new E.Group;A.add(p),A.add(f),A.add(y),e(p.shape.points,u,y,n,l,!0),n.setItemGraphicEl(l,A)}).update(function(l,u){var f=t.getItemGraphicEl(u),p=f.childAt(0),v=f.childAt(1),A=f.childAt(2),y={shape:{points:n.getItemLayout(l)}};if(!y.shape.points)return;e(p.shape.points,y.shape.points,A,n,l,!1),E.updateProps(p,y,h),E.updateProps(v,y,h),n.setItemGraphicEl(l,f)}).remove(function(l){i.remove(t.getItemGraphicEl(l))}).execute(),n.eachItemGraphicEl(function(l,u){var f=n.getItemModel(u),p=l.childAt(0),v=l.childAt(1),A=l.childAt(2),y=n.getItemVisual(u,"color");i.add(l),p.useStyle(T.defaults(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=f.getModel("emphasis.lineStyle").getLineStyle();var x=f.getModel("areaStyle"),C=f.getModel("emphasis.areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty(),b=C.isEmpty()&&C.parentModel.isEmpty();b=b&&w,v.ignore=w,v.useStyle(T.defaults(x.getAreaStyle(),{fill:y,opacity:.7})),v.hoverStyle=C.getAreaStyle();var _=f.getModel("itemStyle").getItemStyle(["color"]),O=f.getModel("emphasis.itemStyle").getItemStyle(),L=f.getModel("label"),D=f.getModel("emphasis.label");A.eachChild(function(N){N.setStyle(_),N.hoverStyle=T.clone(O);var M=n.get(n.dimensions[N.__dimIdx],u);(M==null||isNaN(M))&&(M=""),E.setLabelStyle(N.style,N.hoverStyle,L,D,{labelFetcher:n.hostModel,labelDataIndex:u,labelDimIndex:N.__dimIdx,defaultText:M,autoColor:y,isRectText:!0})}),l.highDownOnUpdate=function(N,M){v.attr("ignore",M==="emphasis"?b:w)},E.setHoverStyle(l)}),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});H.exports=m},FH2Y:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("ZMnZ"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},FJo9:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("8txm"),g=d.n(T),S=d("MXD1")},FNN5:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("+rIm"),g=d("Znkb"),S=["axisLine","axisTickLabel","axisName"],m=["splitLine","splitArea","minorSplitLine"],h=g.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(a,r){if(this.group.removeAll(),!a.get("show"))return;var i=a.axis,n=i.polar,t=n.getAngleAxis(),s=i.getTicksCoords(),e=i.getMinorTicksCoords(),o=t.getExtent()[0],l=i.getExtent(),u=c(n,a,o),f=new T(a,u);I.each(S,f.add,f),this.group.add(f.getGroup()),I.each(m,function(p){a.get(p+".show")&&!i.scale.isBlank()&&this["_"+p](a,n,o,l,s,e)},this)},_splitLine:function(a,r,i,n,t){var s=a.getModel("splitLine"),e=s.getModel("lineStyle"),o=e.get("color"),l=0;o=o instanceof Array?o:[o];for(var u=[],f=0;f<t.length;f++){var p=l++%o.length;u[p]=u[p]||[],u[p].push(new E.Circle({shape:{cx:r.cx,cy:r.cy,r:t[f].coord}}))}for(var f=0;f<u.length;f++)this.group.add(E.mergePath(u[f],{style:I.defaults({stroke:o[f%o.length],fill:null},e.getLineStyle()),silent:!0}))},_minorSplitLine:function(a,r,i,n,t,s){if(!s.length)return;for(var e=a.getModel("minorSplitLine"),o=e.getModel("lineStyle"),l=[],u=0;u<s.length;u++)for(var f=0;f<s[u].length;f++)l.push(new E.Circle({shape:{cx:r.cx,cy:r.cy,r:s[u][f].coord}}));this.group.add(E.mergePath(l,{style:I.defaults({fill:null},o.getLineStyle()),silent:!0}))},_splitArea:function(a,r,i,n,t){if(!t.length)return;var s=a.getModel("splitArea"),e=s.getModel("areaStyle"),o=e.get("color"),l=0;o=o instanceof Array?o:[o];for(var u=[],f=t[0].coord,p=1;p<t.length;p++){var v=l++%o.length;u[v]=u[v]||[],u[v].push(new E.Sector({shape:{cx:r.cx,cy:r.cy,r0:f,r:t[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=t[p].coord}for(var p=0;p<u.length;p++)this.group.add(E.mergePath(u[p],{style:I.defaults({fill:o[p%o.length]},e.getAreaStyle()),silent:!0}))}});function c(a,r,i){return{position:[a.cx,a.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:r.getModel("axisLabel").get("rotate"),z2:1}}H.exports=h},FUi9:function(H,k,d){var I=d("bYtY"),E=d("MwEJ"),T=d("aX7z"),g=d("ICMv"),S=d("Qxkt"),m=d("+TT/"),h=m.getLayoutRect;k.getLayoutRect=m.getLayoutRect;var c=d("7hqr"),a=c.enableDataStack,r=c.isDimensionStacked,i=c.getStackedDimension,n=d("hi0g");k.completeDimensions=n;var t=d("sdST");k.createDimensions=t;var s=d("oVpE");k.createSymbol=s.createSymbol;function e(f){return E(f.getSource(),f)}var o={isDimensionStacked:r,enableDataStack:a,getStackedDimension:i};function l(f,p){var v=p;S.isInstance(p)||(v=new S(p),I.mixin(v,g));var A=T.createScaleByModel(v);return A.setExtent(f[0],f[1]),T.niceScaleExtent(A,v),A}function u(f){I.mixin(f,g)}k.createList=e,k.dataStack=o,k.createScale=l,k.mixinAxisModelCommonMethods=u},"Fa/5":function(H,k,d){var I=d("ProS");d("y2l5"),d("q/+u");var E=d("f5Yq"),T=d("h8O9");d("Ae16"),I.registerVisual(E("scatter","circle")),I.registerLayout(T("scatter"))},FhB9:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},"Fm1+":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("a7Wl")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="CaretUpOutlined";var c=g.forwardRef(h);k.default=c},Fofx:function(H,k){var d=typeof Float32Array=="undefined"?Array:Float32Array;function I(){var r=new d(6);return E(r),r}function E(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function T(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r}function g(r,i,n){var t=i[0]*n[0]+i[2]*n[1],s=i[1]*n[0]+i[3]*n[1],e=i[0]*n[2]+i[2]*n[3],o=i[1]*n[2]+i[3]*n[3],l=i[0]*n[4]+i[2]*n[5]+i[4],u=i[1]*n[4]+i[3]*n[5]+i[5];return r[0]=t,r[1]=s,r[2]=e,r[3]=o,r[4]=l,r[5]=u,r}function S(r,i,n){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4]+n[0],r[5]=i[5]+n[1],r}function m(r,i,n){var t=i[0],s=i[2],e=i[4],o=i[1],l=i[3],u=i[5],f=Math.sin(n),p=Math.cos(n);return r[0]=t*p+o*f,r[1]=-t*f+o*p,r[2]=s*p+l*f,r[3]=-s*f+p*l,r[4]=p*e+f*u,r[5]=p*u-f*e,r}function h(r,i,n){var t=n[0],s=n[1];return r[0]=i[0]*t,r[1]=i[1]*s,r[2]=i[2]*t,r[3]=i[3]*s,r[4]=i[4]*t,r[5]=i[5]*s,r}function c(r,i){var n=i[0],t=i[2],s=i[4],e=i[1],o=i[3],l=i[5],u=n*o-e*t;return u?(u=1/u,r[0]=o*u,r[1]=-e*u,r[2]=-t*u,r[3]=n*u,r[4]=(t*l-o*s)*u,r[5]=(e*s-n*l)*u,r):null}function a(r){var i=I();return T(i,r),i}k.create=I,k.identity=E,k.copy=T,k.mul=g,k.translate=S,k.rotate=m,k.scale=h,k.invert=c,k.clone=a},Fv0C:function(H,k,d){"use strict";function I(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(o){return typeof o}:I=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},I(s)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=a(d("Lo0S")),T=d("vewr"),g=a(d("8CQX")),S=h(d("mHUz")),m=a(d("GdRQ"));function h(s){return s&&s.__esModule?s:{default:s}}function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function a(s){if(s&&s.__esModule)return s;if(s===null||I(s)!=="object"&&typeof s!="function")return{default:s};var e=c();if(e&&e.has(s))return e.get(s);var o={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var f=l?Object.getOwnPropertyDescriptor(s,u):null;f&&(f.get||f.set)?Object.defineProperty(o,u,f):o[u]=s[u]}return o.default=s,e&&e.set(s,o),o}function r(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function i(s,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function n(s,e,o){return e&&i(s.prototype,e),o&&i(s,o),s}var t=function(){function s(e){r(this,s),this._target=e||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 n(s,[{key:"_sendKeyEvent",value:function(o,l,u){if(u)this._keyDownList[l]=o;else{if(!(l in this._keyDownList))return;delete this._keyDownList[l]}E.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+o,", code: "+l),this.onkeyevent(o,l,u)}},{key:"_getKeyCode",value:function(o){var l=g.getKeycode(o);if(l!=="Unidentified")return l;if(o.keyCode&&o.type!=="keypress"&&o.keyCode!==229)return"Platform"+o.keyCode;if(o.keyIdentifier){if(o.keyIdentifier.substr(0,2)!=="U+")return o.keyIdentifier;var u=parseInt(o.keyIdentifier.substr(2),16),f=String.fromCharCode(u).toUpperCase();return"Platform"+f.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(o){var l=this._getKeyCode(o),u=g.getKeysym(o);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),l==="AltRight"&&o.timeStamp-this._altGrCtrlTime<50?u=S.default.XK_ISO_Level3_Shift:this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)),l==="Unidentified"){u&&(this._sendKeyEvent(u,l,!0),this._sendKeyEvent(u,l,!1)),(0,T.stopEvent)(o);return}if(m.isMac()||m.isIOS())switch(u){case S.default.XK_Super_L:u=S.default.XK_Alt_L;break;case S.default.XK_Super_R:u=S.default.XK_Super_L;break;case S.default.XK_Alt_L:u=S.default.XK_Mode_switch;break;case S.default.XK_Alt_R:u=S.default.XK_ISO_Level3_Shift;break}if(l in this._keyDownList&&(u=this._keyDownList[l]),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!1),(0,T.stopEvent)(o);return}if(!u&&(!o.key||m.isIE()||m.isEdge())){this._pendingKey=l,setTimeout(this._handleKeyPressTimeout.bind(this),10,o);return}if(this._pendingKey=null,(0,T.stopEvent)(o),l==="ControlLeft"&&m.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=o.timeStamp;return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPress",value:function(o){if((0,T.stopEvent)(o),this._pendingKey===null)return;var l=this._getKeyCode(o),u=g.getKeysym(o);if(l!=="Unidentified"&&l!=this._pendingKey)return;if(l=this._pendingKey,this._pendingKey=null,!u){E.Info("keypress with no keysym:",o);return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPressTimeout",value:function(o){if(this._pendingKey===null)return;var l,u=this._pendingKey;if(this._pendingKey=null,o.keyCode>=48&&o.keyCode<=57)l=o.keyCode;else if(o.keyCode>=65&&o.keyCode<=90){var f=String.fromCharCode(o.keyCode);o.shiftKey?f=f.toUpperCase():f=f.toLowerCase(),l=f.charCodeAt()}else l=0;this._sendKeyEvent(l,u,!0)}},{key:"_handleKeyUp",value:function(o){(0,T.stopEvent)(o);var l=this._getKeyCode(o);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[l],l,!1),m.isWindows()&&(l==="ShiftLeft"||l==="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(S.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){E.Debug(">> Keyboard.allKeysUp");for(var o in this._keyDownList)this._sendKeyEvent(this._keyDownList[o],o,!1);E.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(o){if(o.skipCheckAlt)return;if(o.altKey)return;var l=this._target,u=this._keyDownList;["AltLeft","AltRight"].forEach(function(f){if(!(f in u))return;var p=new KeyboardEvent("keyup",{key:u[f],code:f});p.skipCheckAlt=!0,l.dispatchEvent(p)})}},{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),m.isWindows()&&m.isFirefox()){var o=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.addEventListener(l,o,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(m.isWindows()&&m.isFirefox()){var o=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.removeEventListener(l,o)})}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()}}]),s}();k.default=t},FxDU:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.createSensor=void 0;var I=d("QO+J"),E=d("j5sG"),T=typeof ResizeObserver!="undefined"?E.createSensor:I.createSensor;k.createSensor=T},GGyF:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("wgjA")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="LeftOutlined";var c=g.forwardRef(h);k.default=c},GIiI:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="PoweroffOutlined";var h=k.a=E.forwardRef(m)},GMDS:function(H,k,d){var I=d("bYtY"),E=d("4NgU"),T=d("jkPA"),g=E.prototype,S=E.extend({type:"ordinal",init:function(h,c){(!h||I.isArray(h))&&(h=new T({categories:h})),this._ordinalMeta=h,this._extent=c||[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),g.contain.call(this,h)&&this._ordinalMeta.categories[h]!=null},normalize:function(h){return g.normalize.call(this,this.parse(h))},scale:function(h){return Math.round(g.scale.call(this,h))},getTicks:function(){for(var h=[],c=this._extent,a=c[0];a<=c[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,c){this.unionExtent(h.getApproximateExtent(c))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:I.noop,niceExtent:I.noop});S.create=function(){return new S};var m=S;H.exports=m},GQ8N:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.toUnsigned32bit=I,k.toSigned32bit=E;function I(T){return T>>>0}function E(T){return T|0}},GRuw:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("lPiR"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.WordArray,S=E.algo,m=S.SHA256,h=S.SHA224=m.extend({_doReset:function(){this._hash=new g.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=m._doFinalize.call(this);return a.sigBytes-=4,a}});E.SHA224=m._createHelper(h),E.HmacSHA224=m._createHmacHelper(h)}(),I.SHA224})},GUcZ:function(H,k,d){"use strict";var I=d("XKWP"),E=d("N7Kx"),T=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Ee,Re){return Ee.__proto__=Re,Ee},Object.assign=Object.assign||function(Ee){if(Ee==null)throw new TypeError("Cannot convert undefined or null to object");for(var Re=Object(Ee),je=1;je<arguments.length;je++){var nt=arguments[je];if(nt!=null)for(var Vt in nt)nt.hasOwnProperty(Vt)&&(Re[Vt]=nt[Vt])}return Re},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),$e}();T.install();var g=T,S=d("+qE3"),m=d.n(S),h=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"e",value:function(Ee,Re){(!Ee||$e.FORCE_GLOBAL_TAG)&&(Ee=$e.GLOBAL_TAG);var je="[".concat(Ee,"] > ").concat(Re);if($e.ENABLE_CALLBACK&&$e.emitter.emit("log","error",je),!$e.ENABLE_ERROR)return;console.error?console.error(je):console.warn?console.warn(je):console.log(je)}},{key:"i",value:function(Ee,Re){(!Ee||$e.FORCE_GLOBAL_TAG)&&(Ee=$e.GLOBAL_TAG);var je="[".concat(Ee,"] > ").concat(Re);if($e.ENABLE_CALLBACK&&$e.emitter.emit("log","info",je),!$e.ENABLE_INFO)return;console.info?console.info(je):console.log(je)}},{key:"w",value:function(Ee,Re){(!Ee||$e.FORCE_GLOBAL_TAG)&&(Ee=$e.GLOBAL_TAG);var je="[".concat(Ee,"] > ").concat(Re);if($e.ENABLE_CALLBACK&&$e.emitter.emit("log","warn",je),!$e.ENABLE_WARN)return;console.warn?console.warn(je):console.log(je)}},{key:"d",value:function(Ee,Re){(!Ee||$e.FORCE_GLOBAL_TAG)&&(Ee=$e.GLOBAL_TAG);var je="[".concat(Ee,"] > ").concat(Re);if($e.ENABLE_CALLBACK&&$e.emitter.emit("log","debug",je),!$e.ENABLE_DEBUG)return;console.debug?console.debug(je):console.log(je)}},{key:"v",value:function(Ee,Re){(!Ee||$e.FORCE_GLOBAL_TAG)&&(Ee=$e.GLOBAL_TAG);var je="[".concat(Ee,"] > ").concat(Re);if($e.ENABLE_CALLBACK&&$e.emitter.emit("log","verbose",je),!$e.ENABLE_VERBOSE)return;console.log(je)}}]),$e}();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 m.a;var c=h,a=function(){function $e(){Object(I.a)(this,$e),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(E.a)($e,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Ee){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Ee,this._totalBytes+=Ee):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Ee,this._totalBytes+=Ee):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Ee,this._totalBytes+=Ee,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Ee=(this._now()-this._lastCheckpoint)/1e3;return Ee==0&&(Ee=1),this._intervalBytes/Ee/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 Ee=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Ee/1024}}]),$e}(),r=a,i=d("kFHX"),n=d("4jIl"),t=function(){function $e(tt){Object(I.a)(this,$e),this._message=tt}return Object(E.a)($e,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),$e}(),s=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re){return Object(I.a)(this,Ee),tt.call(this,Re)}return Object(E.a)(Ee,[{key:"name",get:function(){return"IllegalStateException"}}]),Ee}(t),e=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re){return Object(I.a)(this,Ee),tt.call(this,Re)}return Object(E.a)(Ee,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Ee}(t),o=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re){return Object(I.a)(this,Ee),tt.call(this,Re)}return Object(E.a)(Ee,[{key:"name",get:function(){return"NotImplementedException"}}]),Ee}(t),l={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},u={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},f=function(){function $e(tt){Object(I.a)(this,$e),this._type=tt||"undefined",this._status=l.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(E.a)($e,[{key:"destroy",value:function(){this._status=l.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===l.kConnecting||this._status===l.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(Ee){this._onContentLengthKnown=Ee}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Ee){this._onURLRedirect=Ee}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Ee){this._onDataArrival=Ee}},{key:"onError",get:function(){return this._onError},set:function(Ee){this._onError=Ee}},{key:"onComplete",get:function(){return this._onComplete},set:function(Ee){this._onComplete=Ee}},{key:"open",value:function(Ee,Re){throw new o("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new o("Unimplemented abstract function!")}}]),$e}(),p=d("2KFj"),v=d("XPR9"),A={};function y(){var $e=self.navigator.userAgent.toLowerCase(),tt=/(edge)\/([\w.]+)/.exec($e)||/(opr)[\/]([\w.]+)/.exec($e)||/(chrome)[ \/]([\w.]+)/.exec($e)||/(iemobile)[\/]([\w.]+)/.exec($e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($e)||/(webkit)[ \/]([\w.]+)/.exec($e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec($e)||/(msie) ([\w.]+)/.exec($e)||$e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec($e)||$e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec($e)||[],Ee=/(ipad)/.exec($e)||/(ipod)/.exec($e)||/(windows phone)/.exec($e)||/(iphone)/.exec($e)||/(kindle)/.exec($e)||/(android)/.exec($e)||/(windows)/.exec($e)||/(mac)/.exec($e)||/(linux)/.exec($e)||/(cros)/.exec($e)||[],Re={browser:tt[5]||tt[3]||tt[1]||"",version:tt[2]||tt[4]||"0",majorVersion:tt[4]||tt[2]||"0",platform:Ee[0]||""},je={};if(Re.browser){je[Re.browser]=!0;var nt=Re.majorVersion.split(".");je.version={major:parseInt(Re.majorVersion,10),string:Re.version},nt.length>1&&(je.version.minor=parseInt(nt[1],10)),nt.length>2&&(je.version.build=parseInt(nt[2],10))}if(Re.platform&&(je[Re.platform]=!0),(je.chrome||je.opr||je.safari)&&(je.webkit=!0),je.rv||je.iemobile){je.rv&&delete je.rv;var Vt="msie";Re.browser=Vt,je[Vt]=!0}if(je.edge){delete je.edge;var Bt="msedge";Re.browser=Bt,je[Bt]=!0}if(je.opr){var Xt="opera";Re.browser=Xt,je[Xt]=!0}if(je.safari&&je.android){var Rr="android";Re.browser=Rr,je[Rr]=!0}je.name=Re.browser,je.platform=Re.platform;for(var Br in A)A.hasOwnProperty(Br)&&delete A[Br];Object.assign(A,je)}y();var x=A,C=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re,je){var nt;return Object(I.a)(this,Ee),nt=tt.call(this,"fetch-stream-loader"),nt.TAG="FetchStreamLoader",nt._seekHandler=Re,nt._config=je,nt._needStash=!0,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(E.a)(Ee,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(p.a)(Object(v.a)(Ee.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,nt){var Vt=this;this._dataSource=je,this._range=nt;var Bt=je.url;this._config.reuseRedirectedURL&&je.redirectedURL!=null&&(Bt=je.redirectedURL);var Xt=this._seekHandler.getConfig(Bt,nt),Rr=new self.Headers;if(typeof Xt.headers=="object"){var Br=Xt.headers;for(var cn in Br)Br.hasOwnProperty(cn)&&Rr.append(cn,Br[cn])}var Ut={method:"GET",headers:Rr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var pt in this._config.headers)Rr.append(pt,this._config.headers[pt]);je.cors===!1&&(Ut.mode="same-origin"),je.withCredentials&&(Ut.credentials="include"),je.referrerPolicy&&(Ut.referrerPolicy=je.referrerPolicy),this._status=l.kConnecting,self.fetch(Xt.url,Ut).then(function(ut){if(Vt._requestAbort){Vt._requestAbort=!1,Vt._status=l.kIdle;return}if(ut.ok&&ut.status>=200&&ut.status<=299){if(ut.url!==Xt.url&&Vt._onURLRedirect){var Jt=Vt._seekHandler.removeURLParameters(ut.url);Vt._onURLRedirect(Jt)}var Zt=ut.headers.get("Content-Length");return Zt!=null&&(Vt._contentLength=parseInt(Zt),Vt._contentLength!==0&&(Vt._onContentLengthKnown&&Vt._onContentLengthKnown(Vt._contentLength))),Vt._pump.call(Vt,ut.body.getReader())}else if(Vt._status=l.kError,Vt._onError)Vt._onError(u.HTTP_STATUS_CODE_INVALID,{code:ut.status,msg:ut.statusText});else throw new t("FetchStreamLoader: Http code invalid, "+ut.status+" "+ut.statusText)}).catch(function(ut){if(Vt._status=l.kError,Vt._onError)Vt._onError(u.EXCEPTION,{code:-1,msg:ut.message});else throw ut})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(je){var nt=this;return je.read().then(function(Vt){if(Vt.done)if(nt._contentLength!==null&&nt._receivedLength<nt._contentLength){nt._status=l.kError;var Bt=u.EARLY_EOF,Xt={code:-1,msg:"Fetch stream meet Early-EOF"};if(nt._onError)nt._onError(Bt,Xt);else throw new t(Xt.msg)}else nt._status=l.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=l.kComplete,je.cancel();nt._status=l.kBuffering;var Rr=Vt.value.buffer,Br=nt._range.from+nt._receivedLength;nt._receivedLength+=Rr.byteLength,nt._onDataArrival&&nt._onDataArrival(Rr,Br,nt._receivedLength),nt._pump(je)}}).catch(function(Vt){if(Vt.code===11&&x.msedge)return;nt._status=l.kError;var Bt=0,Xt=null;if((Vt.code===19||Vt.message==="network error")&&(nt._contentLength===null||nt._contentLength!==null&&nt._receivedLength<nt._contentLength)?(Bt=u.EARLY_EOF,Xt={code:Vt.code,msg:"Fetch stream meet Early-EOF"}):(Bt=u.EXCEPTION,Xt={code:Vt.code,msg:Vt.message}),nt._onError)nt._onError(Bt,Xt);else throw new t(Xt.msg)})}}],[{key:"isSupported",value:function(){try{var je=x.msedge&&x.version.minor>=15048,nt=x.msedge?je:!0;return self.fetch&&self.ReadableStream&&nt}catch(Vt){return!1}}}]),Ee}(f),w=C,b=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re,je){var nt;return Object(I.a)(this,Ee),nt=tt.call(this,"xhr-moz-chunked-loader"),nt.TAG="MozChunkedLoader",nt._seekHandler=Re,nt._config=je,nt._needStash=!0,nt._xhr=null,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(E.a)(Ee,[{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(p.a)(Object(v.a)(Ee.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,nt){this._dataSource=je,this._range=nt;var Vt=je.url;this._config.reuseRedirectedURL&&je.redirectedURL!=null&&(Vt=je.redirectedURL);var Bt=this._seekHandler.getConfig(Vt,nt);this._requestURL=Bt.url;var Xt=this._xhr=new XMLHttpRequest;if(Xt.open("GET",Bt.url,!0),Xt.responseType="moz-chunked-arraybuffer",Xt.onreadystatechange=this._onReadyStateChange.bind(this),Xt.onprogress=this._onProgress.bind(this),Xt.onloadend=this._onLoadEnd.bind(this),Xt.onerror=this._onXhrError.bind(this),je.withCredentials&&(Xt.withCredentials=!0),typeof Bt.headers=="object"){var Rr=Bt.headers;for(var Br in Rr)Rr.hasOwnProperty(Br)&&Xt.setRequestHeader(Br,Rr[Br])}if(typeof this._config.headers=="object"){var cn=this._config.headers;for(var Ut in cn)cn.hasOwnProperty(Ut)&&Xt.setRequestHeader(Ut,cn[Ut])}this._status=l.kConnecting,Xt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=l.kComplete}},{key:"_onReadyStateChange",value:function(je){var nt=je.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=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new t("MozChunkedLoader: Http code invalid, "+nt.status+" "+nt.statusText);else this._status=l.kBuffering}}},{key:"_onProgress",value:function(je){if(this._status===l.kError)return;this._contentLength===null&&(je.total!==null&&je.total!==0&&(this._contentLength=je.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var nt=je.target.response,Vt=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,Vt,this._receivedLength)}},{key:"_onLoadEnd",value:function(je){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===l.kError)return;this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(je){this._status=l.kError;var nt=0,Vt=null;if(this._contentLength&&je.loaded<this._contentLength?(nt=u.EARLY_EOF,Vt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(nt=u.EXCEPTION,Vt={code:-1,msg:je.constructor.name+" "+je.type}),this._onError)this._onError(nt,Vt);else throw new t(Vt.msg)}}],[{key:"isSupported",value:function(){try{var je=new XMLHttpRequest;return je.open("GET","https://example.com",!0),je.responseType="moz-chunked-arraybuffer",je.responseType==="moz-chunked-arraybuffer"}catch(nt){return c.w("MozChunkedLoader",nt.message),!1}}}]),Ee}(f),_=b,O=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re,je){var nt;return Object(I.a)(this,Ee),nt=tt.call(this,"xhr-msstream-loader"),nt.TAG="MSStreamLoader",nt._seekHandler=Re,nt._config=je,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(E.a)(Ee,[{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(p.a)(Object(v.a)(Ee.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,nt){this._internalOpen(je,nt,!1)}},{key:"_internalOpen",value:function(je,nt,Vt){this._dataSource=je,Vt?this._currentRange=nt:this._totalRange=nt;var Bt=je.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Bt=this._currentRedirectedURL:je.redirectedURL!=null&&(Bt=je.redirectedURL));var Xt=this._seekHandler.getConfig(Bt,nt);this._currentRequestURL=Xt.url;var Rr=this._reader=new self.MSStreamReader;Rr.onprogress=this._msrOnProgress.bind(this),Rr.onload=this._msrOnLoad.bind(this),Rr.onerror=this._msrOnError.bind(this);var Br=this._xhr=new XMLHttpRequest;if(Br.open("GET",Xt.url,!0),Br.responseType="ms-stream",Br.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Br.onerror=this._xhrOnError.bind(this),je.withCredentials&&(Br.withCredentials=!0),typeof Xt.headers=="object"){var cn=Xt.headers;for(var Ut in cn)cn.hasOwnProperty(Ut)&&Br.setRequestHeader(Ut,cn[Ut])}if(typeof this._config.headers=="object"){var pt=this._config.headers;for(var ut in pt)pt.hasOwnProperty(ut)&&Br.setRequestHeader(ut,pt[ut])}this._isReconnecting?this._isReconnecting=!1:this._status=l.kConnecting,Br.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=l.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(je){var nt=je.target;if(nt.readyState===2)if(nt.status>=200&&nt.status<=299){if(this._status=l.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 Bt=nt.getResponseHeader("Content-Length");if(Bt!=null&&this._contentLength==null){var Xt=parseInt(Bt);Xt>0&&(this._contentLength=Xt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new t("MSStreamLoader: Http code invalid, "+nt.status+" "+nt.statusText);else if(nt.readyState===3&&(nt.status>=200&&nt.status<=299)){this._status=l.kBuffering;var Rr=nt.response;this._reader.readAsArrayBuffer(Rr)}}},{key:"_xhrOnError",value:function(je){this._status=l.kError;var nt=u.EXCEPTION,Vt={code:-1,msg:je.constructor.name+" "+je.type};if(this._onError)this._onError(nt,Vt);else throw new t(Vt.msg)}},{key:"_msrOnProgress",value:function(je){var nt=je.target,Vt=nt.result;if(Vt==null){this._doReconnectIfNeeded();return}var Bt=Vt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Vt.byteLength;var Xt=this._totalRange.from+this._receivedLength;this._receivedLength+=Bt.byteLength,this._onDataArrival&&this._onDataArrival(Bt,Xt,this._receivedLength),Vt.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Xt+Bt.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 je={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,je,!0)}}},{key:"_msrOnLoad",value:function(je){this._status=l.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(je){this._status=l.kError;var nt=0,Vt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(nt=u.EARLY_EOF,Vt={code:-1,msg:"MSStream meet Early-Eof"}):(nt=u.EARLY_EOF,Vt={code:-1,msg:je.constructor.name+" "+je.type}),this._onError)this._onError(nt,Vt);else throw new t(Vt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var je=new XMLHttpRequest;return je.open("GET","https://example.com",!0),je.responseType="ms-stream",je.responseType==="ms-stream"}catch(nt){return c.w("MSStreamLoader",nt.message),!1}}}]),Ee}(f),L=O,D=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(Re,je){var nt;return Object(I.a)(this,Ee),nt=tt.call(this,"xhr-range-loader"),nt.TAG="RangeLoader",nt._seekHandler=Re,nt._config=je,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 r,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(E.a)(Ee,[{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(p.a)(Object(v.a)(Ee.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(je,nt){this._dataSource=je,this._range=nt,this._status=l.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 je=this._currentChunkSizeKB*1024,nt=this._range.from+this._receivedLength,Vt=nt+je;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(je,nt){this._lastTimeLoaded=0;var Vt=je.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Vt=this._currentRedirectedURL:je.redirectedURL!=null&&(Vt=je.redirectedURL));var Bt=this._seekHandler.getConfig(Vt,nt);this._currentRequestURL=Bt.url;var Xt=this._xhr=new XMLHttpRequest;if(Xt.open("GET",Bt.url,!0),Xt.responseType="arraybuffer",Xt.onreadystatechange=this._onReadyStateChange.bind(this),Xt.onprogress=this._onProgress.bind(this),Xt.onload=this._onLoad.bind(this),Xt.onerror=this._onXhrError.bind(this),je.withCredentials&&(Xt.withCredentials=!0),typeof Bt.headers=="object"){var Rr=Bt.headers;for(var Br in Rr)Rr.hasOwnProperty(Br)&&Xt.setRequestHeader(Br,Rr[Br])}if(typeof this._config.headers=="object"){var cn=this._config.headers;for(var Ut in cn)cn.hasOwnProperty(Ut)&&Xt.setRequestHeader(Ut,cn[Ut])}Xt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=l.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(je){var nt=je.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=l.kBuffering}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new t("RangeLoader: Http code invalid, "+nt.status+" "+nt.statusText)}}},{key:"_onProgress",value:function(je){if(this._status===l.kError)return;if(this._contentLength===null){var nt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,nt=!0;var Vt=je.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 Bt=je.loaded-this._lastTimeLoaded;this._lastTimeLoaded=je.loaded,this._speedSampler.addBytes(Bt)}},{key:"_normalizeSpeed",value:function(je){var nt=this._chunkSizeKBList,Vt=nt.length-1,Bt=0,Xt=0,Rr=Vt;if(je<nt[0])return nt[0];for(;Xt<=Rr;){if(Bt=Xt+Math.floor((Rr-Xt)/2),Bt===Vt||je>=nt[Bt]&&je<nt[Bt+1])return nt[Bt];nt[Bt]<je?Xt=Bt+1:Rr=Bt-1}}},{key:"_onLoad",value:function(je){if(this._status===l.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 Bt=je.target.response,Xt=this._range.from+this._receivedLength;this._receivedLength+=Bt.byteLength;var Rr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Rr=!0,this._onDataArrival&&this._onDataArrival(Bt,Xt,this._receivedLength),Rr&&(this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(je){this._status=l.kError;var nt=0,Vt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(nt=u.EARLY_EOF,Vt={code:-1,msg:"RangeLoader meet Early-Eof"}):(nt=u.EXCEPTION,Vt={code:-1,msg:je.constructor.name+" "+je.type}),this._onError)this._onError(nt,Vt);else throw new t(Vt.msg)}}],[{key:"isSupported",value:function(){try{var je=new XMLHttpRequest;return je.open("GET","https://example.com",!0),je.responseType="arraybuffer",je.responseType==="arraybuffer"}catch(nt){return c.w("RangeLoader",nt.message),!1}}}]),Ee}(f),N=D,M=function($e){Object(i.a)(Ee,$e);var tt=Object(n.a)(Ee);function Ee(){var Re;return Object(I.a)(this,Ee),Re=tt.call(this,"websocket-loader"),Re.TAG="WebSocketLoader",Re._needStash=!0,Re._ws=null,Re._requestAbort=!1,Re._receivedLength=0,Re}return Object(E.a)(Ee,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(p.a)(Object(v.a)(Ee.prototype),"destroy",this).call(this)}},{key:"open",value:function(je){try{var nt=this._ws=new self.WebSocket(je.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=l.kConnecting}catch(Bt){this._status=l.kError;var Vt={code:Bt.code,msg:Bt.message};if(this._onError)this._onError(u.EXCEPTION,Vt);else throw new t(Vt.msg)}}},{key:"abort",value:function(){var je=this._ws;je&&(je.readyState===0||je.readyState===1)&&(this._requestAbort=!0,je.close()),this._ws=null,this._status=l.kComplete}},{key:"_onWebSocketOpen",value:function(je){this._status=l.kBuffering}},{key:"_onWebSocketClose",value:function(je){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=l.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(je){var nt=this;if(je.data instanceof ArrayBuffer)this._dispatchArrayBuffer(je.data);else if(je.data instanceof Blob){var Vt=new FileReader;Vt.onload=function(){nt._dispatchArrayBuffer(Vt.result)},Vt.readAsArrayBuffer(je.data)}else{this._status=l.kError;var Bt={code:-1,msg:"Unsupported WebSocket message type: "+je.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,Bt);else throw new t(Bt.msg)}}},{key:"_dispatchArrayBuffer",value:function(je){var nt=je,Vt=this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,Vt,this._receivedLength)}},{key:"_onWebSocketError",value:function(je){this._status=l.kError;var nt={code:je.code,msg:je.message};if(this._onError)this._onError(u.EXCEPTION,nt);else throw new t(nt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(je){return!1}}}]),Ee}(f),F=M,R=function(){function $e(tt){Object(I.a)(this,$e),this._zeroStart=tt||!1}return Object(E.a)($e,[{key:"getConfig",value:function(Ee,Re){var je={};if(Re.from!==0||Re.to!==-1){var nt;Re.to!==-1?nt="bytes=".concat(Re.from.toString(),"-").concat(Re.to.toString()):nt="bytes=".concat(Re.from.toString(),"-"),je.Range=nt}else this._zeroStart&&(je.Range="bytes=0-");return{url:Ee,headers:je}}},{key:"removeURLParameters",value:function(Ee){return Ee}}]),$e}(),j=R,B=function(){function $e(tt,Ee){Object(I.a)(this,$e),this._startName=tt,this._endName=Ee}return Object(E.a)($e,[{key:"getConfig",value:function(Ee,Re){var je=Ee;if(Re.from!==0||Re.to!==-1){var nt=!0;je.indexOf("?")===-1&&(je+="?",nt=!1),nt&&(je+="&"),je+="".concat(this._startName,"=").concat(Re.from.toString()),Re.to!==-1&&(je+="&".concat(this._endName,"=").concat(Re.to.toString()))}return{url:je,headers:{}}}},{key:"removeURLParameters",value:function(Ee){var Re=Ee.split("?")[0],je=void 0,nt=Ee.indexOf("?");nt!==-1&&(je=Ee.substring(nt+1));var Vt="";if(je!=null&&je.length>0)for(var Bt=je.split("&"),Xt=0;Xt<Bt.length;Xt++){var Rr=Bt[Xt].split("="),Br=Xt>0;Rr[0]!==this._startName&&Rr[0]!==this._endName&&(Br&&(Vt+="&"),Vt+=Bt[Xt])}return Vt.length===0?Re:Re+"?"+Vt}}]),$e}(),K=B,U=function(){function $e(tt,Ee,Re){Object(I.a)(this,$e),this.TAG="IOController",this._config=Ee,this._extraData=Re,this._stashInitialSize=1024*384,Ee.stashInitialSize!=null&&Ee.stashInitialSize>0&&(this._stashInitialSize=Ee.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,Ee.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=tt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(tt.url),this._refTotalLength=tt.filesize?tt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new r,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(E.a)($e,[{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(Ee){this._extraData=Ee}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Ee){this._onDataArrival=Ee}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Ee){this._onSeeked=Ee}},{key:"onError",get:function(){return this._onError},set:function(Ee){this._onError=Ee}},{key:"onComplete",get:function(){return this._onComplete},set:function(Ee){this._onComplete=Ee}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Ee){this._onRedirect=Ee}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Ee){this._onRecoveredEarlyEof=Ee}},{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===N?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Ee=this._config;if(Ee.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(Ee.seekType==="param"){var Re=Ee.seekParamStart||"bstart",je=Ee.seekParamEnd||"bend";this._seekHandler=new K(Re,je)}else if(Ee.seekType==="custom"){if(typeof Ee.customSeekHandler!="function")throw new e("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Ee.customSeekHandler}else throw new e("Invalid seekType in config: ".concat(Ee.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=F;else if(w.isSupported())this._loaderClass=w;else if(_.isSupported())this._loaderClass=_;else if(N.isSupported())this._loaderClass=N;else throw new t("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(Ee){this._currentRange={from:0,to:-1},Ee&&(this._currentRange.from=Ee),this._speedSampler.reset(),Ee||(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 Ee=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Ee,!0)}}},{key:"seek",value:function(Ee){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Ee,!0)}},{key:"_internalSeek",value:function(Ee,Re){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Re),this._loader.destroy(),this._loader=null;var je={from:Ee,to:-1};this._currentRange={from:je.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,je),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Ee){if(!Ee||typeof Ee!="string"||Ee.length===0)throw new e("Url must be a non-empty string!");this._dataSource.url=Ee}},{key:"_expandBuffer",value:function(Ee){for(var Re=this._stashSize;Re+1024*1024*1<Ee;)Re*=2;if(Re+=1024*1024*1,Re===this._bufferSize)return;var je=new ArrayBuffer(Re);if(this._stashUsed>0){var nt=new Uint8Array(this._stashBuffer,0,this._stashUsed),Vt=new Uint8Array(je,0,Re);Vt.set(nt,0)}this._stashBuffer=je,this._bufferSize=Re}},{key:"_normalizeSpeed",value:function(Ee){var Re=this._speedNormalizeList,je=Re.length-1,nt=0,Vt=0,Bt=je;if(Ee<Re[0])return Re[0];for(;Vt<=Bt;){if(nt=Vt+Math.floor((Bt-Vt)/2),nt===je||Ee>=Re[nt]&&Ee<Re[nt+1])return Re[nt];Re[nt]<Ee?Vt=nt+1:Bt=nt-1}}},{key:"_adjustStashSize",value:function(Ee){var Re=0;this._config.isLive||Ee<512?Re=Ee:Ee>=512&&Ee<=1024?Re=Math.floor(Ee*1.5):Re=Ee*2,Re>8192&&(Re=8192);var je=Re*1024+1024*1024*1;this._bufferSize<je&&this._expandBuffer(je),this._stashSize=Re*1024}},{key:"_dispatchChunks",value:function(Ee,Re){return this._currentRange.to=Re+Ee.byteLength-1,this._onDataArrival(Ee,Re)}},{key:"_onURLRedirect",value:function(Ee){this._redirectedURL=Ee,this._onRedirect&&this._onRedirect(Ee)}},{key:"_onContentLengthKnown",value:function(Ee){Ee&&this._fullRequestFlag&&(this._totalLength=Ee,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Ee,Re,je){if(!this._onDataArrival)throw new s("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Ee.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=Re),this._stashUsed+Ee.byteLength<=this._stashSize){var pt=new Uint8Array(this._stashBuffer,0,this._stashSize);pt.set(new Uint8Array(Ee),this._stashUsed),this._stashUsed+=Ee.byteLength}else{var ut=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Jt=this._stashBuffer.slice(0,this._stashUsed),Zt=this._dispatchChunks(Jt,this._stashByteStart);if(Zt<Jt.byteLength){if(Zt>0){var At=new Uint8Array(Jt,Zt);ut.set(At,0),this._stashUsed=At.byteLength,this._stashByteStart+=Zt}}else this._stashUsed=0,this._stashByteStart+=Zt;this._stashUsed+Ee.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Ee.byteLength),ut=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ut.set(new Uint8Array(Ee),this._stashUsed),this._stashUsed+=Ee.byteLength}else{var Pt=this._dispatchChunks(Ee,Re);if(Pt<Ee.byteLength){var vt=Ee.byteLength-Pt;vt>this._bufferSize&&(this._expandBuffer(vt),ut=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ut.set(new Uint8Array(Ee,Pt),0),this._stashUsed+=vt,this._stashByteStart=Re+Pt}}}else if(this._stashUsed===0){var Bt=this._dispatchChunks(Ee,Re);if(Bt<Ee.byteLength){var Xt=Ee.byteLength-Bt;Xt>this._bufferSize&&this._expandBuffer(Xt);var Rr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Rr.set(new Uint8Array(Ee,Bt),0),this._stashUsed+=Xt,this._stashByteStart=Re+Bt}}else{this._stashUsed+Ee.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Ee.byteLength);var Br=new Uint8Array(this._stashBuffer,0,this._bufferSize);Br.set(new Uint8Array(Ee),this._stashUsed),this._stashUsed+=Ee.byteLength;var cn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(cn<this._stashUsed&&cn>0){var Ut=new Uint8Array(this._stashBuffer,cn);Br.set(Ut,0)}this._stashUsed-=cn,this._stashByteStart+=cn}}},{key:"_flushStashBuffer",value:function(Ee){if(this._stashUsed>0){var Re=this._stashBuffer.slice(0,this._stashUsed),je=this._dispatchChunks(Re,this._stashByteStart),nt=Re.byteLength-je;if(je<Re.byteLength)if(Ee)c.w(this.TAG,"".concat(nt," bytes unconsumed data remain when flush buffer, dropped"));else{if(je>0){var Vt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Bt=new Uint8Array(Re,je);Vt.set(Bt,0),this._stashUsed=Bt.byteLength,this._stashByteStart+=je}return 0}return this._stashUsed=0,this._stashByteStart=0,nt}return 0}},{key:"_onLoaderComplete",value:function(Ee,Re){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Ee,Re){c.e(this.TAG,"Loader error, code = ".concat(Re.code,", msg = ").concat(Re.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Ee=u.UNRECOVERABLE_EARLY_EOF);switch(Ee){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var je=this._currentRange.to+1;je<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(je,!1));return}Ee=u.UNRECOVERABLE_EARLY_EOF;break}case u.UNRECOVERABLE_EARLY_EOF:case u.CONNECTING_TIMEOUT:case u.HTTP_STATUS_CODE_INVALID:case u.EXCEPTION:break}if(this._onError)this._onError(Ee,Re);else throw new t("IOException: "+Re.msg)}}]),$e}(),z=U,V={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 Y(){return Object.assign({},V)}var J=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Ee=new z({},Y()),Re=Ee.loaderType;return Ee.destroy(),Re=="fetch-stream-loader"||Re=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Ee=new z({},Y()),Re=Ee.loaderType;return Ee.destroy(),Re}},{key:"supportNativeMediaPlayback",value:function(Ee){$e.videoElement==null&&($e.videoElement=window.document.createElement("video"));var Re=$e.videoElement.canPlayType(Ee);return Re==="probably"||Re=="maybe"}},{key:"getFeatureList",value:function(){var Ee={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Ee.mseFlvPlayback=$e.supportMSEH264Playback(),Ee.networkStreamIO=$e.supportNetworkStreamIO(),Ee.networkLoaderName=$e.getNetworkLoaderTypeName(),Ee.mseLiveFlvPlayback=Ee.mseFlvPlayback&&Ee.networkStreamIO,Ee.nativeMP4H264Playback=$e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Ee.nativeWebmVP8Playback=$e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Ee.nativeWebmVP9Playback=$e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Ee}}]),$e}(),se=J,$={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"},ae=$,ge=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(Ee){c.FORCE_GLOBAL_TAG=Ee,$e._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(Ee){c.GLOBAL_TAG=Ee,$e._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(Ee){c.ENABLE_VERBOSE=Ee,c.ENABLE_DEBUG=Ee,c.ENABLE_INFO=Ee,c.ENABLE_WARN=Ee,c.ENABLE_ERROR=Ee,$e._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(Ee){c.ENABLE_DEBUG=Ee,$e._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(Ee){c.ENABLE_VERBOSE=Ee,$e._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(Ee){c.ENABLE_INFO=Ee,$e._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(Ee){c.ENABLE_WARN=Ee,$e._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(Ee){c.ENABLE_ERROR=Ee,$e._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:c.GLOBAL_TAG,forceGlobalTag:c.FORCE_GLOBAL_TAG,enableVerbose:c.ENABLE_VERBOSE,enableDebug:c.ENABLE_DEBUG,enableInfo:c.ENABLE_INFO,enableWarn:c.ENABLE_WARN,enableError:c.ENABLE_ERROR,enableCallback:c.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(Ee){c.GLOBAL_TAG=Ee.globalTag,c.FORCE_GLOBAL_TAG=Ee.forceGlobalTag,c.ENABLE_VERBOSE=Ee.enableVerbose,c.ENABLE_DEBUG=Ee.enableDebug,c.ENABLE_INFO=Ee.enableInfo,c.ENABLE_WARN=Ee.enableWarn,c.ENABLE_ERROR=Ee.enableError,c.ENABLE_CALLBACK=Ee.enableCallback}},{key:"_notifyChange",value:function(){var Ee=$e.emitter;if(Ee.listenerCount("change")>0){var Re=$e.getConfig();Ee.emit("change",Re)}}},{key:"registerListener",value:function(Ee){$e.emitter.addListener("change",Ee)}},{key:"removeListener",value:function(Ee){$e.emitter.removeListener("change",Ee)}},{key:"addLogListener",value:function(Ee){c.emitter.addListener("log",Ee),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,$e._notifyChange())}},{key:"removeLogListener",value:function(Ee){c.emitter.removeListener("log",Ee),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,$e._notifyChange())}}]),$e}();ge.emitter=new m.a;var pe=ge,Ne=function(){function $e(){Object(I.a)(this,$e),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(E.a)($e,[{key:"isComplete",value:function(){var Ee=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Re=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&&Ee&&Re}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Ee){if(this.keyframesIndex==null)return null;var Re=this.keyframesIndex,je=this._search(Re.times,Ee);return{index:je,milliseconds:Re.times[je],fileposition:Re.filepositions[je]}}},{key:"_search",value:function(Ee,Re){var je=0,nt=Ee.length-1,Vt=0,Bt=0,Xt=nt;for(Re<Ee[0]&&(je=0,Bt=Xt+1);Bt<=Xt;)if(Vt=Bt+Math.floor((Xt-Bt)/2),Vt===nt||Re>=Ee[Vt]&&Re<Ee[Vt+1]){je=Vt;break}else Ee[Vt]<Re?Bt=Vt+1:Xt=Vt-1;return je}}]),$e}(),de=Ne;function Le($e,tt,Ee){var Re=$e;if(tt+Ee<Re.length){for(;Ee--;)if((Re[++tt]&192)!==128)return!1;return!0}else return!1}function Q($e){for(var tt=[],Ee=$e,Re=0,je=$e.length;Re<je;){if(Ee[Re]<128){tt.push(String.fromCharCode(Ee[Re])),++Re;continue}else if(!(Ee[Re]<192)){if(Ee[Re]<224){if(Le(Ee,Re,1)){var nt=(Ee[Re]&31)<<6|Ee[Re+1]&63;if(nt>=128){tt.push(String.fromCharCode(nt&65535)),Re+=2;continue}}}else if(Ee[Re]<240){if(Le(Ee,Re,2)){var Vt=(Ee[Re]&15)<<12|(Ee[Re+1]&63)<<6|Ee[Re+2]&63;if(Vt>=2048&&(Vt&63488)!==55296){tt.push(String.fromCharCode(Vt&65535)),Re+=3;continue}}}else if(Ee[Re]<248&&Le(Ee,Re,3)){var Bt=(Ee[Re]&7)<<18|(Ee[Re+1]&63)<<12|(Ee[Re+2]&63)<<6|Ee[Re+3]&63;if(Bt>65536&&Bt<1114112){Bt-=65536,tt.push(String.fromCharCode(Bt>>>10|55296)),tt.push(String.fromCharCode(Bt&1023|56320)),Re+=4;continue}}}tt.push(String.fromCharCode(65533)),++Re}return tt.join("")}var ce=Q,Ke=function(){var $e=new ArrayBuffer(2);return new DataView($e).setInt16(0,256,!0),new Int16Array($e)[0]===256}(),ee=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"parseScriptData",value:function(Ee,Re,je){var nt={};try{var Vt=$e.parseValue(Ee,Re,je),Bt=$e.parseValue(Ee,Re+Vt.size,je-Vt.size);nt[Vt.data]=Bt.data}catch(Xt){c.e("AMF",Xt.toString())}return nt}},{key:"parseObject",value:function(Ee,Re,je){if(je<3)throw new s("Data not enough when parse ScriptDataObject");var nt=$e.parseString(Ee,Re,je),Vt=$e.parseValue(Ee,Re+nt.size,je-nt.size),Bt=Vt.objectEnd;return{data:{name:nt.data,value:Vt.data},size:nt.size+Vt.size,objectEnd:Bt}}},{key:"parseVariable",value:function(Ee,Re,je){return $e.parseObject(Ee,Re,je)}},{key:"parseString",value:function(Ee,Re,je){if(je<2)throw new s("Data not enough when parse String");var nt=new DataView(Ee,Re,je),Vt=nt.getUint16(0,!Ke),Bt;return Vt>0?Bt=ce(new Uint8Array(Ee,Re+2,Vt)):Bt="",{data:Bt,size:2+Vt}}},{key:"parseLongString",value:function(Ee,Re,je){if(je<4)throw new s("Data not enough when parse LongString");var nt=new DataView(Ee,Re,je),Vt=nt.getUint32(0,!Ke),Bt;return Vt>0?Bt=ce(new Uint8Array(Ee,Re+4,Vt)):Bt="",{data:Bt,size:4+Vt}}},{key:"parseDate",value:function(Ee,Re,je){if(je<10)throw new s("Data size invalid when parse Date");var nt=new DataView(Ee,Re,je),Vt=nt.getFloat64(0,!Ke),Bt=nt.getInt16(8,!Ke);return Vt+=Bt*60*1e3,{data:new Date(Vt),size:8+2}}},{key:"parseValue",value:function(Ee,Re,je){if(je<1)throw new s("Data not enough when parse Value");var nt=new DataView(Ee,Re,je),Vt=1,Bt=nt.getUint8(0),Xt,Rr=!1;try{switch(Bt){case 0:Xt=nt.getFloat64(1,!Ke),Vt+=8;break;case 1:{var Br=nt.getUint8(1);Xt=!!Br,Vt+=1;break}case 2:{var cn=$e.parseString(Ee,Re+1,je-1);Xt=cn.data,Vt+=cn.size;break}case 3:{Xt={};var Ut=0;for((nt.getUint32(je-4,!Ke)&16777215)===9&&(Ut=3);Vt<je-4;){var pt=$e.parseObject(Ee,Re+Vt,je-Vt-Ut);if(pt.objectEnd)break;Xt[pt.data.name]=pt.data.value,Vt+=pt.size}if(Vt<=je-3){var ut=nt.getUint32(Vt-1,!Ke)&16777215;ut===9&&(Vt+=3)}break}case 8:{Xt={},Vt+=4;var Jt=0;for((nt.getUint32(je-4,!Ke)&16777215)===9&&(Jt=3);Vt<je-8;){var Zt=$e.parseVariable(Ee,Re+Vt,je-Vt-Jt);if(Zt.objectEnd)break;Xt[Zt.data.name]=Zt.data.value,Vt+=Zt.size}if(Vt<=je-3){var At=nt.getUint32(Vt-1,!Ke)&16777215;At===9&&(Vt+=3)}break}case 9:Xt=void 0,Vt=1,Rr=!0;break;case 10:{Xt=[];var Pt=nt.getUint32(1,!Ke);Vt+=4;for(var vt=0;vt<Pt;vt++){var Ft=$e.parseValue(Ee,Re+Vt,je-Vt);Xt.push(Ft.data),Vt+=Ft.size}break}case 11:{var gr=$e.parseDate(Ee,Re+1,je-1);Xt=gr.data,Vt+=gr.size;break}case 12:{var or=$e.parseString(Ee,Re+1,je-1);Xt=or.data,Vt+=or.size;break}default:Vt=je,c.w("AMF","Unsupported AMF value type "+Bt)}}catch(ur){c.e("AMF",ur.toString())}return{data:Xt,size:Vt,objectEnd:Rr}}}]),$e}(),X=ee,G=function(){function $e(tt){Object(I.a)(this,$e),this.TAG="ExpGolomb",this._buffer=tt,this._buffer_index=0,this._total_bytes=tt.byteLength,this._total_bits=tt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(E.a)($e,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Ee=this._total_bytes-this._buffer_index;if(Ee<=0)throw new s("ExpGolomb: _fillCurrentWord() but no bytes available");var Re=Math.min(4,Ee),je=new Uint8Array(4);je.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Re)),this._current_word=new DataView(je.buffer).getUint32(0,!1),this._buffer_index+=Re,this._current_word_bits_left=Re*8}},{key:"readBits",value:function(Ee){if(Ee>32)throw new e("ExpGolomb: readBits() bits exceeded max 32bits!");if(Ee<=this._current_word_bits_left){var Re=this._current_word>>>32-Ee;return this._current_word<<=Ee,this._current_word_bits_left-=Ee,Re}var je=this._current_word_bits_left?this._current_word:0;je=je>>>32-this._current_word_bits_left;var nt=Ee-this._current_word_bits_left;this._fillCurrentWord();var Vt=Math.min(nt,this._current_word_bits_left),Bt=this._current_word>>>32-Vt;return this._current_word<<=Vt,this._current_word_bits_left-=Vt,je=je<<Vt|Bt,je}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Ee;for(Ee=0;Ee<this._current_word_bits_left;Ee++)if((this._current_word&2147483648>>>Ee)!==0)return this._current_word<<=Ee,this._current_word_bits_left-=Ee,Ee;return this._fillCurrentWord(),Ee+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Ee=this._skipLeadingZero();return this.readBits(Ee+1)-1}},{key:"readSEG",value:function(){var Ee=this.readUEG();return Ee&1?Ee+1>>>1:-1*(Ee>>>1)}}]),$e}(),Z=G,ve=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"_ebsp2rbsp",value:function(Ee){for(var Re=Ee,je=Re.byteLength,nt=new Uint8Array(je),Vt=0,Bt=0;Bt<je;Bt++){if(Bt>=2&&(Re[Bt]===3&&Re[Bt-1]===0&&Re[Bt-2]===0))continue;nt[Vt]=Re[Bt],Vt++}return new Uint8Array(nt.buffer,0,Vt)}},{key:"parseSPS",value:function(Ee){var Re=$e._ebsp2rbsp(Ee),je=new Z(Re);je.readByte();var nt=je.readByte();je.readByte();var Vt=je.readByte();je.readUEG();var Bt=$e.getProfileString(nt),Xt=$e.getLevelString(Vt),Rr=1,Br=420,cn=[0,420,422,444],Ut=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&(Rr=je.readUEG(),Rr===3&&je.readBits(1),Rr<=3&&(Br=cn[Rr]),Ut=je.readUEG()+8,je.readUEG(),je.readBits(1),je.readBool()))for(var pt=Rr!==3?8:12,ut=0;ut<pt;ut++)je.readBool()&&(ut<6?$e._skipScalingList(je,16):$e._skipScalingList(je,64));je.readUEG();var Jt=je.readUEG();if(Jt===0)je.readUEG();else if(Jt===1){je.readBits(1),je.readSEG(),je.readSEG();for(var Zt=je.readUEG(),At=0;At<Zt;At++)je.readSEG()}var Pt=je.readUEG();je.readBits(1);var vt=je.readUEG(),Ft=je.readUEG(),gr=je.readBits(1);gr===0&&je.readBits(1),je.readBits(1);var or=0,ur=0,Yr=0,Jr=0,Tn=je.readBool();Tn&&(or=je.readUEG(),ur=je.readUEG(),Yr=je.readUEG(),Jr=je.readUEG());var Dn=1,zn=1,qn=0,Ai=!0,Mi=0,Ye=0,Ce=je.readBool();if(Ce){if(je.readBool()){var ke=je.readByte(),Fe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ve=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];ke>0&&ke<16?(Dn=Fe[ke-1],zn=Ve[ke-1]):ke===255&&(Dn=je.readByte()<<8|je.readByte(),zn=je.readByte()<<8|je.readByte())}if(je.readBool()&&je.readBool(),je.readBool()&&(je.readBits(4),je.readBool()&&je.readBits(24)),je.readBool()&&(je.readUEG(),je.readUEG()),je.readBool()){var We=je.readBits(32),Ze=je.readBits(32);Ai=je.readBool(),Mi=Ze,Ye=We*2,qn=Mi/Ye}}var yt=1;(Dn!==1||zn!==1)&&(yt=Dn/zn);var lt=0,kt=0;if(Rr===0)lt=1,kt=2-gr;else{var wr=Rr===3?1:2,pr=Rr===1?2:1;lt=wr,kt=pr*(2-gr)}var _r=(vt+1)*16,Wt=(2-gr)*((Ft+1)*16);_r-=(or+ur)*lt,Wt-=(Yr+Jr)*kt;var un=Math.ceil(_r*yt);return je.destroy(),je=null,{profile_string:Bt,level_string:Xt,bit_depth:Ut,ref_frames:Pt,chroma_format:Br,chroma_format_string:$e.getChromaFormatString(Br),frame_rate:{fixed:Ai,fps:qn,fps_den:Ye,fps_num:Mi},sar_ratio:{width:Dn,height:zn},codec_size:{width:_r,height:Wt},present_size:{width:un,height:Wt}}}},{key:"_skipScalingList",value:function(Ee,Re){for(var je=8,nt=8,Vt=0,Bt=0;Bt<Re;Bt++)nt!==0&&(Vt=Ee.readSEG(),nt=(je+Vt+256)%256),je=nt===0?je:nt}},{key:"getProfileString",value:function(Ee){switch(Ee){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(Ee){return(Ee/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Ee){switch(Ee){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),$e}(),ue=ve,_e={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},xe=_e;function oe($e){return $e>>>8&255|($e&255)<<8}function fe($e){return($e&4278190080)>>>24|($e&16711680)>>>8|($e&65280)<<8|($e&255)<<24}function Te($e,tt){return $e[tt]<<24|$e[tt+1]<<16|$e[tt+2]<<8|$e[tt+3]}var ze=function(){function $e(tt,Ee){Object(I.a)(this,$e),this.TAG="FLVDemuxer",this._config=Ee,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=tt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=tt.hasAudioTrack,this._hasVideo=tt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new de,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 Re=new ArrayBuffer(2);return new DataView(Re).setInt16(0,256,!0),new Int16Array(Re)[0]===256}()}return Object(E.a)($e,[{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(Ee){return Ee.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Ee){this._onTrackMetadata=Ee}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Ee){this._onMediaInfo=Ee}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Ee){this._onMetaDataArrived=Ee}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Ee){this._onScriptDataArrived=Ee}},{key:"onError",get:function(){return this._onError},set:function(Ee){this._onError=Ee}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Ee){this._onDataAvailable=Ee}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Ee){this._timestampBase=Ee}},{key:"overridedDuration",get:function(){return this._duration},set:function(Ee){this._durationOverrided=!0,this._duration=Ee,this._mediaInfo.duration=Ee}},{key:"overridedHasAudio",set:function(Ee){this._hasAudioFlagOverrided=!0,this._hasAudio=Ee,this._mediaInfo.hasAudio=Ee}},{key:"overridedHasVideo",set:function(Ee){this._hasVideoFlagOverrided=!0,this._hasVideo=Ee,this._mediaInfo.hasVideo=Ee}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new de}},{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(Ee,Re){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new s("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var je=0,nt=this._littleEndian;if(Re===0)if(Ee.byteLength>13){var Vt=$e.probe(Ee);je=Vt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Re+je!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Bt=new DataView(Ee,je),Xt=Bt.getUint32(0,!nt);Xt!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),je+=4}for(;je<Ee.byteLength;){this._dispatch=!0;var Rr=new DataView(Ee,je);if(je+11+4>Ee.byteLength)break;var Br=Rr.getUint8(0),cn=Rr.getUint32(0,!nt)&16777215;if(je+11+cn+4>Ee.byteLength)break;if(Br!==8&&Br!==9&&Br!==18){c.w(this.TAG,"Unsupported tag type ".concat(Br,", skipped")),je+=11+cn+4;continue}var Ut=Rr.getUint8(4),pt=Rr.getUint8(5),ut=Rr.getUint8(6),Jt=Rr.getUint8(7),Zt=ut|pt<<8|Ut<<16|Jt<<24,At=Rr.getUint32(7,!nt)&16777215;At!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var Pt=je+11;switch(Br){case 8:this._parseAudioData(Ee,Pt,cn,Zt);break;case 9:this._parseVideoData(Ee,Pt,cn,Zt,Re+je);break;case 18:this._parseScriptData(Ee,Pt,cn);break}var vt=Rr.getUint32(11+cn,!nt);vt!==11+cn&&c.w(this.TAG,"Invalid PrevTagSize ".concat(vt)),je+=11+cn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),je}},{key:"_parseScriptData",value:function(Ee,Re,je){var nt=X.parseScriptData(Ee,Re,je);if(nt.hasOwnProperty("onMetaData")){if(nt.onMetaData==null||typeof nt.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.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 Bt=Math.floor(Vt.duration*this._timescale);this._duration=Bt,this._mediaInfo.duration=Bt}}else this._mediaInfo.duration=0;if(typeof Vt.framerate=="number"){var Xt=Math.floor(Vt.framerate*1e3);if(Xt>0){var Rr=Xt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Rr,this._referenceFrameRate.fps_num=Xt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Rr}}if(typeof Vt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Br=Vt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Br),Vt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Vt,c.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(Ee){for(var Re=[],je=[],nt=1;nt<Ee.times.length;nt++){var Vt=this._timestampBase+Math.floor(Ee.times[nt]*1e3);Re.push(Vt),je.push(Ee.filepositions[nt])}return{times:Re,filepositions:je}}},{key:"_parseAudioData",value:function(Ee,Re,je,nt){if(je<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var Vt=this._littleEndian,Bt=new DataView(Ee,Re,je),Xt=Bt.getUint8(0),Rr=Xt>>>4;if(Rr!==2&&Rr!==10){this._onError(xe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Rr);return}var Br=0,cn=(Xt&12)>>>2;if(cn>=0&&cn<=4)Br=this._flvSoundRateTable[cn];else{this._onError(xe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+cn);return}var Ut=(Xt&2)>>>1,pt=Xt&1,ut=this._audioMetadata,Jt=this._audioTrack;if(ut||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ut=this._audioMetadata={},ut.type="audio",ut.id=Jt.id,ut.timescale=this._timescale,ut.duration=this._duration,ut.audioSampleRate=Br,ut.channelCount=pt===0?1:2),Rr===10){var Zt=this._parseAACAudioData(Ee,Re+1,je-1);if(Zt==null)return;if(Zt.packetType===0){ut.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var At=Zt.data;ut.audioSampleRate=At.samplingRate,ut.channelCount=At.channelCount,ut.codec=At.codec,ut.originalCodec=At.originalCodec,ut.config=At.config,ut.refSampleDuration=1024/ut.audioSampleRate*ut.timescale,c.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",ut);var Pt=this._mediaInfo;Pt.audioCodec=ut.originalCodec,Pt.audioSampleRate=ut.audioSampleRate,Pt.audioChannelCount=ut.channelCount,Pt.hasVideo?Pt.videoCodec!=null&&(Pt.mimeType='video/x-flv; codecs="'+Pt.videoCodec+","+Pt.audioCodec+'"'):Pt.mimeType='video/x-flv; codecs="'+Pt.audioCodec+'"',Pt.isComplete()&&this._onMediaInfo(Pt)}else if(Zt.packetType===1){var vt=this._timestampBase+nt,Ft={unit:Zt.data,length:Zt.data.byteLength,dts:vt,pts:vt};Jt.samples.push(Ft),Jt.length+=Zt.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Zt.packetType))}else if(Rr===2){if(!ut.codec){var gr=this._parseMP3AudioData(Ee,Re+1,je-1,!0);if(gr==null)return;ut.audioSampleRate=gr.samplingRate,ut.channelCount=gr.channelCount,ut.codec=gr.codec,ut.originalCodec=gr.originalCodec,ut.refSampleDuration=1152/ut.audioSampleRate*ut.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ut);var or=this._mediaInfo;or.audioCodec=ut.codec,or.audioSampleRate=ut.audioSampleRate,or.audioChannelCount=ut.channelCount,or.audioDataRate=gr.bitRate,or.hasVideo?or.videoCodec!=null&&(or.mimeType='video/x-flv; codecs="'+or.videoCodec+","+or.audioCodec+'"'):or.mimeType='video/x-flv; codecs="'+or.audioCodec+'"',or.isComplete()&&this._onMediaInfo(or)}var ur=this._parseMP3AudioData(Ee,Re+1,je-1,!1);if(ur==null)return;var Yr=this._timestampBase+nt,Jr={unit:ur,length:ur.byteLength,dts:Yr,pts:Yr};Jt.samples.push(Jr),Jt.length+=ur.length}}},{key:"_parseAACAudioData",value:function(Ee,Re,je){if(je<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var nt={},Vt=new Uint8Array(Ee,Re,je);return nt.packetType=Vt[0],Vt[0]===0?nt.data=this._parseAACAudioSpecificConfig(Ee,Re+1,je-1):nt.data=Vt.subarray(1),nt}},{key:"_parseAACAudioSpecificConfig",value:function(Ee,Re,je){var nt=new Uint8Array(Ee,Re,je),Vt=null,Bt=0,Xt=0,Rr=null,Br=0,cn=null;if(Bt=Xt=nt[0]>>>3,Br=(nt[0]&7)<<1|nt[1]>>>7,Br<0||Br>=this._mpegSamplingRates.length){this._onError(xe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Ut=this._mpegSamplingRates[Br],pt=(nt[1]&120)>>>3;if(pt<0||pt>=8){this._onError(xe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Bt===5&&(cn=(nt[1]&7)<<1|nt[2]>>>7,Rr=(nt[2]&124)>>>2);var ut=self.navigator.userAgent.toLowerCase();return ut.indexOf("firefox")!==-1?Br>=6?(Bt=5,Vt=new Array(4),cn=Br-3):(Bt=2,Vt=new Array(2),cn=Br):ut.indexOf("android")!==-1?(Bt=2,Vt=new Array(2),cn=Br):(Bt=5,cn=Br,Vt=new Array(4),Br>=6?cn=Br-3:pt===1&&(Bt=2,Vt=new Array(2),cn=Br)),Vt[0]=Bt<<3,Vt[0]|=(Br&15)>>>1,Vt[1]=(Br&15)<<7,Vt[1]|=(pt&15)<<3,Bt===5&&(Vt[1]|=(cn&15)>>>1,Vt[2]=(cn&1)<<7,Vt[2]|=2<<2,Vt[3]=0),{config:Vt,samplingRate:Ut,channelCount:pt,codec:"mp4a.40."+Bt,originalCodec:"mp4a.40."+Xt}}},{key:"_parseMP3AudioData",value:function(Ee,Re,je,nt){if(je<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var Vt=this._littleEndian,Bt=new Uint8Array(Ee,Re,je),Xt=null;if(nt){if(Bt[0]!==255)return;var Rr=Bt[1]>>>3&3,Br=(Bt[1]&6)>>1,cn=(Bt[2]&240)>>>4,Ut=(Bt[2]&12)>>>2,pt=Bt[3]>>>6&3,ut=pt!==3?2:1,Jt=0,Zt=0,At=34,Pt="mp3";switch(Rr){case 0:Jt=this._mpegAudioV25SampleRateTable[Ut];break;case 2:Jt=this._mpegAudioV20SampleRateTable[Ut];break;case 3:Jt=this._mpegAudioV10SampleRateTable[Ut];break}switch(Br){case 1:At=34,cn<this._mpegAudioL3BitRateTable.length&&(Zt=this._mpegAudioL3BitRateTable[cn]);break;case 2:At=33,cn<this._mpegAudioL2BitRateTable.length&&(Zt=this._mpegAudioL2BitRateTable[cn]);break;case 3:At=32,cn<this._mpegAudioL1BitRateTable.length&&(Zt=this._mpegAudioL1BitRateTable[cn]);break}Xt={bitRate:Zt,samplingRate:Jt,channelCount:ut,codec:Pt,originalCodec:Pt}}else Xt=Bt;return Xt}},{key:"_parseVideoData",value:function(Ee,Re,je,nt,Vt){if(je<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Bt=new Uint8Array(Ee,Re,je)[0],Xt=(Bt&240)>>>4,Rr=Bt&15;if(Rr!==7){this._onError(xe.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Rr));return}this._parseAVCVideoPacket(Ee,Re+1,je-1,nt,Vt,Xt)}},{key:"_parseAVCVideoPacket",value:function(Ee,Re,je,nt,Vt,Bt){if(je<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Xt=this._littleEndian,Rr=new DataView(Ee,Re,je),Br=Rr.getUint8(0),cn=Rr.getUint32(0,!Xt)&16777215,Ut=cn<<8>>8;if(Br===0)this._parseAVCDecoderConfigurationRecord(Ee,Re+4,je-4);else if(Br===1)this._parseAVCVideoData(Ee,Re+4,je-4,nt,Vt,Bt,Ut);else if(!(Br===2)){this._onError(xe.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Br));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Ee,Re,je){if(je<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var nt=this._videoMetadata,Vt=this._videoTrack,Bt=this._littleEndian,Xt=new DataView(Ee,Re,je);nt?typeof nt.avcc!="undefined"&&c.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 Rr=Xt.getUint8(0),Br=Xt.getUint8(1),cn=Xt.getUint8(2),Ut=Xt.getUint8(3);if(Rr!==1||Br===0){this._onError(xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Xt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(xe.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var pt=Xt.getUint8(5)&31;if(pt===0){this._onError(xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else pt>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(pt));for(var ut=6,Jt=0;Jt<pt;Jt++){var Zt=Xt.getUint16(ut,!Bt);if(ut+=2,Zt===0)continue;var At=new Uint8Array(Ee,Re+ut,Zt);ut+=Zt;var Pt=ue.parseSPS(At);if(Jt!==0)continue;nt.codecWidth=Pt.codec_size.width,nt.codecHeight=Pt.codec_size.height,nt.presentWidth=Pt.present_size.width,nt.presentHeight=Pt.present_size.height,nt.profile=Pt.profile_string,nt.level=Pt.level_string,nt.bitDepth=Pt.bit_depth,nt.chromaFormat=Pt.chroma_format,nt.sarRatio=Pt.sar_ratio,nt.frameRate=Pt.frame_rate,(Pt.frame_rate.fixed===!1||Pt.frame_rate.fps_num===0||Pt.frame_rate.fps_den===0)&&(nt.frameRate=this._referenceFrameRate);var vt=nt.frameRate.fps_den,Ft=nt.frameRate.fps_num;nt.refSampleDuration=nt.timescale*(vt/Ft);for(var gr=At.subarray(1,4),or="avc1.",ur=0;ur<3;ur++){var Yr=gr[ur].toString(16);Yr.length<2&&(Yr="0"+Yr),or+=Yr}nt.codec=or;var Jr=this._mediaInfo;Jr.width=nt.codecWidth,Jr.height=nt.codecHeight,Jr.fps=nt.frameRate.fps,Jr.profile=nt.profile,Jr.level=nt.level,Jr.refFrames=Pt.ref_frames,Jr.chromaFormat=Pt.chroma_format_string,Jr.sarNum=nt.sarRatio.width,Jr.sarDen=nt.sarRatio.height,Jr.videoCodec=or,Jr.hasAudio?Jr.audioCodec!=null&&(Jr.mimeType='video/x-flv; codecs="'+Jr.videoCodec+","+Jr.audioCodec+'"'):Jr.mimeType='video/x-flv; codecs="'+Jr.videoCodec+'"',Jr.isComplete()&&this._onMediaInfo(Jr)}var Tn=Xt.getUint8(ut);if(Tn===0){this._onError(xe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Tn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Tn));ut++;for(var Dn=0;Dn<Tn;Dn++){var zn=Xt.getUint16(ut,!Bt);if(ut+=2,zn===0)continue;ut+=zn}nt.avcc=new Uint8Array(je),nt.avcc.set(new Uint8Array(Ee,Re,je),0),c.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(Ee,Re,je,nt,Vt,Bt,Xt){for(var Rr=this._littleEndian,Br=new DataView(Ee,Re,je),cn=[],Ut=0,pt=0,ut=this._naluLengthSize,Jt=this._timestampBase+nt,Zt=Bt===1;pt<je;){if(pt+4>=je){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(Jt,", offset = ").concat(pt,", dataSize = ").concat(je));break}var At=Br.getUint32(pt,!Rr);if(ut===3&&(At>>>=8),At>je-ut){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(Jt,", NaluSize > DataSize!"));return}var Pt=Br.getUint8(pt+ut)&31;Pt===5&&(Zt=!0);var vt=new Uint8Array(Ee,Re+pt,ut+At),Ft={type:Pt,data:vt};cn.push(Ft),Ut+=vt.byteLength,pt+=ut+At}if(cn.length){var gr=this._videoTrack,or={units:cn,length:Ut,isKeyframe:Zt,dts:Jt,cts:Xt,pts:Jt+Xt};Zt&&(or.fileposition=Vt),gr.samples.push(or),gr.length+=Ut}}}],[{key:"probe",value:function(Ee){var Re=new Uint8Array(Ee),je={match:!1};if(Re[0]!==70||Re[1]!==76||Re[2]!==86||Re[3]!==1)return je;var nt=(Re[4]&4)>>>2!==0,Vt=(Re[4]&1)!==0,Bt=Te(Re,5);return Bt<9?je:{match:!0,consumed:Bt,dataOffset:Bt,hasAudioTrack:nt,hasVideoTrack:Vt}}}]),$e}(),it=ze,et=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"init",value:function(){$e.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 Ee in $e.types)$e.types.hasOwnProperty(Ee)&&($e.types[Ee]=[Ee.charCodeAt(0),Ee.charCodeAt(1),Ee.charCodeAt(2),Ee.charCodeAt(3)]);var Re=$e.constants={};Re.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Re.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Re.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Re.STSC=Re.STCO=Re.STTS,Re.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Re.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]),Re.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]),Re.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Re.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Re.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Ee){for(var Re=8,je=null,nt=Array.prototype.slice.call(arguments,1),Vt=nt.length,Bt=0;Bt<Vt;Bt++)Re+=nt[Bt].byteLength;je=new Uint8Array(Re),je[0]=Re>>>24&255,je[1]=Re>>>16&255,je[2]=Re>>>8&255,je[3]=Re&255,je.set(Ee,4);for(var Xt=8,Rr=0;Rr<Vt;Rr++)je.set(nt[Rr],Xt),Xt+=nt[Rr].byteLength;return je}},{key:"generateInitSegment",value:function(Ee){var Re=$e.box($e.types.ftyp,$e.constants.FTYP),je=$e.moov(Ee),nt=new Uint8Array(Re.byteLength+je.byteLength);return nt.set(Re,0),nt.set(je,Re.byteLength),nt}},{key:"moov",value:function(Ee){var Re=$e.mvhd(Ee.timescale,Ee.duration),je=$e.trak(Ee),nt=$e.mvex(Ee);return $e.box($e.types.moov,Re,je,nt)}},{key:"mvhd",value:function(Ee,Re){return $e.box($e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&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(Ee){return $e.box($e.types.trak,$e.tkhd(Ee),$e.mdia(Ee))}},{key:"tkhd",value:function(Ee){var Re=Ee.id,je=Ee.duration,nt=Ee.presentWidth,Vt=Ee.presentHeight;return $e.box($e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&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(Ee){return $e.box($e.types.mdia,$e.mdhd(Ee),$e.hdlr(Ee),$e.minf(Ee))}},{key:"mdhd",value:function(Ee){var Re=Ee.timescale,je=Ee.duration;return $e.box($e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,je>>>24&255,je>>>16&255,je>>>8&255,je&255,85,196,0,0]))}},{key:"hdlr",value:function(Ee){var Re=null;return Ee.type==="audio"?Re=$e.constants.HDLR_AUDIO:Re=$e.constants.HDLR_VIDEO,$e.box($e.types.hdlr,Re)}},{key:"minf",value:function(Ee){var Re=null;return Ee.type==="audio"?Re=$e.box($e.types.smhd,$e.constants.SMHD):Re=$e.box($e.types.vmhd,$e.constants.VMHD),$e.box($e.types.minf,Re,$e.dinf(),$e.stbl(Ee))}},{key:"dinf",value:function(){var Ee=$e.box($e.types.dinf,$e.box($e.types.dref,$e.constants.DREF));return Ee}},{key:"stbl",value:function(Ee){var Re=$e.box($e.types.stbl,$e.stsd(Ee),$e.box($e.types.stts,$e.constants.STTS),$e.box($e.types.stsc,$e.constants.STSC),$e.box($e.types.stsz,$e.constants.STSZ),$e.box($e.types.stco,$e.constants.STCO));return Re}},{key:"stsd",value:function(Ee){return Ee.type==="audio"?Ee.codec==="mp3"?$e.box($e.types.stsd,$e.constants.STSD_PREFIX,$e.mp3(Ee)):$e.box($e.types.stsd,$e.constants.STSD_PREFIX,$e.mp4a(Ee)):$e.box($e.types.stsd,$e.constants.STSD_PREFIX,$e.avc1(Ee))}},{key:"mp3",value:function(Ee){var Re=Ee.channelCount,je=Ee.audioSampleRate,nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Re,0,16,0,0,0,0,je>>>8&255,je&255,0,0]);return $e.box($e.types[".mp3"],nt)}},{key:"mp4a",value:function(Ee){var Re=Ee.channelCount,je=Ee.audioSampleRate,nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Re,0,16,0,0,0,0,je>>>8&255,je&255,0,0]);return $e.box($e.types.mp4a,nt,$e.esds(Ee))}},{key:"esds",value:function(Ee){var Re=Ee.config||[],je=Re.length,nt=new Uint8Array([0,0,0,0,3,23+je,0,1,0,4,15+je,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([je]).concat(Re).concat([6,1,2]));return $e.box($e.types.esds,nt)}},{key:"avc1",value:function(Ee){var Re=Ee.avcc,je=Ee.codecWidth,nt=Ee.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,je>>>8&255,je&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 $e.box($e.types.avc1,Vt,$e.box($e.types.avcC,Re))}},{key:"mvex",value:function(Ee){return $e.box($e.types.mvex,$e.trex(Ee))}},{key:"trex",value:function(Ee){var Re=Ee.id,je=new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return $e.box($e.types.trex,je)}},{key:"moof",value:function(Ee,Re){return $e.box($e.types.moof,$e.mfhd(Ee.sequenceNumber),$e.traf(Ee,Re))}},{key:"mfhd",value:function(Ee){var Re=new Uint8Array([0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255]);return $e.box($e.types.mfhd,Re)}},{key:"traf",value:function(Ee,Re){var je=Ee.id,nt=$e.box($e.types.tfhd,new Uint8Array([0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255])),Vt=$e.box($e.types.tfdt,new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255])),Bt=$e.sdtp(Ee),Xt=$e.trun(Ee,Bt.byteLength+16+16+8+16+8+8);return $e.box($e.types.traf,nt,Vt,Xt,Bt)}},{key:"sdtp",value:function(Ee){for(var Re=Ee.samples||[],je=Re.length,nt=new Uint8Array(4+je),Vt=0;Vt<je;Vt++){var Bt=Re[Vt].flags;nt[Vt+4]=Bt.isLeading<<6|Bt.dependsOn<<4|Bt.isDependedOn<<2|Bt.hasRedundancy}return $e.box($e.types.sdtp,nt)}},{key:"trun",value:function(Ee,Re){var je=Ee.samples||[],nt=je.length,Vt=12+16*nt,Bt=new Uint8Array(Vt);Re+=8+Vt,Bt.set([0,0,15,1,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255],0);for(var Xt=0;Xt<nt;Xt++){var Rr=je[Xt].duration,Br=je[Xt].size,cn=je[Xt].flags,Ut=je[Xt].cts;Bt.set([Rr>>>24&255,Rr>>>16&255,Rr>>>8&255,Rr&255,Br>>>24&255,Br>>>16&255,Br>>>8&255,Br&255,cn.isLeading<<2|cn.dependsOn,cn.isDependedOn<<6|cn.hasRedundancy<<4|cn.isNonSync,0,0,Ut>>>24&255,Ut>>>16&255,Ut>>>8&255,Ut&255],12+16*Xt)}return $e.box($e.types.trun,Bt)}},{key:"mdat",value:function(Ee){return $e.box($e.types.mdat,Ee)}}]),$e}();et.init();var Oe=et,gt=function(){function $e(){Object(I.a)(this,$e)}return Object(E.a)($e,null,[{key:"getSilentFrame",value:function(Ee,Re){if(Ee==="mp4a.40.2"){if(Re===1)return new Uint8Array([0,200,0,128,35,128]);if(Re===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Re===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Re===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Re===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(Re===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(Re===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(Re===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(Re===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}}]),$e}(),Ge=gt,wt=function $e(tt,Ee,Re,je,nt){Object(I.a)(this,$e),this.dts=tt,this.pts=Ee,this.duration=Re,this.originalDts=je,this.isSyncPoint=nt,this.fileposition=null},xt=function(){function $e(){Object(I.a)(this,$e),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(E.a)($e,[{key:"appendSyncPoint",value:function(Ee){Ee.isSyncPoint=!0,this.syncPoints.push(Ee)}}]),$e}(),Ct=function(){function $e(){Object(I.a)(this,$e),this._list=[]}return Object(E.a)($e,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Ee){var Re=this._list;if(Ee.length===0)return;Re.length>0&&Ee[0].originalDts<Re[Re.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Re,Ee)}},{key:"getLastSyncPointBeforeDts",value:function(Ee){if(this._list.length==0)return null;var Re=this._list,je=0,nt=Re.length-1,Vt=0,Bt=0,Xt=nt;for(Ee<Re[0].dts&&(je=0,Bt=Xt+1);Bt<=Xt;)if(Vt=Bt+Math.floor((Xt-Bt)/2),Vt===nt||Ee>=Re[Vt].dts&&Ee<Re[Vt+1].dts){je=Vt;break}else Re[Vt].dts<Ee?Bt=Vt+1:Xt=Vt-1;return this._list[je]}}]),$e}(),Dt=function(){function $e(tt){Object(I.a)(this,$e),this._type=tt,this._list=[],this._lastAppendLocation=-1}return Object(E.a)($e,[{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(Ee){var Re=this._list;if(Re.length===0)return-2;var je=Re.length-1,nt=0,Vt=0,Bt=je,Xt=0;if(Ee<Re[0].originalBeginDts)return Xt=-1,Xt;for(;Vt<=Bt;)if(nt=Vt+Math.floor((Bt-Vt)/2),nt===je||Ee>Re[nt].lastSample.originalDts&&Ee<Re[nt+1].originalBeginDts){Xt=nt;break}else Re[nt].originalBeginDts<Ee?Vt=nt+1:Bt=nt-1;return Xt}},{key:"_searchNearestSegmentAfter",value:function(Ee){return this._searchNearestSegmentBefore(Ee)+1}},{key:"append",value:function(Ee){var Re=this._list,je=Ee,nt=this._lastAppendLocation,Vt=0;nt!==-1&&nt<Re.length&&je.originalBeginDts>=Re[nt].lastSample.originalDts&&(nt===Re.length-1||nt<Re.length-1&&je.originalBeginDts<Re[nt+1].originalBeginDts)?Vt=nt+1:Re.length>0&&(Vt=this._searchNearestSegmentBefore(je.originalBeginDts)+1),this._lastAppendLocation=Vt,this._list.splice(Vt,0,je)}},{key:"getLastSegmentBefore",value:function(Ee){var Re=this._searchNearestSegmentBefore(Ee);return Re>=0?this._list[Re]:null}},{key:"getLastSampleBefore",value:function(Ee){var Re=this.getLastSegmentBefore(Ee);return Re!=null?Re.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Ee){for(var Re=this._searchNearestSegmentBefore(Ee),je=this._list[Re].syncPoints;je.length===0&&Re>0;)Re--,je=this._list[Re].syncPoints;return je.length>0?je[je.length-1]:null}}]),$e}(),Ht=function(){function $e(tt){Object(I.a)(this,$e),this.TAG="MP4Remuxer",this._config=tt,this._isLive=tt.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 Dt("audio"),this._videoSegmentInfoList=new Dt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661)),this._fillSilentAfterSeek=x.msedge||x.msie,this._mp3UseMpegAudio=!x.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(E.a)($e,[{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(Ee){return Ee.onDataAvailable=this.remux.bind(this),Ee.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Ee){this._onInitSegment=Ee}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Ee){this._onMediaSegment=Ee}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Ee){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Ee,Re){if(!this._onMediaSegment)throw new s("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Ee,Re),this._remuxVideo(Re),this._remuxAudio(Ee)}},{key:"_onTrackMetadataReceived",value:function(Ee,Re){var je=null,nt="mp4",Vt=Re.codec;if(Ee==="audio")this._audioMeta=Re,Re.codec==="mp3"&&this._mp3UseMpegAudio?(nt="mpeg",Vt="",je=new Uint8Array):je=Oe.generateInitSegment(Re);else if(Ee==="video")this._videoMeta=Re,je=Oe.generateInitSegment(Re);else return;if(!this._onInitSegment)throw new s("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Ee,{type:Ee,data:je.buffer,codec:Vt,container:"".concat(Ee,"/").concat(nt),mediaDuration:Re.duration})}},{key:"_calculateDtsBase",value:function(Ee,Re){if(this._dtsBaseInited)return;Ee.samples&&Ee.samples.length&&(this._audioDtsBase=Ee.samples[0].dts),Re.samples&&Re.samples.length&&(this._videoDtsBase=Re.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Ee=this._videoStashedLastSample,Re=this._audioStashedLastSample,je={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Ee!=null&&(je.samples.push(Ee),je.length=Ee.length);var nt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Re!=null&&(nt.samples.push(Re),nt.length=Re.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(je,!0),this._remuxAudio(nt,!0)}},{key:"_remuxAudio",value:function(Ee,Re){if(this._audioMeta==null)return;var je=Ee,nt=je.samples,Vt=void 0,Bt=-1,Xt=-1,Rr=-1,Br=this._audioMeta.refSampleDuration,cn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ut=this._dtsBaseInited&&this._audioNextDts===void 0,pt=!1;if(!nt||nt.length===0)return;if(nt.length===1&&!Re)return;var ut=0,Jt=null,Zt=0;cn?(ut=0,Zt=je.length):(ut=8,Zt=8+je.length);var At=null;if(nt.length>1&&(At=nt.pop(),Zt-=At.length),this._audioStashedLastSample!=null){var Pt=this._audioStashedLastSample;this._audioStashedLastSample=null,nt.unshift(Pt),Zt+=Pt.length}At!=null&&(this._audioStashedLastSample=At);var vt=nt[0].dts-this._dtsBase;if(this._audioNextDts)Vt=vt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Vt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(pt=!0));else{var Ft=this._audioSegmentInfoList.getLastSampleBefore(vt);if(Ft!=null){var gr=vt-(Ft.originalDts+Ft.duration);gr<=3&&(gr=0);var or=Ft.dts+Ft.duration+gr;Vt=vt-or}else Vt=0}if(pt){var ur=vt-Vt,Yr=this._videoSegmentInfoList.getLastSegmentBefore(vt);if(Yr!=null&&Yr.beginDts<ur){var Jr=Ge.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Jr){var Tn=Yr.beginDts,Dn=ur-Yr.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Tn,", duration: ").concat(Dn)),nt.unshift({unit:Jr,dts:Tn,pts:Tn}),Zt+=Jr.byteLength}}else pt=!1}for(var zn=[],qn=0;qn<nt.length;qn++){var Ai=nt[qn],Mi=Ai.unit,Ye=Ai.dts-this._dtsBase,Ce=Ye-Vt;Bt===-1&&(Bt=Ce);var ke=0;if(qn!==nt.length-1){var Fe=nt[qn+1].dts-this._dtsBase-Vt;ke=Fe-Ce}else if(At!=null){var Ve=At.dts-this._dtsBase-Vt;ke=Ve-Ce}else zn.length>=1?ke=zn[zn.length-1].duration:ke=Math.floor(Br);var We=!1,Ze=null;if(ke>Br*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){We=!0;var yt=Math.abs(ke-Br),lt=Math.ceil(yt/Br),kt=Ce+Br;c.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(Ce+ke," ms, expected: ").concat(Ce+Math.round(Br)," ms, ")+"delta: ".concat(Math.round(yt)," ms, generate: ").concat(lt," frames"));var wr=Ge.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);wr==null&&(c.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),wr=Mi),Ze=[];for(var pr=0;pr<lt;pr++){var _r=Math.round(kt);if(Ze.length>0){var Wt=Ze[Ze.length-1];Wt.duration=_r-Wt.dts}var un={dts:_r,pts:_r,cts:0,unit:wr,size:wr.byteLength,duration:0,originalDts:Ye,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ze.push(un),Zt+=un.size,kt+=Br}var ir=Ze[Ze.length-1];ir.duration=Ce+ke-ir.dts,ke=Math.round(Br)}zn.push({dts:Ce,pts:Ce,cts:0,unit:Ai.unit,size:Ai.unit.byteLength,duration:ke,originalDts:Ye,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),We&&zn.push.apply(zn,Ze)}cn?Jt=new Uint8Array(Zt):(Jt=new Uint8Array(Zt),Jt[0]=Zt>>>24&255,Jt[1]=Zt>>>16&255,Jt[2]=Zt>>>8&255,Jt[3]=Zt&255,Jt.set(Oe.types.mdat,4));for(var Gr=0;Gr<zn.length;Gr++){var kr=zn[Gr].unit;Jt.set(kr,ut),ut+=kr.byteLength}var yr=zn[zn.length-1];Xt=yr.dts+yr.duration,this._audioNextDts=Xt;var En=new xt;En.beginDts=Bt,En.endDts=Xt,En.beginPts=Bt,En.endPts=Xt,En.originalBeginDts=zn[0].originalDts,En.originalEndDts=yr.originalDts+yr.duration,En.firstSample=new wt(zn[0].dts,zn[0].pts,zn[0].duration,zn[0].originalDts,!1),En.lastSample=new wt(yr.dts,yr.pts,yr.duration,yr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(En),je.samples=zn,je.sequenceNumber++;var kn=null;cn?kn=new Uint8Array:kn=Oe.moof(je,Bt),je.samples=[],je.length=0;var ii={type:"audio",data:this._mergeBoxes(kn,Jt).buffer,sampleCount:zn.length,info:En};cn&&Ut&&(ii.timestampOffset=Bt),this._onMediaSegment("audio",ii)}},{key:"_remuxVideo",value:function(Ee,Re){if(this._videoMeta==null)return;var je=Ee,nt=je.samples,Vt=void 0,Bt=-1,Xt=-1,Rr=-1,Br=-1;if(!nt||nt.length===0)return;if(nt.length===1&&!Re)return;var cn=8,Ut=null,pt=8+Ee.length,ut=null;if(nt.length>1&&(ut=nt.pop(),pt-=ut.length),this._videoStashedLastSample!=null){var Jt=this._videoStashedLastSample;this._videoStashedLastSample=null,nt.unshift(Jt),pt+=Jt.length}ut!=null&&(this._videoStashedLastSample=ut);var Zt=nt[0].dts-this._dtsBase;if(this._videoNextDts)Vt=Zt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Vt=0;else{var At=this._videoSegmentInfoList.getLastSampleBefore(Zt);if(At!=null){var Pt=Zt-(At.originalDts+At.duration);Pt<=3&&(Pt=0);var vt=At.dts+At.duration+Pt;Vt=Zt-vt}else Vt=0}for(var Ft=new xt,gr=[],or=0;or<nt.length;or++){var ur=nt[or],Yr=ur.dts-this._dtsBase,Jr=ur.isKeyframe,Tn=Yr-Vt,Dn=ur.cts,zn=Tn+Dn;Bt===-1&&(Bt=Tn,Rr=zn);var qn=0;if(or!==nt.length-1){var Ai=nt[or+1].dts-this._dtsBase-Vt;qn=Ai-Tn}else if(ut!=null){var Mi=ut.dts-this._dtsBase-Vt;qn=Mi-Tn}else gr.length>=1?qn=gr[gr.length-1].duration:qn=Math.floor(this._videoMeta.refSampleDuration);if(Jr){var Ye=new wt(Tn,zn,qn,ur.dts,!0);Ye.fileposition=ur.fileposition,Ft.appendSyncPoint(Ye)}gr.push({dts:Tn,pts:zn,cts:Dn,units:ur.units,size:ur.length,isKeyframe:Jr,duration:qn,originalDts:Yr,flags:{isLeading:0,dependsOn:Jr?2:1,isDependedOn:Jr?1:0,hasRedundancy:0,isNonSync:Jr?0:1}})}Ut=new Uint8Array(pt),Ut[0]=pt>>>24&255,Ut[1]=pt>>>16&255,Ut[2]=pt>>>8&255,Ut[3]=pt&255,Ut.set(Oe.types.mdat,4);for(var Ce=0;Ce<gr.length;Ce++)for(var ke=gr[Ce].units;ke.length;){var Fe=ke.shift(),Ve=Fe.data;Ut.set(Ve,cn),cn+=Ve.byteLength}var We=gr[gr.length-1];if(Xt=We.dts+We.duration,Br=We.pts+We.duration,this._videoNextDts=Xt,Ft.beginDts=Bt,Ft.endDts=Xt,Ft.beginPts=Rr,Ft.endPts=Br,Ft.originalBeginDts=gr[0].originalDts,Ft.originalEndDts=We.originalDts+We.duration,Ft.firstSample=new wt(gr[0].dts,gr[0].pts,gr[0].duration,gr[0].originalDts,gr[0].isKeyframe),Ft.lastSample=new wt(We.dts,We.pts,We.duration,We.originalDts,We.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ft),je.samples=gr,je.sequenceNumber++,this._forceFirstIDR){var Ze=gr[0].flags;Ze.dependsOn=2,Ze.isNonSync=0}var yt=Oe.moof(je,Bt);je.samples=[],je.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(yt,Ut).buffer,sampleCount:gr.length,info:Ft})}},{key:"_mergeBoxes",value:function(Ee,Re){var je=new Uint8Array(Ee.byteLength+Re.byteLength);return je.set(Ee,0),je.set(Re,Ee.byteLength),je}}]),$e}(),Je=Ht,ye={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"},ie=ye,bt=function(){function $e(tt,Ee){Object(I.a)(this,$e),this.TAG="TransmuxingController",this._emitter=new m.a,this._config=Ee,tt.segments||(tt.segments=[{duration:tt.duration,filesize:tt.filesize,url:tt.url}]),typeof tt.cors!="boolean"&&(tt.cors=!0),typeof tt.withCredentials!="boolean"&&(tt.withCredentials=!1),this._mediaDataSource=tt,this._currentSegmentIndex=0;var Re=0;this._mediaDataSource.segments.forEach(function(je){je.timestampBase=Re,Re+=je.duration,je.cors=tt.cors,je.withCredentials=tt.withCredentials,Ee.referrerPolicy&&(je.referrerPolicy=Ee.referrerPolicy)}),!isNaN(Re)&&this._mediaDataSource.duration!==Re&&(this._mediaDataSource.duration=Re),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(E.a)($e,[{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(Ee,Re){this._emitter.addListener(Ee,Re)}},{key:"off",value:function(Ee,Re){this._emitter.removeListener(Ee,Re)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Ee,Re){this._currentSegmentIndex=Ee;var je=this._mediaDataSource.segments[Ee],nt=this._ioctl=new z(je,this._config,Ee);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),Re?this._demuxer.bindDataSource(this._ioctl):nt.onDataArrival=this._onInitChunkArrival.bind(this),nt.open(Re)}},{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(Ee){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Re=this._searchSegmentIndexContains(Ee);if(Re===this._currentSegmentIndex){var je=this._mediaInfo.segments[Re];if(je==null)this._pendingSeekTime=Ee;else{var nt=je.getNearestKeyframe(Ee);this._remuxer.seek(nt.milliseconds),this._ioctl.seek(nt.fileposition),this._pendingResolveSeekPoint=nt.milliseconds}}else{var Vt=this._mediaInfo.segments[Re];if(Vt==null)this._pendingSeekTime=Ee,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Re);else{var Bt=Vt.getNearestKeyframe(Ee);this._internalAbort(),this._remuxer.seek(Ee),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Re].timestampBase,this._loadSegment(Re,Bt.fileposition),this._pendingResolveSeekPoint=Bt.milliseconds,this._reportSegmentMediaInfo(Re)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Ee){for(var Re=this._mediaDataSource.segments,je=Re.length-1,nt=0;nt<Re.length;nt++)if(Ee<Re[nt].timestampBase){je=nt-1;break}return je}},{key:"_onInitChunkArrival",value:function(Ee,Re){var je=this,nt=null,Vt=0;if(Re>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Vt=this._demuxer.parseChunks(Ee,Re);else if((nt=it.probe(Ee)).match){this._demuxer=new it(nt,this._config),this._remuxer||(this._remuxer=new Je(this._config));var Bt=this._mediaDataSource;Bt.duration!=null&&!isNaN(Bt.duration)&&(this._demuxer.overridedDuration=Bt.duration),typeof Bt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Bt.hasAudio),typeof Bt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Bt.hasVideo),this._demuxer.timestampBase=Bt.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(Ee,Re)}else nt=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){je._internalAbort()}),this._emitter.emit(ie.DEMUX_ERROR,xe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Vt=0;return Vt}},{key:"_onMediaInfo",value:function(Ee){var Re=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Ee),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,de.prototype));var je=Object.assign({},Ee);Object.setPrototypeOf(je,de.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=je,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var nt=Re._pendingSeekTime;Re._pendingSeekTime=null,Re.seek(nt)})}},{key:"_onMetaDataArrived",value:function(Ee){this._emitter.emit(ie.METADATA_ARRIVED,Ee)}},{key:"_onScriptDataArrived",value:function(Ee){this._emitter.emit(ie.SCRIPTDATA_ARRIVED,Ee)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Ee){var Re=Ee,je=Re+1;je<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(je)):(this._remuxer.flushStashedSamples(),this._emitter.emit(ie.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Ee){var Re=this._ioctl.extraData;this._mediaDataSource.segments[Re].redirectedURL=Ee}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(ie.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Ee,Re){c.e(this.TAG,"IOException: type = ".concat(Ee,", code = ").concat(Re.code,", msg = ").concat(Re.msg)),this._emitter.emit(ie.IO_ERROR,Ee,Re),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Ee,Re){c.e(this.TAG,"DemuxException: type = ".concat(Ee,", info = ").concat(Re)),this._emitter.emit(ie.DEMUX_ERROR,Ee,Re)}},{key:"_onRemuxerInitSegmentArrival",value:function(Ee,Re){this._emitter.emit(ie.INIT_SEGMENT,Ee,Re)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Ee,Re){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(ie.MEDIA_SEGMENT,Ee,Re),this._pendingResolveSeekPoint!=null&&Ee==="video"){var je=Re.info.syncPoints,nt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&je.length>0&&je[0].originalDts===nt&&(nt=je[0].pts),this._emitter.emit(ie.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(Ee){var Re=this._mediaInfo.segments[Ee],je=Object.assign({},Re);je.duration=this._mediaInfo.duration,je.segmentCount=this._mediaInfo.segmentCount,delete je.segments,delete je.keyframesIndex,this._emitter.emit(ie.MEDIA_INFO,je)}},{key:"_reportStatisticsInfo",value:function(){var Ee={};Ee.url=this._ioctl.currentURL,Ee.hasRedirect=this._ioctl.hasRedirect,Ee.hasRedirect&&(Ee.redirectedURL=this._ioctl.currentRedirectedURL),Ee.speed=this._ioctl.currentSpeed,Ee.loaderType=this._ioctl.loaderType,Ee.currentSegmentIndex=this._currentSegmentIndex,Ee.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(ie.STATISTICS_INFO,Ee)}}]),$e}(),qe=bt,me=function(tt){var Ee="TransmuxingWorker",Re=null,je=Zt.bind(this);g.install(),tt.addEventListener("message",function(At){switch(At.data.cmd){case"init":Re=new qe(At.data.param[0],At.data.param[1]),Re.on(ie.IO_ERROR,pt.bind(this)),Re.on(ie.DEMUX_ERROR,ut.bind(this)),Re.on(ie.INIT_SEGMENT,nt.bind(this)),Re.on(ie.MEDIA_SEGMENT,Vt.bind(this)),Re.on(ie.LOADING_COMPLETE,Bt.bind(this)),Re.on(ie.RECOVERED_EARLY_EOF,Xt.bind(this)),Re.on(ie.MEDIA_INFO,Rr.bind(this)),Re.on(ie.METADATA_ARRIVED,Br.bind(this)),Re.on(ie.SCRIPTDATA_ARRIVED,cn.bind(this)),Re.on(ie.STATISTICS_INFO,Ut.bind(this)),Re.on(ie.RECOMMEND_SEEKPOINT,Jt.bind(this));break;case"destroy":Re&&(Re.destroy(),Re=null),tt.postMessage({msg:"destroyed"});break;case"start":Re.start();break;case"stop":Re.stop();break;case"seek":Re.seek(At.data.param);break;case"pause":Re.pause();break;case"resume":Re.resume();break;case"logging_config":{var Pt=At.data.param;pe.applyConfig(Pt),Pt.enableCallback===!0?pe.addLogListener(je):pe.removeLogListener(je);break}}});function nt(At,Pt){var vt={msg:ie.INIT_SEGMENT,data:{type:At,data:Pt}};tt.postMessage(vt,[Pt.data])}function Vt(At,Pt){var vt={msg:ie.MEDIA_SEGMENT,data:{type:At,data:Pt}};tt.postMessage(vt,[Pt.data])}function Bt(){var At={msg:ie.LOADING_COMPLETE};tt.postMessage(At)}function Xt(){var At={msg:ie.RECOVERED_EARLY_EOF};tt.postMessage(At)}function Rr(At){var Pt={msg:ie.MEDIA_INFO,data:At};tt.postMessage(Pt)}function Br(At){var Pt={msg:ie.METADATA_ARRIVED,data:At};tt.postMessage(Pt)}function cn(At){var Pt={msg:ie.SCRIPTDATA_ARRIVED,data:At};tt.postMessage(Pt)}function Ut(At){var Pt={msg:ie.STATISTICS_INFO,data:At};tt.postMessage(Pt)}function pt(At,Pt){tt.postMessage({msg:ie.IO_ERROR,data:{type:At,info:Pt}})}function ut(At,Pt){tt.postMessage({msg:ie.DEMUX_ERROR,data:{type:At,info:Pt}})}function Jt(At){tt.postMessage({msg:ie.RECOMMEND_SEEKPOINT,data:At})}function Zt(At,Pt){tt.postMessage({msg:"logcat_callback",data:{type:At,logcat:Pt}})}},Rt=me,er=function(){function $e(tt,Ee){if(Object(I.a)(this,$e),this.TAG="Transmuxer",this._emitter=new m.a,Ee.enableWorker&&typeof Worker!="undefined")try{var Re=d("0r65");this._worker=Re(Rt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[tt,Ee]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},pe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:pe.getConfig()})}catch(nt){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(tt,Ee)}else this._controller=new qe(tt,Ee);if(this._controller){var je=this._controller;je.on(ie.IO_ERROR,this._onIOError.bind(this)),je.on(ie.DEMUX_ERROR,this._onDemuxError.bind(this)),je.on(ie.INIT_SEGMENT,this._onInitSegment.bind(this)),je.on(ie.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),je.on(ie.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),je.on(ie.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),je.on(ie.MEDIA_INFO,this._onMediaInfo.bind(this)),je.on(ie.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),je.on(ie.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),je.on(ie.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),je.on(ie.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(E.a)($e,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),pe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Ee,Re){this._emitter.addListener(Ee,Re)}},{key:"off",value:function(Ee,Re){this._emitter.removeListener(Ee,Re)}},{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(Ee){this._worker?this._worker.postMessage({cmd:"seek",param:Ee}):this._controller.seek(Ee)}},{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(Ee,Re){var je=this;Promise.resolve().then(function(){je._emitter.emit(ie.INIT_SEGMENT,Ee,Re)})}},{key:"_onMediaSegment",value:function(Ee,Re){var je=this;Promise.resolve().then(function(){je._emitter.emit(ie.MEDIA_SEGMENT,Ee,Re)})}},{key:"_onLoadingComplete",value:function(){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(ie.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(ie.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Ee){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(ie.MEDIA_INFO,Ee)})}},{key:"_onMetaDataArrived",value:function(Ee){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(ie.METADATA_ARRIVED,Ee)})}},{key:"_onScriptDataArrived",value:function(Ee){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(ie.SCRIPTDATA_ARRIVED,Ee)})}},{key:"_onStatisticsInfo",value:function(Ee){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(ie.STATISTICS_INFO,Ee)})}},{key:"_onIOError",value:function(Ee,Re){var je=this;Promise.resolve().then(function(){je._emitter.emit(ie.IO_ERROR,Ee,Re)})}},{key:"_onDemuxError",value:function(Ee,Re){var je=this;Promise.resolve().then(function(){je._emitter.emit(ie.DEMUX_ERROR,Ee,Re)})}},{key:"_onRecommendSeekpoint",value:function(Ee){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(ie.RECOMMEND_SEEKPOINT,Ee)})}},{key:"_onLoggingConfigChanged",value:function(Ee){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Ee})}},{key:"_onWorkerMessage",value:function(Ee){var Re=Ee.data,je=Re.data;if(Re.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Re.msg){case ie.INIT_SEGMENT:case ie.MEDIA_SEGMENT:this._emitter.emit(Re.msg,je.type,je.data);break;case ie.LOADING_COMPLETE:case ie.RECOVERED_EARLY_EOF:this._emitter.emit(Re.msg);break;case ie.MEDIA_INFO:Object.setPrototypeOf(je,de.prototype),this._emitter.emit(Re.msg,je);break;case ie.METADATA_ARRIVED:case ie.SCRIPTDATA_ARRIVED:case ie.STATISTICS_INFO:this._emitter.emit(Re.msg,je);break;case ie.IO_ERROR:case ie.DEMUX_ERROR:this._emitter.emit(Re.msg,je.type,je.info);break;case ie.RECOMMEND_SEEKPOINT:this._emitter.emit(Re.msg,je);break;case"logcat_callback":c.emitter.emit("log",je.type,je.logcat);break;default:break}}}]),$e}(),ct=er,zt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},sr=zt,Kr=function(){function $e(tt){Object(I.a)(this,$e),this.TAG="MSEController",this._config=tt,this._emitter=new m.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 Ct}return Object(E.a)($e,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Ee,Re){this._emitter.addListener(Ee,Re)}},{key:"off",value:function(Ee,Re){this._emitter.removeListener(Ee,Re)}},{key:"attachMediaElement",value:function(Ee){if(this._mediaSource)throw new s("MediaSource has been attached to an HTMLMediaElement!");var Re=this._mediaSource=new window.MediaSource;Re.addEventListener("sourceopen",this.e.onSourceOpen),Re.addEventListener("sourceended",this.e.onSourceEnded),Re.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Ee,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Ee.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Ee=this._mediaSource;for(var Re in this._sourceBuffers){var je=this._pendingSegments[Re];je.splice(0,je.length),this._pendingSegments[Re]=null,this._pendingRemoveRanges[Re]=null,this._lastInitSegments[Re]=null;var nt=this._sourceBuffers[Re];if(nt){if(Ee.readyState!=="closed"){try{Ee.removeSourceBuffer(nt)}catch(Vt){c.e(this.TAG,Vt.message)}nt.removeEventListener("error",this.e.onSourceBufferError),nt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Re]=null,this._sourceBuffers[Re]=null}}if(Ee.readyState==="open")try{Ee.endOfStream()}catch(Vt){c.e(this.TAG,Vt.message)}Ee.removeEventListener("sourceopen",this.e.onSourceOpen),Ee.removeEventListener("sourceended",this.e.onSourceEnded),Ee.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(Ee,Re){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Ee),this._pendingSegments[Ee.type].push(Ee);return}var je=Ee,nt="".concat(je.container);je.codec&&je.codec.length>0&&(nt+=";codecs=".concat(je.codec));var Vt=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+nt),this._lastInitSegments[je.type]=je,nt!==this._mimeTypes[je.type]){if(this._mimeTypes[je.type])c.v(this.TAG,"Notice: ".concat(je.type," mimeType changed, origin: ").concat(this._mimeTypes[je.type],", target: ").concat(nt));else{Vt=!0;try{var Bt=this._sourceBuffers[je.type]=this._mediaSource.addSourceBuffer(nt);Bt.addEventListener("error",this.e.onSourceBufferError),Bt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Xt){c.e(this.TAG,Xt.message),this._emitter.emit(sr.ERROR,{code:Xt.code,msg:Xt.message});return}}this._mimeTypes[je.type]=nt}Re||this._pendingSegments[je.type].push(je),Vt||this._sourceBuffers[je.type]&&!this._sourceBuffers[je.type].updating&&this._doAppendSegments(),x.safari&&je.container==="audio/mpeg"&&je.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=je.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Ee){var Re=Ee;this._pendingSegments[Re.type].push(Re),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var je=this._sourceBuffers[Re.type];je&&!je.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Ee){for(var Re in this._sourceBuffers){if(!this._sourceBuffers[Re])continue;var je=this._sourceBuffers[Re];if(this._mediaSource.readyState==="open")try{je.abort()}catch(Br){c.e(this.TAG,Br.message)}this._idrList.clear();var nt=this._pendingSegments[Re];if(nt.splice(0,nt.length),this._mediaSource.readyState==="closed")continue;for(var Vt=0;Vt<je.buffered.length;Vt++){var Bt=je.buffered.start(Vt),Xt=je.buffered.end(Vt);this._pendingRemoveRanges[Re].push({start:Bt,end:Xt})}if(je.updating||this._doRemoveRanges(),x.safari){var Rr=this._lastInitSegments[Re];Rr&&(this._pendingSegments[Re].push(Rr),je.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Ee=this._mediaSource,Re=this._sourceBuffers;if(!Ee||Ee.readyState!=="open"){Ee&&Ee.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Re.video&&Re.video.updating||Re.audio&&Re.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Ee.endOfStream())}},{key:"getNearestKeyframe",value:function(Ee){return this._idrList.getLastSyncPointBeforeDts(Ee)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Ee=this._mediaElement.currentTime;for(var Re in this._sourceBuffers){var je=this._sourceBuffers[Re];if(je){var nt=je.buffered;if(nt.length>=1&&Ee-nt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Ee=this._mediaElement.currentTime;for(var Re in this._sourceBuffers){var je=this._sourceBuffers[Re];if(je){for(var nt=je.buffered,Vt=!1,Bt=0;Bt<nt.length;Bt++){var Xt=nt.start(Bt),Rr=nt.end(Bt);if(Xt<=Ee&&Ee<Rr+3){if(Ee-Xt>=this._config.autoCleanupMaxBackwardDuration){Vt=!0;var Br=Ee-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Re].push({start:Xt,end:Br})}}else Rr<Ee&&(Vt=!0,this._pendingRemoveRanges[Re].push({start:Xt,end:Rr}))}Vt&&!je.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Ee=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Ee.video&&Ee.video.updating||Ee.audio&&Ee.audio.updating)return;var Re=this._mediaSource.duration,je=this._pendingMediaDuration;je>0&&(isNaN(Re)||je>Re)&&(c.v(this.TAG,"Update MediaSource duration from ".concat(Re," to ").concat(je)),this._mediaSource.duration=je),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Ee in this._pendingRemoveRanges){if(!this._sourceBuffers[Ee]||this._sourceBuffers[Ee].updating)continue;for(var Re=this._sourceBuffers[Ee],je=this._pendingRemoveRanges[Ee];je.length&&!Re.updating;){var nt=je.shift();Re.remove(nt.start,nt.end)}}}},{key:"_doAppendSegments",value:function(){var Ee=this._pendingSegments;for(var Re in Ee){if(!this._sourceBuffers[Re]||this._sourceBuffers[Re].updating)continue;if(Ee[Re].length>0){var je=Ee[Re].shift();if(je.timestampOffset){var nt=this._sourceBuffers[Re].timestampOffset,Vt=je.timestampOffset/1e3,Bt=Math.abs(nt-Vt);Bt>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(nt," to ").concat(Vt)),this._sourceBuffers[Re].timestampOffset=Vt),delete je.timestampOffset}if(!je.data||je.data.byteLength===0)continue;try{this._sourceBuffers[Re].appendBuffer(je.data),this._isBufferFull=!1,Re==="video"&&je.hasOwnProperty("info")&&this._idrList.appendArray(je.info.syncPoints)}catch(Xt){this._pendingSegments[Re].unshift(je),Xt.code===22?(this._isBufferFull||this._emitter.emit(sr.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,Xt.message),this._emitter.emit(sr.ERROR,{code:Xt.code,msg:Xt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(c.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Ee=this._pendingSourceBufferInit;Ee.length;){var Re=Ee.shift();this.appendInitSegment(Re,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(sr.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){c.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){c.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 Ee=this._pendingSegments;return Ee.video.length>0||Ee.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Ee=this._pendingRemoveRanges;return Ee.video.length>0||Ee.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(sr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Ee){c.e(this.TAG,"SourceBuffer Error: ".concat(Ee))}}]),$e}(),ar=Kr,nr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Lt={NETWORK_EXCEPTION:u.EXCEPTION,NETWORK_STATUS_CODE_INVALID:u.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:u.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:u.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:xe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:xe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:xe.CODEC_UNSUPPORTED},st=function(){function $e(tt,Ee){if(Object(I.a)(this,$e),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new m.a,this._config=Y(),typeof Ee=="object"&&Object.assign(this._config,Ee),tt.type.toLowerCase()!=="flv")throw new e("FlvPlayer requires an flv MediaDataSource input!");tt.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=tt,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 Re=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(Re||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(E.a)($e,[{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(Ee,Re){var je=this;Ee===ae.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){je._emitter.emit(ae.MEDIA_INFO,je.mediaInfo)}):Ee===ae.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){je._emitter.emit(ae.STATISTICS_INFO,je.statisticsInfo)})),this._emitter.addListener(Ee,Re)}},{key:"off",value:function(Ee,Re){this._emitter.removeListener(Ee,Re)}},{key:"attachMediaElement",value:function(Ee){var Re=this;if(this._mediaElement=Ee,Ee.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Ee.addEventListener("seeking",this.e.onvSeeking),Ee.addEventListener("canplay",this.e.onvCanPlay),Ee.addEventListener("stalled",this.e.onvStalled),Ee.addEventListener("progress",this.e.onvProgress),this._msectl=new ar(this._config),this._msectl.on(sr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(sr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(sr.SOURCE_OPEN,function(){Re._mseSourceOpened=!0,Re._hasPendingLoad&&(Re._hasPendingLoad=!1,Re.load())}),this._msectl.on(sr.ERROR,function(je){Re._emitter.emit(ae.ERROR,nr.MEDIA_ERROR,Lt.MEDIA_MSE_ERROR,je)}),this._msectl.attachMediaElement(Ee),this._pendingSeekTime!=null)try{Ee.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(je){}}},{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 Ee=this;if(!this._mediaElement)throw new s("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new s("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 ct(this._mediaDataSource,this._config),this._transmuxer.on(ie.INIT_SEGMENT,function(Re,je){Ee._msectl.appendInitSegment(je)}),this._transmuxer.on(ie.MEDIA_SEGMENT,function(Re,je){if(Ee._msectl.appendMediaSegment(je),Ee._config.lazyLoad&&!Ee._config.isLive){var nt=Ee._mediaElement.currentTime;je.info.endDts>=(nt+Ee._config.lazyLoadMaxDuration)*1e3&&(Ee._progressChecker==null&&(c.v(Ee.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Ee._suspendTransmuxer()))}}),this._transmuxer.on(ie.LOADING_COMPLETE,function(){Ee._msectl.endOfStream(),Ee._emitter.emit(ae.LOADING_COMPLETE)}),this._transmuxer.on(ie.RECOVERED_EARLY_EOF,function(){Ee._emitter.emit(ae.RECOVERED_EARLY_EOF)}),this._transmuxer.on(ie.IO_ERROR,function(Re,je){Ee._emitter.emit(ae.ERROR,nr.NETWORK_ERROR,Re,je)}),this._transmuxer.on(ie.DEMUX_ERROR,function(Re,je){Ee._emitter.emit(ae.ERROR,nr.MEDIA_ERROR,Re,{code:-1,msg:je})}),this._transmuxer.on(ie.MEDIA_INFO,function(Re){Ee._mediaInfo=Re,Ee._emitter.emit(ae.MEDIA_INFO,Object.assign({},Re))}),this._transmuxer.on(ie.METADATA_ARRIVED,function(Re){Ee._emitter.emit(ae.METADATA_ARRIVED,Re)}),this._transmuxer.on(ie.SCRIPTDATA_ARRIVED,function(Re){Ee._emitter.emit(ae.SCRIPTDATA_ARRIVED,Re)}),this._transmuxer.on(ie.STATISTICS_INFO,function(Re){Ee._statisticsInfo=Ee._fillStatisticsInfo(Re),Ee._emitter.emit(ae.STATISTICS_INFO,Object.assign({},Ee._statisticsInfo))}),this._transmuxer.on(ie.RECOMMEND_SEEKPOINT,function(Re){Ee._mediaElement&&!Ee._config.accurateSeek&&(Ee._requestSetTime=!0,Ee._mediaElement.currentTime=Re/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(Ee){this._mediaElement.volume=Ee}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Ee){this._mediaElement.muted=Ee}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Ee){this._mediaElement?this._internalSeek(Ee):this._pendingSeekTime=Ee}},{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(Ee){if(Ee.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Ee;var Re=!0,je=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var Vt=this._mediaElement.getVideoPlaybackQuality();je=Vt.totalVideoFrames,nt=Vt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(je=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Re=!1;return Re&&(Ee.decodedFrames=je,Ee.droppedFrames=nt),Ee}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Ee=this._mediaElement.buffered,Re=this._mediaElement.currentTime,je=0,nt=0,Vt=0;Vt<Ee.length;Vt++){var Bt=Ee.start(Vt),Xt=Ee.end(Vt);if(Bt<=Re&&Re<Xt){je=Bt,nt=Xt;break}}nt>=Re+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(c.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){c.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 Ee=this._mediaElement.currentTime,Re=this._mediaElement.buffered,je=!1,nt=0;nt<Re.length;nt++){var Vt=Re.start(nt),Bt=Re.end(nt);if(Ee>=Vt&&Ee<Bt){Ee>=Bt-this._config.lazyLoadRecoverDuration&&(je=!0);break}}je&&(window.clearInterval(this._progressChecker),this._progressChecker=null,je&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Ee){for(var Re=this._mediaElement.buffered,je=0;je<Re.length;je++){var nt=Re.start(je),Vt=Re.end(je);if(Ee>=nt&&Ee<Vt)return!0}return!1}},{key:"_internalSeek",value:function(Ee){var Re=this._isTimepointBuffered(Ee),je=!1,nt=0;if(Ee<1&&this._mediaElement.buffered.length>0){var Vt=this._mediaElement.buffered.start(0);(Vt<1&&Ee<Vt||x.safari)&&(je=!0,nt=x.safari?.1:Vt)}if(je)this._requestSetTime=!0,this._mediaElement.currentTime=nt;else if(Re){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Ee;else{var Bt=this._msectl.getNearestKeyframe(Math.floor(Ee*1e3));this._requestSetTime=!0,Bt!=null?this._mediaElement.currentTime=Bt.dts/1e3:this._mediaElement.currentTime=Ee}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ee),this._transmuxer.seek(Math.floor(Ee*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ee)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Ee=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Ee)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ee),this._transmuxer.seek(Math.floor(Ee*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ee))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Ee){var Re=this._mediaElement;if(Ee||!this._receivedCanPlay||Re.readyState<2){var je=Re.buffered;je.length>0&&Re.currentTime<je.start(0)&&(c.w(this.TAG,"Playback seems stuck at ".concat(Re.currentTime,", seek to ").concat(je.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=je.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Ee){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Ee){var Re=this._mediaElement.currentTime,je=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Re<1&&je.length>0){var nt=je.start(0);if(nt<1&&Re<nt||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:nt;return}}if(this._isTimepointBuffered(Re)){if(this._alwaysSeekKeyframe){var Vt=this._msectl.getNearestKeyframe(Math.floor(Re*1e3));Vt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Vt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Re,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Ee){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Ee){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Ee){this._checkAndResumeStuckPlayback()}}]),$e}(),Qe=st,qt=function(){function $e(tt,Ee){if(Object(I.a)(this,$e),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new m.a,this._config=Y(),typeof Ee=="object"&&Object.assign(this._config,Ee),tt.type.toLowerCase()==="flv")throw new e("NativePlayer does't support flv MediaDataSource input!");if(tt.hasOwnProperty("segments"))throw new e("NativePlayer(".concat(tt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=tt,this._mediaElement=null}return Object(E.a)($e,[{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(Ee,Re){var je=this;Ee===ae.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){je._emitter.emit(ae.MEDIA_INFO,je.mediaInfo)}):Ee===ae.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){je._emitter.emit(ae.STATISTICS_INFO,je.statisticsInfo)})),this._emitter.addListener(Ee,Re)}},{key:"off",value:function(Ee,Re){this._emitter.removeListener(Ee,Re)}},{key:"attachMediaElement",value:function(Ee){if(this._mediaElement=Ee,Ee.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Ee.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Re){}}},{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 s("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(Ee){this._mediaElement.volume=Ee}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Ee){this._mediaElement.muted=Ee}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Ee){this._mediaElement?this._mediaElement.currentTime=Ee:this._pendingSeekTime=Ee}},{key:"mediaInfo",get:function(){var Ee=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Re={mimeType:Ee+this._mediaDataSource.type};return this._mediaElement&&(Re.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Re.width=this._mediaElement.videoWidth,Re.height=this._mediaElement.videoHeight)),Re}},{key:"statisticsInfo",get:function(){var Ee={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Ee;var Re=!0,je=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var Vt=this._mediaElement.getVideoPlaybackQuality();je=Vt.totalVideoFrames,nt=Vt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(je=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Re=!1;return Re&&(Ee.decodedFrames=je,Ee.droppedFrames=nt),Ee}},{key:"_onvLoadedMetadata",value:function(Ee){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(ae.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(ae.STATISTICS_INFO,this.statisticsInfo)}}]),$e}(),Sr=qt;g.install();function Ar($e,tt){var Ee=$e;if(Ee==null||typeof Ee!="object")throw new e("MediaDataSource must be an javascript object!");if(!Ee.hasOwnProperty("type"))throw new e("MediaDataSource must has type field to indicate video file type!");switch(Ee.type){case"flv":return new Qe(Ee,tt);default:return new Sr(Ee,tt)}}function hr(){return se.supportMSEH264Playback()}function vn(){return se.getFeatureList()}var Zr={};Zr.createPlayer=Ar,Zr.isSupported=hr,Zr.getFeatureList=vn,Zr.BaseLoader=f,Zr.LoaderStatus=l,Zr.LoaderErrors=u,Zr.Events=ae,Zr.ErrorTypes=nr,Zr.ErrorDetails=Lt,Zr.FlvPlayer=Qe,Zr.NativePlayer=Sr,Zr.LoggingControl=pe,Object.defineProperty(Zr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ln=k.a=Zr},GVMX:function(H,k,d){var I=d("JEkh"),E=I.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"}});H.exports=E},GdRQ:function(H,k,d){"use strict";function I(x){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(x)}Object.defineProperty(k,"__esModule",{value:!0}),k.isMac=l,k.isWindows=u,k.isIOS=f,k.isSafari=p,k.isIE=v,k.isEdge=A,k.isFirefox=y,k.hasScrollbarGutter=k.supportsImageMetadata=k.supportsCursorURIs=k.dragThreshold=k.isTouchDevice=void 0;var E=g(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var x=new WeakMap;return T=function(){return x},x}function g(x){if(x&&x.__esModule)return x;if(x===null||I(x)!=="object"&&typeof x!="function")return{default:x};var C=T();if(C&&C.has(x))return C.get(x);var w={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in x)if(Object.prototype.hasOwnProperty.call(x,_)){var O=b?Object.getOwnPropertyDescriptor(x,_):null;O&&(O.get||O.set)?Object.defineProperty(w,_,O):w[_]=x[_]}return w.default=x,C&&C.set(x,w),w}var S="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;k.isTouchDevice=S,window.addEventListener("touchstart",function x(){k.isTouchDevice=S=!0,window.removeEventListener("touchstart",x,!1)},!1);var m=10*(window.devicePixelRatio||1);k.dragThreshold=m;var h=!1;try{var c=document.createElement("canvas");c.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',c.style.cursor.indexOf("url")===0?(E.Info("Data URI scheme cursor supported"),h=!0):E.Warn("Data URI scheme cursor not supported")}catch(x){E.Error("Data URI scheme cursor test exception: "+x)}var a=h;k.supportsCursorURIs=a;var r=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),r=!0}catch(x){}var i=r;k.supportsImageMetadata=i;var n=!0;try{var t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);var s=document.createElement("div");t.appendChild(s);var e=t.offsetWidth-s.offsetWidth;t.parentNode.removeChild(t),n=e!=0}catch(x){E.Error("Scrollbar test exception: "+x)}var o=n;k.hasScrollbarGutter=o;function l(){return navigator&&!!/mac/i.exec(navigator.platform)}function u(){return navigator&&!!/win/i.exec(navigator.platform)}function f(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function p(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function v(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function A(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function y(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(H,k,d){var I=d("bYtY"),E=d("6Ic6"),T=d("IwbS"),g=d("y+Vt"),S=d("sK/D"),m=S.createClipPath,h=["itemStyle"],c=["emphasis","itemStyle"],a=["color","color0","borderColor","borderColor0"],r=E.extend({type:"candlestick",render:function(p,v,A){this.group.removeClipPath(),this._updateDrawMode(p),this._isLargeDraw?this._renderLarge(p):this._renderNormal(p)},incrementalPrepareRender:function(p,v,A){this._clear(),this._updateDrawMode(p)},incrementalRender:function(p,v,A,y){this._isLargeDraw?this._incrementalRenderLarge(p,v):this._incrementalRenderNormal(p,v)},_updateDrawMode:function(p){var v=p.pipelineContext.large;(this._isLargeDraw==null||v^this._isLargeDraw)&&(this._isLargeDraw=v,this._clear())},_renderNormal:function(p){var v=p.getData(),A=this._data,y=this.group,x=v.getLayout("isSimpleBox"),C=p.get("clip",!0),w=p.coordinateSystem,b=w.getArea&&w.getArea();this._data||y.removeAll(),v.diff(A).add(function(_){if(v.hasValue(_)){var O,L=v.getItemLayout(_);if(C&&t(b,L))return;O=n(L,_,!0),T.initProps(O,{shape:{points:L.ends}},p,_),s(O,v,_,x),y.add(O),v.setItemGraphicEl(_,O)}}).update(function(_,O){var L=A.getItemGraphicEl(O);if(!v.hasValue(_)){y.remove(L);return}var D=v.getItemLayout(_);if(C&&t(b,D)){y.remove(L);return}L?T.updateProps(L,{shape:{points:D.ends}},p,_):L=n(D,_),s(L,v,_,x),y.add(L),v.setItemGraphicEl(_,L)}).remove(function(_){var O=A.getItemGraphicEl(_);O&&y.remove(O)}).execute(),this._data=v},_renderLarge:function(p){this._clear(),l(p,this.group);var v=p.get("clip",!0)?m(p.coordinateSystem,!1,p):null;v?this.group.setClipPath(v):this.group.removeClipPath()},_incrementalRenderNormal:function(p,v){for(var A=v.getData(),y=A.getLayout("isSimpleBox"),x;(x=p.next())!=null;){var C,w=A.getItemLayout(x);C=n(w,x),s(C,A,x,y),C.incremental=!0,this.group.add(C)}},_incrementalRenderLarge:function(p,v){l(v,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:I.noop}),i=g.extend({type:"normalCandlestickBox",shape:{},buildPath:function(p,v){var A=v.points;this.__simpleBox?(p.moveTo(A[4][0],A[4][1]),p.lineTo(A[6][0],A[6][1])):(p.moveTo(A[0][0],A[0][1]),p.lineTo(A[1][0],A[1][1]),p.lineTo(A[2][0],A[2][1]),p.lineTo(A[3][0],A[3][1]),p.closePath(),p.moveTo(A[4][0],A[4][1]),p.lineTo(A[5][0],A[5][1]),p.moveTo(A[6][0],A[6][1]),p.lineTo(A[7][0],A[7][1]))}});function n(p,v,A){var y=p.ends;return new i({shape:{points:A?e(y,p):y},z2:100})}function t(p,v){for(var A=!0,y=0;y<v.ends.length;y++)if(p.contain(v.ends[y][0],v.ends[y][1])){A=!1;break}return A}function s(p,v,A,y){var x=v.getItemModel(A),C=x.getModel(h),w=v.getItemVisual(A,"color"),b=v.getItemVisual(A,"borderColor")||w,_=C.getItemStyle(a);p.useStyle(_),p.style.strokeNoScale=!0,p.style.fill=w,p.style.stroke=b,p.__simpleBox=y;var O=x.getModel(c).getItemStyle();T.setHoverStyle(p,O)}function e(p,v){return I.map(p,function(A){return A=A.slice(),A[1]=v.initBaseline,A})}var o=g.extend({type:"largeCandlestickBox",shape:{},buildPath:function(p,v){for(var A=v.points,y=0;y<A.length;)if(this.__sign===A[y++]){var x=A[y++];p.moveTo(x,A[y++]),p.lineTo(x,A[y++])}else y+=3}});function l(p,v,A){var y=p.getData(),x=y.getLayout("largePoints"),C=new o({shape:{points:x},__sign:1});v.add(C);var w=new o({shape:{points:x},__sign:-1});v.add(w),u(1,C,p,y),u(-1,w,p,y),A&&(C.incremental=!0,w.incremental=!0)}function u(p,v,A,y){var x=p>0?"P":"N",C=y.getVisual("borderColor"+x)||y.getVisual("color"+x),w=A.getModel(h).getItemStyle(a);v.useStyle(w),v.style.fill=null,v.style.stroke=C}var f=r;H.exports=f},Gev7:function(H,k,d){var I=d("bYtY"),E=d("K2GJ"),T=d("1bdT"),g=d("ni6a");function S(h){h=h||{},T.call(this,h);for(var c in h)h.hasOwnProperty(c)&&c!=="style"&&(this[c]=h[c]);this.style=new E(h.style,this),this._rect=null,this.__clipPaths=null}S.prototype={constructor:S,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(c){},afterBrush:function(c){},brush:function(c,a){},getBoundingRect:function(){},contain:function(c,a){return this.rectContain(c,a)},traverse:function(c,a){c.call(a,this)},rectContain:function(c,a){var r=this.transformCoordToLocal(c,a),i=this.getBoundingRect();return i.contain(r[0],r[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(c){return this.animate("style",c)},attrKV:function(c,a){c!=="style"?T.prototype.attrKV.call(this,c,a):this.style.set(a)},setStyle:function(c,a){return this.style.set(c,a),this.dirty(!1),this},useStyle:function(c){return this.style=new E(c,this),this.dirty(!1),this},calculateTextPosition:null},I.inherits(S,T),I.mixin(S,g);var m=S;H.exports=m},GrNh:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("6Ic6");function g(r,i,n,t){var s=i.getData(),e=this.dataIndex,o=s.getName(e),l=i.get("selectedOffset");t.dispatchAction({type:"pieToggleSelect",from:r,name:o,seriesId:i.id}),s.each(function(u){S(s.getItemGraphicEl(u),s.getItemLayout(u),i.isSelected(s.getName(u)),l,n)})}function S(r,i,n,t,s){var e=(i.startAngle+i.endAngle)/2,o=Math.cos(e),l=Math.sin(e),u=n?t:0,f=[o*u,l*u];s?r.animate().when(200,{position:f}).start("bounceOut"):r.attr("position",f)}function m(r,i){E.Group.call(this);var n=new E.Sector({z2:2}),t=new E.Polyline,s=new E.Text;this.add(n),this.add(t),this.add(s),this.updateData(r,i,!0)}var h=m.prototype;h.updateData=function(r,i,n){var t=this.childAt(0),s=this.childAt(1),e=this.childAt(2),o=r.hostModel,l=r.getItemModel(i),u=r.getItemLayout(i),f=I.extend({},u);f.label=null;var p=o.getShallow("animationTypeUpdate");if(n){t.setShape(f);var v=o.getShallow("animationType");v==="scale"?(t.shape.r=u.r0,E.initProps(t,{shape:{r:u.r}},o,i)):(t.shape.endAngle=u.startAngle,E.updateProps(t,{shape:{endAngle:u.endAngle}},o,i))}else p==="expansion"?t.setShape(f):E.updateProps(t,{shape:f},o,i);var A=r.getItemVisual(i,"color");t.useStyle(I.defaults({lineJoin:"bevel",fill:A},l.getModel("itemStyle").getItemStyle())),t.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var y=l.getShallow("cursor");y&&t.attr("cursor",y),S(this,r.getItemLayout(i),o.isSelected(r.getName(i)),o.get("selectedOffset"),o.get("animation"));var x=!n&&p==="transition";this._updateLabel(r,i,x),this.highDownOnUpdate=o.get("silent")?null:function(C,w){var b=o.isAnimationEnabled()&&l.get("hoverAnimation");w==="emphasis"?(s.ignore=s.hoverIgnore,e.ignore=e.hoverIgnore,b&&(t.stopAnimation(!0),t.animateTo({shape:{r:u.r+o.get("hoverOffset")}},300,"elasticOut"))):(s.ignore=s.normalIgnore,e.ignore=e.normalIgnore,b&&(t.stopAnimation(!0),t.animateTo({shape:{r:u.r}},300,"elasticOut")))},E.setHoverStyle(this)},h._updateLabel=function(r,i,n){var t=this.childAt(1),s=this.childAt(2),e=r.hostModel,o=r.getItemModel(i),l=r.getItemLayout(i),u=l.label,f=r.getItemVisual(i,"color");if(!u||isNaN(u.x)||isNaN(u.y)){s.ignore=s.normalIgnore=s.hoverIgnore=t.ignore=t.normalIgnore=t.hoverIgnore=!0;return}var p={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},v={x:u.x,y:u.y};n?(E.updateProps(t,{shape:p},e,i),E.updateProps(s,{style:v},e,i)):(t.attr({shape:p}),s.attr({style:v})),s.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var A=o.getModel("label"),y=o.getModel("emphasis.label"),x=o.getModel("labelLine"),C=o.getModel("emphasis.labelLine"),f=r.getItemVisual(i,"color");E.setLabelStyle(s.style,s.hoverStyle={},A,y,{labelFetcher:r.hostModel,labelDataIndex:i,defaultText:u.text,autoColor:f,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:r.getItemVisual(i,"opacity")}),s.ignore=s.normalIgnore=!A.get("show"),s.hoverIgnore=!y.get("show"),t.ignore=t.normalIgnore=!x.get("show"),t.hoverIgnore=!C.get("show"),t.setStyle({stroke:f,opacity:r.getItemVisual(i,"opacity")}),t.setStyle(x.getModel("lineStyle").getLineStyle()),t.hoverStyle=C.getModel("lineStyle").getLineStyle();var w=x.get("smooth");w&&w===!0&&(w=.4),t.setShape({smooth:w})},I.inherits(m,E.Group);var c=T.extend({type:"pie",init:function(){var r=new E.Group;this._sectorGroup=r},render:function(r,i,n,t){if(t&&t.from===this.uid)return;var s=r.getData(),e=this._data,o=this.group,l=i.get("animation"),u=!e,f=r.get("animationType"),p=r.get("animationTypeUpdate"),v=I.curry(g,this.uid,r,l,n),A=r.get("selectedMode");if(s.diff(e).add(function(b){var _=new m(s,b);u&&f!=="scale"&&_.eachChild(function(O){O.stopAnimation(!0)}),A&&_.on("click",v),s.setItemGraphicEl(b,_),o.add(_)}).update(function(b,_){var O=e.getItemGraphicEl(_);!u&&p!=="transition"&&O.eachChild(function(L){L.stopAnimation(!0)}),O.updateData(s,b),O.off("click"),A&&O.on("click",v),o.add(O),s.setItemGraphicEl(b,O)}).remove(function(b){var _=e.getItemGraphicEl(b);o.remove(_)}).execute(),l&&s.count()>0&&(u?f!=="scale":p!=="transition")){for(var y=s.getItemLayout(0),x=1;isNaN(y.startAngle)&&x<s.count();++x)y=s.getItemLayout(x);var C=Math.max(n.getWidth(),n.getHeight())/2,w=I.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(y.cx,y.cy,C,y.startAngle,y.clockwise,w,r,u))}else o.removeClipPath();this._data=s},dispose:function(){},_createClipPath:function(r,i,n,t,s,e,o,l){var u=new E.Sector({shape:{cx:r,cy:i,r0:0,r:n,startAngle:t,endAngle:t,clockwise:s}}),f=l?E.initProps:E.updateProps;return f(u,{shape:{endAngle:t+(s?1:-1)*Math.PI*2}},o,e),u},containPoint:function(r,i){var n=i.getData(),t=n.getItemLayout(0);if(t){var s=r[0]-t.cx,e=r[1]-t.cy,o=Math.sqrt(s*s+e*e);return o<=t.r&&o>=t.r0}}}),a=c;H.exports=a},Gytx:function(H,k){H.exports=function(I,E,T,g){var S=T?T.call(g,I,E):void 0;if(S!==void 0)return!!S;if(I===E)return!0;if(typeof I!="object"||!I||typeof E!="object"||!E)return!1;var m=Object.keys(I),h=Object.keys(E);if(m.length!==h.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(E),a=0;a<m.length;a++){var r=m[a];if(!c(r))return!1;var i=I[r],n=E[r];if(S=T?T.call(g,i,n,r):void 0,S===!1||S===void 0&&i!==n)return!1}return!0}},GzdX:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("q1tI"),g=d.n(T),S=d("rePB"),m=d("1OyB"),h=d("vuIU"),c=d("Ji7U"),a=d("md7G"),r=d("foSv"),i=d("m+aA"),n=d("TSYQ"),t=d.n(n),s=d("4IlW");function e(j){var B=j.pageXOffset,K="scrollLeft";if(typeof B!="number"){var U=j.document;B=U.documentElement[K],typeof B!="number"&&(B=U.body[K])}return B}function o(j){var B,K,U=j.ownerDocument,z=U.body,V=U&&U.documentElement,Y=j.getBoundingClientRect();return B=Y.left,K=Y.top,B-=V.clientLeft||z.clientLeft||0,K-=V.clientTop||z.clientTop||0,{left:B,top:K}}function l(j){var B=o(j),K=j.ownerDocument,U=K.defaultView||K.parentWindow;return B.left+=e(U),B.left}function u(j){var B=f();return function(){var U=Object(r.a)(j),z;if(B){var V=Object(r.a)(this).constructor;z=Reflect.construct(U,arguments,V)}else z=U.apply(this,arguments);return Object(a.a)(this,z)}}function f(){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 p=function(j){Object(c.a)(K,j);var B=u(K);function K(){var U;return Object(m.a)(this,K),U=B.apply(this,arguments),U.onHover=function(z){var V=U.props,Y=V.onHover,J=V.index;Y(z,J)},U.onClick=function(z){var V=U.props,Y=V.onClick,J=V.index;Y(z,J)},U.onKeyDown=function(z){var V=U.props,Y=V.onClick,J=V.index;z.keyCode===13&&Y(z,J)},U}return Object(h.a)(K,[{key:"getClassName",value:function(){var z=this.props,V=z.prefixCls,Y=z.index,J=z.value,se=z.allowHalf,$=z.focused,ae=Y+1,ge=V;return J===0&&Y===0&&$?ge+=" ".concat(V,"-focused"):se&&J+.5>=ae&&J<ae?(ge+=" ".concat(V,"-half ").concat(V,"-active"),$&&(ge+=" ".concat(V,"-focused"))):(ge+=ae<=J?" ".concat(V,"-full"):" ".concat(V,"-zero"),ae===J&&$&&(ge+=" ".concat(V,"-focused"))),ge}},{key:"render",value:function(){var z=this.onHover,V=this.onClick,Y=this.onKeyDown,J=this.props,se=J.disabled,$=J.prefixCls,ae=J.character,ge=J.characterRender,pe=J.index,Ne=J.count,de=J.value,Le=typeof ae=="function"?ae(this.props):ae,Q=g.a.createElement("li",{className:this.getClassName()},g.a.createElement("div",{onClick:se?null:V,onKeyDown:se?null:Y,onMouseMove:se?null:z,role:"radio","aria-checked":de>pe?"true":"false","aria-posinset":pe+1,"aria-setsize":Ne,tabIndex:se?-1:0},g.a.createElement("div",{className:"".concat($,"-first")},Le),g.a.createElement("div",{className:"".concat($,"-second")},Le)));return ge&&(Q=ge(Q,this.props)),Q}}]),K}(g.a.Component);function v(j,B){var K=Object.keys(j);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(j);B&&(U=U.filter(function(z){return Object.getOwnPropertyDescriptor(j,z).enumerable})),K.push.apply(K,U)}return K}function A(j){for(var B=1;B<arguments.length;B++){var K=arguments[B]!=null?arguments[B]:{};B%2?v(Object(K),!0).forEach(function(U){Object(S.a)(j,U,K[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(K)):v(Object(K)).forEach(function(U){Object.defineProperty(j,U,Object.getOwnPropertyDescriptor(K,U))})}return j}function y(j){var B=x();return function(){var U=Object(r.a)(j),z;if(B){var V=Object(r.a)(this).constructor;z=Reflect.construct(U,arguments,V)}else z=U.apply(this,arguments);return Object(a.a)(this,z)}}function x(){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 C(){}var w=function(j){Object(c.a)(K,j);var B=y(K);function K(U){var z;Object(m.a)(this,K),z=B.call(this,U),z.onHover=function(Y,J){var se=z.props.onHoverChange,$=z.getStarValue(J,Y.pageX),ae=z.state.cleanedValue;$!==ae&&z.setState({hoverValue:$,cleanedValue:null}),se($)},z.onMouseLeave=function(){var Y=z.props.onHoverChange;z.setState({hoverValue:void 0,cleanedValue:null}),Y(void 0)},z.onClick=function(Y,J){var se=z.props.allowClear,$=z.state.value,ae=z.getStarValue(J,Y.pageX),ge=!1;se&&(ge=ae===$),z.onMouseLeave(),z.changeValue(ge?0:ae),z.setState({cleanedValue:ge?ae:null})},z.onFocus=function(){var Y=z.props.onFocus;z.setState({focused:!0}),Y&&Y()},z.onBlur=function(){var Y=z.props.onBlur;z.setState({focused:!1}),Y&&Y()},z.onKeyDown=function(Y){var J=Y.keyCode,se=z.props,$=se.count,ae=se.allowHalf,ge=se.onKeyDown,pe=se.direction,Ne=pe==="rtl",de=z.state.value;J===s.a.RIGHT&&de<$&&!Ne?(ae?de+=.5:de+=1,z.changeValue(de),Y.preventDefault()):J===s.a.LEFT&&de>0&&!Ne||J===s.a.RIGHT&&de>0&&Ne?(ae?de-=.5:de-=1,z.changeValue(de),Y.preventDefault()):J===s.a.LEFT&&de<$&&Ne&&(ae?de+=.5:de+=1,z.changeValue(de),Y.preventDefault()),ge&&ge(Y)},z.saveRef=function(Y){return function(J){z.stars[Y]=J}},z.saveRate=function(Y){z.rate=Y};var V=U.value;return V===void 0&&(V=U.defaultValue),z.stars={},z.state={value:V,focused:!1,cleanedValue:null},z}return Object(h.a)(K,[{key:"componentDidMount",value:function(){var z=this.props,V=z.autoFocus,Y=z.disabled;V&&!Y&&this.focus()}},{key:"getStarDOM",value:function(z){return Object(i.a)(this.stars[z])}},{key:"getStarValue",value:function(z,V){var Y=this.props,J=Y.allowHalf,se=Y.direction,$=se==="rtl",ae=z+1;if(J){var ge=this.getStarDOM(z),pe=l(ge),Ne=ge.clientWidth;($&&V-pe>Ne/2||!$&&V-pe<Ne/2)&&(ae-=.5)}return ae}},{key:"focus",value:function(){var z=this.props.disabled;z||this.rate.focus()}},{key:"blur",value:function(){var z=this.props.disabled;z||this.rate.blur()}},{key:"changeValue",value:function(z){var V=this.props.onChange;"value"in this.props||this.setState({value:z}),V(z)}},{key:"render",value:function(){for(var z=this.props,V=z.count,Y=z.allowHalf,J=z.style,se=z.prefixCls,$=z.disabled,ae=z.className,ge=z.character,pe=z.characterRender,Ne=z.tabIndex,de=z.direction,Le=this.state,Q=Le.value,ce=Le.hoverValue,Ke=Le.focused,ee=[],X=$?"".concat(se,"-disabled"):"",G=0;G<V;G+=1)ee.push(g.a.createElement(p,{ref:this.saveRef(G),index:G,count:V,disabled:$,prefixCls:"".concat(se,"-star"),allowHalf:Y,value:ce===void 0?Q:ce,onClick:this.onClick,onHover:this.onHover,key:G,character:ge,characterRender:pe,focused:Ke}));var Z=t()(se,X,ae,Object(S.a)({},"".concat(se,"-rtl"),de==="rtl"));return g.a.createElement("ul",{className:Z,style:J,onMouseLeave:$?null:this.onMouseLeave,tabIndex:$?-1:Ne,onFocus:$?null:this.onFocus,onBlur:$?null:this.onBlur,onKeyDown:$?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ee)}}],[{key:"getDerivedStateFromProps",value:function(z,V){return"value"in z&&z.value!==void 0?A(A({},V),{},{value:z.value}):V}}]),K}(g.a.Component);w.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:C,character:"\u2605",onHoverChange:C,tabIndex:0,direction:"ltr"};var b=w,_=b,O=d("Lerx"),L=d.n(O),D=d("3S7+"),N=d("H84U"),M=function(j,B){var K={};for(var U in j)Object.prototype.hasOwnProperty.call(j,U)&&B.indexOf(U)<0&&(K[U]=j[U]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,U=Object.getOwnPropertySymbols(j);z<U.length;z++)B.indexOf(U[z])<0&&Object.prototype.propertyIsEnumerable.call(j,U[z])&&(K[U[z]]=j[U[z]]);return K},F=T.forwardRef(function(j,B){var K=j.prefixCls,U=j.tooltips,z=M(j,["prefixCls","tooltips"]),V=function(ge,pe){var Ne=pe.index;return U?T.createElement(D.a,{title:U[Ne]},ge):ge},Y=T.useContext(N.b),J=Y.getPrefixCls,se=Y.direction,$=J("rate",K);return T.createElement(_,E()({ref:B,characterRender:V},z,{prefixCls:$,direction:se}))});F.displayName="Rate",F.defaultProps={character:T.createElement(L.a,null)};var R=k.a=F},H6uX:function(H,k){var d=Array.prototype.slice,I=function(m){this._$handlers={},this._$eventProcessor=m};I.prototype={constructor:I,one:function(m,h,c,a){return T(this,m,h,c,a,!0)},on:function(m,h,c,a){return T(this,m,h,c,a,!1)},isSilent:function(m){var h=this._$handlers;return!h[m]||!h[m].length},off:function(m,h){var c=this._$handlers;if(!m)return this._$handlers={},this;if(h){if(c[m]){for(var a=[],r=0,i=c[m].length;r<i;r++)c[m][r].h!==h&&a.push(c[m][r]);c[m]=a}c[m]&&c[m].length===0&&delete c[m]}else delete c[m];return this},trigger:function(m){var h=this._$handlers[m],c=this._$eventProcessor;if(h){var a=arguments,r=a.length;r>3&&(a=d.call(a,1));for(var i=h.length,n=0;n<i;){var t=h[n];if(c&&c.filter&&t.query!=null&&!c.filter(m,t.query)){n++;continue}switch(r){case 1:t.h.call(t.ctx);break;case 2:t.h.call(t.ctx,a[1]);break;case 3:t.h.call(t.ctx,a[1],a[2]);break;default:t.h.apply(t.ctx,a);break}t.one?(h.splice(n,1),i--):n++}}return c&&c.afterTrigger&&c.afterTrigger(m),this},triggerWithContext:function(m){var h=this._$handlers[m],c=this._$eventProcessor;if(h){var a=arguments,r=a.length;r>4&&(a=d.call(a,1,a.length-1));for(var i=a[a.length-1],n=h.length,t=0;t<n;){var s=h[t];if(c&&c.filter&&s.query!=null&&!c.filter(m,s.query)){t++;continue}switch(r){case 1:s.h.call(i);break;case 2:s.h.call(i,a[1]);break;case 3:s.h.call(i,a[1],a[2]);break;default:s.h.apply(i,a);break}s.one?(h.splice(t,1),n--):t++}}return c&&c.afterTrigger&&c.afterTrigger(m),this}};function E(S,m){var h=S._$eventProcessor;return m!=null&&h&&h.normalizeQuery&&(m=h.normalizeQuery(m)),m}function T(S,m,h,c,a,r){var i=S._$handlers;if(typeof h=="function"&&(a=c,c=h,h=null),!c||!m)return S;h=E(S,h),i[m]||(i[m]=[]);for(var n=0;n<i[m].length;n++)if(i[m][n].h===c)return S;var t={h:c,one:r,query:h,ctx:a||S,callAtLast:c.zrEventfulCallAtLast},s=i[m].length-1,e=i[m][s];return e&&e.callAtLast?i[m].splice(s,0,t):i[m].push(t),S}var g=I;H.exports=g},H7XF:function(H,k,d){"use strict";k.byteLength=c,k.toByteArray=r,k.fromByteArray=t;for(var I=[],E=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,m=g.length;S<m;++S)I[S]=g[S],E[g.charCodeAt(S)]=S;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function h(s){var e=s.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=s.indexOf("=");o===-1&&(o=e);var l=o===e?0:4-o%4;return[o,l]}function c(s){var e=h(s),o=e[0],l=e[1];return(o+l)*3/4-l}function a(s,e,o){return(e+o)*3/4-o}function r(s){var e,o=h(s),l=o[0],u=o[1],f=new T(a(s,l,u)),p=0,v=u>0?l-4:l,A;for(A=0;A<v;A+=4)e=E[s.charCodeAt(A)]<<18|E[s.charCodeAt(A+1)]<<12|E[s.charCodeAt(A+2)]<<6|E[s.charCodeAt(A+3)],f[p++]=e>>16&255,f[p++]=e>>8&255,f[p++]=e&255;return u===2&&(e=E[s.charCodeAt(A)]<<2|E[s.charCodeAt(A+1)]>>4,f[p++]=e&255),u===1&&(e=E[s.charCodeAt(A)]<<10|E[s.charCodeAt(A+1)]<<4|E[s.charCodeAt(A+2)]>>2,f[p++]=e>>8&255,f[p++]=e&255),f}function i(s){return I[s>>18&63]+I[s>>12&63]+I[s>>6&63]+I[s&63]}function n(s,e,o){for(var l,u=[],f=e;f<o;f+=3)l=(s[f]<<16&16711680)+(s[f+1]<<8&65280)+(s[f+2]&255),u.push(i(l));return u.join("")}function t(s){for(var e,o=s.length,l=o%3,u=[],f=16383,p=0,v=o-l;p<v;p+=f)u.push(n(s,p,p+f>v?v:p+f));return l===1?(e=s[o-1],u.push(I[e>>2]+I[e<<4&63]+"==")):l===2&&(e=(s[o-2]<<8)+s[o-1],u.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),u.join("")}},HBhm:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},HDXh:function(H,k,d){"use strict";(function(I){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var E=d("H7XF"),T=d("kVK+"),g=d("v3Qx");k.Buffer=c,k.SlowBuffer=u,k.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=I.TYPED_ARRAY_SUPPORT!==void 0?I.TYPED_ARRAY_SUPPORT:S(),k.kMaxLength=m();function S(){try{var ee=new Uint8Array(1);return ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ee.foo()===42&&typeof ee.subarray=="function"&&ee.subarray(1,1).byteLength===0}catch(X){return!1}}function m(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(ee,X){if(m()<X)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(ee=new Uint8Array(X),ee.__proto__=c.prototype):(ee===null&&(ee=new c(X)),ee.length=X),ee}function c(ee,X,G){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(ee,X,G);if(typeof ee=="number"){if(typeof X=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,ee)}return a(this,ee,X,G)}c.poolSize=8192,c._augment=function(ee){return ee.__proto__=c.prototype,ee};function a(ee,X,G,Z){if(typeof X=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&X instanceof ArrayBuffer?e(ee,X,G,Z):typeof X=="string"?t(ee,X,G):o(ee,X)}c.from=function(ee,X,G){return a(null,ee,X,G)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function r(ee){if(typeof ee!="number")throw new TypeError('"size" argument must be a number');if(ee<0)throw new RangeError('"size" argument must not be negative')}function i(ee,X,G,Z){return r(X),X<=0?h(ee,X):G!==void 0?typeof Z=="string"?h(ee,X).fill(G,Z):h(ee,X).fill(G):h(ee,X)}c.alloc=function(ee,X,G){return i(null,ee,X,G)};function n(ee,X){if(r(X),ee=h(ee,X<0?0:l(X)|0),!c.TYPED_ARRAY_SUPPORT)for(var G=0;G<X;++G)ee[G]=0;return ee}c.allocUnsafe=function(ee){return n(null,ee)},c.allocUnsafeSlow=function(ee){return n(null,ee)};function t(ee,X,G){if((typeof G!="string"||G==="")&&(G="utf8"),!c.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var Z=f(X,G)|0;ee=h(ee,Z);var ve=ee.write(X,G);return ve!==Z&&(ee=ee.slice(0,ve)),ee}function s(ee,X){var G=X.length<0?0:l(X.length)|0;ee=h(ee,G);for(var Z=0;Z<G;Z+=1)ee[Z]=X[Z]&255;return ee}function e(ee,X,G,Z){if(X.byteLength,G<0||X.byteLength<G)throw new RangeError("'offset' is out of bounds");if(X.byteLength<G+(Z||0))throw new RangeError("'length' is out of bounds");return G===void 0&&Z===void 0?X=new Uint8Array(X):Z===void 0?X=new Uint8Array(X,G):X=new Uint8Array(X,G,Z),c.TYPED_ARRAY_SUPPORT?(ee=X,ee.__proto__=c.prototype):ee=s(ee,X),ee}function o(ee,X){if(c.isBuffer(X)){var G=l(X.length)|0;return ee=h(ee,G),ee.length===0||X.copy(ee,0,0,G),ee}if(X){if(typeof ArrayBuffer!="undefined"&&X.buffer instanceof ArrayBuffer||"length"in X)return typeof X.length!="number"||Ke(X.length)?h(ee,0):s(ee,X);if(X.type==="Buffer"&&g(X.data))return s(ee,X.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(ee){if(ee>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return ee|0}function u(ee){return+ee!=ee&&(ee=0),c.alloc(+ee)}c.isBuffer=function(X){return!!(X!=null&&X._isBuffer)},c.compare=function(X,G){if(!c.isBuffer(X)||!c.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(X===G)return 0;for(var Z=X.length,ve=G.length,ue=0,_e=Math.min(Z,ve);ue<_e;++ue)if(X[ue]!==G[ue]){Z=X[ue],ve=G[ue];break}return Z<ve?-1:ve<Z?1:0},c.isEncoding=function(X){switch(String(X).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}},c.concat=function(X,G){if(!g(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return c.alloc(0);var Z;if(G===void 0)for(G=0,Z=0;Z<X.length;++Z)G+=X[Z].length;var ve=c.allocUnsafe(G),ue=0;for(Z=0;Z<X.length;++Z){var _e=X[Z];if(!c.isBuffer(_e))throw new TypeError('"list" argument must be an Array of Buffers');_e.copy(ve,ue),ue+=_e.length}return ve};function f(ee,X){if(c.isBuffer(ee))return ee.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ee)||ee instanceof ArrayBuffer))return ee.byteLength;typeof ee!="string"&&(ee=""+ee);var G=ee.length;if(G===0)return 0;for(var Z=!1;;)switch(X){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return Ne(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Q(ee).length;default:if(Z)return Ne(ee).length;X=(""+X).toLowerCase(),Z=!0}}c.byteLength=f;function p(ee,X,G){var Z=!1;if((X===void 0||X<0)&&(X=0),X>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,X>>>=0,G<=X)return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return j(this,X,G);case"utf8":case"utf-8":return D(this,X,G);case"ascii":return F(this,X,G);case"latin1":case"binary":return R(this,X,G);case"base64":return L(this,X,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,X,G);default:if(Z)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),Z=!0}}c.prototype._isBuffer=!0;function v(ee,X,G){var Z=ee[X];ee[X]=ee[G],ee[G]=Z}c.prototype.swap16=function(){var X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<X;G+=2)v(this,G,G+1);return this},c.prototype.swap32=function(){var X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<X;G+=4)v(this,G,G+3),v(this,G+1,G+2);return this},c.prototype.swap64=function(){var X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<X;G+=8)v(this,G,G+7),v(this,G+1,G+6),v(this,G+2,G+5),v(this,G+3,G+4);return this},c.prototype.toString=function(){var X=this.length|0;return X===0?"":arguments.length===0?D(this,0,X):p.apply(this,arguments)},c.prototype.equals=function(X){if(!c.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:c.compare(this,X)===0},c.prototype.inspect=function(){var X="",G=k.INSPECT_MAX_BYTES;return this.length>0&&(X=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(X+=" ... ")),"<Buffer "+X+">"},c.prototype.compare=function(X,G,Z,ve,ue){if(!c.isBuffer(X))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),Z===void 0&&(Z=X?X.length:0),ve===void 0&&(ve=0),ue===void 0&&(ue=this.length),G<0||Z>X.length||ve<0||ue>this.length)throw new RangeError("out of range index");if(ve>=ue&&G>=Z)return 0;if(ve>=ue)return-1;if(G>=Z)return 1;if(G>>>=0,Z>>>=0,ve>>>=0,ue>>>=0,this===X)return 0;for(var _e=ue-ve,xe=Z-G,oe=Math.min(_e,xe),fe=this.slice(ve,ue),Te=X.slice(G,Z),ze=0;ze<oe;++ze)if(fe[ze]!==Te[ze]){_e=fe[ze],xe=Te[ze];break}return _e<xe?-1:xe<_e?1:0};function A(ee,X,G,Z,ve){if(ee.length===0)return-1;if(typeof G=="string"?(Z=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=ve?0:ee.length-1),G<0&&(G=ee.length+G),G>=ee.length){if(ve)return-1;G=ee.length-1}else if(G<0)if(ve)G=0;else return-1;if(typeof X=="string"&&(X=c.from(X,Z)),c.isBuffer(X))return X.length===0?-1:y(ee,X,G,Z,ve);if(typeof X=="number")return X=X&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(ee,X,G):Uint8Array.prototype.lastIndexOf.call(ee,X,G):y(ee,[X],G,Z,ve);throw new TypeError("val must be string, number or Buffer")}function y(ee,X,G,Z,ve){var ue=1,_e=ee.length,xe=X.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(ee.length<2||X.length<2)return-1;ue=2,_e/=2,xe/=2,G/=2}function oe(et,Oe){return ue===1?et[Oe]:et.readUInt16BE(Oe*ue)}var fe;if(ve){var Te=-1;for(fe=G;fe<_e;fe++)if(oe(ee,fe)===oe(X,Te===-1?0:fe-Te)){if(Te===-1&&(Te=fe),fe-Te+1===xe)return Te*ue}else Te!==-1&&(fe-=fe-Te),Te=-1}else for(G+xe>_e&&(G=_e-xe),fe=G;fe>=0;fe--){for(var ze=!0,it=0;it<xe;it++)if(oe(ee,fe+it)!==oe(X,it)){ze=!1;break}if(ze)return fe}return-1}c.prototype.includes=function(X,G,Z){return this.indexOf(X,G,Z)!==-1},c.prototype.indexOf=function(X,G,Z){return A(this,X,G,Z,!0)},c.prototype.lastIndexOf=function(X,G,Z){return A(this,X,G,Z,!1)};function x(ee,X,G,Z){G=Number(G)||0;var ve=ee.length-G;Z?(Z=Number(Z),Z>ve&&(Z=ve)):Z=ve;var ue=X.length;if(ue%2!==0)throw new TypeError("Invalid hex string");Z>ue/2&&(Z=ue/2);for(var _e=0;_e<Z;++_e){var xe=parseInt(X.substr(_e*2,2),16);if(isNaN(xe))return _e;ee[G+_e]=xe}return _e}function C(ee,X,G,Z){return ce(Ne(X,ee.length-G),ee,G,Z)}function w(ee,X,G,Z){return ce(de(X),ee,G,Z)}function b(ee,X,G,Z){return w(ee,X,G,Z)}function _(ee,X,G,Z){return ce(Q(X),ee,G,Z)}function O(ee,X,G,Z){return ce(Le(X,ee.length-G),ee,G,Z)}c.prototype.write=function(X,G,Z,ve){if(G===void 0)ve="utf8",Z=this.length,G=0;else if(Z===void 0&&typeof G=="string")ve=G,Z=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(Z)?(Z=Z|0,ve===void 0&&(ve="utf8")):(ve=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-G;if((Z===void 0||Z>ue)&&(Z=ue),X.length>0&&(Z<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var _e=!1;;)switch(ve){case"hex":return x(this,X,G,Z);case"utf8":case"utf-8":return C(this,X,G,Z);case"ascii":return w(this,X,G,Z);case"latin1":case"binary":return b(this,X,G,Z);case"base64":return _(this,X,G,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,X,G,Z);default:if(_e)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),_e=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(ee,X,G){return X===0&&G===ee.length?E.fromByteArray(ee):E.fromByteArray(ee.slice(X,G))}function D(ee,X,G){G=Math.min(ee.length,G);for(var Z=[],ve=X;ve<G;){var ue=ee[ve],_e=null,xe=ue>239?4:ue>223?3:ue>191?2:1;if(ve+xe<=G){var oe,fe,Te,ze;switch(xe){case 1:ue<128&&(_e=ue);break;case 2:oe=ee[ve+1],(oe&192)===128&&(ze=(ue&31)<<6|oe&63,ze>127&&(_e=ze));break;case 3:oe=ee[ve+1],fe=ee[ve+2],(oe&192)===128&&(fe&192)===128&&(ze=(ue&15)<<12|(oe&63)<<6|fe&63,ze>2047&&(ze<55296||ze>57343)&&(_e=ze));break;case 4:oe=ee[ve+1],fe=ee[ve+2],Te=ee[ve+3],(oe&192)===128&&(fe&192)===128&&(Te&192)===128&&(ze=(ue&15)<<18|(oe&63)<<12|(fe&63)<<6|Te&63,ze>65535&&ze<1114112&&(_e=ze))}}_e===null?(_e=65533,xe=1):_e>65535&&(_e-=65536,Z.push(_e>>>10&1023|55296),_e=56320|_e&1023),Z.push(_e),ve+=xe}return M(Z)}var N=4096;function M(ee){var X=ee.length;if(X<=N)return String.fromCharCode.apply(String,ee);for(var G="",Z=0;Z<X;)G+=String.fromCharCode.apply(String,ee.slice(Z,Z+=N));return G}function F(ee,X,G){var Z="";G=Math.min(ee.length,G);for(var ve=X;ve<G;++ve)Z+=String.fromCharCode(ee[ve]&127);return Z}function R(ee,X,G){var Z="";G=Math.min(ee.length,G);for(var ve=X;ve<G;++ve)Z+=String.fromCharCode(ee[ve]);return Z}function j(ee,X,G){var Z=ee.length;(!X||X<0)&&(X=0),(!G||G<0||G>Z)&&(G=Z);for(var ve="",ue=X;ue<G;++ue)ve+=pe(ee[ue]);return ve}function B(ee,X,G){for(var Z=ee.slice(X,G),ve="",ue=0;ue<Z.length;ue+=2)ve+=String.fromCharCode(Z[ue]+Z[ue+1]*256);return ve}c.prototype.slice=function(X,G){var Z=this.length;X=~~X,G=G===void 0?Z:~~G,X<0?(X+=Z,X<0&&(X=0)):X>Z&&(X=Z),G<0?(G+=Z,G<0&&(G=0)):G>Z&&(G=Z),G<X&&(G=X);var ve;if(c.TYPED_ARRAY_SUPPORT)ve=this.subarray(X,G),ve.__proto__=c.prototype;else{var ue=G-X;ve=new c(ue,void 0);for(var _e=0;_e<ue;++_e)ve[_e]=this[_e+X]}return ve};function K(ee,X,G){if(ee%1!==0||ee<0)throw new RangeError("offset is not uint");if(ee+X>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=this[X],ue=1,_e=0;++_e<G&&(ue*=256);)ve+=this[X+_e]*ue;return ve},c.prototype.readUIntBE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=this[X+--G],ue=1;G>0&&(ue*=256);)ve+=this[X+--G]*ue;return ve},c.prototype.readUInt8=function(X,G){return G||K(X,1,this.length),this[X]},c.prototype.readUInt16LE=function(X,G){return G||K(X,2,this.length),this[X]|this[X+1]<<8},c.prototype.readUInt16BE=function(X,G){return G||K(X,2,this.length),this[X]<<8|this[X+1]},c.prototype.readUInt32LE=function(X,G){return G||K(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},c.prototype.readUInt32BE=function(X,G){return G||K(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},c.prototype.readIntLE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=this[X],ue=1,_e=0;++_e<G&&(ue*=256);)ve+=this[X+_e]*ue;return ue*=128,ve>=ue&&(ve-=Math.pow(2,8*G)),ve},c.prototype.readIntBE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=G,ue=1,_e=this[X+--ve];ve>0&&(ue*=256);)_e+=this[X+--ve]*ue;return ue*=128,_e>=ue&&(_e-=Math.pow(2,8*G)),_e},c.prototype.readInt8=function(X,G){return G||K(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},c.prototype.readInt16LE=function(X,G){G||K(X,2,this.length);var Z=this[X]|this[X+1]<<8;return Z&32768?Z|4294901760:Z},c.prototype.readInt16BE=function(X,G){G||K(X,2,this.length);var Z=this[X+1]|this[X]<<8;return Z&32768?Z|4294901760:Z},c.prototype.readInt32LE=function(X,G){return G||K(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},c.prototype.readInt32BE=function(X,G){return G||K(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},c.prototype.readFloatLE=function(X,G){return G||K(X,4,this.length),T.read(this,X,!0,23,4)},c.prototype.readFloatBE=function(X,G){return G||K(X,4,this.length),T.read(this,X,!1,23,4)},c.prototype.readDoubleLE=function(X,G){return G||K(X,8,this.length),T.read(this,X,!0,52,8)},c.prototype.readDoubleBE=function(X,G){return G||K(X,8,this.length),T.read(this,X,!1,52,8)};function U(ee,X,G,Z,ve,ue){if(!c.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>ve||X<ue)throw new RangeError('"value" argument is out of bounds');if(G+Z>ee.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(X,G,Z,ve){if(X=+X,G=G|0,Z=Z|0,!ve){var ue=Math.pow(2,8*Z)-1;U(this,X,G,Z,ue,0)}var _e=1,xe=0;for(this[G]=X&255;++xe<Z&&(_e*=256);)this[G+xe]=X/_e&255;return G+Z},c.prototype.writeUIntBE=function(X,G,Z,ve){if(X=+X,G=G|0,Z=Z|0,!ve){var ue=Math.pow(2,8*Z)-1;U(this,X,G,Z,ue,0)}var _e=Z-1,xe=1;for(this[G+_e]=X&255;--_e>=0&&(xe*=256);)this[G+_e]=X/xe&255;return G+Z},c.prototype.writeUInt8=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,1,255,0),c.TYPED_ARRAY_SUPPORT||(X=Math.floor(X)),this[G]=X&255,G+1};function z(ee,X,G,Z){X<0&&(X=65535+X+1);for(var ve=0,ue=Math.min(ee.length-G,2);ve<ue;++ve)ee[G+ve]=(X&255<<8*(Z?ve:1-ve))>>>(Z?ve:1-ve)*8}c.prototype.writeUInt16LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):z(this,X,G,!0),G+2},c.prototype.writeUInt16BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):z(this,X,G,!1),G+2};function V(ee,X,G,Z){X<0&&(X=4294967295+X+1);for(var ve=0,ue=Math.min(ee.length-G,4);ve<ue;++ve)ee[G+ve]=X>>>(Z?ve:3-ve)*8&255}c.prototype.writeUInt32LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G+3]=X>>>24,this[G+2]=X>>>16,this[G+1]=X>>>8,this[G]=X&255):V(this,X,G,!0),G+4},c.prototype.writeUInt32BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G]=X>>>24,this[G+1]=X>>>16,this[G+2]=X>>>8,this[G+3]=X&255):V(this,X,G,!1),G+4},c.prototype.writeIntLE=function(X,G,Z,ve){if(X=+X,G=G|0,!ve){var ue=Math.pow(2,8*Z-1);U(this,X,G,Z,ue-1,-ue)}var _e=0,xe=1,oe=0;for(this[G]=X&255;++_e<Z&&(xe*=256);)X<0&&oe===0&&this[G+_e-1]!==0&&(oe=1),this[G+_e]=(X/xe>>0)-oe&255;return G+Z},c.prototype.writeIntBE=function(X,G,Z,ve){if(X=+X,G=G|0,!ve){var ue=Math.pow(2,8*Z-1);U(this,X,G,Z,ue-1,-ue)}var _e=Z-1,xe=1,oe=0;for(this[G+_e]=X&255;--_e>=0&&(xe*=256);)X<0&&oe===0&&this[G+_e+1]!==0&&(oe=1),this[G+_e]=(X/xe>>0)-oe&255;return G+Z},c.prototype.writeInt8=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,1,127,-128),c.TYPED_ARRAY_SUPPORT||(X=Math.floor(X)),X<0&&(X=255+X+1),this[G]=X&255,G+1},c.prototype.writeInt16LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):z(this,X,G,!0),G+2},c.prototype.writeInt16BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):z(this,X,G,!1),G+2},c.prototype.writeInt32LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8,this[G+2]=X>>>16,this[G+3]=X>>>24):V(this,X,G,!0),G+4},c.prototype.writeInt32BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),c.TYPED_ARRAY_SUPPORT?(this[G]=X>>>24,this[G+1]=X>>>16,this[G+2]=X>>>8,this[G+3]=X&255):V(this,X,G,!1),G+4};function Y(ee,X,G,Z,ve,ue){if(G+Z>ee.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function J(ee,X,G,Z,ve){return ve||Y(ee,X,G,4,34028234663852886e22,-34028234663852886e22),T.write(ee,X,G,Z,23,4),G+4}c.prototype.writeFloatLE=function(X,G,Z){return J(this,X,G,!0,Z)},c.prototype.writeFloatBE=function(X,G,Z){return J(this,X,G,!1,Z)};function se(ee,X,G,Z,ve){return ve||Y(ee,X,G,8,17976931348623157e292,-17976931348623157e292),T.write(ee,X,G,Z,52,8),G+8}c.prototype.writeDoubleLE=function(X,G,Z){return se(this,X,G,!0,Z)},c.prototype.writeDoubleBE=function(X,G,Z){return se(this,X,G,!1,Z)},c.prototype.copy=function(X,G,Z,ve){if(Z||(Z=0),!ve&&ve!==0&&(ve=this.length),G>=X.length&&(G=X.length),G||(G=0),ve>0&&ve<Z&&(ve=Z),ve===Z)return 0;if(X.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),X.length-G<ve-Z&&(ve=X.length-G+Z);var ue=ve-Z,_e;if(this===X&&Z<G&&G<ve)for(_e=ue-1;_e>=0;--_e)X[_e+G]=this[_e+Z];else if(ue<1e3||!c.TYPED_ARRAY_SUPPORT)for(_e=0;_e<ue;++_e)X[_e+G]=this[_e+Z];else Uint8Array.prototype.set.call(X,this.subarray(Z,Z+ue),G);return ue},c.prototype.fill=function(X,G,Z,ve){if(typeof X=="string"){if(typeof G=="string"?(ve=G,G=0,Z=this.length):typeof Z=="string"&&(ve=Z,Z=this.length),X.length===1){var ue=X.charCodeAt(0);ue<256&&(X=ue)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!c.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof X=="number"&&(X=X&255);if(G<0||this.length<G||this.length<Z)throw new RangeError("Out of range index");if(Z<=G)return this;G=G>>>0,Z=Z===void 0?this.length:Z>>>0,X||(X=0);var _e;if(typeof X=="number")for(_e=G;_e<Z;++_e)this[_e]=X;else{var xe=c.isBuffer(X)?X:Ne(new c(X,ve).toString()),oe=xe.length;for(_e=0;_e<Z-G;++_e)this[_e+G]=xe[_e%oe]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function ae(ee){if(ee=ge(ee).replace($,""),ee.length<2)return"";for(;ee.length%4!==0;)ee=ee+"=";return ee}function ge(ee){return ee.trim?ee.trim():ee.replace(/^\s+|\s+$/g,"")}function pe(ee){return ee<16?"0"+ee.toString(16):ee.toString(16)}function Ne(ee,X){X=X||Infinity;for(var G,Z=ee.length,ve=null,ue=[],_e=0;_e<Z;++_e){if(G=ee.charCodeAt(_e),G>55295&&G<57344){if(!ve){if(G>56319){(X-=3)>-1&&ue.push(239,191,189);continue}else if(_e+1===Z){(X-=3)>-1&&ue.push(239,191,189);continue}ve=G;continue}if(G<56320){(X-=3)>-1&&ue.push(239,191,189),ve=G;continue}G=(ve-55296<<10|G-56320)+65536}else ve&&((X-=3)>-1&&ue.push(239,191,189));if(ve=null,G<128){if((X-=1)<0)break;ue.push(G)}else if(G<2048){if((X-=2)<0)break;ue.push(G>>6|192,G&63|128)}else if(G<65536){if((X-=3)<0)break;ue.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((X-=4)<0)break;ue.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ue}function de(ee){for(var X=[],G=0;G<ee.length;++G)X.push(ee.charCodeAt(G)&255);return X}function Le(ee,X){for(var G,Z,ve,ue=[],_e=0;_e<ee.length&&!((X-=2)<0);++_e)G=ee.charCodeAt(_e),Z=G>>8,ve=G%256,ue.push(ve),ue.push(Z);return ue}function Q(ee){return E.toByteArray(ae(ee))}function ce(ee,X,G,Z){for(var ve=0;ve<Z&&!(ve+G>=X.length||ve>=ee.length);++ve)X[ve+G]=ee[ve];return ve}function Ke(ee){return ee!==ee}}).call(this,d("yLpj"))},"HF/U":function(H,k,d){var I=d("QBsz");function E(g){var S=g.coordinateSystem;if(S&&S.type!=="view")return;var m=g.getGraph();m.eachNode(function(h){var c=h.getModel();h.setLayout([+c.get("x"),+c.get("y")])}),T(m)}function T(g){g.eachEdge(function(S){var m=S.getModel().get("lineStyle.curveness")||0,h=I.clone(S.node1.getLayout()),c=I.clone(S.node2.getLayout()),a=[h,c];+m&&a.push([(h[0]+c[0])/2-(h[1]-c[1])*m,(h[1]+c[1])/2-(c[0]-h[0])*m]),S.setLayout(a)})}k.simpleLayout=E,k.simpleLayoutEdge=T},"HM/N":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("/SeX"),S=d("OELB"),m=S.parsePercent,h=d("aX7z"),c=h.createScaleByModel,a=h.niceScaleExtent,r=d("IDmD"),i=d("7hqr"),n=i.getStackedDimension;d("ePAk");function t(l,u,f){var p=u.get("center"),v=f.getWidth(),A=f.getHeight();l.cx=m(p[0],v),l.cy=m(p[1],A);var y=l.getRadiusAxis(),x=Math.min(v,A)/2,C=u.get("radius");C==null?C=[0,"100%"]:T.isArray(C)||(C=[0,C]),C=[m(C[0],x),m(C[1],x)],y.inverse?y.setExtent(C[1],C[0]):y.setExtent(C[0],C[1])}function s(l,u){var f=this,p=f.getAngleAxis(),v=f.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),v.scale.setExtent(Infinity,-Infinity),l.eachSeries(function(x){if(x.coordinateSystem===f){var C=x.getData();T.each(C.mapDimension("radius",!0),function(w){v.scale.unionExtentFromData(C,n(C,w))}),T.each(C.mapDimension("angle",!0),function(w){p.scale.unionExtentFromData(C,n(C,w))})}}),a(p.scale,p.model),a(v.scale,v.model),p.type==="category"&&!p.onBand){var A=p.getExtent(),y=360/p.scale.count();p.inverse?A[1]+=y:A[1]-=y,p.setExtent(A[0],A[1])}}function e(l,u){if(l.type=u.get("type"),l.scale=c(u),l.onBand=u.get("boundaryGap")&&l.type==="category",l.inverse=u.get("inverse"),u.mainType==="angleAxis"){l.inverse^=u.get("clockwise");var f=u.get("startAngle");l.setExtent(f,f+(l.inverse?-360:360))}u.axis=l,l.model=u}var o={dimensions:g.prototype.dimensions,create:function(l,u){var f=[];return l.eachComponent("polar",function(p,v){var A=new g(v);A.update=s;var y=A.getRadiusAxis(),x=A.getAngleAxis(),C=p.findAxisModel("radiusAxis"),w=p.findAxisModel("angleAxis");e(y,C),e(x,w),t(A,p,u),f.push(A),p.coordinateSystem=A,A.model=p}),l.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var v=l.queryComponents({mainType:"polar",index:p.get("polarIndex"),id:p.get("polarId")})[0];p.coordinateSystem=v.coordinateSystem}}),f}};r.register("polar",o)},HQEm:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("Sj0X"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},HjIi:function(H,k,d){var I=d("bYtY"),E=d("OELB"),T=E.parsePercent,g=d("7hqr"),S=g.isDimensionStacked;function m(i){return i.get("stack")||"__ec_stack_"+i.seriesIndex}function h(i,n){return n.dim+i.model.componentIndex}function c(i,n,t){var s={},e=a(I.filter(n.getSeriesByType(i),function(o){return!n.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));n.eachSeriesByType(i,function(o){if(o.coordinateSystem.type!=="polar")return;var l=o.getData(),u=o.coordinateSystem,f=u.getBaseAxis(),p=h(u,f),v=m(o),A=e[p][v],y=A.offset,x=A.width,C=u.getOtherAxis(f),w=o.coordinateSystem.cx,b=o.coordinateSystem.cy,_=o.get("barMinHeight")||0,O=o.get("barMinAngle")||0;s[v]=s[v]||[];for(var L=l.mapDimension(C.dim),D=l.mapDimension(f.dim),N=S(l,L),M=f.dim!=="radius"||!o.get("roundCap",!0),F=C.getExtent()[0],R=0,j=l.count();R<j;R++){var B=l.get(L,R),K=l.get(D,R),U=B>=0?"p":"n",z=F;N&&(s[v][K]||(s[v][K]={p:F,n:F}),z=s[v][K][U]);var V,Y,J,se;if(C.dim==="radius"){var $=C.dataToRadius(B)-F,ae=f.dataToAngle(K);Math.abs($)<_&&($=($<0?-1:1)*_),V=z,Y=z+$,J=ae-y,se=J-x,N&&(s[v][K][U]=Y)}else{var ge=C.dataToAngle(B,M)-F,pe=f.dataToRadius(K);Math.abs(ge)<O&&(ge=(ge<0?-1:1)*O),V=pe+y,Y=V+x,J=z,se=z+ge,N&&(s[v][K][U]=se)}l.setItemLayout(R,{cx:w,cy:b,r0:V,r:Y,startAngle:-J*Math.PI/180,endAngle:-se*Math.PI/180})}},this)}function a(i,n){var t={};I.each(i,function(e,o){var l=e.getData(),u=e.coordinateSystem,f=u.getBaseAxis(),p=h(u,f),v=f.getExtent(),A=f.type==="category"?f.getBandWidth():Math.abs(v[1]-v[0])/l.count(),y=t[p]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},x=y.stacks;t[p]=y;var C=m(e);x[C]||y.autoWidthCount++,x[C]=x[C]||{width:0,maxWidth:0};var w=T(e.get("barWidth"),A),b=T(e.get("barMaxWidth"),A),_=e.get("barGap"),O=e.get("barCategoryGap");w&&!x[C].width&&(w=Math.min(y.remainedWidth,w),x[C].width=w,y.remainedWidth-=w),b&&(x[C].maxWidth=b),_!=null&&(y.gap=_),O!=null&&(y.categoryGap=O)});var s={};return I.each(t,function(e,o){s[o]={};var l=e.stacks,u=e.bandWidth,f=T(e.categoryGap,u),p=T(e.gap,1),v=e.remainedWidth,A=e.autoWidthCount,y=(v-f)/(A+(A-1)*p);y=Math.max(y,0),I.each(l,function(b,_){var O=b.maxWidth;O&&O<y&&(O=Math.min(O,v),b.width&&(O=Math.min(O,b.width)),v-=O,b.width=O,A--)}),y=(v-f)/(A+(A-1)*p),y=Math.max(y,0);var x=0,C;I.each(l,function(b,_){b.width||(b.width=y),C=b,x+=b.width*(1+p)}),C&&(x-=C.width*p);var w=-x/2;I.each(l,function(b,_){s[o][_]=s[o][_]||{offset:w,width:b.width},w+=b.width*(1+p)})}),s}var r=c;H.exports=r},HjOm:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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"},E=I;k.default=E},Hw7h:function(H,k,d){var I=d("y+Vt"),E=I.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(T,g){var S=Math.cos,m=Math.sin,h=g.r,c=g.width,a=g.angle,r=g.x-S(a)*c*(c>=h/3?1:2),i=g.y-m(a)*c*(c>=h/3?1:2);a=g.angle-Math.PI/2,T.moveTo(r,i),T.lineTo(g.x+S(a)*c,g.y+m(a)*c),T.lineTo(g.x+S(g.angle)*h,g.y+m(g.angle)*h),T.lineTo(g.x-S(a)*c,g.y-m(a)*c),T.lineTo(r,i);return}});H.exports=E},Hxpc:function(H,k,d){var I=d("bYtY"),E=d("4NO4"),T=d("bLfw"),g=d("Qxkt"),S=d("cCMj"),m=d("7uqq"),h=T.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(a){T.prototype.init.apply(this,arguments),E.defaultEmphasis(a,"label",["show"])},optionUpdated:function(){var a=this.option,r=this;a.regions=m.getFilledRegions(a.regions,a.map,a.nameMap),this._optionModelMap=I.reduce(a.regions||[],function(i,n){return n.name&&i.set(n.name,new g(n,r)),i},I.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 g(null,this,this.ecModel)},getFormattedLabel:function(a,r){var i=this.getRegionModel(a),n=i.get("label"+(r==="normal"?".":r+".")+"formatter"),t={name:a};if(typeof n=="function")return t.status=r,n(t);if(typeof n=="string")return n.replace("{a}",a!=null?a:"")},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a}});I.mixin(h,S);var c=h;H.exports=c},"I+77":function(H,k,d){var I=d("ProS");d("h54F"),d("lwQL"),d("10cm");var E=d("Z1r0"),T=d("f5Yq"),g=d("KUOm"),S=d("3m61"),m=d("01d+"),h=d("rdor"),c=d("WGYa"),a=d("ewwo");I.registerProcessor(E),I.registerVisual(T("graph","circle",null)),I.registerVisual(g),I.registerVisual(S),I.registerLayout(m),I.registerLayout(I.PRIORITY.VISUAL.POST_CHART_LAYOUT,h),I.registerLayout(c),I.registerCoordinateSystem("graphView",{create:a})},"I+Bx":function(H,k,d){var I=d("bYtY"),E=d("eIcI"),T=d("ieMj"),g=d("OELB"),S=d("aX7z"),m=S.getScaleExtent,h=S.niceScaleExtent,c=d("IDmD"),a=d("jCoz");function r(n,t,s){this._model=n,this.dimensions=[],this._indicatorAxes=I.map(n.getIndicatorModels(),function(e,o){var l="indicator_"+o,u=new E(l,e.get("axisType")==="log"?new a:new T);return u.name=e.get("name"),u.model=e,e.axis=u,this.dimensions.push(l),u},this),this.resize(n,s),this.cx,this.cy,this.r,this.r0,this.startAngle}r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(n,t){var s=this._indicatorAxes[t];return this.coordToPoint(s.dataToCoord(n),t)},r.prototype.coordToPoint=function(n,t){var s=this._indicatorAxes[t],e=s.angle,o=this.cx+n*Math.cos(e),l=this.cy-n*Math.sin(e);return[o,l]},r.prototype.pointToData=function(n){var t=n[0]-this.cx,s=n[1]-this.cy,e=Math.sqrt(t*t+s*s);t/=e,s/=e;for(var o=Math.atan2(-s,t),l=Infinity,u,f=-1,p=0;p<this._indicatorAxes.length;p++){var v=this._indicatorAxes[p],A=Math.abs(o-v.angle);A<l&&(u=v,f=p,l=A)}return[f,+(u&&u.coordToData(e))]},r.prototype.resize=function(n,t){var s=n.get("center"),e=t.getWidth(),o=t.getHeight(),l=Math.min(e,o)/2;this.cx=g.parsePercent(s[0],e),this.cy=g.parsePercent(s[1],o),this.startAngle=n.get("startAngle")*Math.PI/180;var u=n.get("radius");(typeof u=="string"||typeof u=="number")&&(u=[0,u]),this.r0=g.parsePercent(u[0],l),this.r=g.parsePercent(u[1],l),I.each(this._indicatorAxes,function(f,p){f.setExtent(this.r0,this.r);var v=this.startAngle+p*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),f.angle=v},this)},r.prototype.update=function(n,t){var s=this._indicatorAxes,e=this._model;I.each(s,function(u){u.scale.setExtent(Infinity,-Infinity)}),n.eachSeriesByType("radar",function(u,f){if(u.get("coordinateSystem")!=="radar"||n.getComponent("radar",u.get("radarIndex"))!==e)return;var p=u.getData();I.each(s,function(v){v.scale.unionExtentFromData(p,p.mapDimension(v.dim))})},this);var o=e.get("splitNumber");function l(u){var f=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),p=u/f;return p===2?p=5:p*=2,p*f}I.each(s,function(u,f){var p=m(u.scale,u.model).extent;h(u.scale,u.model);var v=u.model,A=u.scale,y=v.getMin(),x=v.getMax(),C=A.getInterval();if(y!=null&&x!=null)A.setExtent(+y,+x),A.setInterval((x-y)/o);else if(y!=null){var w;do w=y+C*o,A.setExtent(+y,w),A.setInterval(C),C=l(C);while(w<p[1]&&isFinite(w)&&isFinite(p[1]))}else if(x!=null){var b;do b=x-C*o,A.setExtent(b,+x),A.setInterval(C),C=l(C);while(b>p[0]&&isFinite(b)&&isFinite(p[0]))}else{var _=A.getTicks().length-1;_>o&&(C=l(C));var w=Math.ceil(p[1]/C)*C,b=g.round(w-C*o);A.setExtent(b,w),A.setInterval(C)}})},r.dimensions=[],r.create=function(n,t){var s=[];return n.eachComponent("radar",function(e){var o=new r(e,n,t);s.push(o),e.coordinateSystem=o}),n.eachSeriesByType("radar",function(e){e.get("coordinateSystem")==="radar"&&(e.coordinateSystem=s[e.get("radarIndex")||0])}),s},c.register("radar",r);var i=r;H.exports=i},"I3/A":function(H,k,d){var I=d("bYtY"),E=d("YXkt"),T=d("c2i1"),g=d("Mdki"),S=d("sdST"),m=d("IDmD"),h=d("MwEJ");function c(a,r,i,n,t){for(var s=new T(n),e=0;e<a.length;e++)s.addNode(I.retrieve(a[e].id,a[e].name,e),e);for(var o=[],l=[],u=0,e=0;e<r.length;e++){var f=r[e],p=f.source,v=f.target;s.addEdge(p,v,u)&&(l.push(f),o.push(I.retrieve(f.id,p+" > "+v)),u++)}var A=i.get("coordinateSystem"),y;if(A==="cartesian2d"||A==="polar")y=h(a,i);else{var x=m.get(A),C=x&&x.type!=="view"?x.dimensions||[]:[];I.indexOf(C,"value")<0&&C.concat(["value"]);var w=S(a,{coordDimensions:C});y=new E(w,i),y.initData(a)}var b=new E(["value"],i);return b.initData(l,o),t&&t(y,b),g({mainData:y,struct:s,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),s.update(),s}H.exports=c},I8Z2:function(H,k,d){"use strict";d.d(k,"a",function(){return g}),d.d(k,"b",function(){return t}),d.d(k,"c",function(){return e});var I=d("q1tI"),E=function(){var o=function(u,f){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var A in v)v.hasOwnProperty(A)&&(p[A]=v[A])},o(u,f)};return function(l,u){o(l,u);function f(){this.constructor=l}l.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),T=I.createContext(null),g=function(o){E(l,o);function l(){return o!==null&&o.apply(this,arguments)||this}return l.prototype.render=function(){return I.createElement(T.Provider,{value:this.props.store},this.props.children)},l}(I.Component),S=d("Gytx"),m=d.n(S),h=d("2mql"),c=d.n(h),a=function(){var o=function(u,f){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var A in v)v.hasOwnProperty(A)&&(p[A]=v[A])},o(u,f)};return function(l,u){o(l,u);function f(){this.constructor=l}l.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),r=function(){return r=Object.assign||function(o){for(var l,u=1,f=arguments.length;u<f;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(o[p]=l[p])}return o},r.apply(this,arguments)};function i(o){return o.displayName||o.name||"Component"}var n=function(){return{}};function t(o,l){l===void 0&&(l={});var u=!!o,f=o||n;return function(v){var A=function(x){a(C,x);function C(w,b){var _=x.call(this,w,b)||this;return _.unsubscribe=null,_.handleChange=function(){if(!_.unsubscribe)return;var O=f(_.store.getState(),_.props);_.setState({subscribed:O})},_.store=_.context,_.state={subscribed:f(_.store.getState(),w),store:_.store,props:w},_}return C.getDerivedStateFromProps=function(w,b){return o&&o.length===2&&w!==b.props?{subscribed:f(b.store.getState(),w),props:w}:{props:w}},C.prototype.componentDidMount=function(){this.trySubscribe()},C.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},C.prototype.shouldComponentUpdate=function(w,b){return!m()(this.props,w)||!m()(this.state.subscribed,b.subscribed)},C.prototype.trySubscribe=function(){u&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},C.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},C.prototype.render=function(){var w=r(r(r({},this.props),this.state.subscribed),{store:this.store});return I.createElement(v,r({},w,{ref:this.props.miniStoreForwardedRef}))},C.displayName="Connect("+i(v)+")",C.contextType=T,C}(I.Component);if(l.forwardRef){var y=I.forwardRef(function(x,C){return I.createElement(A,r({},x,{miniStoreForwardedRef:C}))});return c()(y,v)}return c()(A,v)}}var s=function(){return s=Object.assign||function(o){for(var l,u=1,f=arguments.length;u<f;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(o[p]=l[p])}return o},s.apply(this,arguments)};function e(o){var l=o,u=[];function f(A){l=s(s({},l),A);for(var y=0;y<u.length;y++)u[y]()}function p(){return l}function v(A){return u.push(A),function(){var x=u.indexOf(A);u.splice(x,1)}}return{setState:f,getState:p,subscribe:v}}},"I9Y+":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("4xFK")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="DoubleRightOutlined";var c=g.forwardRef(h);k.default=c},ICMv:function(H,k,d){var I=d("bYtY"),E={getMin:function(T){var g=this.option,S=!T&&g.rangeStart!=null?g.rangeStart:g.min;return this.axis&&S!=null&&S!=="dataMin"&&typeof S!="function"&&!I.eqNaN(S)&&(S=this.axis.scale.parse(S)),S},getMax:function(T){var g=this.option,S=!T&&g.rangeEnd!=null?g.rangeEnd:g.max;return this.axis&&S!=null&&S!=="dataMax"&&typeof S!="function"&&!I.eqNaN(S)&&(S=this.axis.scale.parse(S)),S},getNeedCrossZero:function(){var T=this.option;return T.rangeStart!=null||T.rangeEnd!=null?!1:!T.scale},getCoordSysModel:I.noop,setRange:function(T,g){this.option.rangeStart=T,this.option.rangeEnd=g},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};H.exports=E},IDmD:function(H,k,d){var I=d("bYtY"),E={};function T(){this._coordinateSystems=[]}T.prototype={constructor:T,create:function(S,m){var h=[];I.each(E,function(c,a){var r=c.create(S,m);h=h.concat(r||[])}),this._coordinateSystems=h},update:function(S,m){I.each(this._coordinateSystems,function(h){h.update&&h.update(S,m)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},T.register=function(S,m){E[S]=m},T.get=function(S){return E[S]};var g=T;H.exports=g},IMiH:function(H,k,d){var I=d("Sj9i"),E=d("QBsz"),T=d("4mN7"),g=d("mFDi"),S=d("LPTA"),m=S.devicePixelRatio,h={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],a=[],r=[],i=[],n=Math.min,t=Math.max,s=Math.cos,e=Math.sin,o=Math.sqrt,l=Math.abs,u=typeof Float32Array!="undefined",f=function(A){this._saveData=!(A||!1),this._saveData&&(this.data=[]),this._ctx=null};f.prototype={constructor:f,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(A,y,x){x=x||0,this._ux=l(x/m/A)||0,this._uy=l(x/m/y)||0},getContext:function(){return this._ctx},beginPath:function(A){return this._ctx=A,A&&A.beginPath(),A&&(this.dpr=A.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(A,y){return this.addData(h.M,A,y),this._ctx&&this._ctx.moveTo(A,y),this._x0=A,this._y0=y,this._xi=A,this._yi=y,this},lineTo:function(A,y){var x=l(A-this._xi)>this._ux||l(y-this._yi)>this._uy||this._len<5;return this.addData(h.L,A,y),this._ctx&&x&&(this._needsDash()?this._dashedLineTo(A,y):this._ctx.lineTo(A,y)),x&&(this._xi=A,this._yi=y),this},bezierCurveTo:function(A,y,x,C,w,b){return this.addData(h.C,A,y,x,C,w,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(A,y,x,C,w,b):this._ctx.bezierCurveTo(A,y,x,C,w,b)),this._xi=w,this._yi=b,this},quadraticCurveTo:function(A,y,x,C){return this.addData(h.Q,A,y,x,C),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(A,y,x,C):this._ctx.quadraticCurveTo(A,y,x,C)),this._xi=x,this._yi=C,this},arc:function(A,y,x,C,w,b){return this.addData(h.A,A,y,x,x,C,w-C,0,b?0:1),this._ctx&&this._ctx.arc(A,y,x,C,w,b),this._xi=s(w)*x+A,this._yi=e(w)*x+y,this},arcTo:function(A,y,x,C,w){return this._ctx&&this._ctx.arcTo(A,y,x,C,w),this},rect:function(A,y,x,C){return this._ctx&&this._ctx.rect(A,y,x,C),this.addData(h.R,A,y,x,C),this},closePath:function(){this.addData(h.Z);var A=this._ctx,y=this._x0,x=this._y0;return A&&(this._needsDash()&&this._dashedLineTo(y,x),A.closePath()),this._xi=y,this._yi=x,this},fill:function(A){A&&A.fill(),this.toStatic()},stroke:function(A){A&&A.stroke(),this.toStatic()},setLineDash:function(A){if(A instanceof Array){this._lineDash=A,this._dashIdx=0;for(var y=0,x=0;x<A.length;x++)y+=A[x];this._dashSum=y}return this},setLineDashOffset:function(A){return this._dashOffset=A,this},len:function(){return this._len},setData:function(A){var y=A.length;!(this.data&&this.data.length===y)&&u&&(this.data=new Float32Array(y));for(var x=0;x<y;x++)this.data[x]=A[x];this._len=y},appendPath:function(A){A instanceof Array||(A=[A]);for(var y=A.length,x=0,C=this._len,w=0;w<y;w++)x+=A[w].len();u&&this.data instanceof Float32Array&&(this.data=new Float32Array(C+x));for(var w=0;w<y;w++)for(var b=A[w].data,_=0;_<b.length;_++)this.data[C++]=b[_];this._len=C},addData:function(A){if(!this._saveData)return;var y=this.data;this._len+arguments.length>y.length&&(this._expandData(),y=this.data);for(var x=0;x<arguments.length;x++)y[this._len++]=arguments[x];this._prevCmd=A},_expandData:function(){if(!(this.data instanceof Array)){for(var A=[],y=0;y<this._len;y++)A[y]=this.data[y];this.data=A}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(A,y){var x=this._dashSum,C=this._dashOffset,w=this._lineDash,b=this._ctx,_=this._xi,O=this._yi,L=A-_,D=y-O,N=o(L*L+D*D),M=_,F=O,R,j=w.length,B;for(L/=N,D/=N,C<0&&(C=x+C),C%=x,M-=C*L,F-=C*D;L>0&&M<=A||L<0&&M>=A||L===0&&(D>0&&F<=y||D<0&&F>=y);){if(B=this._dashIdx,R=w[B],M+=L*R,F+=D*R,this._dashIdx=(B+1)%j,L>0&&M<_||L<0&&M>_||D>0&&F<O||D<0&&F>O)continue;b[B%2?"moveTo":"lineTo"](L>=0?n(M,A):t(M,A),D>=0?n(F,y):t(F,y))}L=M-A,D=F-y,this._dashOffset=-o(L*L+D*D)},_dashedBezierTo:function(A,y,x,C,w,b){var _=this._dashSum,O=this._dashOffset,L=this._lineDash,D=this._ctx,N=this._xi,M=this._yi,F,R,j,B=I.cubicAt,K=0,U=this._dashIdx,z=L.length,V,Y,J=0;for(O<0&&(O=_+O),O%=_,F=0;F<1;F+=.1)R=B(N,A,x,w,F+.1)-B(N,A,x,w,F),j=B(M,y,C,b,F+.1)-B(M,y,C,b,F),K+=o(R*R+j*j);for(;U<z&&!(J+=L[U],J>O);U++);for(F=(J-O)/K;F<=1;)V=B(N,A,x,w,F),Y=B(M,y,C,b,F),U%2?D.moveTo(V,Y):D.lineTo(V,Y),F+=L[U]/K,U=(U+1)%z;U%2!==0&&D.lineTo(w,b),R=w-V,j=b-Y,this._dashOffset=-o(R*R+j*j)},_dashedQuadraticTo:function(A,y,x,C){var w=x,b=C;x=(x+2*A)/3,C=(C+2*y)/3,A=(this._xi+2*A)/3,y=(this._yi+2*y)/3,this._dashedBezierTo(A,y,x,C,w,b)},toStatic:function(){var A=this.data;A instanceof Array&&(A.length=this._len,u&&(this.data=new Float32Array(A)))},getBoundingRect:function(){c[0]=c[1]=r[0]=r[1]=Number.MAX_VALUE,a[0]=a[1]=i[0]=i[1]=-Number.MAX_VALUE;for(var A=this.data,y=0,x=0,C=0,w=0,b=0;b<A.length;){var _=A[b++];b===1&&(y=A[b],x=A[b+1],C=y,w=x);switch(_){case h.M:C=A[b++],w=A[b++],y=C,x=w,r[0]=C,r[1]=w,i[0]=C,i[1]=w;break;case h.L:T.fromLine(y,x,A[b],A[b+1],r,i),y=A[b++],x=A[b++];break;case h.C:T.fromCubic(y,x,A[b++],A[b++],A[b++],A[b++],A[b],A[b+1],r,i),y=A[b++],x=A[b++];break;case h.Q:T.fromQuadratic(y,x,A[b++],A[b++],A[b],A[b+1],r,i),y=A[b++],x=A[b++];break;case h.A:var O=A[b++],L=A[b++],D=A[b++],N=A[b++],M=A[b++],F=A[b++]+M;b+=1;var R=1-A[b++];b===1&&(C=s(M)*D+O,w=e(M)*N+L),T.fromArc(O,L,D,N,M,F,R,r,i),y=s(F)*D+O,x=e(F)*N+L;break;case h.R:C=y=A[b++],w=x=A[b++];var j=A[b++],B=A[b++];T.fromLine(C,w,C+j,w+B,r,i);break;case h.Z:y=C,x=w;break}E.min(c,c,r),E.max(a,a,i)}return b===0&&(c[0]=c[1]=a[0]=a[1]=0),new g(c[0],c[1],a[0]-c[0],a[1]-c[1])},rebuildPath:function(A){for(var y=this.data,x,C,w,b,_,O,L=this._ux,D=this._uy,N=this._len,M=0;M<N;){var F=y[M++];M===1&&(w=y[M],b=y[M+1],x=w,C=b);switch(F){case h.M:x=w=y[M++],C=b=y[M++],A.moveTo(w,b);break;case h.L:_=y[M++],O=y[M++],(l(_-w)>L||l(O-b)>D||M===N-1)&&(A.lineTo(_,O),w=_,b=O);break;case h.C:A.bezierCurveTo(y[M++],y[M++],y[M++],y[M++],y[M++],y[M++]),w=y[M-2],b=y[M-1];break;case h.Q:A.quadraticCurveTo(y[M++],y[M++],y[M++],y[M++]),w=y[M-2],b=y[M-1];break;case h.A:var R=y[M++],j=y[M++],B=y[M++],K=y[M++],U=y[M++],z=y[M++],V=y[M++],Y=y[M++],J=B>K?B:K,se=B>K?1:B/K,$=B>K?K/B:1,ae=Math.abs(B-K)>.001,ge=U+z;ae?(A.translate(R,j),A.rotate(V),A.scale(se,$),A.arc(0,0,J,U,ge,1-Y),A.scale(1/se,1/$),A.rotate(-V),A.translate(-R,-j)):A.arc(R,j,J,U,ge,1-Y),M===1&&(x=s(U)*B+R,C=e(U)*K+j),w=s(ge)*B+R,b=e(ge)*K+j;break;case h.R:x=w=y[M],C=b=y[M+1],A.rect(y[M++],y[M++],y[M++],y[M++]);break;case h.Z:A.closePath(),w=x,b=C}}}},f.CMD=h;var p=f;H.exports=p},IUWy:function(H,k){var d={};function I(T,g){d[T]=g}function E(T){return d[T]}k.register=I,k.get=E},IWNH:function(H,k,d){var I=d("T4UG"),E=d("Bsck"),T=d("7aKB"),g=T.encodeHTML,S=d("Qxkt"),m=I.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(h){var c={name:h.name,children:h.data},a=h.leaves||{},r=new S(a,this,this.ecModel),i=E.createTree(c,this,{},n);function n(o){o.wrapMethod("getItemModel",function(l,u){var f=i.getNodeByDataIndex(u);return(!f.children.length||!f.isExpand)&&(l.parentModel=r),l})}var t=0;i.eachNode("preorder",function(o){o.depth>t&&(t=o.depth)});var s=h.expandAndCollapse,e=s&&h.initialTreeDepth>=0?h.initialTreeDepth:t;return i.root.eachNode("preorder",function(o){var l=o.hostTree.data.getRawDataItem(o.dataIndex);o.isExpand=l&&l.collapsed!=null?!l.collapsed:o.depth<=e}),i.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 c=this.getData().tree,a=c.root.children[0],r=c.getNodeByDataIndex(h),i=r.getValue(),n=r.name;r&&r!==a;)n=r.parentNode.name+"."+n,r=r.parentNode;return g(n+(isNaN(i)||i==null?"":" : "+i))},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}});H.exports=m},IWp7:function(H,k,d){var I=d("bYtY"),E=d("OELB"),T=d("7aKB"),g=d("lE7J"),S=d("ieMj"),m=S.prototype,h=Math.ceil,c=Math.floor,a=1e3,r=a*60,i=r*60,n=i*24,t=function(l,u,f,p){for(;f<p;){var v=f+p>>>1;l[v][1]<u?f=v+1:p=v}return f},s=S.extend({type:"time",getLabel:function(l){var u=this._stepLvl,f=new Date(l);return T.formatTime(u[0],f,this.getSetting("useUTC"))},niceExtent:function(l){var u=this._extent;if(u[0]===u[1]&&(u[0]-=n,u[1]+=n),u[1]===-Infinity&&u[0]===Infinity){var f=new Date;u[1]=+new Date(f.getFullYear(),f.getMonth(),f.getDate()),u[0]=u[1]-n}this.niceTicks(l.splitNumber,l.minInterval,l.maxInterval);var p=this._interval;l.fixMin||(u[0]=E.round(c(u[0]/p)*p)),l.fixMax||(u[1]=E.round(h(u[1]/p)*p))},niceTicks:function(l,u,f){l=l||10;var p=this._extent,v=p[1]-p[0],A=v/l;u!=null&&A<u&&(A=u),f!=null&&A>f&&(A=f);var y=e.length,x=t(e,A,0,y),C=e[Math.min(x,y-1)],w=C[1];if(C[0]==="year"){var b=v/w,_=E.nice(b/l,!0);w*=_}var O=this.getSetting("useUTC")?0:new Date(+p[0]||+p[1]).getTimezoneOffset()*60*1e3,L=[Math.round(h((p[0]-O)/w)*w+O),Math.round(c((p[1]-O)/w)*w+O)];g.fixExtent(L,p),this._stepLvl=C,this._interval=w,this._niceExtent=L},parse:function(l){return+E.parseDate(l)}});I.each(["contain","normalize"],function(l){s.prototype[l]=function(u){return m[l].call(this,this.parse(u))}});var e=[["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`,r],[`hh:mm
|
|
|
MM-dd`,r*5],[`hh:mm
|
|
|
MM-dd`,r*10],[`hh:mm
|
|
|
MM-dd`,r*15],[`hh:mm
|
|
|
MM-dd`,r*30],[`hh:mm
|
|
|
MM-dd`,i],[`hh:mm
|
|
|
MM-dd`,i*2],[`hh:mm
|
|
|
MM-dd`,i*6],[`hh:mm
|
|
|
MM-dd`,i*12],[`MM-dd
|
|
|
yyyy`,n],[`MM-dd
|
|
|
yyyy`,n*2],[`MM-dd
|
|
|
yyyy`,n*3],[`MM-dd
|
|
|
yyyy`,n*4],[`MM-dd
|
|
|
yyyy`,n*5],[`MM-dd
|
|
|
yyyy`,n*6],["week",n*7],[`MM-dd
|
|
|
yyyy`,n*10],["week",n*14],["week",n*21],["month",n*31],["week",n*42],["month",n*62],["week",n*70],["quarter",n*95],["month",n*31*4],["month",n*31*5],["half-year",n*380/2],["month",n*31*8],["month",n*31*10],["year",n*380]];s.create=function(l){return new s({useUTC:l.ecModel.get("useUTC")})};var o=s;H.exports=o},IXuL:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("MwEJ"),g=d("T4UG"),S=g.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(m,h){return T(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}});H.exports=S},IXyC:function(H,k,d){var I=d("bYtY"),E=d("bLfw");d("3zoK");var T=E.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(){E.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(g){var S=this.option;g&&I.merge(S,g,!0),this._initDimensions()},contains:function(g,S){var m=g.get("parallelIndex");return m!=null&&S.getComponent("parallel",m)===this},setAxisExpand:function(g){I.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(S){g.hasOwnProperty(S)&&(this.option[S]=g[S])},this)},_initDimensions:function(){var g=this.dimensions=[],S=this.parallelAxisIndex=[],m=I.filter(this.dependentModels.parallelAxis,function(h){return(h.get("parallelIndex")||0)===this.componentIndex},this);I.each(m,function(h){g.push("dim"+h.get("dim")),S.push(h.componentIndex)})}});H.exports=T},Ib8C:function(H,k,d){(function(I){(function(E,T){H.exports=k=T()})(this,function(){var E=E||function(T,g){var S;if(typeof window!="undefined"&&window.crypto&&(S=window.crypto),typeof self!="undefined"&&self.crypto&&(S=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(S=globalThis.crypto),!S&&typeof window!="undefined"&&window.msCrypto&&(S=window.msCrypto),!S&&typeof I!="undefined"&&I.crypto&&(S=I.crypto),!S&&!0)try{S=d(4)}catch(f){}var m=function(){if(S){if(typeof S.getRandomValues=="function")try{return S.getRandomValues(new Uint32Array(1))[0]}catch(p){}if(typeof S.randomBytes=="function")try{return S.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||function(){function f(){}return function(p){var v;return f.prototype=p,v=new f,f.prototype=null,v}}(),c={},a=c.lib={},r=a.Base=function(){return{extend:function(p){var v=h(this);return p&&v.mixIn(p),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var v in p)p.hasOwnProperty(v)&&(this[v]=p[v]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=a.WordArray=r.extend({init:function(p,v){p=this.words=p||[],v!=g?this.sigBytes=v:this.sigBytes=p.length*4},toString:function(p){return(p||t).stringify(this)},concat:function(p){var v=this.words,A=p.words,y=this.sigBytes,x=p.sigBytes;if(this.clamp(),y%4)for(var C=0;C<x;C++){var w=A[C>>>2]>>>24-C%4*8&255;v[y+C>>>2]|=w<<24-(y+C)%4*8}else for(var b=0;b<x;b+=4)v[y+b>>>2]=A[b>>>2];return this.sigBytes+=x,this},clamp:function(){var p=this.words,v=this.sigBytes;p[v>>>2]&=4294967295<<32-v%4*8,p.length=T.ceil(v/4)},clone:function(){var p=r.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var v=[],A=0;A<p;A+=4)v.push(m());return new i.init(v,p)}}),n=c.enc={},t=n.Hex={stringify:function(p){for(var v=p.words,A=p.sigBytes,y=[],x=0;x<A;x++){var C=v[x>>>2]>>>24-x%4*8&255;y.push((C>>>4).toString(16)),y.push((C&15).toString(16))}return y.join("")},parse:function(p){for(var v=p.length,A=[],y=0;y<v;y+=2)A[y>>>3]|=parseInt(p.substr(y,2),16)<<24-y%8*4;return new i.init(A,v/2)}},s=n.Latin1={stringify:function(p){for(var v=p.words,A=p.sigBytes,y=[],x=0;x<A;x++){var C=v[x>>>2]>>>24-x%4*8&255;y.push(String.fromCharCode(C))}return y.join("")},parse:function(p){for(var v=p.length,A=[],y=0;y<v;y++)A[y>>>2]|=(p.charCodeAt(y)&255)<<24-y%4*8;return new i.init(A,v)}},e=n.Utf8={stringify:function(p){try{return decodeURIComponent(escape(s.stringify(p)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(p){return s.parse(unescape(encodeURIComponent(p)))}},o=a.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=e.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var v,A=this._data,y=A.words,x=A.sigBytes,C=this.blockSize,w=C*4,b=x/w;p?b=T.ceil(b):b=T.max((b|0)-this._minBufferSize,0);var _=b*C,O=T.min(_*4,x);if(_){for(var L=0;L<_;L+=C)this._doProcessBlock(y,L);v=y.splice(0,_),A.sigBytes-=O}return new i.init(v,O)},clone:function(){var p=r.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),l=a.Hasher=o.extend({cfg:r.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){o.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var v=this._doFinalize();return v},blockSize:512/32,_createHelper:function(p){return function(v,A){return new p.init(A).finalize(v)}},_createHmacHelper:function(p){return function(v,A){return new u.HMAC.init(p,A).finalize(v)}}}),u=c.algo={};return c}(Math);return E})}).call(this,d("yLpj"))},ItGF:function(H,k){var d={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?d={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?d={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?d={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:d=E(navigator.userAgent);var I=d;function E(T){var g={},S={},m=T.match(/Firefox\/([\d.]+)/),h=T.match(/MSIE\s([\d.]+)/)||T.match(/Trident\/.+?rv:(([\d.]+))/),c=T.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(T);return m&&(S.firefox=!0,S.version=m[1]),h&&(S.ie=!0,S.version=h[1]),c&&(S.edge=!0,S.version=c[1]),a&&(S.weChat=!0),{browser:S,os:g,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!S.ie&&!S.edge,pointerEventsSupported:"onpointerdown"in window&&(S.edge||S.ie&&S.version>=11),domSupported:typeof document!="undefined"}}H.exports=I},ItS6:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=d("eP3c"),E=T(d("1q3G"));function T(c){return c&&c.__esModule?c:{default:c}}function g(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function S(c,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function m(c,a,r){return a&&S(c.prototype,a),r&&S(c,r),c}var h=function(){function c(){g(this,c),this.strm=new E.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,I.inflateInit)(this.strm,this.windowBits)}return m(c,[{key:"setInput",value:function(r){r?(this.strm.input=r,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(r){r>this.chunkSize&&(this.chunkSize=r,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=r;var i=(0,I.inflate)(this.strm,0);if(i<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=r)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,I.inflateReset)(this.strm)}}]),c}();k.default=h},Itpr:function(H,k,d){var I=d("+TT/");function E(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o=[e],l,u;l=o.pop();)if(u=l.children,l.isExpand&&u.length)for(var f=u.length,p=f-1;p>=0;p--){var v=u[p];v.hierNode={defaultAncestor:null,ancestor:v,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},o.push(v)}}function T(e,o){var l=e.isExpand?e.children:[],u=e.parentNode.children,f=e.hierNode.i?u[e.hierNode.i-1]:null;if(l.length){c(e);var p=(l[0].hierNode.prelim+l[l.length-1].hierNode.prelim)/2;f?(e.hierNode.prelim=f.hierNode.prelim+o(e,f),e.hierNode.modifier=e.hierNode.prelim-p):e.hierNode.prelim=p}else f&&(e.hierNode.prelim=f.hierNode.prelim+o(e,f));e.parentNode.hierNode.defaultAncestor=a(e,f,e.parentNode.hierNode.defaultAncestor||u[0],o)}function g(e){var o=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:o},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function S(e){return arguments.length?e:s}function m(e,o){var l={};return e-=Math.PI/2,l.x=o*Math.cos(e),l.y=o*Math.sin(e),l}function h(e,o){return I.getLayoutRect(e.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function c(e){for(var o=e.children,l=o.length,u=0,f=0;--l>=0;){var p=o[l];p.hierNode.prelim+=u,p.hierNode.modifier+=u,f+=p.hierNode.change,u+=p.hierNode.shift+f}}function a(e,o,l,u){if(o){for(var f=e,p=e,v=p.parentNode.children[0],A=o,y=f.hierNode.modifier,x=p.hierNode.modifier,C=v.hierNode.modifier,w=A.hierNode.modifier;A=r(A),p=i(p),A&&p;){f=r(f),v=i(v),f.hierNode.ancestor=e;var b=A.hierNode.prelim+w-p.hierNode.prelim-x+u(A,p);b>0&&(t(n(A,e,l),e,b),x+=b,y+=b),w+=A.hierNode.modifier,x+=p.hierNode.modifier,y+=f.hierNode.modifier,C+=v.hierNode.modifier}A&&!r(f)&&(f.hierNode.thread=A,f.hierNode.modifier+=w-y),p&&!i(v)&&(v.hierNode.thread=p,v.hierNode.modifier+=x-C,l=e)}return l}function r(e){var o=e.children;return o.length&&e.isExpand?o[o.length-1]:e.hierNode.thread}function i(e){var o=e.children;return o.length&&e.isExpand?o[0]:e.hierNode.thread}function n(e,o,l){return e.hierNode.ancestor.parentNode===o.parentNode?e.hierNode.ancestor:l}function t(e,o,l){var u=l/(o.hierNode.i-e.hierNode.i);o.hierNode.change-=u,o.hierNode.shift+=l,o.hierNode.modifier+=l,o.hierNode.prelim+=l,e.hierNode.change+=u}function s(e,o){return e.parentNode===o.parentNode?1:2}k.init=E,k.firstWalk=T,k.secondWalk=g,k.separation=S,k.radialCoordinate=m,k.getViewRect=h},IwbS:function(H,k,d){var I=d("bYtY"),E=d("NC18"),T=d("Qe9p"),g=d("Fofx"),S=d("QBsz"),m=d("y+Vt"),h=d("DN4a"),c=d("Dagg");k.Image=c;var a=d("4fz+");k.Group=a;var r=d("dqUG");k.Text=r;var i=d("2fw6");k.Circle=i;var n=d("SqI9");k.Sector=n;var t=d("RXMa");k.Ring=t;var s=d("h7HQ");k.Polygon=s;var e=d("1Jh7");k.Polyline=e;var o=d("x6Kt");k.Rect=o;var l=d("yxFR");k.Line=l;var u=d("rA99");k.BezierCurve=u;var f=d("jTL6");k.Arc=f;var p=d("1MYJ");k.CompoundPath=p;var v=d("SKnc");k.LinearGradient=v;var A=d("3e3G");k.RadialGradient=A;var y=d("mFDi");k.BoundingRect=y;var x=d("OS9S");k.IncrementalDisplayable=x;var C=d("nPnh"),w=Math.max,b=Math.min,_={},O=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},D="emphasis",N="normal",M=1,F={},R={};function j(st){return m.extend(st)}function B(st,Qe){return E.extendFromString(st,Qe)}function K(st,Qe){R[st]=Qe}function U(st){if(R.hasOwnProperty(st))return R[st]}function z(st,Qe,qt,Sr){var Ar=E.createFromString(st,Qe);return qt&&(Sr==="center"&&(qt=Y(qt,Ar.getBoundingRect())),se(Ar,qt)),Ar}function V(st,Qe,qt){var Sr=new c({style:{image:st,x:Qe.x,y:Qe.y,width:Qe.width,height:Qe.height},onload:function(Ar){if(qt==="center"){var hr={width:Ar.width,height:Ar.height};Sr.setStyle(Y(Qe,hr))}}});return Sr}function Y(st,Qe){var qt=Qe.width/Qe.height,Sr=st.height*qt,Ar;Sr<=st.width?Ar=st.height:(Sr=st.width,Ar=Sr/qt);var hr=st.x+st.width/2,vn=st.y+st.height/2;return{x:hr-Sr/2,y:vn-Ar/2,width:Sr,height:Ar}}var J=E.mergePath;function se(st,Qe){if(!st.applyTransform)return;var qt=st.getBoundingRect(),Sr=qt.calculateTransform(Qe);st.applyTransform(Sr)}function $(st){return C.subPixelOptimizeLine(st.shape,st.shape,st.style),st}function ae(st){return C.subPixelOptimizeRect(st.shape,st.shape,st.style),st}var ge=C.subPixelOptimize;function pe(st){return st!=null&&st!=="none"}var Ne=I.createHashMap(),de=0;function Le(st){if(typeof st!="string")return st;var Qe=Ne.get(st);return Qe||(Qe=T.lift(st,-.1),de<1e4&&(Ne.set(st,Qe),de++)),Qe}function Q(st){if(!st.__hoverStlDirty)return;st.__hoverStlDirty=!1;var Qe=st.__hoverStl;if(!Qe){st.__cachedNormalStl=st.__cachedNormalZ2=null;return}var qt=st.__cachedNormalStl={};st.__cachedNormalZ2=st.z2;var Sr=st.style;for(var Ar in Qe)Qe[Ar]!=null&&(qt[Ar]=Sr[Ar]);qt.fill=Sr.fill,qt.stroke=Sr.stroke}function ce(st){var Qe=st.__hoverStl;if(!Qe||st.__highlighted)return;var qt=st.__zr,Sr=st.useHoverLayer&&qt&&qt.painter.type==="canvas";if(st.__highlighted=Sr?"layer":"plain",st.isGroup||!qt&&st.useHoverLayer)return;var Ar=st,hr=st.style;Sr&&(Ar=qt.addHover(st),hr=Ar.style),Ht(hr),Sr||Q(Ar),hr.extendFrom(Qe),Ke(hr,Qe,"fill"),Ke(hr,Qe,"stroke"),Dt(hr),Sr||(st.dirty(!1),st.z2+=O)}function Ke(st,Qe,qt){!pe(Qe[qt])&&pe(st[qt])&&(st[qt]=Le(st[qt]))}function ee(st){var Qe=st.__highlighted;if(!Qe)return;if(st.__highlighted=!1,st.isGroup)return;if(Qe==="layer")st.__zr&&st.__zr.removeHover(st);else{var qt=st.style,Sr=st.__cachedNormalStl;Sr&&(Ht(qt),st.setStyle(Sr),Dt(qt));var Ar=st.__cachedNormalZ2;Ar!=null&&st.z2-Ar===O&&(st.z2=Ar)}}function X(st,Qe,qt){var Sr=N,Ar=N,hr;st.__highlighted&&(Sr=D,hr=!0),Qe(st,qt),st.__highlighted&&(Ar=D,hr=!0),st.isGroup&&st.traverse(function(vn){!vn.isGroup&&Qe(vn,qt)}),hr&&st.__highDownOnUpdate&&st.__highDownOnUpdate(Sr,Ar)}function G(st,Qe){Qe=st.__hoverStl=Qe!==!1&&(st.hoverStyle||Qe||{}),st.__hoverStlDirty=!0,st.__highlighted&&(st.__cachedNormalStl=null,ee(st),ce(st))}function Z(st){!xe(this,st)&&!this.__highByOuter&&X(this,ce)}function ve(st){!xe(this,st)&&!this.__highByOuter&&X(this,ee)}function ue(st){this.__highByOuter|=1<<(st||0),X(this,ce)}function _e(st){!(this.__highByOuter&=~(1<<(st||0)))&&X(this,ee)}function xe(st,Qe){return st.__highDownSilentOnTouch&&Qe.zrByTouch}function oe(st,Qe){fe(st,!0),X(st,G,Qe)}function fe(st,Qe){var qt=Qe===!1;if(st.__highDownSilentOnTouch=st.highDownSilentOnTouch,st.__highDownOnUpdate=st.highDownOnUpdate,!qt||st.__highDownDispatcher){var Sr=qt?"off":"on";st[Sr]("mouseover",Z)[Sr]("mouseout",ve),st[Sr]("emphasis",ue)[Sr]("normal",_e),st.__highByOuter=st.__highByOuter||0,st.__highDownDispatcher=!qt}}function Te(st){return!!(st&&st.__highDownDispatcher)}function ze(st){var Qe=F[st];return Qe==null&&M<=32&&(Qe=F[st]=M++),Qe}function it(st,Qe,qt,Sr,Ar,hr,vn){Ar=Ar||_;var Zr=Ar.labelFetcher,Ln=Ar.labelDataIndex,$e=Ar.labelDimIndex,tt=Ar.labelProp,Ee=qt.getShallow("show"),Re=Sr.getShallow("show"),je;(Ee||Re)&&(Zr&&(je=Zr.getFormattedLabel(Ln,"normal",null,$e,tt)),je==null&&(je=I.isFunction(Ar.defaultText)?Ar.defaultText(Ln,Ar):Ar.defaultText));var nt=Ee?je:null,Vt=Re?I.retrieve2(Zr?Zr.getFormattedLabel(Ln,"emphasis",null,$e,tt):null,je):null;(nt!=null||Vt!=null)&&(Oe(st,qt,hr,Ar),Oe(Qe,Sr,vn,Ar,!0)),st.text=nt,Qe.text=Vt}function et(st,Qe,qt){var Sr=st.style;Qe&&(Ht(Sr),st.setStyle(Qe),Dt(Sr)),Sr=st.__hoverStl,qt&&Sr&&(Ht(Sr),I.extend(Sr,qt),Dt(Sr))}function Oe(st,Qe,qt,Sr,Ar){return Ge(st,Qe,Sr,Ar),qt&&I.extend(st,qt),st}function gt(st,Qe,qt){var Sr={isRectText:!0},Ar;qt===!1?Ar=!0:Sr.autoColor=qt,Ge(st,Qe,Sr,Ar)}function Ge(st,Qe,qt,Sr){if(qt=qt||_,qt.isRectText){var Ar;qt.getTextPosition?Ar=qt.getTextPosition(Qe,Sr):(Ar=Qe.getShallow("position")||(Sr?null:"inside"),Ar==="outside"&&(Ar="top")),st.textPosition=Ar,st.textOffset=Qe.getShallow("offset");var hr=Qe.getShallow("rotate");hr!=null&&(hr*=Math.PI/180),st.textRotation=hr,st.textDistance=I.retrieve2(Qe.getShallow("distance"),Sr?null:5)}var vn=Qe.ecModel,Zr=vn&&vn.option.textStyle,Ln=wt(Qe),$e;if(Ln){$e={};for(var tt in Ln)if(Ln.hasOwnProperty(tt)){var Ee=Qe.getModel(["rich",tt]);xt($e[tt]={},Ee,Zr,qt,Sr)}}return st.rich=$e,xt(st,Qe,Zr,qt,Sr,!0),qt.forceRich&&!qt.textStyle&&(qt.textStyle={}),st}function wt(st){for(var Qe;st&&st!==st.ecModel;){var qt=(st.option||_).rich;if(qt){Qe=Qe||{};for(var Sr in qt)qt.hasOwnProperty(Sr)&&(Qe[Sr]=1)}st=st.parentModel}return Qe}function xt(st,Qe,qt,Sr,Ar,hr){qt=!Ar&&qt||_,st.textFill=Ct(Qe.getShallow("color"),Sr)||qt.color,st.textStroke=Ct(Qe.getShallow("textBorderColor"),Sr)||qt.textBorderColor,st.textStrokeWidth=I.retrieve2(Qe.getShallow("textBorderWidth"),qt.textBorderWidth),Ar||(hr&&(st.insideRollbackOpt=Sr,Dt(st)),st.textFill==null&&(st.textFill=Sr.autoColor)),st.fontStyle=Qe.getShallow("fontStyle")||qt.fontStyle,st.fontWeight=Qe.getShallow("fontWeight")||qt.fontWeight,st.fontSize=Qe.getShallow("fontSize")||qt.fontSize,st.fontFamily=Qe.getShallow("fontFamily")||qt.fontFamily,st.textAlign=Qe.getShallow("align"),st.textVerticalAlign=Qe.getShallow("verticalAlign")||Qe.getShallow("baseline"),st.textLineHeight=Qe.getShallow("lineHeight"),st.textWidth=Qe.getShallow("width"),st.textHeight=Qe.getShallow("height"),st.textTag=Qe.getShallow("tag"),(!hr||!Sr.disableBox)&&(st.textBackgroundColor=Ct(Qe.getShallow("backgroundColor"),Sr),st.textPadding=Qe.getShallow("padding"),st.textBorderColor=Ct(Qe.getShallow("borderColor"),Sr),st.textBorderWidth=Qe.getShallow("borderWidth"),st.textBorderRadius=Qe.getShallow("borderRadius"),st.textBoxShadowColor=Qe.getShallow("shadowColor"),st.textBoxShadowBlur=Qe.getShallow("shadowBlur"),st.textBoxShadowOffsetX=Qe.getShallow("shadowOffsetX"),st.textBoxShadowOffsetY=Qe.getShallow("shadowOffsetY")),st.textShadowColor=Qe.getShallow("textShadowColor")||qt.textShadowColor,st.textShadowBlur=Qe.getShallow("textShadowBlur")||qt.textShadowBlur,st.textShadowOffsetX=Qe.getShallow("textShadowOffsetX")||qt.textShadowOffsetX,st.textShadowOffsetY=Qe.getShallow("textShadowOffsetY")||qt.textShadowOffsetY}function Ct(st,Qe){return st!=="auto"?st:Qe&&Qe.autoColor?Qe.autoColor:null}function Dt(st){var Qe=st.textPosition,qt=st.insideRollbackOpt,Sr;if(qt&&st.textFill==null){var Ar=qt.autoColor,hr=qt.isRectText,vn=qt.useInsideStyle,Zr=vn!==!1&&(vn===!0||hr&&Qe&&typeof Qe=="string"&&Qe.indexOf("inside")>=0),Ln=!Zr&&Ar!=null;(Zr||Ln)&&(Sr={textFill:st.textFill,textStroke:st.textStroke,textStrokeWidth:st.textStrokeWidth}),Zr&&(st.textFill="#fff",st.textStroke==null&&(st.textStroke=Ar,st.textStrokeWidth==null&&(st.textStrokeWidth=2))),Ln&&(st.textFill=Ar)}st.insideRollback=Sr}function Ht(st){var Qe=st.insideRollback;Qe&&(st.textFill=Qe.textFill,st.textStroke=Qe.textStroke,st.textStrokeWidth=Qe.textStrokeWidth,st.insideRollback=null)}function Je(st,Qe){var qt=Qe&&Qe.getModel("textStyle");return I.trim([st.fontStyle||qt&&qt.getShallow("fontStyle")||"",st.fontWeight||qt&&qt.getShallow("fontWeight")||"",(st.fontSize||qt&&qt.getShallow("fontSize")||12)+"px",st.fontFamily||qt&&qt.getShallow("fontFamily")||"sans-serif"].join(" "))}function ye(st,Qe,qt,Sr,Ar,hr){typeof Ar=="function"&&(hr=Ar,Ar=null);var vn=Sr&&Sr.isAnimationEnabled();if(vn){var Zr=st?"Update":"",Ln=Sr.getShallow("animationDuration"+Zr),$e=Sr.getShallow("animationEasing"+Zr),tt=Sr.getShallow("animationDelay"+Zr);typeof tt=="function"&&(tt=tt(Ar,Sr.getAnimationDelayParams?Sr.getAnimationDelayParams(Qe,Ar):null)),typeof Ln=="function"&&(Ln=Ln(Ar)),Ln>0?Qe.animateTo(qt,Ln,tt||0,$e,hr,!!hr):(Qe.stopAnimation(),Qe.attr(qt),hr&&hr())}else Qe.stopAnimation(),Qe.attr(qt),hr&&hr()}function ie(st,Qe,qt,Sr,Ar){ye(!0,st,Qe,qt,Sr,Ar)}function bt(st,Qe,qt,Sr,Ar){ye(!1,st,Qe,qt,Sr,Ar)}function qe(st,Qe){for(var qt=g.identity([]);st&&st!==Qe;)g.mul(qt,st.getLocalTransform(),qt),st=st.parent;return qt}function me(st,Qe,qt){return Qe&&!I.isArrayLike(Qe)&&(Qe=h.getLocalTransform(Qe)),qt&&(Qe=g.invert([],Qe)),S.applyTransform([],st,Qe)}function Rt(st,Qe,qt){var Sr=Qe[4]===0||Qe[5]===0||Qe[0]===0?1:Math.abs(2*Qe[4]/Qe[0]),Ar=Qe[4]===0||Qe[5]===0||Qe[2]===0?1:Math.abs(2*Qe[4]/Qe[2]),hr=[st==="left"?-Sr:st==="right"?Sr:0,st==="top"?-Ar:st==="bottom"?Ar:0];return hr=me(hr,Qe,qt),Math.abs(hr[0])>Math.abs(hr[1])?hr[0]>0?"right":"left":hr[1]>0?"bottom":"top"}function er(st,Qe,qt,Sr){if(!st||!Qe)return;function Ar(Zr){var Ln={};return Zr.traverse(function($e){!$e.isGroup&&$e.anid&&(Ln[$e.anid]=$e)}),Ln}function hr(Zr){var Ln={position:S.clone(Zr.position),rotation:Zr.rotation};return Zr.shape&&(Ln.shape=I.extend({},Zr.shape)),Ln}var vn=Ar(st);Qe.traverse(function(Zr){if(!Zr.isGroup&&Zr.anid){var Ln=vn[Zr.anid];if(Ln){var $e=hr(Zr);Zr.attr(hr(Ln)),ie(Zr,$e,qt,Zr.dataIndex)}}})}function ct(st,Qe){return I.map(st,function(qt){var Sr=qt[0];Sr=w(Sr,Qe.x),Sr=b(Sr,Qe.x+Qe.width);var Ar=qt[1];return Ar=w(Ar,Qe.y),Ar=b(Ar,Qe.y+Qe.height),[Sr,Ar]})}function zt(st,Qe){var qt=w(st.x,Qe.x),Sr=b(st.x+st.width,Qe.x+Qe.width),Ar=w(st.y,Qe.y),hr=b(st.y+st.height,Qe.y+Qe.height);if(Sr>=qt&&hr>=Ar)return{x:qt,y:Ar,width:Sr-qt,height:hr-Ar}}function sr(st,Qe,qt){Qe=I.extend({rectHover:!0},Qe);var Sr=Qe.style={strokeNoScale:!0};if(qt=qt||{x:-1,y:-1,width:2,height:2},st)return st.indexOf("image://")===0?(Sr.image=st.slice(8),I.defaults(Sr,qt),new c(Qe)):z(st.replace("path://",""),Qe,qt,"center")}function Kr(st,Qe,qt,Sr,Ar){for(var hr=0,vn=Ar[Ar.length-1];hr<Ar.length;hr++){var Zr=Ar[hr];if(ar(st,Qe,qt,Sr,Zr[0],Zr[1],vn[0],vn[1]))return!0;vn=Zr}}function ar(st,Qe,qt,Sr,Ar,hr,vn,Zr){var Ln=qt-st,$e=Sr-Qe,tt=vn-Ar,Ee=Zr-hr,Re=nr(tt,Ee,Ln,$e);if(Lt(Re))return!1;var je=st-Ar,nt=Qe-hr,Vt=nr(je,nt,Ln,$e)/Re;if(Vt<0||Vt>1)return!1;var Bt=nr(je,nt,tt,Ee)/Re;return!(Bt<0||Bt>1)}function nr(st,Qe,qt,Sr){return st*Sr-qt*Qe}function Lt(st){return st<=1e-6&&st>=-1e-6}K("circle",i),K("sector",n),K("ring",t),K("polygon",s),K("polyline",e),K("rect",o),K("line",l),K("bezierCurve",u),K("arc",f),k.Z2_EMPHASIS_LIFT=O,k.CACHED_LABEL_STYLE_PROPERTIES=L,k.extendShape=j,k.extendPath=B,k.registerShape=K,k.getShapeClass=U,k.makePath=z,k.makeImage=V,k.mergePath=J,k.resizePath=se,k.subPixelOptimizeLine=$,k.subPixelOptimizeRect=ae,k.subPixelOptimize=ge,k.setElementHoverStyle=G,k.setHoverStyle=oe,k.setAsHighDownDispatcher=fe,k.isHighDownDispatcher=Te,k.getHighlightDigit=ze,k.setLabelStyle=it,k.modifyLabelStyle=et,k.setTextStyle=Oe,k.setText=gt,k.getFont=Je,k.updateProps=ie,k.initProps=bt,k.getTransform=qe,k.applyTransform=me,k.transformDirection=Rt,k.groupTransition=er,k.clipPointsByRect=ct,k.clipRectByRect=zt,k.createIcon=sr,k.linePolygonIntersect=Kr,k.lineLineIntersect=ar},IyUQ:function(H,k,d){var I=d("bYtY"),E=d("YH21"),T=d("IwbS"),g=d("iLNv"),S=d("fc+c"),m=d("OELB"),h=d("+TT/"),c=d("72pK"),a=T.Rect,r=m.linearMap,i=m.asc,n=I.bind,t=I.each,s=7,e=1,o=30,l="horizontal",u="vertical",f=5,p=["line","bar","candlestick","scatter"],v=S.extend({type:"dataZoom.slider",init:function(C,w){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=w},render:function(C,w,b,_){if(v.superApply(this,"render",arguments),g.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=C.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!_||_.type!=="dataZoom"||_.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){v.superApply(this,"remove",arguments),g.clear(this,"_dispatchZoomAction")},dispose:function(){v.superApply(this,"dispose",arguments),g.clear(this,"_dispatchZoomAction")},_buildView:function(){var C=this.group;C.removeAll(),this._resetLocation(),this._resetInterval();var w=this._displayables.barGroup=new T.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),C.add(w),this._positionGroup()},_resetLocation:function(){var C=this.dataZoomModel,w=this.api,b=this._findCoordRect(),_={width:w.getWidth(),height:w.getHeight()},O=this._orient===l?{right:_.width-b.x-b.width,top:_.height-o-s,width:b.width,height:o}:{right:s,top:b.y,width:o,height:b.height},L=h.getLayoutParams(C.option);I.each(["right","top","width","height"],function(N){L[N]==="ph"&&(L[N]=O[N])});var D=h.getLayoutRect(L,_,C.padding);this._location={x:D.x,y:D.y},this._size=[D.width,D.height],this._orient===u&&this._size.reverse()},_positionGroup:function(){var C=this.group,w=this._location,b=this._orient,_=this.dataZoomModel.getFirstTargetAxisModel(),O=_&&_.get("inverse"),L=this._displayables.barGroup,D=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(b===l&&!O?{scale:D?[1,1]:[1,-1]}:b===l&&O?{scale:D?[-1,1]:[-1,-1]}:b===u&&!O?{scale:D?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:D?[-1,-1]:[-1,1],rotation:Math.PI/2});var N=C.getBoundingRect([L]);C.attr("position",[w.x-N.x,w.y-N.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var C=this.dataZoomModel,w=this._size,b=this._displayables.barGroup;b.add(new a({silent:!0,shape:{x:0,y:0,width:w[0],height:w[1]},style:{fill:C.get("backgroundColor")},z2:-40})),b.add(new a({shape:{x:0,y:0,width:w[0],height:w[1]},style:{fill:"transparent"},z2:0,onclick:I.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var C=this._dataShadowInfo=this._prepareDataShadowInfo();if(!C)return;var w=this._size,b=C.series,_=b.getRawData(),O=b.getShadowDim?b.getShadowDim():C.otherDim;if(O==null)return;var L=_.getDataExtent(O),D=(L[1]-L[0])*.3;L=[L[0]-D,L[1]+D];var N=[0,w[1]],M=[0,w[0]],F=[[w[0],0],[0,0]],R=[],j=M[1]/(_.count()-1),B=0,K=Math.round(_.count()/w[0]),U;_.each([O],function(V,Y){if(K>0&&Y%K){B+=j;return}var J=V==null||isNaN(V)||V==="",se=J?0:r(V,L,N,!0);J&&!U&&Y?(F.push([F[F.length-1][0],0]),R.push([R[R.length-1][0],0])):!J&&U&&(F.push([B,0]),R.push([B,0])),F.push([B,se]),R.push([B,se]),B+=j,U=J});var z=this.dataZoomModel;this._displayables.barGroup.add(new T.Polygon({shape:{points:F},style:I.defaults({fill:z.get("dataBackgroundColor")},z.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new T.Polyline({shape:{points:R},style:z.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var C=this.dataZoomModel,w=C.get("showDataShadow");if(w===!1)return;var b,_=this.ecModel;return C.eachTargetAxis(function(O,L){var D=C.getAxisProxy(O.name,L).getTargetSeriesModels();I.each(D,function(N){if(b)return;if(w!==!0&&I.indexOf(p,N.get("type"))<0)return;var M=_.getComponent(O.axis,L).axis,F=A(O.name),R,j=N.coordinateSystem;F!=null&&j.getOtherAxis&&(R=j.getOtherAxis(M).inverse),F=N.getData().mapDimension(F),b={thisAxis:M,series:N,thisDim:O.name,otherDim:F,otherAxisInverse:R}},this)},this),b},_renderHandle:function(){var C=this._displayables,w=C.handles=[],b=C.handleLabels=[],_=this._displayables.barGroup,O=this._size,L=this.dataZoomModel;_.add(C.filler=new a({draggable:!0,cursor:y(this._orient),drift:n(this._onDragMove,this,"all"),ondragstart:n(this._showDataInfo,this,!0),ondragend:n(this._onDragEnd,this),onmouseover:n(this._showDataInfo,this,!0),onmouseout:n(this._showDataInfo,this,!1),style:{fill:L.get("fillerColor"),textPosition:"inside"}})),_.add(new a({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:O[0],height:O[1]},style:{stroke:L.get("dataBackgroundColor")||L.get("borderColor"),lineWidth:e,fill:"rgba(0,0,0,0)"}})),t([0,1],function(D){var N=T.createIcon(L.get("handleIcon"),{cursor:y(this._orient),draggable:!0,drift:n(this._onDragMove,this,D),ondragend:n(this._onDragEnd,this),onmouseover:n(this._showDataInfo,this,!0),onmouseout:n(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),M=N.getBoundingRect();this._handleHeight=m.parsePercent(L.get("handleSize"),this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,N.setStyle(L.getModel("handleStyle").getItemStyle());var F=L.get("handleColor");F!=null&&(N.style.fill=F),_.add(w[D]=N);var R=L.textStyleModel;this.group.add(b[D]=new T.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:R.getTextColor(),textFont:R.getFont()},z2:10}))},this)},_resetInterval:function(){var C=this._range=this.dataZoomModel.getPercentRange(),w=this._getViewExtent();this._handleEnds=[r(C[0],[0,100],w,!0),r(C[1],[0,100],w,!0)]},_updateInterval:function(C,w){var b=this.dataZoomModel,_=this._handleEnds,O=this._getViewExtent(),L=b.findRepresentativeAxisProxy().getMinMaxSpan(),D=[0,100];c(w,_,O,b.get("zoomLock")?"all":C,L.minSpan!=null?r(L.minSpan,D,O,!0):null,L.maxSpan!=null?r(L.maxSpan,D,O,!0):null);var N=this._range,M=this._range=i([r(_[0],O,D,!0),r(_[1],O,D,!0)]);return!N||N[0]!==M[0]||N[1]!==M[1]},_updateView:function(C){var w=this._displayables,b=this._handleEnds,_=i(b.slice()),O=this._size;t([0,1],function(L){var D=w.handles[L],N=this._handleHeight;D.attr({scale:[N/2,N/2],position:[b[L],O[1]/2-N/2]})},this),w.filler.setShape({x:_[0],y:0,width:_[1]-_[0],height:O[1]}),this._updateDataInfo(C)},_updateDataInfo:function(C){var w=this.dataZoomModel,b=this._displayables,_=b.handleLabels,O=this._orient,L=["",""];if(w.get("showDetail")){var D=w.findRepresentativeAxisProxy();if(D){var N=D.getAxisModel().axis,M=this._range,F=C?D.calculateDataWindow({start:M[0],end:M[1]}).valueWindow:D.getDataValueWindow();L=[this._formatLabel(F[0],N),this._formatLabel(F[1],N)]}}var R=i(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(B){var K=T.getTransform(b.handles[B].parent,this.group),U=T.transformDirection(B===0?"right":"left",K),z=this._handleWidth/2+f,V=T.applyTransform([R[B]+(B===0?-z:z),this._size[1]/2],K);_[B].setStyle({x:V[0],y:V[1],textVerticalAlign:O===l?"middle":U,textAlign:O===l?U:"center",text:L[B]})}},_formatLabel:function(C,w){var b=this.dataZoomModel,_=b.get("labelFormatter"),O=b.get("labelPrecision");(O==null||O==="auto")&&(O=w.getPixelPrecision());var L=C==null||isNaN(C)?"":w.type==="category"||w.type==="time"?w.scale.getLabel(Math.round(C)):C.toFixed(Math.min(O,20));return I.isFunction(_)?_(C,L):I.isString(_)?_.replace("{value}",L):L},_showDataInfo:function(C){C=this._dragging||C;var w=this._displayables.handleLabels;w[0].attr("invisible",!C),w[1].attr("invisible",!C)},_onDragMove:function(C,w,b,_){this._dragging=!0,E.stop(_.event);var O=this._displayables.barGroup.getLocalTransform(),L=T.applyTransform([w,b],O,!0),D=this._updateInterval(C,L[0]),N=this.dataZoomModel.get("realtime");this._updateView(!N),D&&N&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var C=this.dataZoomModel.get("realtime");!C&&this._dispatchZoomAction()},_onClickPanelClick:function(C){var w=this._size,b=this._displayables.barGroup.transformCoordToLocal(C.offsetX,C.offsetY);if(b[0]<0||b[0]>w[0]||b[1]<0||b[1]>w[1])return;var _=this._handleEnds,O=(_[0]+_[1])/2,L=this._updateInterval("all",b[0]-O);this._updateView(),L&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var C=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:C[0],end:C[1]})},_findCoordRect:function(){var C;if(t(this.getTargetCoordInfo(),function(_){if(!C&&_.length){var O=_[0].model.coordinateSystem;C=O.getRect&&O.getRect()}}),!C){var w=this.api.getWidth(),b=this.api.getHeight();C={x:w*.2,y:b*.2,width:w*.6,height:b*.6}}return C}});function A(C){var w={x:"y",y:"x",radius:"angle",angle:"radius"};return w[C]}function y(C){return C==="vertical"?"ns-resize":"ew-resize"}var x=v;H.exports=x},IzEo:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("lnY3"),g=d.n(T),S=d("Znn+"),m=d("14J3"),h=d("jCWc")},J66h:function(H,k,d){(function(I){var E,T;(function(g,S){H.exports=S(g)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof I!="undefined"?I:this,function(g){"use strict";g=g||{};var S=g.Base64,m="2.6.4",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(N){for(var M={},F=0,R=N.length;F<R;F++)M[N.charAt(F)]=F;return M}(h),a=String.fromCharCode,r=function(M){if(M.length<2){var F=M.charCodeAt(0);return F<128?M:F<2048?a(192|F>>>6)+a(128|F&63):a(224|F>>>12&15)+a(128|F>>>6&63)+a(128|F&63)}else{var F=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return a(240|F>>>18&7)+a(128|F>>>12&63)+a(128|F>>>6&63)+a(128|F&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(M){return M.replace(i,r)},t=function(M){var F=[0,2,1][M.length%3],R=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),j=[h.charAt(R>>>18),h.charAt(R>>>12&63),F>=2?"=":h.charAt(R>>>6&63),F>=1?"=":h.charAt(R&63)];return j.join("")},s=g.btoa&&typeof g.btoa=="function"?function(N){return g.btoa(N)}:function(N){if(N.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return N.replace(/[\s\S]{1,3}/g,t)},e=function(M){return s(n(String(M)))},o=function(M){return M.replace(/[+\/]/g,function(F){return F=="+"?"-":"_"}).replace(/=/g,"")},l=function(M,F){return F?o(e(M)):e(M)},u=function(M){return l(M,!0)},f;g.Uint8Array&&(f=function(M,F){for(var R="",j=0,B=M.length;j<B;j+=3){var K=M[j],U=M[j+1],z=M[j+2],V=K<<16|U<<8|z;R+=h.charAt(V>>>18)+h.charAt(V>>>12&63)+(typeof U!="undefined"?h.charAt(V>>>6&63):"=")+(typeof z!="undefined"?h.charAt(V&63):"=")}return F?o(R):R});var p=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=function(M){switch(M.length){case 4:var F=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),R=F-65536;return a((R>>>10)+55296)+a((R&1023)+56320);case 3:return a((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return a((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},A=function(M){return M.replace(p,v)},y=function(M){var F=M.length,R=F%4,j=(F>0?c[M.charAt(0)]<<18:0)|(F>1?c[M.charAt(1)]<<12:0)|(F>2?c[M.charAt(2)]<<6:0)|(F>3?c[M.charAt(3)]:0),B=[a(j>>>16),a(j>>>8&255),a(j&255)];return B.length-=[0,0,2,1][R],B.join("")},x=g.atob&&typeof g.atob=="function"?function(N){return g.atob(N)}:function(N){return N.replace(/\S{1,4}/g,y)},C=function(M){return x(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(M){return A(x(M))},b=function(M){return String(M).replace(/[-_]/g,function(F){return F=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(M){return w(b(M))},O;g.Uint8Array&&(O=function(M){return Uint8Array.from(C(b(M)),function(F){return F.charCodeAt(0)})});var L=function(){var M=g.Base64;return g.Base64=S,M};if(g.Base64={VERSION:m,atob:C,btoa:s,fromBase64:_,toBase64:l,utob:n,encode:l,encodeURI:u,btou:A,decode:_,noConflict:L,fromUint8Array:f,toUint8Array:O},typeof Object.defineProperty=="function"){var D=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};g.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",D(function(){return _(this)})),Object.defineProperty(String.prototype,"toBase64",D(function(N){return l(this,N)})),Object.defineProperty(String.prototype,"toBase64URI",D(function(){return l(this,!0)}))}}return g.Meteor&&(Base64=g.Base64),H.exports?H.exports.Base64=g.Base64:!(E=[],T=function(){return g.Base64}.apply(k,E),T!==void 0&&(H.exports=T)),{Base64:g.Base64}})}).call(this,d("yLpj"))},JEkh:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("ItGF"),m=d("4NO4"),h=d("7aKB"),c=d("OKJ2"),a=h.addCommas,r=h.encodeHTML;function i(s){m.defaultEmphasis(s,"label",["show"])}var n=T.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(s,e,o){this.mergeDefaultAndTheme(s,o),this._mergeOption(s,o,!1,!0)},isAnimationEnabled:function(){if(S.node)return!1;var s=this.__hostSeries;return this.getShallow("animation")&&s&&s.isAnimationEnabled()},mergeOption:function(s,e){this._mergeOption(s,e,!1,!1)},_mergeOption:function(s,e,o,l){var u=this.constructor,f=this.mainType+"Model";o||e.eachSeries(function(p){var v=p.get(this.mainType,!0),A=p[f];if(!v||!v.data){p[f]=null;return}A?A._mergeOption(v,e,!0):(l&&i(v),g.each(v.data,function(y){y instanceof Array?(i(y[0]),i(y[1])):i(y)}),A=new u(v,this,e),g.extend(A,{mainType:this.mainType,seriesIndex:p.seriesIndex,name:p.name,createdBySelf:!0}),A.__hostSeries=p),p[f]=A},this)},formatTooltip:function(s){var e=this.getData(),o=this.getRawValue(s),l=g.isArray(o)?g.map(o,a).join(", "):a(o),u=e.getName(s),f=r(this.name);return(o!=null||u)&&(f+="<br />"),u&&(f+=r(u),o!=null&&(f+=" : ")),o!=null&&(f+=r(l)),f},getData:function(){return this._data},setData:function(s){this._data=s}});g.mixin(n,c);var t=n;H.exports=t},JGo8:function(H,k,d){},JLnu:function(H,k,d){var I=d("+TT/"),E=d("OELB"),T=E.parsePercent,g=E.linearMap;function S(a,r){return I.getLayoutRect(a.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function m(a,r){for(var i=a.mapDimension("value"),n=a.mapArray(i,function(l){return l}),t=[],s=r==="ascending",e=0,o=a.count();e<o;e++)t[e]=e;return typeof r=="function"?t.sort(r):r!=="none"&&t.sort(function(l,u){return s?n[l]-n[u]:n[u]-n[l]}),t}function h(a){a.each(function(r){var i=a.getItemModel(r),n=i.getModel("label"),t=n.get("position"),s=i.getModel("labelLine"),e=a.getItemLayout(r),o=e.points,l=t==="inner"||t==="inside"||t==="center"||t==="insideLeft"||t==="insideRight",u,f,p,v;if(l)t==="insideLeft"?(f=(o[0][0]+o[3][0])/2+5,p=(o[0][1]+o[3][1])/2,u="left"):t==="insideRight"?(f=(o[1][0]+o[2][0])/2-5,p=(o[1][1]+o[2][1])/2,u="right"):(f=(o[0][0]+o[1][0]+o[2][0]+o[3][0])/4,p=(o[0][1]+o[1][1]+o[2][1]+o[3][1])/4,u="center"),v=[[f,p],[f,p]];else{var A,y,x,C=s.get("length");t==="left"?(A=(o[3][0]+o[0][0])/2,y=(o[3][1]+o[0][1])/2,x=A-C,f=x-5,u="right"):t==="right"?(A=(o[1][0]+o[2][0])/2,y=(o[1][1]+o[2][1])/2,x=A+C,f=x+5,u="left"):t==="rightTop"?(A=o[1][0],y=o[1][1],x=A+C,f=x+5,u="top"):t==="rightBottom"?(A=o[2][0],y=o[2][1],x=A+C,f=x+5,u="bottom"):t==="leftTop"?(A=o[0][0],y=o[1][1],x=A-C,f=x-5,u="right"):t==="leftBottom"?(A=o[3][0],y=o[2][1],x=A-C,f=x-5,u="right"):(A=(o[1][0]+o[2][0])/2,y=(o[1][1]+o[2][1])/2,x=A+C,f=x+5,u="left");var w=y;v=[[A,y],[x,w]],p=w}e.label={linePoints:v,x:f,y:p,verticalAlign:"middle",textAlign:u,inside:l}})}function c(a,r,i){a.eachSeriesByType("funnel",function(n){var t=n.getData(),s=t.mapDimension("value"),e=n.get("sort"),o=S(n,r),l=m(t,e),u=[T(n.get("minSize"),o.width),T(n.get("maxSize"),o.width)],f=t.getDataExtent(s),p=n.get("min"),v=n.get("max");p==null&&(p=Math.min(f[0],0)),v==null&&(v=f[1]);var A=n.get("funnelAlign"),y=n.get("gap"),x=(o.height-y*(t.count()-1))/t.count(),C=o.y,w=function(F,R){var j=t.get(s,F)||0,B=g(j,[p,v],u,!0),K;switch(A){case"left":K=o.x;break;case"center":K=o.x+(o.width-B)/2;break;case"right":K=o.x+o.width-B;break}return[[K,R],[K+B,R]]};e==="ascending"&&(x=-x,y=-y,C+=o.height,l=l.reverse());for(var b=0;b<l.length;b++){var _=l[b],O=l[b+1],L=t.getItemModel(_),D=L.get("itemStyle.height");D==null?D=x:(D=T(D,o.height),e==="ascending"&&(D=-D));var N=w(_,C),M=w(O,C+D);C+=D+y,t.setItemLayout(_,{points:N.concat(M.slice().reverse())})}h(t)})}H.exports=c},JSwD:function(H,k,d){"use strict";function I(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(u){return typeof u}:I=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},I(o)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=e;var E=g(d("6BzB"));function T(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return T=function(){return o},o}function g(o){if(o&&o.__esModule)return o;if(o===null||I(o)!=="object"&&typeof o!="function")return{default:o};var l=T();if(l&&l.has(o))return l.get(o);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in o)if(Object.prototype.hasOwnProperty.call(o,p)){var v=f?Object.getOwnPropertyDescriptor(o,p):null;v&&(v.get||v.set)?Object.defineProperty(u,p,v):u[p]=o[p]}return u.default=o,l&&l.set(o,u),u}var S=15,m=852,h=592,c=0,a=1,r=2,i=[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],n=[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],s=[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 e(o,l,u,f,p,v,A,y){var x=y.bits,C=0,w=0,b=0,_=0,O=0,L=0,D=0,N=0,M=0,F=0,R,j,B,K,U,z=null,V=0,Y,J=new E.Buf16(S+1),se=new E.Buf16(S+1),$=null,ae=0,ge,pe,Ne;for(C=0;C<=S;C++)J[C]=0;for(w=0;w<f;w++)J[l[u+w]]++;for(O=x,_=S;_>=1&&!(J[_]!==0);_--);if(O>_&&(O=_),_===0)return p[v++]=1<<24|64<<16|0,p[v++]=1<<24|64<<16|0,y.bits=1,0;for(b=1;b<_&&!(J[b]!==0);b++);for(O<b&&(O=b),N=1,C=1;C<=S;C++)if(N<<=1,N-=J[C],N<0)return-1;if(N>0&&(o===c||_!==1))return-1;for(se[1]=0,C=1;C<S;C++)se[C+1]=se[C]+J[C];for(w=0;w<f;w++)l[u+w]!==0&&(A[se[l[u+w]]++]=w);if(o===c?(z=$=A,Y=19):o===a?(z=i,V-=257,$=n,ae-=257,Y=256):(z=t,$=s,Y=-1),F=0,w=0,C=b,U=v,L=O,D=0,B=-1,M=1<<O,K=M-1,o===a&&M>m||o===r&&M>h)return 1;for(;;){ge=C-D,A[w]<Y?(pe=0,Ne=A[w]):A[w]>Y?(pe=$[ae+A[w]],Ne=z[V+A[w]]):(pe=32+64,Ne=0),R=1<<C-D,j=1<<L,b=j;do j-=R,p[U+(F>>D)+j]=ge<<24|pe<<16|Ne|0;while(j!==0);for(R=1<<C-1;F&R;)R>>=1;if(R!==0?(F&=R-1,F+=R):F=0,w++,--J[C]===0){if(C===_)break;C=l[u+A[w]]}if(C>O&&(F&K)!==B){for(D===0&&(D=O),U+=b,L=C-D,N=1<<L;L+D<_&&!(N-=J[L+D],N<=0);)L++,N<<=1;if(M+=1<<L,o===a&&M>m||o===r&&M>h)return 1;B=F&K,p[B]=O<<24|L<<16|U-v|0}}return F!==0&&(p[U+F]=C-D<<24|64<<16|0),y.bits=O,0}},JVwQ:function(H,k,d){var I=d("ProS"),E=d("1NG9"),T=E.Polygon,g=d("IwbS"),S=d("bYtY"),m=S.bind,h=S.extend,c=d("gPAo"),a=I.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(i,n,t){var s=i.getData(),e=this.group,o=i.getLayerSeries(),l=s.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;e.attr("position",[0,u.y+f[0]]);function p(x){return x.name}var v=new c(this._layersSeries||[],o,p,p),A={};v.add(m(y,this,"add")).update(m(y,this,"update")).remove(m(y,this,"remove")).execute();function y(x,C,w){var b=this._layers;if(x==="remove"){e.remove(b[C]);return}for(var _=[],O=[],L,D=o[C].indices,N=0;N<D.length;N++){var M=s.getItemLayout(D[N]),F=M.x,R=M.y0,j=M.y;_.push([F,R]),O.push([F,R+j]),L=s.getItemVisual(D[N],"color")}var B,K,U=s.getItemLayout(D[0]),z=s.getItemModel(D[N-1]),V=z.getModel("label"),Y=V.get("margin");if(x==="add"){var J=A[C]=new g.Group;B=new T({shape:{points:_,stackedOnPoints:O,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),K=new g.Text({style:{x:U.x-Y,y:U.y0+U.y/2}}),J.add(B),J.add(K),e.add(J),B.setClipPath(r(B.getBoundingRect(),i,function(){B.removeClipPath()}))}else{var J=b[w];B=J.childAt(0),K=J.childAt(1),e.add(J),A[C]=J,g.updateProps(B,{shape:{points:_,stackedOnPoints:O}},i),g.updateProps(K,{style:{x:U.x-Y,y:U.y0+U.y/2}},i)}var se=z.getModel("emphasis.itemStyle"),$=z.getModel("itemStyle");g.setTextStyle(K.style,V,{text:V.get("show")?i.getFormattedLabel(D[N-1],"normal")||s.getName(D[N-1]):null,textVerticalAlign:"middle"}),B.setStyle(h({fill:L},$.getItemStyle(["color"]))),g.setHoverStyle(B,se.getItemStyle())}this._layersSeries=o,this._layers=A},dispose:function(){}});function r(i,n,t){var s=new g.Rect({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}});return g.initProps(s,{shape:{width:i.width+20,height:i.height+20}},n,t),s}H.exports=a},JgUQ:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},JsLm:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("PJYZ"),r=d.n(a),i=d("7W2i"),n=d.n(i),t=d("LQ03"),s=d.n(t),e=d("q1tI"),o=d("i8i4"),l=d("TSYQ"),u=d.n(l),f=d("zT1h"),p=d("cDf5"),v=d.n(p),A=d("BGR+"),y=d("t23M"),x=d("H84U"),C=d("RIqP"),w=d.n(C),b=d("xEkU"),_=d.n(b);function O(ee){var X,G=function(ue){return function(){X=null,ee.apply(void 0,w()(ue))}},Z=function(){if(X==null){for(var ue=arguments.length,_e=new Array(ue),xe=0;xe<ue;xe++)_e[xe]=arguments[xe];X=_()(G(_e))}};return Z.cancel=function(){return _.a.cancel(X)},Z}function L(){return function(ee,X,G){var Z=G.value,ve=!1;return{configurable:!0,get:function(){if(ve||this===ee.prototype||this.hasOwnProperty(X))return Z;var _e=O(Z.bind(this));return ve=!0,Object.defineProperty(this,X,{value:_e,configurable:!0,writable:!0}),ve=!1,_e}}}}function D(ee){return ee!==window?ee.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function N(ee,X,G){return G!==void 0&&X.top>ee.top-G?G+X.top:void 0}function M(ee,X,G){if(G!==void 0&&X.bottom<ee.bottom+G){var Z=window.innerHeight-X.bottom;return G+Z}return}var F=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],R=[];function j(){return R}function B(ee,X){if(!ee)return;var G=R.find(function(Z){return Z.target===ee});G?G.affixList.push(X):(G={target:ee,affixList:[X],eventHandlers:{}},R.push(G),F.forEach(function(Z){G.eventHandlers[Z]=Object(f.a)(ee,Z,function(){G.affixList.forEach(function(ve){ve.lazyUpdatePosition()})})}))}function K(ee){var X=R.find(function(G){var Z=G.affixList.some(function(ve){return ve===ee});return Z&&(G.affixList=G.affixList.filter(function(ve){return ve!==ee})),Z});X&&X.affixList.length===0&&(R=R.filter(function(G){return G!==X}),F.forEach(function(G){var Z=X.eventHandlers[G];Z&&Z.remove&&Z.remove()}))}var U=function(ee,X,G,Z){var ve=arguments.length,ue=ve<3?X:Z===null?Z=Object.getOwnPropertyDescriptor(X,G):Z,_e;if((typeof Reflect=="undefined"?"undefined":v()(Reflect))==="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(ee,X,G,Z);else for(var xe=ee.length-1;xe>=0;xe--)(_e=ee[xe])&&(ue=(ve<3?_e(ue):ve>3?_e(X,G,ue):_e(X,G))||ue);return ve>3&&ue&&Object.defineProperty(X,G,ue),ue};function z(){return typeof window!="undefined"?window:null}var V;(function(ee){ee[ee.None=0]="None",ee[ee.Prepare=1]="Prepare"})(V||(V={}));var Y=function(ee){n()(G,ee);var X=s()(G);function G(){var Z;return m()(this,G),Z=X.apply(this,arguments),Z.state={status:V.None,lastAffix:!1,prevTarget:null},Z.getOffsetTop=function(){var ve=Z.props.offsetBottom,ue=Z.props.offsetTop;return ve===void 0&&ue===void 0&&(ue=0),ue},Z.getOffsetBottom=function(){return Z.props.offsetBottom},Z.savePlaceholderNode=function(ve){Z.placeholderNode=ve},Z.saveFixedNode=function(ve){Z.fixedNode=ve},Z.measure=function(){var ve=Z.state,ue=ve.status,_e=ve.lastAffix,xe=Z.props.onChange,oe=Z.getTargetFunc();if(ue!==V.Prepare||!Z.fixedNode||!Z.placeholderNode||!oe)return;var fe=Z.getOffsetTop(),Te=Z.getOffsetBottom(),ze=oe();if(!ze)return;var it={status:V.None},et=D(ze),Oe=D(Z.placeholderNode),gt=N(Oe,et,fe),Ge=M(Oe,et,Te);gt!==void 0?(it.affixStyle={position:"fixed",top:gt,width:Oe.width,height:Oe.height},it.placeholderStyle={width:Oe.width,height:Oe.height}):Ge!==void 0&&(it.affixStyle={position:"fixed",bottom:Ge,width:Oe.width,height:Oe.height},it.placeholderStyle={width:Oe.width,height:Oe.height}),it.lastAffix=!!it.affixStyle,xe&&_e!==it.lastAffix&&xe(it.lastAffix),Z.setState(it)},Z.prepareMeasure=function(){if(Z.setState({status:V.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var ve},Z.render=function(){var ve=Z.context.getPrefixCls,ue=Z.state,_e=ue.affixStyle,xe=ue.placeholderStyle,oe=Z.props,fe=oe.prefixCls,Te=oe.children,ze=u()(g()({},ve("affix",fe),_e)),it=Object(A.default)(Z.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return e.createElement(y.a,{onResize:function(){Z.updatePosition()}},e.createElement("div",E()({},it,{ref:Z.savePlaceholderNode}),_e&&e.createElement("div",{style:xe,"aria-hidden":"true"}),e.createElement("div",{className:ze,ref:Z.saveFixedNode,style:_e},e.createElement(y.a,{onResize:function(){Z.updatePosition()}},Te))))},Z}return c()(G,[{key:"getTargetFunc",value:function(){var ve=this.context.getTargetContainer,ue=this.props.target;return ue!==void 0?ue:ve||z}},{key:"componentDidMount",value:function(){var ve=this,ue=this.getTargetFunc();ue&&(this.timeout=setTimeout(function(){B(ue(),ve),ve.updatePosition()}))}},{key:"componentDidUpdate",value:function(ve){var ue=this.state.prevTarget,_e=this.getTargetFunc(),xe=null;_e&&(xe=_e()||null),ue!==xe&&(K(this),xe&&(B(xe,this),this.updatePosition()),this.setState({prevTarget:xe})),(ve.offsetTop!==this.props.offsetTop||ve.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),K(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var ve=this.getTargetFunc(),ue=this.state.affixStyle;if(ve&&ue){var _e=this.getOffsetTop(),xe=this.getOffsetBottom(),oe=ve();if(oe&&this.placeholderNode){var fe=D(oe),Te=D(this.placeholderNode),ze=N(Te,fe,_e),it=M(Te,fe,xe);if(ze!==void 0&&ue.top===ze||it!==void 0&&ue.bottom===it)return}}this.prepareMeasure()}}]),G}(e.Component);Y.contextType=x.b,U([L()],Y.prototype,"updatePosition",null),U([L()],Y.prototype,"lazyUpdatePosition",null);var J=Y,se=d("zAh6"),$=d("i6bk"),ae=e.createContext(null),ge=ae;function pe(){return window}function Ne(ee,X){if(!ee.getClientRects().length)return 0;var G=ee.getBoundingClientRect();return G.width||G.height?X===window?(X=ee.ownerDocument.documentElement,G.top-X.clientTop):G.top-X.getBoundingClientRect().top:G.top}var de=/#(\S+)$/,Le=function(ee){n()(G,ee);var X=s()(G);function G(){var Z;return m()(this,G),Z=X.apply(this,arguments),Z.state={activeLink:null},Z.links=[],Z.registerLink=function(ve){Z.links.includes(ve)||Z.links.push(ve)},Z.unregisterLink=function(ve){var ue=Z.links.indexOf(ve);ue!==-1&&Z.links.splice(ue,1)},Z.getContainer=function(){var ve=Z.context.getTargetContainer,ue=Z.props.getContainer,_e=ue||ve||pe;return _e()},Z.handleScrollTo=function(ve){var ue=Z.props,_e=ue.offsetTop,xe=ue.targetOffset;Z.setCurrentActiveLink(ve);var oe=Z.getContainer(),fe=Object($.a)(oe,!0),Te=de.exec(ve);if(!Te)return;var ze=document.getElementById(Te[1]);if(!ze)return;var it=Ne(ze,oe),et=fe+it;et-=xe!==void 0?xe:_e||0,Z.animating=!0,Object(se.a)(et,{callback:function(){Z.animating=!1},getContainer:Z.getContainer})},Z.saveInkNode=function(ve){Z.inkNode=ve},Z.setCurrentActiveLink=function(ve){var ue=Z.state.activeLink,_e=Z.props.onChange;ue!==ve&&(Z.setState({activeLink:ve}),_e&&_e(ve))},Z.handleScroll=function(){if(Z.animating)return;var ve=Z.props,ue=ve.offsetTop,_e=ve.bounds,xe=ve.targetOffset,oe=Z.getCurrentAnchor(xe!==void 0?xe:ue||0,_e);Z.setCurrentActiveLink(oe)},Z.updateInk=function(){var ve=r()(Z),ue=ve.prefixCls,_e=o.findDOMNode(r()(Z)),xe=_e.getElementsByClassName("".concat(ue,"-link-title-active"))[0];xe&&(Z.inkNode.style.top="".concat(xe.offsetTop+xe.clientHeight/2-4.5,"px"))},Z.render=function(){var ve=Z.context,ue=ve.getPrefixCls,_e=ve.direction,xe=Z.props,oe=xe.prefixCls,fe=xe.className,Te=fe===void 0?"":fe,ze=xe.style,it=xe.offsetTop,et=xe.affix,Oe=xe.showInkInFixed,gt=xe.children,Ge=Z.state.activeLink,wt=ue("anchor",oe);Z.prefixCls=wt;var xt=u()("".concat(wt,"-ink-ball"),{visible:Ge}),Ct=u()(Te,"".concat(wt,"-wrapper"),g()({},"".concat(wt,"-rtl"),_e==="rtl")),Dt=u()(wt,{fixed:!et&&!Oe}),Ht=E()({maxHeight:it?"calc(100vh - ".concat(it,"px)"):"100vh"},ze),Je=e.createElement("div",{className:Ct,style:Ht},e.createElement("div",{className:Dt},e.createElement("div",{className:"".concat(wt,"-ink")},e.createElement("span",{className:xt,ref:Z.saveInkNode})),gt));return e.createElement(ge.Provider,{value:{registerLink:Z.registerLink,unregisterLink:Z.unregisterLink,activeLink:Z.state.activeLink,scrollTo:Z.handleScrollTo,onClick:Z.props.onClick}},et?e.createElement(J,{offsetTop:it,target:Z.getContainer},Je):Je)},Z}return c()(G,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(f.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var ve=this.getContainer();this.scrollContainer!==ve&&(this.scrollContainer=ve,this.scrollEvent.remove(),this.scrollEvent=Object(f.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,_e=this.props.getCurrentAnchor;if(typeof _e=="function")return _e();var xe=[],oe=this.getContainer();if(this.links.forEach(function(Te){var ze=de.exec(Te.toString());if(!ze)return;var it=document.getElementById(ze[1]);if(it){var et=Ne(it,oe);et<ve+ue&&xe.push({link:Te,top:et})}}),xe.length){var fe=xe.reduce(function(Te,ze){return ze.top>Te.top?ze:Te});return fe.link}return""}}]),G}(e.Component);Le.defaultProps={affix:!0,showInkInFixed:!1},Le.contextType=x.b;var Q=function(ee){n()(G,ee);var X=s()(G);function G(){var Z;return m()(this,G),Z=X.apply(this,arguments),Z.handleClick=function(ve){var ue=Z.context,_e=ue.scrollTo,xe=ue.onClick,oe=Z.props,fe=oe.href,Te=oe.title;xe&&xe(ve,{title:Te,href:fe}),_e(fe)},Z.renderAnchorLink=function(ve){var ue=ve.getPrefixCls,_e=Z.props,xe=_e.prefixCls,oe=_e.href,fe=_e.title,Te=_e.children,ze=_e.className,it=_e.target,et=ue("anchor",xe),Oe=Z.context.activeLink===oe,gt=u()(ze,"".concat(et,"-link"),g()({},"".concat(et,"-link-active"),Oe)),Ge=u()("".concat(et,"-link-title"),g()({},"".concat(et,"-link-title-active"),Oe));return e.createElement("div",{className:gt},e.createElement("a",{className:Ge,href:oe,title:typeof fe=="string"?fe:"",target:it,onClick:Z.handleClick},fe),Te)},Z}return c()(G,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(ve){var ue=ve.href,_e=this.props.href;ue!==_e&&(this.context.unregisterLink(ue),this.context.registerLink(_e))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return e.createElement(x.a,null,this.renderAnchorLink)}}]),G}(e.Component);Q.defaultProps={href:"#"},Q.contextType=ge;var ce=Q;Le.Link=ce;var Ke=k.a=Le},JuEJ:function(H,k,d){var I=d("bYtY"),E=d("4NO4"),T=I.each,g=I.isObject,S=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function m(e){var o=e&&e.itemStyle;if(!o)return;for(var l=0,u=S.length;l<u;l++){var f=S[l],p=o.normal,v=o.emphasis;p&&p[f]&&(e[f]=e[f]||{},e[f].normal?I.merge(e[f].normal,p[f]):e[f].normal=p[f],p[f]=null),v&&v[f]&&(e[f]=e[f]||{},e[f].emphasis?I.merge(e[f].emphasis,v[f]):e[f].emphasis=v[f],v[f]=null)}}function h(e,o,l){if(e&&e[o]&&(e[o].normal||e[o].emphasis)){var u=e[o].normal,f=e[o].emphasis;u&&(l?(e[o].normal=e[o].emphasis=null,I.defaults(e[o],u)):e[o]=u),f&&(e.emphasis=e.emphasis||{},e.emphasis[o]=f)}}function c(e){h(e,"itemStyle"),h(e,"lineStyle"),h(e,"areaStyle"),h(e,"label"),h(e,"labelLine"),h(e,"upperLabel"),h(e,"edgeLabel")}function a(e,o){var l=g(e)&&e[o],u=g(l)&&l.textStyle;if(u)for(var f=0,p=E.TEXT_STYLE_OPTIONS.length;f<p;f++){var o=E.TEXT_STYLE_OPTIONS[f];u.hasOwnProperty(o)&&(l[o]=u[o])}}function r(e){e&&(c(e),a(e,"label"),e.emphasis&&a(e.emphasis,"label"))}function i(e){if(!g(e))return;m(e),c(e),a(e,"label"),a(e,"upperLabel"),a(e,"edgeLabel"),e.emphasis&&(a(e.emphasis,"label"),a(e.emphasis,"upperLabel"),a(e.emphasis,"edgeLabel"));var o=e.markPoint;o&&(m(o),r(o));var l=e.markLine;l&&(m(l),r(l));var u=e.markArea;u&&r(u);var f=e.data;if(e.type==="graph"){f=f||e.nodes;var p=e.links||e.edges;if(p&&!I.isTypedArray(p))for(var v=0;v<p.length;v++)r(p[v]);I.each(e.categories,function(x){c(x)})}if(f&&!I.isTypedArray(f))for(var v=0;v<f.length;v++)r(f[v]);var o=e.markPoint;if(o&&o.data)for(var A=o.data,v=0;v<A.length;v++)r(A[v]);var l=e.markLine;if(l&&l.data)for(var y=l.data,v=0;v<y.length;v++)I.isArray(y[v])?(r(y[v][0]),r(y[v][1])):r(y[v]);e.type==="gauge"?(a(e,"axisLabel"),a(e,"title"),a(e,"detail")):e.type==="treemap"?(h(e.breadcrumb,"itemStyle"),I.each(e.levels,function(x){c(x)})):e.type==="tree"&&c(e.leaves)}function n(e){return I.isArray(e)?e:e?[e]:[]}function t(e){return(I.isArray(e)?e[0]:e)||{}}function s(e,o){T(n(e.series),function(u){g(u)&&i(u)});var l=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];o&&l.push("valueAxis","categoryAxis","logAxis","timeAxis"),T(l,function(u){T(n(e[u]),function(f){f&&(a(f,"axisLabel"),a(f.axisPointer,"label"))})}),T(n(e.parallel),function(u){var f=u&&u.parallelAxisDefault;a(f,"axisLabel"),a(f&&f.axisPointer,"label")}),T(n(e.calendar),function(u){h(u,"itemStyle"),a(u,"dayLabel"),a(u,"monthLabel"),a(u,"yearLabel")}),T(n(e.radar),function(u){a(u,"name")}),T(n(e.geo),function(u){g(u)&&(r(u),T(n(u.regions),function(f){r(f)}))}),T(n(e.timeline),function(u){r(u),h(u,"label"),h(u,"itemStyle"),h(u,"controlStyle",!0);var f=u.data;I.isArray(f)&&I.each(f,function(p){I.isObject(p)&&(h(p,"label"),h(p,"itemStyle"))})}),T(n(e.toolbox),function(u){h(u,"iconStyle"),T(u.feature,function(f){h(f,"iconStyle")})}),a(t(e.axisPointer),"label"),a(t(e.tooltip).axisPointer,"label")}H.exports=s},K2GJ:function(H,k,d){var I=d("fW2E"),E=d("gut8"),T=E.ContextCachedBy,g=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],S=function(t){this.extendFrom(t,!1)};function m(n,t,s){var e=t.x==null?0:t.x,o=t.x2==null?1:t.x2,l=t.y==null?0:t.y,u=t.y2==null?0:t.y2;t.global||(e=e*s.width+s.x,o=o*s.width+s.x,l=l*s.height+s.y,u=u*s.height+s.y),e=isNaN(e)?0:e,o=isNaN(o)?1:o,l=isNaN(l)?0:l,u=isNaN(u)?0:u;var f=n.createLinearGradient(e,l,o,u);return f}function h(n,t,s){var e=s.width,o=s.height,l=Math.min(e,o),u=t.x==null?.5:t.x,f=t.y==null?.5:t.y,p=t.r==null?.5:t.r;t.global||(u=u*e+s.x,f=f*o+s.y,p=p*l);var v=n.createRadialGradient(u,f,0,u,f,p);return v}S.prototype={constructor:S,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(t,s,e){var o=this,l=e&&e.style,u=!l||t.__attrCachedBy!==T.STYLE_BIND;t.__attrCachedBy=T.STYLE_BIND;for(var f=0;f<g.length;f++){var p=g[f],v=p[0];(u||o[v]!==l[v])&&(t[v]=I(t,v,o[v]||p[1]))}if((u||o.fill!==l.fill)&&(t.fillStyle=o.fill),(u||o.stroke!==l.stroke)&&(t.strokeStyle=o.stroke),(u||o.opacity!==l.opacity)&&(t.globalAlpha=o.opacity==null?1:o.opacity),(u||o.blend!==l.blend)&&(t.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var A=o.lineWidth;t.lineWidth=A/(this.strokeNoScale&&s&&s.getLineScale?s.getLineScale():1)}},hasFill:function(){var t=this.fill;return t!=null&&t!=="none"},hasStroke:function(){var t=this.stroke;return t!=null&&t!=="none"&&this.lineWidth>0},extendFrom:function(t,s){if(t)for(var e in t)t.hasOwnProperty(e)&&(s===!0||(s===!1?!this.hasOwnProperty(e):t[e]!=null))&&(this[e]=t[e])},set:function(t,s){typeof t=="string"?this[t]=s:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,s,e){for(var o=s.type==="radial"?h:m,l=o(t,s,e),u=s.colorStops,f=0;f<u.length;f++)l.addColorStop(u[f].offset,u[f].color);return l}};for(var c=S.prototype,a=0;a<g.length;a++){var r=g[a];r[0]in c||(c[r[0]]=r[1])}S.getGradient=c.getGradient;var i=S;H.exports=i},K3mO:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.Base,S=T.WordArray,m=E.algo,h=m.MD5,c=m.EvpKDF=g.extend({cfg:g.extend({keySize:128/32,hasher:h,iterations:1}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,i){for(var n,t=this.cfg,s=t.hasher.create(),e=S.create(),o=e.words,l=t.keySize,u=t.iterations;o.length<l;){n&&s.update(n),n=s.update(r).finalize(i),s.reset();for(var f=1;f<u;f++)n=s.finalize(n),s.reset();e.concat(n)}return e.sigBytes=l*4,e}});E.EvpKDF=function(a,r,i){return c.create(i).compute(a,r)}}(),I.EvpKDF})},K4ya:function(H,k,d){var I=d("bYtY"),E=d("XxSj"),T=I.each;function g(a){if(a){for(var r in a)if(a.hasOwnProperty(r))return!0}}function S(a,r,i){var n={};return T(r,function(s){var e=n[s]=t();T(a[s],function(o,l){if(!E.isValidType(l))return;var u={type:l,visual:o};i&&i(u,s),e[l]=new E(u),l==="opacity"&&(u=I.clone(u),u.type="colorAlpha",e.__hidden.__alphaForOpacity=new E(u))})}),n;function t(){var s=function(){};s.prototype.__hidden=s.prototype;var e=new s;return e}}function m(a,r,i){var n;I.each(i,function(t){r.hasOwnProperty(t)&&g(r[t])&&(n=!0)}),n&&I.each(i,function(t){r.hasOwnProperty(t)&&g(r[t])?a[t]=I.clone(r[t]):delete a[t]})}function h(a,r,i,n,t,s){var e={};I.each(a,function(p){var v=E.prepareVisualTypes(r[p]);e[p]=v});var o;function l(p){return i.getItemVisual(o,p)}function u(p,v){i.setItemVisual(o,p,v)}s==null?i.each(f):i.each([s],f);function f(p,v){o=s==null?p:v;var A=i.getRawDataItem(o);if(A&&A.visualMap===!1)return;for(var y=n.call(t,p),x=r[y],C=e[y],w=0,b=C.length;w<b;w++){var _=C[w];x[_]&&x[_].applyVisual(p,l,u)}}}function c(a,r,i,n){var t={};I.each(a,function(e){var o=E.prepareVisualTypes(r[e]);t[e]=o});function s(e,o){n!=null&&(n=o.getDimension(n));function l(_){return o.getItemVisual(f,_)}function u(_,O){o.setItemVisual(f,_,O)}for(var f;(f=e.next())!=null;){var p=o.getRawDataItem(f);if(p&&p.visualMap===!1)continue;for(var v=n!=null?o.get(n,f,!0):f,A=i(v),y=r[A],x=t[A],C=0,w=x.length;C<w;C++){var b=x[C];y[b]&&y[b].applyVisual(v,l,u)}}}return{progress:s}}k.createVisualMappings=S,k.replaceVisualOption=m,k.applyVisual=h,k.incrementalApplyVisual=c},KCsZ:function(H,k,d){var I=d("bYtY");function E(T){for(var g=0;g<T.length;g++)T[g][1]||(T[g][1]=T[g][0]);return function(S,m,h){for(var c={},a=0;a<T.length;a++){var r=T[a][1];if(m&&I.indexOf(m,r)>=0||h&&I.indexOf(h,r)<0)continue;var i=S.getShallow(r);i!=null&&(c[T[a][0]]=i)}return c}}H.exports=E},KPFz:function(H,k,d){},KQeH:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},KS52:function(H,k,d){var I=d("OELB"),E=I.parsePercent,T=I.linearMap,g=d("+TT/"),S=d("u3DP"),m=d("bYtY"),h=Math.PI*2,c=Math.PI/180;function a(i,n){return g.getLayoutRect(i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function r(i,n,t,s){n.eachSeriesByType(i,function(e){var o=e.getData(),l=o.mapDimension("value"),u=a(e,t),f=e.get("center"),p=e.get("radius");m.isArray(p)||(p=[0,p]),m.isArray(f)||(f=[f,f]);var v=E(u.width,t.getWidth()),A=E(u.height,t.getHeight()),y=Math.min(v,A),x=E(f[0],v)+u.x,C=E(f[1],A)+u.y,w=E(p[0],y/2),b=E(p[1],y/2),_=-e.get("startAngle")*c,O=e.get("minAngle")*c,L=0;o.each(l,function(Y){!isNaN(Y)&&L++});var D=o.getSum(l),N=Math.PI/(D||L)*2,M=e.get("clockwise"),F=e.get("roseType"),R=e.get("stillShowZeroSum"),j=o.getDataExtent(l);j[0]=0;var B=h,K=0,U=_,z=M?1:-1;if(o.each(l,function(Y,J){var se;if(isNaN(Y)){o.setItemLayout(J,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:x,cy:C,r0:w,r:F?NaN:b,viewRect:u});return}F!=="area"?se=D===0&&R?N:Y*N:se=h/L,se<O?(se=O,B-=O):K+=Y;var $=U+z*se;o.setItemLayout(J,{angle:se,startAngle:U,endAngle:$,clockwise:M,cx:x,cy:C,r0:w,r:F?T(Y,j,[w,b]):b,viewRect:u}),U=$}),B<h&&L)if(B<=.001){var V=h/L;o.each(l,function(Y,J){if(!isNaN(Y)){var se=o.getItemLayout(J);se.angle=V,se.startAngle=_+z*J*V,se.endAngle=_+z*(J+1)*V}})}else N=B/K,U=_,o.each(l,function(Y,J){if(!isNaN(Y)){var se=o.getItemLayout(J),$=se.angle===O?O:Y*N;se.startAngle=U,se.endAngle=U+z*$,U+=z*$}});S(e,b,u.width,u.height,u.x,u.y)})}H.exports=r},KUOm:function(H,k){function d(I){var E={};I.eachSeriesByType("graph",function(T){var g=T.getCategoriesData(),S=T.getData(),m={};g.each(function(h){var c=g.getName(h);m["ec-"+c]=h;var a=g.getItemModel(h),r=a.get("itemStyle.color")||T.getColorFromPalette(c,E);g.setItemVisual(h,"color",r);for(var i=["opacity","symbol","symbolSize","symbolKeepAspect"],n=0;n<i.length;n++){var t=a.getShallow(i[n],!0);t!=null&&g.setItemVisual(h,i[n],t)}}),g.count()&&S.each(function(h){var c=S.getItemModel(h),a=c.getShallow("category");if(a!=null){typeof a=="string"&&(a=m["ec-"+a]);for(var r=["color","opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<r.length;i++)S.getItemVisual(h,r[i],!0)==null&&S.setItemVisual(h,r[i],g.getItemVisual(a,r[i]))}})})}H.exports=d},Kagy:function(H,k){var d={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:""}}}};H.exports=d},KamJ:function(H,k,d){var I=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),I.registerPreprocessor(E)},KmBX:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("CP8R")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="FilterFilled";var c=g.forwardRef(h);k.default=c},KmYQ:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.pad.ZeroPadding={pad:function(T,g){var S=g*4;T.clamp(),T.sigBytes+=S-(T.sigBytes%S||S)},unpad:function(T){for(var g=T.words,S=T.sigBytes-1,S=T.sigBytes-1;S>=0;S--)if(g[S>>>2]>>>24-S%4*8&255){T.sigBytes=S+1;break}}},I.pad.ZeroPadding})},"KpQ+":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("E/ki")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="ClockCircleOutlined";var c=g.forwardRef(h);k.default=c},KrTs:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("cDf5"),g=d.n(T),S=d("pVnL"),m=d.n(S),h=d("q1tI"),c=d("MFj2"),a=d("TSYQ"),r=d.n(a),i=d("J4zp"),n=d.n(i),t=d("H84U"),s=d("0n0R"),e=function(b,_){var O={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&_.indexOf(L)<0&&(O[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,L=Object.getOwnPropertySymbols(b);D<L.length;D++)_.indexOf(L[D])<0&&Object.prototype.propertyIsEnumerable.call(b,L[D])&&(O[L[D]]=b[L[D]]);return O};function o(b){return b?b.toString().split("").reverse().map(function(_){var O=Number(_);return isNaN(O)?_:O}):[]}function l(b,_){for(var O=[],L=0;L<30;L++)O.push(h.createElement("p",{key:L.toString(),className:r()(_,{current:b===L})},L%10));return O}var u=function(_){var O=_.prefixCls,L=_.count,D=_.className,N=_.style,M=_.title,F=_.component,R=F===void 0?"sup":F,j=_.displayComponent,B=_.onAnimated,K=B===void 0?function(){}:B,U=e(_,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),z=h.useState(!0),V=n()(z,2),Y=V[0],J=V[1],se=h.useState(L),$=n()(se,2),ae=$[0],ge=$[1],pe=h.useState(L),Ne=n()(pe,2),de=Ne[0],Le=Ne[1],Q=h.useState(L),ce=n()(Q,2),Ke=ce[0],ee=ce[1],X=h.useContext(t.b),G=X.getPrefixCls,Z=G("scroll-number",O);de!==L&&(J(!0),Le(L)),h.useEffect(function(){ee(ae);var oe;return Y&&(oe=setTimeout(function(){J(!1),ge(L),K()})),function(){oe&&clearTimeout(oe)}},[Y,L,K]);var ve=function(fe,Te){var ze=Math.abs(Number(ae)),it=Math.abs(Number(Ke)),et=Math.abs(o(ae)[Te]),Oe=Math.abs(o(it)[Te]);return Y?10+fe:ze>it?et>=Oe?10+fe:20+fe:et<=Oe?10+fe:fe},ue=function(fe,Te){if(typeof fe=="number"){var ze=ve(fe,Te),it=Y||o(Ke)[Te]===void 0;return h.createElement("span",{className:"".concat(Z,"-only"),style:{transition:it?"none":void 0,msTransform:"translateY(".concat(-ze*100,"%)"),WebkitTransform:"translateY(".concat(-ze*100,"%)"),transform:"translateY(".concat(-ze*100,"%)")},key:Te},l(ze,"".concat(Z,"-only-unit")))}return h.createElement("span",{key:"symbol",className:"".concat(Z,"-symbol")},fe)},_e=function(){return ae&&Number(ae)%1===0?o(ae).map(function(fe,Te){return ue(fe,Te)}).reverse():ae},xe=m()(m()({},U),{style:N,className:r()(Z,D),title:M});return N&&N.borderColor&&(xe.style=m()(m()({},N),{boxShadow:"0 0 0 1px ".concat(N.borderColor," inset")})),j?Object(s.a)(j,{className:r()("".concat(Z,"-custom-component"),j.props&&j.props.className)}):h.createElement(R,xe,_e())},f=u,p=d("09Wf");function v(b){return p.a.indexOf(b)!==-1}var A=function(_){var O,L=_.className,D=_.prefixCls,N=_.style,M=_.color,F=_.children,R=_.text,j=_.placement,B=j===void 0?"end":j,K=h.useContext(t.b),U=K.getPrefixCls,z=K.direction,V=U("ribbon",D),Y=v(M),J=r()(V,L,"".concat(V,"-placement-").concat(B),(O={},E()(O,"".concat(V,"-rtl"),z==="rtl"),E()(O,"".concat(V,"-color-").concat(M),Y),O)),se={},$={};return M&&!Y&&(se.background=M,$.color=M),h.createElement("div",{className:"".concat(V,"-wrapper")},F,h.createElement("div",{className:J,style:m()(m()({},se),N)},R,h.createElement("div",{className:"".concat(V,"-corner"),style:$})))},y=A,x=function(b,_){var O={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&_.indexOf(L)<0&&(O[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,L=Object.getOwnPropertySymbols(b);D<L.length;D++)_.indexOf(L[D])<0&&Object.prototype.propertyIsEnumerable.call(b,L[D])&&(O[L[D]]=b[L[D]]);return O},C=function(_){var O,L,D=_.prefixCls,N=_.scrollNumberPrefixCls,M=_.children,F=_.status,R=_.text,j=_.color,B=_.count,K=B===void 0?null:B,U=_.overflowCount,z=U===void 0?99:U,V=_.dot,Y=V===void 0?!1:V,J=_.size,se=J===void 0?"default":J,$=_.title,ae=_.offset,ge=_.style,pe=_.className,Ne=_.showZero,de=Ne===void 0?!1:Ne,Le=x(_,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Q=h.useContext(t.b),ce=Q.getPrefixCls,Ke=Q.direction,ee=ce("badge",D),X=function(){var xt=K>z?"".concat(z,"+"):K;return xt},G=function(){return!!F||!!j},Z=function(){var xt=X();return xt==="0"||xt===0},ve=function(){return Y&&!Z()||G()},ue=function(){return ve()?"":X()},_e=function(){return $||(typeof K=="string"||typeof K=="number"?K:void 0)},xe=function(){return Ke==="rtl"?ae?m()({left:parseInt(ae[0],10),marginTop:ae[1]},ge):ge:ae?m()({right:-parseInt(ae[0],10),marginTop:ae[1]},ge):ge},oe=function(){var xt=ue(),Ct=xt==null||xt==="";return(Ct||Z()&&!de)&&!ve()},fe=function(){var xt=oe();return xt||!R?null:h.createElement("span",{className:"".concat(ee,"-status-text")},R)},Te=function(){var xt=K;return!xt||g()(xt)!=="object"?void 0:Object(s.a)(xt,{style:m()(m()({},xe()),xt.props&&xt.props.style)})},ze=function(){var xt,Ct=ce("scroll-number",N),Dt=ue(),Ht=ve(),Je=oe(),ye=r()((xt={},E()(xt,"".concat(ee,"-dot"),Ht),E()(xt,"".concat(ee,"-count"),!Ht),E()(xt,"".concat(ee,"-count-sm"),se==="small"),E()(xt,"".concat(ee,"-multiple-words"),!Ht&&K&&K.toString&&K.toString().length>1),E()(xt,"".concat(ee,"-status-").concat(F),!!F),E()(xt,"".concat(ee,"-status-").concat(j),v(j)),xt)),ie=xe();return j&&!v(j)&&(ie=ie||{},ie.background=j),Je?null:h.createElement(f,{prefixCls:Ct,"data-show":!Je,className:ye,count:Dt,displayComponent:Te(),title:_e(),style:ie,key:"scrollNumber"})},it=r()((O={},E()(O,"".concat(ee,"-status-dot"),G()),E()(O,"".concat(ee,"-status-").concat(F),!!F),E()(O,"".concat(ee,"-status-").concat(j),v(j)),O)),et={};j&&!v(j)&&(et.background=j);var Oe=r()(pe,ee,(L={},E()(L,"".concat(ee,"-status"),G()),E()(L,"".concat(ee,"-not-a-wrapper"),!M),E()(L,"".concat(ee,"-rtl"),Ke==="rtl"),L));if(!M&&G()){var gt=xe(),Ge=gt&>.color;return h.createElement("span",m()({},Le,{className:Oe,style:gt}),h.createElement("span",{className:it,style:et}),h.createElement("span",{style:{color:Ge},className:"".concat(ee,"-status-text")},R))}return h.createElement("span",m()({},Le,{className:Oe}),M,h.createElement(c.a,{component:"",showProp:"data-show",transitionName:M?"".concat(ee,"-zoom"):"",transitionAppear:!0},ze()),fe())};C.Ribbon=y;var w=k.a=C},Kvyg:function(H,k,d){},KxBF:function(H,k){function d(I,E,T){var g=-1,S=I.length;E<0&&(E=-E>S?0:S+E),T=T>S?S:T,T<0&&(T+=S),S=E>T?0:T-E>>>0,E>>>=0;for(var m=Array(S);++g<S;)m[g]=I[g+E];return m}H.exports=d},KxFI:function(H,k,d){},KxfA:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=T.isTypedArray,S=T.extend,m=T.assert,h=T.each,c=T.isObject,a=d("4NO4"),r=a.getDataItemValue,i=a.isDataItemOption,n=d("OELB"),t=n.parseDate,s=d("7G+c"),e=d("k9D9"),o=e.SOURCE_FORMAT_TYPED_ARRAY,l=e.SOURCE_FORMAT_ARRAY_ROWS,u=e.SOURCE_FORMAT_ORIGINAL,f=e.SOURCE_FORMAT_OBJECT_ROWS;function p(M,F){s.isInstance(M)||(M=s.seriesDataToSource(M)),this._source=M;var R=this._data=M.data,j=M.sourceFormat;j===o&&(this._offset=0,this._dimSize=F,this._data=R);var B=A[j===l?j+"_"+M.seriesLayoutBy:j];S(this,B)}var v=p.prototype;v.pure=!1,v.persistent=!0,v.getSource=function(){return this._source};var A={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(M){return this._data[M+this._source.startIndex]},appendData:C},arrayRows_row:{pure:!0,count:function(){var M=this._data[0];return M?Math.max(0,M.length-this._source.startIndex):0},getItem:function(M){M+=this._source.startIndex;for(var F=[],R=this._data,j=0;j<R.length;j++){var B=R[j];F.push(B?B[M]:null)}return F},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:x,appendData:C},keyedColumns:{pure:!0,count:function(){var M=this._source.dimensionsDefine[0].name,F=this._data[M];return F?F.length:0},getItem:function(M){for(var F=[],R=this._source.dimensionsDefine,j=0;j<R.length;j++){var B=this._data[R[j].name];F.push(B?B[M]:null)}return F},appendData:function(M){var F=this._data;h(M,function(R,j){for(var B=F[j]||(F[j]=[]),K=0;K<(R||[]).length;K++)B.push(R[K])})}},original:{count:y,getItem:x,appendData:C},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(M,F){M=M-this._offset,F=F||[];for(var R=this._dimSize*M,j=0;j<this._dimSize;j++)F[j]=this._data[R+j];return F},appendData:function(M){this._data=M},clean:function(){this._offset+=this.count(),this._data=null}}};function y(){return this._data.length}function x(M){return this._data[M]}function C(M){for(var F=0;F<M.length;F++)this._data.push(M[F])}var w={arrayRows:b,objectRows:function(M,F,R,j){return R!=null?M[j]:M},keyedColumns:b,original:function(M,F,R,j){var B=r(M);return R==null||!(B instanceof Array)?B:B[R]},typedArray:b};function b(M,F,R,j){return R!=null?M[R]:M}var _={arrayRows:O,objectRows:function(M,F,R,j){return L(M[F],this._dimensionInfos[F])},keyedColumns:O,original:function(M,F,R,j){var B=M&&(M.value==null?M:M.value);return!this._rawData.pure&&i(M)&&(this.hasItemOption=!0),L(B instanceof Array?B[j]:B,this._dimensionInfos[F])},typedArray:function(M,F,R,j){return M[j]}};function O(M,F,R,j){return L(M[j],this._dimensionInfos[F])}function L(M,F){var R=F&&F.type;if(R==="ordinal"){var j=F&&F.ordinalMeta;return j?j.parseAndCollect(M):M}return R==="time"&&typeof M!="number"&&M!=null&&M!=="-"&&(M=+t(M)),M==null||M===""?NaN:+M}function D(M,F,R){if(!M)return;var j=M.getRawDataItem(F);if(j==null)return;var B=M.getProvider().getSource().sourceFormat,K,U,z=M.getDimensionInfo(R);return z&&(K=z.name,U=z.index),w[B](j,F,U,K)}function N(M,F,R){if(!M)return;var j=M.getProvider().getSource().sourceFormat;if(j!==u&&j!==f)return;var B=M.getRawDataItem(F);if(j===u&&!c(B)&&(B=null),B)return B[R]}k.DefaultDataProvider=p,k.defaultDimValueGetters=_,k.retrieveRawValue=D,k.retrieveRawAttr=N},L0Ub:function(H,k,d){var I=d("bYtY"),E=I.each,T=I.createHashMap,g=I.assert,S=d("Tghj"),m=S.__DEV__,h=T(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var t={},s=t.encode={},e=T(),o=[],l=[],u=t.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};E(n.dimensions,function(y){var x=n.getDimensionInfo(y),C=x.coordDim;if(C){var w=x.coordDimIndex;a(s,C)[w]=y,x.isExtraCoord||(e.set(C,1),i(x.type)&&(o[0]=y),a(u.encode,C)[w]=x.index),x.defaultTooltip&&l.push(y)}h.each(function(b,_){var O=a(s,_),L=x.otherDims[_];L!=null&&L!==!1&&(O[L]=x.name)})});var f=[],p={};e.each(function(y,x){var C=s[x];p[x]=C[0],f=f.concat(C)}),t.dataDimsOnCoord=f,t.encodeFirstDimNotExtra=p;var v=s.label;v&&v.length&&(o=v.slice());var A=s.tooltip;return A&&A.length?l=A.slice():l.length||(l=o.slice()),s.defaultedLabel=o,s.defaultedTooltip=l,t}function a(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}function r(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function i(n){return!(n==="ordinal"||n==="time")}k.OTHER_DIMENSIONS=h,k.summarizeDimensions=c,k.getDimensionTypeByAxis=r},L3Oj:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),I.registerLayout(E.curry(T,"bar")),I.extendComponentView({type:"polar"})},L41K:function(H,k,d){"use strict";d.d(k,"a",function(){return K});var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("7W2i"),r=d.n(a),i=d("LQ03"),n=d.n(i),t=d("q1tI"),s=d.n(t),e=d("BGR+"),o=d("VTBJ"),l=d("rePB"),u=d("Ff2n"),f=d("1OyB"),p=d("vuIU"),v=d("Ji7U"),A=d("LK+K"),y=d("Zm9Q"),x=d("TSYQ"),C=d.n(x),w=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function b(U){return typeof U=="string"}var _=function(U){Object(v.a)(V,U);var z=Object(A.a)(V);function V(){var Y;return Object(f.a)(this,V),Y=z.apply(this,arguments),Y.onClick=function(){var J=Y.props,se=J.onClick,$=J.onStepClick,ae=J.stepIndex;se&&se.apply(void 0,arguments),$(ae)},Y}return Object(p.a)(V,[{key:"renderIconNode",value:function(){var J,se=this.props,$=se.prefixCls,ae=se.progressDot,ge=se.stepIcon,pe=se.stepNumber,Ne=se.status,de=se.title,Le=se.description,Q=se.icon,ce=se.iconPrefix,Ke=se.icons,ee,X=C()("".concat($,"-icon"),"".concat(ce,"icon"),(J={},Object(l.a)(J,"".concat(ce,"icon-").concat(Q),Q&&b(Q)),Object(l.a)(J,"".concat(ce,"icon-check"),!Q&&Ne==="finish"&&(Ke&&!Ke.finish||!Ke)),Object(l.a)(J,"".concat(ce,"icon-cross"),!Q&&Ne==="error"&&(Ke&&!Ke.error||!Ke)),J)),G=t.createElement("span",{className:"".concat($,"-icon-dot")});return ae?typeof ae=="function"?ee=t.createElement("span",{className:"".concat($,"-icon")},ae(G,{index:pe-1,status:Ne,title:de,description:Le})):ee=t.createElement("span",{className:"".concat($,"-icon")},G):Q&&!b(Q)?ee=t.createElement("span",{className:"".concat($,"-icon")},Q):Ke&&Ke.finish&&Ne==="finish"?ee=t.createElement("span",{className:"".concat($,"-icon")},Ke.finish):Ke&&Ke.error&&Ne==="error"?ee=t.createElement("span",{className:"".concat($,"-icon")},Ke.error):Q||Ne==="finish"||Ne==="error"?ee=t.createElement("span",{className:X}):ee=t.createElement("span",{className:"".concat($,"-icon")},pe),ge&&(ee=ge({index:pe-1,status:Ne,title:de,description:Le,node:ee})),ee}},{key:"render",value:function(){var J,se=this.props,$=se.className,ae=se.prefixCls,ge=se.style,pe=se.active,Ne=se.status,de=Ne===void 0?"wait":Ne,Le=se.iconPrefix,Q=se.icon,ce=se.wrapperStyle,Ke=se.stepNumber,ee=se.disabled,X=se.description,G=se.title,Z=se.subTitle,ve=se.progressDot,ue=se.stepIcon,_e=se.tailContent,xe=se.icons,oe=se.stepIndex,fe=se.onStepClick,Te=se.onClick,ze=Object(u.a)(se,w),it=C()("".concat(ae,"-item"),"".concat(ae,"-item-").concat(de),$,(J={},Object(l.a)(J,"".concat(ae,"-item-custom"),Q),Object(l.a)(J,"".concat(ae,"-item-active"),pe),Object(l.a)(J,"".concat(ae,"-item-disabled"),ee===!0),J)),et=Object(o.a)({},ge),Oe={};return fe&&!ee&&(Oe.role="button",Oe.tabIndex=0,Oe.onClick=this.onClick),t.createElement("div",Object.assign({},ze,{className:it,style:et}),t.createElement("div",Object.assign({onClick:Te},Oe,{className:"".concat(ae,"-item-container")}),t.createElement("div",{className:"".concat(ae,"-item-tail")},_e),t.createElement("div",{className:"".concat(ae,"-item-icon")},this.renderIconNode()),t.createElement("div",{className:"".concat(ae,"-item-content")},t.createElement("div",{className:"".concat(ae,"-item-title")},G,Z&&t.createElement("div",{title:typeof Z=="string"?Z:void 0,className:"".concat(ae,"-item-subtitle")},Z)),X&&t.createElement("div",{className:"".concat(ae,"-item-description")},X))))}}]),V}(t.Component),O=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],L=function(U){Object(v.a)(V,U);var z=Object(A.a)(V);function V(){var Y;return Object(f.a)(this,V),Y=z.apply(this,arguments),Y.onStepClick=function(J){var se=Y.props,$=se.onChange,ae=se.current;$&&ae!==J&&$(J)},Y}return Object(p.a)(V,[{key:"render",value:function(){var J,se=this,$=this.props,ae=$.prefixCls,ge=$.style,pe=ge===void 0?{}:ge,Ne=$.className,de=$.children,Le=$.direction,Q=$.type,ce=$.labelPlacement,Ke=$.iconPrefix,ee=$.status,X=$.size,G=$.current,Z=$.progressDot,ve=$.stepIcon,ue=$.initial,_e=$.icons,xe=$.onChange,oe=Object(u.a)($,O),fe=Q==="navigation",Te=Z?"vertical":ce,ze=C()(ae,"".concat(ae,"-").concat(Le),Ne,(J={},Object(l.a)(J,"".concat(ae,"-").concat(X),X),Object(l.a)(J,"".concat(ae,"-label-").concat(Te),Le==="horizontal"),Object(l.a)(J,"".concat(ae,"-dot"),!!Z),Object(l.a)(J,"".concat(ae,"-navigation"),fe),J));return s.a.createElement("div",Object.assign({className:ze,style:pe},oe),Object(y.a)(de).map(function(it,et){var Oe=ue+et,gt=Object(o.a)({stepNumber:"".concat(Oe+1),stepIndex:Oe,key:Oe,prefixCls:ae,iconPrefix:Ke,wrapperStyle:pe,progressDot:Z,stepIcon:ve,icons:_e,onStepClick:xe&&se.onStepClick},it.props);return ee==="error"&&et===G-1&&(gt.className="".concat(ae,"-next-error")),it.props.status||(Oe===G?gt.status=ee:Oe<G?gt.status="finish":gt.status="wait"),gt.active=Oe===G,Object(t.cloneElement)(it,gt)}))}}]),V}(s.a.Component);L.Step=_,L.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var D=L,N=d("NAnI"),M=d.n(N),F=d("V/uB"),R=d.n(F),j=d("H84U"),B=d("CFYs"),K=function(U){r()(V,U);var z=n()(V);function V(){var Y;return m()(this,V),Y=z.apply(this,arguments),Y.renderSteps=function(J){var se=J.getPrefixCls,$=J.direction,ae=se("steps",Y.props.prefixCls),ge=se("",Y.props.iconPrefix),pe=Y.props,Ne=pe.percent,de=pe.size,Le=C()(Y.props.className,g()({},"".concat(ae,"-rtl"),$==="rtl")),Q={finish:t.createElement(M.a,{className:"".concat(ae,"-finish-icon")}),error:t.createElement(R.a,{className:"".concat(ae,"-error-icon")})},ce=function(ee){var X=ee.node,G=ee.status;if(G==="process"&&Ne!==void 0){var Z=de==="small"?32:40,ve=t.createElement("div",{className:"".concat(ae,"-progress-icon")},t.createElement(B.a,{type:"circle",percent:Ne,width:Z,strokeWidth:4,format:function(){return null}}),X);return ve}return X};return t.createElement(D,E()({icons:Q},Object(e.default)(Y.props,["progress"]),{stepIcon:ce,prefixCls:ae,iconPrefix:ge,className:Le}))},Y}return c()(V,[{key:"render",value:function(){return t.createElement(j.a,null,this.renderSteps)}}]),V}(t.Component);K.Step=D.Step,K.defaultProps={current:0}},L5E0:function(H,k){var d=["itemStyle","borderColor"];function I(E,T){var g=E.get("color");E.eachRawSeriesByType("boxplot",function(S){var m=g[S.seriesIndex%g.length],h=S.getData();h.setVisual({legendSymbol:"roundRect",color:S.get(d)||m}),E.isSeriesFiltered(S)||h.each(function(c){var a=h.getItemModel(c);h.setItemVisual(c,{color:a.get(d,!0)})})})}H.exports=I},LBfv:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=E.createHashMap,g=E.each;I.registerProcessor({getTargetSeries:function(S){var m=T();return S.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(c,a,r){var i=r.getAxisProxy(c.name,a);g(i.getTargetSeriesModels(),function(n){m.set(n.uid,n)})})}),m},modifyOutputEnd:!0,overallReset:function(S,m){S.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(c,a,r){r.getAxisProxy(c.name,a).reset(r,m)}),h.eachTargetAxis(function(c,a,r){r.getAxisProxy(c.name,a).filterData(r,m)})}),S.eachComponent("dataZoom",function(h){var c=h.findRepresentativeAxisProxy(),a=c.getDataPercentWindow(),r=c.getDataValueWindow();h.setCalculatedRange({start:a[0],end:a[1],startValue:r[0],endValue:r[1]})})}})},LCi9:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function I(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function E(p,v){for(var A=0;A<v.length;A++){var y=v[A];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function T(p,v,A){return v&&E(p.prototype,v),A&&E(p,A),p}var g=0,S=1,m=2,h=4,c=8,a=16,r=32,i=64,n=127,t=50,s=90,e=250,o=1e3,l=1e3,u=50,f=function(){function p(){I(this,p),this._target=null,this._state=n,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return T(p,[{key:"attach",value:function(A){this.detach(),this._target=A,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(A){var y;A.stopPropagation(),A.preventDefault();switch(A.type){case"touchstart":y=this._touchStart;break;case"touchmove":y=this._touchMove;break;case"touchend":case"touchcancel":y=this._touchEnd;break}for(var x=0;x<A.changedTouches.length;x++){var C=A.changedTouches[x];y.call(this,C.identifier,C.clientX,C.clientY)}}},{key:"_touchStart",value:function(A,y,x){if(this._hasDetectedGesture()||this._state===g){this._ignored.push(A);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>e){this._state=g,this._ignored.push(A);return}if(this._waitingRelease){this._state=g,this._ignored.push(A);return}this._tracked.push({id:A,started:Date.now(),active:!0,firstX:y,firstY:x,lastX:y,lastY:x,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(S|c|a),this._stopLongpressTimeout();break;case 3:this._state&=~(m|r|i);break;default:this._state=g}}},{key:"_touchMove",value:function(A,y,x){var C=this._tracked.find(function(D){return D.id===A});if(C===void 0)return;C.lastX=y,C.lastY=x;var w=y-C.firstX,b=x-C.firstY;if((C.firstX!==C.lastX||C.firstY!==C.lastY)&&(C.angle=Math.atan2(b,w)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(w,b)<t)return;if(this._state&=~(S|m|h|a),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~c),this._tracked.length!==2&&(this._state&=~(r|i)),this._tracked.length===2){var _=this._tracked.find(function(D){return D.id!==A}),O=Math.hypot(_.firstX-_.lastX,_.firstY-_.lastY);if(O>t){var L=Math.abs(C.angle-_.angle);L=Math.abs((L+180)%360-180),L>s?this._state&=~r:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(A,y,x){if(this._ignored.indexOf(A)!==-1){this._ignored.splice(this._ignored.indexOf(A),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=n,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=g),!this._hasDetectedGesture()&&(this._state&=~(c|r|i),this._state&=~a,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(m|h);break;case 2:this._state&=~(S|h);break}}if(this._waitingRelease){Date.now()-this._releaseStart>e&&(this._state=g),this._tracked.some(function(b){return Date.now()-b.started>o})&&(this._state=g);var C=this._tracked.find(function(b){return b.id===A});if(C.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==g)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var w=0;w<this._tracked.length;w++)this._tracked[w].active&&this._ignored.push(this._tracked[w].id);this._tracked=[],this._state=g,this._ignored.indexOf(A)!==-1&&this._ignored.splice(this._ignored.indexOf(A),1),this._ignored.length===0&&(this._state=n,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===g||this._state&this._state-1?!1:!(this._state&(S|m|h)&&this._tracked.some(function(A){return A.active}))}},{key:"_startLongpressTimeout",value:function(){var A=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return A._longpressTimeout()},l)}},{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 A=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return A._twoTouchTimeout()},u)}},{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 A=this._getAverageMovement(),y=Math.abs(A.x),x=Math.abs(A.y),C=this._getAverageDistance(),w=Math.abs(Math.hypot(C.first.x,C.first.y)-Math.hypot(C.last.x,C.last.y));x<w&&y<w?this._state=i:this._state=r,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(A){var y={type:this._stateToGesture(this._state)},x=this._getPosition(),C=x.last;A==="gesturestart"&&(C=x.first);switch(this._state){case r:case i:C=x.first;break}if(y.clientX=C.x,y.clientY=C.y,this._state===i){var w=this._getAverageDistance();A==="gesturestart"?(y.magnitudeX=w.first.x,y.magnitudeY=w.first.y):(y.magnitudeX=w.last.x,y.magnitudeY=w.last.y)}else if(this._state===r)if(A==="gesturestart")y.magnitudeX=0,y.magnitudeY=0;else{var b=this._getAverageMovement();y.magnitudeX=b.x,y.magnitudeY=b.y}var _=new CustomEvent(A,{detail:y});this._target.dispatchEvent(_)}},{key:"_stateToGesture",value:function(A){switch(A){case S:return"onetap";case m:return"twotap";case h:return"threetap";case c:return"drag";case a:return"longpress";case r:return"twodrag";case i:return"pinch"}throw new Error("Unknown gesture state: "+A)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var A=this._tracked.length,y=0,x=0,C=0,w=0,b=0;b<this._tracked.length;b++)y+=this._tracked[b].firstX,x+=this._tracked[b].firstY,C+=this._tracked[b].lastX,w+=this._tracked[b].lastY;return{first:{x:y/A,y:x/A},last:{x:C/A,y:w/A}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var A,y;A=y=0;for(var x=this._tracked.length,C=0;C<this._tracked.length;C++)A+=this._tracked[C].lastX-this._tracked[C].firstX,y+=this._tracked[C].lastY-this._tracked[C].firstY;return{x:A/x,y:y/x}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var A=this._tracked[0],y=this._tracked[this._tracked.length-1],x=Math.abs(y.firstX-A.firstX),C=Math.abs(y.firstY-A.firstY),w=Math.abs(y.lastX-A.lastX),b=Math.abs(y.lastY-A.lastY);return{first:{x,y:C},last:{x:w,y:b}}}}]),p}();k.default=f},LPTA:function(H,k){var d=1;typeof window!="undefined"&&(d=Math.max(window.devicePixelRatio||1,1));var I=0,E=d;k.debugMode=I,k.devicePixelRatio=E},LPzL:function(H,k,d){var I=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),I.extendComponentView({type:"single"})},LSTS:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I=function(){function n(t,s){for(var e=0;e<s.length;e++){var o=s[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,s,e){return s&&n(t.prototype,s),e&&n(t,e),t}}(),E=d("q1tI"),T=m(E),g=d("17x9"),S=m(g);function m(n){return n&&n.__esModule?n:{default:n}}function h(n,t){var s={};for(var e in n){if(t.indexOf(e)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,e))continue;s[e]=n[e]}return s}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function a(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function r(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var i=function(n){r(t,n);function t(s){c(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s));return e.scrollListener=e.scrollListener.bind(e),e.eventListenerOptions=e.eventListenerOptions.bind(e),e.mousewheelListener=e.mousewheelListener.bind(e),e}return I(t,[{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 e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,o={get passive(){e=!0}};try{document.addEventListener("test",null,o),document.removeEventListener("test",null,o)}catch(l){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;this.props.useWindow===!1&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;this.props.useWindow===!1&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var o=this.props.getScrollParent&&this.props.getScrollParent();return o!=null?o:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!e)return;var o=window;this.props.useWindow===!1&&(o=e),o.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),o.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(e){e.deltaY===1&&!this.isPassiveSupported()&&e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,o=window,l=this.getParentElement(e),u=void 0;if(this.props.useWindow){var f=document.documentElement||document.body.parentNode||document.body,p=o.pageYOffset!==void 0?o.pageYOffset:f.scrollTop;this.props.isReverse?u=p:u=this.calculateOffset(e,p)}else this.props.isReverse?u=l.scrollTop:u=e.scrollHeight-l.scrollTop-l.clientHeight;u<Number(this.props.threshold)&&e&&e.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=l.scrollHeight,this.beforeScrollTop=l.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,o){return e?this.calculateTopPosition(e)+(e.offsetHeight-o-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,o=this.filterProps(this.props),l=o.children,u=o.element,f=o.hasMore,p=o.initialLoad,v=o.isReverse,A=o.loader,y=o.loadMore,x=o.pageStart,C=o.ref,w=o.threshold,b=o.useCapture,_=o.useWindow,O=o.getScrollParent,L=h(o,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);L.ref=function(N){e.scrollComponent=N,C&&C(N)};var D=[l];return f&&(A?v?D.unshift(A):D.push(A):this.defaultLoader&&(v?D.unshift(this.defaultLoader):D.push(this.defaultLoader))),T.default.createElement(u,L,D)}}]),t}(E.Component);i.propTypes={children:S.default.node.isRequired,element:S.default.node,hasMore:S.default.bool,initialLoad:S.default.bool,isReverse:S.default.bool,loader:S.default.node,loadMore:S.default.func.isRequired,pageStart:S.default.number,ref:S.default.func,getScrollParent:S.default.func,threshold:S.default.number,useCapture:S.default.bool,useWindow:S.default.bool},i.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},k.default=i,H.exports=k.default},Lerx:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("Mds0"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},Llu2:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="DeliveredProcedureOutlined";var h=k.a=E.forwardRef(m)},Lo0S:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.initLogging=m,k.getLogging=h,k.Error=k.Warn=k.Info=k.Debug=void 0;var I="warn",E=function(){};k.Debug=E;var T=function(){};k.Info=T;var g=function(){};k.Warn=g;var S=function(){};k.Error=S;function m(c){if(typeof c=="undefined"?c=I:I=c,k.Debug=E=k.Info=T=k.Warn=g=k.Error=S=function(){},typeof window.console!="undefined")switch(c){case"debug":k.Debug=E=console.debug.bind(window.console);case"info":k.Info=T=console.info.bind(window.console);case"warn":k.Warn=g=console.warn.bind(window.console);case"error":k.Error=S=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+c+"'")}}function h(){return I}m()},LtfV:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="InboxOutlined";var h=k.a=E.forwardRef(m)},Lyp1:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="QuestionCircleOutlined";var h=k.a=E.forwardRef(m)},LzGr:function(H,k,d){var I=d("ProS"),E=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),I.registerPreprocessor(E)},MBQ8:function(H,k,d){var I=d("T4UG"),E=d("MwEJ"),T=I.extend({type:"series.__base_bar__",getInitialData:function(g,S){return E(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(g){var S=this.coordinateSystem;if(S){var m=S.dataToPoint(S.clampData(g)),h=this.getData(),c=h.getLayout("offset"),a=h.getLayout("size"),r=S.getBaseAxis().isHorizontal()?0:1;return m[r]+=c+a/2,m}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:{}}});H.exports=T},MEGo:function(H,k,d){var I=d("4fz+"),E=d("Dagg"),T=d("dqUG"),g=d("2fw6"),S=d("x6Kt"),m=d("rmlV"),h=d("yxFR"),c=d("y+Vt"),a=d("h7HQ"),r=d("1Jh7"),i=d("SKnc"),n=d("K2GJ"),t=d("Fofx"),s=d("NC18"),e=s.createFromString,o=d("bYtY"),l=o.isString,u=o.extend,f=o.defaults,p=o.trim,v=o.each,A=/[\s,]+/;function y(z){if(l(z)){var V=new DOMParser;z=V.parseFromString(z,"text/xml")}for(z.nodeType===9&&(z=z.firstChild);z.nodeName.toLowerCase()!=="svg"||z.nodeType!==1;)z=z.nextSibling;return z}function x(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}x.prototype.parse=function(z,V){V=V||{};var Y=y(z);if(!Y)throw new Error("Illegal svg");var J=new I;this._root=J;var se=Y.getAttribute("viewBox")||"",$=parseFloat(Y.getAttribute("width")||V.width),ae=parseFloat(Y.getAttribute("height")||V.height);isNaN($)&&($=null),isNaN(ae)&&(ae=null),D(Y,J,null,!0);for(var ge=Y.firstChild;ge;)this._parseNode(ge,J),ge=ge.nextSibling;var pe,Ne;if(se){var de=p(se).split(A);de.length>=4&&(pe={x:parseFloat(de[0]||0),y:parseFloat(de[1]||0),width:parseFloat(de[2]),height:parseFloat(de[3])})}if(pe&&$!=null&&ae!=null&&(Ne=K(pe,$,ae),!V.ignoreViewBox)){var Le=J;J=new I,J.add(Le),Le.scale=Ne.scale.slice(),Le.position=Ne.position.slice()}return!V.ignoreRootClip&&$!=null&&ae!=null&&J.setClipPath(new S({shape:{x:0,y:0,width:$,height:ae}})),{root:J,width:$,height:ae,viewBoxRect:pe,viewBoxTransform:Ne}},x.prototype._parseNode=function(z,V){var Y=z.nodeName.toLowerCase();Y==="defs"?this._isDefine=!0:Y==="text"&&(this._isText=!0);var J;if(this._isDefine){var se=w[Y];if(se){var $=se.call(this,z),ae=z.getAttribute("id");ae&&(this._defs[ae]=$)}}else{var se=C[Y];se&&(J=se.call(this,z,V),V.add(J))}for(var ge=z.firstChild;ge;)ge.nodeType===1&&this._parseNode(ge,J),ge.nodeType===3&&this._isText&&this._parseText(ge,J),ge=ge.nextSibling;Y==="defs"?this._isDefine=!1:Y==="text"&&(this._isText=!1)},x.prototype._parseText=function(z,V){if(z.nodeType===1){var Y=z.getAttribute("dx")||0,J=z.getAttribute("dy")||0;this._textX+=parseFloat(Y),this._textY+=parseFloat(J)}var se=new T({style:{text:z.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});_(V,se),D(z,se,this._defs);var $=se.style.fontSize;$&&$<9&&(se.style.fontSize=9,se.scale=se.scale||[1,1],se.scale[0]*=$/9,se.scale[1]*=$/9);var ae=se.getBoundingRect();return this._textX+=ae.width,V.add(se),se};var C={g:function(V,Y){var J=new I;return _(Y,J),D(V,J,this._defs),J},rect:function(V,Y){var J=new S;return _(Y,J),D(V,J,this._defs),J.setShape({x:parseFloat(V.getAttribute("x")||0),y:parseFloat(V.getAttribute("y")||0),width:parseFloat(V.getAttribute("width")||0),height:parseFloat(V.getAttribute("height")||0)}),J},circle:function(V,Y){var J=new g;return _(Y,J),D(V,J,this._defs),J.setShape({cx:parseFloat(V.getAttribute("cx")||0),cy:parseFloat(V.getAttribute("cy")||0),r:parseFloat(V.getAttribute("r")||0)}),J},line:function(V,Y){var J=new h;return _(Y,J),D(V,J,this._defs),J.setShape({x1:parseFloat(V.getAttribute("x1")||0),y1:parseFloat(V.getAttribute("y1")||0),x2:parseFloat(V.getAttribute("x2")||0),y2:parseFloat(V.getAttribute("y2")||0)}),J},ellipse:function(V,Y){var J=new m;return _(Y,J),D(V,J,this._defs),J.setShape({cx:parseFloat(V.getAttribute("cx")||0),cy:parseFloat(V.getAttribute("cy")||0),rx:parseFloat(V.getAttribute("rx")||0),ry:parseFloat(V.getAttribute("ry")||0)}),J},polygon:function(V,Y){var J=V.getAttribute("points");J&&(J=O(J));var se=new a({shape:{points:J||[]}});return _(Y,se),D(V,se,this._defs),se},polyline:function(V,Y){var J=new c;_(Y,J),D(V,J,this._defs);var se=V.getAttribute("points");se&&(se=O(se));var $=new r({shape:{points:se||[]}});return $},image:function(V,Y){var J=new E;return _(Y,J),D(V,J,this._defs),J.setStyle({image:V.getAttribute("xlink:href"),x:V.getAttribute("x"),y:V.getAttribute("y"),width:V.getAttribute("width"),height:V.getAttribute("height")}),J},text:function(V,Y){var J=V.getAttribute("x")||0,se=V.getAttribute("y")||0,$=V.getAttribute("dx")||0,ae=V.getAttribute("dy")||0;this._textX=parseFloat(J)+parseFloat($),this._textY=parseFloat(se)+parseFloat(ae);var ge=new I;return _(Y,ge),D(V,ge,this._defs),ge},tspan:function(V,Y){var J=V.getAttribute("x"),se=V.getAttribute("y");J!=null&&(this._textX=parseFloat(J)),se!=null&&(this._textY=parseFloat(se));var $=V.getAttribute("dx")||0,ae=V.getAttribute("dy")||0,ge=new I;return _(Y,ge),D(V,ge,this._defs),this._textX+=$,this._textY+=ae,ge},path:function(V,Y){var J=V.getAttribute("d")||"",se=e(J);return _(Y,se),D(V,se,this._defs),se}},w={lineargradient:function(V){var Y=parseInt(V.getAttribute("x1")||0,10),J=parseInt(V.getAttribute("y1")||0,10),se=parseInt(V.getAttribute("x2")||10,10),$=parseInt(V.getAttribute("y2")||0,10),ae=new i(Y,J,se,$);return b(V,ae),ae},radialgradient:function(V){}};function b(z,V){for(var Y=z.firstChild;Y;){if(Y.nodeType===1){var J=Y.getAttribute("offset");J.indexOf("%")>0?J=parseInt(J,10)/100:J?J=parseFloat(J):J=0;var se=Y.getAttribute("stop-color")||"#000000";V.addColorStop(J,se)}Y=Y.nextSibling}}function _(z,V){z&&z.__inheritedStyle&&(V.__inheritedStyle||(V.__inheritedStyle={}),f(V.__inheritedStyle,z.__inheritedStyle))}function O(z){for(var V=p(z).split(A),Y=[],J=0;J<V.length;J+=2){var se=parseFloat(V[J]),$=parseFloat(V[J+1]);Y.push([se,$])}return Y}var L={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 D(z,V,Y,J){var se=V.__inheritedStyle||{},$=V.type==="text";if(z.nodeType===1&&(R(z,V),u(se,B(z)),!J)){for(var ae in L)if(L.hasOwnProperty(ae)){var ge=z.getAttribute(ae);ge!=null&&(se[L[ae]]=ge)}}var pe=$?"textFill":"fill",Ne=$?"textStroke":"stroke";V.style=V.style||new n;var de=V.style;se.fill!=null&&de.set(pe,M(se.fill,Y)),se.stroke!=null&&de.set(Ne,M(se.stroke,Y)),v(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Le){var Q=Le==="lineWidth"&&$?"textStrokeWidth":Le;se[Le]!=null&&de.set(Q,parseFloat(se[Le]))}),(!se.textBaseline||se.textBaseline==="auto")&&(se.textBaseline="alphabetic"),se.textBaseline==="alphabetic"&&(se.textBaseline="bottom"),se.textAlign==="start"&&(se.textAlign="left"),se.textAlign==="end"&&(se.textAlign="right"),v(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Le){se[Le]!=null&&de.set(Le,se[Le])}),se.lineDash&&(V.style.lineDash=p(se.lineDash).split(A)),de[Ne]&&de[Ne]!=="none"&&(V[Ne]=!0),V.__inheritedStyle=se}var N=/url\(\s*#(.*?)\)/;function M(z,V){var Y=V&&z&&z.match(N);if(Y){var J=p(Y[1]),se=V[J];return se}return z}var F=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function R(z,V){var Y=z.getAttribute("transform");if(Y){Y=Y.replace(/,/g," ");var J=null,se=[];Y.replace(F,function(pe,Ne,de){se.push(Ne,de)});for(var $=se.length-1;$>0;$-=2){var ae=se[$],ge=se[$-1];J=J||t.create();switch(ge){case"translate":ae=p(ae).split(A),t.translate(J,J,[parseFloat(ae[0]),parseFloat(ae[1]||0)]);break;case"scale":ae=p(ae).split(A),t.scale(J,J,[parseFloat(ae[0]),parseFloat(ae[1]||ae[0])]);break;case"rotate":ae=p(ae).split(A),t.rotate(J,J,parseFloat(ae[0]));break;case"skew":ae=p(ae).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":var ae=p(ae).split(A);J[0]=parseFloat(ae[0]),J[1]=parseFloat(ae[1]),J[2]=parseFloat(ae[2]),J[3]=parseFloat(ae[3]),J[4]=parseFloat(ae[4]),J[5]=parseFloat(ae[5]);break}}V.setLocalTransform(J)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function B(z){var V=z.getAttribute("style"),Y={};if(!V)return Y;var J={};j.lastIndex=0;for(var se;(se=j.exec(V))!=null;)J[se[1]]=se[2];for(var $ in L)L.hasOwnProperty($)&&J[$]!=null&&(Y[L[$]]=J[$]);return Y}function K(z,V,Y){var J=V/z.width,se=Y/z.height,$=Math.min(J,se),ae=[$,$],ge=[-(z.x+z.width/2)*$+V/2,-(z.y+z.height/2)*$+Y/2];return{scale:ae,position:ge}}function U(z,V){var Y=new x;return Y.parse(z,V)}k.parseXML=y,k.makeViewBoxTransform=K,k.parseSVG=U},MFOe:function(H,k,d){(function(I){var E=m(),T=h(),g=c(),S=typeof window!="undefined"?window:I;H.exports={assign:E,create:T,trim:g,bind:a,slice:r,each:i,map:n,pluck:t,isList:s,isFunction:e,isObject:o,Global:S};function m(){return Object.assign?Object.assign:function(u,f,p,v){for(var A=1;A<arguments.length;A++)i(Object(arguments[A]),function(y,x){u[x]=y});return u}}function h(){if(Object.create)return function(f,p,v,A){var y=r(arguments,1);return E.apply(this,[Object.create(f)].concat(y))};var l=function(){};return function(f,p,v,A){var y=r(arguments,1);return l.prototype=f,E.apply(this,[new l].concat(y))}}function c(){return String.prototype.trim?function(u){return String.prototype.trim.call(u)}:function(u){return u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function a(l,u){return function(){return u.apply(l,Array.prototype.slice.call(arguments,0))}}function r(l,u){return Array.prototype.slice.call(l,u||0)}function i(l,u){t(l,function(f,p){return u(f,p),!1})}function n(l,u){var f=s(l)?[]:{};return t(l,function(p,v){return f[v]=u(p,v),!1}),f}function t(l,u){if(s(l)){for(var f=0;f<l.length;f++)if(u(l[f],f))return l[f]}else for(var p in l)if(l.hasOwnProperty(p)&&u(l[p],p))return l[p]}function s(l){return l!=null&&typeof l!="function"&&typeof l.length=="number"}function e(l){return l&&{}.toString.call(l)==="[object Function]"}function o(l){return l&&{}.toString.call(l)==="[object Object]"}}).call(this,d("yLpj"))},MH26:function(H,k,d){var I=d("bYtY"),E=d("YXkt"),T=d("OELB"),g=d("kj2x"),S=d("c8qY"),m=d("iPDy"),h=d("7hqr"),c=h.getStackedDimension,a=function(o,l,u,f){var p=o.getData(),v=f.type;if(!I.isArray(f)&&(v==="min"||v==="max"||v==="average"||v==="median"||f.xAxis!=null||f.yAxis!=null)){var A,y;if(f.yAxis!=null||f.xAxis!=null)A=l.getAxis(f.yAxis!=null?"y":"x"),y=I.retrieve(f.yAxis,f.xAxis);else{var x=g.getAxisInfo(f,p,l,o);A=x.valueAxis;var C=c(p,x.valueDataDim);y=g.numCalculate(p,C,v)}var w=A.dim==="x"?0:1,b=1-w,_=I.clone(f),O={};_.type=null,_.coord=[],O.coord=[],_.coord[b]=-Infinity,O.coord[b]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),_.coord[w]=O.coord[w]=y,f=[_,O,{type:v,valueIndex:f.valueIndex,value:y}]}return f=[g.dataTransform(o,f[0]),g.dataTransform(o,f[1]),I.extend({},f[2])],f[2].type=f[2].type||"",I.merge(f[2],f[0]),I.merge(f[2],f[1]),f};function r(o){return!isNaN(o)&&!isFinite(o)}function i(o,l,u,f){var p=1-o,v=f.dimensions[o];return r(l[p])&&r(u[p])&&l[o]===u[o]&&f.getAxis(v).containData(l[o])}function n(o,l){if(o.type==="cartesian2d"){var u=l[0].coord,f=l[1].coord;if(u&&f&&(i(1,u,f,o)||i(0,u,f,o)))return!0}return g.dataFilter(o,l[0])&&g.dataFilter(o,l[1])}function t(o,l,u,f,p){var v=f.coordinateSystem,A=o.getItemModel(l),y,x=T.parsePercent(A.get("x"),p.getWidth()),C=T.parsePercent(A.get("y"),p.getHeight());if(!isNaN(x)&&!isNaN(C))y=[x,C];else{if(f.getMarkerPosition)y=f.getMarkerPosition(o.getValues(o.dimensions,l));else{var w=v.dimensions,b=o.get(w[0],l),_=o.get(w[1],l);y=v.dataToPoint([b,_])}if(v.type==="cartesian2d"){var O=v.getAxis("x"),L=v.getAxis("y"),w=v.dimensions;r(o.get(w[0],l))?y[0]=O.toGlobalCoord(O.getExtent()[u?0:1]):r(o.get(w[1],l))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(x)||(y[0]=x),isNaN(C)||(y[1]=C)}o.setItemLayout(l,y)}var s=m.extend({type:"markLine",updateTransform:function(o,l,u){l.eachSeries(function(f){var p=f.markLineModel;if(p){var v=p.getData(),A=p.__from,y=p.__to;A.each(function(x){t(A,x,!0,f,u),t(y,x,!1,f,u)}),v.each(function(x){v.setItemLayout(x,[A.getItemLayout(x),y.getItemLayout(x)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},renderSeries:function(o,l,u,f){var p=o.coordinateSystem,v=o.id,A=o.getData(),y=this.markerGroupMap,x=y.get(v)||y.set(v,new S);this.group.add(x.group);var C=e(p,o,l),w=C.from,b=C.to,_=C.line;l.__from=w,l.__to=b,l.setData(_);var O=l.get("symbol"),L=l.get("symbolSize");I.isArray(O)||(O=[O,O]),typeof L=="number"&&(L=[L,L]),C.from.each(function(N){D(w,N,!0),D(b,N,!1)}),_.each(function(N){var M=_.getItemModel(N).get("lineStyle.color");_.setItemVisual(N,{color:M||w.getItemVisual(N,"color")}),_.setItemLayout(N,[w.getItemLayout(N),b.getItemLayout(N)]),_.setItemVisual(N,{fromSymbolSize:w.getItemVisual(N,"symbolSize"),fromSymbol:w.getItemVisual(N,"symbol"),toSymbolSize:b.getItemVisual(N,"symbolSize"),toSymbol:b.getItemVisual(N,"symbol")})}),x.updateData(_),C.line.eachItemGraphicEl(function(N,M){N.traverse(function(F){F.dataModel=l})});function D(N,M,F){var R=N.getItemModel(M);t(N,M,F,o,f),N.setItemVisual(M,{symbolSize:R.get("symbolSize")||L[F?0:1],symbol:R.get("symbol",!0)||O[F?0:1],color:R.get("itemStyle.color")||A.getVisual("color")})}x.__keep=!0,x.group.silent=l.get("silent")||o.get("silent")}});function e(o,l,u){var f;o?f=I.map(o&&o.dimensions,function(C){var w=l.getData().getDimensionInfo(l.getData().mapDimension(C))||{};return I.defaults({name:C},w)}):f=[{name:"value",type:"float"}];var p=new E(f,u),v=new E(f,u),A=new E([],u),y=I.map(u.get("data"),I.curry(a,l,o,u));o&&(y=I.filter(y,I.curry(n,o)));var x=o?g.dimValueGetter:function(C){return C.value};return p.initData(I.map(y,function(C){return C[0]}),null,x),v.initData(I.map(y,function(C){return C[1]}),null,x),A.initData(I.map(y,function(C){return C[2]})),A.hasItemOption=!0,{from:p,to:v,line:A}}H.exports=s},MHoB:function(H,k,d){var I=d("bYtY"),E=d("6uqw"),T=d("OELB"),g=[20,140],S=E.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(c,a){S.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){S.superApply(this,"resetItemSize",arguments);var c=this.itemSize;this._orient==="horizontal"&&c.reverse(),(c[0]==null||isNaN(c[0]))&&(c[0]=g[0]),(c[1]==null||isNaN(c[1]))&&(c[1]=g[1])},_resetRange:function(){var c=this.getExtent(),a=this.option.range;!a||a.auto?(c.auto=1,this.option.range=c):I.isArray(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],c[0]),a[1]=Math.min(a[1],c[1]))},completeVisualOption:function(){E.prototype.completeVisualOption.apply(this,arguments),I.each(this.stateList,function(c){var a=this.option.controller[c].symbolSize;a&&a[0]!==a[1]&&(a[0]=0)},this)},setSelected:function(c){this.option.range=c.slice(),this._resetRange()},getSelected:function(){var c=this.getExtent(),a=T.asc((this.get("range")||[]).slice());return a[0]>c[1]&&(a[0]=c[1]),a[1]>c[1]&&(a[1]=c[1]),a[0]<c[0]&&(a[0]=c[0]),a[1]<c[0]&&(a[1]=c[0]),a},getValueState:function(c){var a=this.option.range,r=this.getExtent();return(a[0]<=r[0]||a[0]<=c)&&(a[1]>=r[1]||c<=a[1])?"inRange":"outOfRange"},findTargetDataIndices:function(c){var a=[];return this.eachTargetSeries(function(r){var i=[],n=r.getData();n.each(this.getDataDimension(n),function(t,s){c[0]<=t&&t<=c[1]&&i.push(s)},this),a.push({seriesId:r.id,dataIndex:i})},this),a},getVisualMeta:function(c){var a=m(this,"outOfRange",this.getExtent()),r=m(this,"inRange",this.option.range.slice()),i=[];function n(f,p){i.push({value:f,color:c(f,p)})}for(var t=0,s=0,e=r.length,o=a.length;s<o&&(!r.length||a[s]<=r[0]);s++)a[s]<r[t]&&n(a[s],"outOfRange");for(var l=1;t<e;t++,l=0)l&&i.length&&n(r[t],"outOfRange"),n(r[t],"inRange");for(var l=1;s<o;s++)(!r.length||r[r.length-1]<a[s])&&(l&&(i.length&&n(i[i.length-1].value,"outOfRange"),l=0),n(a[s],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}}});function m(c,a,r){if(r[0]===r[1])return r.slice();for(var i=200,n=(r[1]-r[0])/i,t=r[0],s=[],e=0;e<=i&&t<r[1];e++)s.push(t),t+=n;return s.push(r[1]),s}var h=S;H.exports=h},MHtr:function(H,k,d){var I=d("bYtY");function E(g,S){var m=this.getAxis(),h=S instanceof Array?S[0]:S,c=(g instanceof Array?g[0]:g)/2;return m.type==="category"?m.getBandWidth():Math.abs(m.dataToCoord(h-c)-m.dataToCoord(h+c))}function T(g){var S=g.getRect();return{coordSys:{type:"singleAxis",x:S.x,y:S.y,width:S.width,height:S.height},api:{coord:function(m){return g.dataToPoint(m)},size:I.bind(E,g)}}}H.exports=T},MJZm:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("q1tI"),m=d("fAei"),h=d("TSYQ"),c=d.n(h),a=d("RIqP"),r=d.n(a),i=d("J4zp"),n=d.n(i),t=d("sEfC"),s=d.n(t),e=d("OZM5"),o=d("815F"),l=d("vk+C"),u=d.n(l),f=d("Vy0f"),p=d.n(f),v=d("kGiB"),A=d.n(v),y=d("H84U"),x;(function(U){U[U.None=0]="None",U[U.Start=1]="Start",U[U.End=2]="End"})(x||(x={}));function C(U,z){function V(Y){var J=Y.key,se=Y.children;z(J,Y)!==!1&&C(se||[],z)}U.forEach(V)}function w(U){var z=U.treeData,V=U.expandedKeys,Y=U.startKey,J=U.endKey,se=[],$=x.None;if(Y&&Y===J)return[Y];if(!Y||!J)return[];function ae(ge){return ge===Y||ge===J}return C(z,function(ge){if($===x.End)return!1;if(ae(ge)){if(se.push(ge),$===x.None)$=x.Start;else if($===x.Start)return $=x.End,!1}else $===x.Start&&se.push(ge);return!(V.indexOf(ge)===-1)}),se}function b(U,z){var V=r()(z),Y=[];return C(U,function(J,se){var $=V.indexOf(J);return $!==-1&&(Y.push(se),V.splice($,1)),!!V.length}),Y}var _=function(U,z){var V={};for(var Y in U)Object.prototype.hasOwnProperty.call(U,Y)&&z.indexOf(Y)<0&&(V[Y]=U[Y]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,Y=Object.getOwnPropertySymbols(U);J<Y.length;J++)z.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(U,Y[J])&&(V[Y[J]]=U[Y[J]]);return V};function O(U){var z=U.isLeaf,V=U.expanded;return z?S.createElement(u.a,null):V?S.createElement(p.a,null):S.createElement(A.a,null)}function L(U){var z=U.treeData,V=U.children;return z||Object(o.c)(V)}var D=function(z,V){var Y=z.defaultExpandAll,J=z.defaultExpandParent,se=z.defaultExpandedKeys,$=_(z,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),ae=S.useRef(),ge=S.useRef(),pe=S.createRef();S.useImperativeHandle(V,function(){return pe.current});var Ne=function(){var xt=Object(o.a)(L($)),Ct=xt.keyEntities,Dt;return Y?Dt=Object.keys(Ct):J?Dt=Object(e.e)($.expandedKeys||se,Ct):Dt=$.expandedKeys||se,Dt},de=S.useState($.selectedKeys||$.defaultSelectedKeys||[]),Le=n()(de,2),Q=Le[0],ce=Le[1],Ke=S.useState(Ne()),ee=n()(Ke,2),X=ee[0],G=ee[1];S.useEffect(function(){"selectedKeys"in $&&ce($.selectedKeys)},[$.selectedKeys]),S.useEffect(function(){"expandedKeys"in $&&G($.expandedKeys)},[$.expandedKeys]);var Z=function(xt,Ct){var Dt=Ct.isLeaf;if(Dt||xt.shiftKey||xt.metaKey||xt.ctrlKey)return;pe.current.onNodeExpand(xt,Ct)},ve=s()(Z,200,{leading:!0}),ue=function(xt,Ct){return"expandedKeys"in $||G(xt),$.onExpand?$.onExpand(xt,Ct):void 0},_e=function(xt,Ct){var Dt=$.expandAction;Dt==="click"&&ve(xt,Ct),$.onClick&&$.onClick(xt,Ct)},xe=function(xt,Ct){var Dt=$.expandAction;Dt==="doubleClick"&&ve(xt,Ct),$.onDoubleClick&&$.onDoubleClick(xt,Ct)},oe=function(xt,Ct){var Dt=$.multiple,Ht=Ct.node,Je=Ct.nativeEvent,ye=Ht.key,ie=ye===void 0?"":ye,bt=L($),qe=g()(g()({},Ct),{selected:!0}),me=Je.ctrlKey||Je.metaKey,Rt=Je.shiftKey,er;Dt&&me?(er=xt,ae.current=ie,ge.current=er,qe.selectedNodes=b(bt,er)):Dt&&Rt?(er=Array.from(new Set([].concat(r()(ge.current||[]),r()(w({treeData:bt,expandedKeys:X,startKey:ie,endKey:ae.current}))))),qe.selectedNodes=b(bt,er)):(er=[ie],ae.current=ie,ge.current=er,qe.selectedNodes=b(bt,er)),$.onSelect&&$.onSelect(er,qe),"selectedKeys"in $||ce(er)},fe=S.useContext(y.b),Te=fe.getPrefixCls,ze=fe.direction,it=$.prefixCls,et=$.className,Oe=_($,["prefixCls","className"]),gt=Te("tree",it),Ge=c()("".concat(gt,"-directory"),et,E()({},"".concat(gt,"-directory-rtl"),ze==="rtl"));return S.createElement(B,g()({icon:O,ref:pe,blockNode:!0},Oe,{prefixCls:gt,className:Ge,expandedKeys:X,selectedKeys:Q,onSelect:oe,onClick:_e,onDoubleClick:xe,onExpand:ue}))},N=S.forwardRef(D);N.displayName="DirectoryTree",N.defaultProps={showIcon:!0,expandAction:"click"};var M=N,F=d("EXcs"),R=d("2jpz"),j=S.forwardRef(function(U,z){var V,Y=S.useContext(y.b),J=Y.getPrefixCls,se=Y.direction,$=Y.virtual,ae=U.prefixCls,ge=U.className,pe=U.showIcon,Ne=U.showLine,de=U.switcherIcon,Le=U.blockNode,Q=U.children,ce=U.checkable,Ke=g()(g()({},U),{showLine:Boolean(Ne)}),ee=J("tree",ae);return S.createElement(m.b,g()({itemHeight:20,ref:z,virtual:$},Ke,{prefixCls:ee,className:c()(ge,(V={},E()(V,"".concat(ee,"-icon-hide"),!pe),E()(V,"".concat(ee,"-block-node"),Le),E()(V,"".concat(ee,"-rtl"),se==="rtl"),V)),checkable:ce&&S.createElement("span",{className:"".concat(ee,"-checkbox-inner")}),switcherIcon:function(G){return Object(R.a)(ee,de,Ne,G)}}),Q)});j.TreeNode=m.a,j.DirectoryTree=M,j.defaultProps={checkable:!1,showIcon:!1,motion:g()(g()({},F.a),{motionAppear:!1}),blockNode:!1};var B=j,K=k.a=B},MKOG:function(H,k,d){var I=d("bYtY"),E=d("YH21"),T=E.Dispatcher,g=d("mLcG"),S=d("Bq2U"),m=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,T.call(this)};m.prototype={constructor:m,addClip:function(a){this._clips.push(a)},addAnimator:function(a){a.animation=this;for(var r=a.getClips(),i=0;i<r.length;i++)this.addClip(r[i])},removeClip:function(a){var r=I.indexOf(this._clips,a);r>=0&&this._clips.splice(r,1)},removeAnimator:function(a){for(var r=a.getClips(),i=0;i<r.length;i++)this.removeClip(r[i]);a.animation=null},_update:function(){for(var a=new Date().getTime()-this._pausedTime,r=a-this._time,i=this._clips,n=i.length,t=[],s=[],e=0;e<n;e++){var o=i[e],l=o.step(a,r);l&&(t.push(l),s.push(o))}for(var e=0;e<n;)i[e]._needsRemove?(i[e]=i[n-1],i.pop(),n--):e++;n=t.length;for(var e=0;e<n;e++)s[e].fire(t[e]);this._time=a,this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update()},_startLoop:function(){var a=this;this._running=!0;function r(){a._running&&(g(r),!a._paused&&a._update())}g(r)},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,r){r=r||{};var i=new S(a,r.loop,r.getter,r.setter);return this.addAnimator(i),i}},I.mixin(m,T);var h=m;H.exports=h},MRoa:function(H,k,d){var I=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var E=d("gawk"),T=d("Dg8C");I.registerLayout(E),I.registerVisual(T)},MT78:function(H,k,d){var I=d("ProS");(function(){for(var T in I){if(I==null||!I.hasOwnProperty(T)||T==="default"||T==="__esModule")return;k[T]=I[T]}})();var E=d("txkQ");(function(){for(var T in E){if(E==null||!E.hasOwnProperty(T)||T==="default"||T==="__esModule")return;k[T]=E[T]}})(),d("A1Ka"),d("75ce"),d("lLGD"),d("wDdD"),d("Fa/5"),d("jett"),d("Z1wy"),d("75ev"),d("2uGb"),d("I+77"),d("B+YJ"),d("pLH3"),d("CBdT"),d("MRoa"),d("+lIL"),d("CF2D"),d("ERHi"),d("p+If"),d("XOKv"),d("qt/9"),d("bBL8"),d("1xaR"),d("4Feb"),d("zRKj"),d("L3Oj"),d("0HBW"),d("LPzL"),d("8waO"),d("k5C7"),d("f1nB"),d("sRwP"),d("AH3D"),d("y4/Y"),d("LzGr"),d("Ynxi"),d("7pVf"),d("2w7y"),d("laiN"),d("fjKi"),d("C0tN"),d("0o9m"),d("Cm0C"),d("f3JH"),d("5NHt"),d("VFCP"),d("dBmv"),d("KamJ"),d("8XDt"),d("juDX")},MXD1:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("Kvyg"),g=d.n(T)},MZdM:function(H,k,d){"use strict";function I(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(e){return typeof e}:I=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(t)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=c(d("Lo0S")),T=m(d("N/zr")),g=d("GdRQ"),S=d("GQ8N");function m(t){return t&&t.__esModule?t:{default:t}}function h(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return h=function(){return t},t}function c(t){if(t&&t.__esModule)return t;if(t===null||I(t)!=="object"&&typeof t!="function")return{default:t};var s=h();if(s&&s.has(t))return s.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){var u=o?Object.getOwnPropertyDescriptor(t,l):null;u&&(u.get||u.set)?Object.defineProperty(e,l,u):e[l]=t[l]}return e.default=t,s&&s.set(t,e),e}function a(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function r(t,s){for(var e=0;e<s.length;e++){var o=s[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,s,e){return s&&r(t.prototype,s),e&&r(t,e),t}var n=function(){function t(s){if(a(this,t),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,E.Debug(">> Display.constructor"),this._target=s,!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},E.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),E.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return i(t,[{key:"viewportChangePos",value:function(e,o){var l=this._viewportLoc;e=Math.floor(e),o=Math.floor(o),this._clipViewport||(e=-l.w,o=-l.h);var u=l.x+l.w-1,f=l.y+l.h-1;if(e<0&&l.x+e<0&&(e=-l.x),u+e>=this._fbWidth&&(e-=u+e-this._fbWidth+1),l.y+o<0&&(o=-l.y),f+o>=this._fbHeight&&(o-=f+o-this._fbHeight+1),e===0&&o===0)return;E.Debug("viewportChange deltaX: "+e+", deltaY: "+o),l.x+=e,l.y+=o,this._damage(l.x,l.y,l.w,l.h),this.flip()}},{key:"viewportChangeSize",value:function(e,o){(!this._clipViewport||typeof e=="undefined"||typeof o=="undefined")&&(E.Debug("Setting viewport to full display region"),e=this._fbWidth,o=this._fbHeight),e=Math.floor(e),o=Math.floor(o),e>this._fbWidth&&(e=this._fbWidth),o>this._fbHeight&&(o=this._fbHeight);var l=this._viewportLoc;if(l.w!==e||l.h!==o){l.w=e,l.h=o;var u=this._target;u.width=e,u.height=o,this.viewportChangePos(0,0),this._damage(l.x,l.y,l.w,l.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(e){return this._scale===0?0:(0,S.toSigned32bit)(e/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(e){return this._scale===0?0:(0,S.toSigned32bit)(e/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(e,o){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=o;var l=this._backbuffer;if(l.width!==e||l.height!==o){var u=null;l.width>0&&l.height>0&&(u=this._drawCtx.getImageData(0,0,l.width,l.height)),l.width!==e&&(l.width=e),l.height!==o&&(l.height=o),u&&this._drawCtx.putImageData(u,0,0)}var f=this._viewportLoc;this.viewportChangeSize(f.w,f.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(e,o,l,u){e<this._damageBounds.left&&(this._damageBounds.left=e),o<this._damageBounds.top&&(this._damageBounds.top=o),e+l>this._damageBounds.right&&(this._damageBounds.right=e+l),o+u>this._damageBounds.bottom&&(this._damageBounds.bottom=o+u)}},{key:"flip",value:function(e){if(this._renderQ.length!==0&&!e)this._renderQPush({type:"flip"});else{var o=this._damageBounds.left,l=this._damageBounds.top,u=this._damageBounds.right-o,f=this._damageBounds.bottom-l,p=o-this._viewportLoc.x,v=l-this._viewportLoc.y;p<0&&(u+=p,o-=p,p=0),v<0&&(f+=v,l-=v,v=0),p+u>this._viewportLoc.w&&(u=this._viewportLoc.w-p),v+f>this._viewportLoc.h&&(f=this._viewportLoc.h-v),u>0&&f>0&&this._targetCtx.drawImage(this._backbuffer,o,l,u,f,p,v,u,f),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(e,o,l,u,f,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:e,y:o,width:l,height:u,color:f}):(this._setFillColor(f),this._drawCtx.fillRect(e,o,l,u),this._damage(e,o,l,u))}},{key:"copyImage",value:function(e,o,l,u,f,p,v){this._renderQ.length!==0&&!v?this._renderQPush({type:"copy",oldX:e,oldY:o,x:l,y:u,width:f,height:p}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,o,f,p,l,u,f,p),this._damage(l,u,f,p))}},{key:"imageRect",value:function(e,o,l,u,f,p){if(l===0||u===0)return;var v=new Image;v.src="data: "+f+";base64,"+T.default.encode(p),this._renderQPush({type:"img",img:v,x:e,y:o,width:l,height:u})}},{key:"startTile",value:function(e,o,l,u,f){this._tileX=e,this._tileY=o,l===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(l,u);for(var p=f[2],v=f[1],A=f[0],y=this._tile.data,x=0;x<l*u*4;x+=4)y[x]=p,y[x+1]=v,y[x+2]=A,y[x+3]=255}},{key:"subTile",value:function(e,o,l,u,f){for(var p=f[2],v=f[1],A=f[0],y=e+l,x=o+u,C=this._tile.data,w=this._tile.width,b=o;b<x;b++)for(var _=e;_<y;_++){var O=(_+b*w)*4;C[O]=p,C[O+1]=v,C[O+2]=A,C[O+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(e,o,l,u,f,p,v){if(this._renderQ.length!==0&&!v){var A=new Uint8Array(l*u*4);A.set(new Uint8Array(f.buffer,0,A.length)),this._renderQPush({type:"blit",data:A,x:e,y:o,width:l,height:u})}else this._bgrxImageData(e,o,l,u,f,p)}},{key:"blitRgbImage",value:function(e,o,l,u,f,p,v){if(this._renderQ.length!==0&&!v){var A=new Uint8Array(l*u*3);A.set(new Uint8Array(f.buffer,0,A.length)),this._renderQPush({type:"blitRgb",data:A,x:e,y:o,width:l,height:u})}else this._rgbImageData(e,o,l,u,f,p)}},{key:"blitRgbxImage",value:function(e,o,l,u,f,p,v){if(this._renderQ.length!==0&&!v){var A=new Uint8Array(l*u*4);A.set(new Uint8Array(f.buffer,0,A.length)),this._renderQPush({type:"blitRgbx",data:A,x:e,y:o,width:l,height:u})}else this._rgbxImageData(e,o,l,u,f,p)}},{key:"drawImage",value:function(e,o,l){this._drawCtx.drawImage(e,o,l),this._damage(o,l,e.width,e.height)}},{key:"autoscale",value:function(e,o){var l;if(e===0||o===0)l=0;else{var u=this._viewportLoc,f=e/o,p=u.w/u.h;p>=f?l=e/u.w:l=o/u.h}this._rescale(l)}},{key:"_rescale",value:function(e){this._scale=e;var o=this._viewportLoc,l=e*o.w+"px",u=e*o.h+"px";(this._target.style.width!==l||this._target.style.height!==u)&&(this._target.style.width=l,this._target.style.height=u)}},{key:"_setFillColor",value:function(e){var o="rgb("+e[2]+","+e[1]+","+e[0]+")";o!==this._prevDrawStyle&&(this._drawCtx.fillStyle=o,this._prevDrawStyle=o)}},{key:"_rgbImageData",value:function(e,o,l,u,f,p){for(var v=this._drawCtx.createImageData(l,u),A=v.data,y=0,x=p;y<l*u*4;y+=4,x+=3)A[y]=f[x],A[y+1]=f[x+1],A[y+2]=f[x+2],A[y+3]=255;this._drawCtx.putImageData(v,e,o),this._damage(e,o,v.width,v.height)}},{key:"_bgrxImageData",value:function(e,o,l,u,f,p){for(var v=this._drawCtx.createImageData(l,u),A=v.data,y=0,x=p;y<l*u*4;y+=4,x+=4)A[y]=f[x+2],A[y+1]=f[x+1],A[y+2]=f[x],A[y+3]=255;this._drawCtx.putImageData(v,e,o),this._damage(e,o,v.width,v.height)}},{key:"_rgbxImageData",value:function(e,o,l,u,f,p){var v;g.supportsImageMetadata?v=new ImageData(new Uint8ClampedArray(f.buffer,f.byteOffset,l*u*4),l,u):(v=this._drawCtx.createImageData(l,u),v.data.set(new Uint8ClampedArray(f.buffer,f.byteOffset,l*u*4))),this._drawCtx.putImageData(v,e,o),this._damage(e,o,v.width,v.height)}},{key:"_renderQPush",value:function(e){this._renderQ.push(e),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 e=!0;e&&this._renderQ.length>0;){var o=this._renderQ[0];switch(o.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(o.oldX,o.oldY,o.x,o.y,o.width,o.height,!0);break;case"fill":this.fillRect(o.x,o.y,o.width,o.height,o.color,!0);break;case"blit":this.blitImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"blitRgb":this.blitRgbImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"img":if(o.img.complete&&o.img.width!==0&&o.img.height!==0){if(o.img.width!==o.width||o.img.height!==o.height){E.Error("Decoded image has incorrect dimensions. Got "+o.img.width+"x"+o.img.height+". Expected "+o.width+"x"+o.height+".");return}this.drawImage(o.img,o.x,o.y)}else o.img._noVNCDisplay=this,o.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(e){this._rescale(e)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(e){this._clipViewport=e;var o=this._viewportLoc;this.viewportChangeSize(o.w,o.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),t}();k.default=n},Mdki:function(H,k,d){var I=d("bYtY"),E=I.each,T="\0__link_datas",g="\0__link_mainData";function S(s){var e=s.mainData,o=s.datas;o||(o={main:e},s.datasAttr={main:"data"}),s.datas=s.mainData=null,i(e,o,s),E(o,function(l){E(e.TRANSFERABLE_METHODS,function(u){l.wrapMethod(u,I.curry(m,s))})}),e.wrapMethod("cloneShallow",I.curry(c,s)),E(e.CHANGABLE_METHODS,function(l){e.wrapMethod(l,I.curry(h,s))}),I.assert(o[e.dataType]===e)}function m(s,e){if(r(this)){var o=I.extend({},this[T]);o[this.dataType]=e,i(e,o,s)}else n(e,this.dataType,this[g],s);return e}function h(s,e){return s.struct&&s.struct.update(this),e}function c(s,e){return E(e[T],function(o,l){o!==e&&n(o.cloneShallow(),l,e,s)}),e}function a(s){var e=this[g];return s==null||e==null?e:e[T][s]}function r(s){return s[g]===s}function i(s,e,o){s[T]={},E(e,function(l,u){n(l,u,s,o)})}function n(s,e,o,l){o[T][e]=s,s[g]=o,s.dataType=e,l.struct&&(s[l.structAttr]=l.struct,l.struct[l.datasAttr[e]]=s),s.getLinkedData=a}var t=S;H.exports=t},Mds0:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("8IMR")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="StarFilled";var c=g.forwardRef(h);k.default=c},Mgri:function(H,k,d){for(var I=d("bYtY"),E=d("8nly"),T=[126,25],g=[[[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]]],S=0;S<g.length;S++)for(var m=0;m<g[S].length;m++)g[S][m][0]/=10.5,g[S][m][1]/=-10.5/.75,g[S][m][0]+=T[0],g[S][m][1]+=T[1];function h(c,a){c==="china"&&a.push(new E("\u5357\u6D77\u8BF8\u5C9B",I.map(g,function(r){return{type:"polygon",exterior:r}}),T))}H.exports=h},MlIO:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(E){var T=I,g=T.lib,S=g.Base,m=g.WordArray,h=T.x64={},c=h.Word=S.extend({init:function(i,n){this.high=i,this.low=n}}),a=h.WordArray=S.extend({init:function(i,n){i=this.words=i||[],n!=E?this.sigBytes=n:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,n=i.length,t=[],s=0;s<n;s++){var e=i[s];t.push(e.high),t.push(e.low)}return m.create(t,this.sigBytes)},clone:function(){for(var i=S.clone.call(this),n=i.words=this.words.slice(0),t=n.length,s=0;s<t;s++)n[s]=n[s].clone();return i}})}(),I})},Mmt2:function(H,k,d){"use strict";function I(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(t){return typeof t}:I=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(i)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=g(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return T=function(){return i},i}function g(i){if(i&&i.__esModule)return i;if(i===null||I(i)!=="object"&&typeof i!="function")return{default:i};var n=T();if(n&&n.has(i))return n.get(i);var t={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=s?Object.getOwnPropertyDescriptor(i,e):null;o&&(o.get||o.set)?Object.defineProperty(t,e,o):t[e]=i[e]}return t.default=i,n&&n.set(i,t),t}function S(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function m(i,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function h(i,n,t){return n&&m(i.prototype,n),t&&m(i,t),i}var c=!1,a=40*1024*1024,r=function(){function i(){S(this,i),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(i,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(t){this._rQi+=t}},{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(t){for(var s=0,e=t-1;e>=0;e--)s+=this._rQ[this._rQi++]<<e*8;return s}},{key:"rQshiftStr",value:function(t){typeof t=="undefined"&&(t=this.rQlen);for(var s="",e=0;e<t;e+=4096){var o=this.rQshiftBytes(Math.min(4096,t-e));s+=String.fromCharCode.apply(null,o)}return s}},{key:"rQshiftBytes",value:function(t){return typeof t=="undefined"&&(t=this.rQlen),this._rQi+=t,new Uint8Array(this._rQ.buffer,this._rQi-t,t)}},{key:"rQshiftTo",value:function(t,s){s===void 0&&(s=this.rQlen),t.set(new Uint8Array(this._rQ.buffer,this._rQi,s)),this._rQi+=s}},{key:"rQslice",value:function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+t,s-t)}},{key:"rQwait",value:function(t,s,e){if(this.rQlen<s){if(e){if(this._rQi<e)throw new Error("rQwait cannot backup "+e+" bytes");this._rQi-=e}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(t){this._sQ.set(t,this._sQlen),this._sQlen+=t.length,this.flush()}},{key:"sendString",value:function(t){this.send(t.split("").map(function(s){return s.charCodeAt(0)}))}},{key:"off",value:function(t){this._eventHandlers[t]=function(){}}},{key:"on",value:function(t,s){this._eventHandlers[t]=s}},{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(t,s){var e=this;this.init(),this._websocket=new WebSocket(t,s),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){E.Debug(">> WebSock.onopen"),e._websocket.protocol&&E.Info("Server choose sub-protocol: "+e._websocket.protocol),e._eventHandlers.open(),E.Debug("<< WebSock.onopen")},this._websocket.onclose=function(o){E.Debug(">> WebSock.onclose"),e._eventHandlers.close(o),E.Debug("<< WebSock.onclose")},this._websocket.onerror=function(o){E.Debug(">> WebSock.onerror: "+o),e._eventHandlers.error(o),E.Debug("<< WebSock.onerror: "+o)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(E.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(t){var s=(this._rQlen-this._rQi+t)*8,e=this._rQbufferSize<s;if(e&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,s)),this._rQbufferSize>a&&(this._rQbufferSize=a,this._rQbufferSize-this.rQlen<t))throw new Error("Receive Queue buffer exceeded "+a+" bytes, and the new message could not fit");if(e){var o=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(o,this._rQi,this._rQlen-this._rQi))}else c?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(t){var s=new Uint8Array(t);s.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(s.length),this._rQ.set(s,this._rQlen),this._rQlen+=s.length}},{key:"_recvMessage",value:function(t){this._DecodeMessage(t.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):E.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(t){this._rQi=t}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),i}();k.default=r},MqEG:function(H,k,d){var I=d("bYtY"),E=d("fc+c"),T=d("72pK"),g=d("VXYp"),S=I.bind,m=E.extend({type:"dataZoom.inside",init:function(i,n){this._range},render:function(i,n,t,s){m.superApply(this,"render",arguments),this._range=i.getPercentRange(),I.each(this.getTargetCoordInfo(),function(e,o){var l=I.map(e,function(u){return g.generateCoordId(u.model)});I.each(e,function(u){var f=u.model,p={};I.each(["pan","zoom","scrollMove"],function(v){p[v]=S(h[v],this,u,o)},this),g.register(t,{coordId:g.generateCoordId(f),allCoordIds:l,containsPoint:function(v,A,y){return f.coordinateSystem.containPoint([A,y])},dataZoomId:i.id,dataZoomModel:i,getRange:p})},this)},this)},dispose:function(){g.unregister(this.api,this.dataZoomModel.id),m.superApply(this,"dispose",arguments),this._range=null}}),h={zoom:function(i,n,t,s){var e=this._range,o=e.slice(),l=i.axisModels[0];if(!l)return;var u=a[n](null,[s.originX,s.originY],l,t,i),f=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(o[1]-o[0])+o[0],p=Math.max(1/s.scale,0);o[0]=(o[0]-f)*p+f,o[1]=(o[1]-f)*p+f;var v=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(T(0,o,[0,100],0,v.minSpan,v.maxSpan),this._range=o,e[0]!==o[0]||e[1]!==o[1])return o},pan:c(function(i,n,t,s,e,o){var l=a[s]([o.oldX,o.oldY],[o.newX,o.newY],n,e,t);return l.signal*(i[1]-i[0])*l.pixel/l.pixelLength}),scrollMove:c(function(i,n,t,s,e,o){var l=a[s]([0,0],[o.scrollDelta,o.scrollDelta],n,e,t);return l.signal*(i[1]-i[0])*o.scrollDelta})};function c(i){return function(n,t,s,e){var o=this._range,l=o.slice(),u=n.axisModels[0];if(!u)return;var f=i(l,u,n,t,s,e);if(T(f,l,[0,100],"all"),this._range=l,o[0]!==l[0]||o[1]!==l[1])return l}}var a={grid:function(i,n,t,s,e){var o=t.axis,l={},u=e.model.coordinateSystem.getRect();return i=i||[0,0],o.dim==="x"?(l.pixel=n[0]-i[0],l.pixelLength=u.width,l.pixelStart=u.x,l.signal=o.inverse?1:-1):(l.pixel=n[1]-i[1],l.pixelLength=u.height,l.pixelStart=u.y,l.signal=o.inverse?-1:1),l},polar:function(i,n,t,s,e){var o=t.axis,l={},u=e.model.coordinateSystem,f=u.getRadiusAxis().getExtent(),p=u.getAngleAxis().getExtent();return i=i?u.pointToCoord(i):[0,0],n=u.pointToCoord(n),t.mainType==="radiusAxis"?(l.pixel=n[0]-i[0],l.pixelLength=f[1]-f[0],l.pixelStart=f[0],l.signal=o.inverse?1:-1):(l.pixel=n[1]-i[1],l.pixelLength=p[1]-p[0],l.pixelStart=p[0],l.signal=o.inverse?-1:1),l},singleAxis:function(i,n,t,s,e){var o=t.axis,l=e.model.coordinateSystem.getRect(),u={};return i=i||[0,0],o.orient==="horizontal"?(u.pixel=n[0]-i[0],u.pixelLength=l.width,u.pixelStart=l.x,u.signal=o.inverse?1:-1):(u.pixel=n[1]-i[1],u.pixelLength=l.height,u.pixelStart=l.y,u.signal=o.inverse?-1:1),u}},r=m;H.exports=r},MwEJ:function(H,k,d){var I=d("bYtY"),E=d("YXkt"),T=d("sdST"),g=d("k9D9"),S=g.SOURCE_FORMAT_ORIGINAL,m=d("L0Ub"),h=m.getDimensionTypeByAxis,c=d("4NO4"),a=c.getDataItemValue,r=d("IDmD"),i=d("i38C"),n=i.getCoordSysInfoBySeries,t=d("7G+c"),s=d("7hqr"),e=s.enableDataStack,o=d("D5nY"),l=o.makeSeriesEncodeForAxisCoordSys;function u(A,y,x){x=x||{},t.isInstance(A)||(A=t.seriesDataToSource(A));var C=y.get("coordinateSystem"),w=r.get(C),b=n(y),_;b&&(_=I.map(b.coordSysDims,function(R){var j={name:R},B=b.axisMap.get(R);if(B){var K=B.get("type");j.type=h(K)}return j})),_||(_=w&&(w.getDimensionsInfo?w.getDimensionsInfo():w.dimensions.slice())||["x","y"]);var O=T(A,{coordDimensions:_,generateCoord:x.generateCoord,encodeDefaulter:x.useEncodeDefaulter?I.curry(l,_,y):null}),L,D;b&&I.each(O,function(R,j){var B=R.coordDim,K=b.categoryAxisMap.get(B);K&&(L==null&&(L=j),R.ordinalMeta=K.getOrdinalMeta()),R.otherDims.itemName!=null&&(D=!0)}),!D&&L!=null&&(O[L].otherDims.itemName=0);var N=e(y,O),M=new E(O,y);M.setCalculationInfo(N);var F=L!=null&&f(A)?function(R,j,B,K){return K===L?B:this.defaultDimValueGetter(R,j,B,K)}:null;return M.hasItemOption=!1,M.initData(A,null,F),M}function f(A){if(A.sourceFormat===S){var y=p(A.data||[]);return y!=null&&!I.isArray(a(y))}}function p(A){for(var y=0;y<A.length&&A[y]==null;)y++;return A[y]}var v=u;H.exports=v},Mylv:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IwbS"),g=d("oVpE"),S=g.createSymbol,m=d("OELB"),h=m.parsePercent,c=m.isNumeric,a=d("56rv"),r=a.setLabel,i=["itemStyle","borderWidth"],n=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],t=new T.Circle,s=I.extendChartView({type:"pictorialBar",render:function(U,z,V){var Y=this.group,J=U.getData(),se=this._data,$=U.coordinateSystem,ae=$.getBaseAxis(),ge=!!ae.isHorizontal(),pe=$.grid.getRect(),Ne={ecSize:{width:V.getWidth(),height:V.getHeight()},seriesModel:U,coordSys:$,coordSysExtent:[[pe.x,pe.x+pe.width],[pe.y,pe.y+pe.height]],isHorizontal:ge,valueDim:n[+ge],categoryDim:n[1-ge]};return J.diff(se).add(function(de){if(!J.hasValue(de))return;var Le=w(J,de),Q=e(J,de,Le,Ne),ce=L(J,Ne,Q);J.setItemGraphicEl(de,ce),Y.add(ce),j(ce,Ne,Q)}).update(function(de,Le){var Q=se.getItemGraphicEl(Le);if(!J.hasValue(de)){Y.remove(Q);return}var ce=w(J,de),Ke=e(J,de,ce,Ne),ee=M(J,Ke);Q&&ee!==Q.__pictorialShapeStr&&(Y.remove(Q),J.setItemGraphicEl(de,null),Q=null),Q?D(Q,Ne,Ke):Q=L(J,Ne,Ke,!0),J.setItemGraphicEl(de,Q),Q.__pictorialSymbolMeta=Ke,Y.add(Q),j(Q,Ne,Ke)}).remove(function(de){var Le=se.getItemGraphicEl(de);Le&&N(se,de,Le.__pictorialSymbolMeta.animationModel,Le)}).execute(),this._data=J,this.group},dispose:E.noop,remove:function(U,z){var V=this.group,Y=this._data;U.get("animation")?Y&&Y.eachItemGraphicEl(function(J){N(Y,J.dataIndex,U,J)}):V.removeAll()}});function e(U,z,V,Y){var J=U.getItemLayout(z),se=V.get("symbolRepeat"),$=V.get("symbolClip"),ae=V.get("symbolPosition")||"start",ge=V.get("symbolRotate"),pe=(ge||0)*Math.PI/180||0,Ne=V.get("symbolPatternSize")||2,de=V.isAnimationEnabled(),Le={dataIndex:z,layout:J,itemModel:V,symbolType:U.getItemVisual(z,"symbol")||"circle",color:U.getItemVisual(z,"color"),symbolClip:$,symbolRepeat:se,symbolRepeatDirection:V.get("symbolRepeatDirection"),symbolPatternSize:Ne,rotation:pe,animationModel:de?V:null,hoverAnimation:de&&V.get("hoverAnimation"),z2:V.getShallow("z",!0)||0};o(V,se,J,Y,Le),u(U,z,J,se,$,Le.boundingLength,Le.pxSign,Ne,Y,Le),f(V,Le.symbolScale,pe,Y,Le);var Q=Le.symbolSize,ce=V.get("symbolOffset");return E.isArray(ce)&&(ce=[h(ce[0],Q[0]),h(ce[1],Q[1])]),p(V,Q,J,se,$,ce,ae,Le.valueLineWidth,Le.boundingLength,Le.repeatCutLength,Y,Le),Le}function o(U,z,V,Y,J){var se=Y.valueDim,$=U.get("symbolBoundingData"),ae=Y.coordSys.getOtherAxis(Y.coordSys.getBaseAxis()),ge=ae.toGlobalCoord(ae.dataToCoord(0)),pe=1-+(V[se.wh]<=0),Ne;if(E.isArray($)){var de=[l(ae,$[0])-ge,l(ae,$[1])-ge];de[1]<de[0]&&de.reverse(),Ne=de[pe]}else $!=null?Ne=l(ae,$)-ge:z?Ne=Y.coordSysExtent[se.index][pe]-ge:Ne=V[se.wh];J.boundingLength=Ne,z&&(J.repeatCutLength=V[se.wh]),J.pxSign=Ne>0?1:Ne<0?-1:0}function l(U,z){return U.toGlobalCoord(U.dataToCoord(U.scale.parse(z)))}function u(U,z,V,Y,J,se,$,ae,ge,pe){var Ne=ge.valueDim,de=ge.categoryDim,Le=Math.abs(V[de.wh]),Q=U.getItemVisual(z,"symbolSize");E.isArray(Q)?Q=Q.slice():(Q==null&&(Q="100%"),Q=[Q,Q]),Q[de.index]=h(Q[de.index],Le),Q[Ne.index]=h(Q[Ne.index],Y?Le:Math.abs(se)),pe.symbolSize=Q;var ce=pe.symbolScale=[Q[0]/ae,Q[1]/ae];ce[Ne.index]*=(ge.isHorizontal?-1:1)*$}function f(U,z,V,Y,J){var se=U.get(i)||0;se&&(t.attr({scale:z.slice(),rotation:V}),t.updateTransform(),se/=t.getLineScale(),se*=z[Y.valueDim.index]),J.valueLineWidth=se}function p(U,z,V,Y,J,se,$,ae,ge,pe,Ne,de){var Le=Ne.categoryDim,Q=Ne.valueDim,ce=de.pxSign,Ke=Math.max(z[Q.index]+ae,0),ee=Ke;if(Y){var X=Math.abs(ge),G=E.retrieve(U.get("symbolMargin"),"15%")+"",Z=!1;G.lastIndexOf("!")===G.length-1&&(Z=!0,G=G.slice(0,G.length-1)),G=h(G,z[Q.index]);var ve=Math.max(Ke+G*2,0),ue=Z?0:G*2,_e=c(Y),xe=_e?Y:B((X+ue)/ve),oe=X-xe*Ke;G=oe/2/(Z?xe:xe-1),ve=Ke+G*2,ue=Z?0:G*2,!_e&&Y!=="fixed"&&(xe=pe?B((Math.abs(pe)+ue)/ve):0),ee=xe*ve-ue,de.repeatTimes=xe,de.symbolMargin=G}var fe=ce*(ee/2),Te=de.pathPosition=[];Te[Le.index]=V[Le.wh]/2,Te[Q.index]=$==="start"?fe:$==="end"?ge-fe:ge/2,se&&(Te[0]+=se[0],Te[1]+=se[1]);var ze=de.bundlePosition=[];ze[Le.index]=V[Le.xy],ze[Q.index]=V[Q.xy];var it=de.barRectShape=E.extend({},V);it[Q.wh]=ce*Math.max(Math.abs(V[Q.wh]),Math.abs(Te[Q.index]+fe)),it[Le.wh]=V[Le.wh];var et=de.clipShape={};et[Le.xy]=-V[Le.xy],et[Le.wh]=Ne.ecSize[Le.wh],et[Q.xy]=0,et[Q.wh]=V[Q.wh]}function v(U){var z=U.symbolPatternSize,V=S(U.symbolType,-z/2,-z/2,z,z,U.color);return V.attr({culling:!0}),V.type!=="image"&&V.setStyle({strokeNoScale:!0}),V}function A(U,z,V,Y){var J=U.__pictorialBundle,se=V.symbolSize,$=V.valueLineWidth,ae=V.pathPosition,ge=z.valueDim,pe=V.repeatTimes||0,Ne=0,de=se[z.valueDim.index]+$+V.symbolMargin*2;for(F(U,function(X){X.__pictorialAnimationIndex=Ne,X.__pictorialRepeatTimes=pe,Ne<pe?R(X,null,ce(Ne),V,Y):R(X,null,{scale:[0,0]},V,Y,function(){J.remove(X)}),O(X,V),Ne++});Ne<pe;Ne++){var Le=v(V);Le.__pictorialAnimationIndex=Ne,Le.__pictorialRepeatTimes=pe,J.add(Le);var Q=ce(Ne);R(Le,{position:Q.position,scale:[0,0]},{scale:Q.scale,rotation:Q.rotation},V,Y),Le.on("mouseover",Ke).on("mouseout",ee),O(Le,V)}function ce(X){var G=ae.slice(),Z=V.pxSign,ve=X;return(V.symbolRepeatDirection==="start"?Z>0:Z<0)&&(ve=pe-1-X),G[ge.index]=de*(ve-pe/2+.5)+ae[ge.index],{position:G,scale:V.symbolScale.slice(),rotation:V.rotation}}function Ke(){F(U,function(X){X.trigger("emphasis")})}function ee(){F(U,function(X){X.trigger("normal")})}}function y(U,z,V,Y){var J=U.__pictorialBundle,se=U.__pictorialMainPath;se?R(se,null,{position:V.pathPosition.slice(),scale:V.symbolScale.slice(),rotation:V.rotation},V,Y):(se=U.__pictorialMainPath=v(V),J.add(se),R(se,{position:V.pathPosition.slice(),scale:[0,0],rotation:V.rotation},{scale:V.symbolScale.slice()},V,Y),se.on("mouseover",$).on("mouseout",ae)),O(se,V);function $(){this.trigger("emphasis")}function ae(){this.trigger("normal")}}function x(U,z,V){var Y=E.extend({},z.barRectShape),J=U.__pictorialBarRect;J?R(J,null,{shape:Y},z,V):(J=U.__pictorialBarRect=new T.Rect({z2:2,shape:Y,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),U.add(J))}function C(U,z,V,Y){if(V.symbolClip){var J=U.__pictorialClipPath,se=E.extend({},V.clipShape),$=z.valueDim,ae=V.animationModel,ge=V.dataIndex;if(J)T.updateProps(J,{shape:se},ae,ge);else{se[$.wh]=0,J=new T.Rect({shape:se}),U.__pictorialBundle.setClipPath(J),U.__pictorialClipPath=J;var pe={};pe[$.wh]=V.clipShape[$.wh],T[Y?"updateProps":"initProps"](J,{shape:pe},ae,ge)}}}function w(U,z){var V=U.getItemModel(z);return V.getAnimationDelayParams=b,V.isAnimationEnabled=_,V}function b(U){return{index:U.__pictorialAnimationIndex,count:U.__pictorialRepeatTimes}}function _(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function O(U,z){U.off("emphasis").off("normal");var V=z.symbolScale.slice();z.hoverAnimation&&U.on("emphasis",function(){this.animateTo({scale:[V[0]*1.1,V[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:V.slice()},400,"elasticOut")})}function L(U,z,V,Y){var J=new T.Group,se=new T.Group;return J.add(se),J.__pictorialBundle=se,se.attr("position",V.bundlePosition.slice()),V.symbolRepeat?A(J,z,V):y(J,z,V),x(J,V,Y),C(J,z,V,Y),J.__pictorialShapeStr=M(U,V),J.__pictorialSymbolMeta=V,J}function D(U,z,V){var Y=V.animationModel,J=V.dataIndex,se=U.__pictorialBundle;T.updateProps(se,{position:V.bundlePosition.slice()},Y,J),V.symbolRepeat?A(U,z,V,!0):y(U,z,V,!0),x(U,V,!0),C(U,z,V,!0)}function N(U,z,V,Y){var J=Y.__pictorialBarRect;J&&(J.style.text=null);var se=[];F(Y,function($){se.push($)}),Y.__pictorialMainPath&&se.push(Y.__pictorialMainPath),Y.__pictorialClipPath&&(V=null),E.each(se,function($){T.updateProps($,{scale:[0,0]},V,z,function(){Y.parent&&Y.parent.remove(Y)})}),U.setItemGraphicEl(z,null)}function M(U,z){return[U.getItemVisual(z.dataIndex,"symbol")||"none",!!z.symbolRepeat,!!z.symbolClip].join(":")}function F(U,z,V){E.each(U.__pictorialBundle.children(),function(Y){Y!==U.__pictorialBarRect&&z.call(V,Y)})}function R(U,z,V,Y,J,se){z&&U.attr(z),Y.symbolClip&&!J?V&&U.attr(V):V&&T[J?"updateProps":"initProps"](U,V,Y.animationModel,Y.dataIndex,se)}function j(U,z,V){var Y=V.color,J=V.dataIndex,se=V.itemModel,$=se.getModel("itemStyle").getItemStyle(["color"]),ae=se.getModel("emphasis.itemStyle").getItemStyle(),ge=se.getShallow("cursor");F(U,function(Le){Le.setColor(Y),Le.setStyle(E.defaults({fill:Y,opacity:V.opacity},$)),T.setHoverStyle(Le,ae),ge&&(Le.cursor=ge),Le.z2=V.z2});var pe={},Ne=z.valueDim.posDesc[+(V.boundingLength>0)],de=U.__pictorialBarRect;r(de.style,pe,se,Y,z.seriesModel,J,Ne),T.setHoverStyle(de,pe)}function B(U){var z=Math.round(U);return Math.abs(U-z)<1e-4?z:Math.ceil(U)}var K=s;H.exports=K},"N/zr":function(H,k,d){"use strict";function I(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(c){return typeof c}:I=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},I(m)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=g(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return T=function(){return m},m}function g(m){if(m&&m.__esModule)return m;if(m===null||I(m)!=="object"&&typeof m!="function")return{default:m};var h=T();if(h&&h.has(m))return h.get(m);var c={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in m)if(Object.prototype.hasOwnProperty.call(m,r)){var i=a?Object.getOwnPropertyDescriptor(m,r):null;i&&(i.get||i.set)?Object.defineProperty(c,r,i):c[r]=m[r]}return c.default=m,h&&h.set(m,c),c}var S={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(h){"use strict";for(var c="",a=h.length,r=a%3,i=0;i<a-2;i+=3)c+=this.toBase64Table[h[i]>>2],c+=this.toBase64Table[((h[i]&3)<<4)+(h[i+1]>>4)],c+=this.toBase64Table[((h[i+1]&15)<<2)+(h[i+2]>>6)],c+=this.toBase64Table[h[i+2]&63];var n=a-r;return r===2?(c+=this.toBase64Table[h[n]>>2],c+=this.toBase64Table[((h[n]&3)<<4)+(h[n+1]>>4)],c+=this.toBase64Table[(h[n+1]&15)<<2],c+=this.toBase64Table[64]):r===1&&(c+=this.toBase64Table[h[n]>>2],c+=this.toBase64Table[(h[n]&3)<<4],c+=this.toBase64Table[64],c+=this.toBase64Table[64]),c},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 c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=h.indexOf("=")-c;a<0&&(a=h.length-c);for(var r=(a>>2)*3+Math.floor(a%4/1.5),i=new Array(r),n=0,t=0,s=0,e=c;e<h.length;e++){var o=this.toBinaryTable[h.charCodeAt(e)&127],l=h.charAt(e)===this.base64Pad;if(o===-1){E.Error("Illegal character code "+h.charCodeAt(e)+" at position "+e);continue}t=t<<6|o,n+=6,n>=8&&(n-=8,l||(i[s++]=t>>n&255),t&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return i}};k.default=S},N5BQ:function(H,k,d){var I=d("OlYY"),E=I.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"}}}),T=E;H.exports=T},NA0q:function(H,k,d){var I=d("bYtY"),E=d("6Ic6"),T=d("TkdX"),g=d("gPAo"),S=d("7aKB"),m=S.windowOpen,h="sunburstRootToNode",c=E.extend({type:"sunburst",init:function(){},render:function(r,i,n,t){var s=this;this.seriesModel=r,this.api=n,this.ecModel=i;var e=r.getData(),o=e.tree.root,l=r.getViewRoot(),u=this.group,f=r.get("renderLabelForZeroData"),p=[];l.eachNode(function(_){p.push(_)});var v=this._oldChildren||[];if(x(p,v),b(o,l),t&&t.highlight&&t.highlight.piece){var A=r.getShallow("highlightPolicy");t.highlight.piece.onEmphasis(A)}else if(t&&t.unhighlight){var y=this.virtualPiece;!y&&o.children.length&&(y=o.children[0].piece),y&&y.onNormal()}this._initEvents(),this._oldChildren=p;function x(_,O){if(_.length===0&&O.length===0)return;new g(O,_,L,L).add(D).update(D).remove(I.curry(D,null)).execute();function L(N){return N.getId()}function D(N,M){var F=N==null?null:_[N],R=M==null?null:O[M];C(F,R)}}function C(_,O){if(!f&&_&&!_.getValue()&&(_=null),_!==o&&O!==o){if(O&&O.piece)_?(O.piece.updateData(!1,_,"normal",r,i),e.setItemGraphicEl(_.dataIndex,O.piece)):w(O);else if(_){var L=new T(_,r,i);u.add(L),e.setItemGraphicEl(_.dataIndex,L)}}}function w(_){if(!_)return;_.piece&&(u.remove(_.piece),_.piece=null)}function b(_,O){if(O.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,_,"normal",r,i):(s.virtualPiece=new T(_,r,i),u.add(s.virtualPiece)),O.piece._onclickEvent&&O.piece.off("click",O.piece._onclickEvent);var L=function(D){s._rootToNode(O.parentNode)};O.piece._onclickEvent=L,s.virtualPiece.on("click",L)}else s.virtualPiece&&(u.remove(s.virtualPiece),s.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var r=this,i=function(n){var t=!1,s=r.seriesModel.getViewRoot();s.eachNode(function(e){if(!t&&e.piece&&e.piece.childAt(0)===n.target){var o=e.getModel().get("nodeClick");if(o==="rootToNode")r._rootToNode(e);else if(o==="link"){var l=e.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";m(u,f)}}t=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",i),this.group._onclickEvent=i},_rootToNode:function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:h,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},containPoint:function(r,i){var n=i.getData(),t=n.getItemLayout(0);if(t){var s=r[0]-t.cx,e=r[1]-t.cy,o=Math.sqrt(s*s+e*e);return o<=t.r&&o>=t.r0}}}),a=c;H.exports=a},NAnI:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("wXyp"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},NBmB:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.encodingName=E,k.encodings=void 0;var I={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};k.encodings=I;function E(T){switch(T){case I.encodingRaw:return"Raw";case I.encodingCopyRect:return"CopyRect";case I.encodingRRE:return"RRE";case I.encodingHextile:return"Hextile";case I.encodingTight:return"Tight";case I.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+T+"]"}}},NC18:function(H,k,d){var I=d("y+Vt"),E=d("IMiH"),T=d("7oTu"),g=Math.sqrt,S=Math.sin,m=Math.cos,h=Math.PI,c=function(p){return Math.sqrt(p[0]*p[0]+p[1]*p[1])},a=function(p,v){return(p[0]*v[0]+p[1]*v[1])/(c(p)*c(v))},r=function(p,v){return(p[0]*v[1]<p[1]*v[0]?-1:1)*Math.acos(a(p,v))};function i(f,p,v,A,y,x,C,w,b,_,O){var L=b*(h/180),D=m(L)*(f-v)/2+S(L)*(p-A)/2,N=-1*S(L)*(f-v)/2+m(L)*(p-A)/2,M=D*D/(C*C)+N*N/(w*w);M>1&&(C*=g(M),w*=g(M));var F=(y===x?-1:1)*g((C*C*(w*w)-C*C*(N*N)-w*w*(D*D))/(C*C*(N*N)+w*w*(D*D)))||0,R=F*C*N/w,j=F*-w*D/C,B=(f+v)/2+m(L)*R-S(L)*j,K=(p+A)/2+S(L)*R+m(L)*j,U=r([1,0],[(D-R)/C,(N-j)/w]),z=[(D-R)/C,(N-j)/w],V=[(-1*D-R)/C,(-1*N-j)/w],Y=r(z,V);a(z,V)<=-1&&(Y=h),a(z,V)>=1&&(Y=0),x===0&&Y>0&&(Y=Y-2*h),x===1&&Y<0&&(Y=Y+2*h),O.addData(_,B,K,C,w,U,Y,L,x)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,t=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function s(f){if(!f)return new E;for(var p=0,v=0,A=p,y=v,x,C=new E,w=E.CMD,b=f.match(n),_=0;_<b.length;_++){for(var O=b[_],L=O.charAt(0),D,N=O.match(t)||[],M=N.length,F=0;F<M;F++)N[F]=parseFloat(N[F]);for(var R=0;R<M;){var j,B,K,U,z,V,Y,J=p,se=v;switch(L){case"l":p+=N[R++],v+=N[R++],D=w.L,C.addData(D,p,v);break;case"L":p=N[R++],v=N[R++],D=w.L,C.addData(D,p,v);break;case"m":p+=N[R++],v+=N[R++],D=w.M,C.addData(D,p,v),A=p,y=v,L="l";break;case"M":p=N[R++],v=N[R++],D=w.M,C.addData(D,p,v),A=p,y=v,L="L";break;case"h":p+=N[R++],D=w.L,C.addData(D,p,v);break;case"H":p=N[R++],D=w.L,C.addData(D,p,v);break;case"v":v+=N[R++],D=w.L,C.addData(D,p,v);break;case"V":v=N[R++],D=w.L,C.addData(D,p,v);break;case"C":D=w.C,C.addData(D,N[R++],N[R++],N[R++],N[R++],N[R++],N[R++]),p=N[R-2],v=N[R-1];break;case"c":D=w.C,C.addData(D,N[R++]+p,N[R++]+v,N[R++]+p,N[R++]+v,N[R++]+p,N[R++]+v),p+=N[R-2],v+=N[R-1];break;case"S":j=p,B=v;var $=C.len(),ae=C.data;x===w.C&&(j+=p-ae[$-4],B+=v-ae[$-3]),D=w.C,J=N[R++],se=N[R++],p=N[R++],v=N[R++],C.addData(D,j,B,J,se,p,v);break;case"s":j=p,B=v;var $=C.len(),ae=C.data;x===w.C&&(j+=p-ae[$-4],B+=v-ae[$-3]),D=w.C,J=p+N[R++],se=v+N[R++],p+=N[R++],v+=N[R++],C.addData(D,j,B,J,se,p,v);break;case"Q":J=N[R++],se=N[R++],p=N[R++],v=N[R++],D=w.Q,C.addData(D,J,se,p,v);break;case"q":J=N[R++]+p,se=N[R++]+v,p+=N[R++],v+=N[R++],D=w.Q,C.addData(D,J,se,p,v);break;case"T":j=p,B=v;var $=C.len(),ae=C.data;x===w.Q&&(j+=p-ae[$-4],B+=v-ae[$-3]),p=N[R++],v=N[R++],D=w.Q,C.addData(D,j,B,p,v);break;case"t":j=p,B=v;var $=C.len(),ae=C.data;x===w.Q&&(j+=p-ae[$-4],B+=v-ae[$-3]),p+=N[R++],v+=N[R++],D=w.Q,C.addData(D,j,B,p,v);break;case"A":K=N[R++],U=N[R++],z=N[R++],V=N[R++],Y=N[R++],J=p,se=v,p=N[R++],v=N[R++],D=w.A,i(J,se,p,v,V,Y,K,U,z,D,C);break;case"a":K=N[R++],U=N[R++],z=N[R++],V=N[R++],Y=N[R++],J=p,se=v,p+=N[R++],v+=N[R++],D=w.A,i(J,se,p,v,V,Y,K,U,z,D,C);break}}(L==="z"||L==="Z")&&(D=w.Z,C.addData(D),p=A,v=y),x=D}return C.toStatic(),C}function e(f,p){var v=s(f);return p=p||{},p.buildPath=function(A){if(A.setData){A.setData(v.data);var y=A.getContext();y&&A.rebuildPath(y)}else{var y=A;v.rebuildPath(y)}},p.applyTransform=function(A){T(v,A),this.dirty(!0)},p}function o(f,p){return new I(e(f,p))}function l(f,p){return I.extend(e(f,p))}function u(f,p){for(var v=[],A=f.length,y=0;y<A;y++){var x=f[y];x.path||x.createPathProxy(),x.__dirtyPath&&x.buildPath(x.path,x.shape,!0),v.push(x.path)}var C=new I(p);return C.createPathProxy(),C.buildPath=function(w){w.appendPath(v);var b=w.getContext();b&&w.rebuildPath(b)},C}k.createFromString=o,k.extendFromString=l,k.mergePath=u},NFKh:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("MlIO"),d("F+F2"),d("qM6L"),d("ETIr"),d("wbyO"),d("cv67"),d("3y9D"),d("lPiR"),d("GRuw"),d("1uat"),d("uGsb"),d("5hvy"),d("ELcG"),d("WYAk"),d("e7zE"),d("K3mO"),d("OLod"),d("ALsQ"),d("9OqN"),d("qu8F"),d("S6kV"),d("gb/T"),d("qBft"),d("oRuE"),d("jO9C"),d("KmYQ"),d("uGxW"),d("bQjk"),d("wZgz"),d("pA7S"),d("w7YG"),d("E4JC"),d("PVpz"))})(this,function(I){return I})},NH9N:function(H,k,d){var I=d("bYtY"),E=d("mFDi"),T=d("Fofx"),g=d("IwbS"),S=d("+TT/"),m=d("kzvK"),h=d("CMP+"),c=d("oVpE"),a=c.createSymbol,r=d("aX7z"),i=d("OELB"),n=d("7aKB"),t=n.encodeHTML,s=I.bind,e=I.each,o=Math.PI,l=m.extend({type:"timeline.slider",init:function(A,y){this.api=y,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(A,y,x,C){if(this.model=A,this.api=x,this.ecModel=y,this.group.removeAll(),A.get("show",!0)){var w=this._layout(A,x),b=this._createGroup("mainGroup"),_=this._createGroup("labelGroup"),O=this._axis=this._createAxis(w,A);A.formatTooltip=function(L){return t(O.scale.getLabel(L))},e(["AxisLine","AxisTick","Control","CurrentPointer"],function(L){this["_render"+L](w,b,O,A)},this),this._renderAxisLabel(w,_,O,A),this._position(w,A)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(A,y){var x=A.get("label.position"),C=A.get("orient"),w=u(A,y);x==null||x==="auto"?x=C==="horizontal"?w.y+w.height/2<y.getHeight()/2?"-":"+":w.x+w.width/2<y.getWidth()/2?"+":"-":isNaN(x)&&(x={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[C][x]);var b={horizontal:"center",vertical:x>=0||x==="+"?"left":"right"},_={horizontal:x>=0||x==="+"?"top":"bottom",vertical:"middle"},O={horizontal:0,vertical:o/2},L=C==="vertical"?w.height:w.width,D=A.getModel("controlStyle"),N=D.get("show",!0),M=N?D.get("itemSize"):0,F=N?D.get("itemGap"):0,R=M+F,j=A.get("label.rotate")||0;j=j*o/180;var B,K,U,z,V=D.get("position",!0),Y=N&&D.get("showPlayBtn",!0),J=N&&D.get("showPrevBtn",!0),se=N&&D.get("showNextBtn",!0),$=0,ae=L;return V==="left"||V==="bottom"?(Y&&(B=[0,0],$+=R),J&&(K=[$,0],$+=R),se&&(U=[ae-M,0],ae-=R)):(Y&&(B=[ae-M,0],ae-=R),J&&(K=[0,0],$+=R),se&&(U=[ae-M,0],ae-=R)),z=[$,ae],A.get("inverse")&&z.reverse(),{viewRect:w,mainLength:L,orient:C,rotation:O[C],labelRotation:j,labelPosOpt:x,labelAlign:A.get("label.align")||b[C],labelBaseline:A.get("label.verticalAlign")||A.get("label.baseline")||_[C],playPosition:B,prevBtnPosition:K,nextBtnPosition:U,axisExtent:z,controlSize:M,controlGap:F}},_position:function(A,y){var x=this._mainGroup,C=this._labelGroup,w=A.viewRect;if(A.orient==="vertical"){var b=T.create(),_=w.x,O=w.y+w.height;T.translate(b,b,[-_,-O]),T.rotate(b,b,-o/2),T.translate(b,b,[_,O]),w=w.clone(),w.applyTransform(b)}var L=K(w),D=K(x.getBoundingRect()),N=K(C.getBoundingRect()),M=x.position,F=C.position;F[0]=M[0]=L[0][0];var R=A.labelPosOpt;if(isNaN(R)){var j=R==="+"?0:1;U(M,D,L,1,j),U(F,N,L,1,1-j)}else{var j=R>=0?0:1;U(M,D,L,1,j),F[1]=M[1]+R}x.attr("position",M),C.attr("position",F),x.rotation=C.rotation=A.rotation,B(x),B(C);function B(z){var V=z.position;z.origin=[L[0][0]-V[0],L[1][0]-V[1]]}function K(z){return[[z.x,z.x+z.width],[z.y,z.y+z.height]]}function U(z,V,Y,J,se){z[J]+=Y[J][se]-V[J][se]}},_createAxis:function(A,y){var x=y.getData(),C=y.get("axisType"),w=r.createScaleByModel(y,C);w.getTicks=function(){return x.mapArray(["value"],function(O){return O})};var b=x.getDataExtent("value");w.setExtent(b[0],b[1]),w.niceTicks();var _=new h("value",w,A.axisExtent,C);return _.model=y,_},_createGroup:function(A){var y=this["_"+A]=new g.Group;return this.group.add(y),y},_renderAxisLine:function(A,y,x,C){var w=x.getExtent();if(!C.get("lineStyle.show"))return;y.add(new g.Line({shape:{x1:w[0],y1:0,x2:w[1],y2:0},style:I.extend({lineCap:"round"},C.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(A,y,x,C){var w=C.getData(),b=x.scale.getTicks();e(b,function(_){var O=x.dataToCoord(_),L=w.getItemModel(_),D=L.getModel("itemStyle"),N=L.getModel("emphasis.itemStyle"),M={position:[O,0],onclick:s(this._changeTimeline,this,_)},F=p(L,D,y,M);g.setHoverStyle(F,N.getItemStyle()),L.get("tooltip")?(F.dataIndex=_,F.dataModel=C):F.dataIndex=F.dataModel=null},this)},_renderAxisLabel:function(A,y,x,C){var w=x.getLabelModel();if(!w.get("show"))return;var b=C.getData(),_=x.getViewLabels();e(_,function(O){var L=O.tickValue,D=b.getItemModel(L),N=D.getModel("label"),M=D.getModel("emphasis.label"),F=x.dataToCoord(O.tickValue),R=new g.Text({position:[F,0],rotation:A.labelRotation-A.rotation,onclick:s(this._changeTimeline,this,L),silent:!1});g.setTextStyle(R.style,N,{text:O.formattedLabel,textAlign:A.labelAlign,textVerticalAlign:A.labelBaseline}),y.add(R),g.setHoverStyle(R,g.setTextStyle({},M))},this)},_renderControl:function(A,y,x,C){var w=A.controlSize,b=A.rotation,_=C.getModel("controlStyle").getItemStyle(),O=C.getModel("emphasis.controlStyle").getItemStyle(),L=[0,-w/2,w,w],D=C.getPlayState(),N=C.get("inverse",!0);M(A.nextBtnPosition,"controlStyle.nextIcon",s(this._changeTimeline,this,N?"-":"+")),M(A.prevBtnPosition,"controlStyle.prevIcon",s(this._changeTimeline,this,N?"+":"-")),M(A.playPosition,"controlStyle."+(D?"stopIcon":"playIcon"),s(this._handlePlayClick,this,!D),!0);function M(F,R,j,B){if(!F)return;var K={position:F,origin:[w/2,0],rotation:B?-b:0,rectHover:!0,style:_,onclick:j},U=f(C,R,L,K);y.add(U),g.setHoverStyle(U,O)}},_renderCurrentPointer:function(A,y,x,C){var w=C.getData(),b=C.getCurrentIndex(),_=w.getItemModel(b).getModel("checkpointStyle"),O=this,L={onCreate:function(D){D.draggable=!0,D.drift=s(O._handlePointerDrag,O),D.ondragend=s(O._handlePointerDragend,O),v(D,b,x,C,!0)},onUpdate:function(D){v(D,b,x,C)}};this._currentPointer=p(_,_,this._mainGroup,{},this._currentPointer,L)},_handlePlayClick:function(A){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:A,from:this.uid})},_handlePointerDrag:function(A,y,x){this._clearTimer(),this._pointerChangeTimeline([x.offsetX,x.offsetY])},_handlePointerDragend:function(A){this._pointerChangeTimeline([A.offsetX,A.offsetY],!0)},_pointerChangeTimeline:function(A,y){var x=this._toAxisCoord(A)[0],C=this._axis,w=i.asc(C.getExtent().slice());x>w[1]&&(x=w[1]),x<w[0]&&(x=w[0]),this._currentPointer.position[0]=x,this._currentPointer.dirty();var b=this._findNearestTick(x),_=this.model;(y||b!==_.getCurrentIndex()&&_.get("realtime"))&&this._changeTimeline(b)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(s(A,this),this.model.get("playInterval")));function A(){var y=this.model;this._changeTimeline(y.getCurrentIndex()+(y.get("rewind",!0)?-1:1))}},_toAxisCoord:function(A){var y=this._mainGroup.getLocalTransform();return g.applyTransform(A,y,!0)},_findNearestTick:function(A){var y=this.model.getData(),x=Infinity,C,w=this._axis;return y.each(["value"],function(b,_){var O=w.dataToCoord(b),L=Math.abs(O-A);L<x&&(x=L,C=_)}),C},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(A){var y=this.model.getCurrentIndex();A==="+"?A=y+1:A==="-"&&(A=y-1),this.api.dispatchAction({type:"timelineChange",currentIndex:A,from:this.uid})}});function u(A,y){return S.getLayoutRect(A.getBoxLayoutParams(),{width:y.getWidth(),height:y.getHeight()},A.get("padding"))}function f(A,y,x,C){var w=g.makePath(A.get(y).replace(/^path:\/\//,""),I.clone(C||{}),new E(x[0],x[1],x[2],x[3]),"center");return w}function p(A,y,x,C,w,b){var _=y.get("color");if(w)w.setColor(_),x.add(w),b&&b.onUpdate(w);else{var O=A.get("symbol");w=a(O,-1,-1,2,2,_),w.setStyle("strokeNoScale",!0),x.add(w),b&&b.onCreate(w)}var L=y.getItemStyle(["color","symbol","symbolSize"]);w.setStyle(L),C=I.merge({rectHover:!0,z2:100},C,!0);var D=A.get("symbolSize");D=D instanceof Array?D.slice():[+D,+D],D[0]/=2,D[1]/=2,C.scale=D;var N=A.get("symbolOffset");if(N){var M=C.position=C.position||[0,0];M[0]+=i.parsePercent(N[0],D[0]),M[1]+=i.parsePercent(N[1],D[1])}var F=A.get("symbolRotate");return C.rotation=(F||0)*Math.PI/180||0,w.attr(C),w.updateTransform(),w}function v(A,y,x,C,w){if(A.dragging)return;var b=C.getModel("checkpointStyle"),_=x.dataToCoord(C.getData().get(["value"],y));w||!b.get("animation",!0)?A.attr({position:[_,0]}):(A.stopAnimation(!0),A.animateTo({position:[_,0]},b.get("animationDuration",!0),b.get("animationEasing",!0)))}H.exports=l},NJEC:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("J4zp"),g=d.n(T),S=d("q1tI"),m=d.n(S),h=d("TSYQ"),c=d.n(h),a=d("sKbD"),r=d.n(a),i=d("4IlW"),n=d("3S7+"),t=d("2/Rp"),s=d("zvFY"),e=d("YMnH"),o=d("ZvpZ"),l=d("H84U"),u=d("bogI"),f=d("0n0R"),p=void 0,v=function(y,x){var C={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&x.indexOf(w)<0&&(C[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,w=Object.getOwnPropertySymbols(y);b<w.length;b++)x.indexOf(w[b])<0&&Object.prototype.propertyIsEnumerable.call(y,w[b])&&(C[w[b]]=y[w[b]]);return C},A=S.forwardRef(function(y,x){var C=S.useState(y.visible),w=g()(C,2),b=w[0],_=w[1];S.useEffect(function(){"visible"in y&&_(y.visible)},[y.visible]),S.useEffect(function(){"defaultVisible"in y&&_(y.defaultVisible)},[y.defaultVisible]);var O=function(ge,pe){"visible"in y||_(ge),y.onVisibleChange&&y.onVisibleChange(ge,pe)},L=function(ge){O(!1,ge),y.onConfirm&&y.onConfirm.call(p,ge)},D=function(ge){O(!1,ge),y.onCancel&&y.onCancel.call(p,ge)},N=function(ge){ge.keyCode===i.a.ESC&&b&&O(!1,ge)},M=function(ge){var pe=y.disabled;if(pe)return;O(ge)},F=function(ge,pe){var Ne=y.okButtonProps,de=y.cancelButtonProps,Le=y.title,Q=y.cancelText,ce=y.okText,Ke=y.okType,ee=y.icon;return S.createElement("div",{className:"".concat(ge,"-inner-content")},S.createElement("div",{className:"".concat(ge,"-message")},ee,S.createElement("div",{className:"".concat(ge,"-message-title")},Object(u.a)(Le))),S.createElement("div",{className:"".concat(ge,"-buttons")},S.createElement(t.a,E()({onClick:D,size:"small"},de),Q||pe.cancelText),S.createElement(t.a,E()({onClick:L},Object(s.a)(Ke),{size:"small"},Ne),ce||pe.okText)))},R=S.useContext(l.b),j=R.getPrefixCls,B=y.prefixCls,K=y.placement,U=y.children,z=y.overlayClassName,V=v(y,["prefixCls","placement","children","overlayClassName"]),Y=j("popover",B),J=j("popconfirm",B),se=c()(J,z),$=S.createElement(e.a,{componentName:"Popconfirm",defaultLocale:o.a.Popconfirm},function(ae){return F(Y,ae)});return S.createElement(n.a,E()({},V,{prefixCls:Y,placement:K,onVisibleChange:M,visible:b,overlay:$,overlayClassName:se,ref:x}),Object(f.a)(U,{onKeyDown:function(ge){var pe,Ne;(Ne=U==null?void 0:(pe=U.props).onKeyDown)===null||Ne===void 0||Ne.call(pe,ge),N(ge)}}))});A.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:S.createElement(r.a,null),disabled:!1},k.a=A},NUBc:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("q1tI"),m=d.n(S),h=d("wx14"),c=d("rePB"),a=d("VTBJ"),r=d("1OyB"),i=d("vuIU"),n=d("Ji7U"),t=d("LK+K"),s=d("TSYQ"),e=d.n(s),o=function(pe){var Ne,de="".concat(pe.rootPrefixCls,"-item"),Le=e()(de,"".concat(de,"-").concat(pe.page),(Ne={},Object(c.a)(Ne,"".concat(de,"-active"),pe.active),Object(c.a)(Ne,pe.className,!!pe.className),Object(c.a)(Ne,"".concat(de,"-disabled"),!pe.page),Ne)),Q=function(){pe.onClick(pe.page)},ce=function(ee){pe.onKeyPress(ee,pe.onClick,pe.page)};return m.a.createElement("li",{title:pe.showTitle?pe.page:null,className:Le,onClick:Q,onKeyPress:ce,tabIndex:"0"},pe.itemRender(pe.page,"page",m.a.createElement("a",{rel:"nofollow"},pe.page)))},l=o,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},f=function(ge){Object(n.a)(Ne,ge);var pe=Object(t.a)(Ne);function Ne(){var de;Object(r.a)(this,Ne);for(var Le=arguments.length,Q=new Array(Le),ce=0;ce<Le;ce++)Q[ce]=arguments[ce];return de=pe.call.apply(pe,[this].concat(Q)),de.state={goInputText:""},de.buildOptionText=function(Ke){return"".concat(Ke," ").concat(de.props.locale.items_per_page)},de.changeSize=function(Ke){de.props.changeSize(Number(Ke))},de.handleChange=function(Ke){de.setState({goInputText:Ke.target.value})},de.handleBlur=function(Ke){var ee=de.props,X=ee.goButton,G=ee.quickGo,Z=ee.rootPrefixCls,ve=de.state.goInputText;if(X||ve==="")return;if(Ke.relatedTarget&&(Ke.relatedTarget.className.indexOf("".concat(Z,"-prev"))>=0||Ke.relatedTarget.className.indexOf("".concat(Z,"-next"))>=0))return;de.setState({goInputText:""}),G(de.getValidValue())},de.go=function(Ke){var ee=de.state.goInputText;if(ee==="")return;(Ke.keyCode===u.ENTER||Ke.type==="click")&&(de.setState({goInputText:""}),de.props.quickGo(de.getValidValue()))},de}return Object(i.a)(Ne,[{key:"getValidValue",value:function(){var Le=this.state,Q=Le.goInputText,ce=Le.current;return!Q||isNaN(Q)?ce:Number(Q)}},{key:"getPageSizeOptions",value:function(){var Le=this.props,Q=Le.pageSize,ce=Le.pageSizeOptions;return ce.some(function(Ke){return Ke.toString()===Q.toString()})?ce:ce.concat([Q.toString()]).sort(function(Ke,ee){var X=isNaN(Number(Ke))?0:Number(Ke),G=isNaN(Number(ee))?0:Number(ee);return X-G})}},{key:"render",value:function(){var Le=this,Q=this.props,ce=Q.pageSize,Ke=Q.locale,ee=Q.rootPrefixCls,X=Q.changeSize,G=Q.quickGo,Z=Q.goButton,ve=Q.selectComponentClass,ue=Q.buildOptionText,_e=Q.selectPrefixCls,xe=Q.disabled,oe=this.state.goInputText,fe="".concat(ee,"-options"),Te=ve,ze=null,it=null,et=null;if(!X&&!G)return null;var Oe=this.getPageSizeOptions();if(X&&Te){var gt=Oe.map(function(Ge,wt){return m.a.createElement(Te.Option,{key:wt,value:Ge.toString()},(ue||Le.buildOptionText)(Ge))});ze=m.a.createElement(Te,{disabled:xe,prefixCls:_e,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ce||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(wt){return wt.parentNode}},gt)}return G&&(Z&&(et=typeof Z=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:xe,className:"".concat(fe,"-quick-jumper-button")},Ke.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Z)),it=m.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},Ke.jump_to,m.a.createElement("input",{disabled:xe,type:"text",value:oe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Ke.page,et)),m.a.createElement("li",{className:"".concat(fe)},ze,it)}}]),Ne}(m.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=f,v=d("N2Kk");function A(){}function y(ge){return typeof ge=="number"&&isFinite(ge)&&Math.floor(ge)===ge}function x(ge,pe,Ne){return Ne}function C(ge,pe,Ne){var de=typeof ge=="undefined"?pe.pageSize:ge;return Math.floor((Ne.total-1)/de)+1}var w=function(ge){Object(n.a)(Ne,ge);var pe=Object(t.a)(Ne);function Ne(de){var Le;Object(r.a)(this,Ne),Le=pe.call(this,de),Le.getJumpPrevPage=function(){return Math.max(1,Le.state.current-(Le.props.showLessItems?3:5))},Le.getJumpNextPage=function(){return Math.min(C(void 0,Le.state,Le.props),Le.state.current+(Le.props.showLessItems?3:5))},Le.getItemIcon=function(X,G){var Z=Le.props.prefixCls,ve=X||m.a.createElement("button",{type:"button","aria-label":G,className:"".concat(Z,"-item-link")});return typeof X=="function"&&(ve=m.a.createElement(X,Object(a.a)({},Le.props))),ve},Le.savePaginationNode=function(X){Le.paginationNode=X},Le.isValid=function(X){return y(X)&&X!==Le.state.current},Le.shouldDisplayQuickJumper=function(){var X=Le.props,G=X.showQuickJumper,Z=X.pageSize,ve=X.total;return ve<=Z?!1:G},Le.handleKeyDown=function(X){(X.keyCode===u.ARROW_UP||X.keyCode===u.ARROW_DOWN)&&X.preventDefault()},Le.handleKeyUp=function(X){var G=Le.getValidValue(X),Z=Le.state.currentInputValue;G!==Z&&Le.setState({currentInputValue:G}),X.keyCode===u.ENTER?Le.handleChange(G):X.keyCode===u.ARROW_UP?Le.handleChange(G-1):X.keyCode===u.ARROW_DOWN&&Le.handleChange(G+1)},Le.changePageSize=function(X){var G=Le.state.current,Z=C(X,Le.state,Le.props);G=G>Z?Z:G,Z===0&&(G=Le.state.current),typeof X=="number"&&("pageSize"in Le.props||Le.setState({pageSize:X}),"current"in Le.props||Le.setState({current:G,currentInputValue:G})),Le.props.onShowSizeChange(G,X),"onChange"in Le.props&&Le.props.onChange&&Le.props.onChange(G,X)},Le.handleChange=function(X){var G=Le.props.disabled,Z=X;if(Le.isValid(Z)&&!G){var ve=C(void 0,Le.state,Le.props);Z>ve?Z=ve:Z<1&&(Z=1),"current"in Le.props||Le.setState({current:Z,currentInputValue:Z});var ue=Le.state.pageSize;return Le.props.onChange(Z,ue),Z}return Le.state.current},Le.prev=function(){Le.hasPrev()&&Le.handleChange(Le.state.current-1)},Le.next=function(){Le.hasNext()&&Le.handleChange(Le.state.current+1)},Le.jumpPrev=function(){Le.handleChange(Le.getJumpPrevPage())},Le.jumpNext=function(){Le.handleChange(Le.getJumpNextPage())},Le.hasPrev=function(){return Le.state.current>1},Le.hasNext=function(){return Le.state.current<C(void 0,Le.state,Le.props)},Le.runIfEnter=function(X,G){if(X.key==="Enter"||X.charCode===13){for(var Z=arguments.length,ve=new Array(Z>2?Z-2:0),ue=2;ue<Z;ue++)ve[ue-2]=arguments[ue];G.apply(void 0,ve)}},Le.runIfEnterPrev=function(X){Le.runIfEnter(X,Le.prev)},Le.runIfEnterNext=function(X){Le.runIfEnter(X,Le.next)},Le.runIfEnterJumpPrev=function(X){Le.runIfEnter(X,Le.jumpPrev)},Le.runIfEnterJumpNext=function(X){Le.runIfEnter(X,Le.jumpNext)},Le.handleGoTO=function(X){(X.keyCode===u.ENTER||X.type==="click")&&Le.handleChange(Le.state.currentInputValue)};var Q=de.onChange!==A,ce="current"in de;ce&&!Q&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ke=de.defaultCurrent;"current"in de&&(Ke=de.current);var ee=de.defaultPageSize;return"pageSize"in de&&(ee=de.pageSize),Ke=Math.min(Ke,C(ee,void 0,de)),Le.state={current:Ke,currentInputValue:Ke,pageSize:ee},Le}return Object(i.a)(Ne,[{key:"componentDidUpdate",value:function(Le,Q){var ce=this.props.prefixCls;if(Q.current!==this.state.current&&this.paginationNode){var Ke=this.paginationNode.querySelector(".".concat(ce,"-item-").concat(Q.current));Ke&&document.activeElement===Ke&&Ke.blur()}}},{key:"getValidValue",value:function(Le){var Q=Le.target.value,ce=C(void 0,this.state,this.props),Ke=this.state.currentInputValue,ee;return Q===""?ee=Q:isNaN(Number(Q))?ee=Ke:Q>=ce?ee=ce:ee=Number(Q),ee}},{key:"getShowSizeChanger",value:function(){var Le=this.props,Q=Le.showSizeChanger,ce=Le.total,Ke=Le.totalBoundaryShowSizeChanger;return typeof Q!="undefined"?Q:ce>Ke}},{key:"renderPrev",value:function(Le){var Q=this.props,ce=Q.prevIcon,Ke=Q.itemRender,ee=Ke(Le,"prev",this.getItemIcon(ce,"prev page")),X=!this.hasPrev();return Object(S.isValidElement)(ee)?Object(S.cloneElement)(ee,{disabled:X}):ee}},{key:"renderNext",value:function(Le){var Q=this.props,ce=Q.nextIcon,Ke=Q.itemRender,ee=Ke(Le,"next",this.getItemIcon(ce,"next page")),X=!this.hasNext();return Object(S.isValidElement)(ee)?Object(S.cloneElement)(ee,{disabled:X}):ee}},{key:"render",value:function(){var Le=this,Q=this.props,ce=Q.prefixCls,Ke=Q.className,ee=Q.style,X=Q.disabled,G=Q.hideOnSinglePage,Z=Q.total,ve=Q.locale,ue=Q.showQuickJumper,_e=Q.showLessItems,xe=Q.showTitle,oe=Q.showTotal,fe=Q.simple,Te=Q.itemRender,ze=Q.showPrevNextJumpers,it=Q.jumpPrevIcon,et=Q.jumpNextIcon,Oe=Q.selectComponentClass,gt=Q.selectPrefixCls,Ge=Q.pageSizeOptions,wt=this.state,xt=wt.current,Ct=wt.pageSize,Dt=wt.currentInputValue;if(G===!0&&Z<=Ct)return null;var Ht=C(void 0,this.state,this.props),Je=[],ye=null,ie=null,bt=null,qe=null,me=null,Rt=ue&&ue.goButton,er=_e?1:2,ct=xt-1>0?xt-1:0,zt=xt+1<Ht?xt+1:Ht,sr=Object.keys(this.props).reduce(function(Ln,$e){return($e.substr(0,5)==="data-"||$e.substr(0,5)==="aria-"||$e==="role")&&(Ln[$e]=Le.props[$e]),Ln},{});if(fe)return Rt&&(typeof Rt=="boolean"?me=m.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ve.jump_to_confirm):me=m.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Rt),me=m.a.createElement("li",{title:xe?"".concat(ve.jump_to).concat(xt,"/").concat(Ht):null,className:"".concat(ce,"-simple-pager")},me)),m.a.createElement("ul",Object(h.a)({className:e()(ce,"".concat(ce,"-simple"),Object(c.a)({},"".concat(ce,"-disabled"),X),Ke),style:ee,ref:this.savePaginationNode},sr),m.a.createElement("li",{title:xe?ve.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:e()("".concat(ce,"-prev"),Object(c.a)({},"".concat(ce,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ct)),m.a.createElement("li",{title:xe?"".concat(xt,"/").concat(Ht):null,className:"".concat(ce,"-simple-pager")},m.a.createElement("input",{type:"text",value:Dt,disabled:X,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),m.a.createElement("span",{className:"".concat(ce,"-slash")},"/"),Ht),m.a.createElement("li",{title:xe?ve.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:e()("".concat(ce,"-next"),Object(c.a)({},"".concat(ce,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(zt)),me);if(Ht<=3+er*2){var Kr={locale:ve,rootPrefixCls:ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:xe,itemRender:Te};Ht||Je.push(m.a.createElement(l,Object(h.a)({},Kr,{key:"noPager",page:Ht,className:"".concat(ce,"-disabled")})));for(var ar=1;ar<=Ht;ar+=1){var nr=xt===ar;Je.push(m.a.createElement(l,Object(h.a)({},Kr,{key:ar,page:ar,active:nr})))}}else{var Lt=_e?ve.prev_3:ve.prev_5,st=_e?ve.next_3:ve.next_5;ze&&(ye=m.a.createElement("li",{title:xe?Lt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:e()("".concat(ce,"-jump-prev"),Object(c.a)({},"".concat(ce,"-jump-prev-custom-icon"),!!it))},Te(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(it,"prev page"))),ie=m.a.createElement("li",{title:xe?st:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:e()("".concat(ce,"-jump-next"),Object(c.a)({},"".concat(ce,"-jump-next-custom-icon"),!!et))},Te(this.getJumpNextPage(),"jump-next",this.getItemIcon(et,"next page")))),qe=m.a.createElement(l,{locale:ve,last:!0,rootPrefixCls:ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ht,page:Ht,active:!1,showTitle:xe,itemRender:Te}),bt=m.a.createElement(l,{locale:ve,rootPrefixCls:ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:xe,itemRender:Te});var Qe=Math.max(1,xt-er),qt=Math.min(xt+er,Ht);xt-1<=er&&(qt=1+er*2),Ht-xt<=er&&(Qe=Ht-er*2);for(var Sr=Qe;Sr<=qt;Sr+=1){var Ar=xt===Sr;Je.push(m.a.createElement(l,{locale:ve,rootPrefixCls:ce,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Sr,page:Sr,active:Ar,showTitle:xe,itemRender:Te}))}xt-1>=er*2&&xt!==1+2&&(Je[0]=Object(S.cloneElement)(Je[0],{className:"".concat(ce,"-item-after-jump-prev")}),Je.unshift(ye)),Ht-xt>=er*2&&xt!==Ht-2&&(Je[Je.length-1]=Object(S.cloneElement)(Je[Je.length-1],{className:"".concat(ce,"-item-before-jump-next")}),Je.push(ie)),Qe!==1&&Je.unshift(bt),qt!==Ht&&Je.push(qe)}var hr=null;oe&&(hr=m.a.createElement("li",{className:"".concat(ce,"-total-text")},oe(Z,[Z===0?0:(xt-1)*Ct+1,xt*Ct>Z?Z:xt*Ct])));var vn=!this.hasPrev()||!Ht,Zr=!this.hasNext()||!Ht;return m.a.createElement("ul",Object(h.a)({className:e()(ce,Ke,Object(c.a)({},"".concat(ce,"-disabled"),X)),style:ee,unselectable:"unselectable",ref:this.savePaginationNode},sr),hr,m.a.createElement("li",{title:xe?ve.prev_page:null,onClick:this.prev,tabIndex:vn?null:0,onKeyPress:this.runIfEnterPrev,className:e()("".concat(ce,"-prev"),Object(c.a)({},"".concat(ce,"-disabled"),vn)),"aria-disabled":vn},this.renderPrev(ct)),Je,m.a.createElement("li",{title:xe?ve.next_page:null,onClick:this.next,tabIndex:Zr?null:0,onKeyPress:this.runIfEnterNext,className:e()("".concat(ce,"-next"),Object(c.a)({},"".concat(ce,"-disabled"),Zr)),"aria-disabled":Zr},this.renderNext(zt)),m.a.createElement(p,{disabled:X,locale:ve,rootPrefixCls:ce,selectComponentClass:Oe,selectPrefixCls:gt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:xt,pageSize:Ct,pageSizeOptions:Ge,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Rt}))}}],[{key:"getDerivedStateFromProps",value:function(Le,Q){var ce={};if("current"in Le&&(ce.current=Le.current,Le.current!==Q.current&&(ce.currentInputValue=ce.current)),"pageSize"in Le&&Le.pageSize!==Q.pageSize){var Ke=Q.current,ee=C(Le.pageSize,Q,Le);Ke=Ke>ee?ee:Ke,"current"in Le||(ce.current=Ke,ce.currentInputValue=Ke),ce.pageSize=Le.pageSize}return ce}}]),Ne}(m.a.Component);w.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:A,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:A,locale:v.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var b=w,_=d("H4fg"),O=d("DFhj"),L=d.n(O),D=d("fEPi"),N=d.n(D),M=d("u9fO"),F=d.n(M),R=d("mO/d"),j=d.n(R),B=d("2fM7"),K=function(pe){return S.createElement(B.a,g()({size:"small"},pe))};K.Option=B.a.Option;var U=K,z=d("YMnH"),V=d("H84U"),Y=d("5OYt"),J=function(ge,pe){var Ne={};for(var de in ge)Object.prototype.hasOwnProperty.call(ge,de)&&pe.indexOf(de)<0&&(Ne[de]=ge[de]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,de=Object.getOwnPropertySymbols(ge);Le<de.length;Le++)pe.indexOf(de[Le])<0&&Object.prototype.propertyIsEnumerable.call(ge,de[Le])&&(Ne[de[Le]]=ge[de[Le]]);return Ne},se=function(pe){var Ne=pe.prefixCls,de=pe.selectPrefixCls,Le=pe.className,Q=pe.size,ce=pe.locale,Ke=J(pe,["prefixCls","selectPrefixCls","className","size","locale"]),ee=Object(Y.a)(),X=ee.xs,G=S.useContext(V.b),Z=G.getPrefixCls,ve=G.direction,ue=Z("pagination",Ne),_e=function(){var fe=S.createElement("span",{className:"".concat(ue,"-item-ellipsis")},"\u2022\u2022\u2022"),Te=S.createElement("button",{className:"".concat(ue,"-item-link"),type:"button",tabIndex:-1},S.createElement(L.a,null)),ze=S.createElement("button",{className:"".concat(ue,"-item-link"),type:"button",tabIndex:-1},S.createElement(N.a,null)),it=S.createElement("a",{className:"".concat(ue,"-item-link")},S.createElement("div",{className:"".concat(ue,"-item-container")},S.createElement(F.a,{className:"".concat(ue,"-item-link-icon")}),fe)),et=S.createElement("a",{className:"".concat(ue,"-item-link")},S.createElement("div",{className:"".concat(ue,"-item-container")},S.createElement(j.a,{className:"".concat(ue,"-item-link-icon")}),fe));if(ve==="rtl"){var Oe=[ze,Te];Te=Oe[0],ze=Oe[1];var gt=[et,it];it=gt[0],et=gt[1]}return{prevIcon:Te,nextIcon:ze,jumpPrevIcon:it,jumpNextIcon:et}},xe=function(fe){var Te=g()(g()({},fe),ce),ze=Q==="small"||!!(X&&!Q&&Ke.responsive),it=Z("select",de),et=e()(Le,E()({mini:ze},"".concat(ue,"-rtl"),ve==="rtl"));return S.createElement(b,g()({},Ke,{prefixCls:ue,selectPrefixCls:it},_e(),{className:et,selectComponentClass:ze?U:B.a,locale:Te}))};return S.createElement(z.a,{componentName:"Pagination",defaultLocale:_.a},xe)},$=se,ae=k.a=$},NohK:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=function(T){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,S=null;return function(){for(var m=this,h=arguments.length,c=new Array(h),a=0;a<h;a++)c[a]=arguments[a];clearTimeout(S),S=setTimeout(function(){T.apply(m,c)},g)}};k.default=I},Nu4q:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={icon:function(T,g){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:T}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:g}},{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:g}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:g}},{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:T}}]}},name:"picture",theme:"twotone"};k.default=I},NvD2:function(H,k,d){"use strict";d.d(k,"a",function(){return m});var I=d("Kwbf");function E(h,c){var a=new Set;return h.forEach(function(r){c.has(r)||a.add(r)}),a}function T(h){var c=h||{},a=c.disabled,r=c.disableCheckbox,i=c.checkable;return!!(a||r)||i===!1}function g(h,c,a,r){for(var i=new Set(h),n=new Set,t=0;t<=a;t+=1){var s=c.get(t)||new Set;s.forEach(function(u){var f=u.key,p=u.node,v=u.children,A=v===void 0?[]:v;i.has(f)&&!r(p)&&A.filter(function(y){return!r(y.node)}).forEach(function(y){i.add(y.key)})})}for(var e=new Set,o=a;o>=0;o-=1){var l=c.get(o)||new Set;l.forEach(function(u){var f=u.parent,p=u.node;if(r(p)||!u.parent||e.has(u.parent.key))return;if(r(u.parent.node)){e.add(f.key);return}var v=!0,A=!1;(f.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var x=y.key,C=i.has(x);v&&!C&&(v=!1),!A&&(C||n.has(x))&&(A=!0)}),v&&i.add(f.key),A&&n.add(f.key),e.add(f.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(E(n,i))}}function S(h,c,a,r,i){for(var n=new Set(h),t=new Set(c),s=0;s<=r;s+=1){var e=a.get(s)||new Set;e.forEach(function(f){var p=f.key,v=f.node,A=f.children,y=A===void 0?[]:A;!n.has(p)&&!t.has(p)&&!i(v)&&y.filter(function(x){return!i(x.node)}).forEach(function(x){n.delete(x.key)})})}t=new Set;for(var o=new Set,l=r;l>=0;l-=1){var u=a.get(l)||new Set;u.forEach(function(f){var p=f.parent,v=f.node;if(i(v)||!f.parent||o.has(f.parent.key))return;if(i(f.parent.node)){o.add(p.key);return}var A=!0,y=!1;(p.children||[]).filter(function(x){return!i(x.node)}).forEach(function(x){var C=x.key,w=n.has(C);A&&!w&&(A=!1),!y&&(w||t.has(C))&&(y=!0)}),A||n.delete(p.key),y&&t.add(p.key),o.add(p.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(E(t,n))}}function m(h,c,a,r){var i=[],n;r?n=r:n=T;var t=new Set(h.filter(function(l){var u=!!a[l];return u||i.push(l),u})),s=new Map,e=0;Object.keys(a).forEach(function(l){var u=a[l],f=u.level,p=s.get(f);p||(p=new Set,s.set(f,p)),p.add(u),e=Math.max(e,f)}),Object(I.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(l){return"'".concat(l,"'")}).join(", ")));var o;return c===!0?o=g(t,s,e,n):o=S(t,c.halfCheckedKeys,s,e,n),o}},"O/iA":function(H,k,d){},O3gP:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("O/iA"),g=d.n(T),S=d("OaEy")},OELB:function(H,k,d){var I=d("bYtY"),E=1e-4;function T(y){return y.replace(/^\s+|\s+$/g,"")}function g(y,x,C,w){var b=x[1]-x[0],_=C[1]-C[0];if(b===0)return _===0?C[0]:(C[0]+C[1])/2;if(w)if(b>0){if(y<=x[0])return C[0];if(y>=x[1])return C[1]}else{if(y>=x[0])return C[0];if(y<=x[1])return C[1]}else{if(y===x[0])return C[0];if(y===x[1])return C[1]}return(y-x[0])/b*_+C[0]}function S(y,x){switch(y){case"center":case"middle":y="50%";break;case"left":case"top":y="0%";break;case"right":case"bottom":y="100%";break}return typeof y=="string"?T(y).match(/%$/)?parseFloat(y)/100*x:parseFloat(y):y==null?NaN:+y}function m(y,x,C){return x==null&&(x=10),x=Math.min(Math.max(0,x),20),y=(+y).toFixed(x),C?y:+y}function h(y){return y.sort(function(x,C){return x-C}),y}function c(y){if(y=+y,isNaN(y))return 0;for(var x=1,C=0;Math.round(y*x)/x!==y;)x*=10,C++;return C}function a(y){var x=y.toString(),C=x.indexOf("e");if(C>0){var w=+x.slice(C+1);return w<0?-w:0}else{var b=x.indexOf(".");return b<0?0:x.length-1-b}}function r(y,x){var C=Math.log,w=Math.LN10,b=Math.floor(C(y[1]-y[0])/w),_=Math.round(C(Math.abs(x[1]-x[0]))/w),O=Math.min(Math.max(-b+_,0),20);return isFinite(O)?O:20}function i(y,x,C){if(!y[x])return 0;var w=I.reduce(y,function(B,K){return B+(isNaN(K)?0:K)},0);if(w===0)return 0;for(var b=Math.pow(10,C),_=I.map(y,function(B){return(isNaN(B)?0:B)/w*b*100}),O=b*100,L=I.map(_,function(B){return Math.floor(B)}),D=I.reduce(L,function(B,K){return B+K},0),N=I.map(_,function(B,K){return B-L[K]});D<O;){for(var M=Number.NEGATIVE_INFINITY,F=null,R=0,j=N.length;R<j;++R)N[R]>M&&(M=N[R],F=R);++L[F],N[F]=0,++D}return L[x]/b}var n=9007199254740991;function t(y){var x=Math.PI*2;return(y%x+x)%x}function s(y){return y>-E&&y<E}var e=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(y){if(y instanceof Date)return y;if(typeof y=="string"){var x=e.exec(y);if(!x)return new Date(NaN);if(x[8]){var C=+x[4]||0;return x[8].toUpperCase()!=="Z"&&(C-=x[8].slice(0,3)),new Date(Date.UTC(+x[1],+(x[2]||1)-1,+x[3]||1,C,+(x[5]||0),+x[6]||0,+x[7]||0))}else return new Date(+x[1],+(x[2]||1)-1,+x[3]||1,+x[4]||0,+(x[5]||0),+x[6]||0,+x[7]||0)}else if(y==null)return new Date(NaN);return new Date(Math.round(y))}function l(y){return Math.pow(10,u(y))}function u(y){if(y===0)return 0;var x=Math.floor(Math.log(y)/Math.LN10);return y/Math.pow(10,x)>=10&&x++,x}function f(y,x){var C=u(y),w=Math.pow(10,C),b=y/w,_;return x?b<1.5?_=1:b<2.5?_=2:b<4?_=3:b<7?_=5:_=10:b<1?_=1:b<2?_=2:b<3?_=3:b<5?_=5:_=10,y=_*w,C>=-20?+y.toFixed(C<0?-C:0):y}function p(y,x){var C=(y.length-1)*x+1,w=Math.floor(C),b=+y[w-1],_=C-w;return _?b+_*(y[w]-b):b}function v(y){y.sort(function(D,N){return L(D,N,0)?-1:1});for(var x=-Infinity,C=1,w=0;w<y.length;){for(var b=y[w].interval,_=y[w].close,O=0;O<2;O++)b[O]<=x&&(b[O]=x,_[O]=O?1:1-C),x=b[O],C=_[O];b[0]===b[1]&&_[0]*_[1]!==1?y.splice(w,1):w++}return y;function L(D,N,M){return D.interval[M]<N.interval[M]||D.interval[M]===N.interval[M]&&(D.close[M]-N.close[M]===(M?-1:1)||!M&&L(D,N,1))}}function A(y){return y-parseFloat(y)>=0}k.linearMap=g,k.parsePercent=S,k.round=m,k.asc=h,k.getPrecision=c,k.getPrecisionSafe=a,k.getPixelPrecision=r,k.getPercentWithPrecision=i,k.MAX_SAFE_INTEGER=n,k.remRadian=t,k.isRadianAroundZero=s,k.parseDate=o,k.quantity=l,k.quantityExponent=u,k.nice=f,k.quantile=p,k.reformIntervals=v,k.isNumeric=A},OKJ2:function(H,k,d){var I=d("KxfA"),E=I.retrieveRawValue,T=d("7aKB"),g=T.getTooltipMarker,S=T.formatTpl,m=d("4NO4"),h=m.getTooltipRenderMode,c=/\{@(.+?)\}/g,a={getDataParams:function(r,i){var n=this.getData(i),t=this.getRawValue(r,i),s=n.getRawIndex(r),e=n.getName(r),o=n.getRawDataItem(r),l=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),f=this.ecModel.getComponent("tooltip"),p=f&&f.get("renderMode"),v=h(p),A=this.mainType,y=A==="series",x=n.userOutput;return{componentType:A,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:y?this.subType:null,seriesIndex:this.seriesIndex,seriesId:y?this.id:null,seriesName:y?this.name:null,name:e,dataIndex:s,data:o,dataType:i,value:t,color:l,borderColor:u,dimensionNames:x?x.dimensionNames:null,encode:x?x.encode:null,marker:g({color:l,renderMode:v}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,i,n,t,s){i=i||"normal";var e=this.getData(n),o=e.getItemModel(r),l=this.getDataParams(r,n);t!=null&&l.value instanceof Array&&(l.value=l.value[t]);var u=o.get(i==="normal"?[s||"label","formatter"]:[i,s||"label","formatter"]);if(typeof u=="function")return l.status=i,l.dimensionIndex=t,u(l);if(typeof u=="string"){var f=S(u,l);return f.replace(c,function(p,v){var A=v.length;return v.charAt(0)==="["&&v.charAt(A-1)==="]"&&(v=+v.slice(1,A-1)),E(e,r,v)})}},getRawValue:function(r,i){return E(this.getData(i),r)},formatTooltip:function(){}};H.exports=a},OLod:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("K3mO"))})(this,function(I){I.lib.Cipher||function(E){var T=I,g=T.lib,S=g.Base,m=g.WordArray,h=g.BufferedBlockAlgorithm,c=T.enc,a=c.Utf8,r=c.Base64,i=T.algo,n=i.EvpKDF,t=g.Cipher=h.extend({cfg:S.extend(),createEncryptor:function(O,L){return this.create(this._ENC_XFORM_MODE,O,L)},createDecryptor:function(O,L){return this.create(this._DEC_XFORM_MODE,O,L)},init:function(O,L,D){this.cfg=this.cfg.extend(D),this._xformMode=O,this._key=L,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(O){return this._append(O),this._process()},finalize:function(O){O&&this._append(O);var L=this._doFinalize();return L},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(O){return typeof O=="string"?b:x}return function(O){return{encrypt:function(D,N,M){return _(N).encrypt(O,D,N,M)},decrypt:function(D,N,M){return _(N).decrypt(O,D,N,M)}}}}()}),s=g.StreamCipher=t.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1}),e=T.mode={},o=g.BlockCipherMode=S.extend({createEncryptor:function(O,L){return this.Encryptor.create(O,L)},createDecryptor:function(O,L){return this.Decryptor.create(O,L)},init:function(O,L){this._cipher=O,this._iv=L}}),l=e.CBC=function(){var _=o.extend();_.Encryptor=_.extend({processBlock:function(D,N){var M=this._cipher,F=M.blockSize;O.call(this,D,N,F),M.encryptBlock(D,N),this._prevBlock=D.slice(N,N+F)}}),_.Decryptor=_.extend({processBlock:function(D,N){var M=this._cipher,F=M.blockSize,R=D.slice(N,N+F);M.decryptBlock(D,N),O.call(this,D,N,F),this._prevBlock=R}});function O(L,D,N){var M,F=this._iv;F?(M=F,this._iv=E):M=this._prevBlock;for(var R=0;R<N;R++)L[D+R]^=M[R]}return _}(),u=T.pad={},f=u.Pkcs7={pad:function(O,L){for(var D=L*4,N=D-O.sigBytes%D,M=N<<24|N<<16|N<<8|N,F=[],R=0;R<N;R+=4)F.push(M);var j=m.create(F,N);O.concat(j)},unpad:function(O){var L=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=L}},p=g.BlockCipher=t.extend({cfg:t.cfg.extend({mode:l,padding:f}),reset:function(){var O;t.reset.call(this);var L=this.cfg,D=L.iv,N=L.mode;this._xformMode==this._ENC_XFORM_MODE?O=N.createEncryptor:(O=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,D&&D.words):(this._mode=O.call(N,this,D&&D.words),this._mode.__creator=O)},_doProcessBlock:function(O,L){this._mode.processBlock(O,L)},_doFinalize:function(){var O,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),O=this._process(!0)):(O=this._process(!0),L.unpad(O)),O},blockSize:128/32}),v=g.CipherParams=S.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),A=T.format={},y=A.OpenSSL={stringify:function(O){var L,D=O.ciphertext,N=O.salt;return N?L=m.create([1398893684,1701076831]).concat(N).concat(D):L=D,L.toString(r)},parse:function(O){var L,D=r.parse(O),N=D.words;return N[0]==1398893684&&N[1]==1701076831&&(L=m.create(N.slice(2,4)),N.splice(0,4),D.sigBytes-=16),v.create({ciphertext:D,salt:L})}},x=g.SerializableCipher=S.extend({cfg:S.extend({format:y}),encrypt:function(O,L,D,N){N=this.cfg.extend(N);var M=O.createEncryptor(D,N),F=M.finalize(L),R=M.cfg;return v.create({ciphertext:F,key:D,iv:R.iv,algorithm:O,mode:R.mode,padding:R.padding,blockSize:O.blockSize,formatter:N.format})},decrypt:function(O,L,D,N){N=this.cfg.extend(N),L=this._parse(L,N.format);var M=O.createDecryptor(D,N).finalize(L.ciphertext);return M},_parse:function(O,L){return typeof O=="string"?L.parse(O,this):O}}),C=T.kdf={},w=C.OpenSSL={execute:function(O,L,D,N){N||(N=m.random(64/8));var M=n.create({keySize:L+D}).compute(O,N),F=m.create(M.words.slice(L),D*4);return M.sigBytes=L*4,v.create({key:M,iv:F,salt:N})}},b=g.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:w}),encrypt:function(O,L,D,N){N=this.cfg.extend(N);var M=N.kdf.execute(D,O.keySize,O.ivSize);N.iv=M.iv;var F=x.encrypt.call(this,O,L,M.key,N);return F.mixIn(M),F},decrypt:function(O,L,D,N){N=this.cfg.extend(N),L=this._parse(L,N.format);var M=N.kdf.execute(D,O.keySize,O.ivSize,L.salt);N.iv=M.iv;var F=x.decrypt.call(this,O,L,M.key,N);return F}})}()})},OPEp:function(H,k,d){},OQFs:function(H,k,d){var I=d("KCsZ"),E=I([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),T={getLineStyle:function(g){var S=E(this,g);return S.lineDash=this.getLineDash(S.lineWidth),S},getLineDash:function(g){g==null&&(g=1);var S=this.get("type"),m=Math.max(g,2),h=g*4;return S==="solid"||S==null?!1:S==="dashed"?[h,h]:[m,m]}};H.exports=T},OS9S:function(H,k,d){var I=d("bYtY"),E=I.inherits,T=d("Gev7"),g=d("mFDi");function S(c){T.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}S.prototype.incremental=!0,S.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},S.prototype.addDisplayable=function(c,a){a?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},S.prototype.addDisplayables=function(c,a){a=a||!1;for(var r=0;r<c.length;r++)this.addDisplayable(c[r],a)},S.prototype.eachPendingDisplayable=function(c){for(var a=this._cursor;a<this._displayables.length;a++)c&&c(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)c&&c(this._temporaryDisplayables[a])},S.prototype.update=function(){this.updateTransform();for(var c=this._cursor;c<this._displayables.length;c++){var a=this._displayables[c];a.parent=this,a.update(),a.parent=null}for(var c=0;c<this._temporaryDisplayables.length;c++){var a=this._temporaryDisplayables[c];a.parent=this,a.update(),a.parent=null}},S.prototype.brush=function(c,a){for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.beforeBrush&&i.beforeBrush(c),i.brush(c,r===this._cursor?null:this._displayables[r-1]),i.afterBrush&&i.afterBrush(c)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.beforeBrush&&i.beforeBrush(c),i.brush(c,r===0?null:this._temporaryDisplayables[r-1]),i.afterBrush&&i.afterBrush(c)}this._temporaryDisplayables=[],this.notClear=!0};var m=[];S.prototype.getBoundingRect=function(){if(!this._rect){for(var c=new g(Infinity,Infinity,-Infinity,-Infinity),a=0;a<this._displayables.length;a++){var r=this._displayables[a],i=r.getBoundingRect().clone();r.needLocalTransform()&&i.applyTransform(r.getLocalTransform(m)),c.union(i)}this._rect=c}return this._rect},S.prototype.contain=function(c,a){var r=this.transformCoordToLocal(c,a),i=this.getBoundingRect();if(i.contain(r[0],r[1]))for(var n=0;n<this._displayables.length;n++){var t=this._displayables[n];if(t.contain(c,a))return!0}return!1},E(S,T);var h=S;H.exports=h},OUJF:function(H,k,d){var I=d("ProS"),E=d("bYtY");I.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(T,g){var S=g.getComponent("timeline");return S&&T.currentIndex!=null&&(S.setCurrentIndex(T.currentIndex),!S.get("loop",!0)&&S.isIndexMax()&&S.setPlayState(!1)),g.resetOption("timeline"),E.defaults({currentIndex:S.option.currentIndex},T)}),I.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(T,g){var S=g.getComponent("timeline");S&&T.playState!=null&&S.setPlayState(T.playState)})},OXB0:function(H,k,d){var I=d("T4UG"),E=d("MwEJ"),T=d("IDmD"),g=I.extend({type:"series.heatmap",getInitialData:function(S,m){return E(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var S=T.get(this.get("coordinateSystem"));if(S&&S.dimensions)return S.dimensions[0]==="lng"&&S.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});H.exports=g},OZM5:function(H,k,d){"use strict";d.d(k,"b",function(){return r}),d.d(k,"a",function(){return i}),d.d(k,"k",function(){return n}),d.d(k,"h",function(){return t}),d.d(k,"i",function(){return s}),d.d(k,"g",function(){return e}),d.d(k,"c",function(){return o}),d.d(k,"d",function(){return l}),d.d(k,"j",function(){return p}),d.d(k,"e",function(){return v}),d.d(k,"f",function(){return A});var I=d("KQm4"),E=d("U8pU"),T=d("Ff2n"),g=d("q1tI"),S=d.n(g),m=d("Kwbf"),h=d("WaYH"),c=.25,a=2;function r(y,x){var C=y.slice(),w=C.indexOf(x);return w>=0&&C.splice(w,1),C}function i(y,x){var C=y.slice();return C.indexOf(x)===-1&&C.push(x),C}function n(y){return y.split("-")}function t(y,x){return"".concat(y,"-").concat(x)}function s(y){return y&&y.type&&y.type.isTreeNode}function e(y,x){var C=[y],w=x[y];function b(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(O){var L=O.key,D=O.children;C.push(L),b(D)})}return b(w.children),C}function o(y,x){var C=y.clientY,w=x.selectHandle.getBoundingClientRect(),b=w.top,_=w.bottom,O=w.height,L=Math.max(O*c,a);return C<=b+L?-1:C>=_-L?1:0}function l(y,x){if(!y)return;var C=x.multiple;return C?y.slice():y.length?[y[0]]:y}var u=function(x){return x};function f(y,x){if(!y)return[];var C=x||{},w=C.processProps,b=w===void 0?u:w,_=Array.isArray(y)?y:[y];return _.map(function(O){var L=O.children,D=Object(T.a)(O,["children"]),N=f(L,x);return S.a.createElement(h.a,Object.assign({},b(D)),N)})}function p(y){if(!y)return null;var x;if(Array.isArray(y))x={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(E.a)(y)==="object")x={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return x}function v(y,x){var C=new Set;function w(b){if(C.has(b))return;var _=x[b];if(!_)return;C.add(b);var O=_.parent,L=_.node;if(L.disabled)return;O&&w(O.key)}return(y||[]).forEach(function(b){w(b)}),Object(I.a)(C)}function A(y){var x={};return Object.keys(y).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(x[C]=y[C])}),x}},OaEy:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("bKJz"),g=d.n(T),S=d("R9oj")},Ol7k:function(H,k,d){"use strict";var I=d("PKem"),E=d("ZX9x");I.b.Sider=E.b,k.a=I.b},OlYY:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("ItGF"),m=d("4NO4"),h=d("UOVi"),c=d("zDms"),a=g.each,r=h.eachAxisDim,i=T.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(e,o,l){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var u=n(e);this.settledOption=u,this.mergeDefaultAndTheme(e,l),this.doInit(u)},mergeOption:function(e){var o=n(e);g.merge(this.option,e,!0),g.merge(this.settledOption,o,!0),this.doInit(o)},doInit:function(e){var o=this.option;S.canvasSupported||(o.realtime=!1),this._setDefaultThrottle(e),t(this,e);var l=this.settledOption;a([["start","startValue"],["end","endValue"]],function(u,f){this._rangePropMode[f]==="value"&&(o[u[0]]=l[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(o,l,u,f){var p=this.dependentModels[o.axis][l],v=p.__dzAxisProxy||(p.__dzAxisProxy=new c(o.name,l,this,f));e[o.name+"_"+l]=v},this)},_resetTarget:function(){var e=this.option,o=this._judgeAutoMode();r(function(l){var u=l.axisIndex;e[u]=m.normalizeToArray(e[u])},this),o==="axisIndex"?this._autoSetAxisIndex():o==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,o=!1;r(function(u){e[u.axisIndex]!=null&&(o=!0)},this);var l=e.orient;if(l==null&&o)return"orient";if(!o)return l==null&&(e.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var e=!0,o=this.get("orient",!0),l=this.option,u=this.dependentModels;if(e){var f=o==="vertical"?"y":"x";u[f+"Axis"].length?(l[f+"AxisIndex"]=[0],e=!1):a(u.singleAxis,function(p){e&&p.get("orient",!0)===o&&(l.singleAxisIndex=[p.componentIndex],e=!1)})}e&&r(function(p){if(!e)return;var v=[],A=this.dependentModels[p.axis];if(A.length&&!v.length)for(var y=0,x=A.length;y<x;y++)A[y].get("type")==="category"&&v.push(y);l[p.axisIndex]=v,v.length&&(e=!1)},this),e&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(v){var A=l[v.axisIndex],y=p.get(v.axisIndex),x=p.get(v.axisId),C=p.ecModel.queryComponents({mainType:v.axis,index:y,id:x})[0];y=C.componentIndex,g.indexOf(A,y)<0&&A.push(y)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(o){!e&&(e=o.name)},this),this.option.orient=e==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,o){var l=!0;return r(function(u){var f=e.get(u.axisIndex),p=this.dependentModels[u.axis][f];(!p||p.get("type")!==o)&&(l=!1)},this),l},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return r(function(o){if(e==null){var l=this.get(o.axisIndex);l.length&&(e=this.dependentModels[o.axis][l[0]])}},this),e},eachTargetAxis:function(e,o){var l=this.ecModel;r(function(u){a(this.get(u.axisIndex),function(f){e.call(o,u,f,this,l)},this)},this)},getAxisProxy:function(e,o){return this._axisProxies[e+"_"+o]},getAxisModel:function(e,o){var l=this.getAxisProxy(e,o);return l&&l.getAxisModel()},setRawRange:function(e){var o=this.option,l=this.settledOption;a([["start","startValue"],["end","endValue"]],function(u){(e[u[0]]!=null||e[u[1]]!=null)&&(o[u[0]]=l[u[0]]=e[u[0]],o[u[1]]=l[u[1]]=e[u[1]])},this),t(this,e)},setCalculatedRange:function(e){var o=this.option;a(["start","startValue","end","endValue"],function(l){o[l]=e[l]})},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,o){if(e==null&&o==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(e,o).getDataValueWindow()},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var o=this._axisProxies;for(var l in o)if(o.hasOwnProperty(l)&&o[l].hostedBy(this))return o[l];for(var l in o)if(o.hasOwnProperty(l)&&!o[l].hostedBy(this))return o[l]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(e){var o={};return a(["start","end","startValue","endValue","throttle"],function(l){e.hasOwnProperty(l)&&(o[l]=e[l])}),o}function t(e,o){var l=e._rangePropMode,u=e.get("rangeMode");a([["start","startValue"],["end","endValue"]],function(f,p){var v=o[f[0]]!=null,A=o[f[1]]!=null;v&&!A?l[p]="percent":!v&&A?l[p]="value":u?l[p]=u[p]:v&&(l[p]="percent")})}var s=i;H.exports=s},OnYD:function(H,k,d){},"Oy/b":function(H,k,d){(function(E,T){H.exports=T()})(typeof self!="undefined"?self:this,function(){return function(I){var E={};function T(g){if(E[g])return E[g].exports;var S=E[g]={i:g,l:!1,exports:{}};return I[g].call(S.exports,S,S.exports,T),S.l=!0,S.exports}return T.m=I,T.c=E,T.d=function(g,S,m){T.o(g,S)||Object.defineProperty(g,S,{enumerable:!0,get:m})},T.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},T.t=function(g,S){if(S&1&&(g=T(g)),S&8)return g;if(S&4&&typeof g=="object"&&g&&g.__esModule)return g;var m=Object.create(null);if(T.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:g}),S&2&&typeof g!="string")for(var h in g)T.d(m,h,function(c){return g[c]}.bind(null,h));return m},T.n=function(g){var S=g&&g.__esModule?function(){return g.default}:function(){return g};return T.d(S,"a",S),S},T.o=function(g,S){return Object.prototype.hasOwnProperty.call(g,S)},T.p="",T(T.s=1)}([function(I,E,T){},function(I,E,T){"use strict";T.r(E);var g=T(0),S=function(){function mt(ne,Ae,we){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ne,this.start=Ae,this.end=we}return mt.range=function(Ae,we){return we?!Ae||!Ae.loc||!we.loc||Ae.loc.lexer!==we.loc.lexer?null:new mt(Ae.loc.lexer,Ae.loc.start,we.loc.end):Ae&&Ae.loc},mt}(),m=function(){function mt(Ae,we){this.text=void 0,this.loc=void 0,this.text=Ae,this.loc=we}var ne=mt.prototype;return ne.range=function(we,Be){return new mt(Be,S.range(this,we))},mt}(),h=function mt(ne,Ae){this.position=void 0;var we="KaTeX parse error: "+ne,Be,dt=Ae&&Ae.loc;if(dt&&dt.start<=dt.end){var Ot=dt.lexer.input;Be=dt.start;var br=dt.end;Be===Ot.length?we+=" at end of input: ":we+=" at position "+(Be+1)+": ";var Lr=Ot.slice(Be,br).replace(/[^]/g,"$&\u0332"),$r;Be>15?$r="\u2026"+Ot.slice(Be-15,Be):$r=Ot.slice(0,Be);var xn;br+15<Ot.length?xn=Ot.slice(br,br+15)+"\u2026":xn=Ot.slice(br),we+=$r+Lr+xn}var Wn=new Error(we);return Wn.name="ParseError",Wn.__proto__=mt.prototype,Wn.position=Be,Wn};h.prototype.__proto__=Error.prototype;var c=h,a=function(ne,Ae){return ne.indexOf(Ae)!==-1},r=function(ne,Ae){return ne===void 0?Ae:ne},i=/([A-Z])/g,n=function(ne){return ne.replace(i,"-$1").toLowerCase()},t={"&":"&",">":">","<":"<",'"':""","'":"'"},s=/[&><"']/g;function e(mt){return String(mt).replace(s,function(ne){return t[ne]})}var o=function mt(ne){return ne.type==="ordgroup"||ne.type==="color"?ne.body.length===1?mt(ne.body[0]):ne:ne.type==="font"?mt(ne.body):ne},l=function(ne){var Ae=o(ne);return Ae.type==="mathord"||Ae.type==="textord"||Ae.type==="atom"},u=function(ne){if(!ne)throw new Error("Expected non-null, but got "+String(ne));return ne},f=function(ne){var Ae=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ne);return Ae!=null?Ae[1]:"_relative"},p={contains:a,deflt:r,escape:e,hyphenate:n,getBaseElem:o,isCharacterBox:l,protocolFromUrl:f},v=function(){function mt(Ae){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,Ae=Ae||{},this.displayMode=p.deflt(Ae.displayMode,!1),this.output=p.deflt(Ae.output,"htmlAndMathml"),this.leqno=p.deflt(Ae.leqno,!1),this.fleqn=p.deflt(Ae.fleqn,!1),this.throwOnError=p.deflt(Ae.throwOnError,!0),this.errorColor=p.deflt(Ae.errorColor,"#cc0000"),this.macros=Ae.macros||{},this.minRuleThickness=Math.max(0,p.deflt(Ae.minRuleThickness,0)),this.colorIsTextColor=p.deflt(Ae.colorIsTextColor,!1),this.strict=p.deflt(Ae.strict,"warn"),this.trust=p.deflt(Ae.trust,!1),this.maxSize=Math.max(0,p.deflt(Ae.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(Ae.maxExpand,1e3))}var ne=mt.prototype;return ne.reportNonstrict=function(we,Be,dt){var Ot=this.strict;if(typeof Ot=="function"&&(Ot=Ot(we,Be,dt)),!Ot||Ot==="ignore")return;if(Ot===!0||Ot==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(Be+" ["+we+"]"),dt);Ot==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Be+" ["+we+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Ot+"': "+Be+" ["+we+"]"))},ne.useStrictBehavior=function(we,Be,dt){var Ot=this.strict;if(typeof Ot=="function")try{Ot=Ot(we,Be,dt)}catch(br){Ot="error"}return!Ot||Ot==="ignore"?!1:Ot===!0||Ot==="error"?!0:Ot==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Be+" ["+we+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Ot+"': "+Be+" ["+we+"]")),!1)},ne.isTrusted=function(we){we.url&&!we.protocol&&(we.protocol=p.protocolFromUrl(we.url));var Be=typeof this.trust=="function"?this.trust(we):this.trust;return Boolean(Be)},mt}(),A=function(){function mt(Ae,we,Be){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=Ae,this.size=we,this.cramped=Be}var ne=mt.prototype;return ne.sup=function(){return D[N[this.id]]},ne.sub=function(){return D[M[this.id]]},ne.fracNum=function(){return D[F[this.id]]},ne.fracDen=function(){return D[R[this.id]]},ne.cramp=function(){return D[j[this.id]]},ne.text=function(){return D[B[this.id]]},ne.isTight=function(){return this.size>=2},mt}(),y=0,x=1,C=2,w=3,b=4,_=5,O=6,L=7,D=[new A(y,0,!1),new A(x,0,!0),new A(C,1,!1),new A(w,1,!0),new A(b,2,!1),new A(_,2,!0),new A(O,3,!1),new A(L,3,!0)],N=[b,_,b,_,O,L,O,L],M=[_,_,_,_,L,L,L,L],F=[C,w,b,_,O,L,O,L],R=[w,w,_,_,L,L,L,L],j=[x,x,w,w,_,_,L,L],B=[y,x,C,w,C,w,C,w],K={DISPLAY:D[y],TEXT:D[C],SCRIPT:D[b],SCRIPTSCRIPT:D[O]},U=[{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 z(mt){for(var ne=0;ne<U.length;ne++)for(var Ae=U[ne],we=0;we<Ae.blocks.length;we++){var Be=Ae.blocks[we];if(mt>=Be[0]&&mt<=Be[1])return Ae.name}return null}var V=[];U.forEach(function(mt){return mt.blocks.forEach(function(ne){return V.push.apply(V,ne)})});function Y(mt){for(var ne=0;ne<V.length;ne+=2)if(mt>=V[ne]&&mt<=V[ne+1])return!0;return!1}var J=80,se=function(ne,Ae){return"M95,"+(622+ne+Ae)+`
|
|
|
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`+ne/2.075+" -"+ne+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+ne)+`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+ne)+" "+Ae+"h400000v"+(40+ne)+"h-400000z"},$=function(ne,Ae){return"M263,"+(601+ne+Ae)+`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`+ne/2.084+" -"+ne+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+ne)+`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+ne)+" "+Ae+"h400000v"+(40+ne)+"h-400000z"},ae=function(ne,Ae){return"M983 "+(10+ne+Ae)+`
|
|
|
l`+ne/3.13+" -"+ne+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+ne)+`
|
|
|
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+ne)+" "+Ae+"h400000v"+(40+ne)+"h-400000z"},ge=function(ne,Ae){return"M424,"+(2398+ne+Ae)+`
|
|
|
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`+ne/4.223+" -"+ne+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+ne)+`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+ne)+" "+Ae+`
|
|
|
h400000v`+(40+ne)+"h-400000z"},pe=function(ne,Ae){return"M473,"+(2713+ne+Ae)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ne/5.298+" -"+ne+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ne)+`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+ne)+" "+Ae+"h400000v"+(40+ne)+"H1017.7z"},Ne=function(ne,Ae,we){var Be=we-54-Ae-ne;return"M702 "+(ne+Ae)+"H400000"+(40+ne)+`
|
|
|
H742v`+Be+`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 `+Ae+"H400000v"+(40+ne)+"H742z"},de=function(ne,Ae,we){Ae=1e3*Ae;var Be="";switch(ne){case"sqrtMain":Be=se(Ae,J);break;case"sqrtSize1":Be=$(Ae,J);break;case"sqrtSize2":Be=ae(Ae,J);break;case"sqrtSize3":Be=ge(Ae,J);break;case"sqrtSize4":Be=pe(Ae,J);break;case"sqrtTall":Be=Ne(Ae,J,we)}return Be},Le={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`},Q=function(){function mt(Ae){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=Ae,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ne=mt.prototype;return ne.hasClass=function(we){return p.contains(this.classes,we)},ne.toNode=function(){for(var we=document.createDocumentFragment(),Be=0;Be<this.children.length;Be++)we.appendChild(this.children[Be].toNode());return we},ne.toMarkup=function(){for(var we="",Be=0;Be<this.children.length;Be++)we+=this.children[Be].toMarkup();return we},ne.toText=function(){var we=function(dt){return dt.toText()};return this.children.map(we).join("")},mt}(),ce=function(ne){return ne.filter(function(Ae){return Ae}).join(" ")},Ke=function(ne,Ae,we){if(this.classes=ne||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=we||{},Ae){Ae.style.isTight()&&this.classes.push("mtight");var Be=Ae.getColor();Be&&(this.style.color=Be)}},ee=function(ne){var Ae=document.createElement(ne);Ae.className=ce(this.classes);for(var we in this.style)this.style.hasOwnProperty(we)&&(Ae.style[we]=this.style[we]);for(var Be in this.attributes)this.attributes.hasOwnProperty(Be)&&Ae.setAttribute(Be,this.attributes[Be]);for(var dt=0;dt<this.children.length;dt++)Ae.appendChild(this.children[dt].toNode());return Ae},X=function(ne){var Ae="<"+ne;this.classes.length&&(Ae+=' class="'+p.escape(ce(this.classes))+'"');var we="";for(var Be in this.style)this.style.hasOwnProperty(Be)&&(we+=p.hyphenate(Be)+":"+this.style[Be]+";");we&&(Ae+=' style="'+p.escape(we)+'"');for(var dt in this.attributes)this.attributes.hasOwnProperty(dt)&&(Ae+=" "+dt+'="'+p.escape(this.attributes[dt])+'"');Ae+=">";for(var Ot=0;Ot<this.children.length;Ot++)Ae+=this.children[Ot].toMarkup();return Ae+="</"+ne+">",Ae},G=function(){function mt(Ae,we,Be,dt){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,Ke.call(this,Ae,Be,dt),this.children=we||[]}var ne=mt.prototype;return ne.setAttribute=function(we,Be){this.attributes[we]=Be},ne.hasClass=function(we){return p.contains(this.classes,we)},ne.toNode=function(){return ee.call(this,"span")},ne.toMarkup=function(){return X.call(this,"span")},mt}(),Z=function(){function mt(Ae,we,Be,dt){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,Ke.call(this,we,dt),this.children=Be||[],this.setAttribute("href",Ae)}var ne=mt.prototype;return ne.setAttribute=function(we,Be){this.attributes[we]=Be},ne.hasClass=function(we){return p.contains(this.classes,we)},ne.toNode=function(){return ee.call(this,"a")},ne.toMarkup=function(){return X.call(this,"a")},mt}(),ve=function(){function mt(Ae,we,Be){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=we,this.src=Ae,this.classes=["mord"],this.style=Be}var ne=mt.prototype;return ne.hasClass=function(we){return p.contains(this.classes,we)},ne.toNode=function(){var we=document.createElement("img");we.src=this.src,we.alt=this.alt,we.className="mord";for(var Be in this.style)this.style.hasOwnProperty(Be)&&(we.style[Be]=this.style[Be]);return we},ne.toMarkup=function(){var we="<img src='"+this.src+" 'alt='"+this.alt+"' ",Be="";for(var dt in this.style)this.style.hasOwnProperty(dt)&&(Be+=p.hyphenate(dt)+":"+this.style[dt]+";");return Be&&(we+=' style="'+p.escape(Be)+'"'),we+="'/>",we},mt}(),ue={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},_e=function(){function mt(Ae,we,Be,dt,Ot,br,Lr,$r){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=Ae,this.height=we||0,this.depth=Be||0,this.italic=dt||0,this.skew=Ot||0,this.width=br||0,this.classes=Lr||[],this.style=$r||{},this.maxFontSize=0;var xn=z(this.text.charCodeAt(0));xn&&this.classes.push(xn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ue[this.text])}var ne=mt.prototype;return ne.hasClass=function(we){return p.contains(this.classes,we)},ne.toNode=function(){var we=document.createTextNode(this.text),Be=null;this.italic>0&&(Be=document.createElement("span"),Be.style.marginRight=this.italic+"em"),this.classes.length>0&&(Be=Be||document.createElement("span"),Be.className=ce(this.classes));for(var dt in this.style)this.style.hasOwnProperty(dt)&&(Be=Be||document.createElement("span"),Be.style[dt]=this.style[dt]);return Be?(Be.appendChild(we),Be):we},ne.toMarkup=function(){var we=!1,Be="<span";this.classes.length&&(we=!0,Be+=' class="',Be+=p.escape(ce(this.classes)),Be+='"');var dt="";this.italic>0&&(dt+="margin-right:"+this.italic+"em;");for(var Ot in this.style)this.style.hasOwnProperty(Ot)&&(dt+=p.hyphenate(Ot)+":"+this.style[Ot]+";");dt&&(we=!0,Be+=' style="'+p.escape(dt)+'"');var br=p.escape(this.text);return we?(Be+=">",Be+=br,Be+="</span>",Be):br},mt}(),xe=function(){function mt(Ae,we){this.children=void 0,this.attributes=void 0,this.children=Ae||[],this.attributes=we||{}}var ne=mt.prototype;return ne.toNode=function(){var we="http://www.w3.org/2000/svg",Be=document.createElementNS(we,"svg");for(var dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,dt)&&Be.setAttribute(dt,this.attributes[dt]);for(var Ot=0;Ot<this.children.length;Ot++)Be.appendChild(this.children[Ot].toNode());return Be},ne.toMarkup=function(){var we="<svg";for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&(we+=" "+Be+"='"+this.attributes[Be]+"'");we+=">";for(var dt=0;dt<this.children.length;dt++)we+=this.children[dt].toMarkup();return we+="</svg>",we},mt}(),oe=function(){function mt(Ae,we){this.pathName=void 0,this.alternate=void 0,this.pathName=Ae,this.alternate=we}var ne=mt.prototype;return ne.toNode=function(){var we="http://www.w3.org/2000/svg",Be=document.createElementNS(we,"path");return this.alternate?Be.setAttribute("d",this.alternate):Be.setAttribute("d",Le[this.pathName]),Be},ne.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Le[this.pathName]+"'/>"},mt}(),fe=function(){function mt(Ae){this.attributes=void 0,this.attributes=Ae||{}}var ne=mt.prototype;return ne.toNode=function(){var we="http://www.w3.org/2000/svg",Be=document.createElementNS(we,"line");for(var dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,dt)&&Be.setAttribute(dt,this.attributes[dt]);return Be},ne.toMarkup=function(){var we="<line";for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&(we+=" "+Be+"='"+this.attributes[Be]+"'");return we+="/>",we},mt}();function Te(mt){if(mt instanceof _e)return mt;throw new Error("Expected symbolNode but got "+String(mt)+".")}function ze(mt){if(mt instanceof G)return mt;throw new Error("Expected span<HtmlDomNode> but got "+String(mt)+".")}var it={"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]}},et={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]},Oe={\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 gt(mt,ne){it[mt]=ne}function Ge(mt,ne,Ae){if(!it[ne])throw new Error("Font metrics not found for font: "+ne+".");var we=mt.charCodeAt(0),Be=it[ne][we];if(!Be&&mt[0]in Oe&&(we=Oe[mt[0]].charCodeAt(0),Be=it[ne][we]),!Be&&Ae==="text"&&(Y(we)&&(Be=it[ne][77])),Be)return{depth:Be[0],height:Be[1],italic:Be[2],skew:Be[3],width:Be[4]}}var wt={};function xt(mt){var ne;if(mt>=5?ne=0:mt>=3?ne=1:ne=2,!wt[ne]){var Ae=wt[ne]={cssEmPerMu:et.quad[ne]/18};for(var we in et)et.hasOwnProperty(we)&&(Ae[we]=et[we][ne])}return wt[ne]}var Ct={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Dt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ht={math:{},text:{}},Je=Ht;function ye(mt,ne,Ae,we,Be,dt){Ht[mt][Be]={font:ne,group:Ae,replace:we},dt&&we&&(Ht[mt][we]=Ht[mt][Be])}var ie="math",bt="text",qe="main",me="ams",Rt="accent-token",er="bin",ct="close",zt="inner",sr="mathord",Kr="op-token",ar="open",nr="punct",Lt="rel",st="spacing",Qe="textord";ye(ie,qe,Lt,"\u2261","\\equiv",!0),ye(ie,qe,Lt,"\u227A","\\prec",!0),ye(ie,qe,Lt,"\u227B","\\succ",!0),ye(ie,qe,Lt,"\u223C","\\sim",!0),ye(ie,qe,Lt,"\u22A5","\\perp"),ye(ie,qe,Lt,"\u2AAF","\\preceq",!0),ye(ie,qe,Lt,"\u2AB0","\\succeq",!0),ye(ie,qe,Lt,"\u2243","\\simeq",!0),ye(ie,qe,Lt,"\u2223","\\mid",!0),ye(ie,qe,Lt,"\u226A","\\ll",!0),ye(ie,qe,Lt,"\u226B","\\gg",!0),ye(ie,qe,Lt,"\u224D","\\asymp",!0),ye(ie,qe,Lt,"\u2225","\\parallel"),ye(ie,qe,Lt,"\u22C8","\\bowtie",!0),ye(ie,qe,Lt,"\u2323","\\smile",!0),ye(ie,qe,Lt,"\u2291","\\sqsubseteq",!0),ye(ie,qe,Lt,"\u2292","\\sqsupseteq",!0),ye(ie,qe,Lt,"\u2250","\\doteq",!0),ye(ie,qe,Lt,"\u2322","\\frown",!0),ye(ie,qe,Lt,"\u220B","\\ni",!0),ye(ie,qe,Lt,"\u221D","\\propto",!0),ye(ie,qe,Lt,"\u22A2","\\vdash",!0),ye(ie,qe,Lt,"\u22A3","\\dashv",!0),ye(ie,qe,Lt,"\u220B","\\owns"),ye(ie,qe,nr,".","\\ldotp"),ye(ie,qe,nr,"\u22C5","\\cdotp"),ye(ie,qe,Qe,"#","\\#"),ye(bt,qe,Qe,"#","\\#"),ye(ie,qe,Qe,"&","\\&"),ye(bt,qe,Qe,"&","\\&"),ye(ie,qe,Qe,"\u2135","\\aleph",!0),ye(ie,qe,Qe,"\u2200","\\forall",!0),ye(ie,qe,Qe,"\u210F","\\hbar",!0),ye(ie,qe,Qe,"\u2203","\\exists",!0),ye(ie,qe,Qe,"\u2207","\\nabla",!0),ye(ie,qe,Qe,"\u266D","\\flat",!0),ye(ie,qe,Qe,"\u2113","\\ell",!0),ye(ie,qe,Qe,"\u266E","\\natural",!0),ye(ie,qe,Qe,"\u2663","\\clubsuit",!0),ye(ie,qe,Qe,"\u2118","\\wp",!0),ye(ie,qe,Qe,"\u266F","\\sharp",!0),ye(ie,qe,Qe,"\u2662","\\diamondsuit",!0),ye(ie,qe,Qe,"\u211C","\\Re",!0),ye(ie,qe,Qe,"\u2661","\\heartsuit",!0),ye(ie,qe,Qe,"\u2111","\\Im",!0),ye(ie,qe,Qe,"\u2660","\\spadesuit",!0),ye(bt,qe,Qe,"\xA7","\\S",!0),ye(bt,qe,Qe,"\xB6","\\P",!0),ye(ie,qe,Qe,"\u2020","\\dag"),ye(bt,qe,Qe,"\u2020","\\dag"),ye(bt,qe,Qe,"\u2020","\\textdagger"),ye(ie,qe,Qe,"\u2021","\\ddag"),ye(bt,qe,Qe,"\u2021","\\ddag"),ye(bt,qe,Qe,"\u2021","\\textdaggerdbl"),ye(ie,qe,ct,"\u23B1","\\rmoustache",!0),ye(ie,qe,ar,"\u23B0","\\lmoustache",!0),ye(ie,qe,ct,"\u27EF","\\rgroup",!0),ye(ie,qe,ar,"\u27EE","\\lgroup",!0),ye(ie,qe,er,"\u2213","\\mp",!0),ye(ie,qe,er,"\u2296","\\ominus",!0),ye(ie,qe,er,"\u228E","\\uplus",!0),ye(ie,qe,er,"\u2293","\\sqcap",!0),ye(ie,qe,er,"\u2217","\\ast"),ye(ie,qe,er,"\u2294","\\sqcup",!0),ye(ie,qe,er,"\u25EF","\\bigcirc"),ye(ie,qe,er,"\u2219","\\bullet"),ye(ie,qe,er,"\u2021","\\ddagger"),ye(ie,qe,er,"\u2240","\\wr",!0),ye(ie,qe,er,"\u2A3F","\\amalg"),ye(ie,qe,er,"&","\\And"),ye(ie,qe,Lt,"\u27F5","\\longleftarrow",!0),ye(ie,qe,Lt,"\u21D0","\\Leftarrow",!0),ye(ie,qe,Lt,"\u27F8","\\Longleftarrow",!0),ye(ie,qe,Lt,"\u27F6","\\longrightarrow",!0),ye(ie,qe,Lt,"\u21D2","\\Rightarrow",!0),ye(ie,qe,Lt,"\u27F9","\\Longrightarrow",!0),ye(ie,qe,Lt,"\u2194","\\leftrightarrow",!0),ye(ie,qe,Lt,"\u27F7","\\longleftrightarrow",!0),ye(ie,qe,Lt,"\u21D4","\\Leftrightarrow",!0),ye(ie,qe,Lt,"\u27FA","\\Longleftrightarrow",!0),ye(ie,qe,Lt,"\u21A6","\\mapsto",!0),ye(ie,qe,Lt,"\u27FC","\\longmapsto",!0),ye(ie,qe,Lt,"\u2197","\\nearrow",!0),ye(ie,qe,Lt,"\u21A9","\\hookleftarrow",!0),ye(ie,qe,Lt,"\u21AA","\\hookrightarrow",!0),ye(ie,qe,Lt,"\u2198","\\searrow",!0),ye(ie,qe,Lt,"\u21BC","\\leftharpoonup",!0),ye(ie,qe,Lt,"\u21C0","\\rightharpoonup",!0),ye(ie,qe,Lt,"\u2199","\\swarrow",!0),ye(ie,qe,Lt,"\u21BD","\\leftharpoondown",!0),ye(ie,qe,Lt,"\u21C1","\\rightharpoondown",!0),ye(ie,qe,Lt,"\u2196","\\nwarrow",!0),ye(ie,qe,Lt,"\u21CC","\\rightleftharpoons",!0),ye(ie,me,Lt,"\u226E","\\nless",!0),ye(ie,me,Lt,"\uE010","\\@nleqslant"),ye(ie,me,Lt,"\uE011","\\@nleqq"),ye(ie,me,Lt,"\u2A87","\\lneq",!0),ye(ie,me,Lt,"\u2268","\\lneqq",!0),ye(ie,me,Lt,"\uE00C","\\@lvertneqq"),ye(ie,me,Lt,"\u22E6","\\lnsim",!0),ye(ie,me,Lt,"\u2A89","\\lnapprox",!0),ye(ie,me,Lt,"\u2280","\\nprec",!0),ye(ie,me,Lt,"\u22E0","\\npreceq",!0),ye(ie,me,Lt,"\u22E8","\\precnsim",!0),ye(ie,me,Lt,"\u2AB9","\\precnapprox",!0),ye(ie,me,Lt,"\u2241","\\nsim",!0),ye(ie,me,Lt,"\uE006","\\@nshortmid"),ye(ie,me,Lt,"\u2224","\\nmid",!0),ye(ie,me,Lt,"\u22AC","\\nvdash",!0),ye(ie,me,Lt,"\u22AD","\\nvDash",!0),ye(ie,me,Lt,"\u22EA","\\ntriangleleft"),ye(ie,me,Lt,"\u22EC","\\ntrianglelefteq",!0),ye(ie,me,Lt,"\u228A","\\subsetneq",!0),ye(ie,me,Lt,"\uE01A","\\@varsubsetneq"),ye(ie,me,Lt,"\u2ACB","\\subsetneqq",!0),ye(ie,me,Lt,"\uE017","\\@varsubsetneqq"),ye(ie,me,Lt,"\u226F","\\ngtr",!0),ye(ie,me,Lt,"\uE00F","\\@ngeqslant"),ye(ie,me,Lt,"\uE00E","\\@ngeqq"),ye(ie,me,Lt,"\u2A88","\\gneq",!0),ye(ie,me,Lt,"\u2269","\\gneqq",!0),ye(ie,me,Lt,"\uE00D","\\@gvertneqq"),ye(ie,me,Lt,"\u22E7","\\gnsim",!0),ye(ie,me,Lt,"\u2A8A","\\gnapprox",!0),ye(ie,me,Lt,"\u2281","\\nsucc",!0),ye(ie,me,Lt,"\u22E1","\\nsucceq",!0),ye(ie,me,Lt,"\u22E9","\\succnsim",!0),ye(ie,me,Lt,"\u2ABA","\\succnapprox",!0),ye(ie,me,Lt,"\u2246","\\ncong",!0),ye(ie,me,Lt,"\uE007","\\@nshortparallel"),ye(ie,me,Lt,"\u2226","\\nparallel",!0),ye(ie,me,Lt,"\u22AF","\\nVDash",!0),ye(ie,me,Lt,"\u22EB","\\ntriangleright"),ye(ie,me,Lt,"\u22ED","\\ntrianglerighteq",!0),ye(ie,me,Lt,"\uE018","\\@nsupseteqq"),ye(ie,me,Lt,"\u228B","\\supsetneq",!0),ye(ie,me,Lt,"\uE01B","\\@varsupsetneq"),ye(ie,me,Lt,"\u2ACC","\\supsetneqq",!0),ye(ie,me,Lt,"\uE019","\\@varsupsetneqq"),ye(ie,me,Lt,"\u22AE","\\nVdash",!0),ye(ie,me,Lt,"\u2AB5","\\precneqq",!0),ye(ie,me,Lt,"\u2AB6","\\succneqq",!0),ye(ie,me,Lt,"\uE016","\\@nsubseteqq"),ye(ie,me,er,"\u22B4","\\unlhd"),ye(ie,me,er,"\u22B5","\\unrhd"),ye(ie,me,Lt,"\u219A","\\nleftarrow",!0),ye(ie,me,Lt,"\u219B","\\nrightarrow",!0),ye(ie,me,Lt,"\u21CD","\\nLeftarrow",!0),ye(ie,me,Lt,"\u21CF","\\nRightarrow",!0),ye(ie,me,Lt,"\u21AE","\\nleftrightarrow",!0),ye(ie,me,Lt,"\u21CE","\\nLeftrightarrow",!0),ye(ie,me,Lt,"\u25B3","\\vartriangle"),ye(ie,me,Qe,"\u210F","\\hslash"),ye(ie,me,Qe,"\u25BD","\\triangledown"),ye(ie,me,Qe,"\u25CA","\\lozenge"),ye(ie,me,Qe,"\u24C8","\\circledS"),ye(ie,me,Qe,"\xAE","\\circledR"),ye(bt,me,Qe,"\xAE","\\circledR"),ye(ie,me,Qe,"\u2221","\\measuredangle",!0),ye(ie,me,Qe,"\u2204","\\nexists"),ye(ie,me,Qe,"\u2127","\\mho"),ye(ie,me,Qe,"\u2132","\\Finv",!0),ye(ie,me,Qe,"\u2141","\\Game",!0),ye(ie,me,Qe,"\u2035","\\backprime"),ye(ie,me,Qe,"\u25B2","\\blacktriangle"),ye(ie,me,Qe,"\u25BC","\\blacktriangledown"),ye(ie,me,Qe,"\u25A0","\\blacksquare"),ye(ie,me,Qe,"\u29EB","\\blacklozenge"),ye(ie,me,Qe,"\u2605","\\bigstar"),ye(ie,me,Qe,"\u2222","\\sphericalangle",!0),ye(ie,me,Qe,"\u2201","\\complement",!0),ye(ie,me,Qe,"\xF0","\\eth",!0),ye(ie,me,Qe,"\u2571","\\diagup"),ye(ie,me,Qe,"\u2572","\\diagdown"),ye(ie,me,Qe,"\u25A1","\\square"),ye(ie,me,Qe,"\u25A1","\\Box"),ye(ie,me,Qe,"\u25CA","\\Diamond"),ye(ie,me,Qe,"\xA5","\\yen",!0),ye(bt,me,Qe,"\xA5","\\yen",!0),ye(ie,me,Qe,"\u2713","\\checkmark",!0),ye(bt,me,Qe,"\u2713","\\checkmark"),ye(ie,me,Qe,"\u2136","\\beth",!0),ye(ie,me,Qe,"\u2138","\\daleth",!0),ye(ie,me,Qe,"\u2137","\\gimel",!0),ye(ie,me,Qe,"\u03DD","\\digamma",!0),ye(ie,me,Qe,"\u03F0","\\varkappa"),ye(ie,me,ar,"\u250C","\\ulcorner",!0),ye(ie,me,ct,"\u2510","\\urcorner",!0),ye(ie,me,ar,"\u2514","\\llcorner",!0),ye(ie,me,ct,"\u2518","\\lrcorner",!0),ye(ie,me,Lt,"\u2266","\\leqq",!0),ye(ie,me,Lt,"\u2A7D","\\leqslant",!0),ye(ie,me,Lt,"\u2A95","\\eqslantless",!0),ye(ie,me,Lt,"\u2272","\\lesssim",!0),ye(ie,me,Lt,"\u2A85","\\lessapprox",!0),ye(ie,me,Lt,"\u224A","\\approxeq",!0),ye(ie,me,er,"\u22D6","\\lessdot"),ye(ie,me,Lt,"\u22D8","\\lll",!0),ye(ie,me,Lt,"\u2276","\\lessgtr",!0),ye(ie,me,Lt,"\u22DA","\\lesseqgtr",!0),ye(ie,me,Lt,"\u2A8B","\\lesseqqgtr",!0),ye(ie,me,Lt,"\u2251","\\doteqdot"),ye(ie,me,Lt,"\u2253","\\risingdotseq",!0),ye(ie,me,Lt,"\u2252","\\fallingdotseq",!0),ye(ie,me,Lt,"\u223D","\\backsim",!0),ye(ie,me,Lt,"\u22CD","\\backsimeq",!0),ye(ie,me,Lt,"\u2AC5","\\subseteqq",!0),ye(ie,me,Lt,"\u22D0","\\Subset",!0),ye(ie,me,Lt,"\u228F","\\sqsubset",!0),ye(ie,me,Lt,"\u227C","\\preccurlyeq",!0),ye(ie,me,Lt,"\u22DE","\\curlyeqprec",!0),ye(ie,me,Lt,"\u227E","\\precsim",!0),ye(ie,me,Lt,"\u2AB7","\\precapprox",!0),ye(ie,me,Lt,"\u22B2","\\vartriangleleft"),ye(ie,me,Lt,"\u22B4","\\trianglelefteq"),ye(ie,me,Lt,"\u22A8","\\vDash",!0),ye(ie,me,Lt,"\u22AA","\\Vvdash",!0),ye(ie,me,Lt,"\u2323","\\smallsmile"),ye(ie,me,Lt,"\u2322","\\smallfrown"),ye(ie,me,Lt,"\u224F","\\bumpeq",!0),ye(ie,me,Lt,"\u224E","\\Bumpeq",!0),ye(ie,me,Lt,"\u2267","\\geqq",!0),ye(ie,me,Lt,"\u2A7E","\\geqslant",!0),ye(ie,me,Lt,"\u2A96","\\eqslantgtr",!0),ye(ie,me,Lt,"\u2273","\\gtrsim",!0),ye(ie,me,Lt,"\u2A86","\\gtrapprox",!0),ye(ie,me,er,"\u22D7","\\gtrdot"),ye(ie,me,Lt,"\u22D9","\\ggg",!0),ye(ie,me,Lt,"\u2277","\\gtrless",!0),ye(ie,me,Lt,"\u22DB","\\gtreqless",!0),ye(ie,me,Lt,"\u2A8C","\\gtreqqless",!0),ye(ie,me,Lt,"\u2256","\\eqcirc",!0),ye(ie,me,Lt,"\u2257","\\circeq",!0),ye(ie,me,Lt,"\u225C","\\triangleq",!0),ye(ie,me,Lt,"\u223C","\\thicksim"),ye(ie,me,Lt,"\u2248","\\thickapprox"),ye(ie,me,Lt,"\u2AC6","\\supseteqq",!0),ye(ie,me,Lt,"\u22D1","\\Supset",!0),ye(ie,me,Lt,"\u2290","\\sqsupset",!0),ye(ie,me,Lt,"\u227D","\\succcurlyeq",!0),ye(ie,me,Lt,"\u22DF","\\curlyeqsucc",!0),ye(ie,me,Lt,"\u227F","\\succsim",!0),ye(ie,me,Lt,"\u2AB8","\\succapprox",!0),ye(ie,me,Lt,"\u22B3","\\vartriangleright"),ye(ie,me,Lt,"\u22B5","\\trianglerighteq"),ye(ie,me,Lt,"\u22A9","\\Vdash",!0),ye(ie,me,Lt,"\u2223","\\shortmid"),ye(ie,me,Lt,"\u2225","\\shortparallel"),ye(ie,me,Lt,"\u226C","\\between",!0),ye(ie,me,Lt,"\u22D4","\\pitchfork",!0),ye(ie,me,Lt,"\u221D","\\varpropto"),ye(ie,me,Lt,"\u25C0","\\blacktriangleleft"),ye(ie,me,Lt,"\u2234","\\therefore",!0),ye(ie,me,Lt,"\u220D","\\backepsilon"),ye(ie,me,Lt,"\u25B6","\\blacktriangleright"),ye(ie,me,Lt,"\u2235","\\because",!0),ye(ie,me,Lt,"\u22D8","\\llless"),ye(ie,me,Lt,"\u22D9","\\gggtr"),ye(ie,me,er,"\u22B2","\\lhd"),ye(ie,me,er,"\u22B3","\\rhd"),ye(ie,me,Lt,"\u2242","\\eqsim",!0),ye(ie,qe,Lt,"\u22C8","\\Join"),ye(ie,me,Lt,"\u2251","\\Doteq",!0),ye(ie,me,er,"\u2214","\\dotplus",!0),ye(ie,me,er,"\u2216","\\smallsetminus"),ye(ie,me,er,"\u22D2","\\Cap",!0),ye(ie,me,er,"\u22D3","\\Cup",!0),ye(ie,me,er,"\u2A5E","\\doublebarwedge",!0),ye(ie,me,er,"\u229F","\\boxminus",!0),ye(ie,me,er,"\u229E","\\boxplus",!0),ye(ie,me,er,"\u22C7","\\divideontimes",!0),ye(ie,me,er,"\u22C9","\\ltimes",!0),ye(ie,me,er,"\u22CA","\\rtimes",!0),ye(ie,me,er,"\u22CB","\\leftthreetimes",!0),ye(ie,me,er,"\u22CC","\\rightthreetimes",!0),ye(ie,me,er,"\u22CF","\\curlywedge",!0),ye(ie,me,er,"\u22CE","\\curlyvee",!0),ye(ie,me,er,"\u229D","\\circleddash",!0),ye(ie,me,er,"\u229B","\\circledast",!0),ye(ie,me,er,"\u22C5","\\centerdot"),ye(ie,me,er,"\u22BA","\\intercal",!0),ye(ie,me,er,"\u22D2","\\doublecap"),ye(ie,me,er,"\u22D3","\\doublecup"),ye(ie,me,er,"\u22A0","\\boxtimes",!0),ye(ie,me,Lt,"\u21E2","\\dashrightarrow",!0),ye(ie,me,Lt,"\u21E0","\\dashleftarrow",!0),ye(ie,me,Lt,"\u21C7","\\leftleftarrows",!0),ye(ie,me,Lt,"\u21C6","\\leftrightarrows",!0),ye(ie,me,Lt,"\u21DA","\\Lleftarrow",!0),ye(ie,me,Lt,"\u219E","\\twoheadleftarrow",!0),ye(ie,me,Lt,"\u21A2","\\leftarrowtail",!0),ye(ie,me,Lt,"\u21AB","\\looparrowleft",!0),ye(ie,me,Lt,"\u21CB","\\leftrightharpoons",!0),ye(ie,me,Lt,"\u21B6","\\curvearrowleft",!0),ye(ie,me,Lt,"\u21BA","\\circlearrowleft",!0),ye(ie,me,Lt,"\u21B0","\\Lsh",!0),ye(ie,me,Lt,"\u21C8","\\upuparrows",!0),ye(ie,me,Lt,"\u21BF","\\upharpoonleft",!0),ye(ie,me,Lt,"\u21C3","\\downharpoonleft",!0),ye(ie,me,Lt,"\u22B8","\\multimap",!0),ye(ie,me,Lt,"\u21AD","\\leftrightsquigarrow",!0),ye(ie,me,Lt,"\u21C9","\\rightrightarrows",!0),ye(ie,me,Lt,"\u21C4","\\rightleftarrows",!0),ye(ie,me,Lt,"\u21A0","\\twoheadrightarrow",!0),ye(ie,me,Lt,"\u21A3","\\rightarrowtail",!0),ye(ie,me,Lt,"\u21AC","\\looparrowright",!0),ye(ie,me,Lt,"\u21B7","\\curvearrowright",!0),ye(ie,me,Lt,"\u21BB","\\circlearrowright",!0),ye(ie,me,Lt,"\u21B1","\\Rsh",!0),ye(ie,me,Lt,"\u21CA","\\downdownarrows",!0),ye(ie,me,Lt,"\u21BE","\\upharpoonright",!0),ye(ie,me,Lt,"\u21C2","\\downharpoonright",!0),ye(ie,me,Lt,"\u21DD","\\rightsquigarrow",!0),ye(ie,me,Lt,"\u21DD","\\leadsto"),ye(ie,me,Lt,"\u21DB","\\Rrightarrow",!0),ye(ie,me,Lt,"\u21BE","\\restriction"),ye(ie,qe,Qe,"\u2018","`"),ye(ie,qe,Qe,"$","\\$"),ye(bt,qe,Qe,"$","\\$"),ye(bt,qe,Qe,"$","\\textdollar"),ye(ie,qe,Qe,"%","\\%"),ye(bt,qe,Qe,"%","\\%"),ye(ie,qe,Qe,"_","\\_"),ye(bt,qe,Qe,"_","\\_"),ye(bt,qe,Qe,"_","\\textunderscore"),ye(ie,qe,Qe,"\u2220","\\angle",!0),ye(ie,qe,Qe,"\u221E","\\infty",!0),ye(ie,qe,Qe,"\u2032","\\prime"),ye(ie,qe,Qe,"\u25B3","\\triangle"),ye(ie,qe,Qe,"\u0393","\\Gamma",!0),ye(ie,qe,Qe,"\u0394","\\Delta",!0),ye(ie,qe,Qe,"\u0398","\\Theta",!0),ye(ie,qe,Qe,"\u039B","\\Lambda",!0),ye(ie,qe,Qe,"\u039E","\\Xi",!0),ye(ie,qe,Qe,"\u03A0","\\Pi",!0),ye(ie,qe,Qe,"\u03A3","\\Sigma",!0),ye(ie,qe,Qe,"\u03A5","\\Upsilon",!0),ye(ie,qe,Qe,"\u03A6","\\Phi",!0),ye(ie,qe,Qe,"\u03A8","\\Psi",!0),ye(ie,qe,Qe,"\u03A9","\\Omega",!0),ye(ie,qe,Qe,"A","\u0391"),ye(ie,qe,Qe,"B","\u0392"),ye(ie,qe,Qe,"E","\u0395"),ye(ie,qe,Qe,"Z","\u0396"),ye(ie,qe,Qe,"H","\u0397"),ye(ie,qe,Qe,"I","\u0399"),ye(ie,qe,Qe,"K","\u039A"),ye(ie,qe,Qe,"M","\u039C"),ye(ie,qe,Qe,"N","\u039D"),ye(ie,qe,Qe,"O","\u039F"),ye(ie,qe,Qe,"P","\u03A1"),ye(ie,qe,Qe,"T","\u03A4"),ye(ie,qe,Qe,"X","\u03A7"),ye(ie,qe,Qe,"\xAC","\\neg",!0),ye(ie,qe,Qe,"\xAC","\\lnot"),ye(ie,qe,Qe,"\u22A4","\\top"),ye(ie,qe,Qe,"\u22A5","\\bot"),ye(ie,qe,Qe,"\u2205","\\emptyset"),ye(ie,me,Qe,"\u2205","\\varnothing"),ye(ie,qe,sr,"\u03B1","\\alpha",!0),ye(ie,qe,sr,"\u03B2","\\beta",!0),ye(ie,qe,sr,"\u03B3","\\gamma",!0),ye(ie,qe,sr,"\u03B4","\\delta",!0),ye(ie,qe,sr,"\u03F5","\\epsilon",!0),ye(ie,qe,sr,"\u03B6","\\zeta",!0),ye(ie,qe,sr,"\u03B7","\\eta",!0),ye(ie,qe,sr,"\u03B8","\\theta",!0),ye(ie,qe,sr,"\u03B9","\\iota",!0),ye(ie,qe,sr,"\u03BA","\\kappa",!0),ye(ie,qe,sr,"\u03BB","\\lambda",!0),ye(ie,qe,sr,"\u03BC","\\mu",!0),ye(ie,qe,sr,"\u03BD","\\nu",!0),ye(ie,qe,sr,"\u03BE","\\xi",!0),ye(ie,qe,sr,"\u03BF","\\omicron",!0),ye(ie,qe,sr,"\u03C0","\\pi",!0),ye(ie,qe,sr,"\u03C1","\\rho",!0),ye(ie,qe,sr,"\u03C3","\\sigma",!0),ye(ie,qe,sr,"\u03C4","\\tau",!0),ye(ie,qe,sr,"\u03C5","\\upsilon",!0),ye(ie,qe,sr,"\u03D5","\\phi",!0),ye(ie,qe,sr,"\u03C7","\\chi",!0),ye(ie,qe,sr,"\u03C8","\\psi",!0),ye(ie,qe,sr,"\u03C9","\\omega",!0),ye(ie,qe,sr,"\u03B5","\\varepsilon",!0),ye(ie,qe,sr,"\u03D1","\\vartheta",!0),ye(ie,qe,sr,"\u03D6","\\varpi",!0),ye(ie,qe,sr,"\u03F1","\\varrho",!0),ye(ie,qe,sr,"\u03C2","\\varsigma",!0),ye(ie,qe,sr,"\u03C6","\\varphi",!0),ye(ie,qe,er,"\u2217","*"),ye(ie,qe,er,"+","+"),ye(ie,qe,er,"\u2212","-"),ye(ie,qe,er,"\u22C5","\\cdot",!0),ye(ie,qe,er,"\u2218","\\circ"),ye(ie,qe,er,"\xF7","\\div",!0),ye(ie,qe,er,"\xB1","\\pm",!0),ye(ie,qe,er,"\xD7","\\times",!0),ye(ie,qe,er,"\u2229","\\cap",!0),ye(ie,qe,er,"\u222A","\\cup",!0),ye(ie,qe,er,"\u2216","\\setminus"),ye(ie,qe,er,"\u2227","\\land"),ye(ie,qe,er,"\u2228","\\lor"),ye(ie,qe,er,"\u2227","\\wedge",!0),ye(ie,qe,er,"\u2228","\\vee",!0),ye(ie,qe,Qe,"\u221A","\\surd"),ye(ie,qe,ar,"(","("),ye(ie,qe,ar,"[","["),ye(ie,qe,ar,"\u27E8","\\langle",!0),ye(ie,qe,ar,"\u2223","\\lvert"),ye(ie,qe,ar,"\u2225","\\lVert"),ye(ie,qe,ct,")",")"),ye(ie,qe,ct,"]","]"),ye(ie,qe,ct,"?","?"),ye(ie,qe,ct,"!","!"),ye(ie,qe,ct,"\u27E9","\\rangle",!0),ye(ie,qe,ct,"\u2223","\\rvert"),ye(ie,qe,ct,"\u2225","\\rVert"),ye(ie,qe,Lt,"=","="),ye(ie,qe,Lt,"<","<"),ye(ie,qe,Lt,">",">"),ye(ie,qe,Lt,":",":"),ye(ie,qe,Lt,"\u2248","\\approx",!0),ye(ie,qe,Lt,"\u2245","\\cong",!0),ye(ie,qe,Lt,"\u2265","\\ge"),ye(ie,qe,Lt,"\u2265","\\geq",!0),ye(ie,qe,Lt,"\u2190","\\gets"),ye(ie,qe,Lt,">","\\gt"),ye(ie,qe,Lt,"\u2208","\\in",!0),ye(ie,qe,Lt,"\uE020","\\@not"),ye(ie,qe,Lt,"\u2282","\\subset",!0),ye(ie,qe,Lt,"\u2283","\\supset",!0),ye(ie,qe,Lt,"\u2286","\\subseteq",!0),ye(ie,qe,Lt,"\u2287","\\supseteq",!0),ye(ie,me,Lt,"\u2288","\\nsubseteq",!0),ye(ie,me,Lt,"\u2289","\\nsupseteq",!0),ye(ie,qe,Lt,"\u22A8","\\models"),ye(ie,qe,Lt,"\u2190","\\leftarrow",!0),ye(ie,qe,Lt,"\u2264","\\le"),ye(ie,qe,Lt,"\u2264","\\leq",!0),ye(ie,qe,Lt,"<","\\lt"),ye(ie,qe,Lt,"\u2192","\\rightarrow",!0),ye(ie,qe,Lt,"\u2192","\\to"),ye(ie,me,Lt,"\u2271","\\ngeq",!0),ye(ie,me,Lt,"\u2270","\\nleq",!0),ye(ie,qe,st,"\xA0","\\ "),ye(ie,qe,st,"\xA0","~"),ye(ie,qe,st,"\xA0","\\space"),ye(ie,qe,st,"\xA0","\\nobreakspace"),ye(bt,qe,st,"\xA0","\\ "),ye(bt,qe,st,"\xA0","~"),ye(bt,qe,st,"\xA0","\\space"),ye(bt,qe,st,"\xA0","\\nobreakspace"),ye(ie,qe,st,null,"\\nobreak"),ye(ie,qe,st,null,"\\allowbreak"),ye(ie,qe,nr,",",","),ye(ie,qe,nr,";",";"),ye(ie,me,er,"\u22BC","\\barwedge",!0),ye(ie,me,er,"\u22BB","\\veebar",!0),ye(ie,qe,er,"\u2299","\\odot",!0),ye(ie,qe,er,"\u2295","\\oplus",!0),ye(ie,qe,er,"\u2297","\\otimes",!0),ye(ie,qe,Qe,"\u2202","\\partial",!0),ye(ie,qe,er,"\u2298","\\oslash",!0),ye(ie,me,er,"\u229A","\\circledcirc",!0),ye(ie,me,er,"\u22A1","\\boxdot",!0),ye(ie,qe,er,"\u25B3","\\bigtriangleup"),ye(ie,qe,er,"\u25BD","\\bigtriangledown"),ye(ie,qe,er,"\u2020","\\dagger"),ye(ie,qe,er,"\u22C4","\\diamond"),ye(ie,qe,er,"\u22C6","\\star"),ye(ie,qe,er,"\u25C3","\\triangleleft"),ye(ie,qe,er,"\u25B9","\\triangleright"),ye(ie,qe,ar,"{","\\{"),ye(bt,qe,Qe,"{","\\{"),ye(bt,qe,Qe,"{","\\textbraceleft"),ye(ie,qe,ct,"}","\\}"),ye(bt,qe,Qe,"}","\\}"),ye(bt,qe,Qe,"}","\\textbraceright"),ye(ie,qe,ar,"{","\\lbrace"),ye(ie,qe,ct,"}","\\rbrace"),ye(ie,qe,ar,"[","\\lbrack"),ye(bt,qe,Qe,"[","\\lbrack"),ye(ie,qe,ct,"]","\\rbrack"),ye(bt,qe,Qe,"]","\\rbrack"),ye(ie,qe,ar,"(","\\lparen"),ye(ie,qe,ct,")","\\rparen"),ye(bt,qe,Qe,"<","\\textless"),ye(bt,qe,Qe,">","\\textgreater"),ye(ie,qe,ar,"\u230A","\\lfloor",!0),ye(ie,qe,ct,"\u230B","\\rfloor",!0),ye(ie,qe,ar,"\u2308","\\lceil",!0),ye(ie,qe,ct,"\u2309","\\rceil",!0),ye(ie,qe,Qe,"\\","\\backslash"),ye(ie,qe,Qe,"\u2223","|"),ye(ie,qe,Qe,"\u2223","\\vert"),ye(bt,qe,Qe,"|","\\textbar"),ye(ie,qe,Qe,"\u2225","\\|"),ye(ie,qe,Qe,"\u2225","\\Vert"),ye(bt,qe,Qe,"\u2225","\\textbardbl"),ye(bt,qe,Qe,"~","\\textasciitilde"),ye(bt,qe,Qe,"\\","\\textbackslash"),ye(bt,qe,Qe,"^","\\textasciicircum"),ye(ie,qe,Lt,"\u2191","\\uparrow",!0),ye(ie,qe,Lt,"\u21D1","\\Uparrow",!0),ye(ie,qe,Lt,"\u2193","\\downarrow",!0),ye(ie,qe,Lt,"\u21D3","\\Downarrow",!0),ye(ie,qe,Lt,"\u2195","\\updownarrow",!0),ye(ie,qe,Lt,"\u21D5","\\Updownarrow",!0),ye(ie,qe,Kr,"\u2210","\\coprod"),ye(ie,qe,Kr,"\u22C1","\\bigvee"),ye(ie,qe,Kr,"\u22C0","\\bigwedge"),ye(ie,qe,Kr,"\u2A04","\\biguplus"),ye(ie,qe,Kr,"\u22C2","\\bigcap"),ye(ie,qe,Kr,"\u22C3","\\bigcup"),ye(ie,qe,Kr,"\u222B","\\int"),ye(ie,qe,Kr,"\u222B","\\intop"),ye(ie,qe,Kr,"\u222C","\\iint"),ye(ie,qe,Kr,"\u222D","\\iiint"),ye(ie,qe,Kr,"\u220F","\\prod"),ye(ie,qe,Kr,"\u2211","\\sum"),ye(ie,qe,Kr,"\u2A02","\\bigotimes"),ye(ie,qe,Kr,"\u2A01","\\bigoplus"),ye(ie,qe,Kr,"\u2A00","\\bigodot"),ye(ie,qe,Kr,"\u222E","\\oint"),ye(ie,qe,Kr,"\u222F","\\oiint"),ye(ie,qe,Kr,"\u2230","\\oiiint"),ye(ie,qe,Kr,"\u2A06","\\bigsqcup"),ye(ie,qe,Kr,"\u222B","\\smallint"),ye(bt,qe,zt,"\u2026","\\textellipsis"),ye(ie,qe,zt,"\u2026","\\mathellipsis"),ye(bt,qe,zt,"\u2026","\\ldots",!0),ye(ie,qe,zt,"\u2026","\\ldots",!0),ye(ie,qe,zt,"\u22EF","\\@cdots",!0),ye(ie,qe,zt,"\u22F1","\\ddots",!0),ye(ie,qe,Qe,"\u22EE","\\varvdots"),ye(ie,qe,Rt,"\u02CA","\\acute"),ye(ie,qe,Rt,"\u02CB","\\grave"),ye(ie,qe,Rt,"\xA8","\\ddot"),ye(ie,qe,Rt,"~","\\tilde"),ye(ie,qe,Rt,"\u02C9","\\bar"),ye(ie,qe,Rt,"\u02D8","\\breve"),ye(ie,qe,Rt,"\u02C7","\\check"),ye(ie,qe,Rt,"^","\\hat"),ye(ie,qe,Rt,"\u20D7","\\vec"),ye(ie,qe,Rt,"\u02D9","\\dot"),ye(ie,qe,Rt,"\u02DA","\\mathring"),ye(ie,qe,sr,"\u0131","\\imath",!0),ye(ie,qe,sr,"\u0237","\\jmath",!0),ye(bt,qe,Qe,"\u0131","\\i",!0),ye(bt,qe,Qe,"\u0237","\\j",!0),ye(bt,qe,Qe,"\xDF","\\ss",!0),ye(bt,qe,Qe,"\xE6","\\ae",!0),ye(bt,qe,Qe,"\xE6","\\ae",!0),ye(bt,qe,Qe,"\u0153","\\oe",!0),ye(bt,qe,Qe,"\xF8","\\o",!0),ye(bt,qe,Qe,"\xC6","\\AE",!0),ye(bt,qe,Qe,"\u0152","\\OE",!0),ye(bt,qe,Qe,"\xD8","\\O",!0),ye(bt,qe,Rt,"\u02CA","\\'"),ye(bt,qe,Rt,"\u02CB","\\`"),ye(bt,qe,Rt,"\u02C6","\\^"),ye(bt,qe,Rt,"\u02DC","\\~"),ye(bt,qe,Rt,"\u02C9","\\="),ye(bt,qe,Rt,"\u02D8","\\u"),ye(bt,qe,Rt,"\u02D9","\\."),ye(bt,qe,Rt,"\u02DA","\\r"),ye(bt,qe,Rt,"\u02C7","\\v"),ye(bt,qe,Rt,"\xA8",'\\"'),ye(bt,qe,Rt,"\u02DD","\\H"),ye(bt,qe,Rt,"\u25EF","\\textcircled");var qt={"--":!0,"---":!0,"``":!0,"''":!0};ye(bt,qe,Qe,"\u2013","--"),ye(bt,qe,Qe,"\u2013","\\textendash"),ye(bt,qe,Qe,"\u2014","---"),ye(bt,qe,Qe,"\u2014","\\textemdash"),ye(bt,qe,Qe,"\u2018","`"),ye(bt,qe,Qe,"\u2018","\\textquoteleft"),ye(bt,qe,Qe,"\u2019","'"),ye(bt,qe,Qe,"\u2019","\\textquoteright"),ye(bt,qe,Qe,"\u201C","``"),ye(bt,qe,Qe,"\u201C","\\textquotedblleft"),ye(bt,qe,Qe,"\u201D","''"),ye(bt,qe,Qe,"\u201D","\\textquotedblright"),ye(ie,qe,Qe,"\xB0","\\degree",!0),ye(bt,qe,Qe,"\xB0","\\degree"),ye(bt,qe,Qe,"\xB0","\\textdegree",!0),ye(ie,qe,sr,"\xA3","\\pounds"),ye(ie,qe,sr,"\xA3","\\mathsterling",!0),ye(bt,qe,sr,"\xA3","\\pounds"),ye(bt,qe,sr,"\xA3","\\textsterling",!0),ye(ie,me,Qe,"\u2720","\\maltese"),ye(bt,me,Qe,"\u2720","\\maltese"),ye(bt,qe,st,"\xA0","\\ "),ye(bt,qe,st,"\xA0"," "),ye(bt,qe,st,"\xA0","~");for(var Sr='0123456789/@."',Ar=0;Ar<Sr.length;Ar++){var hr=Sr.charAt(Ar);ye(ie,qe,Qe,hr,hr)}for(var vn='0123456789!@*()-=+[]<>|";:?/.,',Zr=0;Zr<vn.length;Zr++){var Ln=vn.charAt(Zr);ye(bt,qe,Qe,Ln,Ln)}for(var $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",tt=0;tt<$e.length;tt++){var Ee=$e.charAt(tt);ye(ie,qe,sr,Ee,Ee),ye(bt,qe,Qe,Ee,Ee)}ye(ie,me,Qe,"C","\u2102"),ye(bt,me,Qe,"C","\u2102"),ye(ie,me,Qe,"H","\u210D"),ye(bt,me,Qe,"H","\u210D"),ye(ie,me,Qe,"N","\u2115"),ye(bt,me,Qe,"N","\u2115"),ye(ie,me,Qe,"P","\u2119"),ye(bt,me,Qe,"P","\u2119"),ye(ie,me,Qe,"Q","\u211A"),ye(bt,me,Qe,"Q","\u211A"),ye(ie,me,Qe,"R","\u211D"),ye(bt,me,Qe,"R","\u211D"),ye(ie,me,Qe,"Z","\u2124"),ye(bt,me,Qe,"Z","\u2124"),ye(ie,qe,sr,"h","\u210E"),ye(bt,qe,sr,"h","\u210E");for(var Re="",je=0;je<$e.length;je++){var nt=$e.charAt(je);Re=String.fromCharCode(55349,56320+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56372+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56424+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56580+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56736+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56788+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56840+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56944+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),je<26&&(Re=String.fromCharCode(55349,56632+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re),Re=String.fromCharCode(55349,56476+je),ye(ie,qe,sr,nt,Re),ye(bt,qe,Qe,nt,Re))}Re=String.fromCharCode(55349,56668),ye(ie,qe,sr,"k",Re),ye(bt,qe,Qe,"k",Re);for(var Vt=0;Vt<10;Vt++){var Bt=Vt.toString();Re=String.fromCharCode(55349,57294+Vt),ye(ie,qe,sr,Bt,Re),ye(bt,qe,Qe,Bt,Re),Re=String.fromCharCode(55349,57314+Vt),ye(ie,qe,sr,Bt,Re),ye(bt,qe,Qe,Bt,Re),Re=String.fromCharCode(55349,57324+Vt),ye(ie,qe,sr,Bt,Re),ye(bt,qe,Qe,Bt,Re),Re=String.fromCharCode(55349,57334+Vt),ye(ie,qe,sr,Bt,Re),ye(bt,qe,Qe,Bt,Re)}for(var Xt="\xC7\xD0\xDE\xE7\xFE",Rr=0;Rr<Xt.length;Rr++){var Br=Xt.charAt(Rr);ye(ie,qe,sr,Br,Br),ye(bt,qe,Qe,Br,Br)}ye(bt,qe,Qe,"\xF0","\xF0"),ye(bt,qe,Qe,"\u2013","\u2013"),ye(bt,qe,Qe,"\u2014","\u2014"),ye(bt,qe,Qe,"\u2018","\u2018"),ye(bt,qe,Qe,"\u2019","\u2019"),ye(bt,qe,Qe,"\u201C","\u201C"),ye(bt,qe,Qe,"\u201D","\u201D");var cn=[["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"]],Ut=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],pt=function(ne,Ae){var we=ne.charCodeAt(0),Be=ne.charCodeAt(1),dt=(we-55296)*1024+(Be-56320)+65536,Ot=Ae==="math"?0:1;if(119808<=dt&&dt<120484){var br=Math.floor((dt-119808)/26);return[cn[br][2],cn[br][Ot]]}else if(120782<=dt&&dt<=120831){var Lr=Math.floor((dt-120782)/10);return[Ut[Lr][2],Ut[Lr][Ot]]}else{if(dt===120485||dt===120486)return[cn[0][2],cn[0][Ot]];if(120486<dt&&dt<120782)return["",""];throw new c("Unsupported character: "+ne)}},ut=[[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]],Jt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zt=function(ne,Ae){return Ae.size<2?ne:ut[ne-1][Ae.size-1]},At=function(){function mt(Ae){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=Ae.style,this.color=Ae.color,this.size=Ae.size||mt.BASESIZE,this.textSize=Ae.textSize||this.size,this.phantom=!!Ae.phantom,this.font=Ae.font||"",this.fontFamily=Ae.fontFamily||"",this.fontWeight=Ae.fontWeight||"",this.fontShape=Ae.fontShape||"",this.sizeMultiplier=Jt[this.size-1],this.maxSize=Ae.maxSize,this.minRuleThickness=Ae.minRuleThickness,this._fontMetrics=void 0}var ne=mt.prototype;return ne.extend=function(we){var Be={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 dt in we)we.hasOwnProperty(dt)&&(Be[dt]=we[dt]);return new mt(Be)},ne.havingStyle=function(we){return this.style===we?this:this.extend({style:we,size:Zt(this.textSize,we)})},ne.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ne.havingSize=function(we){return this.size===we&&this.textSize===we?this:this.extend({style:this.style.text(),size:we,textSize:we,sizeMultiplier:Jt[we-1]})},ne.havingBaseStyle=function(we){we=we||this.style.text();var Be=Zt(mt.BASESIZE,we);return this.size===Be&&this.textSize===mt.BASESIZE&&this.style===we?this:this.extend({style:we,size:Be})},ne.havingBaseSizing=function(){var we;switch(this.style.id){case 4:case 5:we=3;break;case 6:case 7:we=1;break;default:we=6}return this.extend({style:this.style.text(),size:we})},ne.withColor=function(we){return this.extend({color:we})},ne.withPhantom=function(){return this.extend({phantom:!0})},ne.withFont=function(we){return this.extend({font:we})},ne.withTextFontFamily=function(we){return this.extend({fontFamily:we,font:""})},ne.withTextFontWeight=function(we){return this.extend({fontWeight:we,font:""})},ne.withTextFontShape=function(we){return this.extend({fontShape:we,font:""})},ne.sizingClasses=function(we){return we.size!==this.size?["sizing","reset-size"+we.size,"size"+this.size]:[]},ne.baseSizingClasses=function(){return this.size!==mt.BASESIZE?["sizing","reset-size"+this.size,"size"+mt.BASESIZE]:[]},ne.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=xt(this.size)),this._fontMetrics},ne.getColor=function(){return this.phantom?"transparent":this.color},mt}();At.BASESIZE=6;var Pt=At,vt={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},Ft={ex:!0,em:!0,mu:!0},gr=function(ne){return typeof ne!="string"&&(ne=ne.unit),ne in vt||ne in Ft||ne==="ex"},or=function(ne,Ae){var we;if(ne.unit in vt)we=vt[ne.unit]/Ae.fontMetrics().ptPerEm/Ae.sizeMultiplier;else if(ne.unit==="mu")we=Ae.fontMetrics().cssEmPerMu;else{var Be;if(Ae.style.isTight()?Be=Ae.havingStyle(Ae.style.text()):Be=Ae,ne.unit==="ex")we=Be.fontMetrics().xHeight;else if(ne.unit==="em")we=Be.fontMetrics().quad;else throw new c("Invalid unit: '"+ne.unit+"'");Be!==Ae&&(we*=Be.sizeMultiplier/Ae.sizeMultiplier)}return Math.min(ne.number*we,Ae.maxSize)},ur=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Yr=function(ne,Ae,we){return Je[we][ne]&&Je[we][ne].replace&&(ne=Je[we][ne].replace),{value:ne,metrics:Ge(ne,Ae,we)}},Jr=function(ne,Ae,we,Be,dt){var Ot=Yr(ne,Ae,we),br=Ot.metrics;ne=Ot.value;var Lr;if(br){var $r=br.italic;(we==="text"||Be&&Be.font==="mathit")&&($r=0),Lr=new _e(ne,br.height,br.depth,$r,br.skew,br.width,dt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ne+"' in style '"+Ae+"' and mode '"+we+"'")),Lr=new _e(ne,0,0,0,0,0,dt);if(Be){Lr.maxFontSize=Be.sizeMultiplier,Be.style.isTight()&&Lr.classes.push("mtight");var xn=Be.getColor();xn&&(Lr.style.color=xn)}return Lr},Tn=function(ne,Ae,we,Be){return Be===void 0&&(Be=[]),we.font==="boldsymbol"&&Yr(ne,"Main-Bold",Ae).metrics?Jr(ne,"Main-Bold",Ae,we,Be.concat(["mathbf"])):ne==="\\"||Je[Ae][ne].font==="main"?Jr(ne,"Main-Regular",Ae,we,Be):Jr(ne,"AMS-Regular",Ae,we,Be.concat(["amsrm"]))},Dn=function(ne,Ae,we,Be){return/[0-9]/.test(ne.charAt(0))||p.contains(ur,ne)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},zn=function(ne,Ae,we,Be){return p.contains(ur,ne)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ne.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},qn=function(ne,Ae,we,Be){return Yr(ne,"Math-BoldItalic",Ae).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ai=function(ne,Ae,we){var Be=ne.mode,dt=ne.text,Ot=["mord"],br=Be==="math"||Be==="text"&&Ae.font,Lr=br?Ae.font:Ae.fontFamily;if(dt.charCodeAt(0)===55349){var $r=pt(dt,Be),xn=$r[0],Wn=$r[1];return Jr(dt,xn,Be,Ae,Ot.concat(Wn))}else if(Lr){var si,Si;if(Lr==="boldsymbol"||Lr==="mathnormal"){var Vi=Lr==="boldsymbol"?qn(dt,Be,Ae,Ot):zn(dt,Be,Ae,Ot);si=Vi.fontName,Si=[Vi.fontClass]}else p.contains(ur,dt)?(si="Main-Italic",Si=["mathit"]):br?(si=_r[Lr].fontName,Si=[Lr]):(si=pr(Lr,Ae.fontWeight,Ae.fontShape),Si=[Lr,Ae.fontWeight,Ae.fontShape]);if(Yr(dt,si,Be).metrics)return Jr(dt,si,Be,Ae,Ot.concat(Si));if(qt.hasOwnProperty(dt)&&si.substr(0,10)==="Typewriter"){for(var oa=[],xa=0;xa<dt.length;xa++)oa.push(Jr(dt[xa],si,Be,Ae,Ot.concat(Si)));return Ze(oa)}}if(we==="mathord"){var eo=Dn(dt,Be,Ae,Ot);return Jr(dt,eo.fontName,Be,Ae,Ot.concat([eo.fontClass]))}else if(we==="textord"){var to=Je[Be][dt]&&Je[Be][dt].font;if(to==="ams"){var io=pr("amsrm",Ae.fontWeight,Ae.fontShape);return Jr(dt,io,Be,Ae,Ot.concat("amsrm",Ae.fontWeight,Ae.fontShape))}else if(to==="main"||!to){var Oo=pr("textrm",Ae.fontWeight,Ae.fontShape);return Jr(dt,Oo,Be,Ae,Ot.concat(Ae.fontWeight,Ae.fontShape))}else{var yo=pr(to,Ae.fontWeight,Ae.fontShape);return Jr(dt,yo,Be,Ae,Ot.concat(yo,Ae.fontWeight,Ae.fontShape))}}else throw new Error("unexpected type: "+we+" in makeOrd")},Mi=function(ne,Ae){if(ce(ne.classes)!==ce(Ae.classes)||ne.skew!==Ae.skew||ne.maxFontSize!==Ae.maxFontSize)return!1;for(var we in ne.style)if(ne.style.hasOwnProperty(we)&&ne.style[we]!==Ae.style[we])return!1;for(var Be in Ae.style)if(Ae.style.hasOwnProperty(Be)&&ne.style[Be]!==Ae.style[Be])return!1;return!0},Ye=function(ne){for(var Ae=0;Ae<ne.length-1;Ae++){var we=ne[Ae],Be=ne[Ae+1];we instanceof _e&&Be instanceof _e&&Mi(we,Be)&&(we.text+=Be.text,we.height=Math.max(we.height,Be.height),we.depth=Math.max(we.depth,Be.depth),we.italic=Be.italic,ne.splice(Ae+1,1),Ae--)}return ne},Ce=function(ne){for(var Ae=0,we=0,Be=0,dt=0;dt<ne.children.length;dt++){var Ot=ne.children[dt];Ot.height>Ae&&(Ae=Ot.height),Ot.depth>we&&(we=Ot.depth),Ot.maxFontSize>Be&&(Be=Ot.maxFontSize)}ne.height=Ae,ne.depth=we,ne.maxFontSize=Be},ke=function(ne,Ae,we,Be){var dt=new G(ne,Ae,we,Be);return Ce(dt),dt},Fe=function(ne,Ae,we,Be){return new G(ne,Ae,we,Be)},Ve=function(ne,Ae,we){var Be=ke([ne],[],Ae);return Be.height=Math.max(we||Ae.fontMetrics().defaultRuleThickness,Ae.minRuleThickness),Be.style.borderBottomWidth=Be.height+"em",Be.maxFontSize=1,Be},We=function(ne,Ae,we,Be){var dt=new Z(ne,Ae,we,Be);return Ce(dt),dt},Ze=function(ne){var Ae=new Q(ne);return Ce(Ae),Ae},yt=function(ne,Ae){return ne instanceof Q?ke([],[ne],Ae):ne},lt=function(ne){if(ne.positionType==="individualShift"){for(var Ae=ne.children,we=[Ae[0]],Be=-Ae[0].shift-Ae[0].elem.depth,dt=Be,Ot=1;Ot<Ae.length;Ot++){var br=-Ae[Ot].shift-dt-Ae[Ot].elem.depth,Lr=br-(Ae[Ot-1].elem.height+Ae[Ot-1].elem.depth);dt=dt+br,we.push({type:"kern",size:Lr}),we.push(Ae[Ot])}return{children:we,depth:Be}}var $r;if(ne.positionType==="top"){for(var xn=ne.positionData,Wn=0;Wn<ne.children.length;Wn++){var si=ne.children[Wn];xn-=si.type==="kern"?si.size:si.elem.height+si.elem.depth}$r=xn}else if(ne.positionType==="bottom")$r=-ne.positionData;else{var Si=ne.children[0];if(Si.type!=="elem")throw new Error('First child must have type "elem".');if(ne.positionType==="shift")$r=-Si.elem.depth-ne.positionData;else if(ne.positionType==="firstBaseline")$r=-Si.elem.depth;else throw new Error("Invalid positionType "+ne.positionType+".")}return{children:ne.children,depth:$r}},kt=function(ne,Ae){for(var we=lt(ne),Be=we.children,dt=we.depth,Ot=0,br=0;br<Be.length;br++){var Lr=Be[br];if(Lr.type==="elem"){var $r=Lr.elem;Ot=Math.max(Ot,$r.maxFontSize,$r.height)}}Ot+=2;var xn=ke(["pstrut"],[]);xn.style.height=Ot+"em";for(var Wn=[],si=dt,Si=dt,Vi=dt,oa=0;oa<Be.length;oa++){var xa=Be[oa];if(xa.type==="kern")Vi+=xa.size;else{var eo=xa.elem,to=xa.wrapperClasses||[],io=xa.wrapperStyle||{},Oo=ke(to,[xn,eo],void 0,io);Oo.style.top=-Ot-Vi-eo.depth+"em",xa.marginLeft&&(Oo.style.marginLeft=xa.marginLeft),xa.marginRight&&(Oo.style.marginRight=xa.marginRight),Wn.push(Oo),Vi+=eo.height+eo.depth}si=Math.min(si,Vi),Si=Math.max(Si,Vi)}var yo=ke(["vlist"],Wn);yo.style.height=Si+"em";var Mo;if(si<0){var za=ke([],[]),So=ke(["vlist"],[za]);So.style.height=-si+"em";var os=ke(["vlist-s"],[new _e("\u200B")]);Mo=[ke(["vlist-r"],[yo,os]),ke(["vlist-r"],[So])]}else Mo=[ke(["vlist-r"],[yo])];var ns=ke(["vlist-t"],Mo);return Mo.length===2&&ns.classes.push("vlist-t2"),ns.height=Si,ns.depth=-si,ns},wr=function(ne,Ae){var we=ke(["mspace"],[],Ae),Be=or(ne,Ae);return we.style.marginRight=Be+"em",we},pr=function(ne,Ae,we){var Be="";switch(ne){case"amsrm":Be="AMS";break;case"textrm":Be="Main";break;case"textsf":Be="SansSerif";break;case"texttt":Be="Typewriter";break;default:Be=ne}var dt;return Ae==="textbf"&&we==="textit"?dt="BoldItalic":Ae==="textbf"?dt="Bold":Ae==="textit"?dt="Italic":dt="Regular",Be+"-"+dt},_r={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"}},Wt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},un=function(ne,Ae){var we=Wt[ne],Be=we[0],dt=we[1],Ot=we[2],br=new oe(Be),Lr=new xe([br],{width:dt+"em",height:Ot+"em",style:"width:"+dt+"em",viewBox:"0 0 "+1e3*dt+" "+1e3*Ot,preserveAspectRatio:"xMinYMin"}),$r=Fe(["overlay"],[Lr],Ae);return $r.height=Ot,$r.style.height=Ot+"em",$r.style.width=dt+"em",$r},ir={fontMap:_r,makeSymbol:Jr,mathsym:Tn,makeSpan:ke,makeSvgSpan:Fe,makeLineSpan:Ve,makeAnchor:We,makeFragment:Ze,wrapFragment:yt,makeVList:kt,makeOrd:Ai,makeGlue:wr,staticSvg:un,svgData:Wt,tryCombineChars:Ye};function Gr(mt,ne){var Ae=kr(mt,ne);if(!Ae)throw new Error("Expected node of type "+ne+", but got "+(mt?"node of type "+mt.type:String(mt)));return Ae}function kr(mt,ne){return mt&&mt.type===ne?mt:null}function yr(mt,ne){var Ae=En(mt,ne);if(!Ae)throw new Error('Expected node of type "atom" and family "'+ne+'", but got '+(mt?mt.type==="atom"?"atom of family "+mt.family:"node of type "+mt.type:String(mt)));return Ae}function En(mt,ne){return mt&&mt.type==="atom"&&mt.family===ne?mt:null}function kn(mt){var ne=ii(mt);if(!ne)throw new Error("Expected node of symbol group type, but got "+(mt?"node of type "+mt.type:String(mt)));return ne}function ii(mt){return mt&&(mt.type==="atom"||Dt.hasOwnProperty(mt.type))?mt:null}var oi={number:3,unit:"mu"},ei={number:4,unit:"mu"},ci={number:5,unit:"mu"},Pn={mord:{mop:oi,mbin:ei,mrel:ci,minner:oi},mop:{mord:oi,mop:oi,mrel:ci,minner:oi},mbin:{mord:ei,mop:ei,mopen:ei,minner:ei},mrel:{mord:ci,mop:ci,mopen:ci,minner:ci},mopen:{},mclose:{mop:oi,mbin:ei,mrel:ci,minner:oi},mpunct:{mord:oi,mop:oi,mrel:ci,mopen:oi,mclose:oi,mpunct:oi,minner:oi},minner:{mord:oi,mop:oi,mbin:ei,mrel:ci,mopen:oi,mpunct:oi,minner:oi}},xi={mord:{mop:oi},mop:{mord:oi,mop:oi},mbin:{},mrel:{},mopen:{},mclose:{mop:oi},mpunct:{},minner:{mop:oi}},gn={},zr={},Cn={};function on(mt){for(var ne=mt.type,Ae=mt.names,we=mt.props,Be=mt.handler,dt=mt.htmlBuilder,Ot=mt.mathmlBuilder,br={type:ne,numArgs:we.numArgs,argTypes:we.argTypes,greediness:we.greediness===void 0?1:we.greediness,allowedInText:!!we.allowedInText,allowedInMath:we.allowedInMath===void 0?!0:we.allowedInMath,numOptionalArgs:we.numOptionalArgs||0,infix:!!we.infix,handler:Be},Lr=0;Lr<Ae.length;++Lr)gn[Ae[Lr]]=br;ne&&(dt&&(zr[ne]=dt),Ot&&(Cn[ne]=Ot))}function li(mt){var ne=mt.type,Ae=mt.htmlBuilder,we=mt.mathmlBuilder;on({type:ne,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:Ae,mathmlBuilder:we})}var ri=function(ne){var Ae=kr(ne,"ordgroup");return Ae?Ae.body:[ne]},wi=ir.makeSpan,Gn=["leftmost","mbin","mopen","mrel","mop","mpunct"],ki=["rightmost","mrel","mclose","mpunct"],Jn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},Pi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},mn=function(ne,Ae,we,Be){Be===void 0&&(Be=[null,null]);for(var dt=[],Ot=0;Ot<ne.length;Ot++){var br=di(ne[Ot],Ae);if(br instanceof Q){var Lr=br.children;dt.push.apply(dt,Lr)}else dt.push(br)}if(!we)return dt;var $r=Ae;if(ne.length===1){var xn=kr(ne[0],"sizing")||kr(ne[0],"styling");xn&&(xn.type==="sizing"?$r=Ae.havingSize(xn.size):xn.type==="styling"&&($r=Ae.havingStyle(Jn[xn.style])))}var Wn=wi([Be[0]||"leftmost"],[],Ae),si=wi([Be[1]||"rightmost"],[],Ae);return Fr(dt,function(Si,Vi){var oa=Vi.classes[0],xa=Si.classes[0];oa==="mbin"&&p.contains(ki,xa)?Vi.classes[0]="mord":xa==="mbin"&&p.contains(Gn,oa)&&(Si.classes[0]="mord")},{node:Wn},si),Fr(dt,function(Si,Vi){var oa=Vn(Vi),xa=Vn(Si),eo=oa&&xa?Si.hasClass("mtight")?xi[oa][xa]:Pn[oa][xa]:null;if(eo)return ir.makeGlue(eo,$r)},{node:Wn},si),dt},Fr=function mt(ne,Ae,we,Be){Be&&ne.push(Be);for(var dt=0;dt<ne.length;dt++){var Ot=ne[dt],br=An(Ot);if(br){mt(br.children,Ae,we);continue}if(Ot.classes[0]==="mspace")continue;var Lr=Ae(Ot,we.node);Lr&&(we.insertAfter?we.insertAfter(Lr):(ne.unshift(Lr),dt++)),we.node=Ot,we.insertAfter=function($r){return function(xn){ne.splice($r+1,0,xn),dt++}}(dt)}Be&&ne.pop()},An=function(ne){return ne instanceof Q||ne instanceof Z?ne:null},Un=function mt(ne,Ae){var we=An(ne);if(we){var Be=we.children;if(Be.length){if(Ae==="right")return mt(Be[Be.length-1],"right");if(Ae==="left")return mt(Be[0],"left")}}return ne},Vn=function(ne,Ae){return ne?(Ae&&(ne=Un(ne,Ae)),Pi[ne.classes[0]]||null):null},ti=function(ne,Ae){var we=["nulldelimiter"].concat(ne.baseSizingClasses());return wi(Ae.concat(we))},di=function(ne,Ae,we){if(!ne)return wi();if(zr[ne.type]){var Be=zr[ne.type](ne,Ae);if(we&&Ae.size!==we.size){Be=wi(Ae.sizingClasses(we),[Be],Ae);var dt=Ae.sizeMultiplier/we.sizeMultiplier;Be.height*=dt,Be.depth*=dt}return Be}else throw new c("Got group of unknown type: '"+ne.type+"'")};function fi(mt,ne){var Ae=wi(["base"],mt,ne),we=wi(["strut"]);return we.style.height=Ae.height+Ae.depth+"em",we.style.verticalAlign=-Ae.depth+"em",Ae.children.unshift(we),Ae}function mi(mt,ne){var Ae=null;mt.length===1&&mt[0].type==="tag"&&(Ae=mt[0].tag,mt=mt[0].body);for(var we=mn(mt,ne,!0),Be=[],dt=[],Ot=0;Ot<we.length;Ot++)if(dt.push(we[Ot]),we[Ot].hasClass("mbin")||we[Ot].hasClass("mrel")||we[Ot].hasClass("allowbreak")){for(var br=!1;Ot<we.length-1&&we[Ot+1].hasClass("mspace")&&!we[Ot+1].hasClass("newline");)Ot++,dt.push(we[Ot]),we[Ot].hasClass("nobreak")&&(br=!0);br||(Be.push(fi(dt,ne)),dt=[])}else we[Ot].hasClass("newline")&&(dt.pop(),dt.length>0&&(Be.push(fi(dt,ne)),dt=[]),Be.push(we[Ot]));dt.length>0&&Be.push(fi(dt,ne));var Lr;Ae&&(Lr=fi(mn(Ae,ne,!0)),Lr.classes=["tag"],Be.push(Lr));var $r=wi(["katex-html"],Be);if($r.setAttribute("aria-hidden","true"),Lr){var xn=Lr.children[0];xn.style.height=$r.height+$r.depth+"em",xn.style.verticalAlign=-$r.depth+"em"}return $r}function Wi(mt){return new Q(mt)}var na=function(){function mt(Ae,we){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=Ae,this.attributes={},this.children=we||[]}var ne=mt.prototype;return ne.setAttribute=function(we,Be){this.attributes[we]=Be},ne.getAttribute=function(we){return this.attributes[we]},ne.toNode=function(){var we=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&we.setAttribute(Be,this.attributes[Be]);for(var dt=0;dt<this.children.length;dt++)we.appendChild(this.children[dt].toNode());return we},ne.toMarkup=function(){var we="<"+this.type;for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&(we+=" "+Be+'="',we+=p.escape(this.attributes[Be]),we+='"');we+=">";for(var dt=0;dt<this.children.length;dt++)we+=this.children[dt].toMarkup();return we+="</"+this.type+">",we},ne.toText=function(){return this.children.map(function(we){return we.toText()}).join("")},mt}(),ea=function(){function mt(Ae){this.text=void 0,this.text=Ae}var ne=mt.prototype;return ne.toNode=function(){return document.createTextNode(this.text)},ne.toMarkup=function(){return p.escape(this.toText())},ne.toText=function(){return this.text},mt}(),Fa=function(){function mt(Ae){this.width=void 0,this.character=void 0,this.width=Ae,Ae>=.05555&&Ae<=.05556?this.character="\u200A":Ae>=.1666&&Ae<=.1667?this.character="\u2009":Ae>=.2222&&Ae<=.2223?this.character="\u2005":Ae>=.2777&&Ae<=.2778?this.character="\u2005\u200A":Ae>=-.05556&&Ae<=-.05555?this.character="\u200A\u2063":Ae>=-.1667&&Ae<=-.1666?this.character="\u2009\u2063":Ae>=-.2223&&Ae<=-.2222?this.character="\u205F\u2063":Ae>=-.2778&&Ae<=-.2777?this.character="\u2005\u2063":this.character=null}var ne=mt.prototype;return ne.toNode=function(){if(this.character)return document.createTextNode(this.character);var we=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return we.setAttribute("width",this.width+"em"),we},ne.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ne.toText=function(){return this.character?this.character:" "},mt}(),pi={MathNode:na,TextNode:ea,SpaceNode:Fa,newDocumentFragment:Wi},ln=function(ne,Ae,we){return Je[Ae][ne]&&Je[Ae][ne].replace&&ne.charCodeAt(0)!==55349&&!(qt.hasOwnProperty(ne)&&we&&(we.fontFamily&&we.fontFamily.substr(4,2)==="tt"||we.font&&we.font.substr(4,2)==="tt"))&&(ne=Je[Ae][ne].replace),new pi.TextNode(ne)},Li=function(ne){return ne.length===1?ne[0]:new pi.MathNode("mrow",ne)},Zi=function(ne,Ae){if(Ae.fontFamily==="texttt")return"monospace";if(Ae.fontFamily==="textsf")return Ae.fontShape==="textit"&&Ae.fontWeight==="textbf"?"sans-serif-bold-italic":Ae.fontShape==="textit"?"sans-serif-italic":Ae.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(Ae.fontShape==="textit"&&Ae.fontWeight==="textbf")return"bold-italic";if(Ae.fontShape==="textit")return"italic";if(Ae.fontWeight==="textbf")return"bold";var we=Ae.font;if(!we||we==="mathnormal")return null;var Be=ne.mode;if(we==="mathit")return"italic";if(we==="boldsymbol")return"bold-italic";if(we==="mathbf")return"bold";if(we==="mathbb")return"double-struck";if(we==="mathfrak")return"fraktur";if(we==="mathscr"||we==="mathcal")return"script";if(we==="mathsf")return"sans-serif";if(we==="mathtt")return"monospace";var dt=ne.text;if(p.contains(["\\imath","\\jmath"],dt))return null;Je[Be][dt]&&Je[Be][dt].replace&&(dt=Je[Be][dt].replace);var Ot=ir.fontMap[we].fontName;return Ge(dt,Ot,Be)?ir.fontMap[we].variant:null},Fi=function(ne,Ae,we){if(ne.length===1){var Be=Gt(ne[0],Ae);return we&&Be instanceof na&&Be.type==="mo"&&(Be.setAttribute("lspace","0em"),Be.setAttribute("rspace","0em")),[Be]}for(var dt=[],Ot,br=0;br<ne.length;br++){var Lr=Gt(ne[br],Ae);if(Lr instanceof na&&Ot instanceof na){if(Lr.type==="mtext"&&Ot.type==="mtext"&&Lr.getAttribute("mathvariant")===Ot.getAttribute("mathvariant")){var $r;($r=Ot.children).push.apply($r,Lr.children);continue}else if(Lr.type==="mn"&&Ot.type==="mn"){var xn;(xn=Ot.children).push.apply(xn,Lr.children);continue}else if(Lr.type==="mi"&&Lr.children.length===1&&Ot.type==="mn"){var Wn=Lr.children[0];if(Wn instanceof ea&&Wn.text==="."){var si;(si=Ot.children).push.apply(si,Lr.children);continue}}else if(Ot.type==="mi"&&Ot.children.length===1){var Si=Ot.children[0];if(Si instanceof ea&&Si.text==="\u0338"&&(Lr.type==="mo"||Lr.type==="mi"||Lr.type==="mn")){var Vi=Lr.children[0];Vi instanceof ea&&Vi.text.length>0&&(Vi.text=Vi.text.slice(0,1)+"\u0338"+Vi.text.slice(1),dt.pop())}}}dt.push(Lr),Ot=Lr}return dt},ia=function(ne,Ae,we){return Li(Fi(ne,Ae,we))},Gt=function(ne,Ae){if(!ne)return new pi.MathNode("mrow");if(Cn[ne.type]){var we=Cn[ne.type](ne,Ae);return we}else throw new c("Got group of unknown type: '"+ne.type+"'")};function Xr(mt,ne,Ae,we){var Be=Fi(mt,Ae),dt;Be.length===1&&Be[0]instanceof na&&p.contains(["mrow","mtable"],Be[0].type)?dt=Be[0]:dt=new pi.MathNode("mrow",Be);var Ot=new pi.MathNode("annotation",[new pi.TextNode(ne)]);Ot.setAttribute("encoding","application/x-tex");var br=new pi.MathNode("semantics",[dt,Ot]),Lr=new pi.MathNode("math",[br]);Lr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var $r=we?"katex":"katex-mathml";return ir.makeSpan([$r],[Lr])}var rn=function(ne){return new Pt({style:ne.displayMode?K.DISPLAY:K.TEXT,maxSize:ne.maxSize,minRuleThickness:ne.minRuleThickness})},fn=function(ne,Ae){if(Ae.displayMode){var we=["katex-display"];Ae.leqno&&we.push("leqno"),Ae.fleqn&&we.push("fleqn"),ne=ir.makeSpan(we,[ne])}return ne},Xe=function(ne,Ae,we){var Be=rn(we),dt;if(we.output==="mathml")return Xr(ne,Ae,Be,!0);if(we.output==="html"){var Ot=mi(ne,Be);dt=ir.makeSpan(["katex"],[Ot])}else{var br=Xr(ne,Ae,Be,!1),Lr=mi(ne,Be);dt=ir.makeSpan(["katex"],[br,Lr])}return fn(dt,we)},_t=function(ne,Ae,we){var Be=rn(we),dt=mi(ne,Be),Ot=ir.makeSpan(["katex"],[dt]);return fn(Ot,we)},lr=Xe,rr={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"},Or=function(ne){var Ae=new pi.MathNode("mo",[new pi.TextNode(rr[ne.substr(1)])]);return Ae.setAttribute("stretchy","true"),Ae},Mr={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]},Wr=function(ne){return ne.type==="ordgroup"?ne.body.length:1},nn=function(ne,Ae){function we(){var Lr=4e5,$r=ne.label.substr(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],$r)){var xn=ne,Wn=Wr(xn.base),si,Si,Vi;if(Wn>5)$r==="widehat"||$r==="widecheck"?(si=420,Lr=2364,Vi=.42,Si=$r+"4"):(si=312,Lr=2340,Vi=.34,Si="tilde4");else{var oa=[1,1,2,2,3,3][Wn];$r==="widehat"||$r==="widecheck"?(Lr=[0,1062,2364,2364,2364][oa],si=[0,239,300,360,420][oa],Vi=[0,.24,.3,.3,.36,.42][oa],Si=$r+oa):(Lr=[0,600,1033,2339,2340][oa],si=[0,260,286,306,312][oa],Vi=[0,.26,.286,.3,.306,.34][oa],Si="tilde"+oa)}var xa=new oe(Si),eo=new xe([xa],{width:"100%",height:Vi+"em",viewBox:"0 0 "+Lr+" "+si,preserveAspectRatio:"none"});return{span:ir.makeSvgSpan([],[eo],Ae),minWidth:0,height:Vi}}else{var to=[],io=Mr[$r],Oo=io[0],yo=io[1],Mo=io[2],za=Mo/1e3,So=Oo.length,os,ns;if(So===1){var Io=io[3];os=["hide-tail"],ns=[Io]}else if(So===2)os=["halfarrow-left","halfarrow-right"],ns=["xMinYMin","xMaxYMin"];else if(So===3)os=["brace-left","brace-center","brace-right"],ns=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+So+" children.");for(var Xo=0;Xo<So;Xo++){var Ds=new oe(Oo[Xo]),Es=new xe([Ds],{width:"400em",height:za+"em",viewBox:"0 0 "+Lr+" "+Mo,preserveAspectRatio:ns[Xo]+" slice"}),Wo=ir.makeSvgSpan([os[Xo]],[Es],Ae);if(So===1)return{span:Wo,minWidth:yo,height:za};Wo.style.height=za+"em",to.push(Wo)}return{span:ir.makeSpan(["stretchy"],to,Ae),minWidth:yo,height:za}}}var Be=we(),dt=Be.span,Ot=Be.minWidth,br=Be.height;return dt.height=br,dt.style.height=br+"em",Ot>0&&(dt.style.minWidth=Ot+"em"),dt},wn=function(ne,Ae,we,Be){var dt,Ot=ne.height+ne.depth+2*we;if(/fbox|color/.test(Ae)){if(dt=ir.makeSpan(["stretchy",Ae],[],Be),Ae==="fbox"){var br=Be.color&&Be.getColor();br&&(dt.style.borderColor=br)}}else{var Lr=[];/^[bx]cancel$/.test(Ae)&&Lr.push(new fe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Ae)&&Lr.push(new fe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var $r=new xe(Lr,{width:"100%",height:Ot+"em"});dt=ir.makeSvgSpan([],[$r],Be)}return dt.height=Ot,dt.style.height=Ot+"em",dt},On={encloseSpan:wn,mathMLnode:Or,svgSpan:nn},Rn=function(ne,Ae){var we,Be,dt=kr(ne,"supsub"),Ot;dt?(Be=Gr(dt.base,"accent"),we=Be.base,dt.base=we,Ot=ze(di(dt,Ae)),dt.base=Be):(Be=Gr(ne,"accent"),we=Be.base);var br=di(we,Ae.havingCrampedStyle()),Lr=Be.isShifty&&p.isCharacterBox(we),$r=0;if(Lr){var xn=p.getBaseElem(we),Wn=di(xn,Ae.havingCrampedStyle());$r=Te(Wn).skew}var si=Math.min(br.height,Ae.fontMetrics().xHeight),Si;if(Be.isStretchy)Si=On.svgSpan(Be,Ae),Si=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:br},{type:"elem",elem:Si,wrapperClasses:["svg-align"],wrapperStyle:$r>0?{width:"calc(100% - "+2*$r+"em)",marginLeft:2*$r+"em"}:void 0}]},Ae);else{var Vi,oa;Be.label==="\\vec"?(Vi=ir.staticSvg("vec",Ae),oa=ir.svgData.vec[1]):(Vi=ir.makeOrd({mode:Be.mode,text:Be.label},Ae,"textord"),Vi=Te(Vi),Vi.italic=0,oa=Vi.width),Si=ir.makeSpan(["accent-body"],[Vi]);var xa=Be.label==="\\textcircled";xa&&(Si.classes.push("accent-full"),si=br.height);var eo=$r;xa||(eo-=oa/2),Si.style.left=eo+"em",Be.label==="\\textcircled"&&(Si.style.top=".2em"),Si=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:br},{type:"kern",size:-si},{type:"elem",elem:Si}]},Ae)}var to=ir.makeSpan(["mord","accent"],[Si],Ae);return Ot?(Ot.children[0]=to,Ot.height=Math.max(to.height,Ot.height),Ot.classes[0]="mord",Ot):to},Nn=function(ne,Ae){var we=ne.isStretchy?On.mathMLnode(ne.label):new pi.MathNode("mo",[ln(ne.label,ne.mode)]),Be=new pi.MathNode("mover",[Gt(ne.base,Ae),we]);return Be.setAttribute("accent","true"),Be},yn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(mt){return"\\"+mt}).join("|"));on({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(ne,Ae){var we=Ae[0],Be=!yn.test(ne.funcName),dt=!Be||ne.funcName==="\\widehat"||ne.funcName==="\\widetilde"||ne.funcName==="\\widecheck";return{type:"accent",mode:ne.parser.mode,label:ne.funcName,isStretchy:Be,isShifty:dt,base:we}},htmlBuilder:Rn,mathmlBuilder:Nn}),on({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ne,Ae){var we=Ae[0];return{type:"accent",mode:ne.parser.mode,label:ne.funcName,isStretchy:!1,isShifty:!0,base:we}},htmlBuilder:Rn,mathmlBuilder:Nn}),on({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0];return{type:"accentUnder",mode:we.mode,label:Be,base:dt}},htmlBuilder:function(ne,Ae){var we=di(ne.base,Ae),Be=On.svgSpan(ne,Ae),dt=ne.label==="\\utilde"?.12:0,Ot=ir.makeVList({positionType:"bottom",positionData:Be.height+dt,children:[{type:"elem",elem:Be,wrapperClasses:["svg-align"]},{type:"kern",size:dt},{type:"elem",elem:we}]},Ae);return ir.makeSpan(["mord","accentunder"],[Ot],Ae)},mathmlBuilder:function(ne,Ae){var we=On.mathMLnode(ne.label),Be=new pi.MathNode("munder",[Gt(ne.base,Ae),we]);return Be.setAttribute("accentunder","true"),Be}});var Sn=function(ne){var Ae=new pi.MathNode("mpadded",ne?[ne]:[]);return Ae.setAttribute("width","+0.6em"),Ae.setAttribute("lspace","0.3em"),Ae};on({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(ne,Ae,we){var Be=ne.parser,dt=ne.funcName;return{type:"xArrow",mode:Be.mode,label:dt,body:Ae[0],below:we[0]}},htmlBuilder:function(ne,Ae){var we=Ae.style,Be=Ae.havingStyle(we.sup()),dt=ir.wrapFragment(di(ne.body,Be,Ae),Ae);dt.classes.push("x-arrow-pad");var Ot;ne.below&&(Be=Ae.havingStyle(we.sub()),Ot=ir.wrapFragment(di(ne.below,Be,Ae),Ae),Ot.classes.push("x-arrow-pad"));var br=On.svgSpan(ne,Ae),Lr=-Ae.fontMetrics().axisHeight+.5*br.height,$r=-Ae.fontMetrics().axisHeight-.5*br.height-.111;(dt.depth>.25||ne.label==="\\xleftequilibrium")&&($r-=dt.depth);var xn;if(Ot){var Wn=-Ae.fontMetrics().axisHeight+Ot.height+.5*br.height+.111;xn=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:$r},{type:"elem",elem:br,shift:Lr},{type:"elem",elem:Ot,shift:Wn}]},Ae)}else xn=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:$r},{type:"elem",elem:br,shift:Lr}]},Ae);return xn.children[0].children[0].children[1].classes.push("svg-align"),ir.makeSpan(["mrel","x-arrow"],[xn],Ae)},mathmlBuilder:function(ne,Ae){var we=On.mathMLnode(ne.label),Be;if(ne.body){var dt=Sn(Gt(ne.body,Ae));if(ne.below){var Ot=Sn(Gt(ne.below,Ae));Be=new pi.MathNode("munderover",[we,Ot,dt])}else Be=new pi.MathNode("mover",[we,dt])}else if(ne.below){var br=Sn(Gt(ne.below,Ae));Be=new pi.MathNode("munder",[we,br])}else Be=Sn(),Be=new pi.MathNode("mover",[we,Be]);return Be}}),on({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ne,Ae){for(var we=ne.parser,Be=Gr(Ae[0],"ordgroup"),dt=Be.body,Ot="",br=0;br<dt.length;br++){var Lr=Gr(dt[br],"textord");Ot+=Lr.text}var $r=parseInt(Ot);if(isNaN($r))throw new c("\\@char has non-numeric argument "+Ot);return{type:"textord",mode:we.mode,text:String.fromCharCode($r)}}});var _n=function(ne,Ae){var we=mn(ne.body,Ae.withColor(ne.color),!1);return ir.makeFragment(we)},Hn=function(ne,Ae){var we=Fi(ne.body,Ae.withColor(ne.color)),Be=new pi.MathNode("mstyle",we);return Be.setAttribute("mathcolor",ne.color),Be};on({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ne,Ae){var we=ne.parser,Be=Gr(Ae[0],"color-token").color,dt=Ae[1];return{type:"color",mode:we.mode,color:Be,body:ri(dt)}},htmlBuilder:_n,mathmlBuilder:Hn}),on({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ne,Ae){var we=ne.parser,Be=ne.breakOnTokenText,dt=Gr(Ae[0],"color-token").color;we.gullet.macros.set("\\current@color",dt);var Ot=we.parseExpression(!0,Be);return{type:"color",mode:we.mode,color:dt,body:Ot}},htmlBuilder:_n,mathmlBuilder:Hn}),on({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ne,Ae,we){var Be=ne.parser,dt=ne.funcName,Ot=we[0],br=dt==="\\cr",Lr=!1;return br||(Be.settings.displayMode&&Be.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Lr=!1:Lr=!0),{type:"cr",mode:Be.mode,newLine:Lr,newRow:br,size:Ot&&Gr(Ot,"size").value}},htmlBuilder:function(ne,Ae){if(ne.newRow)throw new c("\\cr valid only within a tabular/array environment");var we=ir.makeSpan(["mspace"],[],Ae);return ne.newLine&&(we.classes.push("newline"),ne.size&&(we.style.marginTop=or(ne.size,Ae)+"em")),we},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mspace");return ne.newLine&&(we.setAttribute("linebreak","newline"),ne.size&&we.setAttribute("height",or(ne.size,Ae)+"em")),we}});var Yn=function(ne,Ae,we){var Be=Je.math[ne]&&Je.math[ne].replace,dt=Ge(Be||ne,Ae,we);if(!dt)throw new Error("Unsupported symbol "+ne+" and font size "+Ae+".");return dt},Zn=function(ne,Ae,we,Be){var dt=we.havingBaseStyle(Ae),Ot=ir.makeSpan(Be.concat(dt.sizingClasses(we)),[ne],we),br=dt.sizeMultiplier/we.sizeMultiplier;return Ot.height*=br,Ot.depth*=br,Ot.maxFontSize=dt.sizeMultiplier,Ot},yi=function(ne,Ae,we){var Be=Ae.havingBaseStyle(we),dt=(1-Ae.sizeMultiplier/Be.sizeMultiplier)*Ae.fontMetrics().axisHeight;ne.classes.push("delimcenter"),ne.style.top=dt+"em",ne.height-=dt,ne.depth+=dt},gi=function(ne,Ae,we,Be,dt,Ot){var br=ir.makeSymbol(ne,"Main-Regular",dt,Be),Lr=Zn(br,Ae,Be,Ot);return we&&yi(Lr,Be,Ae),Lr},Di=function(ne,Ae,we,Be){return ir.makeSymbol(ne,"Size"+Ae+"-Regular",we,Be)},Ui=function(ne,Ae,we,Be,dt,Ot){var br=Di(ne,Ae,dt,Be),Lr=Zn(ir.makeSpan(["delimsizing","size"+Ae],[br],Be),K.TEXT,Be,Ot);return we&&yi(Lr,Be,K.TEXT),Lr},Ei=function(ne,Ae,we){var Be;Ae==="Size1-Regular"?Be="delim-size1":Be="delim-size4";var dt=ir.makeSpan(["delimsizinginner",Be],[ir.makeSpan([],[ir.makeSymbol(ne,Ae,we)])]);return{type:"elem",elem:dt}},_i={type:"kern",size:-.005},Ni=function(ne,Ae,we,Be,dt,Ot){var br,Lr,$r,xn;br=$r=xn=ne,Lr=null;var Wn="Size1-Regular";ne==="\\uparrow"?$r=xn="\u23D0":ne==="\\Uparrow"?$r=xn="\u2016":ne==="\\downarrow"?br=$r="\u23D0":ne==="\\Downarrow"?br=$r="\u2016":ne==="\\updownarrow"?(br="\\uparrow",$r="\u23D0",xn="\\downarrow"):ne==="\\Updownarrow"?(br="\\Uparrow",$r="\u2016",xn="\\Downarrow"):ne==="["||ne==="\\lbrack"?(br="\u23A1",$r="\u23A2",xn="\u23A3",Wn="Size4-Regular"):ne==="]"||ne==="\\rbrack"?(br="\u23A4",$r="\u23A5",xn="\u23A6",Wn="Size4-Regular"):ne==="\\lfloor"||ne==="\u230A"?($r=br="\u23A2",xn="\u23A3",Wn="Size4-Regular"):ne==="\\lceil"||ne==="\u2308"?(br="\u23A1",$r=xn="\u23A2",Wn="Size4-Regular"):ne==="\\rfloor"||ne==="\u230B"?($r=br="\u23A5",xn="\u23A6",Wn="Size4-Regular"):ne==="\\rceil"||ne==="\u2309"?(br="\u23A4",$r=xn="\u23A5",Wn="Size4-Regular"):ne==="("||ne==="\\lparen"?(br="\u239B",$r="\u239C",xn="\u239D",Wn="Size4-Regular"):ne===")"||ne==="\\rparen"?(br="\u239E",$r="\u239F",xn="\u23A0",Wn="Size4-Regular"):ne==="\\{"||ne==="\\lbrace"?(br="\u23A7",Lr="\u23A8",xn="\u23A9",$r="\u23AA",Wn="Size4-Regular"):ne==="\\}"||ne==="\\rbrace"?(br="\u23AB",Lr="\u23AC",xn="\u23AD",$r="\u23AA",Wn="Size4-Regular"):ne==="\\lgroup"||ne==="\u27EE"?(br="\u23A7",xn="\u23A9",$r="\u23AA",Wn="Size4-Regular"):ne==="\\rgroup"||ne==="\u27EF"?(br="\u23AB",xn="\u23AD",$r="\u23AA",Wn="Size4-Regular"):ne==="\\lmoustache"||ne==="\u23B0"?(br="\u23A7",xn="\u23AD",$r="\u23AA",Wn="Size4-Regular"):(ne==="\\rmoustache"||ne==="\u23B1")&&(br="\u23AB",xn="\u23A9",$r="\u23AA",Wn="Size4-Regular");var si=Yn(br,Wn,dt),Si=si.height+si.depth,Vi=Yn($r,Wn,dt),oa=Vi.height+Vi.depth,xa=Yn(xn,Wn,dt),eo=xa.height+xa.depth,to=0,io=1;if(Lr!==null){var Oo=Yn(Lr,Wn,dt);to=Oo.height+Oo.depth,io=2}var yo=Si+eo+to,Mo=Math.max(0,Math.ceil((Ae-yo)/(io*oa))),za=yo+Mo*io*oa,So=Be.fontMetrics().axisHeight;we&&(So*=Be.sizeMultiplier);var os=za/2-So,ns=(Mo+1)*.005-oa,Io=[];if(Io.push(Ei(xn,Wn,dt)),Lr===null)for(var Xo=0;Xo<Mo;Xo++)Io.push(_i),Io.push(Ei($r,Wn,dt));else{for(var Ds=0;Ds<Mo;Ds++)Io.push(_i),Io.push(Ei($r,Wn,dt));Io.push({type:"kern",size:ns}),Io.push(Ei($r,Wn,dt)),Io.push(_i),Io.push(Ei(Lr,Wn,dt));for(var Es=0;Es<Mo;Es++)Io.push(_i),Io.push(Ei($r,Wn,dt))}Io.push({type:"kern",size:ns}),Io.push(Ei($r,Wn,dt)),Io.push(_i),Io.push(Ei(br,Wn,dt));var Wo=Be.havingBaseStyle(K.TEXT),ws=ir.makeVList({positionType:"bottom",positionData:os,children:Io},Wo);return Zn(ir.makeSpan(["delimsizing","mult"],[ws],Wo),K.TEXT,Be,Ot)},jn=80,Ii=.08,Hi=function(ne,Ae,we,Be,dt){var Ot=de(ne,Be,we),br=new oe(ne,Ot),Lr=new xe([br],{width:"400em",height:Ae+"em",viewBox:"0 0 400000 "+we,preserveAspectRatio:"xMinYMin slice"});return ir.makeSvgSpan(["hide-tail"],[Lr],dt)},fr=function(ne,Ae){var we=Ae.havingBaseSizing(),Be=sn("\\surd",ne*we.sizeMultiplier,Ur,we),dt=we.sizeMultiplier,Ot=Math.max(0,Ae.minRuleThickness-Ae.fontMetrics().sqrtRuleThickness),br,Lr=0,$r=0,xn=0,Wn;return Be.type==="small"?(xn=1e3+1e3*Ot+jn,ne<1?dt=1:ne<1.4&&(dt=.7),Lr=(1+Ot+Ii)/dt,$r=(1+Ot)/dt,br=Hi("sqrtMain",Lr,xn,Ot,Ae),br.style.minWidth="0.853em",Wn=.833/dt):Be.type==="large"?(xn=(1e3+jn)*Yt[Be.size],$r=(Yt[Be.size]+Ot)/dt,Lr=(Yt[Be.size]+Ot+Ii)/dt,br=Hi("sqrtSize"+Be.size,Lr,xn,Ot,Ae),br.style.minWidth="1.02em",Wn=1/dt):(Lr=ne+Ot+Ii,$r=ne+Ot,xn=Math.floor(1e3*ne+Ot)+jn,br=Hi("sqrtTall",Lr,xn,Ot,Ae),br.style.minWidth="0.742em",Wn=1.056),br.height=$r,br.style.height=Lr+"em",{span:br,advanceWidth:Wn,ruleWidth:(Ae.fontMetrics().sqrtRuleThickness+Ot)*dt}},Dr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Qr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Nr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Yt=[0,1.2,1.8,2.4,3],xr=function(ne,Ae,we,Be,dt){if(ne==="<"||ne==="\\lt"||ne==="\u27E8"?ne="\\langle":(ne===">"||ne==="\\gt"||ne==="\u27E9")&&(ne="\\rangle"),p.contains(Dr,ne)||p.contains(Nr,ne))return Ui(ne,Ae,!1,we,Be,dt);if(p.contains(Qr,ne))return Ni(ne,Yt[Ae],!1,we,Be,dt);throw new c("Illegal delimiter: '"+ne+"'")},tr=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],jr=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],Ur=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],dn=function(ne){if(ne.type==="small")return"Main-Regular";if(ne.type==="large")return"Size"+ne.size+"-Regular";if(ne.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ne.type+"' here.")},sn=function(ne,Ae,we,Be){for(var dt=Math.min(2,3-Be.style.size),Ot=dt;Ot<we.length&&!(we[Ot].type==="stack");Ot++){var br=Yn(ne,dn(we[Ot]),"math"),Lr=br.height+br.depth;if(we[Ot].type==="small"){var $r=Be.havingBaseStyle(we[Ot].style);Lr*=$r.sizeMultiplier}if(Lr>Ae)return we[Ot]}return we[we.length-1]},bn=function(ne,Ae,we,Be,dt,Ot){ne==="<"||ne==="\\lt"||ne==="\u27E8"?ne="\\langle":(ne===">"||ne==="\\gt"||ne==="\u27E9")&&(ne="\\rangle");var br;p.contains(Nr,ne)?br=tr:p.contains(Dr,ne)?br=Ur:br=jr;var Lr=sn(ne,Ae,br,Be);return Lr.type==="small"?gi(ne,Lr.style,we,Be,dt,Ot):Lr.type==="large"?Ui(ne,Lr.size,we,Be,dt,Ot):Ni(ne,Ae,we,Be,dt,Ot)},Bn=function(ne,Ae,we,Be,dt,Ot){var br=Be.fontMetrics().axisHeight*Be.sizeMultiplier,Lr=901,$r=5/Be.fontMetrics().ptPerEm,xn=Math.max(Ae-br,we+br),Wn=Math.max(xn/500*Lr,2*xn-$r);return bn(ne,Wn,!0,Be,dt,Ot)},Xn={sqrtImage:fr,sizedDelim:xr,customSizedDelim:bn,leftRightDelim:Bn},$n={"\\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}},Ti=["(","\\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 Xi(mt,ne){var Ae=ii(mt);if(Ae&&p.contains(Ti,Ae.text))return Ae;throw new c("Invalid delimiter: '"+(Ae?Ae.text:JSON.stringify(mt))+"' after '"+ne.funcName+"'",mt)}on({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ne,Ae){var we=Xi(Ae[0],ne);return{type:"delimsizing",mode:ne.parser.mode,size:$n[ne.funcName].size,mclass:$n[ne.funcName].mclass,delim:we.text}},htmlBuilder:function(ne,Ae){return ne.delim==="."?ir.makeSpan([ne.mclass]):Xn.sizedDelim(ne.delim,ne.size,Ae,ne.mode,[ne.mclass])},mathmlBuilder:function(ne){var Ae=[];ne.delim!=="."&&Ae.push(ln(ne.delim,ne.mode));var we=new pi.MathNode("mo",Ae);return ne.mclass==="mopen"||ne.mclass==="mclose"?we.setAttribute("fence","true"):we.setAttribute("fence","false"),we}});function ua(mt){if(!mt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}on({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser.gullet.macros.get("\\current@color");if(we&&typeof we!="string")throw new c("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ne.parser.mode,delim:Xi(Ae[0],ne).text,color:we}}}),on({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ne,Ae){var we=Xi(Ae[0],ne),Be=ne.parser;++Be.leftrightDepth;var dt=Be.parseExpression(!1);--Be.leftrightDepth,Be.expect("\\right",!1);var Ot=Gr(Be.parseFunction(),"leftright-right");return{type:"leftright",mode:Be.mode,body:dt,left:we.text,right:Ot.delim,rightColor:Ot.color}},htmlBuilder:function(ne,Ae){ua(ne);for(var we=mn(ne.body,Ae,!0,["mopen","mclose"]),Be=0,dt=0,Ot=!1,br=0;br<we.length;br++)we[br].isMiddle?Ot=!0:(Be=Math.max(we[br].height,Be),dt=Math.max(we[br].depth,dt));Be*=Ae.sizeMultiplier,dt*=Ae.sizeMultiplier;var Lr;if(ne.left==="."?Lr=ti(Ae,["mopen"]):Lr=Xn.leftRightDelim(ne.left,Be,dt,Ae,ne.mode,["mopen"]),we.unshift(Lr),Ot)for(var $r=1;$r<we.length;$r++){var xn=we[$r],Wn=xn.isMiddle;Wn&&(we[$r]=Xn.leftRightDelim(Wn.delim,Be,dt,Wn.options,ne.mode,[]))}var si;if(ne.right===".")si=ti(Ae,["mclose"]);else{var Si=ne.rightColor?Ae.withColor(ne.rightColor):Ae;si=Xn.leftRightDelim(ne.right,Be,dt,Si,ne.mode,["mclose"])}return we.push(si),ir.makeSpan(["minner"],we,Ae)},mathmlBuilder:function(ne,Ae){ua(ne);var we=Fi(ne.body,Ae);if(ne.left!=="."){var Be=new pi.MathNode("mo",[ln(ne.left,ne.mode)]);Be.setAttribute("fence","true"),we.unshift(Be)}if(ne.right!=="."){var dt=new pi.MathNode("mo",[ln(ne.right,ne.mode)]);dt.setAttribute("fence","true"),ne.rightColor&&dt.setAttribute("mathcolor",ne.rightColor),we.push(dt)}return Li(we)}}),on({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ne,Ae){var we=Xi(Ae[0],ne);if(!ne.parser.leftrightDepth)throw new c("\\middle without preceding \\left",we);return{type:"middle",mode:ne.parser.mode,delim:we.text}},htmlBuilder:function(ne,Ae){var we;if(ne.delim===".")we=ti(Ae,[]);else{we=Xn.sizedDelim(ne.delim,1,Ae,ne.mode,[]);var Be={delim:ne.delim,options:Ae};we.isMiddle=Be}return we},mathmlBuilder:function(ne,Ae){var we=ne.delim==="\\vert"||ne.delim==="|"?ln("|","text"):ln(ne.delim,ne.mode),Be=new pi.MathNode("mo",[we]);return Be.setAttribute("fence","true"),Be.setAttribute("lspace","0.05em"),Be.setAttribute("rspace","0.05em"),Be}});var da=function(ne,Ae){var we=ir.wrapFragment(di(ne.body,Ae),Ae),Be=ne.label.substr(1),dt=Ae.sizeMultiplier,Ot,br=0,Lr=p.isCharacterBox(ne.body);if(Be==="sout")Ot=ir.makeSpan(["stretchy","sout"]),Ot.height=Ae.fontMetrics().defaultRuleThickness/dt,br=-.5*Ae.fontMetrics().xHeight;else{/cancel/.test(Be)?Lr||we.classes.push("cancel-pad"):we.classes.push("boxpad");var $r=0,xn=0;/box/.test(Be)?(xn=Math.max(Ae.fontMetrics().fboxrule,Ae.minRuleThickness),$r=Ae.fontMetrics().fboxsep+(Be==="colorbox"?0:xn)):$r=Lr?.2:0,Ot=On.encloseSpan(we,Be,$r,Ae),/fbox|boxed|fcolorbox/.test(Be)&&(Ot.style.borderStyle="solid",Ot.style.borderWidth=xn+"em"),br=we.depth+$r,ne.backgroundColor&&(Ot.style.backgroundColor=ne.backgroundColor,ne.borderColor&&(Ot.style.borderColor=ne.borderColor))}var Wn;return ne.backgroundColor?Wn=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ot,shift:br},{type:"elem",elem:we,shift:0}]},Ae):Wn=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:we,shift:0},{type:"elem",elem:Ot,shift:br,wrapperClasses:/cancel/.test(Be)?["svg-align"]:[]}]},Ae),/cancel/.test(Be)&&(Wn.height=we.height,Wn.depth=we.depth),/cancel/.test(Be)&&!Lr?ir.makeSpan(["mord","cancel-lap"],[Wn],Ae):ir.makeSpan(["mord"],[Wn],Ae)},sa=function(ne,Ae){var we=0,Be=new pi.MathNode(ne.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Gt(ne.body,Ae)]);switch(ne.label){case"\\cancel":Be.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Be.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Be.setAttribute("notation","horizontalstrike");break;case"\\fbox":Be.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(we=Ae.fontMetrics().fboxsep*Ae.fontMetrics().ptPerEm,Be.setAttribute("width","+"+2*we+"pt"),Be.setAttribute("height","+"+2*we+"pt"),Be.setAttribute("lspace",we+"pt"),Be.setAttribute("voffset",we+"pt"),ne.label==="\\fcolorbox"){var dt=Math.max(Ae.fontMetrics().fboxrule,Ae.minRuleThickness);Be.setAttribute("style","border: "+dt+"em solid "+String(ne.borderColor))}break;case"\\xcancel":Be.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ne.backgroundColor&&Be.setAttribute("mathbackground",ne.backgroundColor),Be};on({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ne,Ae,we){var Be=ne.parser,dt=ne.funcName,Ot=Gr(Ae[0],"color-token").color,br=Ae[1];return{type:"enclose",mode:Be.mode,label:dt,backgroundColor:Ot,body:br}},htmlBuilder:da,mathmlBuilder:sa}),on({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ne,Ae,we){var Be=ne.parser,dt=ne.funcName,Ot=Gr(Ae[0],"color-token").color,br=Gr(Ae[1],"color-token").color,Lr=Ae[2];return{type:"enclose",mode:Be.mode,label:dt,backgroundColor:br,borderColor:Ot,body:Lr}},htmlBuilder:da,mathmlBuilder:sa}),on({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ne,Ae){var we=ne.parser;return{type:"enclose",mode:we.mode,label:"\\fbox",body:Ae[0]}}}),on({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ne,Ae,we){var Be=ne.parser,dt=ne.funcName,Ot=Ae[0];return{type:"enclose",mode:Be.mode,label:dt,body:Ot}},htmlBuilder:da,mathmlBuilder:sa});var ca={};function zi(mt){for(var ne=mt.type,Ae=mt.names,we=mt.props,Be=mt.handler,dt=mt.htmlBuilder,Ot=mt.mathmlBuilder,br={type:ne,numArgs:we.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Be},Lr=0;Lr<Ae.length;++Lr)ca[Ae[Lr]]=br;dt&&(zr[ne]=dt),Ot&&(Cn[ne]=Ot)}function Ri(mt){var ne=[];mt.consumeSpaces();for(var Ae=mt.fetch().text;Ae==="\\hline"||Ae==="\\hdashline";)mt.consume(),ne.push(Ae==="\\hdashline"),mt.consumeSpaces(),Ae=mt.fetch().text;return ne}function ta(mt,ne,Ae){var we=ne.hskipBeforeAndAfter,Be=ne.addJot,dt=ne.cols,Ot=ne.arraystretch,br=ne.colSeparationType;if(mt.gullet.beginGroup(),mt.gullet.macros.set("\\\\","\\cr"),!Ot){var Lr=mt.gullet.expandMacroAsText("\\arraystretch");if(Lr==null)Ot=1;else if(Ot=parseFloat(Lr),!Ot||Ot<0)throw new c("Invalid \\arraystretch: "+Lr)}mt.gullet.beginGroup();var $r=[],xn=[$r],Wn=[],si=[];for(si.push(Ri(mt));;){var Si=mt.parseExpression(!1,"\\cr");mt.gullet.endGroup(),mt.gullet.beginGroup(),Si={type:"ordgroup",mode:mt.mode,body:Si},Ae&&(Si={type:"styling",mode:mt.mode,style:Ae,body:[Si]}),$r.push(Si);var Vi=mt.fetch().text;if(Vi==="&")mt.consume();else if(Vi==="\\end"){$r.length===1&&Si.type==="styling"&&Si.body[0].body.length===0&&xn.pop(),si.length<xn.length+1&&si.push([]);break}else if(Vi==="\\cr"){var oa=Gr(mt.parseFunction(),"cr");Wn.push(oa.size),si.push(Ri(mt)),$r=[],xn.push($r)}else throw new c("Expected & or \\\\ or \\cr or \\end",mt.nextToken)}return mt.gullet.endGroup(),mt.gullet.endGroup(),{type:"array",mode:mt.mode,addJot:Be,arraystretch:Ot,body:xn,cols:dt,rowGaps:Wn,hskipBeforeAndAfter:we,hLinesBeforeRow:si,colSeparationType:br}}function $i(mt){return mt.substr(0,1)==="d"?"display":"text"}var Ca=function(ne,Ae){var we,Be,dt=ne.body.length,Ot=ne.hLinesBeforeRow,br=0,Lr=new Array(dt),$r=[],xn=Math.max(Ae.fontMetrics().arrayRuleWidth,Ae.minRuleThickness),Wn=1/Ae.fontMetrics().ptPerEm,si=5*Wn;if(ne.colSeparationType&&ne.colSeparationType==="small"){var Si=Ae.havingStyle(K.SCRIPT).sizeMultiplier;si=.2778*(Si/Ae.sizeMultiplier)}var Vi=12*Wn,oa=3*Wn,xa=ne.arraystretch*Vi,eo=.7*xa,to=.3*xa,io=0;function Oo(zs){for(var Ja=0;Ja<zs.length;++Ja)Ja>0&&(io+=.25),$r.push({pos:io,isDashed:zs[Ja]})}for(Oo(Ot[0]),we=0;we<ne.body.length;++we){var yo=ne.body[we],Mo=eo,za=to;br<yo.length&&(br=yo.length);var So=new Array(yo.length);for(Be=0;Be<yo.length;++Be){var os=di(yo[Be],Ae);za<os.depth&&(za=os.depth),Mo<os.height&&(Mo=os.height),So[Be]=os}var ns=ne.rowGaps[we],Io=0;ns&&(Io=or(ns,Ae),Io>0&&(Io+=to,za<Io&&(za=Io),Io=0)),ne.addJot&&(za+=oa),So.height=Mo,So.depth=za,io+=Mo,So.pos=io,io+=za+Io,Lr[we]=So,Oo(Ot[we+1])}var Xo=io/2+Ae.fontMetrics().axisHeight,Ds=ne.cols||[],Es=[],Wo,ws;for(Be=0,ws=0;Be<br||ws<Ds.length;++Be,++ws){for(var ds=Ds[ws]||{},yl=!0;ds.type==="separator";){if(yl||(Wo=ir.makeSpan(["arraycolsep"],[]),Wo.style.width=Ae.fontMetrics().doubleRuleSep+"em",Es.push(Wo)),ds.separator==="|"||ds.separator===":"){var bl=ds.separator==="|"?"solid":"dashed",Cs=ir.makeSpan(["vertical-separator"],[],Ae);Cs.style.height=io+"em",Cs.style.borderRightWidth=xn+"em",Cs.style.borderRightStyle=bl,Cs.style.margin="0 -"+xn/2+"em",Cs.style.verticalAlign=-(io-Xo)+"em",Es.push(Cs)}else throw new c("Invalid separator type: "+ds.separator);ws++,ds=Ds[ws]||{},yl=!1}if(Be>=br)continue;var Lo=void 0;(Be>0||ne.hskipBeforeAndAfter)&&(Lo=p.deflt(ds.pregap,si),Lo!==0&&(Wo=ir.makeSpan(["arraycolsep"],[]),Wo.style.width=Lo+"em",Es.push(Wo)));var ra=[];for(we=0;we<dt;++we){var tl=Lr[we],Ks=tl[Be];if(!Ks)continue;var Ws=tl.pos-Xo;Ks.depth=tl.depth,Ks.height=tl.height,ra.push({type:"elem",elem:Ks,shift:Ws})}ra=ir.makeVList({positionType:"individualShift",children:ra},Ae),ra=ir.makeSpan(["col-align-"+(ds.align||"c")],[ra]),Es.push(ra),(Be<br-1||ne.hskipBeforeAndAfter)&&(Lo=p.deflt(ds.postgap,si),Lo!==0&&(Wo=ir.makeSpan(["arraycolsep"],[]),Wo.style.width=Lo+"em",Es.push(Wo)))}if(Lr=ir.makeSpan(["mtable"],Es),$r.length>0){for(var hs=ir.makeLineSpan("hline",Ae,xn),ks=ir.makeLineSpan("hdashline",Ae,xn),al=[{type:"elem",elem:Lr,shift:0}];$r.length>0;){var Bs=$r.pop(),Xs=Bs.pos-Xo;Bs.isDashed?al.push({type:"elem",elem:ks,shift:Xs}):al.push({type:"elem",elem:hs,shift:Xs})}Lr=ir.makeVList({positionType:"individualShift",children:al},Ae)}return ir.makeSpan(["mord"],[Lr],Ae)},Ma={c:"center ",l:"left ",r:"right "},qi=function(ne,Ae){var we=new pi.MathNode("mtable",ne.body.map(function(io){return new pi.MathNode("mtr",io.map(function(Oo){return new pi.MathNode("mtd",[Gt(Oo,Ae)])}))})),Be=ne.arraystretch===.5?.1:.16+ne.arraystretch-1+(ne.addJot?.09:0);we.setAttribute("rowspacing",Be+"em");var dt="",Ot="";if(ne.cols){var br=ne.cols,Lr="",$r=!1,xn=0,Wn=br.length;br[0].type==="separator"&&(dt+="top ",xn=1),br[br.length-1].type==="separator"&&(dt+="bottom ",Wn-=1);for(var si=xn;si<Wn;si++)br[si].type==="align"?(Ot+=Ma[br[si].align],$r&&(Lr+="none "),$r=!0):br[si].type==="separator"&&($r&&(Lr+=br[si].separator==="|"?"solid ":"dashed ",$r=!1));we.setAttribute("columnalign",Ot.trim()),/[sd]/.test(Lr)&&we.setAttribute("columnlines",Lr.trim())}if(ne.colSeparationType==="align"){for(var Si=ne.cols||[],Vi="",oa=1;oa<Si.length;oa++)Vi+=oa%2?"0em ":"1em ";we.setAttribute("columnspacing",Vi.trim())}else ne.colSeparationType==="alignat"?we.setAttribute("columnspacing","0em"):ne.colSeparationType==="small"?we.setAttribute("columnspacing","0.2778em"):we.setAttribute("columnspacing","1em");var xa="",eo=ne.hLinesBeforeRow;dt+=eo[0].length>0?"left ":"",dt+=eo[eo.length-1].length>0?"right ":"";for(var to=1;to<eo.length-1;to++)xa+=eo[to].length===0?"none ":eo[to][0]?"dashed ":"solid ";return/[sd]/.test(xa)&&we.setAttribute("rowlines",xa.trim()),dt!==""&&(we=new pi.MathNode("menclose",[we]),we.setAttribute("notation",dt.trim())),ne.arraystretch&&ne.arraystretch<1&&(we=new pi.MathNode("mstyle",[we]),we.setAttribute("scriptlevel","1")),we},Yi=function(ne,Ae){var we=[],Be=ta(ne.parser,{cols:we,addJot:!0},"display"),dt,Ot=0,br={type:"ordgroup",mode:ne.mode,body:[]},Lr=kr(Ae[0],"ordgroup");if(Lr){for(var $r="",xn=0;xn<Lr.body.length;xn++){var Wn=Gr(Lr.body[xn],"textord");$r+=Wn.text}dt=Number($r),Ot=dt*2}var si=!Ot;Be.body.forEach(function(xa){for(var eo=1;eo<xa.length;eo+=2){var to=Gr(xa[eo],"styling"),io=Gr(to.body[0],"ordgroup");io.body.unshift(br)}if(si)Ot<xa.length&&(Ot=xa.length);else{var Oo=xa.length/2;if(dt<Oo)throw new c("Too many math in a row: "+("expected "+dt+", but got "+Oo),xa[0])}});for(var Si=0;Si<Ot;++Si){var Vi="r",oa=0;Si%2===1?Vi="l":Si>0&&si&&(oa=1),we[Si]={type:"align",align:Vi,pregap:oa,postgap:0}}return Be.colSeparationType=si?"align":"alignat",Be};zi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ne,Ae){var we=ii(Ae[0]),Be=we?[Ae[0]]:Gr(Ae[0],"ordgroup").body,dt=Be.map(function(br){var Lr=kn(br),$r=Lr.text;if("lcr".indexOf($r)!==-1)return{type:"align",align:$r};if($r==="|")return{type:"separator",separator:"|"};if($r===":")return{type:"separator",separator:":"};throw new c("Unknown column alignment: "+$r,br)}),Ot={cols:dt,hskipBeforeAndAfter:!0};return ta(ne.parser,Ot,$i(ne.envName))},htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ne){var Ae={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ne.envName],we={hskipBeforeAndAfter:!1},Be=ta(ne.parser,we,$i(ne.envName));return Ae?{type:"leftright",mode:ne.mode,body:[Be],left:Ae[0],right:Ae[1],rightColor:void 0}:Be},htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ne){var Ae={arraystretch:.5},we=ta(ne.parser,Ae,"script");return we.colSeparationType="small",we},htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ne,Ae){var we=ii(Ae[0]),Be=we?[Ae[0]]:Gr(Ae[0],"ordgroup").body,dt=Be.map(function(br){var Lr=kn(br),$r=Lr.text;if("lc".indexOf($r)!==-1)return{type:"align",align:$r};throw new c("Unknown column alignment: "+$r,br)});if(dt.length>1)throw new c("{subarray} can contain only one column");var Ot={cols:dt,hskipBeforeAndAfter:!1,arraystretch:.5};if(Ot=ta(ne.parser,Ot,"script"),Ot.body[0].length>1)throw new c("{subarray} can contain only one column");return Ot},htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ne){var Ae={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},we=ta(ne.parser,Ae,$i(ne.envName));return{type:"leftright",mode:ne.mode,body:[we],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["aligned"],props:{numArgs:0},handler:Yi,htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ne){var Ae={cols:[{type:"align",align:"c"}],addJot:!0};return ta(ne.parser,Ae,"display")},htmlBuilder:Ca,mathmlBuilder:qi}),zi({type:"array",names:["alignedat"],props:{numArgs:1},handler:Yi,htmlBuilder:Ca,mathmlBuilder:qi}),on({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ne,Ae){throw new c(ne.funcName+" valid only within array environment")}});var Pa=ca,ya=Pa;on({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0];if(dt.type!=="ordgroup")throw new c("Invalid environment name",dt);for(var Ot="",br=0;br<dt.body.length;++br)Ot+=Gr(dt.body[br],"textord").text;if(Be==="\\begin"){if(!ya.hasOwnProperty(Ot))throw new c("No such environment: "+Ot,dt);var Lr=ya[Ot],$r=we.parseArguments("\\begin{"+Ot+"}",Lr),xn=$r.args,Wn=$r.optArgs,si={mode:we.mode,envName:Ot,parser:we},Si=Lr.handler(si,xn,Wn);we.expect("\\end",!1);var Vi=we.nextToken,oa=Gr(we.parseFunction(),"environment");if(oa.name!==Ot)throw new c("Mismatch: \\begin{"+Ot+"} matched by \\end{"+oa.name+"}",Vi);return Si}return{type:"environment",mode:we.mode,name:Ot,nameGroup:dt}}});var Ci=ir.makeSpan;function la(mt,ne){var Ae=mn(mt.body,ne,!0);return Ci([mt.mclass],Ae,ne)}function Ha(mt,ne){var Ae,we=Fi(mt.body,ne);return mt.mclass==="minner"?pi.newDocumentFragment(we):(mt.mclass==="mord"?mt.isCharacterBox?(Ae=we[0],Ae.type="mi"):Ae=new pi.MathNode("mi",we):(mt.isCharacterBox?(Ae=we[0],Ae.type="mo"):Ae=new pi.MathNode("mo",we),mt.mclass==="mbin"?(Ae.attributes.lspace="0.22em",Ae.attributes.rspace="0.22em"):mt.mclass==="mpunct"?(Ae.attributes.lspace="0em",Ae.attributes.rspace="0.17em"):(mt.mclass==="mopen"||mt.mclass==="mclose")&&(Ae.attributes.lspace="0em",Ae.attributes.rspace="0em")),Ae)}on({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0];return{type:"mclass",mode:we.mode,mclass:"m"+Be.substr(5),body:ri(dt),isCharacterBox:p.isCharacterBox(dt)}},htmlBuilder:la,mathmlBuilder:Ha});var ka=function(ne){var Ae=ne.type==="ordgroup"&&ne.body.length?ne.body[0]:ne;return Ae.type==="atom"&&(Ae.family==="bin"||Ae.family==="rel")?"m"+Ae.family:"mord"};on({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ne,Ae){var we=ne.parser;return{type:"mclass",mode:we.mode,mclass:ka(Ae[0]),body:[Ae[1]],isCharacterBox:p.isCharacterBox(Ae[1])}}}),on({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[1],Ot=Ae[0],br;Be!=="\\stackrel"?br=ka(dt):br="mrel";var Lr={type:"op",mode:dt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Be!=="\\stackrel",body:ri(dt)},$r={type:"supsub",mode:Ot.mode,base:Lr,sup:Be==="\\underset"?null:Ot,sub:Be==="\\underset"?Ot:null};return{type:"mclass",mode:we.mode,mclass:br,body:[$r],isCharacterBox:p.isCharacterBox($r)}},htmlBuilder:la,mathmlBuilder:Ha});var Aa=function(ne,Ae){var we=ne.font,Be=Ae.withFont(we);return di(ne.body,Be)},Sa=function(ne,Ae){var we=ne.font,Be=Ae.withFont(we);return Gt(ne.body,Be)},Ya={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};on({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0],Ot=Be;return Ot in Ya&&(Ot=Ya[Ot]),{type:"font",mode:we.mode,font:Ot.slice(1),body:dt}},htmlBuilder:Aa,mathmlBuilder:Sa}),on({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ne,Ae){var we=ne.parser,Be=Ae[0],dt=p.isCharacterBox(Be);return{type:"mclass",mode:we.mode,mclass:ka(Be),body:[{type:"font",mode:we.mode,font:"boldsymbol",body:Be}],isCharacterBox:dt}}}),on({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=ne.breakOnTokenText,Ot=we.mode,br=we.parseExpression(!0,dt),Lr="math"+Be.slice(1);return{type:"font",mode:Ot,font:Lr,body:{type:"ordgroup",mode:we.mode,body:br}}},htmlBuilder:Aa,mathmlBuilder:Sa});var Ta=function(ne,Ae){var we=Ae;return ne==="display"?we=we.id>=K.SCRIPT.id?we.text():K.DISPLAY:ne==="text"&&we.size===K.DISPLAY.size?we=K.TEXT:ne==="script"?we=K.SCRIPT:ne==="scriptscript"&&(we=K.SCRIPTSCRIPT),we},Ga=function(ne,Ae){var we=Ta(ne.size,Ae.style),Be=we.fracNum(),dt=we.fracDen(),Ot;Ot=Ae.havingStyle(Be);var br=di(ne.numer,Ot,Ae);if(ne.continued){var Lr=8.5/Ae.fontMetrics().ptPerEm,$r=3.5/Ae.fontMetrics().ptPerEm;br.height=br.height<Lr?Lr:br.height,br.depth=br.depth<$r?$r:br.depth}Ot=Ae.havingStyle(dt);var xn=di(ne.denom,Ot,Ae),Wn,si,Si;ne.hasBarLine?(ne.barSize?(si=or(ne.barSize,Ae),Wn=ir.makeLineSpan("frac-line",Ae,si)):Wn=ir.makeLineSpan("frac-line",Ae),si=Wn.height,Si=Wn.height):(Wn=null,si=0,Si=Ae.fontMetrics().defaultRuleThickness);var Vi,oa,xa;we.size===K.DISPLAY.size||ne.size==="display"?(Vi=Ae.fontMetrics().num1,si>0?oa=3*Si:oa=7*Si,xa=Ae.fontMetrics().denom1):(si>0?(Vi=Ae.fontMetrics().num2,oa=Si):(Vi=Ae.fontMetrics().num3,oa=3*Si),xa=Ae.fontMetrics().denom2);var eo;if(Wn){var io=Ae.fontMetrics().axisHeight;Vi-br.depth-(io+.5*si)<oa&&(Vi+=oa-(Vi-br.depth-(io+.5*si))),io-.5*si-(xn.height-xa)<oa&&(xa+=oa-(io-.5*si-(xn.height-xa)));var Oo=-(io-.5*si);eo=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:xn,shift:xa},{type:"elem",elem:Wn,shift:Oo},{type:"elem",elem:br,shift:-Vi}]},Ae)}else{var to=Vi-br.depth-(xn.height-xa);to<oa&&(Vi+=.5*(oa-to),xa+=.5*(oa-to)),eo=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:xn,shift:xa},{type:"elem",elem:br,shift:-Vi}]},Ae)}Ot=Ae.havingStyle(we),eo.height*=Ot.sizeMultiplier/Ae.sizeMultiplier,eo.depth*=Ot.sizeMultiplier/Ae.sizeMultiplier;var yo;we.size===K.DISPLAY.size?yo=Ae.fontMetrics().delim1:yo=Ae.fontMetrics().delim2;var Mo,za;return ne.leftDelim==null?Mo=ti(Ae,["mopen"]):Mo=Xn.customSizedDelim(ne.leftDelim,yo,!0,Ae.havingStyle(we),ne.mode,["mopen"]),ne.continued?za=ir.makeSpan([]):ne.rightDelim==null?za=ti(Ae,["mclose"]):za=Xn.customSizedDelim(ne.rightDelim,yo,!0,Ae.havingStyle(we),ne.mode,["mclose"]),ir.makeSpan(["mord"].concat(Ot.sizingClasses(Ae)),[Mo,ir.makeSpan(["mfrac"],[eo]),za],Ae)},uo=function(ne,Ae){var we=new pi.MathNode("mfrac",[Gt(ne.numer,Ae),Gt(ne.denom,Ae)]);if(!ne.hasBarLine)we.setAttribute("linethickness","0px");else if(ne.barSize){var Be=or(ne.barSize,Ae);we.setAttribute("linethickness",Be+"em")}var dt=Ta(ne.size,Ae.style);if(dt.size!==Ae.style.size){we=new pi.MathNode("mstyle",[we]);var Ot=dt.size===K.DISPLAY.size?"true":"false";we.setAttribute("displaystyle",Ot),we.setAttribute("scriptlevel","0")}if(ne.leftDelim!=null||ne.rightDelim!=null){var br=[];if(ne.leftDelim!=null){var Lr=new pi.MathNode("mo",[new pi.TextNode(ne.leftDelim.replace("\\",""))]);Lr.setAttribute("fence","true"),br.push(Lr)}if(br.push(we),ne.rightDelim!=null){var $r=new pi.MathNode("mo",[new pi.TextNode(ne.rightDelim.replace("\\",""))]);$r.setAttribute("fence","true"),br.push($r)}return Li(br)}return we};on({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0],Ot=Ae[1],br,Lr=null,$r=null,xn="auto";switch(Be){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":br=!0;break;case"\\\\atopfrac":br=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":br=!1,Lr="(",$r=")";break;case"\\\\bracefrac":br=!1,Lr="\\{",$r="\\}";break;case"\\\\brackfrac":br=!1,Lr="[",$r="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Be){case"\\cfrac":case"\\dfrac":case"\\dbinom":xn="display";break;case"\\tfrac":case"\\tbinom":xn="text";break}return{type:"genfrac",mode:we.mode,continued:Be==="\\cfrac",numer:dt,denom:Ot,hasBarLine:br,leftDelim:Lr,rightDelim:$r,size:xn,barSize:null}},htmlBuilder:Ga,mathmlBuilder:uo}),on({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ne){var Ae=ne.parser,we=ne.funcName,Be=ne.token,dt;switch(we){case"\\over":dt="\\frac";break;case"\\choose":dt="\\binom";break;case"\\atop":dt="\\\\atopfrac";break;case"\\brace":dt="\\\\bracefrac";break;case"\\brack":dt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:Ae.mode,replaceWith:dt,token:Be}}});var aa=["display","text","script","scriptscript"],ho=function(ne){var Ae=null;return ne.length>0&&(Ae=ne,Ae=Ae==="."?null:Ae),Ae};on({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ne,Ae){var we=ne.parser,Be=Ae[4],dt=Ae[5],Ot=kr(Ae[0],"atom");Ot&&(Ot=yr(Ae[0],"open"));var br=Ot?ho(Ot.text):null,Lr=kr(Ae[1],"atom");Lr&&(Lr=yr(Ae[1],"close"));var $r=Lr?ho(Lr.text):null,xn=Gr(Ae[2],"size"),Wn,si=null;xn.isBlank?Wn=!0:(si=xn.value,Wn=si.number>0);var Si="auto",Vi=kr(Ae[3],"ordgroup");if(Vi){if(Vi.body.length>0){var oa=Gr(Vi.body[0],"textord");Si=aa[Number(oa.text)]}}else Vi=Gr(Ae[3],"textord"),Si=aa[Number(Vi.text)];return{type:"genfrac",mode:we.mode,numer:Be,denom:dt,continued:!1,hasBarLine:Wn,barSize:si,leftDelim:br,rightDelim:$r,size:Si}},htmlBuilder:Ga,mathmlBuilder:uo}),on({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=ne.token;return{type:"infix",mode:we.mode,replaceWith:"\\\\abovefrac",size:Gr(Ae[0],"size").value,token:dt}}}),on({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0],Ot=u(Gr(Ae[1],"infix").size),br=Ae[2],Lr=Ot.number>0;return{type:"genfrac",mode:we.mode,numer:dt,denom:br,continued:!1,hasBarLine:Lr,barSize:Ot,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ga,mathmlBuilder:uo});var Ua=function(ne,Ae){var we=Ae.style,Be,dt,Ot=kr(ne,"supsub");Ot?(Be=Ot.sup?di(Ot.sup,Ae.havingStyle(we.sup()),Ae):di(Ot.sub,Ae.havingStyle(we.sub()),Ae),dt=Gr(Ot.base,"horizBrace")):dt=Gr(ne,"horizBrace");var br=di(dt.base,Ae.havingBaseStyle(K.DISPLAY)),Lr=On.svgSpan(dt,Ae),$r;if(dt.isOver?($r=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:br},{type:"kern",size:.1},{type:"elem",elem:Lr}]},Ae),$r.children[0].children[0].children[1].classes.push("svg-align")):($r=ir.makeVList({positionType:"bottom",positionData:br.depth+.1+Lr.height,children:[{type:"elem",elem:Lr},{type:"kern",size:.1},{type:"elem",elem:br}]},Ae),$r.children[0].children[0].children[0].classes.push("svg-align")),Be){var xn=ir.makeSpan(["mord",dt.isOver?"mover":"munder"],[$r],Ae);dt.isOver?$r=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xn},{type:"kern",size:.2},{type:"elem",elem:Be}]},Ae):$r=ir.makeVList({positionType:"bottom",positionData:xn.depth+.2+Be.height+Be.depth,children:[{type:"elem",elem:Be},{type:"kern",size:.2},{type:"elem",elem:xn}]},Ae)}return ir.makeSpan(["mord",dt.isOver?"mover":"munder"],[$r],Ae)},Na=function(ne,Ae){var we=On.mathMLnode(ne.label);return new pi.MathNode(ne.isOver?"mover":"munder",[Gt(ne.base,Ae),we])};on({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName;return{type:"horizBrace",mode:we.mode,label:Be,isOver:/^\\over/.test(Be),base:Ae[0]}},htmlBuilder:Ua,mathmlBuilder:Na}),on({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=Ae[1],dt=Gr(Ae[0],"url").url;return we.settings.isTrusted({command:"\\href",url:dt})?{type:"href",mode:we.mode,href:dt,body:ri(Be)}:we.formatUnsupportedCmd("\\href")},htmlBuilder:function(ne,Ae){var we=mn(ne.body,Ae,!1);return ir.makeAnchor(ne.href,[],we,Ae)},mathmlBuilder:function(ne,Ae){var we=ia(ne.body,Ae);return we instanceof na||(we=new na("mrow",[we])),we.setAttribute("href",ne.href),we}}),on({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=Gr(Ae[0],"url").url;if(!we.settings.isTrusted({command:"\\url",url:Be}))return we.formatUnsupportedCmd("\\url");for(var dt=[],Ot=0;Ot<Be.length;Ot++){var br=Be[Ot];br==="~"&&(br="\\textasciitilde"),dt.push({type:"textord",mode:"text",text:br})}var Lr={type:"text",mode:we.mode,font:"\\texttt",body:dt};return{type:"href",mode:we.mode,href:Be,body:ri(Lr)}}}),on({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser;return{type:"htmlmathml",mode:we.mode,html:ri(Ae[0]),mathml:ri(Ae[1])}},htmlBuilder:function(ne,Ae){var we=mn(ne.html,Ae,!1);return ir.makeFragment(we)},mathmlBuilder:function(ne,Ae){return ia(ne.mathml,Ae)}});var $a=function(ne){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ne))return{number:+ne,unit:"bp"};var Ae=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ne);if(!Ae)throw new c("Invalid size: '"+ne+"' in \\includegraphics");var we={number:+(Ae[1]+Ae[2]),unit:Ae[3]};if(!gr(we))throw new c("Invalid unit: '"+we.unit+"' in \\includegraphics.");return we};on({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ne,Ae,we){var Be=ne.parser,dt={number:0,unit:"em"},Ot={number:.9,unit:"em"},br={number:0,unit:"em"},Lr="";if(we[0])for(var $r=Gr(we[0],"raw").string,xn=$r.split(","),Wn=0;Wn<xn.length;Wn++){var si=xn[Wn].split("=");if(si.length===2){var Si=si[1].trim();switch(si[0].trim()){case"alt":Lr=Si;break;case"width":dt=$a(Si);break;case"height":Ot=$a(Si);break;case"totalheight":br=$a(Si);break;default:throw new c("Invalid key: '"+si[0]+"' in \\includegraphics.")}}}var Vi=Gr(Ae[0],"url").url;return Lr===""&&(Lr=Vi,Lr=Lr.replace(/^.*[\\/]/,""),Lr=Lr.substring(0,Lr.lastIndexOf("."))),Be.settings.isTrusted({command:"\\includegraphics",url:Vi})?{type:"includegraphics",mode:Be.mode,alt:Lr,width:dt,height:Ot,totalheight:br,src:Vi}:Be.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ne,Ae){var we=or(ne.height,Ae),Be=0;ne.totalheight.number>0&&(Be=or(ne.totalheight,Ae)-we,Be=Number(Be.toFixed(2)));var dt=0;ne.width.number>0&&(dt=or(ne.width,Ae));var Ot={height:we+Be+"em"};dt>0&&(Ot.width=dt+"em"),Be>0&&(Ot.verticalAlign=-Be+"em");var br=new ve(ne.src,ne.alt,Ot);return br.height=we,br.depth=Be,br},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mglyph",[]);we.setAttribute("alt",ne.alt);var Be=or(ne.height,Ae),dt=0;if(ne.totalheight.number>0&&(dt=or(ne.totalheight,Ae)-Be,dt=dt.toFixed(2),we.setAttribute("valign","-"+dt+"em")),we.setAttribute("height",Be+dt+"em"),ne.width.number>0){var Ot=or(ne.width,Ae);we.setAttribute("width",Ot+"em")}return we.setAttribute("src",ne.src),we}}),on({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Gr(Ae[0],"size");if(we.settings.strict){var Ot=Be[1]==="m",br=dt.value.unit==="mu";Ot?(br||we.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Be+" supports only mu units, "+("not "+dt.value.unit+" units")),we.mode!=="math"&&we.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Be+" works only in math mode")):br&&we.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Be+" doesn't support mu units")}return{type:"kern",mode:we.mode,dimension:dt.value}},htmlBuilder:function(ne,Ae){return ir.makeGlue(ne.dimension,Ae)},mathmlBuilder:function(ne,Ae){var we=or(ne.dimension,Ae);return new pi.SpaceNode(we)}}),on({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0];return{type:"lap",mode:we.mode,alignment:Be.slice(5),body:dt}},htmlBuilder:function(ne,Ae){var we;ne.alignment==="clap"?(we=ir.makeSpan([],[di(ne.body,Ae)]),we=ir.makeSpan(["inner"],[we],Ae)):we=ir.makeSpan(["inner"],[di(ne.body,Ae)]);var Be=ir.makeSpan(["fix"],[]),dt=ir.makeSpan([ne.alignment],[we,Be],Ae),Ot=ir.makeSpan(["strut"]);return Ot.style.height=dt.height+dt.depth+"em",Ot.style.verticalAlign=-dt.depth+"em",dt.children.unshift(Ot),dt=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:dt}]},Ae),ir.makeSpan(["mord"],[dt],Ae)},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mpadded",[Gt(ne.body,Ae)]);if(ne.alignment!=="rlap"){var Be=ne.alignment==="llap"?"-1":"-0.5";we.setAttribute("lspace",Be+"width")}return we.setAttribute("width","0px"),we}}),on({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ne,Ae){var we=ne.funcName,Be=ne.parser,dt=Be.mode;Be.switchMode("math");var Ot=we==="\\("?"\\)":"$",br=Be.parseExpression(!1,Ot);return Be.expect(Ot),Be.switchMode(dt),{type:"styling",mode:Be.mode,style:"text",body:br}}}),on({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ne,Ae){throw new c("Mismatched "+ne.funcName)}});var Ra=function(ne,Ae){switch(Ae.style.size){case K.DISPLAY.size:return ne.display;case K.TEXT.size:return ne.text;case K.SCRIPT.size:return ne.script;case K.SCRIPTSCRIPT.size:return ne.scriptscript;default:return ne.text}};on({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ne,Ae){var we=ne.parser;return{type:"mathchoice",mode:we.mode,display:ri(Ae[0]),text:ri(Ae[1]),script:ri(Ae[2]),scriptscript:ri(Ae[3])}},htmlBuilder:function(ne,Ae){var we=Ra(ne,Ae),Be=mn(we,Ae,!1);return ir.makeFragment(Be)},mathmlBuilder:function(ne,Ae){var we=Ra(ne,Ae);return ia(we,Ae)}});var Ka=function(ne,Ae,we,Be,dt,Ot,br){ne=ir.makeSpan([],[ne]);var Lr,$r;if(Ae){var xn=di(Ae,Be.havingStyle(dt.sup()),Be);$r={elem:xn,kern:Math.max(Be.fontMetrics().bigOpSpacing1,Be.fontMetrics().bigOpSpacing3-xn.depth)}}if(we){var Wn=di(we,Be.havingStyle(dt.sub()),Be);Lr={elem:Wn,kern:Math.max(Be.fontMetrics().bigOpSpacing2,Be.fontMetrics().bigOpSpacing4-Wn.height)}}var si;if($r&&Lr){var Si=Be.fontMetrics().bigOpSpacing5+Lr.elem.height+Lr.elem.depth+Lr.kern+ne.depth+br;si=ir.makeVList({positionType:"bottom",positionData:Si,children:[{type:"kern",size:Be.fontMetrics().bigOpSpacing5},{type:"elem",elem:Lr.elem,marginLeft:-Ot+"em"},{type:"kern",size:Lr.kern},{type:"elem",elem:ne},{type:"kern",size:$r.kern},{type:"elem",elem:$r.elem,marginLeft:Ot+"em"},{type:"kern",size:Be.fontMetrics().bigOpSpacing5}]},Be)}else if(Lr){var Vi=ne.height-br;si=ir.makeVList({positionType:"top",positionData:Vi,children:[{type:"kern",size:Be.fontMetrics().bigOpSpacing5},{type:"elem",elem:Lr.elem,marginLeft:-Ot+"em"},{type:"kern",size:Lr.kern},{type:"elem",elem:ne}]},Be)}else if($r){var oa=ne.depth+br;si=ir.makeVList({positionType:"bottom",positionData:oa,children:[{type:"elem",elem:ne},{type:"kern",size:$r.kern},{type:"elem",elem:$r.elem,marginLeft:Ot+"em"},{type:"kern",size:Be.fontMetrics().bigOpSpacing5}]},Be)}else return ne;return ir.makeSpan(["mop","op-limits"],[si],Be)},bo=["\\smallint"],no=function(ne,Ae){var we,Be,dt=!1,Ot,br=kr(ne,"supsub");br?(we=br.sup,Be=br.sub,Ot=Gr(br.base,"op"),dt=!0):Ot=Gr(ne,"op");var Lr=Ae.style,$r=!1;Lr.size===K.DISPLAY.size&&Ot.symbol&&!p.contains(bo,Ot.name)&&($r=!0);var xn;if(Ot.symbol){var Wn=$r?"Size2-Regular":"Size1-Regular",si="";if((Ot.name==="\\oiint"||Ot.name==="\\oiiint")&&(si=Ot.name.substr(1),Ot.name=si==="oiint"?"\\iint":"\\iiint"),xn=ir.makeSymbol(Ot.name,Wn,"math",Ae,["mop","op-symbol",$r?"large-op":"small-op"]),si.length>0){var Si=xn.italic,Vi=ir.staticSvg(si+"Size"+($r?"2":"1"),Ae);xn=ir.makeVList({positionType:"individualShift",children:[{type:"elem",elem:xn,shift:0},{type:"elem",elem:Vi,shift:$r?.08:0}]},Ae),Ot.name="\\"+si,xn.classes.unshift("mop"),xn.italic=Si}}else if(Ot.body){var oa=mn(Ot.body,Ae,!0);oa.length===1&&oa[0]instanceof _e?(xn=oa[0],xn.classes[0]="mop"):xn=ir.makeSpan(["mop"],ir.tryCombineChars(oa),Ae)}else{for(var xa=[],eo=1;eo<Ot.name.length;eo++)xa.push(ir.mathsym(Ot.name[eo],Ot.mode,Ae));xn=ir.makeSpan(["mop"],xa,Ae)}var to=0,io=0;return(xn instanceof _e||Ot.name==="\\oiint"||Ot.name==="\\oiiint")&&!Ot.suppressBaseShift&&(to=(xn.height-xn.depth)/2-Ae.fontMetrics().axisHeight,io=xn.italic),dt?Ka(xn,we,Be,Ae,Lr,io,to):(to&&(xn.style.position="relative",xn.style.top=to+"em"),xn)},Co=function(ne,Ae){var we;if(ne.symbol)we=new na("mo",[ln(ne.name,ne.mode)]),p.contains(bo,ne.name)&&we.setAttribute("largeop","false");else if(ne.body)we=new na("mo",Fi(ne.body,Ae));else{we=new na("mi",[new ea(ne.name.slice(1))]);var Be=new na("mo",[ln("\u2061","text")]);ne.parentIsSupSub?we=new na("mo",[we,Be]):we=Wi([we,Be])}return we},fo={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};on({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(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Be;return dt.length===1&&(dt=fo[dt]),{type:"op",mode:we.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:dt}},htmlBuilder:no,mathmlBuilder:Co}),on({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser,Be=Ae[0];return{type:"op",mode:we.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ri(Be)}},htmlBuilder:no,mathmlBuilder:Co});var po={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};on({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(ne){var Ae=ne.parser,we=ne.funcName;return{type:"op",mode:Ae.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:we}},htmlBuilder:no,mathmlBuilder:Co}),on({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ne){var Ae=ne.parser,we=ne.funcName;return{type:"op",mode:Ae.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:we}},htmlBuilder:no,mathmlBuilder:Co}),on({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ne){var Ae=ne.parser,we=ne.funcName,Be=we;return Be.length===1&&(Be=po[Be]),{type:"op",mode:Ae.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Be}},htmlBuilder:no,mathmlBuilder:Co});var Za=function(ne,Ae){var we,Be,dt=!1,Ot,br=kr(ne,"supsub");br?(we=br.sup,Be=br.sub,Ot=Gr(br.base,"operatorname"),dt=!0):Ot=Gr(ne,"operatorname");var Lr;if(Ot.body.length>0){for(var $r=Ot.body.map(function(Si){var Vi=Si.text;return typeof Vi=="string"?{type:"textord",mode:Si.mode,text:Vi}:Si}),xn=mn($r,Ae.withFont("mathrm"),!0),Wn=0;Wn<xn.length;Wn++){var si=xn[Wn];si instanceof _e&&(si.text=si.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Lr=ir.makeSpan(["mop"],xn,Ae)}else Lr=ir.makeSpan(["mop"],[],Ae);return dt?Ka(Lr,we,Be,Ae,Ae.style,0,0):Lr},qa=function(ne,Ae){for(var we=Fi(ne.body,Ae.withFont("mathrm")),Be=!0,dt=0;dt<we.length;dt++){var Ot=we[dt];if(!(Ot instanceof pi.SpaceNode))if(Ot instanceof pi.MathNode)switch(Ot.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var br=Ot.children[0];Ot.children.length===1&&br instanceof pi.TextNode?br.text=br.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Be=!1;break}default:Be=!1}else Be=!1}if(Be){var Lr=we.map(function(Wn){return Wn.toText()}).join("");we=[new pi.TextNode(Lr)]}var $r=new pi.MathNode("mi",we);$r.setAttribute("mathvariant","normal");var xn=new pi.MathNode("mo",[ln("\u2061","text")]);return ne.parentIsSupSub?new pi.MathNode("mo",[$r,xn]):pi.newDocumentFragment([$r,xn])};on({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0];return{type:"operatorname",mode:we.mode,body:ri(dt),alwaysHandleSupSub:Be==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Za,mathmlBuilder:qa}),li({type:"ordgroup",htmlBuilder:function(ne,Ae){return ne.semisimple?ir.makeFragment(mn(ne.body,Ae,!1)):ir.makeSpan(["mord"],mn(ne.body,Ae,!0),Ae)},mathmlBuilder:function(ne,Ae){return ia(ne.body,Ae,!0)}}),on({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ne,Ae){var we=ne.parser,Be=Ae[0];return{type:"overline",mode:we.mode,body:Be}},htmlBuilder:function(ne,Ae){var we=di(ne.body,Ae.havingCrampedStyle()),Be=ir.makeLineSpan("overline-line",Ae),dt=Ae.fontMetrics().defaultRuleThickness,Ot=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:we},{type:"kern",size:3*dt},{type:"elem",elem:Be},{type:"kern",size:dt}]},Ae);return ir.makeSpan(["mord","overline"],[Ot],Ae)},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mo",[new pi.TextNode("\u203E")]);we.setAttribute("stretchy","true");var Be=new pi.MathNode("mover",[Gt(ne.body,Ae),we]);return Be.setAttribute("accent","true"),Be}}),on({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=Ae[0];return{type:"phantom",mode:we.mode,body:ri(Be)}},htmlBuilder:function(ne,Ae){var we=mn(ne.body,Ae.withPhantom(),!1);return ir.makeFragment(we)},mathmlBuilder:function(ne,Ae){var we=Fi(ne.body,Ae);return new pi.MathNode("mphantom",we)}}),on({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=Ae[0];return{type:"hphantom",mode:we.mode,body:Be}},htmlBuilder:function(ne,Ae){var we=ir.makeSpan([],[di(ne.body,Ae.withPhantom())]);if(we.height=0,we.depth=0,we.children)for(var Be=0;Be<we.children.length;Be++)we.children[Be].height=0,we.children[Be].depth=0;return we=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:we}]},Ae),ir.makeSpan(["mord"],[we],Ae)},mathmlBuilder:function(ne,Ae){var we=Fi(ri(ne.body),Ae),Be=new pi.MathNode("mphantom",we),dt=new pi.MathNode("mpadded",[Be]);return dt.setAttribute("height","0px"),dt.setAttribute("depth","0px"),dt}}),on({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=Ae[0];return{type:"vphantom",mode:we.mode,body:Be}},htmlBuilder:function(ne,Ae){var we=ir.makeSpan(["inner"],[di(ne.body,Ae.withPhantom())]),Be=ir.makeSpan(["fix"],[]);return ir.makeSpan(["mord","rlap"],[we,Be],Ae)},mathmlBuilder:function(ne,Ae){var we=Fi(ri(ne.body),Ae),Be=new pi.MathNode("mphantom",we),dt=new pi.MathNode("mpadded",[Be]);return dt.setAttribute("width","0px"),dt}}),on({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=Gr(Ae[0],"size").value,dt=Ae[1];return{type:"raisebox",mode:we.mode,dy:Be,body:dt}},htmlBuilder:function(ne,Ae){var we=di(ne.body,Ae),Be=or(ne.dy,Ae);return ir.makeVList({positionType:"shift",positionData:-Be,children:[{type:"elem",elem:we}]},Ae)},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mpadded",[Gt(ne.body,Ae)]),Be=ne.dy.number+ne.dy.unit;return we.setAttribute("voffset",Be),we}}),on({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ne,Ae,we){var Be=ne.parser,dt=we[0],Ot=Gr(Ae[0],"size"),br=Gr(Ae[1],"size");return{type:"rule",mode:Be.mode,shift:dt&&Gr(dt,"size").value,width:Ot.value,height:br.value}},htmlBuilder:function(ne,Ae){var we=ir.makeSpan(["mord","rule"],[],Ae),Be=or(ne.width,Ae),dt=or(ne.height,Ae),Ot=ne.shift?or(ne.shift,Ae):0;return we.style.borderRightWidth=Be+"em",we.style.borderTopWidth=dt+"em",we.style.bottom=Ot+"em",we.width=Be,we.height=dt+Ot,we.depth=-Ot,we.maxFontSize=dt*1.125*Ae.sizeMultiplier,we},mathmlBuilder:function(ne,Ae){var we=or(ne.width,Ae),Be=or(ne.height,Ae),dt=ne.shift?or(ne.shift,Ae):0,Ot=Ae.color&&Ae.getColor()||"black",br=new pi.MathNode("mspace");br.setAttribute("mathbackground",Ot),br.setAttribute("width",we+"em"),br.setAttribute("height",Be+"em");var Lr=new pi.MathNode("mpadded",[br]);return dt>=0?Lr.setAttribute("height","+"+dt+"em"):(Lr.setAttribute("height",dt+"em"),Lr.setAttribute("depth","+"+-dt+"em")),Lr.setAttribute("voffset",dt+"em"),Lr}});function Oa(mt,ne,Ae){for(var we=mn(mt,ne,!1),Be=ne.sizeMultiplier/Ae.sizeMultiplier,dt=0;dt<we.length;dt++){var Ot=we[dt].classes.indexOf("sizing");Ot<0?Array.prototype.push.apply(we[dt].classes,ne.sizingClasses(Ae)):we[dt].classes[Ot+1]==="reset-size"+ne.size&&(we[dt].classes[Ot+1]="reset-size"+Ae.size),we[dt].height*=Be,we[dt].depth*=Be}return ir.makeFragment(we)}var oo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],go=function(ne,Ae){var we=Ae.havingSize(ne.size);return Oa(ne.body,we,Ae)};on({type:"sizing",names:oo,props:{numArgs:0,allowedInText:!0},handler:function(ne,Ae){var we=ne.breakOnTokenText,Be=ne.funcName,dt=ne.parser,Ot=dt.parseExpression(!1,we);return{type:"sizing",mode:dt.mode,size:oo.indexOf(Be)+1,body:Ot}},htmlBuilder:go,mathmlBuilder:function(ne,Ae){var we=Ae.havingSize(ne.size),Be=Fi(ne.body,we),dt=new pi.MathNode("mstyle",Be);return dt.setAttribute("mathsize",we.sizeMultiplier+"em"),dt}}),on({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ne,Ae,we){var Be=ne.parser,dt=!1,Ot=!1,br=we[0]&&Gr(we[0],"ordgroup");if(br)for(var Lr="",$r=0;$r<br.body.length;++$r){var xn=br.body[$r];if(Lr=xn.text,Lr==="t")dt=!0;else if(Lr==="b")Ot=!0;else{dt=!1,Ot=!1;break}}else dt=!0,Ot=!0;var Wn=Ae[0];return{type:"smash",mode:Be.mode,body:Wn,smashHeight:dt,smashDepth:Ot}},htmlBuilder:function(ne,Ae){var we=ir.makeSpan([],[di(ne.body,Ae)]);if(!ne.smashHeight&&!ne.smashDepth)return we;if(ne.smashHeight&&(we.height=0,we.children))for(var Be=0;Be<we.children.length;Be++)we.children[Be].height=0;if(ne.smashDepth&&(we.depth=0,we.children))for(var dt=0;dt<we.children.length;dt++)we.children[dt].depth=0;var Ot=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:we}]},Ae);return ir.makeSpan(["mord"],[Ot],Ae)},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mpadded",[Gt(ne.body,Ae)]);return ne.smashHeight&&we.setAttribute("height","0px"),ne.smashDepth&&we.setAttribute("depth","0px"),we}}),on({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ne,Ae,we){var Be=ne.parser,dt=we[0],Ot=Ae[0];return{type:"sqrt",mode:Be.mode,body:Ot,index:dt}},htmlBuilder:function(ne,Ae){var we=di(ne.body,Ae.havingCrampedStyle());we.height===0&&(we.height=Ae.fontMetrics().xHeight),we=ir.wrapFragment(we,Ae);var Be=Ae.fontMetrics(),dt=Be.defaultRuleThickness,Ot=dt;Ae.style.id<K.TEXT.id&&(Ot=Ae.fontMetrics().xHeight);var br=dt+Ot/4,Lr=we.height+we.depth+br+dt,$r=Xn.sqrtImage(Lr,Ae),xn=$r.span,Wn=$r.ruleWidth,si=$r.advanceWidth,Si=xn.height-Wn;Si>we.height+we.depth+br&&(br=(br+Si-we.height-we.depth)/2);var Vi=xn.height-we.height-br-Wn;we.style.paddingLeft=si+"em";var oa=ir.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:we,wrapperClasses:["svg-align"]},{type:"kern",size:-(we.height+Vi)},{type:"elem",elem:xn},{type:"kern",size:Wn}]},Ae);if(ne.index){var xa=Ae.havingStyle(K.SCRIPTSCRIPT),eo=di(ne.index,xa,Ae),to=.6*(oa.height-oa.depth),io=ir.makeVList({positionType:"shift",positionData:-to,children:[{type:"elem",elem:eo}]},Ae),Oo=ir.makeSpan(["root"],[io]);return ir.makeSpan(["mord","sqrt"],[Oo,oa],Ae)}else return ir.makeSpan(["mord","sqrt"],[oa],Ae)},mathmlBuilder:function(ne,Ae){var we=ne.body,Be=ne.index;return Be?new pi.MathNode("mroot",[Gt(we,Ae),Gt(Be,Ae)]):new pi.MathNode("msqrt",[Gt(we,Ae)])}});var Bi={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};on({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ne,Ae){var we=ne.breakOnTokenText,Be=ne.funcName,dt=ne.parser,Ot=dt.parseExpression(!0,we),br=Be.slice(1,Be.length-5);return{type:"styling",mode:dt.mode,style:br,body:Ot}},htmlBuilder:function(ne,Ae){var we=Bi[ne.style],Be=Ae.havingStyle(we).withFont("");return Oa(ne.body,Be,Ae)},mathmlBuilder:function(ne,Ae){var we=Bi[ne.style],Be=Ae.havingStyle(we),dt=Fi(ne.body,Be),Ot=new pi.MathNode("mstyle",dt),br={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Lr=br[ne.style];return Ot.setAttribute("scriptlevel",Lr[0]),Ot.setAttribute("displaystyle",Lr[1]),Ot}});var pa=function(ne,Ae){var we=ne.base;if(we)if(we.type==="op"){var Be=we.limits&&(Ae.style.size===K.DISPLAY.size||we.alwaysHandleSupSub);return Be?no:null}else if(we.type==="operatorname"){var dt=we.alwaysHandleSupSub&&(Ae.style.size===K.DISPLAY.size||we.limits);return dt?Za:null}else{if(we.type==="accent")return p.isCharacterBox(we.base)?Rn:null;if(we.type==="horizBrace"){var Ot=!ne.sub;return Ot===we.isOver?Ua:null}else return null}else return null};li({type:"supsub",htmlBuilder:function(ne,Ae){var we=pa(ne,Ae);if(we)return we(ne,Ae);var Be=ne.base,dt=ne.sup,Ot=ne.sub,br=di(Be,Ae),Lr,$r,xn=Ae.fontMetrics(),Wn=0,si=0,Si=Be&&p.isCharacterBox(Be);if(dt){var Vi=Ae.havingStyle(Ae.style.sup());Lr=di(dt,Vi,Ae),Si||(Wn=br.height-Vi.fontMetrics().supDrop*Vi.sizeMultiplier/Ae.sizeMultiplier)}if(Ot){var oa=Ae.havingStyle(Ae.style.sub());$r=di(Ot,oa,Ae),Si||(si=br.depth+oa.fontMetrics().subDrop*oa.sizeMultiplier/Ae.sizeMultiplier)}var xa;Ae.style===K.DISPLAY?xa=xn.sup1:Ae.style.cramped?xa=xn.sup3:xa=xn.sup2;var eo=Ae.sizeMultiplier,to=.5/xn.ptPerEm/eo+"em",io=null;if($r){var Oo=ne.base&&ne.base.type==="op"&&ne.base.name&&(ne.base.name==="\\oiint"||ne.base.name==="\\oiiint");(br instanceof _e||Oo)&&(io=-br.italic+"em")}var yo;if(Lr&&$r){Wn=Math.max(Wn,xa,Lr.depth+.25*xn.xHeight),si=Math.max(si,xn.sub2);var Mo=xn.defaultRuleThickness,za=4*Mo;if(Wn-Lr.depth-($r.height-si)<za){si=za-(Wn-Lr.depth)+$r.height;var So=.8*xn.xHeight-(Wn-Lr.depth);So>0&&(Wn+=So,si-=So)}var os=[{type:"elem",elem:$r,shift:si,marginRight:to,marginLeft:io},{type:"elem",elem:Lr,shift:-Wn,marginRight:to}];yo=ir.makeVList({positionType:"individualShift",children:os},Ae)}else if($r){si=Math.max(si,xn.sub1,$r.height-.8*xn.xHeight);var ns=[{type:"elem",elem:$r,marginLeft:io,marginRight:to}];yo=ir.makeVList({positionType:"shift",positionData:si,children:ns},Ae)}else if(Lr)Wn=Math.max(Wn,xa,Lr.depth+.25*xn.xHeight),yo=ir.makeVList({positionType:"shift",positionData:-Wn,children:[{type:"elem",elem:Lr,marginRight:to}]},Ae);else throw new Error("supsub must have either sup or sub.");var Io=Vn(br,"right")||"mord";return ir.makeSpan([Io],[br,ir.makeSpan(["msupsub"],[yo])],Ae)},mathmlBuilder:function(ne,Ae){var we=!1,Be,dt,Ot=kr(ne.base,"horizBrace");Ot&&(dt=!!ne.sup,dt===Ot.isOver&&(we=!0,Be=Ot.isOver)),ne.base&&(ne.base.type==="op"||ne.base.type==="operatorname")&&(ne.base.parentIsSupSub=!0);var br=[Gt(ne.base,Ae)];ne.sub&&br.push(Gt(ne.sub,Ae)),ne.sup&&br.push(Gt(ne.sup,Ae));var Lr;if(we)Lr=Be?"mover":"munder";else if(ne.sub)if(ne.sup){var Wn=ne.base;Wn&&Wn.type==="op"&&Wn.limits&&Ae.style===K.DISPLAY||Wn&&Wn.type==="operatorname"&&Wn.alwaysHandleSupSub&&(Ae.style===K.DISPLAY||Wn.limits)?Lr="munderover":Lr="msubsup"}else{var xn=ne.base;xn&&xn.type==="op"&&xn.limits&&(Ae.style===K.DISPLAY||xn.alwaysHandleSupSub)||xn&&xn.type==="operatorname"&&xn.alwaysHandleSupSub&&(xn.limits||Ae.style===K.DISPLAY)?Lr="munder":Lr="msub"}else{var $r=ne.base;$r&&$r.type==="op"&&$r.limits&&(Ae.style===K.DISPLAY||$r.alwaysHandleSupSub)||$r&&$r.type==="operatorname"&&$r.alwaysHandleSupSub&&($r.limits||Ae.style===K.DISPLAY)?Lr="mover":Lr="msup"}var si=new pi.MathNode(Lr,br);return si}}),li({type:"atom",htmlBuilder:function(ne,Ae){return ir.mathsym(ne.text,ne.mode,Ae,["m"+ne.family])},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mo",[ln(ne.text,ne.mode)]);if(ne.family==="bin"){var Be=Zi(ne,Ae);Be==="bold-italic"&&we.setAttribute("mathvariant",Be)}else ne.family==="punct"?we.setAttribute("separator","true"):(ne.family==="open"||ne.family==="close")&&we.setAttribute("stretchy","false");return we}});var Do={mi:"italic",mn:"normal",mtext:"normal"};li({type:"mathord",htmlBuilder:function(ne,Ae){return ir.makeOrd(ne,Ae,"mathord")},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mi",[ln(ne.text,ne.mode,Ae)]),Be=Zi(ne,Ae)||"italic";return Be!==Do[we.type]&&we.setAttribute("mathvariant",Be),we}}),li({type:"textord",htmlBuilder:function(ne,Ae){return ir.makeOrd(ne,Ae,"textord")},mathmlBuilder:function(ne,Ae){var we=ln(ne.text,ne.mode,Ae),Be=Zi(ne,Ae)||"normal",dt;return ne.mode==="text"?dt=new pi.MathNode("mtext",[we]):/[0-9]/.test(ne.text)?dt=new pi.MathNode("mn",[we]):ne.text==="\\prime"?dt=new pi.MathNode("mo",[we]):dt=new pi.MathNode("mi",[we]),Be!==Do[dt.type]&&dt.setAttribute("mathvariant",Be),dt}});var jo={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Vo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};li({type:"spacing",htmlBuilder:function(ne,Ae){if(Vo.hasOwnProperty(ne.text)){var we=Vo[ne.text].className||"";if(ne.mode==="text"){var Be=ir.makeOrd(ne,Ae,"textord");return Be.classes.push(we),Be}else return ir.makeSpan(["mspace",we],[ir.mathsym(ne.text,ne.mode,Ae)],Ae)}else{if(jo.hasOwnProperty(ne.text))return ir.makeSpan(["mspace",jo[ne.text]],[],Ae);throw new c('Unknown type of space "'+ne.text+'"')}},mathmlBuilder:function(ne,Ae){var we;if(Vo.hasOwnProperty(ne.text))we=new pi.MathNode("mtext",[new pi.TextNode("\xA0")]);else{if(jo.hasOwnProperty(ne.text))return new pi.MathNode("mspace");throw new c('Unknown type of space "'+ne.text+'"')}return we}});var Yo=function(){var ne=new pi.MathNode("mtd",[]);return ne.setAttribute("width","50%"),ne};li({type:"tag",mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mtable",[new pi.MathNode("mtr",[Yo(),new pi.MathNode("mtd",[ia(ne.body,Ae)]),Yo(),new pi.MathNode("mtd",[ia(ne.tag,Ae)])])]);return we.setAttribute("width","100%"),we}});var wo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Da={"\\textbf":"textbf","\\textmd":"textmd"},Fo={"\\textit":"textit","\\textup":"textup"},cs=function(ne,Ae){var we=ne.font;return we?wo[we]?Ae.withTextFontFamily(wo[we]):Da[we]?Ae.withTextFontWeight(Da[we]):Ae.withTextFontShape(Fo[we]):Ae};on({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser,Be=ne.funcName,dt=Ae[0];return{type:"text",mode:we.mode,body:ri(dt),font:Be}},htmlBuilder:function(ne,Ae){var we=cs(ne,Ae),Be=mn(ne.body,we,!0);return ir.makeSpan(["mord","text"],ir.tryCombineChars(Be),we)},mathmlBuilder:function(ne,Ae){var we=cs(ne,Ae);return ia(ne.body,we)}}),on({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ne,Ae){var we=ne.parser;return{type:"underline",mode:we.mode,body:Ae[0]}},htmlBuilder:function(ne,Ae){var we=di(ne.body,Ae),Be=ir.makeLineSpan("underline-line",Ae),dt=Ae.fontMetrics().defaultRuleThickness,Ot=ir.makeVList({positionType:"top",positionData:we.height,children:[{type:"kern",size:dt},{type:"elem",elem:Be},{type:"kern",size:3*dt},{type:"elem",elem:we}]},Ae);return ir.makeSpan(["mord","underline"],[Ot],Ae)},mathmlBuilder:function(ne,Ae){var we=new pi.MathNode("mo",[new pi.TextNode("\u203E")]);we.setAttribute("stretchy","true");var Be=new pi.MathNode("munder",[Gt(ne.body,Ae),we]);return Be.setAttribute("accentunder","true"),Be}}),on({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ne,Ae,we){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ne,Ae){for(var we=mo(ne),Be=[],dt=Ae.havingStyle(Ae.style.text()),Ot=0;Ot<we.length;Ot++){var br=we[Ot];br==="~"&&(br="\\textasciitilde"),Be.push(ir.makeSymbol(br,"Typewriter-Regular",ne.mode,dt,["mord","texttt"]))}return ir.makeSpan(["mord","text"].concat(dt.sizingClasses(Ae)),ir.tryCombineChars(Be),dt)},mathmlBuilder:function(ne,Ae){var we=new pi.TextNode(mo(ne)),Be=new pi.MathNode("mtext",[we]);return Be.setAttribute("mathvariant","monospace"),Be}});var mo=function(ne){return ne.body.replace(/ /g,ne.star?"\u2423":"\xA0")},_o=gn,Xa=_o,Qo=`[ \r
|
|
|
]`,il="\\\\[a-zA-Z@]+",Os="\\\\[^\uD800-\uDFFF]",as=""+il+Qo+"*",xs=new RegExp("^("+il+")"+Qo+"*$"),Ls="[\u0300-\u036F]",ys=new RegExp(Ls+"+$"),Ho="("+Qo+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Ls+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ls+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+as)+("|"+Os+")"),vo=function(){function mt(Ae,we){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=Ae,this.settings=we,this.tokenRegex=new RegExp(Ho,"g"),this.catcodes={"%":14}}var ne=mt.prototype;return ne.setCatcode=function(we,Be){this.catcodes[we]=Be},ne.lex=function(){var we=this.input,Be=this.tokenRegex.lastIndex;if(Be===we.length)return new m("EOF",new S(this,Be,Be));var dt=this.tokenRegex.exec(we);if(dt===null||dt.index!==Be)throw new c("Unexpected character: '"+we[Be]+"'",new m(we[Be],new S(this,Be,Be+1)));var Ot=dt[2]||" ";if(this.catcodes[Ot]===14){var br=we.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return br===-1?(this.tokenRegex.lastIndex=we.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=br+1,this.lex()}var Lr=Ot.match(xs);return Lr&&(Ot=Lr[1]),new m(Ot,new S(this,Be,this.tokenRegex.lastIndex))},mt}(),es=function(){function mt(Ae,we){Ae===void 0&&(Ae={}),we===void 0&&(we={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=we,this.builtins=Ae,this.undefStack=[]}var ne=mt.prototype;return ne.beginGroup=function(){this.undefStack.push({})},ne.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var we=this.undefStack.pop();for(var Be in we)we.hasOwnProperty(Be)&&(we[Be]===void 0?delete this.current[Be]:this.current[Be]=we[Be])},ne.has=function(we){return this.current.hasOwnProperty(we)||this.builtins.hasOwnProperty(we)},ne.get=function(we){return this.current.hasOwnProperty(we)?this.current[we]:this.builtins[we]},ne.set=function(we,Be,dt){if(dt===void 0&&(dt=!1),dt){for(var Ot=0;Ot<this.undefStack.length;Ot++)delete this.undefStack[Ot][we];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][we]=Be)}else{var br=this.undefStack[this.undefStack.length-1];br&&!br.hasOwnProperty(we)&&(br[we]=this.current[we])}this.current[we]=Be},mt}(),Ko={},Ro=Ko;function Vr(mt,ne){Ko[mt]=ne}Vr("\\@firstoftwo",function(mt){var ne=mt.consumeArgs(2);return{tokens:ne[0],numArgs:0}}),Vr("\\@secondoftwo",function(mt){var ne=mt.consumeArgs(2);return{tokens:ne[1],numArgs:0}}),Vr("\\@ifnextchar",function(mt){var ne=mt.consumeArgs(3),Ae=mt.future();return ne[0].length===1&&ne[0][0].text===Ae.text?{tokens:ne[1],numArgs:0}:{tokens:ne[2],numArgs:0}}),Vr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Vr("\\TextOrMath",function(mt){var ne=mt.consumeArgs(2);return mt.mode==="text"?{tokens:ne[0],numArgs:0}:{tokens:ne[1],numArgs:0}});var bi={"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};Vr("\\char",function(mt){var ne=mt.popToken(),Ae,we="";if(ne.text==="'")Ae=8,ne=mt.popToken();else if(ne.text==='"')Ae=16,ne=mt.popToken();else if(ne.text==="`")if(ne=mt.popToken(),ne.text[0]==="\\")we=ne.text.charCodeAt(1);else{if(ne.text==="EOF")throw new c("\\char` missing argument");we=ne.text.charCodeAt(0)}else Ae=10;if(Ae){if(we=bi[ne.text],we==null||we>=Ae)throw new c("Invalid base-"+Ae+" digit "+ne.text);for(var Be;(Be=bi[mt.future().text])!=null&&Be<Ae;)we*=Ae,we+=Be,mt.popToken()}return"\\@char{"+we+"}"});var Qs=function(ne,Ae){var we=ne.consumeArgs(1)[0];if(we.length!==1)throw new c("\\gdef's first argument must be a macro name");var Be=we[0].text,dt=0;for(we=ne.consumeArgs(1)[0];we.length===1&&we[0].text==="#";){if(we=ne.consumeArgs(1)[0],we.length!==1)throw new c('Invalid argument number length "'+we.length+'"');if(!/^[1-9]$/.test(we[0].text))throw new c('Invalid argument number "'+we[0].text+'"');if(dt++,parseInt(we[0].text)!==dt)throw new c('Argument number "'+we[0].text+'" out of order');we=ne.consumeArgs(1)[0]}return ne.macros.set(Be,{tokens:we,numArgs:dt},Ae),""};Vr("\\gdef",function(mt){return Qs(mt,!0)}),Vr("\\def",function(mt){return Qs(mt,!1)}),Vr("\\global",function(mt){var ne=mt.consumeArgs(1)[0];if(ne.length!==1)throw new c("Invalid command after \\global");var Ae=ne[0].text;if(Ae==="\\def")return Qs(mt,!0);throw new c("Invalid command '"+Ae+"' after \\global")});var Ns=function(ne,Ae,we){var Be=ne.consumeArgs(1)[0];if(Be.length!==1)throw new c("\\newcommand's first argument must be a macro name");var dt=Be[0].text,Ot=ne.isDefined(dt);if(Ot&&!Ae)throw new c("\\newcommand{"+dt+"} attempting to redefine "+(dt+"; use \\renewcommand"));if(!Ot&&!we)throw new c("\\renewcommand{"+dt+"} when command "+dt+" does not yet exist; use \\newcommand");var br=0;if(Be=ne.consumeArgs(1)[0],Be.length===1&&Be[0].text==="["){for(var Lr="",$r=ne.expandNextToken();$r.text!=="]"&&$r.text!=="EOF";)Lr+=$r.text,$r=ne.expandNextToken();if(!Lr.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+Lr);br=parseInt(Lr),Be=ne.consumeArgs(1)[0]}return ne.macros.set(dt,{tokens:Be,numArgs:br}),""};Vr("\\newcommand",function(mt){return Ns(mt,!1,!0)}),Vr("\\renewcommand",function(mt){return Ns(mt,!0,!1)}),Vr("\\providecommand",function(mt){return Ns(mt,!0,!0)}),Vr("\\bgroup","{"),Vr("\\egroup","}"),Vr("\\lq","`"),Vr("\\rq","'"),Vr("\\aa","\\r a"),Vr("\\AA","\\r A"),Vr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Vr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Vr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Vr("\u212C","\\mathscr{B}"),Vr("\u2130","\\mathscr{E}"),Vr("\u2131","\\mathscr{F}"),Vr("\u210B","\\mathscr{H}"),Vr("\u2110","\\mathscr{I}"),Vr("\u2112","\\mathscr{L}"),Vr("\u2133","\\mathscr{M}"),Vr("\u211B","\\mathscr{R}"),Vr("\u212D","\\mathfrak{C}"),Vr("\u210C","\\mathfrak{H}"),Vr("\u2128","\\mathfrak{Z}"),Vr("\\Bbbk","\\Bbb{k}"),Vr("\xB7","\\cdotp"),Vr("\\llap","\\mathllap{\\textrm{#1}}"),Vr("\\rlap","\\mathrlap{\\textrm{#1}}"),Vr("\\clap","\\mathclap{\\textrm{#1}}"),Vr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Vr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Vr("\\ne","\\neq"),Vr("\u2260","\\neq"),Vr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Vr("\u2209","\\notin"),Vr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Vr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Vr("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Vr("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Vr("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Vr("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Vr("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Vr("\u27C2","\\perp"),Vr("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Vr("\u220C","\\notni"),Vr("\u231C","\\ulcorner"),Vr("\u231D","\\urcorner"),Vr("\u231E","\\llcorner"),Vr("\u231F","\\lrcorner"),Vr("\xA9","\\copyright"),Vr("\xAE","\\textregistered"),Vr("\uFE0F","\\textregistered"),Vr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Vr("\u22EE","\\vdots"),Vr("\\varGamma","\\mathit{\\Gamma}"),Vr("\\varDelta","\\mathit{\\Delta}"),Vr("\\varTheta","\\mathit{\\Theta}"),Vr("\\varLambda","\\mathit{\\Lambda}"),Vr("\\varXi","\\mathit{\\Xi}"),Vr("\\varPi","\\mathit{\\Pi}"),Vr("\\varSigma","\\mathit{\\Sigma}"),Vr("\\varUpsilon","\\mathit{\\Upsilon}"),Vr("\\varPhi","\\mathit{\\Phi}"),Vr("\\varPsi","\\mathit{\\Psi}"),Vr("\\varOmega","\\mathit{\\Omega}"),Vr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Vr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Vr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Vr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Vr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Vr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var js={",":"\\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"};Vr("\\dots",function(mt){var ne="\\dotso",Ae=mt.expandAfterFuture().text;return Ae in js?ne=js[Ae]:Ae.substr(0,4)==="\\not"?ne="\\dotsb":Ae in Je.math&&(p.contains(["bin","rel"],Je.math[Ae].group)&&(ne="\\dotsb")),ne});var so={")":!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};Vr("\\dotso",function(mt){var ne=mt.future().text;return ne in so?"\\ldots\\,":"\\ldots"}),Vr("\\dotsc",function(mt){var ne=mt.future().text;return ne in so&&ne!==","?"\\ldots\\,":"\\ldots"}),Vr("\\cdots",function(mt){var ne=mt.future().text;return ne in so?"\\@cdots\\,":"\\@cdots"}),Vr("\\dotsb","\\cdots"),Vr("\\dotsm","\\cdots"),Vr("\\dotsi","\\!\\cdots"),Vr("\\dotsx","\\ldots\\,"),Vr("\\DOTSI","\\relax"),Vr("\\DOTSB","\\relax"),Vr("\\DOTSX","\\relax"),Vr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Vr("\\,","\\tmspace+{3mu}{.1667em}"),Vr("\\thinspace","\\,"),Vr("\\>","\\mskip{4mu}"),Vr("\\:","\\tmspace+{4mu}{.2222em}"),Vr("\\medspace","\\:"),Vr("\\;","\\tmspace+{5mu}{.2777em}"),Vr("\\thickspace","\\;"),Vr("\\!","\\tmspace-{3mu}{.1667em}"),Vr("\\negthinspace","\\!"),Vr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Vr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Vr("\\enspace","\\kern.5em "),Vr("\\enskip","\\hskip.5em\\relax"),Vr("\\quad","\\hskip1em\\relax"),Vr("\\qquad","\\hskip2em\\relax"),Vr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Vr("\\tag@paren","\\tag@literal{({#1})}"),Vr("\\tag@literal",function(mt){if(mt.macros.get("\\df@tag"))throw new c("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Vr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Vr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Vr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Vr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Vr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Vr("\\\\","\\newline"),Vr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ao=it["Main-Regular"]["T".charCodeAt(0)][1]-.7*it["Main-Regular"]["A".charCodeAt(0)][1]+"em";Vr("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ao+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Vr("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ao+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Vr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Vr("\\@hspace","\\hskip #1\\relax"),Vr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Vr("\\ordinarycolon",":"),Vr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Vr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Vr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Vr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Vr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Vr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Vr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Vr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Vr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Vr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Vr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Vr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Vr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Vr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Vr("\u2237","\\dblcolon"),Vr("\u2239","\\eqcolon"),Vr("\u2254","\\coloneqq"),Vr("\u2255","\\eqqcolon"),Vr("\u2A74","\\Coloneqq"),Vr("\\ratio","\\vcentcolon"),Vr("\\coloncolon","\\dblcolon"),Vr("\\colonequals","\\coloneqq"),Vr("\\coloncolonequals","\\Coloneqq"),Vr("\\equalscolon","\\eqqcolon"),Vr("\\equalscoloncolon","\\Eqqcolon"),Vr("\\colonminus","\\coloneq"),Vr("\\coloncolonminus","\\Coloneq"),Vr("\\minuscolon","\\eqcolon"),Vr("\\minuscoloncolon","\\Eqcolon"),Vr("\\coloncolonapprox","\\Colonapprox"),Vr("\\coloncolonsim","\\Colonsim"),Vr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Vr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Vr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Vr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Vr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Vr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Vr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Vr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Vr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Vr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Vr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Vr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Vr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Vr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Vr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Vr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Vr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Vr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Vr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Vr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Vr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Vr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Vr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Vr("\u27E6","\\llbracket"),Vr("\u27E7","\\rrbracket"),Vr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Vr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Vr("\u2983","\\lBrace"),Vr("\u2984","\\rBrace"),Vr("\\darr","\\downarrow"),Vr("\\dArr","\\Downarrow"),Vr("\\Darr","\\Downarrow"),Vr("\\lang","\\langle"),Vr("\\rang","\\rangle"),Vr("\\uarr","\\uparrow"),Vr("\\uArr","\\Uparrow"),Vr("\\Uarr","\\Uparrow"),Vr("\\N","\\mathbb{N}"),Vr("\\R","\\mathbb{R}"),Vr("\\Z","\\mathbb{Z}"),Vr("\\alef","\\aleph"),Vr("\\alefsym","\\aleph"),Vr("\\Alpha","\\mathrm{A}"),Vr("\\Beta","\\mathrm{B}"),Vr("\\bull","\\bullet"),Vr("\\Chi","\\mathrm{X}"),Vr("\\clubs","\\clubsuit"),Vr("\\cnums","\\mathbb{C}"),Vr("\\Complex","\\mathbb{C}"),Vr("\\Dagger","\\ddagger"),Vr("\\diamonds","\\diamondsuit"),Vr("\\empty","\\emptyset"),Vr("\\Epsilon","\\mathrm{E}"),Vr("\\Eta","\\mathrm{H}"),Vr("\\exist","\\exists"),Vr("\\harr","\\leftrightarrow"),Vr("\\hArr","\\Leftrightarrow"),Vr("\\Harr","\\Leftrightarrow"),Vr("\\hearts","\\heartsuit"),Vr("\\image","\\Im"),Vr("\\infin","\\infty"),Vr("\\Iota","\\mathrm{I}"),Vr("\\isin","\\in"),Vr("\\Kappa","\\mathrm{K}"),Vr("\\larr","\\leftarrow"),Vr("\\lArr","\\Leftarrow"),Vr("\\Larr","\\Leftarrow"),Vr("\\lrarr","\\leftrightarrow"),Vr("\\lrArr","\\Leftrightarrow"),Vr("\\Lrarr","\\Leftrightarrow"),Vr("\\Mu","\\mathrm{M}"),Vr("\\natnums","\\mathbb{N}"),Vr("\\Nu","\\mathrm{N}"),Vr("\\Omicron","\\mathrm{O}"),Vr("\\plusmn","\\pm"),Vr("\\rarr","\\rightarrow"),Vr("\\rArr","\\Rightarrow"),Vr("\\Rarr","\\Rightarrow"),Vr("\\real","\\Re"),Vr("\\reals","\\mathbb{R}"),Vr("\\Reals","\\mathbb{R}"),Vr("\\Rho","\\mathrm{P}"),Vr("\\sdot","\\cdot"),Vr("\\sect","\\S"),Vr("\\spades","\\spadesuit"),Vr("\\sub","\\subset"),Vr("\\sube","\\subseteq"),Vr("\\supe","\\supseteq"),Vr("\\Tau","\\mathrm{T}"),Vr("\\thetasym","\\vartheta"),Vr("\\weierp","\\wp"),Vr("\\Zeta","\\mathrm{Z}"),Vr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Vr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Vr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Vr("\\blue","\\textcolor{##6495ed}{#1}"),Vr("\\orange","\\textcolor{##ffa500}{#1}"),Vr("\\pink","\\textcolor{##ff00af}{#1}"),Vr("\\red","\\textcolor{##df0030}{#1}"),Vr("\\green","\\textcolor{##28ae7b}{#1}"),Vr("\\gray","\\textcolor{gray}{#1}"),Vr("\\purple","\\textcolor{##9d38bd}{#1}"),Vr("\\blueA","\\textcolor{##ccfaff}{#1}"),Vr("\\blueB","\\textcolor{##80f6ff}{#1}"),Vr("\\blueC","\\textcolor{##63d9ea}{#1}"),Vr("\\blueD","\\textcolor{##11accd}{#1}"),Vr("\\blueE","\\textcolor{##0c7f99}{#1}"),Vr("\\tealA","\\textcolor{##94fff5}{#1}"),Vr("\\tealB","\\textcolor{##26edd5}{#1}"),Vr("\\tealC","\\textcolor{##01d1c1}{#1}"),Vr("\\tealD","\\textcolor{##01a995}{#1}"),Vr("\\tealE","\\textcolor{##208170}{#1}"),Vr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Vr("\\greenB","\\textcolor{##8af281}{#1}"),Vr("\\greenC","\\textcolor{##74cf70}{#1}"),Vr("\\greenD","\\textcolor{##1fab54}{#1}"),Vr("\\greenE","\\textcolor{##0d923f}{#1}"),Vr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Vr("\\goldB","\\textcolor{##ffbb71}{#1}"),Vr("\\goldC","\\textcolor{##ff9c39}{#1}"),Vr("\\goldD","\\textcolor{##e07d10}{#1}"),Vr("\\goldE","\\textcolor{##a75a05}{#1}"),Vr("\\redA","\\textcolor{##fca9a9}{#1}"),Vr("\\redB","\\textcolor{##ff8482}{#1}"),Vr("\\redC","\\textcolor{##f9685d}{#1}"),Vr("\\redD","\\textcolor{##e84d39}{#1}"),Vr("\\redE","\\textcolor{##bc2612}{#1}"),Vr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Vr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Vr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Vr("\\maroonD","\\textcolor{##ca337c}{#1}"),Vr("\\maroonE","\\textcolor{##9e034e}{#1}"),Vr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Vr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Vr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Vr("\\purpleD","\\textcolor{##7854ab}{#1}"),Vr("\\purpleE","\\textcolor{##543b78}{#1}"),Vr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Vr("\\mintB","\\textcolor{##edf2df}{#1}"),Vr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Vr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Vr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Vr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Vr("\\grayD","\\textcolor{##d6d8da}{#1}"),Vr("\\grayE","\\textcolor{##babec2}{#1}"),Vr("\\grayF","\\textcolor{##888d93}{#1}"),Vr("\\grayG","\\textcolor{##626569}{#1}"),Vr("\\grayH","\\textcolor{##3b3e40}{#1}"),Vr("\\grayI","\\textcolor{##21242c}{#1}"),Vr("\\kaBlue","\\textcolor{##314453}{#1}"),Vr("\\kaGreen","\\textcolor{##71B307}{#1}");var Jo={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Uo=function(){function mt(Ae,we,Be){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=we,this.expansionCount=0,this.feed(Ae),this.macros=new es(Ro,we.macros),this.mode=Be,this.stack=[]}var ne=mt.prototype;return ne.feed=function(we){this.lexer=new vo(we,this.settings)},ne.switchMode=function(we){this.mode=we},ne.beginGroup=function(){this.macros.beginGroup()},ne.endGroup=function(){this.macros.endGroup()},ne.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ne.popToken=function(){return this.future(),this.stack.pop()},ne.pushToken=function(we){this.stack.push(we)},ne.pushTokens=function(we){var Be;(Be=this.stack).push.apply(Be,we)},ne.consumeSpaces=function(){for(;;){var we=this.future();if(we.text===" ")this.stack.pop();else break}},ne.consumeArgs=function(we){for(var Be=[],dt=0;dt<we;++dt){this.consumeSpaces();var Ot=this.popToken();if(Ot.text==="{"){for(var br=[],Lr=1;Lr!==0;){var $r=this.popToken();if(br.push($r),$r.text==="{")++Lr;else if($r.text==="}")--Lr;else if($r.text==="EOF")throw new c("End of input in macro argument",Ot)}br.pop(),br.reverse(),Be[dt]=br}else{if(Ot.text==="EOF")throw new c("End of input expecting macro argument");Be[dt]=[Ot]}}return Be},ne.expandOnce=function(){var we=this.popToken(),Be=we.text,dt=this._getExpansion(Be);if(dt==null)return this.pushToken(we),we;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new c("Too many expansions: infinite loop or need to increase maxExpand setting");var Ot=dt.tokens;if(dt.numArgs){var br=this.consumeArgs(dt.numArgs);Ot=Ot.slice();for(var Lr=Ot.length-1;Lr>=0;--Lr){var $r=Ot[Lr];if($r.text==="#"){if(Lr===0)throw new c("Incomplete placeholder at end of macro body",$r);if($r=Ot[--Lr],$r.text==="#")Ot.splice(Lr+1,1);else if(/^[1-9]$/.test($r.text)){var xn;(xn=Ot).splice.apply(xn,[Lr,2].concat(br[+$r.text-1]))}else throw new c("Not a valid argument number",$r)}}}return this.pushTokens(Ot),Ot},ne.expandAfterFuture=function(){return this.expandOnce(),this.future()},ne.expandNextToken=function(){for(;;){var we=this.expandOnce();if(we instanceof m)if(we.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ne.expandMacro=function(we){if(!this.macros.get(we))return;var Be=[],dt=this.stack.length;for(this.pushToken(new m(we));this.stack.length>dt;){var Ot=this.expandOnce();Ot instanceof m&&Be.push(this.stack.pop())}return Be},ne.expandMacroAsText=function(we){var Be=this.expandMacro(we);return Be&&Be.map(function(dt){return dt.text}).join("")},ne._getExpansion=function(we){var Be=this.macros.get(we);if(Be==null)return Be;var dt=typeof Be=="function"?Be(this):Be;if(typeof dt=="string"){var Ot=0;if(dt.indexOf("#")!==-1)for(var br=dt.replace(/##/g,"");br.indexOf("#"+(Ot+1))!==-1;)++Ot;for(var Lr=new vo(dt,this.settings),$r=[],xn=Lr.lex();xn.text!=="EOF";)$r.push(xn),xn=Lr.lex();$r.reverse();var Wn={tokens:$r,numArgs:Ot};return Wn}return dt},ne.isDefined=function(we){return this.macros.has(we)||Xa.hasOwnProperty(we)||Je.math.hasOwnProperty(we)||Je.text.hasOwnProperty(we)||Jo.hasOwnProperty(we)},mt}(),bs={"\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"}},ms={\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"},gs=function(){function mt(Ae,we){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 Uo(Ae,we,this.mode),this.settings=we,this.leftrightDepth=0}var ne=mt.prototype;return ne.expect=function(we,Be){if(Be===void 0&&(Be=!0),this.fetch().text!==we)throw new c("Expected '"+we+"', got '"+this.fetch().text+"'",this.fetch());Be&&this.consume()},ne.consume=function(){this.nextToken=null},ne.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ne.switchMode=function(we){this.mode=we,this.gullet.switchMode(we)},ne.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var we=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),we},ne.parseExpression=function(we,Be){for(var dt=[];;){this.mode==="math"&&this.consumeSpaces();var Ot=this.fetch();if(mt.endOfExpression.indexOf(Ot.text)!==-1)break;if(Be&&Ot.text===Be)break;if(we&&Xa[Ot.text]&&Xa[Ot.text].infix)break;var br=this.parseAtom(Be);if(!br)break;dt.push(br)}return this.mode==="text"&&this.formLigatures(dt),this.handleInfixNodes(dt)},ne.handleInfixNodes=function(we){for(var Be=-1,dt,Ot=0;Ot<we.length;Ot++){var br=kr(we[Ot],"infix");if(br){if(Be!==-1)throw new c("only one infix operator per group",br.token);Be=Ot,dt=br.replaceWith}}if(Be!==-1&&dt){var Lr,$r,xn=we.slice(0,Be),Wn=we.slice(Be+1);xn.length===1&&xn[0].type==="ordgroup"?Lr=xn[0]:Lr={type:"ordgroup",mode:this.mode,body:xn},Wn.length===1&&Wn[0].type==="ordgroup"?$r=Wn[0]:$r={type:"ordgroup",mode:this.mode,body:Wn};var si;return dt==="\\\\abovefrac"?si=this.callFunction(dt,[Lr,we[Be],$r],[]):si=this.callFunction(dt,[Lr,$r],[]),[si]}else return we},ne.handleSupSubscript=function(we){var Be=this.fetch(),dt=Be.text;this.consume();var Ot=this.parseGroup(we,!1,mt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Ot)throw new c("Expected group after '"+dt+"'",Be);return Ot},ne.formatUnsupportedCmd=function(we){for(var Be=[],dt=0;dt<we.length;dt++)Be.push({type:"textord",mode:"text",text:we[dt]});var Ot={type:"text",mode:this.mode,body:Be},br={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Ot]};return br},ne.parseAtom=function(we){var Be=this.parseGroup("atom",!1,null,we);if(this.mode==="text")return Be;for(var dt,Ot;;){this.consumeSpaces();var br=this.fetch();if(br.text==="\\limits"||br.text==="\\nolimits"){var Lr=kr(Be,"op");if(Lr){var $r=br.text==="\\limits";Lr.limits=$r,Lr.alwaysHandleSupSub=!0}else if(Lr=kr(Be,"operatorname"),Lr&&Lr.alwaysHandleSupSub){var xn=br.text==="\\limits";Lr.limits=xn}else throw new c("Limit controls must follow a math operator",br);this.consume()}else if(br.text==="^"){if(dt)throw new c("Double superscript",br);dt=this.handleSupSubscript("superscript")}else if(br.text==="_"){if(Ot)throw new c("Double subscript",br);Ot=this.handleSupSubscript("subscript")}else if(br.text==="'"){if(dt)throw new c("Double superscript",br);var Wn={type:"textord",mode:this.mode,text:"\\prime"},si=[Wn];for(this.consume();this.fetch().text==="'";)si.push(Wn),this.consume();this.fetch().text==="^"&&si.push(this.handleSupSubscript("superscript")),dt={type:"ordgroup",mode:this.mode,body:si}}else break}return dt||Ot?{type:"supsub",mode:this.mode,base:Be,sup:dt,sub:Ot}:Be},ne.parseFunction=function(we,Be,dt){var Ot=this.fetch(),br=Ot.text,Lr=Xa[br];if(!Lr)return null;if(this.consume(),dt!=null&&Lr.greediness<=dt)throw new c("Got function '"+br+"' with no arguments"+(Be?" as "+Be:""),Ot);if(this.mode==="text"&&!Lr.allowedInText)throw new c("Can't use function '"+br+"' in text mode",Ot);if(this.mode==="math"&&Lr.allowedInMath===!1)throw new c("Can't use function '"+br+"' in math mode",Ot);var $r=this.parseArguments(br,Lr),xn=$r.args,Wn=$r.optArgs;return this.callFunction(br,xn,Wn,Ot,we)},ne.callFunction=function(we,Be,dt,Ot,br){var Lr={funcName:we,parser:this,token:Ot,breakOnTokenText:br},$r=Xa[we];if($r&&$r.handler)return $r.handler(Lr,Be,dt);throw new c("No function handler for "+we)},ne.parseArguments=function(we,Be){var dt=Be.numArgs+Be.numOptionalArgs;if(dt===0)return{args:[],optArgs:[]};for(var Ot=Be.greediness,br=[],Lr=[],$r=0;$r<dt;$r++){var xn=Be.argTypes&&Be.argTypes[$r],Wn=$r<Be.numOptionalArgs,si=$r>0&&!Wn||$r===0&&!Wn&&this.mode==="math",Si=this.parseGroupOfType("argument to '"+we+"'",xn,Wn,Ot,si);if(!Si){if(Wn){Lr.push(null);continue}throw new c("Expected group after '"+we+"'",this.fetch())}(Wn?Lr:br).push(Si)}return{args:br,optArgs:Lr}},ne.parseGroupOfType=function(we,Be,dt,Ot,br){switch(Be){case"color":return br&&this.consumeSpaces(),this.parseColorGroup(dt);case"size":return br&&this.consumeSpaces(),this.parseSizeGroup(dt);case"url":return this.parseUrlGroup(dt,br);case"math":case"text":return this.parseGroup(we,dt,Ot,void 0,Be,br);case"hbox":{var Lr=this.parseGroup(we,dt,Ot,void 0,"text",br);if(!Lr)return Lr;var $r={type:"styling",mode:Lr.mode,body:[Lr],style:"text"};return $r}case"raw":{if(br&&this.consumeSpaces(),dt&&this.fetch().text==="{")return null;var xn=this.parseStringGroup("raw",dt,!0);if(xn)return{type:"raw",mode:"text",string:xn.text};throw new c("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(we,dt,Ot,void 0,void 0,br);default:throw new c("Unknown group type as "+we,this.fetch())}},ne.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ne.parseStringGroup=function(we,Be,dt){var Ot=Be?"[":"{",br=Be?"]":"}",Lr=this.fetch();if(Lr.text!==Ot){if(Be)return null;if(dt&&Lr.text!=="EOF"&&/[^{}[\]]/.test(Lr.text))return this.consume(),Lr}var $r=this.mode;this.mode="text",this.expect(Ot);for(var xn="",Wn=this.fetch(),si=0,Si=Wn,Vi;(Vi=this.fetch()).text!==br||dt&&si>0;){switch(Vi.text){case"EOF":throw new c("Unexpected end of input in "+we,Wn.range(Si,xn));case Ot:si++;break;case br:si--;break}Si=Vi,xn+=Si.text,this.consume()}return this.expect(br),this.mode=$r,Wn.range(Si,xn)},ne.parseRegexGroup=function(we,Be){var dt=this.mode;this.mode="text";for(var Ot=this.fetch(),br=Ot,Lr="",$r;($r=this.fetch()).text!=="EOF"&&we.test(Lr+$r.text);)br=$r,Lr+=br.text,this.consume();if(Lr==="")throw new c("Invalid "+Be+": '"+Ot.text+"'",Ot);return this.mode=dt,Ot.range(br,Lr)},ne.parseColorGroup=function(we){var Be=this.parseStringGroup("color",we);if(!Be)return null;var dt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Be.text);if(!dt)throw new c("Invalid color: '"+Be.text+"'",Be);var Ot=dt[0];return/^[0-9a-f]{6}$/i.test(Ot)&&(Ot="#"+Ot),{type:"color-token",mode:this.mode,color:Ot}},ne.parseSizeGroup=function(we){var Be,dt=!1;if(!we&&this.fetch().text!=="{"?Be=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Be=this.parseStringGroup("size",we),!Be)return null;!we&&Be.text.length===0&&(Be.text="0pt",dt=!0);var Ot=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Be.text);if(!Ot)throw new c("Invalid size: '"+Be.text+"'",Be);var br={number:+(Ot[1]+Ot[2]),unit:Ot[3]};if(!gr(br))throw new c("Invalid unit: '"+br.unit+"'",Be);return{type:"size",mode:this.mode,value:br,isBlank:dt}},ne.parseUrlGroup=function(we,Be){this.gullet.lexer.setCatcode("%",13);var dt=this.parseStringGroup("url",we,!0);if(this.gullet.lexer.setCatcode("%",14),!dt)return null;var Ot=dt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Ot}},ne.parseGroup=function(we,Be,dt,Ot,br,Lr){var $r=this.mode;br&&this.switchMode(br),Lr&&this.consumeSpaces();var xn=this.fetch(),Wn=xn.text,si;if(Be?Wn==="[":Wn==="{"||Wn==="\\begingroup"){this.consume();var Si=mt.endOfGroup[Wn];this.gullet.beginGroup();var Vi=this.parseExpression(!1,Si),oa=this.fetch();this.expect(Si),this.gullet.endGroup(),si={type:"ordgroup",mode:this.mode,loc:S.range(xn,oa),body:Vi,semisimple:Wn==="\\begingroup"||void 0}}else if(Be)si=null;else if(si=this.parseFunction(Ot,we,dt)||this.parseSymbol(),si==null&&Wn[0]==="\\"&&!Jo.hasOwnProperty(Wn)){if(this.settings.throwOnError)throw new c("Undefined control sequence: "+Wn,xn);si=this.formatUnsupportedCmd(Wn),this.consume()}return br&&this.switchMode($r),si},ne.formLigatures=function(we){for(var Be=we.length-1,dt=0;dt<Be;++dt){var Ot=we[dt],br=Ot.text;br==="-"&&we[dt+1].text==="-"&&(dt+1<Be&&we[dt+2].text==="-"?(we.splice(dt,3,{type:"textord",mode:"text",loc:S.range(Ot,we[dt+2]),text:"---"}),Be-=2):(we.splice(dt,2,{type:"textord",mode:"text",loc:S.range(Ot,we[dt+1]),text:"--"}),Be-=1)),(br==="'"||br==="`")&&we[dt+1].text===br&&(we.splice(dt,2,{type:"textord",mode:"text",loc:S.range(Ot,we[dt+1]),text:br+br}),Be-=1)}},ne.parseSymbol=function(){var we=this.fetch(),Be=we.text;if(/^\\verb[^a-zA-Z]/.test(Be)){this.consume();var dt=Be.slice(5),Ot=dt.charAt(0)==="*";if(Ot&&(dt=dt.slice(1)),dt.length<2||dt.charAt(0)!==dt.slice(-1))throw new c(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return dt=dt.slice(1,-1),{type:"verb",mode:"text",body:dt,star:Ot}}ms.hasOwnProperty(Be[0])&&!Je[this.mode][Be[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Be[0]+'" used in math mode',we),Be=ms[Be[0]]+Be.substr(1));var br=ys.exec(Be);br&&(Be=Be.substring(0,br.index),Be==="i"?Be="\u0131":Be==="j"&&(Be="\u0237"));var Lr;if(Je[this.mode][Be]){this.settings.strict&&this.mode==="math"&&Xt.indexOf(Be)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Be[0]+'" used in math mode',we);var $r=Je[this.mode][Be].group,xn=S.range(we),Wn;if(Ct.hasOwnProperty($r)){var si=$r;Wn={type:"atom",mode:this.mode,family:si,loc:xn,text:Be}}else Wn={type:$r,mode:this.mode,loc:xn,text:Be};Lr=Wn}else if(Be.charCodeAt(0)>=128)this.settings.strict&&(Y(Be.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Be[0]+'" used in math mode',we):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Be[0]+'"'+(" ("+Be.charCodeAt(0)+")"),we)),Lr={type:"textord",mode:"text",loc:S.range(we),text:Be};else return null;if(this.consume(),br)for(var Si=0;Si<br[0].length;Si++){var Vi=br[0][Si];if(!bs[Vi])throw new c("Unknown accent ' "+Vi+"'",we);var oa=bs[Vi][this.mode];if(!oa)throw new c("Accent "+Vi+" unsupported in "+this.mode+" mode",we);Lr={type:"accent",mode:this.mode,loc:S.range(we),label:oa,isStretchy:!1,isShifty:!0,base:Lr}}return Lr},mt}();gs.endOfExpression=["}","\\endgroup","\\end","\\right","&"],gs.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},gs.SUPSUB_GREEDINESS=1;var ul=function(ne,Ae){if(!(typeof ne=="string"||ne instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var we=new gs(ne,Ae);delete we.gullet.macros.current["\\df@tag"];var Be=we.parse();if(we.gullet.macros.get("\\df@tag")){if(!Ae.displayMode)throw new c("\\tag works only in display equations");we.gullet.feed("\\df@tag"),Be=[{type:"tag",mode:"text",body:Be,tag:we.parse()}]}return Be},Ms=ul,Js=function(ne,Ae,we){Ae.textContent="";var Be=St(ne,we).toNode();Ae.appendChild(Be)};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."),Js=function(){throw new c("KaTeX doesn't work in quirks mode.")}));var Hs=function(ne,Ae){var we=St(ne,Ae).toMarkup();return we},Go=function(ne,Ae){var we=new v(Ae);return Ms(ne,we)},Ps=function(ne,Ae,we){if(we.throwOnError||!(ne instanceof c))throw ne;var Be=ir.makeSpan(["katex-error"],[new _e(Ae)]);return Be.setAttribute("title",ne.toString()),Be.setAttribute("style","color:"+we.errorColor),Be},St=function(ne,Ae){var we=new v(Ae);try{var Be=Ms(ne,we);return Xe(Be,ne,we)}catch(dt){return Ps(dt,ne,we)}},Mt=function(ne,Ae){var we=new v(Ae);try{var Be=Ms(ne,we);return _t(Be,ne,we)}catch(dt){return Ps(dt,ne,we)}},tn={version:"0.11.1",render:Js,renderToString:Hs,ParseError:c,__parse:Go,__renderToDomTree:St,__renderToHTMLTree:Mt,__setFontMetrics:gt,__defineSymbol:ye,__defineMacro:Vr,__domTree:{Span:G,Anchor:Z,SymbolNode:_e,SvgNode:xe,PathNode:oe,LineNode:fe}},In=E.default=tn}]).default})},P2fV:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("Q9mQ"),g=d("+L6B"),S=d("sE09"),m=d.n(S)},P2ho:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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};k.default=I},P47w:function(H,k,d){var I=d("hydK"),E=I.createElement,T=d("IMiH"),g=d("mFDi"),S=d("Fofx"),m=d("6GrX"),h=d("pzxd"),c=d("dqUG"),a=T.CMD,r=Array.prototype.join,i="none",n=Math.round,t=Math.sin,s=Math.cos,e=Math.PI,o=Math.PI*2,l=180/e,u=1e-4;function f(z){return n(z*1e4)/1e4}function p(z){return z<u&&z>-u}function v(z,V){var Y=V?z.textFill:z.fill;return Y!=null&&Y!==i}function A(z,V){var Y=V?z.textStroke:z.stroke;return Y!=null&&Y!==i}function y(z,V){V&&x(z,"transform","matrix("+r.call(V,",")+")")}function x(z,V,Y){(!Y||Y.type!=="linear"&&Y.type!=="radial")&&z.setAttribute(V,Y)}function C(z,V,Y){z.setAttributeNS("http://www.w3.org/1999/xlink",V,Y)}function w(z,V,Y,J){if(v(V,Y)){var se=Y?V.textFill:V.fill;se=se==="transparent"?i:se,x(z,"fill",se),x(z,"fill-opacity",V.fillOpacity!=null?V.fillOpacity*V.opacity:V.opacity)}else x(z,"fill",i);if(A(V,Y)){var $=Y?V.textStroke:V.stroke;$=$==="transparent"?i:$,x(z,"stroke",$);var ae=Y?V.textStrokeWidth:V.lineWidth,ge=!Y&&V.strokeNoScale?J.getLineScale():1;x(z,"stroke-width",ae/ge),x(z,"paint-order",Y?"stroke":"fill"),x(z,"stroke-opacity",V.strokeOpacity!=null?V.strokeOpacity:V.opacity);var pe=V.lineDash;pe?(x(z,"stroke-dasharray",V.lineDash.join(",")),x(z,"stroke-dashoffset",n(V.lineDashOffset||0))):x(z,"stroke-dasharray",""),V.lineCap&&x(z,"stroke-linecap",V.lineCap),V.lineJoin&&x(z,"stroke-linejoin",V.lineJoin),V.miterLimit&&x(z,"stroke-miterlimit",V.miterLimit)}else x(z,"stroke",i)}function b(z){for(var V=[],Y=z.data,J=z.len(),se=0;se<J;){var $=Y[se++],ae="",ge=0;switch($){case a.M:ae="M",ge=2;break;case a.L:ae="L",ge=2;break;case a.Q:ae="Q",ge=4;break;case a.C:ae="C",ge=6;break;case a.A:var pe=Y[se++],Ne=Y[se++],de=Y[se++],Le=Y[se++],Q=Y[se++],ce=Y[se++],Ke=Y[se++],ee=Y[se++],X=Math.abs(ce),G=p(X-o)||(ee?ce>=o:-ce>=o),Z=ce>0?ce%o:ce%o+o,ve=!1;G?ve=!0:p(X)?ve=!1:ve=Z>=e===!!ee;var ue=f(pe+de*s(Q)),_e=f(Ne+Le*t(Q));G&&(ee?ce=o-1e-4:ce=-o+1e-4,ve=!0,se===9&&V.push("M",ue,_e));var xe=f(pe+de*s(Q+ce)),oe=f(Ne+Le*t(Q+ce));V.push("A",f(de),f(Le),n(Ke*l),+ve,+ee,xe,oe);break;case a.Z:ae="Z";break;case a.R:var xe=f(Y[se++]),oe=f(Y[se++]),fe=f(Y[se++]),Te=f(Y[se++]);V.push("M",xe,oe,"L",xe+fe,oe,"L",xe+fe,oe+Te,"L",xe,oe+Te,"L",xe,oe);break}ae&&V.push(ae);for(var ze=0;ze<ge;ze++)V.push(f(Y[se++]))}return V.join(" ")}var _={};_.brush=function(z){var V=z.style,Y=z.__svgEl;Y||(Y=E("path"),z.__svgEl=Y),z.path||z.createPathProxy();var J=z.path;if(z.__dirtyPath){J.beginPath(),J.subPixelOptimize=!1,z.buildPath(J,z.shape),z.__dirtyPath=!1;var se=b(J);se.indexOf("NaN")<0&&x(Y,"d",se)}w(Y,V,!1,z),y(Y,z.transform),V.text!=null?R(z,z.getBoundingRect()):U(z)};var O={};O.brush=function(z){var V=z.style,Y=V.image;if(Y instanceof HTMLImageElement){var J=Y.src;Y=J}if(!Y)return;var se=V.x||0,$=V.y||0,ae=V.width,ge=V.height,pe=z.__svgEl;pe||(pe=E("image"),z.__svgEl=pe),Y!==z.__imageSrc&&(C(pe,"href",Y),z.__imageSrc=Y),x(pe,"width",ae),x(pe,"height",ge),x(pe,"x",se),x(pe,"y",$),y(pe,z.transform),V.text!=null?R(z,z.getBoundingRect()):U(z)};var L={},D=new g,N={},M=[],F={left:"start",right:"end",center:"middle",middle:"middle"},R=function(V,Y){var J=V.style,se=V.transform,$=V instanceof c||J.transformText;V.__dirty&&h.normalizeTextStyle(J,!0);var ae=J.text;if(ae!=null&&(ae+=""),!h.needDrawText(ae,J))return;ae==null&&(ae=""),!$&&se&&(D.copy(Y),D.applyTransform(se),Y=D);var ge=V.__textSvgEl;ge||(ge=E("text"),V.__textSvgEl=ge);var pe=ge.style,Ne=J.font||m.DEFAULT_FONT,de=ge.__computedFont;Ne!==ge.__styleFont&&(pe.font=ge.__styleFont=Ne,de=ge.__computedFont=pe.font);var Le=J.textPadding,Q=J.textLineHeight,ce=V.__textCotentBlock;(!ce||V.__dirtyText)&&(ce=V.__textCotentBlock=m.parsePlainText(ae,de,Le,Q,J.truncate));var Ke=ce.outerHeight,ee=ce.lineHeight;h.getBoxPosition(N,V,J,Y);var X=N.baseX,G=N.baseY,Z=N.textAlign||"left",ve=N.textVerticalAlign;j(ge,$,se,J,Y,X,G);var ue=m.adjustTextY(G,Ke,ve),_e=X,xe=ue;Le&&(_e=B(X,Z,Le),xe+=Le[0]),xe+=ee/2,w(ge,J,!0,V);var oe=ce.canCacheByTextString,fe=V.__tspanList||(V.__tspanList=[]),Te=fe.length;if(oe&&V.__canCacheByTextString&&V.__text===ae){if(V.__dirtyText&&Te)for(var ze=0;ze<Te;++ze)K(fe[ze],Z,_e,xe+ze*ee)}else{V.__text=ae,V.__canCacheByTextString=oe;for(var it=ce.lines,et=it.length,ze=0;ze<et;ze++){var Oe=fe[ze],gt=it[ze];Oe?Oe.__zrText!==gt&&(Oe.innerHTML="",Oe.appendChild(document.createTextNode(gt))):(Oe=fe[ze]=E("tspan"),ge.appendChild(Oe),Oe.appendChild(document.createTextNode(gt))),K(Oe,Z,_e,xe+ze*ee)}if(Te>et){for(;ze<Te;ze++)ge.removeChild(fe[ze]);fe.length=et}}};function j(z,V,Y,J,se,$,ae){S.identity(M),V&&Y&&S.copy(M,Y);var ge=J.textRotation;if(se&&ge){var pe=J.textOrigin;pe==="center"?($=se.width/2+se.x,ae=se.height/2+se.y):pe&&($=pe[0]+se.x,ae=pe[1]+se.y),M[4]-=$,M[5]-=ae,S.rotate(M,M,ge),M[4]+=$,M[5]+=ae}y(z,M)}function B(z,V,Y){return V==="right"?z-Y[1]:V==="center"?z+Y[3]/2-Y[1]/2:z+Y[3]}function K(z,V,Y,J){x(z,"dominant-baseline","middle"),x(z,"text-anchor",F[V]),x(z,"x",Y),x(z,"y",J)}function U(z){z&&z.__textSvgEl&&(z.__textSvgEl.parentNode&&z.__textSvgEl.parentNode.removeChild(z.__textSvgEl),z.__textSvgEl=null,z.__tspanList=[],z.__text=null)}L.drawRectText=R,L.brush=function(z){var V=z.style;V.text!=null?R(z,!1):U(z)},k.path=_,k.image=O,k.text=L},P4Qj:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.removeSensor=k.getSensor=void 0;var I=g(d("chpo")),E=d("FxDU"),T=d("24YM");function g(c){return c&&c.__esModule?c:{default:c}}var S={},m=function(a){var r=a.getAttribute(T.SizeSensorId);if(r&&S[r])return S[r];var i=(0,I.default)();a.setAttribute(T.SizeSensorId,i);var n=(0,E.createSensor)(a);return S[i]=n,n};k.getSensor=m;var h=function(a){var r=a.element.getAttribute(T.SizeSensorId);a.element.removeAttribute(T.SizeSensorId),a.destroy(),r&&S[r]&&delete S[r]};k.removeSensor=h},P5Jw:function(H,k,d){"use strict";var I=d("rHrb"),E=I.CopyToClipboard;E.CopyToClipboard=E,H.exports=E},PArb:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("q1tI"),m=d.n(S),h=d("TSYQ"),c=d.n(h),a=d("H84U"),r=function(n,t){var s={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(s[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o<e.length;o++)t.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(n,e[o])&&(s[e[o]]=n[e[o]]);return s},i=function(t){return S.createElement(a.a,null,function(s){var e,o=s.getPrefixCls,l=s.direction,u=t.prefixCls,f=t.type,p=f===void 0?"horizontal":f,v=t.orientation,A=v===void 0?"center":v,y=t.className,x=t.children,C=t.dashed,w=t.plain,b=r(t,["prefixCls","type","orientation","className","children","dashed","plain"]),_=o("divider",u),O=A.length>0?"-".concat(A):A,L=!!x,D=c()(y,_,"".concat(_,"-").concat(p),(e={},g()(e,"".concat(_,"-with-text"),L),g()(e,"".concat(_,"-with-text").concat(O),L),g()(e,"".concat(_,"-dashed"),!!C),g()(e,"".concat(_,"-plain"),!!w),g()(e,"".concat(_,"-rtl"),l==="rtl"),e));return S.createElement("div",E()({className:D},b,{role:"separator"}),x&&S.createElement("span",{className:"".concat(_,"-inner-text")},x))})};k.a=i},PD8m:function(H,k){H.exports={name:"memoryStorage",read:I,write:E,each:T,remove:g,clearAll:S};var d={};function I(m){return d[m]}function E(m,h){d[m]=h}function T(m){for(var h in d)d.hasOwnProperty(h)&&m(d[h],h)}function g(m){delete d[m]}function S(m){d={}}},PKem:function(H,k,d){"use strict";d.d(k,"a",function(){return v});var I=d("RIqP"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("pVnL"),m=d.n(S),h=d("lwsE"),c=d.n(h),a=d("W8MJ"),r=d.n(a),i=d("7W2i"),n=d.n(i),t=d("LQ03"),s=d.n(t),e=d("q1tI"),o=d.n(e),l=d("TSYQ"),u=d.n(l),f=d("H84U"),p=function(O,L){var D={};for(var N in O)Object.prototype.hasOwnProperty.call(O,N)&&L.indexOf(N)<0&&(D[N]=O[N]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,N=Object.getOwnPropertySymbols(O);M<N.length;M++)L.indexOf(N[M])<0&&Object.prototype.propertyIsEnumerable.call(O,N[M])&&(D[N[M]]=O[N[M]]);return D},v=e.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function A(O){var L=O.suffixCls,D=O.tagName,N=O.displayName;return function(M){var F;return F=function(R){n()(B,R);var j=s()(B);function B(){var K;return c()(this,B),K=j.apply(this,arguments),K.renderComponent=function(U){var z=U.getPrefixCls,V=K.props.prefixCls,Y=z(L,V);return e.createElement(M,m()({prefixCls:Y,tagName:D},K.props))},K}return r()(B,[{key:"render",value:function(){return e.createElement(f.a,null,this.renderComponent)}}]),B}(e.Component),F.displayName=N,F}}var y=function(L){var D=L.prefixCls,N=L.className,M=L.children,F=L.tagName,R=p(L,["prefixCls","className","children","tagName"]),j=u()(D,N);return e.createElement(F,m()({className:j},R),M)},x=function(O){n()(D,O);var L=s()(D);function D(){var N;return c()(this,D),N=L.apply(this,arguments),N.state={siders:[]},N.renderComponent=function(M){var F,R=M.direction,j=N.props,B=j.prefixCls,K=j.className,U=j.children,z=j.hasSider,V=j.tagName,Y=p(j,["prefixCls","className","children","hasSider","tagName"]),J=u()(B,(F={},g()(F,"".concat(B,"-has-sider"),typeof z=="boolean"?z:N.state.siders.length>0),g()(F,"".concat(B,"-rtl"),R==="rtl"),F),K);return e.createElement(v.Provider,{value:{siderHook:N.getSiderHook()}},e.createElement(V,m()({className:J},Y),U))},N}return r()(D,[{key:"getSiderHook",value:function(){var M=this;return{addSider:function(R){M.setState(function(j){return{siders:[].concat(E()(j.siders),[R])}})},removeSider:function(R){M.setState(function(j){return{siders:j.siders.filter(function(B){return B!==R})}})}}}},{key:"render",value:function(){return e.createElement(f.a,null,this.renderComponent)}}]),D}(e.Component),C=A({suffixCls:"layout",tagName:"section",displayName:"Layout"})(x),w=A({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(y),b=A({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(y),_=A({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(y);C.Header=w,C.Footer=b,C.Content=_,k.b=C},PNag:function(H,k,d){var I=d("bYtY"),E=d("SKnc"),T=d("YH21"),g=d("crZl"),S=d("IwbS"),m=d("OELB"),h=d("72pK"),c=d("y7Aq"),a=d("4NO4"),r=m.linearMap,i=I.each,n=Math.min,t=Math.max,s=12,e=6,o=g.extend({type:"visualMap.continuous",init:function(){o.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(x,C,w,b){(!b||b.type!=="selectDataRange"||b.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var x=this.visualMapModel,C=this.group;this._orient=x.get("orient"),this._useHandle=x.get("calculable"),this._resetInterval(),this._renderBar(C);var w=x.get("text");this._renderEndsText(C,w,0),this._renderEndsText(C,w,1),this._updateView(!0),this.renderBackground(C),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(C)},_renderEndsText:function(x,C,w){if(!C)return;var b=C[1-w];b=b!=null?b+"":"";var _=this.visualMapModel,O=_.get("textGap"),L=_.itemSize,D=this._shapes.barGroup,N=this._applyTransform([L[0]/2,w===0?-O:L[1]+O],D),M=this._applyTransform(w===0?"bottom":"top",D),F=this._orient,R=this.visualMapModel.textStyleModel;this.group.add(new S.Text({style:{x:N[0],y:N[1],textVerticalAlign:F==="horizontal"?"middle":M,textAlign:F==="horizontal"?M:"center",text:b,textFont:R.getFont(),textFill:R.getTextColor()}}))},_renderBar:function(x){var C=this.visualMapModel,w=this._shapes,b=C.itemSize,_=this._orient,O=this._useHandle,L=c.getItemAlign(C,this.api,b),D=w.barGroup=this._createBarGroup(L);D.add(w.outOfRange=l()),D.add(w.inRange=l(null,O?A(this._orient):null,I.bind(this._dragHandle,this,"all",!1),I.bind(this._dragHandle,this,"all",!0)));var N=C.textStyleModel.getTextRect("\u56FD"),M=t(N.width,N.height);O&&(w.handleThumbs=[],w.handleLabels=[],w.handleLabelPoints=[],this._createHandle(D,0,b,M,_,L),this._createHandle(D,1,b,M,_,L)),this._createIndicator(D,b,M,_),x.add(D)},_createHandle:function(x,C,w,b,_){var O=I.bind(this._dragHandle,this,C,!1),L=I.bind(this._dragHandle,this,C,!0),D=l(u(C,b),A(this._orient),O,L);D.position[0]=w[0],x.add(D);var N=this.visualMapModel.textStyleModel,M=new S.Text({draggable:!0,drift:O,onmousemove:function(j){T.stop(j.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:N.getFont(),textFill:N.getTextColor()}});this.group.add(M);var F=[_==="horizontal"?b/2:b*1.5,_==="horizontal"?C===0?-(b*1.5):b*1.5:C===0?-b/2:b/2],R=this._shapes;R.handleThumbs[C]=D,R.handleLabelPoints[C]=F,R.handleLabels[C]=M},_createIndicator:function(x,C,w,b){var _=l([[0,0]],"move");_.position[0]=C[0],_.attr({invisible:!0,silent:!0}),x.add(_);var O=this.visualMapModel.textStyleModel,L=new S.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:O.getFont(),textFill:O.getTextColor()}});this.group.add(L);var D=[b==="horizontal"?w/2:e+3,0],N=this._shapes;N.indicator=_,N.indicatorLabel=L,N.indicatorLabelPoint=D},_dragHandle:function(x,C,w,b){if(!this._useHandle)return;if(this._dragging=!C,!C){var _=this._applyTransform([w,b],this._shapes.barGroup,!0);this._updateInterval(x,_[1]),this._updateView()}C===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),C?!this._hovering&&this._clearHoverLinkToSeries():v(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[x],!1)},_resetInterval:function(){var x=this.visualMapModel,C=this._dataInterval=x.getSelected(),w=x.getExtent(),b=[0,x.itemSize[1]];this._handleEnds=[r(C[0],w,b,!0),r(C[1],w,b,!0)]},_updateInterval:function(x,C){C=C||0;var w=this.visualMapModel,b=this._handleEnds,_=[0,w.itemSize[1]];h(C,b,_,x,0);var O=w.getExtent();this._dataInterval=[r(b[0],_,O,!0),r(b[1],_,O,!0)]},_updateView:function(x){var C=this.visualMapModel,w=C.getExtent(),b=this._shapes,_=[0,C.itemSize[1]],O=x?_:this._handleEnds,L=this._createBarVisual(this._dataInterval,w,O,"inRange"),D=this._createBarVisual(w,w,_,"outOfRange");b.inRange.setStyle({fill:L.barColor,opacity:L.opacity}).setShape("points",L.barPoints),b.outOfRange.setStyle({fill:D.barColor,opacity:D.opacity}).setShape("points",D.barPoints),this._updateHandle(O,L)},_createBarVisual:function(x,C,w,b){var _={forceState:b,convertOpacityToAlpha:!0},O=this._makeColorGradient(x,_),L=[this.getControllerVisual(x[0],"symbolSize",_),this.getControllerVisual(x[1],"symbolSize",_)],D=this._createBarPoints(w,L);return{barColor:new E(0,0,0,1,O),barPoints:D,handlesColor:[O[0].color,O[O.length-1].color]}},_makeColorGradient:function(x,C){var w=100,b=[],_=(x[1]-x[0])/w;b.push({color:this.getControllerVisual(x[0],"color",C),offset:0});for(var O=1;O<w;O++){var L=x[0]+_*O;if(L>x[1])break;b.push({color:this.getControllerVisual(L,"color",C),offset:O/w})}return b.push({color:this.getControllerVisual(x[1],"color",C),offset:1}),b},_createBarPoints:function(x,C){var w=this.visualMapModel.itemSize;return[[w[0]-C[0],x[0]],[w[0],x[0]],[w[0],x[1]],[w[0]-C[1],x[1]]]},_createBarGroup:function(x){var C=this._orient,w=this.visualMapModel.get("inverse");return new S.Group(C==="horizontal"&&!w?{scale:x==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:C==="horizontal"&&w?{scale:x==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:C==="vertical"&&!w?{scale:x==="left"?[1,-1]:[-1,-1]}:{scale:x==="left"?[1,1]:[-1,1]})},_updateHandle:function(x,C){if(!this._useHandle)return;var w=this._shapes,b=this.visualMapModel,_=w.handleThumbs,O=w.handleLabels;i([0,1],function(L){var D=_[L];D.setStyle("fill",C.handlesColor[L]),D.position[1]=x[L];var N=S.applyTransform(w.handleLabelPoints[L],S.getTransform(D,this.group));O[L].setStyle({x:N[0],y:N[1],text:b.formatValueText(this._dataInterval[L]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?L===0?"bottom":"top":"left",w.barGroup)})},this)},_showIndicator:function(x,C,w,b){var _=this.visualMapModel,O=_.getExtent(),L=_.itemSize,D=[0,L[1]],N=r(x,O,D,!0),M=this._shapes,F=M.indicator;if(!F)return;F.position[1]=N,F.attr("invisible",!1),F.setShape("points",f(!!w,b,N,L[1]));var R={convertOpacityToAlpha:!0},j=this.getControllerVisual(x,"color",R);F.setStyle("fill",j);var B=S.applyTransform(M.indicatorLabelPoint,S.getTransform(F,this.group)),K=M.indicatorLabel;K.attr("invisible",!1);var U=this._applyTransform("left",M.barGroup),z=this._orient;K.setStyle({text:(w||"")+_.formatValueText(C),textVerticalAlign:z==="horizontal"?U:"middle",textAlign:z==="horizontal"?"center":U,x:B[0],y:B[1]})},_enableHoverLinkToSeries:function(){var x=this;this._shapes.barGroup.on("mousemove",function(C){if(x._hovering=!0,!x._dragging){var w=x.visualMapModel.itemSize,b=x._applyTransform([C.offsetX,C.offsetY],x._shapes.barGroup,!0,!0);b[1]=n(t(0,b[1]),w[1]),x._doHoverLinkToSeries(b[1],0<=b[0]&&b[0]<=w[0])}}).on("mouseout",function(){x._hovering=!1,!x._dragging&&x._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var x=this.api.getZr();this.visualMapModel.option.hoverLink?(x.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),x.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(x,C){var w=this.visualMapModel,b=w.itemSize;if(!w.option.hoverLink)return;var _=[0,b[1]],O=w.getExtent();x=n(t(_[0],x),_[1]);var L=p(w,O,_),D=[x-L,x+L],N=r(x,_,O,!0),M=[r(D[0],_,O,!0),r(D[1],_,O,!0)];D[0]<_[0]&&(M[0]=-Infinity),D[1]>_[1]&&(M[1]=Infinity),C&&(M[0]===-Infinity?this._showIndicator(N,M[1],"< ",L):M[1]===Infinity?this._showIndicator(N,M[0],"> ",L):this._showIndicator(N,N,"\u2248 ",L));var F=this._hoverLinkDataIndices,R=[];(C||v(w))&&(R=this._hoverLinkDataIndices=w.findTargetDataIndices(M));var j=a.compressBatches(F,R);this._dispatchHighDown("downplay",c.makeHighDownBatch(j[0],w)),this._dispatchHighDown("highlight",c.makeHighDownBatch(j[1],w))},_hoverLinkFromSeriesMouseOver:function(x){var C=x.target,w=this.visualMapModel;if(!C||C.dataIndex==null)return;var b=this.ecModel.getSeriesByIndex(C.seriesIndex);if(!w.isTargetSeries(b))return;var _=b.getData(C.dataType),O=_.get(w.getDataDimension(_),C.dataIndex,!0);isNaN(O)||this._showIndicator(O,O)},_hideIndicator:function(){var x=this._shapes;x.indicator&&x.indicator.attr("invisible",!0),x.indicatorLabel&&x.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var x=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(x,this.visualMapModel)),x.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var x=this.api.getZr();x.off("mouseover",this._hoverLinkFromSeriesMouseOver),x.off("mouseout",this._hideIndicator)},_applyTransform:function(x,C,w,b){var _=S.getTransform(C,b?null:this.group);return S[I.isArray(x)?"applyTransform":"transformDirection"](x,_,w)},_dispatchHighDown:function(x,C){C&&C.length&&this.api.dispatchAction({type:x,batch:C})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function l(x,C,w,b){return new S.Polygon({shape:{points:x},draggable:!!w,cursor:C,drift:w,onmousemove:function(_){T.stop(_.event)},ondragend:b})}function u(x,C){return x===0?[[0,0],[C,0],[C,-C]]:[[0,0],[C,0],[C,C]]}function f(x,C,w,b){return x?[[0,-n(C,t(w,0))],[e,0],[0,n(C,t(b-w,0))]]:[[0,0],[5,-5],[5,5]]}function p(x,C,w){var b=s/2,_=x.get("hoverLinkDataSize");return _&&(b=r(_,C,w,!0)/2),b}function v(x){var C=x.get("hoverLinkOnHandle");return!!(C==null?x.get("realtime"):C)}function A(x){return x==="vertical"?"ns-resize":"ew-resize"}var y=o;H.exports=y},PQMj:function(H,k,d){},PSzr:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},PVpz:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.StreamCipher,S=E.algo,m=[],h=[],c=[],a=S.RabbitLegacy=g.extend({_doReset:function(){var n=this._key.words,t=this.cfg.iv,s=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],e=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var o=0;o<4;o++)r.call(this);for(var o=0;o<8;o++)e[o]^=s[o+4&7];if(t){var l=t.words,u=l[0],f=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,v=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,A=p>>>16|v&4294901760,y=v<<16|p&65535;e[0]^=p,e[1]^=A,e[2]^=v,e[3]^=y,e[4]^=p,e[5]^=A,e[6]^=v,e[7]^=y;for(var o=0;o<4;o++)r.call(this)}},_doProcessBlock:function(n,t){var s=this._X;r.call(this),m[0]=s[0]^s[5]>>>16^s[3]<<16,m[1]=s[2]^s[7]>>>16^s[5]<<16,m[2]=s[4]^s[1]>>>16^s[7]<<16,m[3]=s[6]^s[3]>>>16^s[1]<<16;for(var e=0;e<4;e++)m[e]=(m[e]<<8|m[e]>>>24)&16711935|(m[e]<<24|m[e]>>>8)&4278255360,n[t+e]^=m[e]},blockSize:128/32,ivSize:64/32});function r(){for(var i=this._X,n=this._C,t=0;t<8;t++)h[t]=n[t];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<h[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<h[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<h[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<h[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<h[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<h[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<h[6]>>>0?1:0)|0,this._b=n[7]>>>0<h[7]>>>0?1:0;for(var t=0;t<8;t++){var s=i[t]+n[t],e=s&65535,o=s>>>16,l=((e*e>>>17)+e*o>>>15)+o*o,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[t]=l^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.RabbitLegacy=g._createHelper(a)}(),I.RabbitLegacy})},ProS:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("aX58"),g=d("bYtY"),S=d("Qe9p"),m=d("ItGF"),h=d("BPZU"),c=d("H6uX"),a=d("fmMI"),r=d("hD7B"),i=d("IDmD"),n=d("ypgQ"),t=d("+wW9"),s=d("0V0F"),e=d("bLfw"),o=d("T4UG"),l=d("sS/r"),u=d("6Ic6"),f=d("IwbS"),p=d("4NO4"),v=d("iLNv"),A=v.throttle,y=d("/WM3"),x=d("uAnK"),C=d("mYwL"),w=d("af/B"),b=d("xTNl"),_=d("8hn6");d("A1Ka");var O=d("7DRL"),L=g.assert,D=g.each,N=g.isFunction,M=g.isObject,F=e.parseClassType,R="4.8.0",j={zrender:"4.3.1"},B=1,K=1e3,U=800,z=900,V=5e3,Y=1e3,J=1100,se=2e3,$=3e3,ae=3500,ge=4e3,pe=5e3,Ne={PROCESSOR:{FILTER:K,SERIES_FILTER:U,STATISTIC:V},VISUAL:{LAYOUT:Y,PROGRESSIVE_LAYOUT:J,GLOBAL:se,CHART:$,POST_CHART_LAYOUT:ae,COMPONENT:ge,BRUSH:pe}},de="__flagInMainProcess",Le="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function ce(vt,Ft){return function(gr,or,ur){if(!Ft&&this._disposed){xt(this.id);return}gr=gr&&gr.toLowerCase(),c.prototype[vt].call(this,gr,or,ur)}}function Ke(){c.call(this)}Ke.prototype.on=ce("on",!0),Ke.prototype.off=ce("off",!0),Ke.prototype.one=ce("one",!0),g.mixin(Ke,c);function ee(vt,Ft,gr){gr=gr||{},typeof Ft=="string"&&(Ft=ct[Ft]),this.id,this.group,this._dom=vt;var or="canvas",ur=this._zr=T.init(vt,{renderer:gr.renderer||or,devicePixelRatio:gr.devicePixelRatio,width:gr.width,height:gr.height});this._throttledZrFlush=A(g.bind(ur.flush,ur),17);var Ft=g.clone(Ft);Ft&&t(Ft,!0),this._theme=Ft,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new i;var Yr=this._api=Je(this);function Jr(Tn,Dn){return Tn.__prio-Dn.__prio}h(er,Jr),h(qe,Jr),this._scheduler=new w(this,Yr,qe,er),c.call(this,this._ecEventProcessor=new ye),this._messageCenter=new Ke,this._initEvents(),this.resize=g.bind(this.resize,this),this._pendingActions=[],ur.animation.on("frame",this._onframe,this),Te(ur,this),g.setAsPrimitive(this)}var X=ee.prototype;X._onframe=function(){if(this._disposed)return;var vt=this._scheduler;if(this[Le]){var Ft=this[Le].silent;this[de]=!0,ve(this),Z.update.call(this),this[de]=!1,this[Le]=!1,oe.call(this,Ft),fe.call(this,Ft)}else if(vt.unfinished){var gr=B,or=this._model,ur=this._api;vt.unfinished=!1;do{var Yr=+new Date;vt.performSeriesTasks(or),vt.performDataProcessorTasks(or),_e(this,or),vt.performVisualTasks(or),gt(this,this._model,ur,"remain"),gr-=+new Date-Yr}while(gr>0&&vt.unfinished);vt.unfinished||this._zr.flush()}},X.getDom=function(){return this._dom},X.getZr=function(){return this._zr},X.setOption=function(vt,Ft,gr){if(this._disposed){xt(this.id);return}var or;if(M(Ft)&&(gr=Ft.lazyUpdate,or=Ft.silent,Ft=Ft.notMerge),this[de]=!0,!this._model||Ft){var ur=new n(this._api),Yr=this._theme,Jr=this._model=new a;Jr.scheduler=this._scheduler,Jr.init(null,null,Yr,ur)}this._model.setOption(vt,me),gr?(this[Le]={silent:or},this[de]=!1):(ve(this),Z.update.call(this),this._zr.flush(),this[Le]=!1,this[de]=!1,oe.call(this,or),fe.call(this,or))},X.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},X.getModel=function(){return this._model},X.getOption=function(){return this._model&&this._model.getOption()},X.getWidth=function(){return this._zr.getWidth()},X.getHeight=function(){return this._zr.getHeight()},X.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},X.getRenderedCanvas=function(vt){if(!m.canvasSupported)return;vt=vt||{},vt.pixelRatio=vt.pixelRatio||1,vt.backgroundColor=vt.backgroundColor||this._model.get("backgroundColor");var Ft=this._zr;return Ft.painter.getRenderedCanvas(vt)},X.getSvgDataURL=function(){if(!m.svgSupported)return;var vt=this._zr,Ft=vt.storage.getDisplayList();return g.each(Ft,function(gr){gr.stopAnimation(!0)}),vt.painter.toDataURL()},X.getDataURL=function(vt){if(this._disposed){xt(this.id);return}vt=vt||{};var Ft=vt.excludeComponents,gr=this._model,or=[],ur=this;D(Ft,function(Jr){gr.eachComponent({mainType:Jr},function(Tn){var Dn=ur._componentsMap[Tn.__viewId];Dn.group.ignore||(or.push(Dn),Dn.group.ignore=!0)})});var Yr=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(vt).toDataURL("image/"+(vt&&vt.type||"png"));return D(or,function(Jr){Jr.group.ignore=!1}),Yr},X.getConnectedDataURL=function(vt){if(this._disposed){xt(this.id);return}if(!m.canvasSupported)return;var Ft=vt.type==="svg",gr=this.group,or=Math.min,ur=Math.max,Yr=Infinity;if(Kr[gr]){var Jr=Yr,Tn=Yr,Dn=-Yr,zn=-Yr,qn=[],Ai=vt&&vt.pixelRatio||1;g.each(sr,function(Ve,We){if(Ve.group===gr){var Ze=Ft?Ve.getZr().painter.getSvgDom().innerHTML:Ve.getRenderedCanvas(g.clone(vt)),yt=Ve.getDom().getBoundingClientRect();Jr=or(yt.left,Jr),Tn=or(yt.top,Tn),Dn=ur(yt.right,Dn),zn=ur(yt.bottom,zn),qn.push({dom:Ze,left:yt.left,top:yt.top})}}),Jr*=Ai,Tn*=Ai,Dn*=Ai,zn*=Ai;var Mi=Dn-Jr,Ye=zn-Tn,Ce=g.createCanvas(),ke=T.init(Ce,{renderer:Ft?"svg":"canvas"});if(ke.resize({width:Mi,height:Ye}),Ft){var Fe="";return D(qn,function(Ve){var We=Ve.left-Jr,Ze=Ve.top-Tn;Fe+='<g transform="translate('+We+","+Ze+')">'+Ve.dom+"</g>"}),ke.painter.getSvgRoot().innerHTML=Fe,vt.connectedBackgroundColor&&ke.painter.setBackgroundColor(vt.connectedBackgroundColor),ke.refreshImmediately(),ke.painter.toDataURL()}else return vt.connectedBackgroundColor&&ke.add(new f.Rect({shape:{x:0,y:0,width:Mi,height:Ye},style:{fill:vt.connectedBackgroundColor}})),D(qn,function(Ve){var We=new f.Image({style:{x:Ve.left*Ai-Jr,y:Ve.top*Ai-Tn,image:Ve.dom}});ke.add(We)}),ke.refreshImmediately(),Ce.toDataURL("image/"+(vt&&vt.type||"png"))}else return this.getDataURL(vt)},X.convertToPixel=g.curry(G,"convertToPixel"),X.convertFromPixel=g.curry(G,"convertFromPixel");function G(vt,Ft,gr){if(this._disposed){xt(this.id);return}var or=this._model,ur=this._coordSysMgr.getCoordinateSystems(),Yr;Ft=p.parseFinder(or,Ft);for(var Jr=0;Jr<ur.length;Jr++){var Tn=ur[Jr];if(Tn[vt]&&(Yr=Tn[vt](or,Ft,gr))!=null)return Yr}}X.containPixel=function(vt,Ft){if(this._disposed){xt(this.id);return}var gr=this._model,or;return vt=p.parseFinder(gr,vt),g.each(vt,function(ur,Yr){Yr.indexOf("Models")>=0&&g.each(ur,function(Jr){var Tn=Jr.coordinateSystem;if(Tn&&Tn.containPoint)or|=!!Tn.containPoint(Ft);else if(Yr==="seriesModels"){var Dn=this._chartsMap[Jr.__viewId];Dn&&Dn.containPoint&&(or|=Dn.containPoint(Ft,Jr))}},this)},this),!!or},X.getVisual=function(vt,Ft){var gr=this._model;vt=p.parseFinder(gr,vt,{defaultMainType:"series"});var or=vt.seriesModel,ur=or.getData(),Yr=vt.hasOwnProperty("dataIndexInside")?vt.dataIndexInside:vt.hasOwnProperty("dataIndex")?ur.indexOfRawIndex(vt.dataIndex):null;return Yr!=null?ur.getItemVisual(Yr,Ft):ur.getVisual(Ft)},X.getViewOfComponentModel=function(vt){return this._componentsMap[vt.__viewId]},X.getViewOfSeriesModel=function(vt){return this._chartsMap[vt.__viewId]};var Z={prepareAndUpdate:function(vt){ve(this),Z.update.call(this,vt)},update:function(vt){var Ft=this._model,gr=this._api,or=this._zr,ur=this._coordSysMgr,Yr=this._scheduler;if(!Ft)return;Yr.restoreData(Ft,vt),Yr.performSeriesTasks(Ft),ur.create(Ft,gr),Yr.performDataProcessorTasks(Ft,vt),_e(this,Ft),ur.update(Ft,gr),it(Ft),Yr.performVisualTasks(Ft,vt),et(this,Ft,gr,vt);var Jr=Ft.get("backgroundColor")||"transparent";if(m.canvasSupported)or.setBackgroundColor(Jr);else{var Tn=S.parse(Jr);Jr=S.stringify(Tn,"rgb"),Tn[3]===0&&(Jr="transparent")}Ge(Ft,gr)},updateTransform:function(vt){var Ft=this._model,gr=this,or=this._api;if(!Ft)return;var ur=[];Ft.eachComponent(function(Jr,Tn){var Dn=gr.getViewOfComponentModel(Tn);if(Dn&&Dn.__alive)if(Dn.updateTransform){var zn=Dn.updateTransform(Tn,Ft,or,vt);zn&&zn.update&&ur.push(Dn)}else ur.push(Dn)});var Yr=g.createHashMap();Ft.eachSeries(function(Jr){var Tn=gr._chartsMap[Jr.__viewId];if(Tn.updateTransform){var Dn=Tn.updateTransform(Jr,Ft,or,vt);Dn&&Dn.update&&Yr.set(Jr.uid,1)}else Yr.set(Jr.uid,1)}),it(Ft),this._scheduler.performVisualTasks(Ft,vt,{setDirty:!0,dirtyMap:Yr}),gt(gr,Ft,or,vt,Yr),Ge(Ft,this._api)},updateView:function(vt){var Ft=this._model;if(!Ft)return;u.markUpdateMethod(vt,"updateView"),it(Ft),this._scheduler.performVisualTasks(Ft,vt,{setDirty:!0}),et(this,this._model,this._api,vt),Ge(Ft,this._api)},updateVisual:function(vt){Z.update.call(this,vt)},updateLayout:function(vt){Z.update.call(this,vt)}};function ve(vt){var Ft=vt._model,gr=vt._scheduler;gr.restorePipelines(Ft),gr.prepareStageTasks(),ze(vt,"component",Ft,gr),ze(vt,"chart",Ft,gr),gr.plan()}function ue(vt,Ft,gr,or,ur){var Yr=vt._model;if(!or){D(vt._componentsViews.concat(vt._chartsViews),zn);return}var Jr={};Jr[or+"Id"]=gr[or+"Id"],Jr[or+"Index"]=gr[or+"Index"],Jr[or+"Name"]=gr[or+"Name"];var Tn={mainType:or,query:Jr};ur&&(Tn.subType=ur);var Dn=gr.excludeSeriesId;Dn!=null&&(Dn=g.createHashMap(p.normalizeToArray(Dn))),Yr&&Yr.eachComponent(Tn,function(qn){(!Dn||Dn.get(qn.id)==null)&&zn(vt[or==="series"?"_chartsMap":"_componentsMap"][qn.__viewId])},vt);function zn(qn){qn&&qn.__alive&&qn[Ft]&&qn[Ft](qn.__model,Yr,vt._api,gr)}}X.resize=function(vt){if(this._disposed){xt(this.id);return}this._zr.resize(vt);var Ft=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Ft)return;var gr=Ft.resetOption("media"),or=vt&&vt.silent;this[de]=!0,gr&&ve(this),Z.update.call(this),this[de]=!1,oe.call(this,or),fe.call(this,or)};function _e(vt,Ft){var gr=vt._chartsMap,or=vt._scheduler;Ft.eachSeries(function(ur){or.updateStreamModes(ur,gr[ur.__viewId])})}X.showLoading=function(vt,Ft){if(this._disposed){xt(this.id);return}if(M(vt)&&(Ft=vt,vt=""),vt=vt||"default",this.hideLoading(),!zt[vt])return;var gr=zt[vt](this._api,Ft),or=this._zr;this._loadingFX=gr,or.add(gr)},X.hideLoading=function(){if(this._disposed){xt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},X.makeActionFromEvent=function(vt){var Ft=g.extend({},vt);return Ft.type=bt[vt.type],Ft},X.dispatchAction=function(vt,Ft){if(this._disposed){xt(this.id);return}if(M(Ft)||(Ft={silent:!!Ft}),!ie[vt.type])return;if(!this._model)return;if(this[de]){this._pendingActions.push(vt);return}xe.call(this,vt,Ft.silent),Ft.flush?this._zr.flush(!0):Ft.flush!==!1&&m.browser.weChat&&this._throttledZrFlush(),oe.call(this,Ft.silent),fe.call(this,Ft.silent)};function xe(vt,Ft){var gr=vt.type,or=vt.escapeConnect,ur=ie[gr],Yr=ur.actionInfo,Jr=(Yr.update||"update").split(":"),Tn=Jr.pop();Jr=Jr[0]!=null&&F(Jr[0]),this[de]=!0;var Dn=[vt],zn=!1;vt.batch&&(zn=!0,Dn=g.map(vt.batch,function(Ye){return Ye=g.defaults(g.extend({},Ye),vt),Ye.batch=null,Ye}));var qn=[],Ai,Mi=gr==="highlight"||gr==="downplay";D(Dn,function(Ye){Ai=ur.action(Ye,this._model,this._api),Ai=Ai||g.extend({},Ye),Ai.type=Yr.event||Ai.type,qn.push(Ai),Mi?ue(this,Tn,Ye,"series"):Jr&&ue(this,Tn,Ye,Jr.main,Jr.sub)},this),Tn!=="none"&&!Mi&&!Jr&&(this[Le]?(ve(this),Z.update.call(this,vt),this[Le]=!1):Z[Tn].call(this,vt)),zn?Ai={type:Yr.event||gr,escapeConnect:or,batch:qn}:Ai=qn[0],this[de]=!1,!Ft&&this._messageCenter.trigger(Ai.type,Ai)}function oe(vt){for(var Ft=this._pendingActions;Ft.length;){var gr=Ft.shift();xe.call(this,gr,vt)}}function fe(vt){!vt&&this.trigger("updated")}function Te(vt,Ft){vt.on("rendered",function(){Ft.trigger("rendered"),vt.animation.isFinished()&&!Ft[Le]&&!Ft._scheduler.unfinished&&!Ft._pendingActions.length&&Ft.trigger("finished")})}X.appendData=function(vt){if(this._disposed){xt(this.id);return}var Ft=vt.seriesIndex,gr=this.getModel(),or=gr.getSeriesByIndex(Ft);or.appendData(vt),this._scheduler.unfinished=!0},X.on=ce("on",!1),X.off=ce("off",!1),X.one=ce("one",!1);function ze(vt,Ft,gr,or){for(var ur=Ft==="component",Yr=ur?vt._componentsViews:vt._chartsViews,Jr=ur?vt._componentsMap:vt._chartsMap,Tn=vt._zr,Dn=vt._api,zn=0;zn<Yr.length;zn++)Yr[zn].__alive=!1;ur?gr.eachComponent(function(Mi,Ye){Mi!=="series"&&qn(Ye)}):gr.eachSeries(qn);function qn(Mi){var Ye="_ec_"+Mi.id+"_"+Mi.type,Ce=Jr[Ye];if(!Ce){var ke=F(Mi.type),Fe=ur?l.getClass(ke.main,ke.sub):u.getClass(ke.sub);Ce=new Fe,Ce.init(gr,Dn),Jr[Ye]=Ce,Yr.push(Ce),Tn.add(Ce.group)}Mi.__viewId=Ce.__id=Ye,Ce.__alive=!0,Ce.__model=Mi,Ce.group.__ecComponentInfo={mainType:Mi.mainType,index:Mi.componentIndex},!ur&&or.prepareView(Ce,Mi,gr,Dn)}for(var zn=0;zn<Yr.length;){var Ai=Yr[zn];Ai.__alive?zn++:(!ur&&Ai.renderTask.dispose(),Tn.remove(Ai.group),Ai.dispose(gr,Dn),Yr.splice(zn,1),delete Jr[Ai.__id],Ai.__id=Ai.group.__ecComponentInfo=null)}}function it(vt){vt.clearColorPalette(),vt.eachSeries(function(Ft){Ft.clearColorPalette()})}function et(vt,Ft,gr,or){Oe(vt,Ft,gr,or),D(vt._chartsViews,function(ur){ur.__alive=!1}),gt(vt,Ft,gr,or),D(vt._chartsViews,function(ur){ur.__alive||ur.remove(Ft,gr)})}function Oe(vt,Ft,gr,or,ur){D(ur||vt._componentsViews,function(Yr){var Jr=Yr.__model;Yr.render(Jr,Ft,gr,or),Ht(Jr,Yr)})}function gt(vt,Ft,gr,or,ur){var Yr=vt._scheduler,Jr;Ft.eachSeries(function(Tn){var Dn=vt._chartsMap[Tn.__viewId];Dn.__alive=!0;var zn=Dn.renderTask;Yr.updatePayload(zn,or),ur&&ur.get(Tn.uid)&&zn.dirty(),Jr|=zn.perform(Yr.getPerformArgs(zn)),Dn.group.silent=!!Tn.get("silent"),Ht(Tn,Dn),Dt(Tn,Dn)}),Yr.unfinished|=Jr,Ct(vt,Ft),x(vt._zr.dom,Ft)}function Ge(vt,Ft){D(Rt,function(gr){gr(vt,Ft)})}var wt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];X._initEvents=function(){D(wt,function(vt){var Ft=function(gr){var or=this.getModel(),ur=gr.target,Yr,Jr=vt==="globalout";if(Jr)Yr={};else if(ur&&ur.dataIndex!=null){var Tn=ur.dataModel||or.getSeriesByIndex(ur.seriesIndex);Yr=Tn&&Tn.getDataParams(ur.dataIndex,ur.dataType,ur)||{}}else ur&&ur.eventData&&(Yr=g.extend({},ur.eventData));if(Yr){var Dn=Yr.componentType,zn=Yr.componentIndex;(Dn==="markLine"||Dn==="markPoint"||Dn==="markArea")&&(Dn="series",zn=Yr.seriesIndex);var qn=Dn&&zn!=null&&or.getComponent(Dn,zn),Ai=qn&&this[qn.mainType==="series"?"_chartsMap":"_componentsMap"][qn.__viewId];Yr.event=gr,Yr.type=vt,this._ecEventProcessor.eventInfo={targetEl:ur,packedEvent:Yr,model:qn,view:Ai},this.trigger(vt,Yr)}};Ft.zrEventfulCallAtLast=!0,this._zr.on(vt,Ft,this)},this),D(bt,function(vt,Ft){this._messageCenter.on(Ft,function(gr){this.trigger(Ft,gr)},this)},this)},X.isDisposed=function(){return this._disposed},X.clear=function(){if(this._disposed){xt(this.id);return}this.setOption({series:[]},!0)},X.dispose=function(){if(this._disposed){xt(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),Lt,"");var vt=this._api,Ft=this._model;D(this._componentsViews,function(gr){gr.dispose(Ft,vt)}),D(this._chartsViews,function(gr){gr.dispose(Ft,vt)}),this._zr.dispose(),delete sr[this.id]},g.mixin(ee,c);function xt(vt){}function Ct(vt,Ft){var gr=vt._zr,or=gr.storage,ur=0;or.traverse(function(Yr){ur++}),ur>Ft.get("hoverLayerThreshold")&&!m.node&&Ft.eachSeries(function(Yr){if(Yr.preventUsingHoverLayer)return;var Jr=vt._chartsMap[Yr.__viewId];Jr.__alive&&Jr.group.traverse(function(Tn){Tn.useHoverLayer=!0})})}function Dt(vt,Ft){var gr=vt.get("blendMode")||null;Ft.group.traverse(function(or){or.isGroup||or.style.blend!==gr&&or.setStyle("blend",gr),or.eachPendingDisplayable&&or.eachPendingDisplayable(function(ur){ur.setStyle("blend",gr)})})}function Ht(vt,Ft){var gr=vt.get("z"),or=vt.get("zlevel");Ft.group.traverse(function(ur){ur.type!=="group"&&(gr!=null&&(ur.z=gr),or!=null&&(ur.zlevel=or))})}function Je(vt){var Ft=vt._coordSysMgr;return g.extend(new r(vt),{getCoordinateSystems:g.bind(Ft.getCoordinateSystems,Ft),getComponentByElement:function(gr){for(;gr;){var or=gr.__ecComponentInfo;if(or!=null)return vt._model.getComponent(or.mainType,or.index);gr=gr.parent}}})}function ye(){this.eventInfo}ye.prototype={constructor:ye,normalizeQuery:function(vt){var Ft={},gr={},or={};if(g.isString(vt)){var ur=F(vt);Ft.mainType=ur.main||null,Ft.subType=ur.sub||null}else{var Yr=["Index","Name","Id"],Jr={name:1,dataIndex:1,dataType:1};g.each(vt,function(Tn,Dn){for(var zn=!1,qn=0;qn<Yr.length;qn++){var Ai=Yr[qn],Mi=Dn.lastIndexOf(Ai);if(Mi>0&&Mi===Dn.length-Ai.length){var Ye=Dn.slice(0,Mi);Ye!=="data"&&(Ft.mainType=Ye,Ft[Ai.toLowerCase()]=Tn,zn=!0)}}Jr.hasOwnProperty(Dn)&&(gr[Dn]=Tn,zn=!0),zn||(or[Dn]=Tn)})}return{cptQuery:Ft,dataQuery:gr,otherQuery:or}},filter:function(vt,Ft,gr){var or=this.eventInfo;if(!or)return!0;var ur=or.targetEl,Yr=or.packedEvent,Jr=or.model,Tn=or.view;if(!Jr||!Tn)return!0;var Dn=Ft.cptQuery,zn=Ft.dataQuery;return qn(Dn,Jr,"mainType")&&qn(Dn,Jr,"subType")&&qn(Dn,Jr,"index","componentIndex")&&qn(Dn,Jr,"name")&&qn(Dn,Jr,"id")&&qn(zn,Yr,"name")&&qn(zn,Yr,"dataIndex")&&qn(zn,Yr,"dataType")&&(!Tn.filterForExposedEvent||Tn.filterForExposedEvent(vt,Ft.otherQuery,ur,Yr));function qn(Ai,Mi,Ye,Ce){return Ai[Ye]==null||Mi[Ce||Ye]===Ai[Ye]}},afterTrigger:function(){this.eventInfo=null}};var ie={},bt={},qe=[],me=[],Rt=[],er=[],ct={},zt={},sr={},Kr={},ar=new Date-0,nr=new Date-0,Lt="_echarts_instance_";function st(vt){var Ft=0,gr=1,or=2,ur="__connectUpdateStatus";function Yr(Jr,Tn){for(var Dn=0;Dn<Jr.length;Dn++){var zn=Jr[Dn];zn[ur]=Tn}}D(bt,function(Jr,Tn){vt._messageCenter.on(Tn,function(Dn){if(Kr[vt.group]&&vt[ur]!==Ft){if(Dn&&Dn.escapeConnect)return;var zn=vt.makeActionFromEvent(Dn),qn=[];D(sr,function(Ai){Ai!==vt&&Ai.group===vt.group&&qn.push(Ai)}),Yr(qn,Ft),D(qn,function(Ai){Ai[ur]!==gr&&Ai.dispatchAction(zn)}),Yr(qn,or)}})})}function Qe(vt,Ft,gr){var or=vn(vt);if(or)return or;var ur=new ee(vt,Ft,gr);return ur.id="ec_"+ar++,sr[ur.id]=ur,p.setAttribute(vt,Lt,ur.id),st(ur),ur}function qt(vt){if(g.isArray(vt)){var Ft=vt;vt=null,D(Ft,function(gr){gr.group!=null&&(vt=gr.group)}),vt=vt||"g_"+nr++,D(Ft,function(gr){gr.group=vt})}return Kr[vt]=!0,vt}function Sr(vt){Kr[vt]=!1}var Ar=Sr;function hr(vt){typeof vt=="string"?vt=sr[vt]:vt instanceof ee||(vt=vn(vt)),vt instanceof ee&&!vt.isDisposed()&&vt.dispose()}function vn(vt){return sr[p.getAttribute(vt,Lt)]}function Zr(vt){return sr[vt]}function Ln(vt,Ft){ct[vt]=Ft}function $e(vt){me.push(vt)}function tt(vt,Ft){Xt(qe,vt,Ft,K)}function Ee(vt){Rt.push(vt)}function Re(vt,Ft,gr){typeof Ft=="function"&&(gr=Ft,Ft="");var or=M(vt)?vt.type:[vt,vt={event:Ft}][0];vt.event=(vt.event||or).toLowerCase(),Ft=vt.event,L(Q.test(or)&&Q.test(Ft)),ie[or]||(ie[or]={action:gr,actionInfo:vt}),bt[Ft]=or}function je(vt,Ft){i.register(vt,Ft)}function nt(vt){var Ft=i.get(vt);if(Ft)return Ft.getDimensionsInfo?Ft.getDimensionsInfo():Ft.dimensions.slice()}function Vt(vt,Ft){Xt(er,vt,Ft,Y,"layout")}function Bt(vt,Ft){Xt(er,vt,Ft,$,"visual")}function Xt(vt,Ft,gr,or,ur){(N(Ft)||M(Ft))&&(gr=Ft,Ft=or);var Yr=w.wrapStageHandler(gr,ur);return Yr.__prio=Ft,Yr.__raw=gr,vt.push(Yr),Yr}function Rr(vt,Ft){zt[vt]=Ft}function Br(vt){return e.extend(vt)}function cn(vt){return l.extend(vt)}function Ut(vt){return o.extend(vt)}function pt(vt){return u.extend(vt)}function ut(vt){g.$override("createCanvas",vt)}function Jt(vt,Ft,gr){O.registerMap(vt,Ft,gr)}function Zt(vt){var Ft=O.retrieveMap(vt);return Ft&&Ft[0]&&{geoJson:Ft[0].geoJSON,specialAreas:Ft[0].specialAreas}}Bt(se,y),$e(t),tt(z,s),Rr("default",C),Re({type:"highlight",event:"highlight",update:"highlight"},g.noop),Re({type:"downplay",event:"downplay",update:"downplay"},g.noop),Ln("light",b),Ln("dark",_);var At={};k.version=R,k.dependencies=j,k.PRIORITY=Ne,k.init=Qe,k.connect=qt,k.disConnect=Sr,k.disconnect=Ar,k.dispose=hr,k.getInstanceByDom=vn,k.getInstanceById=Zr,k.registerTheme=Ln,k.registerPreprocessor=$e,k.registerProcessor=tt,k.registerPostUpdate=Ee,k.registerAction=Re,k.registerCoordinateSystem=je,k.getCoordinateSystemDimensions=nt,k.registerLayout=Vt,k.registerVisual=Bt,k.registerLoading=Rr,k.extendComponentModel=Br,k.extendComponentView=cn,k.extendSeriesModel=Ut,k.extendChartView=pt,k.setCanvasCreator=ut,k.registerMap=Jt,k.getMap=Zt,k.dataTool=At;var Pt=d("txkQ");(function(){for(var vt in Pt)Pt.hasOwnProperty(vt)&&(k[vt]=Pt[vt])})()},Pw59:function(H,k,d){"use strict";var I=d("q1tI"),E=d.n(I),T=Object(I.createContext)({});k.a=T},Q7if:function(H,k,d){var I=d("JEkh"),E=I.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"}}}});H.exports=E},Q9mQ:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("UADf"),g=d.n(T)},"QB+1":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("Ywus"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},QBsz:function(H,k){var d=typeof Float32Array=="undefined"?Array:Float32Array;function I(w,b){var _=new d(2);return w==null&&(w=0),b==null&&(b=0),_[0]=w,_[1]=b,_}function E(w,b){return w[0]=b[0],w[1]=b[1],w}function T(w){var b=new d(2);return b[0]=w[0],b[1]=w[1],b}function g(w,b,_){return w[0]=b,w[1]=_,w}function S(w,b,_){return w[0]=b[0]+_[0],w[1]=b[1]+_[1],w}function m(w,b,_,O){return w[0]=b[0]+_[0]*O,w[1]=b[1]+_[1]*O,w}function h(w,b,_){return w[0]=b[0]-_[0],w[1]=b[1]-_[1],w}function c(w){return Math.sqrt(r(w))}var a=c;function r(w){return w[0]*w[0]+w[1]*w[1]}var i=r;function n(w,b,_){return w[0]=b[0]*_[0],w[1]=b[1]*_[1],w}function t(w,b,_){return w[0]=b[0]/_[0],w[1]=b[1]/_[1],w}function s(w,b){return w[0]*b[0]+w[1]*b[1]}function e(w,b,_){return w[0]=b[0]*_,w[1]=b[1]*_,w}function o(w,b){var _=c(b);return _===0?(w[0]=0,w[1]=0):(w[0]=b[0]/_,w[1]=b[1]/_),w}function l(w,b){return Math.sqrt((w[0]-b[0])*(w[0]-b[0])+(w[1]-b[1])*(w[1]-b[1]))}var u=l;function f(w,b){return(w[0]-b[0])*(w[0]-b[0])+(w[1]-b[1])*(w[1]-b[1])}var p=f;function v(w,b){return w[0]=-b[0],w[1]=-b[1],w}function A(w,b,_,O){return w[0]=b[0]+O*(_[0]-b[0]),w[1]=b[1]+O*(_[1]-b[1]),w}function y(w,b,_){var O=b[0],L=b[1];return w[0]=_[0]*O+_[2]*L+_[4],w[1]=_[1]*O+_[3]*L+_[5],w}function x(w,b,_){return w[0]=Math.min(b[0],_[0]),w[1]=Math.min(b[1],_[1]),w}function C(w,b,_){return w[0]=Math.max(b[0],_[0]),w[1]=Math.max(b[1],_[1]),w}k.create=I,k.copy=E,k.clone=T,k.set=g,k.add=S,k.scaleAndAdd=m,k.sub=h,k.len=c,k.length=a,k.lenSquare=r,k.lengthSquare=i,k.mul=n,k.div=t,k.dot=s,k.scale=e,k.normalize=o,k.distance=l,k.dist=u,k.distanceSquare=f,k.distSquare=p,k.negate=v,k.lerp=A,k.applyTransform=y,k.min=x,k.max=C},"QO+J":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.createSensor=void 0;var I=T(d("NohK")),E=d("24YM");function T(S){return S&&S.__esModule?S:{default:S}}var g=function(m){var h=void 0,c=[],a=function(){getComputedStyle(m).position==="static"&&(m.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",r),r()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",E.SensorClassName),e.setAttribute("tabindex",E.SensorTabIndex),e.type="text/html",m.appendChild(e),e.data="about:blank",e},r=(0,I.default)(function(){c.forEach(function(s){s(m)})}),i=function(e){h||(h=a()),c.indexOf(e)===-1&&c.push(e)},n=function(){h&&h.parentNode&&(h.contentDocument&&h.contentDocument.defaultView.removeEventListener("resize",r),h.parentNode.removeChild(h),h=void 0,c=[])},t=function(e){var o=c.indexOf(e);o!==-1&&c.splice(o,1),c.length===0&&h&&n()};return{element:m,bind:i,destroy:n,unbind:t}};k.createSensor=g},"QQZ/":function(H,k,d){var I=d("Sq3C"),E=d("Z1HP"),T=d("Sxd8"),g=d("dt0z");function S(m,h,c){m=g(m),h=T(h);var a=h?E(m):0;return h&&a<h?I(h-a,c)+m:m}H.exports=S},QUw5:function(H,k,d){var I=d("OlYY"),E=I.extend({type:"dataZoom.select"});H.exports=E},QV2g:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=I;function I(){for(var g,S=[],m=0;m<256;m++){g=m;for(var h=0;h<8;h++)g=g&1?3988292384^g>>>1:g>>>1;S[m]=g}return S}var E=I();function T(g,S,m,h){var c=E,a=h+m;g^=-1;for(var r=h;r<a;r++)g=g>>>8^c[(g^S[r])&255];return g^-1}},QbM5:function(H,k,d){},Qe9p:function(H,k,d){var I=d("1RvN"),E={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 T(b){return b=Math.round(b),b<0?0:b>255?255:b}function g(b){return b=Math.round(b),b<0?0:b>360?360:b}function S(b){return b<0?0:b>1?1:b}function m(b){return b.length&&b.charAt(b.length-1)==="%"?T(parseFloat(b)/100*255):T(parseInt(b,10))}function h(b){return b.length&&b.charAt(b.length-1)==="%"?S(parseFloat(b)/100):S(parseFloat(b))}function c(b,_,O){return O<0?O+=1:O>1&&(O-=1),O*6<1?b+(_-b)*O*6:O*2<1?_:O*3<2?b+(_-b)*(2/3-O)*6:b}function a(b,_,O){return b+(_-b)*O}function r(b,_,O,L,D){return b[0]=_,b[1]=O,b[2]=L,b[3]=D,b}function i(b,_){return b[0]=_[0],b[1]=_[1],b[2]=_[2],b[3]=_[3],b}var n=new I(20),t=null;function s(b,_){t&&i(t,_),t=n.put(b,t||_.slice())}function e(b,_){if(!b)return;_=_||[];var O=n.get(b);if(O)return i(_,O);b=b+"";var L=b.replace(/ /g,"").toLowerCase();if(L in E)return i(_,E[L]),s(b,_),_;if(L.charAt(0)==="#"){if(L.length===4){var D=parseInt(L.substr(1),16);if(!(D>=0&&D<=4095)){r(_,0,0,0,1);return}return r(_,(D&3840)>>4|(D&3840)>>8,D&240|(D&240)>>4,D&15|(D&15)<<4,1),s(b,_),_}else if(L.length===7){var D=parseInt(L.substr(1),16);if(!(D>=0&&D<=16777215)){r(_,0,0,0,1);return}return r(_,(D&16711680)>>16,(D&65280)>>8,D&255,1),s(b,_),_}return}var N=L.indexOf("("),M=L.indexOf(")");if(N!==-1&&M+1===L.length){var F=L.substr(0,N),R=L.substr(N+1,M-(N+1)).split(","),j=1;switch(F){case"rgba":if(R.length!==4){r(_,0,0,0,1);return}j=h(R.pop());case"rgb":if(R.length!==3){r(_,0,0,0,1);return}return r(_,m(R[0]),m(R[1]),m(R[2]),j),s(b,_),_;case"hsla":if(R.length!==4){r(_,0,0,0,1);return}return R[3]=h(R[3]),o(R,_),s(b,_),_;case"hsl":if(R.length!==3){r(_,0,0,0,1);return}return o(R,_),s(b,_),_;default:return}}r(_,0,0,0,1);return}function o(b,_){var O=(parseFloat(b[0])%360+360)%360/360,L=h(b[1]),D=h(b[2]),N=D<=.5?D*(L+1):D+L-D*L,M=D*2-N;return _=_||[],r(_,T(c(M,N,O+1/3)*255),T(c(M,N,O)*255),T(c(M,N,O-1/3)*255),1),b.length===4&&(_[3]=b[3]),_}function l(b){if(!b)return;var _=b[0]/255,O=b[1]/255,L=b[2]/255,D=Math.min(_,O,L),N=Math.max(_,O,L),M=N-D,F=(N+D)/2,R,j;if(M===0)R=0,j=0;else{F<.5?j=M/(N+D):j=M/(2-N-D);var B=((N-_)/6+M/2)/M,K=((N-O)/6+M/2)/M,U=((N-L)/6+M/2)/M;_===N?R=U-K:O===N?R=1/3+B-U:L===N&&(R=2/3+K-B),R<0&&(R+=1),R>1&&(R-=1)}var z=[R*360,j,F];return b[3]!=null&&z.push(b[3]),z}function u(b,_){var O=e(b);if(O){for(var L=0;L<3;L++)_<0?O[L]=O[L]*(1-_)|0:O[L]=(255-O[L])*_+O[L]|0,O[L]>255?O[L]=255:b[L]<0&&(O[L]=0);return w(O,O.length===4?"rgba":"rgb")}}function f(b){var _=e(b);if(_)return((1<<24)+(_[0]<<16)+(_[1]<<8)+ +_[2]).toString(16).slice(1)}function p(b,_,O){if(!(_&&_.length)||!(b>=0&&b<=1))return;O=O||[];var L=b*(_.length-1),D=Math.floor(L),N=Math.ceil(L),M=_[D],F=_[N],R=L-D;return O[0]=T(a(M[0],F[0],R)),O[1]=T(a(M[1],F[1],R)),O[2]=T(a(M[2],F[2],R)),O[3]=S(a(M[3],F[3],R)),O}var v=p;function A(b,_,O){if(!(_&&_.length)||!(b>=0&&b<=1))return;var L=b*(_.length-1),D=Math.floor(L),N=Math.ceil(L),M=e(_[D]),F=e(_[N]),R=L-D,j=w([T(a(M[0],F[0],R)),T(a(M[1],F[1],R)),T(a(M[2],F[2],R)),S(a(M[3],F[3],R))],"rgba");return O?{color:j,leftIndex:D,rightIndex:N,value:L}:j}var y=A;function x(b,_,O,L){if(b=e(b),b)return b=l(b),_!=null&&(b[0]=g(_)),O!=null&&(b[1]=h(O)),L!=null&&(b[2]=h(L)),w(o(b),"rgba")}function C(b,_){if(b=e(b),b&&_!=null)return b[3]=S(_),w(b,"rgba")}function w(b,_){if(!b||!b.length)return;var O=b[0]+","+b[1]+","+b[2];return(_==="rgba"||_==="hsva"||_==="hsla")&&(O+=","+b[3]),_+"("+O+")"}k.parse=e,k.lift=u,k.toHex=f,k.fastLerp=p,k.fastMapToColor=v,k.lerp=A,k.mapToColor=y,k.modifyHSL=x,k.modifyAlpha=C,k.stringify=w},Qi1f:function(H,k,d){"use strict";d.d(k,"g",function(){return s}),d.d(k,"c",function(){return e}),d.d(k,"a",function(){return l}),d.d(k,"b",function(){return u}),d.d(k,"d",function(){return f}),d.d(k,"e",function(){return p}),d.d(k,"f",function(){return A});var I=d("VTBJ"),E=d("U8pU"),T=d("u3cA"),g=d("q1tI"),S=d.n(g),m=d("Kwbf"),h=d("MNnm"),c="rc-util-key";function a(y){if(y.attachTo)return y.attachTo;var x=document.querySelector("head");return x||document.body}function r(y){var x,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(h.a)())return null;var w=document.createElement("style");if((x=C.csp)===null||x===void 0?void 0:x.nonce){var b;w.nonce=(b=C.csp)===null||b===void 0?void 0:b.nonce}w.innerHTML=y;var _=a(C),O=_.firstChild;return C.prepend&&_.prepend?_.prepend(w):C.prepend&&O?_.insertBefore(w,O):_.appendChild(w),w}var i=new Map;function n(y,x){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=a(C);if(!i.has(w)){var b=r("",C),_=b.parentNode;i.set(w,_),_.removeChild(b)}var O=Array.from(i.get(w).children).find(function(F){return F.tagName==="STYLE"&&F[c]===x});if(O){var L,D;if(((L=C.csp)===null||L===void 0?void 0:L.nonce)&&O.nonce!==((D=C.csp)===null||D===void 0?void 0:D.nonce)){var N;O.nonce=(N=C.csp)===null||N===void 0?void 0:N.nonce}return O.innerHTML!==y&&(O.innerHTML=y),O}var M=r(y,C);return M[c]=x,M}var t=d("Pw59");function s(y,x){Object(m.a)(y,"[@ant-design/icons] ".concat(x))}function e(y){return Object(E.a)(y)==="object"&&typeof y.name=="string"&&typeof y.theme=="string"&&(Object(E.a)(y.icon)==="object"||typeof y.icon=="function")}function o(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(y).reduce(function(x,C){var w=y[C];switch(C){case"class":x.className=w,delete x.class;break;default:x[C]=w}return x},{})}function l(y,x,C){return C?S.a.createElement(y.tag,Object(I.a)(Object(I.a)({key:x},o(y.attrs)),C),(y.children||[]).map(function(w,b){return l(w,"".concat(x,"-").concat(y.tag,"-").concat(b))})):S.a.createElement(y.tag,Object(I.a)({key:x},o(y.attrs)),(y.children||[]).map(function(w,b){return l(w,"".concat(x,"-").concat(y.tag,"-").concat(b))}))}function u(y){return Object(T.generate)(y)[0]}function f(y){return y?Array.isArray(y)?y:[y]:[]}var p={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},v=`
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
`,A=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v,C=Object(g.useContext)(t.a),w=C.csp;Object(g.useEffect)(function(){n(x,"@ant-design-icons",{prepend:!0,csp:w})},[])}},Qs3X:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("X+im"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},Qs9O:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},QuXc:function(H,k){var d=function(T){this.colorStops=T||[]};d.prototype={constructor:d,addColorStop:function(T,g){this.colorStops.push({offset:T,color:g})}};var I=d;H.exports=I},Qvb6:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("ItGF"),g=d("B9fm"),S=d("gvm7"),m=d("7aKB"),h=d("OELB"),c=d("IwbS"),a=d("Ez2D"),r=d("+TT/"),i=d("Qxkt"),n=d("F9bG"),t=d("aX7z"),s=d("/y7N"),e=d("4NO4"),o=e.getTooltipRenderMode,l=E.bind,u=E.each,f=h.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),v=I.extendComponentView({type:"tooltip",init:function(_,O){if(T.node)return;var L=_.getComponent("tooltip"),D=L.get("renderMode");this._renderMode=o(D);var N;this._renderMode==="html"?(N=new g(O.getDom(),O,{appendToBody:L.get("appendToBody",!0)}),this._newLine="<br/>"):(N=new S(O),this._newLine=`
|
|
|
`),this._tooltipContent=N},render:function(_,O,L){if(T.node)return;this.group.removeAll(),this._tooltipModel=_,this._ecModel=O,this._api=L,this._lastDataByCoordSys=null,this._alwaysShowContent=_.get("alwaysShowContent");var D=this._tooltipContent;D.update(),D.setEnterable(_.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var _=this._tooltipModel,O=_.get("triggerOn");n.register("itemTooltip",this._api,l(function(L,D,N){O!=="none"&&(O.indexOf(L)>=0?this._tryShow(D,N):L==="leave"&&this._hide(N))},this))},_keepShow:function(){var _=this._tooltipModel,O=this._ecModel,L=this._api;if(this._lastX!=null&&this._lastY!=null&&_.get("triggerOn")!=="none"){var D=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!L.isDisposed()&&D.manuallyShowTip(_,O,L,{x:D._lastX,y:D._lastY})})}},manuallyShowTip:function(_,O,L,D){if(D.from===this.uid||T.node)return;var N=y(D,L);this._ticket="";var M=D.dataByCoordSys;if(D.tooltip&&D.x!=null&&D.y!=null){var F=p;F.position=[D.x,D.y],F.update(),F.tooltip=D.tooltip,this._tryShow({offsetX:D.x,offsetY:D.y,target:F},N)}else if(M)this._tryShow({offsetX:D.x,offsetY:D.y,position:D.position,dataByCoordSys:D.dataByCoordSys,tooltipOption:D.tooltipOption},N);else if(D.seriesIndex!=null){if(this._manuallyAxisShowTip(_,O,L,D))return;var R=a(D,O),j=R.point[0],B=R.point[1];j!=null&&B!=null&&this._tryShow({offsetX:j,offsetY:B,position:D.position,target:R.el},N)}else D.x!=null&&D.y!=null&&(L.dispatchAction({type:"updateAxisPointer",x:D.x,y:D.y}),this._tryShow({offsetX:D.x,offsetY:D.y,position:D.position,target:L.getZr().findHover(D.x,D.y).target},N))},manuallyHideTip:function(_,O,L,D){var N=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&N.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,D.from!==this.uid&&this._hide(y(D,L))},_manuallyAxisShowTip:function(_,O,L,D){var N=D.seriesIndex,M=D.dataIndex,F=O.getComponent("axisPointer").coordSysAxesInfo;if(N==null||M==null||F==null)return;var R=O.getSeriesByIndex(N);if(!R)return;var j=R.getData(),_=A([j.getItemModel(M),R,(R.coordinateSystem||{}).model,_]);return _.get("trigger")!=="axis"?void 0:(L.dispatchAction({type:"updateAxisPointer",seriesIndex:N,dataIndex:M,position:D.position}),!0)},_tryShow:function(_,O){var L=_.target,D=this._tooltipModel;if(!D)return;this._lastX=_.offsetX,this._lastY=_.offsetY;var N=_.dataByCoordSys;N&&N.length?this._showAxisTooltip(N,_):L&&L.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(_,L,O)):L&&L.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(_,L,O)):(this._lastDataByCoordSys=null,this._hide(O))},_showOrMove:function(_,O){var L=_.get("showDelay");O=E.bind(O,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(O,L):O()},_showAxisTooltip:function(_,O){var L=this._ecModel,D=this._tooltipModel,N=[O.offsetX,O.offsetY],M=[],F=[],R=A([O.tooltipOption,D]),j=this._renderMode,B=this._newLine,K={};u(_,function(z){u(z.dataByAxis,function(V){var Y=L.getComponent(V.axisDim+"Axis",V.axisIndex),J=V.value,se=[];if(!Y||J==null)return;var $=s.getValueLabel(J,Y.axis,L,V.seriesDataIndices,V.valueLabelOpt);E.each(V.seriesDataIndices,function(ge){var pe=L.getSeriesByIndex(ge.seriesIndex),Ne=ge.dataIndexInside,de=pe&&pe.getDataParams(Ne);if(de.axisDim=V.axisDim,de.axisIndex=V.axisIndex,de.axisType=V.axisType,de.axisId=V.axisId,de.axisValue=t.getAxisRawValue(Y.axis,J),de.axisValueLabel=$,de){F.push(de);var Le=pe.formatTooltip(Ne,!0,null,j),Q;if(E.isObject(Le)){Q=Le.html;var ce=Le.markers;E.merge(K,ce)}else Q=Le;se.push(Q)}});var ae=$;j!=="html"?M.push(se.join(B)):M.push((ae?m.encodeHTML(ae)+B:"")+se.join(B))})},this),M.reverse(),M=M.join(this._newLine+this._newLine);var U=O.position;this._showOrMove(R,function(){this._updateContentNotChangedOnAxis(_)?this._updatePosition(R,U,N[0],N[1],this._tooltipContent,F):this._showTooltipContent(R,M,F,Math.random(),N[0],N[1],U,void 0,K)})},_showSeriesItemTooltip:function(_,O,L){var D=this._ecModel,N=O.seriesIndex,M=D.getSeriesByIndex(N),F=O.dataModel||M,R=O.dataIndex,j=O.dataType,B=F.getData(j),K=A([B.getItemModel(R),F,M&&(M.coordinateSystem||{}).model,this._tooltipModel]),U=K.get("trigger");if(U!=null&&U!=="item")return;var z=F.getDataParams(R,j),V=F.formatTooltip(R,!1,j,this._renderMode),Y,J;E.isObject(V)?(Y=V.html,J=V.markers):(Y=V,J=null);var se="item_"+F.name+"_"+R;this._showOrMove(K,function(){this._showTooltipContent(K,Y,z,se,_.offsetX,_.offsetY,_.position,_.target,J)}),L({type:"showTip",dataIndexInside:R,dataIndex:B.getRawIndex(R),seriesIndex:N,from:this.uid})},_showComponentItemTooltip:function(_,O,L){var D=O.tooltip;if(typeof D=="string"){var N=D;D={content:N,formatter:N}}var M=new i(D,this._tooltipModel,this._ecModel),F=M.get("content"),R=Math.random();this._showOrMove(M,function(){this._showTooltipContent(M,F,M.get("formatterParams")||{},R,_.offsetX,_.offsetY,_.position,O)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(_,O,L,D,N,M,F,R,j){if(this._ticket="",!_.get("showContent")||!_.get("show"))return;var B=this._tooltipContent,K=_.get("formatter");F=F||_.get("position");var U=O;if(K&&typeof K=="string")U=m.formatTpl(K,L,!0);else if(typeof K=="function"){var z=l(function(V,Y){V===this._ticket&&(B.setContent(Y,j,_),this._updatePosition(_,F,N,M,B,L,R))},this);this._ticket=D,U=K(L,D,z)}B.setContent(U,j,_),B.show(_),this._updatePosition(_,F,N,M,B,L,R)},_updatePosition:function(_,O,L,D,N,M,F){var R=this._api.getWidth(),j=this._api.getHeight();O=O||_.get("position");var B=N.getSize(),K=_.get("align"),U=_.get("verticalAlign"),z=F&&F.getBoundingRect().clone();if(F&&z.applyTransform(F.transform),typeof O=="function"&&(O=O([L,D],M,N.el,z,{viewSize:[R,j],contentSize:B.slice()})),E.isArray(O))L=f(O[0],R),D=f(O[1],j);else if(E.isObject(O)){O.width=B[0],O.height=B[1];var V=r.getLayoutRect(O,{width:R,height:j});L=V.x,D=V.y,K=null,U=null}else if(typeof O=="string"&&F){var Y=w(O,z,B);L=Y[0],D=Y[1]}else{var Y=x(L,D,N,R,j,K?null:20,U?null:20);L=Y[0],D=Y[1]}if(K&&(L-=b(K)?B[0]/2:K==="right"?B[0]:0),U&&(D-=b(U)?B[1]/2:U==="bottom"?B[1]:0),_.get("confine")){var Y=C(L,D,N,R,j);L=Y[0],D=Y[1]}N.moveTo(L,D)},_updateContentNotChangedOnAxis:function(_){var O=this._lastDataByCoordSys,L=!!O&&O.length===_.length;return L&&u(O,function(D,N){var M=D.dataByAxis||{},F=_[N]||{},R=F.dataByAxis||[];L&=M.length===R.length,L&&u(M,function(j,B){var K=R[B]||{},U=j.seriesDataIndices||[],z=K.seriesDataIndices||[];L&=j.value===K.value&&j.axisType===K.axisType&&j.axisId===K.axisId&&U.length===z.length,L&&u(U,function(V,Y){var J=z[Y];L&=V.seriesIndex===J.seriesIndex&&V.dataIndex===J.dataIndex})})}),this._lastDataByCoordSys=_,!!L},_hide:function(_){this._lastDataByCoordSys=null,_({type:"hideTip",from:this.uid})},dispose:function(_,O){if(T.node)return;this._tooltipContent.dispose(),n.unregister("itemTooltip",O)}});function A(_){for(var O=_.pop();_.length;){var L=_.pop();L&&(i.isInstance(L)&&(L=L.get("tooltip",!0)),typeof L=="string"&&(L={formatter:L}),O=new i(L,O,O.ecModel))}return O}function y(_,O){return _.dispatchAction||E.bind(O.dispatchAction,O)}function x(_,O,L,D,N,M,F){var R=L.getOuterSize(),j=R.width,B=R.height;return M!=null&&(_+j+M>D?_-=j+M:_+=M),F!=null&&(O+B+F>N?O-=B+F:O+=F),[_,O]}function C(_,O,L,D,N){var M=L.getOuterSize(),F=M.width,R=M.height;return _=Math.min(_+F,D)-F,O=Math.min(O+R,N)-R,_=Math.max(_,0),O=Math.max(O,0),[_,O]}function w(_,O,L){var D=L[0],N=L[1],M=5,F=0,R=0,j=O.width,B=O.height;switch(_){case"inside":F=O.x+j/2-D/2,R=O.y+B/2-N/2;break;case"top":F=O.x+j/2-D/2,R=O.y-N-M;break;case"bottom":F=O.x+j/2-D/2,R=O.y+B+M;break;case"left":F=O.x-D-M,R=O.y+B/2-N/2;break;case"right":F=O.x+j+M,R=O.y+B/2-N/2}return[F,R]}function b(_){return _==="center"||_==="middle"}H.exports=v},Qxkt:function(H,k,d){var I=d("bYtY"),E=d("ItGF"),T=d("4NO4"),g=T.makeInner,S=d("Yl7c"),m=S.enableClassExtend,h=S.enableClassCheck,c=d("OQFs"),a=d("m9t5"),r=d("/iHx"),i=d("VR9l"),n=I.mixin,t=g();function s(u,f,p){this.parentModel=f,this.ecModel=p,this.option=u}s.prototype={constructor:s,init:null,mergeOption:function(u){I.merge(this.option,u,!0)},get:function(u,f){return u==null?this.option:e(this.option,this.parsePath(u),!f&&o(this,u))},getShallow:function(u,f){var p=this.option,v=p==null?p:p[u],A=!f&&o(this,u);return v==null&&A&&(v=A.getShallow(u)),v},getModel:function(u,f){var p=u==null?this.option:e(this.option,u=this.parsePath(u)),v;return f=f||(v=o(this,u))&&v.getModel(u),new s(p,f,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var u=this.constructor;return new u(I.clone(this.option))},setReadOnly:function(u){},parsePath:function(u){return typeof u=="string"&&(u=u.split(".")),u},customizeGetParent:function(u){t(this).getParent=u},isAnimationEnabled:function(){if(!E.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function e(u,f,p){for(var v=0;v<f.length;v++){if(!f[v])continue;if(u=u&&typeof u=="object"?u[f[v]]:null,u==null)break}return u==null&&p&&(u=p.get(f)),u}function o(u,f){var p=t(u).getParent;return p?p.call(u,f):u.parentModel}m(s),h(s),n(s,c),n(s,a),n(s,r),n(s,i);var l=s;H.exports=l},QyFq:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},QzjZ:function(H,k,d){var I=d("S/Yl"),E=d("IDmD");function T(g,S){var m=[];return g.eachComponent("singleAxis",function(h,c){var a=new I(h,g,S);a.name="single_"+c,a.resize(h,S),h.coordinateSystem=a,m.push(a)}),g.eachSeries(function(h){if(h.get("coordinateSystem")==="singleAxis"){var c=g.queryComponents({mainType:"singleAxis",index:h.get("singleAxisIndex"),id:h.get("singleAxisId")})[0];h.coordinateSystem=c&&c.coordinateSystem}}),m}E.register("single",{create:T,dimensions:I.prototype.dimensions})},R4Th:function(H,k,d){var I=d("ProS"),E=d("9wZj"),T=d("yO87"),g=d("Fofx"),S=d("h8O9"),m=I.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new E(T)},render:function(h,c,a){var r=h.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},updateTransform:function(h,c,a){var r=h.getData();this.group.dirty();var i=S().reset(h);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(h){var c=h.coordinateSystem;c&&c.getRoamTransform&&(this.group.transform=g.clone(c.getRoamTransform()),this.group.decomposeTransform())},remove:function(h,c){this._symbolDraw&&this._symbolDraw.remove(c)},dispose:function(){}});H.exports=m},R9oj:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("pwpV"),g=d.n(T)},RBEP:function(H,k,d){for(var I=d("ProS"),E=d("VaxA"),T=function(){},g=["treemapZoomToNode","treemapRender","treemapMove"],S=0;S<g.length;S++)I.registerAction({type:g[S],update:"updateView"},T);I.registerAction({type:"treemapRootToNode",update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"treemap",query:m},c);function c(a,r){var i=["treemapZoomToNode","treemapRootToNode"],n=E.retrieveTargetInfo(m,i,a);if(n){var t=a.getViewRoot();t&&(m.direction=E.aboveViewRoot(t,n.node)?"rollUp":"drillDown"),a.resetViewRoot(n.node)}}})},RCxd:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="ExclamationCircleOutlined";var h=k.a=E.forwardRef(m)},RDYZ:function(H,k,d){var I=d("dMvE");function E(g){this._target=g.target,this._life=g.life||1e3,this._delay=g.delay||0,this._initialized=!1,this.loop=g.loop==null?!1:g.loop,this.gap=g.gap||0,this.easing=g.easing||"Linear",this.onframe=g.onframe,this.ondestroy=g.ondestroy,this.onrestart=g.onrestart,this._pausedTime=0,this._paused=!1}E.prototype={constructor:E,step:function(S,m){if(this._initialized||(this._startTime=S+this._delay,this._initialized=!0),this._paused){this._pausedTime+=m;return}var h=(S-this._startTime-this._pausedTime)/this._life;if(h<0)return;h=Math.min(h,1);var c=this.easing,a=typeof c=="string"?I[c]:c,r=typeof a=="function"?a(h):h;return this.fire("frame",r),h===1?this.loop?(this.restart(S),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(S){var m=(S-this._startTime-this._pausedTime)%this._life;this._startTime=S-m+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(S,m){S="on"+S,this[S]&&this[S](this._target,m)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var T=E;H.exports=T},RELg:function(H,k,d){var I=d("MFOe"),E=I.Global;H.exports={name:"oldIE-userDataStorage",write:h,read:c,each:a,remove:r,clearAll:i};var T="storejs",g=E.document,S=s(),m=(E.navigator?E.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function h(e,o){if(m)return;var l=t(e);S(function(u){u.setAttribute(l,o),u.save(T)})}function c(e){if(m)return;var o=t(e),l=null;return S(function(u){l=u.getAttribute(o)}),l}function a(e){S(function(o){for(var l=o.XMLDocument.documentElement.attributes,u=l.length-1;u>=0;u--){var f=l[u];e(o.getAttribute(f.name),f.name)}})}function r(e){var o=t(e);S(function(l){l.removeAttribute(o),l.save(T)})}function i(){S(function(e){var o=e.XMLDocument.documentElement.attributes;e.load(T);for(var l=o.length-1;l>=0;l--)e.removeAttribute(o[l].name);e.save(T)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function t(e){return e.replace(/^\d/,"___$&").replace(n,"___")}function s(){if(!g||!g.documentElement||!g.documentElement.addBehavior)return null;var e="script",o,l,u;try{l=new ActiveXObject("htmlfile"),l.open(),l.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),l.close(),o=l.w.frames[0].document,u=o.createElement("div")}catch(f){u=g.createElement("div"),o=g.body}return function(f){var p=[].slice.call(arguments,0);p.unshift(u),o.appendChild(u),u.addBehavior("#default#userData"),u.load(T),f.apply(this,p),o.removeChild(u);return}}},RPvy:function(H,k,d){var I=d("ProS"),E=d("VaxA"),T="sunburstRootToNode";I.registerAction({type:T,update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(a,r){var i=E.retrieveTargetInfo(m,[T],a);if(i){var n=a.getViewRoot();n&&(m.direction=E.aboveViewRoot(n,i.node)?"rollUp":"drillDown"),a.resetViewRoot(i.node)}}});var g="sunburstHighlight";I.registerAction({type:g,update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(a,r){var i=E.retrieveTargetInfo(m,[g],a);i&&(m.highlight=i.node)}});var S="sunburstUnhighlight";I.registerAction({type:S,update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(a,r){m.unhighlight=!0}})},RSch:function(H,k,d){var I=d("IwbS"),E=d("bYtY");function T(m,h,c){I.Group.call(this),this._createPolyline(m,h,c)}var g=T.prototype;g._createPolyline=function(m,h,c){var a=m.getItemLayout(h),r=new I.Polyline({shape:{points:a}});this.add(r),this._updateCommonStl(m,h,c)},g.updateData=function(m,h,c){var a=m.hostModel,r=this.childAt(0),i={shape:{points:m.getItemLayout(h)}};I.updateProps(r,i,a,h),this._updateCommonStl(m,h,c)},g._updateCommonStl=function(m,h,c){var a=this.childAt(0),r=m.getItemModel(h),i=m.getItemVisual(h,"color"),n=c&&c.lineStyle,t=c&&c.hoverLineStyle;(!c||m.hasItemOption)&&(n=r.getModel("lineStyle").getLineStyle(),t=r.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(E.defaults({strokeNoScale:!0,fill:"none",stroke:i},n)),a.hoverStyle=t,I.setHoverStyle(this)},g.updateLayout=function(m,h){var c=this.childAt(0);c.setShape("points",m.getItemLayout(h))},E.inherits(T,I.Group);var S=T;H.exports=S},RXMa:function(H,k,d){var I=d("y+Vt"),E=I.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(g,S){var m=S.cx,h=S.cy,c=Math.PI*2;g.moveTo(m+S.r,h),g.arc(m,h,S.r,0,c,!1),g.moveTo(m+S.r0,h),g.arc(m,h,S.r0,0,c,!0)}});H.exports=E},RZPm:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("JgUQ")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="FileOutlined";var c=g.forwardRef(h);k.default=c},RlCK:function(H,k,d){var I=d("ProS"),E=d("bYtY");function T(g,S,m){var h={},c=g==="toggleSelected",a;return m.eachComponent("legend",function(r){c&&a!=null?r[a?"select":"unSelect"](S.name):g==="allSelect"||g==="inverseSelect"?r[g]():(r[g](S.name),a=r.isSelected(S.name));var i=r.getData();E.each(i,function(n){var t=n.get("name");if(t===`
|
|
|
`||t==="")return;var s=r.isSelected(t);h.hasOwnProperty(t)?h[t]=h[t]&&s:h[t]=s})}),g==="allSelect"||g==="inverseSelect"?{selected:h}:{name:S.name,selected:h}}I.registerAction("legendToggleSelect","legendselectchanged",E.curry(T,"toggleSelected")),I.registerAction("legendAllSelect","legendselectall",E.curry(T,"allSelect")),I.registerAction("legendInverseSelect","legendinverseselect",E.curry(T,"inverseSelect")),I.registerAction("legendSelect","legendselected",E.curry(T,"select")),I.registerAction("legendUnSelect","legendunselected",E.curry(T,"unSelect"))},RotF:function(H,k,d){H.exports=d("LSTS")},Rx6q:function(H,k){function d(I){var E=I.getRect(),T=I.getRangeInfo();return{coordSys:{type:"calendar",x:E.x,y:E.y,width:E.width,height:E.height,cellWidth:I.getCellWidth(),cellHeight:I.getCellHeight(),rangeInfo:{start:T.start,end:T.end,weeks:T.weeks,dayCount:T.allDay}},api:{coord:function(g,S){return I.dataToPoint(g,S)}}}}H.exports=d},"S/Yl":function(H,k,d){var I=d("Zvw2"),E=d("aX7z"),T=d("+TT/"),g=T.getLayoutRect,S=d("bYtY"),m=S.each;function h(a,r,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(a,r,i),this.model=a}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(a,r,i){var n=this.dimension,t=new I(n,E.createScaleByModel(a),[0,0],a.get("type"),a.get("position")),s=t.type==="category";t.onBand=s&&a.get("boundaryGap"),t.inverse=a.get("inverse"),t.orient=a.get("orient"),a.axis=t,t.model=a,t.coordinateSystem=this,this._axis=t},update:function(a,r){a.eachSeries(function(i){if(i.coordinateSystem===this){var n=i.getData();m(n.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(n,t)},this),E.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(a,r){this._rect=g({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:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var a=this._rect,r=this._axis,i=r.isHorizontal(),n=i?[0,a.width]:[0,a.height],t=r.reverse?1:0;r.setExtent(n[t],n[1-t]),this._updateAxisTransform(r,i?a.x:a.y)},_updateAxisTransform:function(a,r){var i=a.getExtent(),n=i[0]+i[1],t=a.isHorizontal();a.toGlobalCoord=t?function(s){return s+r}:function(s){return n-s+r},a.toLocalCoord=t?function(s){return s-r}:function(s){return n-s+r}},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 r=this.getRect(),i=this.getAxis(),n=i.orient;return n==="horizontal"?i.contain(i.toLocalCoord(a[0]))&&a[1]>=r.y&&a[1]<=r.y+r.height:i.contain(i.toLocalCoord(a[1]))&&a[0]>=r.y&&a[0]<=r.y+r.height},pointToData:function(a){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(a[r.orient==="horizontal"?0:1]))]},dataToPoint:function(a){var r=this.getAxis(),i=this.getRect(),n=[],t=r.orient==="horizontal"?0:1;return a instanceof Array&&(a=a[0]),n[t]=r.toGlobalCoord(r.dataToCoord(+a)),n[1-t]=t===0?i.y+i.height/2:i.x+i.width/2,n}};var c=h;H.exports=c},S6kV:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.mode.OFB=function(){var E=I.lib.BlockCipherMode.extend(),T=E.Encryptor=E.extend({processBlock:function(S,m){var h=this._cipher,c=h.blockSize,a=this._iv,r=this._keystream;a&&(r=this._keystream=a.slice(0),this._iv=void 0),h.encryptBlock(r,0);for(var i=0;i<c;i++)S[m+i]^=r[i]}});return E.Decryptor=T,E}(),I.mode.OFB})},"SA+Z":function(H,k,d){var I=d("wTVA"),E=d("EbDI"),T=d("ZhPi"),g=d("wkBT");function S(m){return I(m)||E(m)||T(m)||g()}H.exports=S,H.exports.default=H.exports,H.exports.__esModule=!0},"SA4+":function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("IwbS"),S=d("zYTA"),m=d("bYtY");function h(i,n,t){var s=i[1]-i[0];n=m.map(n,function(l){return{interval:[(l.interval[0]-i[0])/s,(l.interval[1]-i[0])/s]}});var e=n.length,o=0;return function(l){for(var u=o;u<e;u++){var f=n[u].interval;if(f[0]<=l&&l<=f[1]){o=u;break}}if(u===e)for(var u=o-1;u>=0;u--){var f=n[u].interval;if(f[0]<=l&&l<=f[1]){o=u;break}}return u>=0&&u<e&&t[u]}}function c(i,n){var t=i[1]-i[0];return n=[(n[0]-i[0])/t,(n[1]-i[0])/t],function(s){return s>=n[0]&&s<=n[1]}}function a(i){var n=i.dimensions;return n[0]==="lng"&&n[1]==="lat"}var r=T.extendChartView({type:"heatmap",render:function(i,n,t){var s;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(l){l===i&&(s=o)})}),this.group.removeAll(),this._incrementalDisplayable=null;var e=i.coordinateSystem;e.type==="cartesian2d"||e.type==="calendar"?this._renderOnCartesianAndCalendar(i,t,0,i.getData().count()):a(e)&&this._renderOnGeo(e,i,s,t)},incrementalPrepareRender:function(i,n,t){this.group.removeAll()},incrementalRender:function(i,n,t,s){var e=n.coordinateSystem;e&&this._renderOnCartesianAndCalendar(n,s,i.start,i.end,!0)},_renderOnCartesianAndCalendar:function(i,n,t,s,e){var o=i.coordinateSystem,l,u;if(o.type==="cartesian2d"){var f=o.getAxis("x"),p=o.getAxis("y");l=f.getBandWidth(),u=p.getBandWidth()}for(var v=this.group,A=i.getData(),y="itemStyle",x="emphasis.itemStyle",C="label",w="emphasis.label",b=i.getModel(y).getItemStyle(["color"]),_=i.getModel(x).getItemStyle(),O=i.getModel(C),L=i.getModel(w),D=o.type,N=D==="cartesian2d"?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],M=t;M<s;M++){var F;if(D==="cartesian2d"){if(isNaN(A.get(N[2],M)))continue;var R=o.dataToPoint([A.get(N[0],M),A.get(N[1],M)]);F=new g.Rect({shape:{x:Math.floor(Math.round(R[0])-l/2),y:Math.floor(Math.round(R[1])-u/2),width:Math.ceil(l),height:Math.ceil(u)},style:{fill:A.getItemVisual(M,"color"),opacity:A.getItemVisual(M,"opacity")}})}else{if(isNaN(A.get(N[1],M)))continue;F=new g.Rect({z2:1,shape:o.dataToRect([A.get(N[0],M)]).contentShape,style:{fill:A.getItemVisual(M,"color"),opacity:A.getItemVisual(M,"opacity")}})}var j=A.getItemModel(M);A.hasItemOption&&(b=j.getModel(y).getItemStyle(["color"]),_=j.getModel(x).getItemStyle(),O=j.getModel(C),L=j.getModel(w));var B=i.getRawValue(M),K="-";B&&B[2]!=null&&(K=B[2]),g.setLabelStyle(b,_,O,L,{labelFetcher:i,labelDataIndex:M,defaultText:K,isRectText:!0}),F.setStyle(b),g.setHoverStyle(F,A.hasItemOption?_:m.extend({},_)),F.incremental=e,e&&(F.useHoverLayer=!0),v.add(F),A.setItemGraphicEl(M,F)}},_renderOnGeo:function(i,n,t,s){var e=t.targetVisuals.inRange,o=t.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new S;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=i.getViewRect().clone(),p=i.getRoamTransform();f.applyTransform(p);var v=Math.max(f.x,0),A=Math.max(f.y,0),y=Math.min(f.width+f.x,s.getWidth()),x=Math.min(f.height+f.y,s.getHeight()),C=y-v,w=x-A,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(N,M,F){var R=i.dataToPoint([N,M]);return R[0]-=v,R[1]-=A,R.push(F),R}),O=t.getExtent(),L=t.type==="visualMap.continuous"?c(O,t.option.range):h(O,t.getPieceList(),t.option.selected);u.update(_,C,w,e.color.getNormalizer(),{inRange:e.color.getColorMapper(),outOfRange:o.color.getColorMapper()},L);var D=new g.Image({style:{width:C,height:w,x:v,y:A,image:u.canvas},silent:!0});this.group.add(D)},dispose:function(){}});H.exports=r},SA8n:function(H,k,d){var I=d("Sj9i"),E=d("QBsz"),T=d("U/Mo"),g=T.getSymbolSize,S=[],m=[],h=[],c=I.quadraticAt,a=E.distSquare,r=Math.abs;function i(t,s,e){for(var o=t[0],l=t[1],u=t[2],f=Infinity,p,v=e*e,A=.1,y=.1;y<=.9;y+=.1){S[0]=c(o[0],l[0],u[0],y),S[1]=c(o[1],l[1],u[1],y);var x=r(a(S,s)-v);x<f&&(f=x,p=y)}for(var C=0;C<32;C++){var w=p+A;m[0]=c(o[0],l[0],u[0],p),m[1]=c(o[1],l[1],u[1],p),h[0]=c(o[0],l[0],u[0],w),h[1]=c(o[1],l[1],u[1],w);var x=a(m,s)-v;if(r(x)<.01)break;var b=a(h,s)-v;A/=2,x<0?b>=0?p=p+A:p=p-A:b>=0?p=p-A:p=p+A}return p}function n(t,s){var e=[],o=I.quadraticSubdivide,l=[[],[],[]],u=[[],[]],f=[];s/=2,t.eachEdge(function(p,v){var A=p.getLayout(),y=p.getVisual("fromSymbol"),x=p.getVisual("toSymbol");A.__original||(A.__original=[E.clone(A[0]),E.clone(A[1])],A[2]&&A.__original.push(E.clone(A[2])));var C=A.__original;if(A[2]!=null){if(E.copy(l[0],C[0]),E.copy(l[1],C[2]),E.copy(l[2],C[1]),y&&y!=="none"){var w=g(p.node1),b=i(l,C[0],w*s);o(l[0][0],l[1][0],l[2][0],b,e),l[0][0]=e[3],l[1][0]=e[4],o(l[0][1],l[1][1],l[2][1],b,e),l[0][1]=e[3],l[1][1]=e[4]}if(x&&x!=="none"){var w=g(p.node2),b=i(l,C[1],w*s);o(l[0][0],l[1][0],l[2][0],b,e),l[1][0]=e[1],l[2][0]=e[2],o(l[0][1],l[1][1],l[2][1],b,e),l[1][1]=e[1],l[2][1]=e[2]}E.copy(A[0],l[0]),E.copy(A[1],l[2]),E.copy(A[2],l[1])}else{if(E.copy(u[0],C[0]),E.copy(u[1],C[1]),E.sub(f,u[1],u[0]),E.normalize(f,f),y&&y!=="none"){var w=g(p.node1);E.scaleAndAdd(u[0],u[0],f,w*s)}if(x&&x!=="none"){var w=g(p.node2);E.scaleAndAdd(u[1],u[1],f,-w*s)}E.copy(A[0],u[0]),E.copy(A[1],u[1])}})}H.exports=n},SJMd:function(H,k){/**
|
|
|
* @license
|
|
|
* Copyright (C) 2006 Google Inc.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
* You may obtain a copy of the License at
|
|
|
*
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
*
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
* See the License for the specific language governing permissions and
|
|
|
* limitations under the License.
|
|
|
*/var d,I,E,T=!1,g,S;window.PR_SHOULD_USE_CONTINUATION=!0;var m,h;(function(){var c=window,a=["break,continue,do,else,for,if,return,while"],r=[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"],i=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[i,"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"],t=[i,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[i,"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"],e="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",o=[i,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],l="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",u=[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"],f=[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"],p=[a,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],v=[n,s,t,o,l,u,f,p],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,y="str",x="kwd",C="com",w="typ",b="lit",_="pun",O="pln",L="tag",D="dec",N="src",M="atn",F="atv",R="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(ee){for(var X=0,G=!1,Z=!1,ve=0,ue=ee.length;ve<ue;++ve){var _e=ee[ve];if(_e.ignoreCase)Z=!0;else if(/[a-z]/i.test(_e.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){G=!0,Z=!1;break}}var xe={b:8,t:9,n:10,v:11,f:12,r:13};function oe(et){var Oe=et.charCodeAt(0);if(Oe!==92)return Oe;var gt=et.charAt(1);return Oe=xe[gt],Oe||("0"<=gt&><="7"?parseInt(et.substring(1),8):gt==="u"||gt==="x"?parseInt(et.substring(2),16):et.charCodeAt(1))}function fe(et){if(et<32)return(et<16?"\\x0":"\\x")+et.toString(16);var Oe=String.fromCharCode(et);return Oe==="\\"||Oe==="-"||Oe==="]"||Oe==="^"?"\\"+Oe:Oe}function Te(et){var Oe=et.substring(1,et.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")),gt=[],Ge=Oe[0]==="^",wt=["["];Ge&&wt.push("^");for(var xt=Ge?1:0,Ct=Oe.length;xt<Ct;++xt){var Dt=Oe[xt];if(/\\[bdsw]/i.test(Dt))wt.push(Dt);else{var Ht=oe(Dt),Je;xt+2<Ct&&Oe[xt+1]==="-"?(Je=oe(Oe[xt+2]),xt+=2):Je=Ht,gt.push([Ht,Je]),Je<65||Ht>122||(Je<65||Ht>90||gt.push([Math.max(65,Ht)|32,Math.min(Je,90)|32]),Je<97||Ht>122||gt.push([Math.max(97,Ht)&~32,Math.min(Je,122)&~32]))}}gt.sort(function(qe,me){return qe[0]-me[0]||me[1]-qe[1]});for(var ye=[],ie=[],xt=0;xt<gt.length;++xt){var bt=gt[xt];bt[0]<=ie[1]+1?ie[1]=Math.max(ie[1],bt[1]):ye.push(ie=bt)}for(var xt=0;xt<ye.length;++xt){var bt=ye[xt];wt.push(fe(bt[0])),bt[1]>bt[0]&&(bt[1]+1>bt[0]&&wt.push("-"),wt.push(fe(bt[1])))}return wt.push("]"),wt.join("")}function ze(et){for(var Oe=et.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")),gt=Oe.length,Ge=[],wt=0,xt=0;wt<gt;++wt){var Ct=Oe[wt];if(Ct==="(")++xt;else if(Ct.charAt(0)==="\\"){var Dt=+Ct.substring(1);Dt&&(Dt<=xt?Ge[Dt]=-1:Oe[wt]=fe(Dt))}}for(var wt=1;wt<Ge.length;++wt)Ge[wt]===-1&&(Ge[wt]=++X);for(var wt=0,xt=0;wt<gt;++wt){var Ct=Oe[wt];if(Ct==="(")++xt,Ge[xt]||(Oe[wt]="(?:");else if(Ct.charAt(0)==="\\"){var Dt=+Ct.substring(1);Dt&&Dt<=xt&&(Oe[wt]="\\"+Ge[Dt])}}for(var wt=0;wt<gt;++wt)Oe[wt]==="^"&&Oe[wt+1]!=="^"&&(Oe[wt]="");if(et.ignoreCase&&G)for(var wt=0;wt<gt;++wt){var Ct=Oe[wt],Ht=Ct.charAt(0);Ct.length>=2&&Ht==="["?Oe[wt]=Te(Ct):Ht!=="\\"&&(Oe[wt]=Ct.replace(/[a-zA-Z]/g,function(ie){var bt=ie.charCodeAt(0);return"["+String.fromCharCode(bt&~32,bt|32)+"]"}))}return Oe.join("")}for(var it=[],ve=0,ue=ee.length;ve<ue;++ve){var _e=ee[ve];if(_e.global||_e.multiline)throw new Error(""+_e);it.push("(?:"+ze(_e)+")")}return new RegExp(it.join("|"),Z?"gi":"g")}function K(ee,X){var G=/(?:^|\s)nocode(?:\s|$)/,Z=[],ve=0,ue=[],_e=0;function xe(oe){var fe=oe.nodeType;if(fe==1){if(G.test(oe.className))return;for(var Te=oe.firstChild;Te;Te=Te.nextSibling)xe(Te);var ze=oe.nodeName.toLowerCase();(ze==="br"||ze==="li")&&(Z[_e]=`
|
|
|
`,ue[_e<<1]=ve++,ue[_e++<<1|1]=oe)}else if(fe==3||fe==4){var it=oe.nodeValue;it.length&&(X?it=it.replace(/\r\n?/g,`
|
|
|
`):it=it.replace(/[ \t\r\n]+/g," "),Z[_e]=it,ue[_e<<1]=ve,ve+=it.length,ue[_e++<<1|1]=oe)}}return xe(ee),{sourceCode:Z.join("").replace(/\n$/,""),spans:ue}}function U(ee,X,G,Z,ve){if(!G)return;var ue={sourceNode:ee,pre:1,langExtension:null,numberLines:null,sourceCode:G,spans:null,basePos:X,decorations:null};Z(ue),ve.push.apply(ve,ue.decorations)}var z=/\S/;function V(ee){for(var X=void 0,G=ee.firstChild;G;G=G.nextSibling){var Z=G.nodeType;X=Z===1?X?ee:G:Z===3&&z.test(G.nodeValue)?ee:X}return X===ee?void 0:X}function Y(ee,X){var G={},Z;(function(){for(var _e=ee.concat(X),xe=[],oe={},fe=0,Te=_e.length;fe<Te;++fe){var ze=_e[fe],it=ze[3];if(it)for(var et=it.length;--et>=0;)G[it.charAt(et)]=ze;var Oe=ze[1],gt=""+Oe;oe.hasOwnProperty(gt)||(xe.push(Oe),oe[gt]=null)}xe.push(/[\0-\uffff]/),Z=B(xe)})();var ve=X.length,ue=function _e(xe){for(var oe=xe.sourceCode,fe=xe.basePos,Te=xe.sourceNode,ze=[fe,O],it=0,et=oe.match(Z)||[],Oe={},gt=0,Ge=et.length;gt<Ge;++gt){var wt=et[gt],xt=Oe[wt],Ct=void 0,Dt;if(typeof xt=="string")Dt=!1;else{var Ht=G[wt.charAt(0)];if(Ht)Ct=wt.match(Ht[1]),xt=Ht[0];else{for(var Je=0;Je<ve;++Je)if(Ht=X[Je],Ct=wt.match(Ht[1]),Ct){xt=Ht[0];break}Ct||(xt=O)}Dt=xt.length>=5&&xt.substring(0,5)==="lang-",Dt&&!(Ct&&typeof Ct[1]=="string")&&(Dt=!1,xt=N),Dt||(Oe[wt]=xt)}var ye=it;if(it+=wt.length,!Dt)ze.push(fe+ye,xt);else{var ie=Ct[1],bt=wt.indexOf(ie),qe=bt+ie.length;Ct[2]&&(qe=wt.length-Ct[2].length,bt=qe-ie.length);var me=xt.substring(5);U(Te,fe+ye,wt.substring(0,bt),_e,ze),U(Te,fe+ye+bt,ie,Ne(me,ie),ze),U(Te,fe+ye+qe,wt.substring(qe),_e,ze)}}xe.decorations=ze};return ue}function J(ee){var X=[],G=[];ee.tripleQuotedStrings?X.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ee.multiLineStrings?X.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):X.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ee.verbatimStrings&&G.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Z=ee.hashComments;Z&&(ee.cStyleComments?(Z>1?X.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):X.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),G.push([y,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):X.push([C,/^#[^\r\n]*/,null,"#"])),ee.cStyleComments&&(G.push([C,/^\/\/[^\r\n]*/,null]),G.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=ee.regexLiterals;if(ve){var ue=ve>1?"":`
|
|
|
\r`,_e=ue?".":"[\\S\\s]",xe="/(?=[^/*"+ue+"])(?:[^/\\x5B\\x5C"+ue+"]|\\x5C"+_e+"|\\x5B(?:[^\\x5C\\x5D"+ue+"]|\\x5C"+_e+")*(?:\\x5D|$))+/";G.push(["lang-regex",RegExp("^"+j+"("+xe+")")])}var oe=ee.types;oe&&G.push([w,oe]);var fe=(""+ee.keywords).replace(/^ | $/g,"");fe.length&&G.push([x,new RegExp("^(?:"+fe.replace(/[\s,]+/g,"|")+")\\b"),null]),X.push([O,/^\s+/,null,` \r
|
|
|
\xA0`]);var Te="^.[^\\s\\w.$@'\"`/\\\\]*";return ee.regexLiterals&&(Te+="(?!s*/)"),G.push([b,/^@[a-z_$][a-z_$@0-9]*/i,null],[w,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[O,/^[a-z_$][a-z_$@0-9]*/i,null],[b,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[O,/^\\[\s\S]?/,null],[_,new RegExp(Te),null]),Y(X,G)}var se=J({keywords:v,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function $(ee,X,G){for(var Z=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,ue=ee.ownerDocument,_e=ue.createElement("li");ee.firstChild;)_e.appendChild(ee.firstChild);var xe=[_e];function oe(Oe){var gt=Oe.nodeType;if(gt==1&&!Z.test(Oe.className))if(Oe.nodeName==="br")fe(Oe),Oe.parentNode&&Oe.parentNode.removeChild(Oe);else for(var Ge=Oe.firstChild;Ge;Ge=Ge.nextSibling)oe(Ge);else if((gt==3||gt==4)&&G){var wt=Oe.nodeValue,xt=wt.match(ve);if(xt){var Ct=wt.substring(0,xt.index);Oe.nodeValue=Ct;var Dt=wt.substring(xt.index+xt[0].length);if(Dt){var Ht=Oe.parentNode;Ht.insertBefore(ue.createTextNode(Dt),Oe.nextSibling)}fe(Oe),Ct||Oe.parentNode.removeChild(Oe)}}}function fe(Oe){for(;!Oe.nextSibling;)if(Oe=Oe.parentNode,!Oe)return;function gt(xt,Ct){var Dt=Ct?xt.cloneNode(!1):xt,Ht=xt.parentNode;if(Ht){var Je=gt(Ht,1),ye=xt.nextSibling;Je.appendChild(Dt);for(var ie=ye;ie;ie=ye)ye=ie.nextSibling,Je.appendChild(ie)}return Dt}for(var Ge=gt(Oe.nextSibling,0),wt;(wt=Ge.parentNode)&&wt.nodeType===1;)Ge=wt;xe.push(Ge)}for(var Te=0;Te<xe.length;++Te)oe(xe[Te]);X===(X|0)&&xe[0].setAttribute("value",X);var ze=ue.createElement("ol");ze.className="linenums";for(var it=Math.max(0,X-1|0)||0,Te=0,et=xe.length;Te<et;++Te)_e=xe[Te],_e.className="L"+(Te+it)%10,_e.firstChild||_e.appendChild(ue.createTextNode("\xA0")),ze.appendChild(_e);ee.appendChild(ze)}function ae(ee){var X=/\bMSIE\s(\d+)/.exec(navigator.userAgent);X=X&&+X[1]<=8;var G=/\n/g,Z=ee.sourceCode,ve=Z.length,ue=0,_e=ee.spans,xe=_e.length,oe=0,fe=ee.decorations,Te=fe.length,ze=0;fe[Te]=ve;var it,et;for(et=it=0;et<Te;)fe[et]!==fe[et+2]?(fe[it++]=fe[et++],fe[it++]=fe[et++]):et+=2;for(Te=it,et=it=0;et<Te;){for(var Oe=fe[et],gt=fe[et+1],Ge=et+2;Ge+2<=Te&&fe[Ge+1]===gt;)Ge+=2;fe[it++]=Oe,fe[it++]=gt,et=Ge}Te=fe.length=it;var wt=ee.sourceNode,xt="";wt&&(xt=wt.style.display,wt.style.display="none");try{for(var Ct=null;oe<xe;){var Dt=_e[oe],Ht=_e[oe+2]||ve,Je=fe[ze+2]||ve,Ge=Math.min(Ht,Je),ye=_e[oe+1],ie;if(ye.nodeType!==1&&(ie=Z.substring(ue,Ge))){X&&(ie=ie.replace(G,"\r")),ye.nodeValue=ie;var bt=ye.ownerDocument,qe=bt.createElement("span");qe.className=fe[ze+1];var me=ye.parentNode;me.replaceChild(qe,ye),qe.appendChild(ye),ue<Ht&&(_e[oe+1]=ye=bt.createTextNode(Z.substring(Ge,Ht)),me.insertBefore(ye,qe.nextSibling))}ue=Ge,ue>=Ht&&(oe+=2),ue>=Je&&(ze+=2)}}finally{wt&&(wt.style.display=xt)}}var ge={};function pe(ee,X){for(var G=X.length;--G>=0;){var Z=X[G];ge.hasOwnProperty(Z)?c.console&&console.warn("cannot override language handler %s",Z):ge[Z]=ee}}function Ne(ee,X){return ee&&ge.hasOwnProperty(ee)||(ee=/^\s*</.test(X)?"default-markup":"default-code"),ge[ee]}pe(se,["default-code"]),pe(Y([],[[O,/^[^<?]+/],[D,/^<!\w[^>]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["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"]),pe(Y([[O,/^[\s]+/,null,` \r
|
|
|
`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[L,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[M,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),pe(Y([],[[F,/^[\s\S]+/]]),["uq.val"]),pe(J({keywords:n,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),pe(J({keywords:"null,true,false"}),["json"]),pe(J({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),pe(J({keywords:t,cStyleComments:!0}),["java"]),pe(J({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),pe(J({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),pe(J({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),pe(J({keywords:f,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),pe(J({keywords:o,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),pe(J({keywords:e,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),pe(Y([],[[y,/^[\s\S]+/]]),["regex"]);function de(ee){var X=ee.langExtension;try{var G=K(ee.sourceNode,ee.pre),Z=G.sourceCode;ee.sourceCode=Z,ee.spans=G.spans,ee.basePos=0,Ne(X,Z)(ee),ae(ee)}catch(ve){c.console&&console.log(ve&&ve.stack||ve)}}function Le(ee,X,G){var Z=G||!1,ve=X||null,ue=document.createElement("div");ue.innerHTML="<pre>"+ee+"</pre>",ue=ue.firstChild,Z&&$(ue,Z,!0);var _e={langExtension:ve,numberLines:Z,sourceNode:ue,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return de(_e),ue.innerHTML}function Q(ee,X){var G=X||document.body,Z=G.ownerDocument||document;function ve(Dt){return G.getElementsByTagName(Dt)}for(var ue=[ve("pre"),ve("code"),ve("xmp")],_e=[],xe=0;xe<ue.length;++xe)for(var oe=0,fe=ue[xe].length;oe<fe;++oe)_e.push(ue[xe][oe]);ue=null;var Te=Date;Te.now||(Te={now:function(){return+new Date}});var ze=0,it=/\blang(?:uage)?-([\w.]+)(?!\S)/,et=/\bprettyprint\b/,Oe=/\bprettyprinted\b/,gt=/pre|xmp/i,Ge=/^code$/i,wt=/^(?:pre|code|xmp)$/i,xt={};function Ct(){for(var Dt=c.PR_SHOULD_USE_CONTINUATION?Te.now()+250:Infinity;ze<_e.length&&Te.now()<Dt;ze++){for(var Ht=_e[ze],Je=xt,ye=Ht;ye=ye.previousSibling;){var ie=ye.nodeType,bt=(ie===7||ie===8)&&ye.nodeValue;if(bt?!/^\??prettify\b/.test(bt):ie!==3||/\S/.test(ye.nodeValue))break;if(bt){Je={},bt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Qe,qt,Sr){Je[qt]=Sr});break}}var qe=Ht.className;if((Je!==xt||et.test(qe))&&!Oe.test(qe)){for(var me=!1,Rt=Ht.parentNode;Rt;Rt=Rt.parentNode){var er=Rt.tagName;if(wt.test(er)&&Rt.className&&et.test(Rt.className)){me=!0;break}}if(!me){Ht.className+=" prettyprinted";var ct=Je.lang;if(!ct){ct=qe.match(it);var zt;!ct&&(zt=V(Ht))&&Ge.test(zt.tagName)&&(ct=zt.className.match(it)),ct&&(ct=ct[1])}var sr;if(gt.test(Ht.tagName))sr=1;else{var Kr=Ht.currentStyle,ar=Z.defaultView,nr=Kr?Kr.whiteSpace:ar&&ar.getComputedStyle?ar.getComputedStyle(Ht,null).getPropertyValue("white-space"):0;sr=nr&&nr.substring(0,3)==="pre"}var Lt=Je.linenums;(Lt=Lt==="true"||+Lt)||(Lt=qe.match(/\blinenums\b(?::(\d+))?/),Lt=Lt?Lt[1]&&Lt[1].length?+Lt[1]:!0:!1),Lt&&$(Ht,Lt,sr);var st={langExtension:ct,sourceNode:Ht,numberLines:Lt,pre:sr,sourceCode:null,basePos:null,spans:null,decorations:null};de(st)}}}ze<_e.length?c.setTimeout(Ct,250):typeof ee=="function"&&ee()}Ct()}var ce=c.PR={createSimpleLexer:Y,registerLangHandler:pe,sourceDecorator:J,PR_ATTRIB_NAME:M,PR_ATTRIB_VALUE:F,PR_COMMENT:C,PR_DECLARATION:D,PR_KEYWORD:x,PR_LITERAL:b,PR_NOCODE:R,PR_PLAIN:O,PR_PUNCTUATION:_,PR_SOURCE:N,PR_STRING:y,PR_TAG:L,PR_TYPE:w,prettyPrintOne:T?c.prettyPrintOne=Le:m=Le,prettyPrint:h=T?c.prettyPrint=Q:h=Q},Ke=c.define;typeof Ke=="function"&&Ke.amd&&Ke("google-code-prettify",[],function(){return ce})})()},SKnc:function(H,k,d){var I=d("bYtY"),E=d("QuXc"),T=function(m,h,c,a,r,i){this.x=m==null?0:m,this.y=h==null?0:h,this.x2=c==null?1:c,this.y2=a==null?0:a,this.type="linear",this.global=i||!1,E.call(this,r)};T.prototype={constructor:T},I.inherits(T,E);var g=T;H.exports=g},"SKx+":function(H,k,d){var I=d("ProS"),E=I.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}}}),T=E;H.exports=T},SMc4:function(H,k,d){var I=d("bYtY"),E=d("bLfw"),T=d("nkfE"),g=d("ICMv"),S=E.extend({type:"cartesian2dAxis",axis:null,init:function(){S.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){S.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){S.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function m(a,r){return r.type||(r.data?"category":"value")}I.merge(S.prototype,g);var h={offset:0};T("x",S,m,h),T("y",S,m,h);var c=S;H.exports=c},SRve:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},SUKs:function(H,k,d){var I=d("LPTA"),E=I.debugMode,T=function(){};E===1&&(T=console.error);var g=T;H.exports=g},SZEN:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.clientToElement=I;function I(E,T,g){var S=g.getBoundingClientRect(),m={x:0,y:0};return E<S.left?m.x=0:E>=S.right?m.x=S.width-1:m.x=E-S.left,T<S.top?m.y=0:T>=S.bottom?m.y=S.height-1:m.y=T-S.top,m}},Sdc0:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("q1tI"),m=d("rePB"),h=d("ODXe"),c=d("Ff2n"),a=d("TSYQ"),r=d.n(a),i=d("6cGi"),n=d("4IlW"),t=S.forwardRef(function(x,C){var w,b=x.prefixCls,_=b===void 0?"rc-switch":b,O=x.className,L=x.checked,D=x.defaultChecked,N=x.disabled,M=x.loadingIcon,F=x.checkedChildren,R=x.unCheckedChildren,j=x.onClick,B=x.onChange,K=x.onKeyDown,U=Object(c.a)(x,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),z=Object(i.a)(!1,{value:L,defaultValue:D}),V=Object(h.a)(z,2),Y=V[0],J=V[1];function se(pe,Ne){var de=Y;return N||(de=pe,J(de),B==null||B(de,Ne)),de}function $(pe){pe.which===n.a.LEFT?se(!1,pe):pe.which===n.a.RIGHT&&se(!0,pe),K==null||K(pe)}function ae(pe){var Ne=se(!Y,pe);j==null||j(Ne,pe)}var ge=r()(_,O,(w={},Object(m.a)(w,"".concat(_,"-checked"),Y),Object(m.a)(w,"".concat(_,"-disabled"),N),w));return S.createElement("button",Object.assign({},U,{type:"button",role:"switch","aria-checked":Y,disabled:N,className:ge,ref:C,onKeyDown:$,onClick:ae}),M,S.createElement("span",{className:"".concat(_,"-inner")},Y?F:R))});t.displayName="Switch";var s=t,e=d("gZBC"),o=d.n(e),l=d("g0mS"),u=d("H84U"),f=d("3Nzz"),p=d("uaoM"),v=function(x,C){var w={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&C.indexOf(b)<0&&(w[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)C.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(w[b[_]]=x[b[_]]);return w},A=S.forwardRef(function(x,C){var w,b=x.prefixCls,_=x.size,O=x.loading,L=x.className,D=L===void 0?"":L,N=x.disabled,M=v(x,["prefixCls","size","loading","className","disabled"]);Object(p.a)("checked"in M||!("value"in M),"Switch","`value` is not a valid prop, do you mean `checked`?");var F=S.useContext(u.b),R=F.getPrefixCls,j=F.direction,B=S.useContext(f.b),K=R("switch",b),U=S.createElement("div",{className:"".concat(K,"-handle")},O&&S.createElement(o.a,{className:"".concat(K,"-loading-icon")})),z=r()(D,(w={},g()(w,"".concat(K,"-small"),(_||B)==="small"),g()(w,"".concat(K,"-loading"),O),g()(w,"".concat(K,"-rtl"),j==="rtl"),w));return S.createElement(l.a,{insertExtraNode:!0},S.createElement(s,E()({},M,{prefixCls:K,className:z,disabled:N||O,ref:C,loadingIcon:U})))});A.__ANT_SWITCH=!0,A.displayName="Switch";var y=k.a=A},SehX:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("2B6p"),g=T.updateCenterAndZoom;I.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(S,m){var h=S.componentType||"series";m.eachComponent({mainType:h,query:S},function(c){var a=c.coordinateSystem;if(a.type!=="geo")return;var r=g(a,S,c.get("scaleLimit"));c.setCenter&&c.setCenter(r.center),c.setZoom&&c.setZoom(r.zoom),h==="series"&&E.each(c.seriesGroup,function(i){i.setCenter(r.center),i.setZoom(r.zoom)})})})},SgGq:function(H,k,d){var I=d("bYtY"),E=d("H6uX"),T=d("YH21"),g=d("pP6R");function S(e){this.pointerChecker,this._zr=e,this._opt={};var o=I.bind,l=o(m,this),u=o(h,this),f=o(c,this),p=o(a,this),v=o(r,this);E.call(this),this.setPointerChecker=function(A){this.pointerChecker=A},this.enable=function(A,y){this.disable(),this._opt=I.defaults(I.clone(y)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),A==null&&(A=!0),(A===!0||A==="move"||A==="pan")&&(e.on("mousedown",l),e.on("mousemove",u),e.on("mouseup",f)),(A===!0||A==="scale"||A==="zoom")&&(e.on("mousewheel",p),e.on("pinch",v))},this.disable=function(){e.off("mousedown",l),e.off("mousemove",u),e.off("mouseup",f),e.off("mousewheel",p),e.off("pinch",v)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}I.mixin(S,E);function m(e){if(T.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)return;var o=e.offsetX,l=e.offsetY;this.pointerChecker&&this.pointerChecker(e,o,l)&&(this._x=o,this._y=l,this._dragging=!0)}function h(e){if(!this._dragging||!t("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||g.isTaken(this._zr,"globalPan"))return;var o=e.offsetX,l=e.offsetY,u=this._x,f=this._y,p=o-u,v=l-f;this._x=o,this._y=l,this._opt.preventDefaultMouseMove&&T.stop(e.event),n(this,"pan","moveOnMouseMove",e,{dx:p,dy:v,oldX:u,oldY:f,newX:o,newY:l})}function c(e){T.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function a(e){var o=t("zoomOnMouseWheel",e,this._opt),l=t("moveOnMouseWheel",e,this._opt),u=e.wheelDelta,f=Math.abs(u),p=e.offsetX,v=e.offsetY;if(u===0||!o&&!l)return;if(o){var A=f>3?1.4:f>1?1.2:1.1,y=u>0?A:1/A;i(this,"zoom","zoomOnMouseWheel",e,{scale:y,originX:p,originY:v})}if(l){var x=Math.abs(u),C=(u>0?1:-1)*(x>3?.4:x>1?.15:.05);i(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:C,originX:p,originY:v})}}function r(e){if(g.isTaken(this._zr,"globalPan"))return;var o=e.pinchScale>1?1.1:1/1.1;i(this,"zoom",null,e,{scale:o,originX:e.pinchX,originY:e.pinchY})}function i(e,o,l,u,f){e.pointerChecker&&e.pointerChecker(u,f.originX,f.originY)&&(T.stop(u.event),n(e,o,l,u,f))}function n(e,o,l,u,f){f.isAvailableBehavior=I.bind(t,null,l,u),e.trigger(o,f)}function t(e,o,l){var u=l[e];return!e||u&&(!I.isString(u)||o.event[u+"Key"])}var s=S;H.exports=s},SgaC:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function I(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function E(S,m){for(var h=0;h<m.length;h++){var c=m[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,h){return m&&E(S.prototype,m),h&&E(S,h),S}var g=function(){function S(){I(this,S),this._subrects=0}return T(S,[{key:"decodeRect",value:function(h,c,a,r,i,n,t){if(this._subrects===0){if(i.rQwait("RRE",4+4))return!1;this._subrects=i.rQshift32();var s=i.rQshiftBytes(4);n.fillRect(h,c,a,r,s)}for(;this._subrects>0;){if(i.rQwait("RRE",4+8))return!1;var e=i.rQshiftBytes(4),o=i.rQshift16(),l=i.rQshift16(),u=i.rQshift16(),f=i.rQshift16();n.fillRect(h+o,c+l,u,f,e),this._subrects--}return!0}}]),S}();k.default=g},Sj0X:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("XuBP")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="DownOutlined";var c=g.forwardRef(h);k.default=c},Sj9i:function(H,k,d){var I=d("QBsz"),E=I.create,T=I.distSquare,g=Math.pow,S=Math.sqrt,m=1e-8,h=1e-4,c=S(3),a=1/3,r=E(),i=E(),n=E();function t(b){return b>-m&&b<m}function s(b){return b>m||b<-m}function e(b,_,O,L,D){var N=1-D;return N*N*(N*b+3*D*_)+D*D*(D*L+3*N*O)}function o(b,_,O,L,D){var N=1-D;return 3*(((_-b)*N+2*(O-_)*D)*N+(L-O)*D*D)}function l(b,_,O,L,D,N){var M=L+3*(_-O)-b,F=3*(O-_*2+b),R=3*(_-b),j=b-D,B=F*F-3*M*R,K=F*R-9*M*j,U=R*R-3*F*j,z=0;if(t(B)&&t(K))if(t(F))N[0]=0;else{var V=-R/F;V>=0&&V<=1&&(N[z++]=V)}else{var Y=K*K-4*B*U;if(t(Y)){var J=K/B,V=-F/M+J,se=-J/2;V>=0&&V<=1&&(N[z++]=V),se>=0&&se<=1&&(N[z++]=se)}else if(Y>0){var $=S(Y),ae=B*F+1.5*M*(-K+$),ge=B*F+1.5*M*(-K-$);ae<0?ae=-g(-ae,a):ae=g(ae,a),ge<0?ge=-g(-ge,a):ge=g(ge,a);var V=(-F-(ae+ge))/(3*M);V>=0&&V<=1&&(N[z++]=V)}else{var pe=(2*B*F-3*M*K)/(2*S(B*B*B)),Ne=Math.acos(pe)/3,de=S(B),Le=Math.cos(Ne),V=(-F-2*de*Le)/(3*M),se=(-F+de*(Le+c*Math.sin(Ne)))/(3*M),Q=(-F+de*(Le-c*Math.sin(Ne)))/(3*M);V>=0&&V<=1&&(N[z++]=V),se>=0&&se<=1&&(N[z++]=se),Q>=0&&Q<=1&&(N[z++]=Q)}}return z}function u(b,_,O,L,D){var N=6*O-12*_+6*b,M=9*_+3*L-3*b-9*O,F=3*_-3*b,R=0;if(t(M)){if(s(N)){var j=-F/N;j>=0&&j<=1&&(D[R++]=j)}}else{var B=N*N-4*M*F;if(t(B))D[0]=-N/(2*M);else if(B>0){var K=S(B),j=(-N+K)/(2*M),U=(-N-K)/(2*M);j>=0&&j<=1&&(D[R++]=j),U>=0&&U<=1&&(D[R++]=U)}}return R}function f(b,_,O,L,D,N){var M=(_-b)*D+b,F=(O-_)*D+_,R=(L-O)*D+O,j=(F-M)*D+M,B=(R-F)*D+F,K=(B-j)*D+j;N[0]=b,N[1]=M,N[2]=j,N[3]=K,N[4]=K,N[5]=B,N[6]=R,N[7]=L}function p(b,_,O,L,D,N,M,F,R,j,B){var K,U=.005,z=Infinity,V,Y,J,se;r[0]=R,r[1]=j;for(var $=0;$<1;$+=.05)i[0]=e(b,O,D,M,$),i[1]=e(_,L,N,F,$),J=T(r,i),J<z&&(K=$,z=J);z=Infinity;for(var ae=0;ae<32&&!(U<h);ae++)V=K-U,Y=K+U,i[0]=e(b,O,D,M,V),i[1]=e(_,L,N,F,V),J=T(i,r),V>=0&&J<z?(K=V,z=J):(n[0]=e(b,O,D,M,Y),n[1]=e(_,L,N,F,Y),se=T(n,r),Y<=1&&se<z?(K=Y,z=se):U*=.5);return B&&(B[0]=e(b,O,D,M,K),B[1]=e(_,L,N,F,K)),S(z)}function v(b,_,O,L){var D=1-L;return D*(D*b+2*L*_)+L*L*O}function A(b,_,O,L){return 2*((1-L)*(_-b)+L*(O-_))}function y(b,_,O,L,D){var N=b-2*_+O,M=2*(_-b),F=b-L,R=0;if(t(N)){if(s(M)){var j=-F/M;j>=0&&j<=1&&(D[R++]=j)}}else{var B=M*M-4*N*F;if(t(B)){var j=-M/(2*N);j>=0&&j<=1&&(D[R++]=j)}else if(B>0){var K=S(B),j=(-M+K)/(2*N),U=(-M-K)/(2*N);j>=0&&j<=1&&(D[R++]=j),U>=0&&U<=1&&(D[R++]=U)}}return R}function x(b,_,O){var L=b+O-2*_;return L===0?.5:(b-_)/L}function C(b,_,O,L,D){var N=(_-b)*L+b,M=(O-_)*L+_,F=(M-N)*L+N;D[0]=b,D[1]=N,D[2]=F,D[3]=F,D[4]=M,D[5]=O}function w(b,_,O,L,D,N,M,F,R){var j,B=.005,K=Infinity;r[0]=M,r[1]=F;for(var U=0;U<1;U+=.05){i[0]=v(b,O,D,U),i[1]=v(_,L,N,U);var z=T(r,i);z<K&&(j=U,K=z)}K=Infinity;for(var V=0;V<32&&!(B<h);V++){var Y=j-B,J=j+B;i[0]=v(b,O,D,Y),i[1]=v(_,L,N,Y);var z=T(i,r);if(Y>=0&&z<K)j=Y,K=z;else{n[0]=v(b,O,D,J),n[1]=v(_,L,N,J);var se=T(n,r);J<=1&&se<K?(j=J,K=se):B*=.5}}return R&&(R[0]=v(b,O,D,j),R[1]=v(_,L,N,j)),S(K)}k.cubicAt=e,k.cubicDerivativeAt=o,k.cubicRootAt=l,k.cubicExtrema=u,k.cubicSubdivide=f,k.cubicProjectPoint=p,k.quadraticAt=v,k.quadraticDerivativeAt=A,k.quadraticRootAt=y,k.quadraticExtremum=x,k.quadraticSubdivide=C,k.quadraticProjectPoint=w},Sp2Z:function(H,k,d){var I=d("3LNs"),E=d("/y7N"),T=d("AVZG"),g=d("Znkb"),S=I.extend({makeElOption:function(r,i,n,t,s){var e=n.axis,o=e.grid,l=t.get("type"),u=m(o,e).getOtherAxis(e).getGlobalExtent(),f=e.toGlobalCoord(e.dataToCoord(i,!0));if(l&&l!=="none"){var p=E.buildElStyle(t),v=h[l](e,f,u);v.style=p,r.graphicKey=v.type,r.pointer=v}var A=T.layout(o.model,n);E.buildCartesianSingleLabelElOption(i,r,A,n,t,s)},getHandleTransform:function(r,i,n){var t=T.layout(i.axis.grid.model,i,{labelInside:!1});return t.labelMargin=n.get("handle.margin"),{position:E.getTransformedPosition(i.axis,r,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,i,n,t){var s=n.axis,e=s.grid,o=s.getGlobalExtent(!0),l=m(e,s).getOtherAxis(s).getGlobalExtent(),u=s.dim==="x"?0:1,f=r.position;f[u]+=i[u],f[u]=Math.min(o[1],f[u]),f[u]=Math.max(o[0],f[u]);var p=(l[1]+l[0])/2,v=[p,p];v[u]=f[u];var A=[{verticalAlign:"middle"},{align:"center"}];return{position:f,rotation:r.rotation,cursorPoint:v,tooltipOption:A[u]}}});function m(r,i){var n={};return n[i.dim+"AxisIndex"]=i.index,r.getCartesian(n)}var h={line:function(r,i,n){var t=E.makeLineShape([i,n[0]],[i,n[1]],c(r));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(r,i,n){var t=Math.max(1,r.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:E.makeRectShape([i-t/2,n[0]],[t,s],c(r))}}};function c(r){return r.dim==="x"?0:1}g.registerAxisPointerClass("CartesianAxisPointer",S);var a=S;H.exports=a},Sq3C:function(H,k,d){var I=d("sKgW"),E=d("zoYe"),T=d("wy8a"),g=d("quyA"),S=d("Z1HP"),m=d("Em2t"),h=Math.ceil;function c(a,r){r=r===void 0?" ":E(r);var i=r.length;if(i<2)return i?I(r,a):r;var n=I(r,h(a/S(r)));return g(r)?T(m(n),0,a).join(""):n.slice(0,a)}H.exports=c},SqI9:function(H,k,d){var I=d("y+Vt"),E=d("iXp4"),T=I.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:E(I.prototype.brush),buildPath:function(S,m){var h=m.cx,c=m.cy,a=Math.max(m.r0||0,0),r=Math.max(m.r,0),i=m.startAngle,n=m.endAngle,t=m.clockwise,s=Math.cos(i),e=Math.sin(i);S.moveTo(s*a+h,e*a+c),S.lineTo(s*r+h,e*r+c),S.arc(h,c,r,i,n,!t),S.lineTo(Math.cos(n)*a+h,Math.sin(n)*a+c),a!==0&&S.arc(h,c,a,n,i,t),S.closePath()}});H.exports=T},SrGk:function(H,k,d){var I=d("hydK"),E=I.createElement,T=d("bYtY"),g=d("y+Vt"),S=d("Dagg"),m=d("dqUG"),h=d("P47w"),c=h.path,a=h.image,r=h.text,i="0",n="1";function t(e,o,l,u,f){this._zrId=e,this._svgRoot=o,this._tagNames=typeof l=="string"?[l]:l,this._markLabel=u,this._domName=f||"_dom",this.nextId=0}t.prototype.createElement=E,t.prototype.getDefs=function(e){var o=this._svgRoot,l=this._svgRoot.getElementsByTagName("defs");return l.length===0?e?(l=o.insertBefore(this.createElement("defs"),o.firstChild),l.contains||(l.contains=function(u){var f=l.children;if(!f)return!1;for(var p=f.length-1;p>=0;--p)if(f[p]===u)return!0;return!1}),l):null:l[0]},t.prototype.update=function(e,o){if(!e)return;var l=this.getDefs(!1);if(e[this._domName]&&l.contains(e[this._domName]))typeof o=="function"&&o(e);else{var u=this.add(e);u&&(e[this._domName]=u)}},t.prototype.addDom=function(e){var o=this.getDefs(!0);o.appendChild(e)},t.prototype.removeDom=function(e){var o=this.getDefs(!1);o&&e[this._domName]&&(o.removeChild(e[this._domName]),e[this._domName]=null)},t.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var o=[];return T.each(this._tagNames,function(l){var u=e.getElementsByTagName(l);o=o.concat([].slice.call(u))}),o},t.prototype.markAllUnused=function(){var e=this.getDoms(),o=this;T.each(e,function(l){l[o._markLabel]=i})},t.prototype.markUsed=function(e){e&&(e[this._markLabel]=n)},t.prototype.removeUnused=function(){var e=this.getDefs(!1);if(!e)return;var o=this.getDoms(),l=this;T.each(o,function(u){u[l._markLabel]!==n&&e.removeChild(u)})},t.prototype.getSvgProxy=function(e){return e instanceof g?c:e instanceof S?a:e instanceof m?r:c},t.prototype.getTextSvgElement=function(e){return e.__textSvgEl},t.prototype.getSvgElement=function(e){return e.__svgEl};var s=t;H.exports=s},Swgg:function(H,k,d){var I=d("fc+c"),E=I.extend({type:"dataZoom.select"});H.exports=E},Sxd8:function(H,k,d){var I=d("ZCgT");function E(T){var g=I(T),S=g%1;return g===g?S?g-S:g:0}H.exports=E},T1rO:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("zdCA"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},T4UG:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("ItGF"),S=d("7aKB"),m=S.formatTime,h=S.encodeHTML,c=S.addCommas,a=S.getTooltipMarker,r=d("4NO4"),i=d("bLfw"),n=d("5Hur"),t=d("OKJ2"),s=d("+TT/"),e=s.getLayoutParams,o=s.mergeLayoutParam,l=d("9H2F"),u=l.createTask,f=d("D5nY"),p=f.prepareSource,v=f.getSource,A=d("KxfA"),y=A.retrieveRawValue,x=r.makeInner(),C=i.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(R,j,B,K){this.seriesIndex=this.componentIndex,this.dataTask=u({count:_,reset:O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(R,B),p(this);var U=this.getInitialData(R,B);D(U,this),this.dataTask.context.data=U,x(this).dataBeforeProcessed=U,w(this)},mergeDefaultAndTheme:function(R,j){var B=this.layoutMode,K=B?e(R):{},U=this.subType;i.hasClass(U)&&(U+="Series"),T.merge(R,j.getTheme().get(this.subType)),T.merge(R,this.getDefaultOption()),r.defaultEmphasis(R,"label",["show"]),this.fillDataTextStyle(R.data),B&&o(R,K,B)},mergeOption:function(R,j){R=T.merge(this.option,R,!0),this.fillDataTextStyle(R.data);var B=this.layoutMode;B&&o(this.option,R,B),p(this);var K=this.getInitialData(R,j);D(K,this),this.dataTask.dirty(),this.dataTask.context.data=K,x(this).dataBeforeProcessed=K,w(this)},fillDataTextStyle:function(R){if(R&&!T.isTypedArray(R))for(var j=["show"],B=0;B<R.length;B++)R[B]&&R[B].label&&r.defaultEmphasis(R[B],"label",j)},getInitialData:function(){},appendData:function(R){var j=this.getRawData();j.appendData(R.data)},getData:function(R){var j=M(this);if(j){var B=j.context.data;return R==null?B:B.getLinkedData(R)}else return x(this).data},setData:function(R){var j=M(this);if(j){var B=j.context;B.data!==R&&j.modifyOutputEnd&&j.setOutputEnd(R.count()),B.outputData=R,j!==this.dataTask&&(B.data=R)}x(this).data=R},getSource:function(){return v(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var R=this.coordinateSystem;return R&&R.getBaseAxis&&R.getBaseAxis()},formatTooltip:function(R,j,B,K){var U=this;K=K||"html";var z=K==="html"?"<br/>":`
|
|
|
`,V=K==="richText",Y={},J=0;function se(ue){var _e=T.reduce(ue,function(ze,it,et){var Oe=ae.getDimensionInfo(et);return ze|=Oe&&Oe.tooltip!==!1&&Oe.displayName!=null},0),xe=[];ge.length?T.each(ge,function(ze){oe(y(ae,R,ze),ze)}):T.each(ue,oe);function oe(ze,it){var et=ae.getDimensionInfo(it);if(!et||et.otherDims.tooltip===!1)return;var Oe=et.type,gt="sub"+U.seriesIndex+"at"+J,Ge=a({color:Le,type:"subItem",renderMode:K,markerId:gt}),wt=typeof Ge=="string"?Ge:Ge.content,xt=(_e?wt+h(et.displayName||"-")+": ":"")+h(Oe==="ordinal"?ze+"":Oe==="time"?j?"":m("yyyy/MM/dd hh:mm:ss",ze):c(ze));xt&&xe.push(xt),V&&(Y[gt]=Le,++J)}var fe=_e?V?`
|
|
|
`:"<br/>":"",Te=fe+xe.join(fe||", ");return{renderMode:K,content:Te,style:Y}}function $(ue){return{renderMode:K,content:h(c(ue)),style:Y}}var ae=this.getData(),ge=ae.mapDimension("defaultedTooltip",!0),pe=ge.length,Ne=this.getRawValue(R),de=T.isArray(Ne),Le=ae.getItemVisual(R,"color");T.isObject(Le)&&Le.colorStops&&(Le=(Le.colorStops[0]||{}).color),Le=Le||"transparent";var Q=pe>1||de&&!pe?se(Ne):$(pe?y(ae,R,ge[0]):de?Ne[0]:Ne),ce=Q.content,Ke=U.seriesIndex+"at"+J,ee=a({color:Le,type:"item",renderMode:K,markerId:Ke});Y[Ke]=Le,++J;var X=ae.getName(R),G=this.name;r.isNameSpecified(this)||(G=""),G=G?h(G)+(j?": ":z):"";var Z=typeof ee=="string"?ee:ee.content,ve=j?Z+G+ce:G+Z+(X?h(X)+": "+ce:ce);return{html:ve,markers:Y}},isAnimationEnabled:function(){if(g.node)return!1;var R=this.getShallow("animation");return R&&(this.getData().count()>this.getShallow("animationThreshold")&&(R=!1)),R},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(R,j,B){var K=this.ecModel,U=n.getColorFromPalette.call(this,R,j,B);return U||(U=K.getColorFromPalette(R,j,B)),U},coordDimToDataDim:function(R){return this.getRawData().mapDimension(R,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});T.mixin(C,t),T.mixin(C,n);function w(R){var j=R.name;r.isNameSpecified(R)||(R.name=b(R)||j)}function b(R){var j=R.getRawData(),B=j.mapDimension("seriesName",!0),K=[];return T.each(B,function(U){var z=j.getDimensionInfo(U);z.displayName&&K.push(z.displayName)}),K.join(" ")}function _(R){return R.model.getRawData().count()}function O(R){var j=R.model;return j.setData(j.getRawData().cloneShallow()),L}function L(R,j){j.outputData&&R.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function D(R,j){T.each(R.CHANGABLE_METHODS,function(B){R.wrapMethod(B,T.curry(N,j))})}function N(R){var j=M(R);j&&j.setOutputEnd(this.count())}function M(R){var j=(R.ecModel||{}).scheduler,B=j&&j.getPipeline(R.uid);if(B){var K=B.currentTask;if(K){var U=K.agentStubMap;U&&(K=U.get(R.uid))}return K}}var F=C;H.exports=F},T6xi:function(H,k,d){var I=d("YgsL"),E=d("nCxF");function T(g,S,m){var h=S.points,c=S.smooth;if(h&&h.length>=2){if(c&&c!=="spline"){var a=E(h,c,m,S.smoothConstraint);g.moveTo(h[0][0],h[0][1]);for(var r=h.length,i=0;i<(m?r:r-1);i++){var n=a[i*2],t=a[i*2+1],s=h[(i+1)%r];g.bezierCurveTo(n[0],n[1],t[0],t[1],s[0],s[1])}}else{c==="spline"&&(h=I(h,m)),g.moveTo(h[0][0],h[0][1]);for(var i=1,e=h.length;i<e;i++)g.lineTo(h[i][0],h[i][1])}m&&g.closePath()}}k.buildPath=T},TIY9:function(H,k,d){var I=d("bYtY"),E=I.each,T=d("vafp"),g=d("4NO4"),S=g.makeInner,m=d("Mgri"),h=d("F5Ls"),c=d("a9QJ"),a=d("p/La"),r=S(),i={load:function(t,s,e){var o=r(s).parsed;if(o)return o;var l=s.specialAreas||{},u=s.geoJSON,f;try{f=u?T(u,e):[]}catch(p){throw new Error(`Invalid geoJson format
|
|
|
`+p.message)}return m(t,f),E(f,function(p){var v=p.name;h(t,p),c(t,p),a(t,p);var A=l[v];A&&p.transformTo(A.left,A.top,A.width,A.height)}),r(s).parsed={regions:f,boundingRect:n(f)}}};function n(t){for(var s,e=0;e<t.length;e++){var o=t[e].getBoundingRect();s=s||o.clone(),s.union(o)}return s}H.exports=i},TJmX:function(H,k,d){var I=d("zM3Q"),E=["itemStyle","borderColor"],T=["itemStyle","borderColor0"],g=["itemStyle","color"],S=["itemStyle","color0"],m={seriesType:"candlestick",plan:I(),performRawSeries:!0,reset:function(h,c){var a=h.getData();if(a.setVisual({legendSymbol:"roundRect",colorP:n(1,h),colorN:n(-1,h),borderColorP:t(1,h),borderColorN:t(-1,h)}),c.isSeriesFiltered(h))return;var r=h.pipelineContext.large;return!r&&{progress:i};function i(s,e){for(var o;(o=s.next())!=null;){var l=e.getItemModel(o),u=e.getItemLayout(o).sign;e.setItemVisual(o,{color:n(u,l),borderColor:t(u,l)})}}function n(s,e){return e.get(s>0?g:S)}function t(s,e){return e.get(s>0?E:T)}}};H.exports=m},TWL2:function(H,k,d){var I=d("IwbS"),E=d("bYtY"),T=d("6Ic6");function g(a,r){I.Group.call(this);var i=new I.Polygon,n=new I.Polyline,t=new I.Text;this.add(i),this.add(n),this.add(t),this.highDownOnUpdate=function(s,e){e==="emphasis"?(n.ignore=n.hoverIgnore,t.ignore=t.hoverIgnore):(n.ignore=n.normalIgnore,t.ignore=t.normalIgnore)},this.updateData(a,r,!0)}var S=g.prototype,m=["itemStyle","opacity"];S.updateData=function(a,r,i){var n=this.childAt(0),t=a.hostModel,s=a.getItemModel(r),e=a.getItemLayout(r),o=a.getItemModel(r).get(m);o=o==null?1:o,n.useStyle({}),i?(n.setShape({points:e.points}),n.setStyle({opacity:0}),I.initProps(n,{style:{opacity:o}},t,r)):I.updateProps(n,{style:{opacity:o},shape:{points:e.points}},t,r);var l=s.getModel("itemStyle"),u=a.getItemVisual(r,"color");n.setStyle(E.defaults({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(a,r),I.setHoverStyle(this)},S._updateLabel=function(a,r){var i=this.childAt(1),n=this.childAt(2),t=a.hostModel,s=a.getItemModel(r),e=a.getItemLayout(r),o=e.label,l=a.getItemVisual(r,"color");I.updateProps(i,{shape:{points:o.linePoints||o.linePoints}},t,r),I.updateProps(n,{style:{x:o.x,y:o.y}},t,r),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var u=s.getModel("label"),f=s.getModel("emphasis.label"),p=s.getModel("labelLine"),v=s.getModel("emphasis.labelLine"),l=a.getItemVisual(r,"color");I.setLabelStyle(n.style,n.hoverStyle={},u,f,{labelFetcher:a.hostModel,labelDataIndex:r,defaultText:a.getName(r),autoColor:l,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!f.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!v.get("show"),i.setStyle({stroke:l}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=v.getModel("lineStyle").getLineStyle()},E.inherits(g,I.Group);var h=T.extend({type:"funnel",render:function(a,r,i){var n=a.getData(),t=this._data,s=this.group;n.diff(t).add(function(e){var o=new g(n,e);n.setItemGraphicEl(e,o),s.add(o)}).update(function(e,o){var l=t.getItemGraphicEl(o);l.updateData(n,e),s.add(l),n.setItemGraphicEl(e,l)}).remove(function(e){var o=t.getItemGraphicEl(e);s.remove(o)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=h;H.exports=c},TYVI:function(H,k,d){var I=d("5GtS"),E=d("T4UG"),T=E.extend({type:"series.gauge",getInitialData:function(S,m){return I(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}}}),g=T;H.exports=g},Tghj:function(H,k,d){(function(I){var E;typeof window!="undefined"?E=window.__DEV__:typeof I!="undefined"&&(E=I.__DEV__),typeof E=="undefined"&&(E=!0);var T=E;k.__DEV__=T}).call(this,d("yLpj"))},ThAp:function(H,k,d){var I=d("bYtY"),E=d("5GtS"),T=d("T4UG"),g=d("7aKB"),S=g.encodeHTML,m=g.addCommas,h=d("cCMj"),c=d("KxfA"),a=c.retrieveRawAttr,r=d("W4dC"),i=d("D5nY"),n=i.makeSeriesEncodeForNameBased,t=T.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var o=E(this,{coordDimensions:["value"],encodeDefaulter:I.curry(n,this)}),l=o.mapDimension("value"),u=I.createHashMap(),f=[],p=[],v=0,A=o.count();v<A;v++){var y=o.getName(v);u.set(y,!0),f.push({name:y,value:o.get(l,v),selected:a(o,v,"selected")})}var x=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return I.each(x.regions,function(C){var w=C.name;u.get(w)||(f.push({name:w}),p.push(w))}),this.updateSelectedMap(f),o.appendValues([],p),o},getHostGeoModel:function(){var e=this.option.geoIndex;return e!=null?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var o=this.getData();return o.get(o.mapDimension("value"),e)},getRegionModel:function(e){var o=this.getData();return o.getItemModel(o.indexOfName(e))},formatTooltip:function(e){for(var o=this.getData(),l=m(this.getRawValue(e)),u=o.getName(e),f=this.seriesGroup,p=[],v=0;v<f.length;v++){var A=f[v].originalData.indexOfName(u),y=o.mapDimension("value");isNaN(f[v].originalData.get(y,A))||p.push(S(f[v].name))}return p.join(", ")+"<br />"+S(u+" : "+l)},getTooltipPosition:function(e){if(e!=null){var o=this.getData().getName(e),l=this.coordinateSystem,u=l.getRegion(o);return u&&l.dataToPoint(u.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},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"}});I.mixin(t,h);var s=t;H.exports=s},TkdX:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},g=2,S=4;function m(t,s,e){E.Group.call(this);var o=new E.Sector({z2:g});o.seriesIndex=s.seriesIndex;var l=new E.Text({z2:S,silent:t.getModel("label").get("silent")});this.add(o),this.add(l),this.updateData(!0,t,"normal",s,e);function u(){l.ignore=l.hoverIgnore}function f(){l.ignore=l.normalIgnore}this.on("emphasis",u).on("normal",f).on("mouseover",u).on("mouseout",f)}var h=m.prototype;h.updateData=function(t,s,e,o,l){this.node=s,s.piece=this,o=o||this._seriesModel,l=l||this._ecModel;var u=this.childAt(0);u.dataIndex=s.dataIndex;var f=s.getModel(),p=s.getLayout(),v=I.extend({},p);v.label=null;var A=a(s,o,l);n(s,o,A);var y=f.getModel("itemStyle").getItemStyle(),x;if(e==="normal")x=y;else{var C=f.getModel(e+".itemStyle").getItemStyle();x=I.merge(C,y)}x=I.defaults({lineJoin:"bevel",fill:x.fill||A},x),t?(u.setShape(v),u.shape.r=p.r0,E.updateProps(u,{shape:{r:p.r}},o,s.dataIndex),u.useStyle(x)):typeof x.fill=="object"&&x.fill.type||typeof u.style.fill=="object"&&u.style.fill.type?(E.updateProps(u,{shape:v},o),u.useStyle(x)):E.updateProps(u,{shape:v,style:x},o),this._updateLabel(o,A,e);var w=f.getShallow("cursor");if(w&&u.attr("cursor",w),t){var b=o.getShallow("highlightPolicy");this._initEvents(u,s,o,b)}this._seriesModel=o||this._seriesModel,this._ecModel=l||this._ecModel,E.setHoverStyle(this)},h.onEmphasis=function(t){var s=this;this.node.hostTree.root.eachNode(function(e){e.piece&&(s.node===e?e.piece.updateData(!1,e,"emphasis"):i(e,s.node,t)?e.piece.childAt(0).trigger("highlight"):t!==T.NONE&&e.piece.childAt(0).trigger("downplay"))})},h.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},h.onHighlight=function(){this.updateData(!1,this.node,"highlight")},h.onDownplay=function(){this.updateData(!1,this.node,"downplay")},h._updateLabel=function(t,s,e){var o=this.node.getModel(),l=o.getModel("label"),u=e==="normal"||e==="emphasis"?l:o.getModel(e+".label"),f=o.getModel("emphasis.label"),p=I.retrieve(t.getFormattedLabel(this.node.dataIndex,e,null,null,"label"),this.node.name);j("show")===!1&&(p="");var v=this.node.getLayout(),A=u.get("minAngle");A==null&&(A=l.get("minAngle")),A=A/180*Math.PI;var y=v.endAngle-v.startAngle;A!=null&&Math.abs(y)<A&&(p="");var x=this.childAt(1);E.setLabelStyle(x.style,x.hoverStyle||{},l,f,{defaultText:u.getShallow("show")?p:null,autoColor:s,useInsideStyle:!0});var C=(v.startAngle+v.endAngle)/2,w=Math.cos(C),b=Math.sin(C),_,O=j("position"),L=j("distance")||0,D=j("align");O==="outside"?(_=v.r+L,D=C>Math.PI/2?"right":"left"):!D||D==="center"?(_=(v.r+v.r0)/2,D="center"):D==="left"?(_=v.r0+L,C>Math.PI/2&&(D="right")):D==="right"&&(_=v.r-L,C>Math.PI/2&&(D="left")),x.attr("style",{text:p,textAlign:D,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var N=_*w+v.cx,M=_*b+v.cy;x.attr("position",[N,M]);var F=j("rotate"),R=0;F==="radial"?(R=-C,R<-Math.PI/2&&(R+=Math.PI)):F==="tangential"?(R=Math.PI/2-C,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):typeof F=="number"&&(R=F*Math.PI/180),x.attr("rotation",R);function j(B){var K=u.get(B);return K==null?l.get(B):K}},h._initEvents=function(t,s,e,o){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var l=this,u=function(){l.onEmphasis(o)},f=function(){l.onNormal()},p=function(){l.onDownplay()},v=function(){l.onHighlight()};e.isAnimationEnabled()&&t.on("mouseover",u).on("mouseout",f).on("emphasis",u).on("normal",f).on("downplay",p).on("highlight",v)},I.inherits(m,E.Group);var c=m;function a(t,s,e){var o=t.getVisual("color"),l=t.getVisual("visualMeta");(!l||l.length===0)&&(o=null);var u=t.getModel("itemStyle").get("color");if(u)return u;if(o)return o;if(t.depth===0)return e.option.color[0];var f=e.option.color.length;return u=e.option.color[r(t)%f],u}function r(t){for(var s=t;s.depth>1;)s=s.parentNode;var e=t.getAncestors()[0];return I.indexOf(e.children,s)}function i(t,s,e){return e===T.NONE?!1:e===T.SELF?t===s:e===T.ANCESTOR?t===s||t.isAncestorOf(s):t===s||t.isDescendantOf(s)}function n(t,s,e){var o=s.getData();o.setItemVisual(t.dataIndex,"color",e)}H.exports=c},Tp9H:function(H,k,d){var I=d("ItGF"),E=d("Kagy"),T=d("IUWy"),g=E.toolbox.saveAsImage;function S(c){this.model=c}S.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:g.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:g.lang.slice()},S.prototype.unusable=!I.canvasSupported;var m=S.prototype;m.onclick=function(c,a){var r=this.model,i=r.get("name")||c.get("title.0.text")||"echarts",n=a.getZr().painter.getType()==="svg",t=n?"svg":r.get("type",!0)||"png",s=a.getConnectedDataURL({type:t,backgroundColor:r.get("backgroundColor",!0)||c.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")});if(typeof MouseEvent=="function"&&!I.browser.ie&&!I.browser.edge){var e=document.createElement("a");e.download=i+"."+t,e.target="_blank",e.href=s;var o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});e.dispatchEvent(o)}else if(window.navigator.msSaveOrOpenBlob){for(var l=atob(s.split(",")[1]),u=l.length,f=new Uint8Array(u);u--;)f[u]=l.charCodeAt(u);var p=new Blob([f]);window.navigator.msSaveOrOpenBlob(p,i+"."+t)}else{var v=r.get("lang"),A='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',y=window.open();y.document.write(A)}},T.register("saveAsImage",S);var h=S;H.exports=h},"U/Mo":function(H,k){function d(E){var T=E.coordinateSystem;if(T.type!=="view")return 1;var g=E.option.nodeScaleRatio,S=T.scale,m=S&&S[0]||1,h=T.getZoom(),c=(h-1)*g+1;return c/m}function I(E){var T=E.getVisual("symbolSize");return T instanceof Array&&(T=(T[0]+T[1])/2),+T}k.getNodeGlobalScale=d,k.getSymbolSize=I},UADf:function(H,k,d){},UESt:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="RightOutlined";var h=k.a=E.forwardRef(m)},UOVi:function(H,k,d){var I=d("bYtY"),E=d("7aKB"),T=["x","y","z","radius","angle","single"],g=["cartesian2d","polar","singleAxis"];function S(a){return I.indexOf(g,a)>=0}function m(a,r){a=a.slice();var i=I.map(a,E.capitalFirst);r=(r||[]).slice();var n=I.map(r,E.capitalFirst);return function(t,s){I.each(a,function(e,o){for(var l={name:e,capital:i[o]},u=0;u<r.length;u++)l[r[u]]=e+n[u];t.call(s,l)})}}var h=m(T,["axisIndex","axis","index","id"]);function c(a,r,i){return function(e){var o={nodes:[],records:{}};if(r(function(f){o.records[f.name]={}}),!e)return o;s(e,o);var l;do l=!1,a(u);while(l);function u(f){!n(f,o)&&t(f,o)&&(s(f,o),l=!0)}return o};function n(e,o){return I.indexOf(o.nodes,e)>=0}function t(e,o){var l=!1;return r(function(u){I.each(i(e,u)||[],function(f){o.records[u.name][f]&&(l=!0)})}),l}function s(e,o){o.nodes.push(e),r(function(l){I.each(i(e,l)||[],function(u){o.records[l.name][u]=!0})})}}k.isCoordSupported=S,k.createNameEach=m,k.eachAxisDim=h,k.createLinkedNodesFinder=c},Uc92:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},UnoB:function(H,k,d){var I=d("bYtY"),E=d("OELB");function T(m,h){m.eachSeriesByType("themeRiver",function(c){var a=c.getData(),r=c.coordinateSystem,i={},n=r.getRect();i.rect=n;var t=c.get("boundaryGap"),s=r.getAxis();if(i.boundaryGap=t,s.orient==="horizontal"){t[0]=E.parsePercent(t[0],n.height),t[1]=E.parsePercent(t[1],n.height);var e=n.height-t[0]-t[1];g(a,c,e)}else{t[0]=E.parsePercent(t[0],n.width),t[1]=E.parsePercent(t[1],n.width);var o=n.width-t[0]-t[1];g(a,c,o)}a.setLayout("layoutInfo",i)})}function g(m,h,c){if(!m.count())return;for(var a=h.coordinateSystem,r=h.getLayerSeries(),i=m.mapDimension("single"),n=m.mapDimension("value"),t=I.map(r,function(A){return I.map(A.indices,function(y){var x=a.dataToPoint(m.get(i,y));return x[1]=m.get(n,y),x})}),s=S(t),e=s.y0,o=c/s.max,l=r.length,u=r[0].indices.length,f,p=0;p<u;++p){f=e[p]*o,m.setItemLayout(r[0].indices[p],{layerIndex:0,x:t[0][p][0],y0:f,y:t[0][p][1]*o});for(var v=1;v<l;++v)f+=t[v-1][p][1]*o,m.setItemLayout(r[v].indices[p],{layerIndex:v,x:t[v][p][0],y0:f,y:t[v][p][1]*o})}}function S(m){for(var h=m.length,c=m[0].length,a=[],r=[],i=0,n,t={},s=0;s<c;++s){for(var e=0,n=0;e<h;++e)n+=m[e][s][1];n>i&&(i=n),a.push(n)}for(var o=0;o<c;++o)r[o]=(i-a[o])/2;i=0;for(var l=0;l<c;++l){var u=a[l]+r[l];u>i&&(i=u)}return t.y0=r,t.max=i,t}H.exports=T},Urep:function(H,k,d){},V7ic:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("digP")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="FileTwoTone";var c=g.forwardRef(h);k.default=c},VFCP:function(H,k,d){d("dBmv"),d("KamJ")},VPsl:function(H,k){function d(I){I.eachSeriesByType("map",function(E){var T=E.get("color"),g=E.getModel("itemStyle"),S=g.get("areaColor"),m=g.get("color")||T[E.seriesIndex%T.length];E.getData().setVisual({areaColor:S,color:m})})}H.exports=d},VR9l:function(H,k,d){var I=d("KCsZ"),E=I([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),T={getItemStyle:function(g,S){var m=E(this,g,S),h=this.getBorderLineDash();return h&&(m.lineDash=h),m},getBorderLineDash:function(){var g=this.get("borderType");return g==="solid"||g==null?null:g==="dashed"?[5,5]:[1,1]}};H.exports=T},VSLf:function(H,k,d){d("I+Bx"),d("F0hE"),d("bBKM")},VSMT:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.decodeUTF8=I,k.encodeUTF8=E;function I(T){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(T))}catch(S){if(S instanceof URIError&&g)return T;throw S}}function E(T){return unescape(encodeURIComponent(T))}},VXYp:function(H,k,d){var I=d("bYtY"),E=d("SgGq"),T=d("iLNv"),g="\0_ec_dataZoom_roams";function S(t,s){var e=c(t),o=s.dataZoomId,l=s.coordId;I.each(e,function(p,v){var A=p.dataZoomInfos;A[o]&&I.indexOf(s.allCoordIds,l)<0&&(delete A[o],p.count--)}),r(e);var u=e[l];u||(u=e[l]={coordId:l,dataZoomInfos:{},count:0},u.controller=a(t,u),u.dispatchAction=I.curry(i,t)),!u.dataZoomInfos[o]&&u.count++,u.dataZoomInfos[o]=s;var f=n(u.dataZoomInfos);u.controller.enable(f.controlType,f.opt),u.controller.setPointerChecker(s.containsPoint),T.createOrUpdate(u,"dispatchAction",s.dataZoomModel.get("throttle",!0),"fixRate")}function m(t,s){var e=c(t);I.each(e,function(o){o.controller.dispose();var l=o.dataZoomInfos;l[s]&&(delete l[s],o.count--)}),r(e)}function h(t){return t.type+"\0_"+t.id}function c(t){var s=t.getZr();return s[g]||(s[g]={})}function a(t,s){var e=new E(t.getZr());return I.each(["pan","zoom","scrollMove"],function(o){e.on(o,function(l){var u=[];I.each(s.dataZoomInfos,function(f){if(!l.isAvailableBehavior(f.dataZoomModel.option))return;var p=(f.getRange||{})[o],v=p&&p(s.controller,l);!f.dataZoomModel.get("disabled",!0)&&v&&u.push({dataZoomId:f.dataZoomId,start:v[0],end:v[1]})}),u.length&&s.dispatchAction(u)})}),e}function r(t){I.each(t,function(s,e){s.count||(s.controller.dispose(),delete t[e])})}function i(t,s){t.dispatchAction({type:"dataZoom",batch:s})}function n(t){var s,e="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return I.each(t,function(u){var f=u.dataZoomModel,p=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;o[e+p]>o[e+s]&&(s=p),l&=f.get("preventDefaultMouseMove",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}k.register=S,k.unregister=m,k.generateCoordId=h},VaxA:function(H,k,d){var I=d("bYtY");function E(m,h,c){if(m&&I.indexOf(h,m.type)>=0){var a=c.getData().tree.root,r=m.targetNode;if(typeof r=="string"&&(r=a.getNodeById(r)),r&&a.contains(r))return{node:r};var i=m.targetNodeId;if(i!=null&&(r=a.getNodeById(i)))return{node:r}}}function T(m){for(var h=[];m;)m=m.parentNode,m&&h.push(m);return h.reverse()}function g(m,h){var c=T(m);return I.indexOf(c,h)>=0}function S(m,h){for(var c=[];m;){var a=m.dataIndex;c.push({name:m.name,dataIndex:a,value:h.getRawValue(a)}),m=m.parentNode}return c.reverse(),c}k.retrieveTargetInfo=E,k.getPathToRoot=T,k.aboveViewRoot=g,k.wrapTreePathInfo=S},Vi4m:function(H,k,d){var I=d("bYtY");function E(g){g!=null&&I.extend(this,g),this.otherDims={}}var T=E;H.exports=T},Vl3Y:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("J4zp"),g=d.n(T),S=d("lSNA"),m=d.n(S),h=d("q1tI"),c=d("TSYQ"),a=d.n(c),r=d("85Yc"),i=d("H84U"),n=d("BGR+"),t=h.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),s=h.createContext({updateItemErrors:function(){}}),e=function(Rt){var er=Object(n.default)(Rt,["prefixCls"]);return h.createElement(r.FormProvider,er)};function o(me){return typeof me=="object"&&me!=null&&me.nodeType===1}function l(me,Rt){return(!Rt||me!=="hidden")&&me!=="visible"&&me!=="clip"}function u(me,Rt){if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){var er=getComputedStyle(me,null);return l(er.overflowY,Rt)||l(er.overflowX,Rt)||function(ct){var zt=function(sr){if(!sr.ownerDocument||!sr.ownerDocument.defaultView)return null;try{return sr.ownerDocument.defaultView.frameElement}catch(Kr){return null}}(ct);return!!zt&&(zt.clientHeight<ct.scrollHeight||zt.clientWidth<ct.scrollWidth)}(me)}return!1}function f(me,Rt,er,ct,zt,sr,Kr,ar){return sr<me&&Kr>Rt||sr>me&&Kr<Rt?0:sr<=me&&ar<=er||Kr>=Rt&&ar>=er?sr-me-ct:Kr>Rt&&ar<er||sr<me&&ar>er?Kr-Rt+zt:0}var p=function(me,Rt){var er=window,ct=Rt.scrollMode,zt=Rt.block,sr=Rt.inline,Kr=Rt.boundary,ar=Rt.skipOverflowHiddenElements,nr=typeof Kr=="function"?Kr:function(Dn){return Dn!==Kr};if(!o(me))throw new TypeError("Invalid target");for(var Lt=document.scrollingElement||document.documentElement,st=[],Qe=me;o(Qe)&&nr(Qe);){if((Qe=Qe.parentElement)===Lt){st.push(Qe);break}Qe!=null&&Qe===document.body&&u(Qe)&&!u(document.documentElement)||Qe!=null&&u(Qe,ar)&&st.push(Qe)}for(var qt=er.visualViewport?er.visualViewport.width:innerWidth,Sr=er.visualViewport?er.visualViewport.height:innerHeight,Ar=window.scrollX||pageXOffset,hr=window.scrollY||pageYOffset,vn=me.getBoundingClientRect(),Zr=vn.height,Ln=vn.width,$e=vn.top,tt=vn.right,Ee=vn.bottom,Re=vn.left,je=zt==="start"||zt==="nearest"?$e:zt==="end"?Ee:$e+Zr/2,nt=sr==="center"?Re+Ln/2:sr==="end"?tt:Re,Vt=[],Bt=0;Bt<st.length;Bt++){var Xt=st[Bt],Rr=Xt.getBoundingClientRect(),Br=Rr.height,cn=Rr.width,Ut=Rr.top,pt=Rr.right,ut=Rr.bottom,Jt=Rr.left;if(ct==="if-needed"&&$e>=0&&Re>=0&&Ee<=Sr&&tt<=qt&&$e>=Ut&&Ee<=ut&&Re>=Jt&&tt<=pt)return Vt;var Zt=getComputedStyle(Xt),At=parseInt(Zt.borderLeftWidth,10),Pt=parseInt(Zt.borderTopWidth,10),vt=parseInt(Zt.borderRightWidth,10),Ft=parseInt(Zt.borderBottomWidth,10),gr=0,or=0,ur="offsetWidth"in Xt?Xt.offsetWidth-Xt.clientWidth-At-vt:0,Yr="offsetHeight"in Xt?Xt.offsetHeight-Xt.clientHeight-Pt-Ft:0;if(Lt===Xt)gr=zt==="start"?je:zt==="end"?je-Sr:zt==="nearest"?f(hr,hr+Sr,Sr,Pt,Ft,hr+je,hr+je+Zr,Zr):je-Sr/2,or=sr==="start"?nt:sr==="center"?nt-qt/2:sr==="end"?nt-qt:f(Ar,Ar+qt,qt,At,vt,Ar+nt,Ar+nt+Ln,Ln),gr=Math.max(0,gr+hr),or=Math.max(0,or+Ar);else{gr=zt==="start"?je-Ut-Pt:zt==="end"?je-ut+Ft+Yr:zt==="nearest"?f(Ut,ut,Br,Pt,Ft+Yr,je,je+Zr,Zr):je-(Ut+Br/2)+Yr/2,or=sr==="start"?nt-Jt-At:sr==="center"?nt-(Jt+cn/2)+ur/2:sr==="end"?nt-pt+vt+ur:f(Jt,pt,cn,At,vt+ur,nt,nt+Ln,Ln);var Jr=Xt.scrollLeft,Tn=Xt.scrollTop;je+=Tn-(gr=Math.max(0,Math.min(Tn+gr,Xt.scrollHeight-Br+Yr))),nt+=Jr-(or=Math.max(0,Math.min(Jr+or,Xt.scrollWidth-cn+ur)))}Vt.push({el:Xt,top:gr,left:or})}return Vt};function v(me){return me===Object(me)&&Object.keys(me).length!==0}function A(me,Rt){Rt===void 0&&(Rt="auto");var er="scrollBehavior"in document.body.style;me.forEach(function(ct){var zt=ct.el,sr=ct.top,Kr=ct.left;zt.scroll&&er?zt.scroll({top:sr,left:Kr,behavior:Rt}):(zt.scrollTop=sr,zt.scrollLeft=Kr)})}function y(me){return me===!1?{block:"end",inline:"nearest"}:v(me)?me:{block:"start",inline:"nearest"}}function x(me,Rt){var er=!me.ownerDocument.documentElement.contains(me);if(v(Rt)&&typeof Rt.behavior=="function")return Rt.behavior(er?[]:p(me,Rt));if(er)return;var ct=y(Rt);return A(p(me,ct),ct.behavior)}var C=x;function w(me){return me===void 0||me===!1?[]:Array.isArray(me)?me:[me]}function b(me,Rt){if(!me.length)return;var er=me.join("_");return Rt?"".concat(Rt,"_").concat(er):er}function _(me){var Rt=w(me);return Rt.join("_")}function O(me){var Rt=Object(r.useForm)(),er=g()(Rt,1),ct=er[0],zt=Object(h.useRef)({}),sr=Object(h.useMemo)(function(){return me||E()(E()({},ct),{__INTERNAL__:{itemRef:function(ar){return function(nr){var Lt=_(ar);nr?zt.current[Lt]=nr:delete zt.current[Lt]}}},scrollToField:function(ar){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Lt=w(ar),st=b(Lt,sr.__INTERNAL__.name),Qe=st?document.getElementById(st):null;Qe&&C(Qe,E()({scrollMode:"if-needed",block:"nearest"},nr))},getFieldInstance:function(ar){var nr=_(ar);return zt.current[nr]}})},[me,ct]);return[sr]}var L=d("3Nzz"),D=function(me,Rt){var er={};for(var ct in me)Object.prototype.hasOwnProperty.call(me,ct)&&Rt.indexOf(ct)<0&&(er[ct]=me[ct]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,ct=Object.getOwnPropertySymbols(me);zt<ct.length;zt++)Rt.indexOf(ct[zt])<0&&Object.prototype.propertyIsEnumerable.call(me,ct[zt])&&(er[ct[zt]]=me[ct[zt]]);return er},N=function(Rt,er){var ct,zt=h.useContext(L.b),sr=h.useContext(i.b),Kr=sr.getPrefixCls,ar=sr.direction,nr=Rt.name,Lt=Rt.prefixCls,st=Rt.className,Qe=st===void 0?"":st,qt=Rt.size,Sr=qt===void 0?zt:qt,Ar=Rt.form,hr=Rt.colon,vn=Rt.labelAlign,Zr=Rt.labelCol,Ln=Rt.wrapperCol,$e=Rt.hideRequiredMark,tt=Rt.layout,Ee=tt===void 0?"horizontal":tt,Re=Rt.scrollToFirstError,je=Rt.requiredMark,nt=Rt.onFinishFailed,Vt=D(Rt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Bt=Object(h.useMemo)(function(){return je!==void 0?je:!$e},[$e,je]),Xt=Kr("form",Lt),Rr=a()(Xt,(ct={},m()(ct,"".concat(Xt,"-").concat(Ee),!0),m()(ct,"".concat(Xt,"-hide-required-mark"),Bt===!1),m()(ct,"".concat(Xt,"-rtl"),ar==="rtl"),m()(ct,"".concat(Xt,"-").concat(Sr),Sr),ct),Qe),Br=O(Ar),cn=g()(Br,1),Ut=cn[0],pt=Ut.__INTERNAL__;pt.name=nr;var ut=Object(h.useMemo)(function(){return{name:nr,labelAlign:vn,labelCol:Zr,wrapperCol:Ln,vertical:Ee==="vertical",colon:hr,requiredMark:Bt,itemRef:pt.itemRef}},[nr,vn,Zr,Ln,Ee,hr,Bt]);h.useImperativeHandle(er,function(){return Ut});var Jt=function(At){nt&&nt(At),Re&&At.errorFields.length&&Ut.scrollToField(At.errorFields[0].name)};return h.createElement(L.a,{size:Sr},h.createElement(t.Provider,{value:ut},h.createElement(r.default,E()({id:nr},Vt,{onFinishFailed:Jt,form:Ut,className:Rr}))))},M=h.forwardRef(N),F=M,R=d("cDf5"),j=d.n(R),B=d("RIqP"),K=d.n(B),U=d("Y+p1"),z=d.n(U),V=d("KW7l"),Y=d("c+Xe"),J=d("qrJ5"),se=d("CWQg"),$=d("uaoM"),ae=d("/kpp"),ge=d("YMnH"),pe=d("ZvpZ"),Ne=function(Rt){var er=Rt.prefixCls,ct=Rt.label,zt=Rt.htmlFor,sr=Rt.labelCol,Kr=Rt.labelAlign,ar=Rt.colon,nr=Rt.required,Lt=Rt.requiredMark,st=Object(ge.b)("Form"),Qe=g()(st,1),qt=Qe[0];return ct?h.createElement(t.Consumer,{key:"label"},function(Sr){var Ar,hr=Sr.vertical,vn=Sr.labelAlign,Zr=Sr.labelCol,Ln=Sr.colon,$e,tt=sr||Zr||{},Ee=Kr||vn,Re="".concat(er,"-item-label"),je=a()(Re,Ee==="left"&&"".concat(Re,"-left"),tt.className),nt=ct,Vt=ar===!0||Ln!==!1&&ar!==!1,Bt=Vt&&!hr;Bt&&typeof ct=="string"&&ct.trim()!==""&&(nt=ct.replace(/[:|:]\s*$/,"")),Lt==="optional"&&!nr&&(nt=h.createElement(h.Fragment,null,nt,h.createElement("span",{className:"".concat(er,"-item-optional")},(qt==null?void 0:qt.optional)||(($e=pe.a.Form)===null||$e===void 0?void 0:$e.optional))));var Xt=a()((Ar={},m()(Ar,"".concat(er,"-item-required"),nr),m()(Ar,"".concat(er,"-item-required-mark-optional"),Lt==="optional"),m()(Ar,"".concat(er,"-item-no-colon"),!Vt),Ar));return h.createElement(ae.a,E()({},tt,{className:je}),h.createElement("label",{htmlFor:zt,className:Xt,title:typeof ct=="string"?ct:""},nt))}):null},de=Ne,Le=d("gZBC"),Q=d.n(Le),ce=d("kbBi"),Ke=d.n(ce),ee=d("J84W"),X=d.n(ee),G=d("sKbD"),Z=d.n(G),ve=d("YrtM"),ue=d("8XRh"),_e=d("hkKa");function xe(me,Rt,er){var ct=h.useRef({errors:me,visible:!!me.length}),zt=Object(_e.a)(),sr=function(){var ar=ct.current.visible,nr=!!me.length,Lt=ct.current.errors;ct.current.errors=me,ct.current.visible=nr,ar!==nr?Rt(nr):(Lt.length!==me.length||Lt.some(function(st,Qe){return st!==me[Qe]}))&&zt()};return h.useEffect(function(){if(!er){var Kr=setTimeout(sr,10);return function(){return clearTimeout(Kr)}}},[me]),er&&sr(),[ct.current.visible,ct.current.errors]}var oe={success:X.a,warning:Z.a,error:Ke.a,validating:Q.a},fe=function(Rt){var er=Rt.prefixCls,ct=Rt.wrapperCol,zt=Rt.children,sr=Rt.help,Kr=Rt.errors,ar=Rt.onDomErrorVisibleChange,nr=Rt.hasFeedback,Lt=Rt.validateStatus,st=Rt.extra,Qe=Object(_e.a)(),qt="".concat(er,"-item"),Sr=h.useContext(t),Ar=ct||Sr.wrapperCol||{},hr=a()("".concat(qt,"-control"),Ar.className),vn=xe(Kr,function(nt){nt&&Promise.resolve().then(function(){ar(!0)}),Qe()},!!sr),Zr=g()(vn,2),Ln=Zr[0],$e=Zr[1];h.useEffect(function(){return function(){ar(!1)}},[]);var tt=Object(ve.a)(function(){return $e},Ln,function(nt,Vt){return Vt}),Ee=Lt&&oe[Lt],Re=nr&&Ee?h.createElement("span",{className:"".concat(qt,"-children-icon")},h.createElement(Ee,null)):null,je=E()({},Sr);return delete je.labelCol,delete je.wrapperCol,h.createElement(t.Provider,{value:je},h.createElement(ae.a,E()({},Ar,{className:hr}),h.createElement("div",{className:"".concat(qt,"-control-input")},h.createElement("div",{className:"".concat(qt,"-control-input-content")},zt),Re),h.createElement(ue.default,{motionDeadline:500,visible:Ln,motionName:"show-help",onLeaveEnd:function(){ar(!1)},motionAppear:!0,removeOnLeave:!0},function(nt){var Vt=nt.className;return h.createElement("div",{className:a()("".concat(qt,"-explain"),Vt),key:"help"},tt.map(function(Bt,Xt){return h.createElement("div",{key:Xt,role:"alert"},Bt)}))}),st&&h.createElement("div",{className:"".concat(qt,"-extra")},st)))},Te=fe,ze=d("0n0R"),it=d("xEkU"),et=d.n(it);function Oe(me){var Rt=h.useState(me),er=g()(Rt,2),ct=er[0],zt=er[1],sr=Object(h.useRef)(null),Kr=Object(h.useRef)([]),ar=Object(h.useRef)(!1);h.useEffect(function(){return function(){ar.current=!0,et.a.cancel(sr.current)}},[]);function nr(Lt){if(ar.current)return;sr.current===null&&(Kr.current=[],sr.current=et()(function(){sr.current=null,zt(function(st){var Qe=st;return Kr.current.forEach(function(qt){Qe=qt(Qe)}),Qe})})),Kr.current.push(Lt)}return[ct,nr]}function gt(){var me=h.useContext(t),Rt=me.itemRef,er=h.useRef({});function ct(zt,sr){var Kr=sr&&j()(sr)==="object"&&sr.ref,ar=zt.join("_");return(er.current.name!==ar||er.current.originRef!==Kr)&&(er.current.name=ar,er.current.originRef=Kr,er.current.ref=Object(Y.a)(Rt(zt),Kr)),er.current.ref}return ct}var Ge=function(me,Rt){var er={};for(var ct in me)Object.prototype.hasOwnProperty.call(me,ct)&&Rt.indexOf(ct)<0&&(er[ct]=me[ct]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,ct=Object.getOwnPropertySymbols(me);zt<ct.length;zt++)Rt.indexOf(ct[zt])<0&&Object.prototype.propertyIsEnumerable.call(me,ct[zt])&&(er[ct[zt]]=me[ct[zt]]);return er},wt=Object(se.a)("success","warning","error","validating",""),xt=h.memo(function(me){var Rt=me.children;return Rt},function(me,Rt){return me.value===Rt.value&&me.update===Rt.update});function Ct(me){return me===null&&Object($.a)(!1,"Form.Item","`null` is passed as `name` property"),!(me==null)}function Dt(me){var Rt=me.name,er=me.fieldKey,ct=me.noStyle,zt=me.dependencies,sr=me.prefixCls,Kr=me.style,ar=me.className,nr=me.shouldUpdate,Lt=me.hasFeedback,st=me.help,Qe=me.rules,qt=me.validateStatus,Sr=me.children,Ar=me.required,hr=me.label,vn=me.trigger,Zr=vn===void 0?"onChange":vn,Ln=me.validateTrigger,$e=me.hidden,tt=Ge(me,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Ee=h.useRef(!1),Re=h.useContext(i.b),je=Re.getPrefixCls,nt=h.useContext(t),Vt=nt.name,Bt=nt.requiredMark,Xt=h.useContext(s),Rr=Xt.updateItemErrors,Br=h.useState(!!st),cn=g()(Br,2),Ut=cn[0],pt=cn[1],ut=h.useRef(qt),Jt=Oe({}),Zt=g()(Jt,2),At=Zt[0],Pt=Zt[1],vt=h.useContext(V.b),Ft=vt.validateTrigger,gr=Ln!==void 0?Ln:Ft;function or(Ye){Ee.current||pt(Ye)}var ur=Ct(Rt),Yr=h.useRef([]);h.useEffect(function(){return function(){Ee.current=!0,Rr(Yr.current.join("__SPLIT__"),[])}},[]);var Jr=je("form",sr),Tn=ct?Rr:function(Ye,Ce){Pt(function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return z()(ke[Ye],Ce)?ke:E()(E()({},ke),m()({},Ye,Ce))})},Dn=gt();function zn(Ye,Ce,ke,Fe){var Ve,We;if(ct&&!$e)return Ye;var Ze=[];Object.keys(At).forEach(function(wr){Ze=[].concat(K()(Ze),K()(At[wr]||[]))});var yt;st!=null?yt=w(st):(yt=ke?ke.errors:[],yt=[].concat(K()(yt),K()(Ze)));var lt="";qt!==void 0?lt=qt:(ke==null?void 0:ke.validating)?lt="validating":((We=ke==null?void 0:ke.errors)===null||We===void 0?void 0:We.length)||Ze.length?lt="error":(ke==null?void 0:ke.touched)&&(lt="success"),Ut&&st&&(ut.current=lt);var kt=(Ve={},m()(Ve,"".concat(Jr,"-item"),!0),m()(Ve,"".concat(Jr,"-item-with-help"),Ut||st),m()(Ve,"".concat(ar),!!ar),m()(Ve,"".concat(Jr,"-item-has-feedback"),lt&&Lt),m()(Ve,"".concat(Jr,"-item-has-success"),lt==="success"),m()(Ve,"".concat(Jr,"-item-has-warning"),lt==="warning"),m()(Ve,"".concat(Jr,"-item-has-error"),lt==="error"),m()(Ve,"".concat(Jr,"-item-has-error-leave"),!st&&Ut&&ut.current==="error"),m()(Ve,"".concat(Jr,"-item-is-validating"),lt==="validating"),m()(Ve,"".concat(Jr,"-item-hidden"),$e),Ve);return h.createElement(J.a,E()({className:a()(kt),style:Kr,key:"row"},Object(n.default)(tt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),h.createElement(de,E()({htmlFor:Ce,required:Fe,requiredMark:Bt},me,{prefixCls:Jr})),h.createElement(Te,E()({},me,ke,{errors:yt,prefixCls:Jr,onDomErrorVisibleChange:or,validateStatus:lt}),h.createElement(s.Provider,{value:{updateItemErrors:Tn}},Ye)))}var qn=typeof Sr=="function",Ai=h.useRef(0);if(Ai.current+=1,!ur&&!qn&&!zt)return zn(Sr);var Mi={};return typeof hr=="string"&&(Mi.label=hr),h.createElement(r.Field,E()({},me,{messageVariables:Mi,trigger:Zr,validateTrigger:gr,onReset:function(){or(!1)}}),function(Ye,Ce,ke){var Fe=Ce.errors,Ve=w(Rt).length&&Ce?Ce.name:[],We=b(Ve,Vt);if(ct){if(Yr.current=K()(Ve),er){var Ze=Array.isArray(er)?er:[er];Yr.current=[].concat(K()(Ve.slice(0,-1)),K()(Ze))}Rr(Yr.current.join("__SPLIT__"),Fe)}var yt=Ar!==void 0?Ar:!!(Qe&&Qe.some(function(_r){if(_r&&j()(_r)==="object"&&_r.required)return!0;if(typeof _r=="function"){var Wt=_r(ke);return Wt&&Wt.required}return!1})),lt=E()({},Ye),kt=null;if(Object($.a)(!(nr&&zt),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Sr)&&ur)Object($.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),kt=Sr;else if(qn&&(!(nr||zt)||ur))Object($.a)(!!(nr||zt),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object($.a)(!ur,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(zt&&!qn&&!ur)Object($.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(ze.b)(Sr)){Object($.a)(Sr.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var wr=E()(E()({},Sr.props),lt);wr.id||(wr.id=We),Object(Y.c)(Sr)&&(wr.ref=Dn(Ve,Sr));var pr=new Set([].concat(K()(w(Zr)),K()(w(gr))));pr.forEach(function(_r){wr[_r]=function(){for(var Wt,un,ir,Gr,kr,yr=arguments.length,En=new Array(yr),kn=0;kn<yr;kn++)En[kn]=arguments[kn];(ir=lt[_r])===null||ir===void 0||(Wt=ir).call.apply(Wt,[lt].concat(En)),(kr=(Gr=Sr.props)[_r])===null||kr===void 0||(un=kr).call.apply(un,[Gr].concat(En))}}),kt=h.createElement(xt,{value:lt[me.valuePropName||"value"],update:Ai.current},Object(ze.a)(Sr,wr))}else qn&&(nr||zt)&&!ur?kt=Sr(ke):(Object($.a)(!Ve.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),kt=Sr);return zn(kt,We,Ce,yt)})}var Ht=Dt,Je=function(me,Rt){var er={};for(var ct in me)Object.prototype.hasOwnProperty.call(me,ct)&&Rt.indexOf(ct)<0&&(er[ct]=me[ct]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,ct=Object.getOwnPropertySymbols(me);zt<ct.length;zt++)Rt.indexOf(ct[zt])<0&&Object.prototype.propertyIsEnumerable.call(me,ct[zt])&&(er[ct[zt]]=me[ct[zt]]);return er},ye=function(Rt){var er=Rt.children,ct=Je(Rt,["children"]);return Object($.a)(!!ct.name,"Form.List","Miss `name` prop."),h.createElement(r.List,ct,function(zt,sr){return er(zt.map(function(Kr){return E()(E()({},Kr),{fieldKey:Kr.key})}),sr)})},ie=ye,bt=F;bt.Item=Ht,bt.List=ie,bt.useForm=O,bt.Provider=e,bt.create=function(){Object($.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qe=k.a=bt},VpOo:function(H,k){function d(I,E){var T=E.x,g=E.y,S=E.width,m=E.height,h=E.r,c,a,r,i;S<0&&(T=T+S,S=-S),m<0&&(g=g+m,m=-m),typeof h=="number"?c=a=r=i=h:h instanceof Array?h.length===1?c=a=r=i=h[0]:h.length===2?(c=r=h[0],a=i=h[1]):h.length===3?(c=h[0],a=i=h[1],r=h[2]):(c=h[0],a=h[1],r=h[2],i=h[3]):c=a=r=i=0;var n;c+a>S&&(n=c+a,c*=S/n,a*=S/n),r+i>S&&(n=r+i,r*=S/n,i*=S/n),a+r>m&&(n=a+r,a*=m/n,r*=m/n),c+i>m&&(n=c+i,c*=m/n,i*=m/n),I.moveTo(T+c,g),I.lineTo(T+S-a,g),a!==0&&I.arc(T+S-a,g+a,a,-Math.PI/2,0),I.lineTo(T+S,g+m-r),r!==0&&I.arc(T+S-r,g+m-r,r,0,Math.PI/2),I.lineTo(T+i,g+m),i!==0&&I.arc(T+i,g+m-i,i,Math.PI/2,Math.PI),I.lineTo(T,g+c),c!==0&&I.arc(T+c,g+c,c,Math.PI,Math.PI*1.5)}k.buildPath=d},"VrN/":function(H,k,d){(function(I,E){H.exports=E()})(this,function(){"use strict";var I=navigator.userAgent,E=navigator.platform,T=/gecko\/\d/i.test(I),g=/MSIE \d/.test(I),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),m=/Edge\/(\d+)/.exec(I),h=g||S||m,c=h&&(g?document.documentMode||6:+(m||S)[1]),a=!m&&/WebKit\//.test(I),r=a&&/Qt\/\d+\.\d+/.test(I),i=!m&&/Chrome\//.test(I),n=/Opera\//.test(I),t=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),e=/PhantomJS/.test(I),o=!m&&/AppleWebKit/.test(I)&&/Mobile\/\w+/.test(I),l=/Android/.test(I),u=o||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),f=o||/Mac/.test(E),p=/\bCrOS\b/.test(I),v=/win/i.test(E),A=n&&I.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(n=!1,a=!0);var y=f&&(r||n&&(A==null||A<12.11)),x=T||h&&c>=9;function C(P){return new RegExp("(^|\\s)"+P+"(?:$|\\s)\\s*")}var w=function(W,q){var re=W.className,le=C(q).exec(re);if(le){var Pe=re.slice(le.index+le[0].length);W.className=re.slice(0,le.index)+(Pe?le[1]+Pe:"")}};function b(P){for(var W=P.childNodes.length;W>0;--W)P.removeChild(P.firstChild);return P}function _(P,W){return b(P).appendChild(W)}function O(P,W,q,re){var le=document.createElement(P);if(q&&(le.className=q),re&&(le.style.cssText=re),typeof W=="string")le.appendChild(document.createTextNode(W));else if(W)for(var Pe=0;Pe<W.length;++Pe)le.appendChild(W[Pe]);return le}function L(P,W,q,re){var le=O(P,W,q,re);return le.setAttribute("role","presentation"),le}var D;document.createRange?D=function(W,q,re,le){var Pe=document.createRange();return Pe.setEnd(le||W,re),Pe.setStart(W,q),Pe}:D=function(W,q,re){var le=document.body.createTextRange();try{le.moveToElementText(W.parentNode)}catch(Pe){return le}return le.collapse(!0),le.moveEnd("character",re),le.moveStart("character",q),le};function N(P,W){if(W.nodeType==3&&(W=W.parentNode),P.contains)return P.contains(W);do if(W.nodeType==11&&(W=W.host),W==P)return!0;while(W=W.parentNode)}function M(){var P;try{P=document.activeElement}catch(W){P=document.body||null}for(;P&&P.shadowRoot&&P.shadowRoot.activeElement;)P=P.shadowRoot.activeElement;return P}function F(P,W){var q=P.className;C(W).test(q)||(P.className+=(q?" ":"")+W)}function R(P,W){for(var q=P.split(" "),re=0;re<q.length;re++)q[re]&&!C(q[re]).test(W)&&(W+=" "+q[re]);return W}var j=function(W){W.select()};o?j=function(W){W.selectionStart=0,W.selectionEnd=W.value.length}:h&&(j=function(W){try{W.select()}catch(q){}});function B(P){var W=Array.prototype.slice.call(arguments,1);return function(){return P.apply(null,W)}}function K(P,W,q){W||(W={});for(var re in P)P.hasOwnProperty(re)&&(q!==!1||!W.hasOwnProperty(re))&&(W[re]=P[re]);return W}function U(P,W,q,re,le){W==null&&(W=P.search(/[^\s\u00a0]/),W==-1&&(W=P.length));for(var Pe=re||0,ft=le||0;;){var Tt=P.indexOf(" ",Pe);if(Tt<0||Tt>=W)return ft+(W-Pe);ft+=Tt-Pe,ft+=q-ft%q,Pe=Tt+1}}var z=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};z.prototype.onTimeout=function(P){P.id=0,P.time<=+new Date?P.f():setTimeout(P.handler,P.time-+new Date)},z.prototype.set=function(P,W){this.f=W;var q=+new Date+P;(!this.id||q<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,P),this.time=q)};function V(P,W){for(var q=0;q<P.length;++q)if(P[q]==W)return q;return-1}var Y=50,J={toString:function(){return"CodeMirror.Pass"}},se={scroll:!1},$={origin:"*mouse"},ae={origin:"+move"};function ge(P,W,q){for(var re=0,le=0;;){var Pe=P.indexOf(" ",re);Pe==-1&&(Pe=P.length);var ft=Pe-re;if(Pe==P.length||le+ft>=W)return re+Math.min(ft,W-le);if(le+=Pe-re,le+=q-le%q,re=Pe+1,le>=W)return re}}var pe=[""];function Ne(P){for(;pe.length<=P;)pe.push(de(pe)+" ");return pe[P]}function de(P){return P[P.length-1]}function Le(P,W){for(var q=[],re=0;re<P.length;re++)q[re]=W(P[re],re);return q}function Q(P,W,q){for(var re=0,le=q(W);re<P.length&&q(P[re])<=le;)re++;P.splice(re,0,W)}function ce(){}function Ke(P,W){var q;return Object.create?q=Object.create(P):(ce.prototype=P,q=new ce),W&&K(W,q),q}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function X(P){return/\w/.test(P)||P>"\x80"&&(P.toUpperCase()!=P.toLowerCase()||ee.test(P))}function G(P,W){return W?W.source.indexOf("\\w")>-1&&X(P)?!0:W.test(P):X(P)}function Z(P){for(var W in P)if(P.hasOwnProperty(W)&&P[W])return!1;return!0}var ve=/[\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 ue(P){return P.charCodeAt(0)>=768&&ve.test(P)}function _e(P,W,q){for(;(q<0?W>0:W<P.length)&&ue(P.charAt(W));)W+=q;return W}function xe(P,W,q){for(var re=W>q?-1:1;;){if(W==q)return W;var le=(W+q)/2,Pe=re<0?Math.ceil(le):Math.floor(le);if(Pe==W)return P(Pe)?W:q;P(Pe)?q=Pe:W=Pe+re}}function oe(P,W,q,re){if(!P)return re(W,q,"ltr",0);for(var le=!1,Pe=0;Pe<P.length;++Pe){var ft=P[Pe];(ft.from<q&&ft.to>W||W==q&&ft.to==W)&&(re(Math.max(ft.from,W),Math.min(ft.to,q),ft.level==1?"rtl":"ltr",Pe),le=!0)}le||re(W,q,"ltr")}var fe=null;function Te(P,W,q){var re;fe=null;for(var le=0;le<P.length;++le){var Pe=P[le];if(Pe.from<W&&Pe.to>W)return le;Pe.to==W&&(Pe.from!=Pe.to&&q=="before"?re=le:fe=le),Pe.from==W&&(Pe.from!=Pe.to&&q!="before"?re=le:fe=le)}return re!=null?re:fe}var ze=function(){var P="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",W="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function q($t){return $t<=247?P.charAt($t):1424<=$t&&$t<=1524?"R":1536<=$t&&$t<=1785?W.charAt($t-1536):1774<=$t&&$t<=2220?"r":8192<=$t&&$t<=8203?"w":$t==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,le=/[stwN]/,Pe=/[LRr]/,ft=/[Lb1n]/,Tt=/[1n]/;function Qt($t,en,pn){this.level=$t,this.from=en,this.to=pn}return function($t,en){var pn=en=="ltr"?"L":"R";if($t.length==0||en=="ltr"&&!re.test($t))return!1;for(var Mn=$t.length,Fn=[],vi=0;vi<Mn;++vi)Fn.push(q($t.charCodeAt(vi)));for(var ji=0,Ji=pn;ji<Mn;++ji){var Qi=Fn[ji];Qi=="m"?Fn[ji]=Ji:Ji=Qi}for(var Gi=0,ga=pn;Gi<Mn;++Gi){var Ea=Fn[Gi];Ea=="1"&&ga=="r"?Fn[Gi]="n":Pe.test(Ea)&&(ga=Ea,Ea=="r"&&(Fn[Gi]="R"))}for(var ro=1,Va=Fn[0];ro<Mn-1;++ro){var xo=Fn[ro];xo=="+"&&Va=="1"&&Fn[ro+1]=="1"?Fn[ro]="1":xo==","&&Va==Fn[ro+1]&&(Va=="1"||Va=="n")&&(Fn[ro]=Va),Va=xo}for(var Po=0;Po<Mn;++Po){var is=Fn[Po];if(is==",")Fn[Po]="N";else if(is=="%"){var qo=void 0;for(qo=Po+1;qo<Mn&&Fn[qo]=="%";++qo);for(var Fs=Po&&Fn[Po-1]=="!"||qo<Mn&&Fn[qo]=="1"?"1":"N",sl=Po;sl<qo;++sl)Fn[sl]=Fs;Po=qo-1}}for(var Ss=0,ll=pn;Ss<Mn;++Ss){var Us=Fn[Ss];ll=="L"&&Us=="1"?Fn[Ss]="L":Pe.test(Us)&&(ll=Us)}for(var Rs=0;Rs<Mn;++Rs)if(le.test(Fn[Rs])){var Is=void 0;for(Is=Rs+1;Is<Mn&&le.test(Fn[Is]);++Is);for(var ps=(Rs?Fn[Rs-1]:pn)=="L",nl=(Is<Mn?Fn[Is]:pn)=="L",vu=ps==nl?ps?"L":"R":pn,Al=Rs;Al<Is;++Al)Fn[Al]=vu;Rs=Is-1}for(var _s=[],ml,Gs=0;Gs<Mn;)if(ft.test(Fn[Gs])){var tc=Gs;for(++Gs;Gs<Mn&&ft.test(Fn[Gs]);++Gs);_s.push(new Qt(0,tc,Gs))}else{var wa=Gs,hl=_s.length,_l=en=="rtl"?1:0;for(++Gs;Gs<Mn&&Fn[Gs]!="L";++Gs);for(var ls=wa;ls<Gs;)if(Tt.test(Fn[ls])){wa<ls&&(_s.splice(hl,0,new Qt(1,wa,ls)),hl+=_l);var Hl=ls;for(++ls;ls<Gs&&Tt.test(Fn[ls]);++ls);_s.splice(hl,0,new Qt(2,Hl,ls)),hl+=_l,wa=ls}else++ls;wa<Gs&&_s.splice(hl,0,new Qt(1,wa,Gs))}return en=="ltr"&&(_s[0].level==1&&(ml=$t.match(/^\s+/))&&(_s[0].from=ml[0].length,_s.unshift(new Qt(0,0,ml[0].length))),de(_s).level==1&&(ml=$t.match(/\s+$/))&&(de(_s).to-=ml[0].length,_s.push(new Qt(0,Mn-ml[0].length,Mn)))),en=="rtl"?_s.reverse():_s}}();function it(P,W){var q=P.order;return q==null&&(q=P.order=ze(P.text,W)),q}var et=[],Oe=function(W,q,re){if(W.addEventListener)W.addEventListener(q,re,!1);else if(W.attachEvent)W.attachEvent("on"+q,re);else{var le=W._handlers||(W._handlers={});le[q]=(le[q]||et).concat(re)}};function gt(P,W){return P._handlers&&P._handlers[W]||et}function Ge(P,W,q){if(P.removeEventListener)P.removeEventListener(W,q,!1);else if(P.detachEvent)P.detachEvent("on"+W,q);else{var re=P._handlers,le=re&&re[W];if(le){var Pe=V(le,q);Pe>-1&&(re[W]=le.slice(0,Pe).concat(le.slice(Pe+1)))}}}function wt(P,W){var q=gt(P,W);if(!q.length)return;for(var re=Array.prototype.slice.call(arguments,2),le=0;le<q.length;++le)q[le].apply(null,re)}function xt(P,W,q){return typeof W=="string"&&(W={type:W,preventDefault:function(){this.defaultPrevented=!0}}),wt(P,q||W.type,P,W),ie(W)||W.codemirrorIgnore}function Ct(P){var W=P._handlers&&P._handlers.cursorActivity;if(!W)return;for(var q=P.curOp.cursorActivityHandlers||(P.curOp.cursorActivityHandlers=[]),re=0;re<W.length;++re)V(q,W[re])==-1&&q.push(W[re])}function Dt(P,W){return gt(P,W).length>0}function Ht(P){P.prototype.on=function(W,q){Oe(this,W,q)},P.prototype.off=function(W,q){Ge(this,W,q)}}function Je(P){P.preventDefault?P.preventDefault():P.returnValue=!1}function ye(P){P.stopPropagation?P.stopPropagation():P.cancelBubble=!0}function ie(P){return P.defaultPrevented!=null?P.defaultPrevented:P.returnValue==!1}function bt(P){Je(P),ye(P)}function qe(P){return P.target||P.srcElement}function me(P){var W=P.which;return W==null&&(P.button&1?W=1:P.button&2?W=3:P.button&4&&(W=2)),f&&P.ctrlKey&&W==1&&(W=3),W}var Rt=function(){if(h&&c<9)return!1;var P=O("div");return"draggable"in P||"dragDrop"in P}(),er;function ct(P){if(er==null){var W=O("span","\u200B");_(P,O("span",[W,document.createTextNode("x")])),P.firstChild.offsetHeight!=0&&(er=W.offsetWidth<=1&&W.offsetHeight>2&&!(h&&c<8))}var q=er?O("span","\u200B"):O("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return q.setAttribute("cm-text",""),q}var zt;function sr(P){if(zt!=null)return zt;var W=_(P,document.createTextNode("A\u062EA")),q=D(W,0,1).getBoundingClientRect(),re=D(W,1,2).getBoundingClientRect();return b(P),!q||q.left==q.right?!1:zt=re.right-q.right<3}var Kr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(P){for(var W=0,q=[],re=P.length;W<=re;){var le=P.indexOf(`
|
|
|
`,W);le==-1&&(le=P.length);var Pe=P.slice(W,P.charAt(le-1)=="\r"?le-1:le),ft=Pe.indexOf("\r");ft!=-1?(q.push(Pe.slice(0,ft)),W+=ft+1):(q.push(Pe),W=le+1)}return q}:function(P){return P.split(/\r\n?|\n/)},ar=window.getSelection?function(P){try{return P.selectionStart!=P.selectionEnd}catch(W){return!1}}:function(P){var W;try{W=P.ownerDocument.selection.createRange()}catch(q){}return!W||W.parentElement()!=P?!1:W.compareEndPoints("StartToEnd",W)!=0},nr=function(){var P=O("div");return"oncopy"in P?!0:(P.setAttribute("oncopy","return;"),typeof P.oncopy=="function")}(),Lt=null;function st(P){if(Lt!=null)return Lt;var W=_(P,O("span","x")),q=W.getBoundingClientRect(),re=D(W,0,1).getBoundingClientRect();return Lt=Math.abs(q.left-re.left)>1}var Qe={},qt={};function Sr(P,W){arguments.length>2&&(W.dependencies=Array.prototype.slice.call(arguments,2)),Qe[P]=W}function Ar(P,W){qt[P]=W}function hr(P){if(typeof P=="string"&&qt.hasOwnProperty(P))P=qt[P];else if(P&&typeof P.name=="string"&&qt.hasOwnProperty(P.name)){var W=qt[P.name];typeof W=="string"&&(W={name:W}),P=Ke(W,P),P.name=W.name}else{if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(P))return hr("application/xml");if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(P))return hr("application/json")}return typeof P=="string"?{name:P}:P||{name:"null"}}function vn(P,W){W=hr(W);var q=Qe[W.name];if(!q)return vn(P,"text/plain");var re=q(P,W);if(Zr.hasOwnProperty(W.name)){var le=Zr[W.name];for(var Pe in le){if(!le.hasOwnProperty(Pe))continue;re.hasOwnProperty(Pe)&&(re["_"+Pe]=re[Pe]),re[Pe]=le[Pe]}}if(re.name=W.name,W.helperType&&(re.helperType=W.helperType),W.modeProps)for(var ft in W.modeProps)re[ft]=W.modeProps[ft];return re}var Zr={};function Ln(P,W){var q=Zr.hasOwnProperty(P)?Zr[P]:Zr[P]={};K(W,q)}function $e(P,W){if(W===!0)return W;if(P.copyState)return P.copyState(W);var q={};for(var re in W){var le=W[re];le instanceof Array&&(le=le.concat([])),q[re]=le}return q}function tt(P,W){for(var q;P.innerMode&&!(q=P.innerMode(W),!q||q.mode==P);)W=q.state,P=q.mode;return q||{mode:P,state:W}}function Ee(P,W,q){return P.startState?P.startState(W,q):!0}var Re=function(W,q,re){this.pos=this.start=0,this.string=W,this.tabSize=q||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};Re.prototype.eol=function(){return this.pos>=this.string.length},Re.prototype.sol=function(){return this.pos==this.lineStart},Re.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Re.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Re.prototype.eat=function(P){var W=this.string.charAt(this.pos),q;if(typeof P=="string"?q=W==P:q=W&&(P.test?P.test(W):P(W)),q)return++this.pos,W},Re.prototype.eatWhile=function(P){for(var W=this.pos;this.eat(P););return this.pos>W},Re.prototype.eatSpace=function(){for(var P=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>P},Re.prototype.skipToEnd=function(){this.pos=this.string.length},Re.prototype.skipTo=function(P){var W=this.string.indexOf(P,this.pos);if(W>-1)return this.pos=W,!0},Re.prototype.backUp=function(P){this.pos-=P},Re.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Re.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Re.prototype.match=function(P,W,q){if(typeof P=="string"){var re=function(Tt){return q?Tt.toLowerCase():Tt},le=this.string.substr(this.pos,P.length);if(re(le)==re(P))return W!==!1&&(this.pos+=P.length),!0}else{var Pe=this.string.slice(this.pos).match(P);return Pe&&Pe.index>0?null:(Pe&&W!==!1&&(this.pos+=Pe[0].length),Pe)}},Re.prototype.current=function(){return this.string.slice(this.start,this.pos)},Re.prototype.hideFirstChars=function(P,W){this.lineStart+=P;try{return W()}finally{this.lineStart-=P}},Re.prototype.lookAhead=function(P){var W=this.lineOracle;return W&&W.lookAhead(P)},Re.prototype.baseToken=function(){var P=this.lineOracle;return P&&P.baseToken(this.pos)};function je(P,W){if(W-=P.first,W<0||W>=P.size)throw new Error("There is no line "+(W+P.first)+" in the document.");for(var q=P;!q.lines;)for(var re=0;;++re){var le=q.children[re],Pe=le.chunkSize();if(W<Pe){q=le;break}W-=Pe}return q.lines[W]}function nt(P,W,q){var re=[],le=W.line;return P.iter(W.line,q.line+1,function(Pe){var ft=Pe.text;le==q.line&&(ft=ft.slice(0,q.ch)),le==W.line&&(ft=ft.slice(W.ch)),re.push(ft),++le}),re}function Vt(P,W,q){var re=[];return P.iter(W,q,function(le){re.push(le.text)}),re}function Bt(P,W){var q=W-P.height;if(q)for(var re=P;re;re=re.parent)re.height+=q}function Xt(P){if(P.parent==null)return null;for(var W=P.parent,q=V(W.lines,P),re=W.parent;re;W=re,re=re.parent)for(var le=0;!(re.children[le]==W);++le)q+=re.children[le].chunkSize();return q+W.first}function Rr(P,W){var q=P.first;e:do{for(var re=0;re<P.children.length;++re){var le=P.children[re],Pe=le.height;if(W<Pe){P=le;continue e}W-=Pe,q+=le.chunkSize()}return q}while(!P.lines);for(var ft=0;ft<P.lines.length;++ft){var Tt=P.lines[ft],Qt=Tt.height;if(W<Qt)break;W-=Qt}return q+ft}function Br(P,W){return W>=P.first&&W<P.first+P.size}function cn(P,W){return String(P.lineNumberFormatter(W+P.firstLineNumber))}function Ut(P,W,q){if(q===void 0&&(q=null),!(this instanceof Ut))return new Ut(P,W,q);this.line=P,this.ch=W,this.sticky=q}function pt(P,W){return P.line-W.line||P.ch-W.ch}function ut(P,W){return P.sticky==W.sticky&&pt(P,W)==0}function Jt(P){return Ut(P.line,P.ch)}function Zt(P,W){return pt(P,W)<0?W:P}function At(P,W){return pt(P,W)<0?P:W}function Pt(P,W){return Math.max(P.first,Math.min(W,P.first+P.size-1))}function vt(P,W){if(W.line<P.first)return Ut(P.first,0);var q=P.first+P.size-1;return W.line>q?Ut(q,je(P,q).text.length):Ft(W,je(P,W.line).text.length)}function Ft(P,W){var q=P.ch;return q==null||q>W?Ut(P.line,W):q<0?Ut(P.line,0):P}function gr(P,W){for(var q=[],re=0;re<W.length;re++)q[re]=vt(P,W[re]);return q}var or=function(W,q){this.state=W,this.lookAhead=q},ur=function(W,q,re,le){this.state=q,this.doc=W,this.line=re,this.maxLookAhead=le||0,this.baseTokens=null,this.baseTokenPos=1};ur.prototype.lookAhead=function(P){var W=this.doc.getLine(this.line+P);return W!=null&&P>this.maxLookAhead&&(this.maxLookAhead=P),W},ur.prototype.baseToken=function(P){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=P;)this.baseTokenPos+=2;var W=this.baseTokens[this.baseTokenPos+1];return{type:W&&W.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-P}},ur.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ur.fromSaved=function(P,W,q){return W instanceof or?new ur(P,$e(P.mode,W.state),q,W.lookAhead):new ur(P,$e(P.mode,W),q)},ur.prototype.save=function(P){var W=P!==!1?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new or(W,this.maxLookAhead):W};function Yr(P,W,q,re){var le=[P.state.modeGen],Pe={};Ce(P,W.text,P.doc.mode,q,function($t,en){return le.push($t,en)},Pe,re);for(var ft=q.state,Tt=function(en){q.baseTokens=le;var pn=P.state.overlays[en],Mn=1,Fn=0;q.state=!0,Ce(P,W.text,pn.mode,q,function(vi,ji){for(var Ji=Mn;Fn<vi;){var Qi=le[Mn];Qi>vi&&le.splice(Mn,1,vi,le[Mn+1],Qi),Mn+=2,Fn=Math.min(vi,Qi)}if(!ji)return;if(pn.opaque)le.splice(Ji,Mn-Ji,vi,"overlay "+ji),Mn=Ji+2;else for(;Ji<Mn;Ji+=2){var Gi=le[Ji+1];le[Ji+1]=(Gi?Gi+" ":"")+"overlay "+ji}},Pe),q.state=ft,q.baseTokens=null,q.baseTokenPos=1},Qt=0;Qt<P.state.overlays.length;++Qt)Tt(Qt);return{styles:le,classes:Pe.bgClass||Pe.textClass?Pe:null}}function Jr(P,W,q){if(!W.styles||W.styles[0]!=P.state.modeGen){var re=Tn(P,Xt(W)),le=W.text.length>P.options.maxHighlightLength&&$e(P.doc.mode,re.state),Pe=Yr(P,W,re);le&&(re.state=le),W.stateAfter=re.save(!le),W.styles=Pe.styles,Pe.classes?W.styleClasses=Pe.classes:W.styleClasses&&(W.styleClasses=null),q===P.doc.highlightFrontier&&(P.doc.modeFrontier=Math.max(P.doc.modeFrontier,++P.doc.highlightFrontier))}return W.styles}function Tn(P,W,q){var re=P.doc,le=P.display;if(!re.mode.startState)return new ur(re,!0,W);var Pe=ke(P,W,q),ft=Pe>re.first&&je(re,Pe-1).stateAfter,Tt=ft?ur.fromSaved(re,ft,Pe):new ur(re,Ee(re.mode),Pe);return re.iter(Pe,W,function(Qt){Dn(P,Qt.text,Tt);var $t=Tt.line;Qt.stateAfter=$t==W-1||$t%5==0||$t>=le.viewFrom&&$t<le.viewTo?Tt.save():null,Tt.nextLine()}),q&&(re.modeFrontier=Tt.line),Tt}function Dn(P,W,q,re){var le=P.doc.mode,Pe=new Re(W,P.options.tabSize,q);for(Pe.start=Pe.pos=re||0,W==""&&zn(le,q.state);!Pe.eol();)qn(le,Pe,q.state),Pe.start=Pe.pos}function zn(P,W){if(P.blankLine)return P.blankLine(W);if(!P.innerMode)return;var q=tt(P,W);if(q.mode.blankLine)return q.mode.blankLine(q.state)}function qn(P,W,q,re){for(var le=0;le<10;le++){re&&(re[0]=tt(P,q).mode);var Pe=P.token(W,q);if(W.pos>W.start)return Pe}throw new Error("Mode "+P.name+" failed to advance stream.")}var Ai=function(W,q,re){this.start=W.start,this.end=W.pos,this.string=W.current(),this.type=q||null,this.state=re};function Mi(P,W,q,re){var le=P.doc,Pe=le.mode,ft;W=vt(le,W);var Tt=je(le,W.line),Qt=Tn(P,W.line,q),$t=new Re(Tt.text,P.options.tabSize,Qt),en;for(re&&(en=[]);(re||$t.pos<W.ch)&&!$t.eol();)$t.start=$t.pos,ft=qn(Pe,$t,Qt.state),re&&en.push(new Ai($t,ft,$e(le.mode,Qt.state)));return re?en:new Ai($t,ft,Qt.state)}function Ye(P,W){if(P)for(;;){var q=P.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!q)break;P=P.slice(0,q.index)+P.slice(q.index+q[0].length);var re=q[1]?"bgClass":"textClass";W[re]==null?W[re]=q[2]:new RegExp("(?:^|\\s)"+q[2]+"(?:$|\\s)").test(W[re])||(W[re]+=" "+q[2])}return P}function Ce(P,W,q,re,le,Pe,ft){var Tt=q.flattenSpans;Tt==null&&(Tt=P.options.flattenSpans);var Qt=0,$t=null,en=new Re(W,P.options.tabSize,re),pn,Mn=P.options.addModeClass&&[null];for(W==""&&Ye(zn(q,re.state),Pe);!en.eol();){if(en.pos>P.options.maxHighlightLength?(Tt=!1,ft&&Dn(P,W,re,en.pos),en.pos=W.length,pn=null):pn=Ye(qn(q,en,re.state,Mn),Pe),Mn){var Fn=Mn[0].name;Fn&&(pn="m-"+(pn?Fn+" "+pn:Fn))}if(!Tt||$t!=pn){for(;Qt<en.start;)Qt=Math.min(en.start,Qt+5e3),le(Qt,$t);$t=pn}en.start=en.pos}for(;Qt<en.pos;){var vi=Math.min(en.pos,Qt+5e3);le(vi,$t),Qt=vi}}function ke(P,W,q){for(var re,le,Pe=P.doc,ft=q?-1:W-(P.doc.mode.innerMode?1e3:100),Tt=W;Tt>ft;--Tt){if(Tt<=Pe.first)return Pe.first;var Qt=je(Pe,Tt-1),$t=Qt.stateAfter;if($t&&(!q||Tt+($t instanceof or?$t.lookAhead:0)<=Pe.modeFrontier))return Tt;var en=U(Qt.text,null,P.options.tabSize);(le==null||re>en)&&(le=Tt-1,re=en)}return le}function Fe(P,W){if(P.modeFrontier=Math.min(P.modeFrontier,W),P.highlightFrontier<W-10)return;for(var q=P.first,re=W-1;re>q;re--){var le=je(P,re).stateAfter;if(le&&(!(le instanceof or)||re+le.lookAhead<W)){q=re+1;break}}P.highlightFrontier=Math.min(P.highlightFrontier,q)}var Ve=!1,We=!1;function Ze(){Ve=!0}function yt(){We=!0}function lt(P,W,q){this.marker=P,this.from=W,this.to=q}function kt(P,W){if(P)for(var q=0;q<P.length;++q){var re=P[q];if(re.marker==W)return re}}function wr(P,W){for(var q,re=0;re<P.length;++re)P[re]!=W&&(q||(q=[])).push(P[re]);return q}function pr(P,W){P.markedSpans=P.markedSpans?P.markedSpans.concat([W]):[W],W.marker.attachLine(P)}function _r(P,W,q){var re;if(P)for(var le=0;le<P.length;++le){var Pe=P[le],ft=Pe.marker,Tt=Pe.from==null||(ft.inclusiveLeft?Pe.from<=W:Pe.from<W);if(Tt||Pe.from==W&&ft.type=="bookmark"&&(!q||!Pe.marker.insertLeft)){var Qt=Pe.to==null||(ft.inclusiveRight?Pe.to>=W:Pe.to>W);(re||(re=[])).push(new lt(ft,Pe.from,Qt?null:Pe.to))}}return re}function Wt(P,W,q){var re;if(P)for(var le=0;le<P.length;++le){var Pe=P[le],ft=Pe.marker,Tt=Pe.to==null||(ft.inclusiveRight?Pe.to>=W:Pe.to>W);if(Tt||Pe.from==W&&ft.type=="bookmark"&&(!q||Pe.marker.insertLeft)){var Qt=Pe.from==null||(ft.inclusiveLeft?Pe.from<=W:Pe.from<W);(re||(re=[])).push(new lt(ft,Qt?null:Pe.from-W,Pe.to==null?null:Pe.to-W))}}return re}function un(P,W){if(W.full)return null;var q=Br(P,W.from.line)&&je(P,W.from.line).markedSpans,re=Br(P,W.to.line)&&je(P,W.to.line).markedSpans;if(!q&&!re)return null;var le=W.from.ch,Pe=W.to.ch,ft=pt(W.from,W.to)==0,Tt=_r(q,le,ft),Qt=Wt(re,Pe,ft),$t=W.text.length==1,en=de(W.text).length+($t?le:0);if(Tt)for(var pn=0;pn<Tt.length;++pn){var Mn=Tt[pn];if(Mn.to==null){var Fn=kt(Qt,Mn.marker);Fn?$t&&(Mn.to=Fn.to==null?null:Fn.to+en):Mn.to=le}}if(Qt)for(var vi=0;vi<Qt.length;++vi){var ji=Qt[vi];if(ji.to!=null&&(ji.to+=en),ji.from==null){var Ji=kt(Tt,ji.marker);Ji||(ji.from=en,$t&&(Tt||(Tt=[])).push(ji))}else ji.from+=en,$t&&(Tt||(Tt=[])).push(ji)}Tt&&(Tt=ir(Tt)),Qt&&Qt!=Tt&&(Qt=ir(Qt));var Qi=[Tt];if(!$t){var Gi=W.text.length-2,ga;if(Gi>0&&Tt)for(var Ea=0;Ea<Tt.length;++Ea)Tt[Ea].to==null&&(ga||(ga=[])).push(new lt(Tt[Ea].marker,null,null));for(var ro=0;ro<Gi;++ro)Qi.push(ga);Qi.push(Qt)}return Qi}function ir(P){for(var W=0;W<P.length;++W){var q=P[W];q.from!=null&&q.from==q.to&&q.marker.clearWhenEmpty!==!1&&P.splice(W--,1)}return P.length?P:null}function Gr(P,W,q){var re=null;if(P.iter(W.line,q.line+1,function(Fn){if(Fn.markedSpans)for(var vi=0;vi<Fn.markedSpans.length;++vi){var ji=Fn.markedSpans[vi].marker;ji.readOnly&&(!re||V(re,ji)==-1)&&(re||(re=[])).push(ji)}}),!re)return null;for(var le=[{from:W,to:q}],Pe=0;Pe<re.length;++Pe)for(var ft=re[Pe],Tt=ft.find(0),Qt=0;Qt<le.length;++Qt){var $t=le[Qt];if(pt($t.to,Tt.from)<0||pt($t.from,Tt.to)>0)continue;var en=[Qt,1],pn=pt($t.from,Tt.from),Mn=pt($t.to,Tt.to);(pn<0||!ft.inclusiveLeft&&!pn)&&en.push({from:$t.from,to:Tt.from}),(Mn>0||!ft.inclusiveRight&&!Mn)&&en.push({from:Tt.to,to:$t.to}),le.splice.apply(le,en),Qt+=en.length-3}return le}function kr(P){var W=P.markedSpans;if(!W)return;for(var q=0;q<W.length;++q)W[q].marker.detachLine(P);P.markedSpans=null}function yr(P,W){if(!W)return;for(var q=0;q<W.length;++q)W[q].marker.attachLine(P);P.markedSpans=W}function En(P){return P.inclusiveLeft?-1:0}function kn(P){return P.inclusiveRight?1:0}function ii(P,W){var q=P.lines.length-W.lines.length;if(q!=0)return q;var re=P.find(),le=W.find(),Pe=pt(re.from,le.from)||En(P)-En(W);if(Pe)return-Pe;var ft=pt(re.to,le.to)||kn(P)-kn(W);return ft||W.id-P.id}function oi(P,W){var q=We&&P.markedSpans,re;if(q)for(var le=void 0,Pe=0;Pe<q.length;++Pe)le=q[Pe],le.marker.collapsed&&(W?le.from:le.to)==null&&(!re||ii(re,le.marker)<0)&&(re=le.marker);return re}function ei(P){return oi(P,!0)}function ci(P){return oi(P,!1)}function Pn(P,W){var q=We&&P.markedSpans,re;if(q)for(var le=0;le<q.length;++le){var Pe=q[le];Pe.marker.collapsed&&(Pe.from==null||Pe.from<W)&&(Pe.to==null||Pe.to>W)&&(!re||ii(re,Pe.marker)<0)&&(re=Pe.marker)}return re}function xi(P,W,q,re,le){var Pe=je(P,W),ft=We&&Pe.markedSpans;if(ft)for(var Tt=0;Tt<ft.length;++Tt){var Qt=ft[Tt];if(!Qt.marker.collapsed)continue;var $t=Qt.marker.find(0),en=pt($t.from,q)||En(Qt.marker)-En(le),pn=pt($t.to,re)||kn(Qt.marker)-kn(le);if(en>=0&&pn<=0||en<=0&&pn>=0)continue;if(en<=0&&(Qt.marker.inclusiveRight&&le.inclusiveLeft?pt($t.to,q)>=0:pt($t.to,q)>0)||en>=0&&(Qt.marker.inclusiveRight&&le.inclusiveLeft?pt($t.from,re)<=0:pt($t.from,re)<0))return!0}}function gn(P){for(var W;W=ei(P);)P=W.find(-1,!0).line;return P}function zr(P){for(var W;W=ci(P);)P=W.find(1,!0).line;return P}function Cn(P){for(var W,q;W=ci(P);)P=W.find(1,!0).line,(q||(q=[])).push(P);return q}function on(P,W){var q=je(P,W),re=gn(q);return q==re?W:Xt(re)}function li(P,W){if(W>P.lastLine())return W;var q=je(P,W),re;if(!ri(P,q))return W;for(;re=ci(q);)q=re.find(1,!0).line;return Xt(q)+1}function ri(P,W){var q=We&&W.markedSpans;if(q)for(var re=void 0,le=0;le<q.length;++le){if(re=q[le],!re.marker.collapsed)continue;if(re.from==null)return!0;if(re.marker.widgetNode)continue;if(re.from==0&&re.marker.inclusiveLeft&&wi(P,W,re))return!0}}function wi(P,W,q){if(q.to==null){var re=q.marker.find(1,!0);return wi(P,re.line,kt(re.line.markedSpans,q.marker))}if(q.marker.inclusiveRight&&q.to==W.text.length)return!0;for(var le=void 0,Pe=0;Pe<W.markedSpans.length;++Pe)if(le=W.markedSpans[Pe],le.marker.collapsed&&!le.marker.widgetNode&&le.from==q.to&&(le.to==null||le.to!=q.from)&&(le.marker.inclusiveLeft||q.marker.inclusiveRight)&&wi(P,W,le))return!0}function Gn(P){P=gn(P);for(var W=0,q=P.parent,re=0;re<q.lines.length;++re){var le=q.lines[re];if(le==P)break;W+=le.height}for(var Pe=q.parent;Pe;q=Pe,Pe=q.parent)for(var ft=0;ft<Pe.children.length;++ft){var Tt=Pe.children[ft];if(Tt==q)break;W+=Tt.height}return W}function ki(P){if(P.height==0)return 0;for(var W=P.text.length,q,re=P;q=ei(re);){var le=q.find(0,!0);re=le.from.line,W+=le.from.ch-le.to.ch}for(re=P;q=ci(re);){var Pe=q.find(0,!0);W-=re.text.length-Pe.from.ch,re=Pe.to.line,W+=re.text.length-Pe.to.ch}return W}function Jn(P){var W=P.display,q=P.doc;W.maxLine=je(q,q.first),W.maxLineLength=ki(W.maxLine),W.maxLineChanged=!0,q.iter(function(re){var le=ki(re);le>W.maxLineLength&&(W.maxLineLength=le,W.maxLine=re)})}var Pi=function(W,q,re){this.text=W,yr(this,q),this.height=re?re(this):1};Pi.prototype.lineNo=function(){return Xt(this)},Ht(Pi);function mn(P,W,q,re){P.text=W,P.stateAfter&&(P.stateAfter=null),P.styles&&(P.styles=null),P.order!=null&&(P.order=null),kr(P),yr(P,q);var le=re?re(P):1;le!=P.height&&Bt(P,le)}function Fr(P){P.parent=null,kr(P)}var An={},Un={};function Vn(P,W){if(!P||/^\s*$/.test(P))return null;var q=W.addModeClass?Un:An;return q[P]||(q[P]=P.replace(/\S+/g,"cm-$&"))}function ti(P,W){var q=L("span",null,null,a?"padding-right: .1px":null),re={pre:L("pre",[q],"CodeMirror-line"),content:q,col:0,pos:0,cm:P,trailingSpace:!1,splitSpaces:P.getOption("lineWrapping")};W.measure={};for(var le=0;le<=(W.rest?W.rest.length:0);le++){var Pe=le?W.rest[le-1]:W.line,ft=void 0;re.pos=0,re.addToken=fi,sr(P.display.measure)&&(ft=it(Pe,P.doc.direction))&&(re.addToken=Wi(re.addToken,ft)),re.map=[];var Tt=W!=P.display.externalMeasured&&Xt(Pe);ea(Pe,re,Jr(P,Pe,Tt)),Pe.styleClasses&&(Pe.styleClasses.bgClass&&(re.bgClass=R(Pe.styleClasses.bgClass,re.bgClass||"")),Pe.styleClasses.textClass&&(re.textClass=R(Pe.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(ct(P.display.measure))),le==0?(W.measure.map=re.map,W.measure.cache={}):((W.measure.maps||(W.measure.maps=[])).push(re.map),(W.measure.caches||(W.measure.caches=[])).push({}))}if(a){var Qt=re.content.lastChild;(/\bcm-tab\b/.test(Qt.className)||Qt.querySelector&&Qt.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return wt(P,"renderLine",P,W.line,re.pre),re.pre.className&&(re.textClass=R(re.pre.className,re.textClass||"")),re}function di(P){var W=O("span","\u2022","cm-invalidchar");return W.title="\\u"+P.charCodeAt(0).toString(16),W.setAttribute("aria-label",W.title),W}function fi(P,W,q,re,le,Pe,ft){if(!W)return;var Tt=P.splitSpaces?mi(W,P.trailingSpace):W,Qt=P.cm.state.specialChars,$t=!1,en;if(!Qt.test(W))P.col+=W.length,en=document.createTextNode(Tt),P.map.push(P.pos,P.pos+W.length,en),h&&c<9&&($t=!0),P.pos+=W.length;else{en=document.createDocumentFragment();for(var pn=0;;){Qt.lastIndex=pn;var Mn=Qt.exec(W),Fn=Mn?Mn.index-pn:W.length-pn;if(Fn){var vi=document.createTextNode(Tt.slice(pn,pn+Fn));h&&c<9?en.appendChild(O("span",[vi])):en.appendChild(vi),P.map.push(P.pos,P.pos+Fn,vi),P.col+=Fn,P.pos+=Fn}if(!Mn)break;pn+=Fn+1;var ji=void 0;if(Mn[0]==" "){var Ji=P.cm.options.tabSize,Qi=Ji-P.col%Ji;ji=en.appendChild(O("span",Ne(Qi),"cm-tab")),ji.setAttribute("role","presentation"),ji.setAttribute("cm-text"," "),P.col+=Qi}else Mn[0]=="\r"||Mn[0]==`
|
|
|
`?(ji=en.appendChild(O("span",Mn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ji.setAttribute("cm-text",Mn[0]),P.col+=1):(ji=P.cm.options.specialCharPlaceholder(Mn[0]),ji.setAttribute("cm-text",Mn[0]),h&&c<9?en.appendChild(O("span",[ji])):en.appendChild(ji),P.col+=1);P.map.push(P.pos,P.pos+1,ji),P.pos++}}if(P.trailingSpace=Tt.charCodeAt(W.length-1)==32,q||re||le||$t||Pe||ft){var Gi=q||"";re&&(Gi+=re),le&&(Gi+=le);var ga=O("span",[en],Gi,Pe);if(ft)for(var Ea in ft)ft.hasOwnProperty(Ea)&&Ea!="style"&&Ea!="class"&&ga.setAttribute(Ea,ft[Ea]);return P.content.appendChild(ga)}P.content.appendChild(en)}function mi(P,W){if(P.length>1&&!/ /.test(P))return P;for(var q=W,re="",le=0;le<P.length;le++){var Pe=P.charAt(le);Pe==" "&&q&&(le==P.length-1||P.charCodeAt(le+1)==32)&&(Pe="\xA0"),re+=Pe,q=Pe==" "}return re}function Wi(P,W){return function(q,re,le,Pe,ft,Tt,Qt){le=le?le+" cm-force-border":"cm-force-border";for(var $t=q.pos,en=$t+re.length;;){for(var pn=void 0,Mn=0;Mn<W.length&&!(pn=W[Mn],pn.to>$t&&pn.from<=$t);Mn++);if(pn.to>=en)return P(q,re,le,Pe,ft,Tt,Qt);P(q,re.slice(0,pn.to-$t),le,Pe,null,Tt,Qt),Pe=null,re=re.slice(pn.to-$t),$t=pn.to}}}function na(P,W,q,re){var le=!re&&q.widgetNode;le&&P.map.push(P.pos,P.pos+W,le),!re&&P.cm.display.input.needsContentAttribute&&(le||(le=P.content.appendChild(document.createElement("span"))),le.setAttribute("cm-marker",q.id)),le&&(P.cm.display.input.setUneditable(le),P.content.appendChild(le)),P.pos+=W,P.trailingSpace=!1}function ea(P,W,q){var re=P.markedSpans,le=P.text,Pe=0;if(!re){for(var ft=1;ft<q.length;ft+=2)W.addToken(W,le.slice(Pe,Pe=q[ft]),Vn(q[ft+1],W.cm.options));return}for(var Tt=le.length,Qt=0,$t=1,en="",pn,Mn,Fn=0,vi,ji,Ji,Qi,Gi;;){if(Fn==Qt){vi=ji=Ji=Mn="",Gi=null,Qi=null,Fn=Infinity;for(var ga=[],Ea=void 0,ro=0;ro<re.length;++ro){var Va=re[ro],xo=Va.marker;if(xo.type=="bookmark"&&Va.from==Qt&&xo.widgetNode)ga.push(xo);else if(Va.from<=Qt&&(Va.to==null||Va.to>Qt||xo.collapsed&&Va.to==Qt&&Va.from==Qt)){if(Va.to!=null&&Va.to!=Qt&&Fn>Va.to&&(Fn=Va.to,ji=""),xo.className&&(vi+=" "+xo.className),xo.css&&(Mn=(Mn?Mn+";":"")+xo.css),xo.startStyle&&Va.from==Qt&&(Ji+=" "+xo.startStyle),xo.endStyle&&Va.to==Fn&&(Ea||(Ea=[])).push(xo.endStyle,Va.to),xo.title&&((Gi||(Gi={})).title=xo.title),xo.attributes)for(var Po in xo.attributes)(Gi||(Gi={}))[Po]=xo.attributes[Po];xo.collapsed&&(!Qi||ii(Qi.marker,xo)<0)&&(Qi=Va)}else Va.from>Qt&&Fn>Va.from&&(Fn=Va.from)}if(Ea)for(var is=0;is<Ea.length;is+=2)Ea[is+1]==Fn&&(ji+=" "+Ea[is]);if(!Qi||Qi.from==Qt)for(var qo=0;qo<ga.length;++qo)na(W,0,ga[qo]);if(Qi&&(Qi.from||0)==Qt){if(na(W,(Qi.to==null?Tt+1:Qi.to)-Qt,Qi.marker,Qi.from==null),Qi.to==null)return;Qi.to==Qt&&(Qi=!1)}}if(Qt>=Tt)break;for(var Fs=Math.min(Tt,Fn);;){if(en){var sl=Qt+en.length;if(!Qi){var Ss=sl>Fs?en.slice(0,Fs-Qt):en;W.addToken(W,Ss,pn?pn+vi:vi,Ji,Qt+Ss.length==Fn?ji:"",Mn,Gi)}if(sl>=Fs){en=en.slice(Fs-Qt),Qt=Fs;break}Qt=sl,Ji=""}en=le.slice(Pe,Pe=q[$t++]),pn=Vn(q[$t++],W.cm.options)}}}function Fa(P,W,q){this.line=W,this.rest=Cn(W),this.size=this.rest?Xt(de(this.rest))-q+1:1,this.node=this.text=null,this.hidden=ri(P,W)}function pi(P,W,q){for(var re=[],le,Pe=W;Pe<q;Pe=le){var ft=new Fa(P.doc,je(P.doc,Pe),Pe);le=Pe+ft.size,re.push(ft)}return re}var ln=null;function Li(P){ln?ln.ops.push(P):P.ownsGroup=ln={ops:[P],delayedCallbacks:[]}}function Zi(P){var W=P.delayedCallbacks,q=0;do{for(;q<W.length;q++)W[q].call(null);for(var re=0;re<P.ops.length;re++){var le=P.ops[re];if(le.cursorActivityHandlers)for(;le.cursorActivityCalled<le.cursorActivityHandlers.length;)le.cursorActivityHandlers[le.cursorActivityCalled++].call(null,le.cm)}}while(q<W.length)}function Fi(P,W){var q=P.ownsGroup;if(!q)return;try{Zi(q)}finally{ln=null,W(q)}}var ia=null;function Gt(P,W){var q=gt(P,W);if(!q.length)return;var re=Array.prototype.slice.call(arguments,2),le;ln?le=ln.delayedCallbacks:ia?le=ia:(le=ia=[],setTimeout(Xr,0));for(var Pe=function(Qt){le.push(function(){return q[Qt].apply(null,re)})},ft=0;ft<q.length;++ft)Pe(ft)}function Xr(){var P=ia;ia=null;for(var W=0;W<P.length;++W)P[W]()}function rn(P,W,q,re){for(var le=0;le<W.changes.length;le++){var Pe=W.changes[le];Pe=="text"?lr(P,W):Pe=="gutter"?Or(P,W,q,re):Pe=="class"?rr(P,W):Pe=="widget"&&Mr(P,W,re)}W.changes=null}function fn(P){return P.node==P.text&&(P.node=O("div",null,null,"position: relative"),P.text.parentNode&&P.text.parentNode.replaceChild(P.node,P.text),P.node.appendChild(P.text),h&&c<8&&(P.node.style.zIndex=2)),P.node}function Xe(P,W){var q=W.bgClass?W.bgClass+" "+(W.line.bgClass||""):W.line.bgClass;if(q&&(q+=" CodeMirror-linebackground"),W.background)q?W.background.className=q:(W.background.parentNode.removeChild(W.background),W.background=null);else if(q){var re=fn(W);W.background=re.insertBefore(O("div",null,q),re.firstChild),P.display.input.setUneditable(W.background)}}function _t(P,W){var q=P.display.externalMeasured;return q&&q.line==W.line?(P.display.externalMeasured=null,W.measure=q.measure,q.built):ti(P,W)}function lr(P,W){var q=W.text.className,re=_t(P,W);W.text==W.node&&(W.node=re.pre),W.text.parentNode.replaceChild(re.pre,W.text),W.text=re.pre,re.bgClass!=W.bgClass||re.textClass!=W.textClass?(W.bgClass=re.bgClass,W.textClass=re.textClass,rr(P,W)):q&&(W.text.className=q)}function rr(P,W){Xe(P,W),W.line.wrapClass?fn(W).className=W.line.wrapClass:W.node!=W.text&&(W.node.className="");var q=W.textClass?W.textClass+" "+(W.line.textClass||""):W.line.textClass;W.text.className=q||""}function Or(P,W,q,re){if(W.gutter&&(W.node.removeChild(W.gutter),W.gutter=null),W.gutterBackground&&(W.node.removeChild(W.gutterBackground),W.gutterBackground=null),W.line.gutterClass){var le=fn(W);W.gutterBackground=O("div",null,"CodeMirror-gutter-background "+W.line.gutterClass,"left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),P.display.input.setUneditable(W.gutterBackground),le.insertBefore(W.gutterBackground,W.text)}var Pe=W.line.gutterMarkers;if(P.options.lineNumbers||Pe){var ft=fn(W),Tt=W.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(P.display.input.setUneditable(Tt),ft.insertBefore(Tt,W.text),W.line.gutterClass&&(Tt.className+=" "+W.line.gutterClass),P.options.lineNumbers&&(!Pe||!Pe["CodeMirror-linenumbers"])&&(W.lineNumber=Tt.appendChild(O("div",cn(P.options,q),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+P.display.lineNumInnerWidth+"px"))),Pe)for(var Qt=0;Qt<P.display.gutterSpecs.length;++Qt){var $t=P.display.gutterSpecs[Qt].className,en=Pe.hasOwnProperty($t)&&Pe[$t];en&&Tt.appendChild(O("div",[en],"CodeMirror-gutter-elt","left: "+re.gutterLeft[$t]+"px; width: "+re.gutterWidth[$t]+"px"))}}}function Mr(P,W,q){W.alignable&&(W.alignable=null);for(var re=C("CodeMirror-linewidget"),le=W.node.firstChild,Pe=void 0;le;le=Pe)Pe=le.nextSibling,re.test(le.className)&&W.node.removeChild(le);nn(P,W,q)}function Wr(P,W,q,re){var le=_t(P,W);return W.text=W.node=le.pre,le.bgClass&&(W.bgClass=le.bgClass),le.textClass&&(W.textClass=le.textClass),rr(P,W),Or(P,W,q,re),nn(P,W,re),W.node}function nn(P,W,q){if(wn(P,W.line,W,q,!0),W.rest)for(var re=0;re<W.rest.length;re++)wn(P,W.rest[re],W,q,!1)}function wn(P,W,q,re,le){if(!W.widgets)return;for(var Pe=fn(q),ft=0,Tt=W.widgets;ft<Tt.length;++ft){var Qt=Tt[ft],$t=O("div",[Qt.node],"CodeMirror-linewidget"+(Qt.className?" "+Qt.className:""));Qt.handleMouseEvents||$t.setAttribute("cm-ignore-events","true"),On(Qt,$t,q,re),P.display.input.setUneditable($t),le&&Qt.above?Pe.insertBefore($t,q.gutter||q.text):Pe.appendChild($t),Gt(Qt,"redraw")}}function On(P,W,q,re){if(P.noHScroll){(q.alignable||(q.alignable=[])).push(W);var le=re.wrapperWidth;W.style.left=re.fixedPos+"px",P.coverGutter||(le-=re.gutterTotalWidth,W.style.paddingLeft=re.gutterTotalWidth+"px"),W.style.width=le+"px"}P.coverGutter&&(W.style.zIndex=5,W.style.position="relative",P.noHScroll||(W.style.marginLeft=-re.gutterTotalWidth+"px"))}function Rn(P){if(P.height!=null)return P.height;var W=P.doc.cm;if(!W)return 0;if(!N(document.body,P.node)){var q="position: relative;";P.coverGutter&&(q+="margin-left: -"+W.display.gutters.offsetWidth+"px;"),P.noHScroll&&(q+="width: "+W.display.wrapper.clientWidth+"px;"),_(W.display.measure,O("div",[P.node],null,q))}return P.height=P.node.parentNode.offsetHeight}function Nn(P,W){for(var q=qe(W);q!=P.wrapper;q=q.parentNode)if(!q||q.nodeType==1&&q.getAttribute("cm-ignore-events")=="true"||q.parentNode==P.sizer&&q!=P.mover)return!0}function yn(P){return P.lineSpace.offsetTop}function Sn(P){return P.mover.offsetHeight-P.lineSpace.offsetHeight}function _n(P){if(P.cachedPaddingH)return P.cachedPaddingH;var W=_(P.measure,O("pre","x","CodeMirror-line-like")),q=window.getComputedStyle?window.getComputedStyle(W):W.currentStyle,re={left:parseInt(q.paddingLeft),right:parseInt(q.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(P.cachedPaddingH=re),re}function Hn(P){return Y-P.display.nativeBarWidth}function Yn(P){return P.display.scroller.clientWidth-Hn(P)-P.display.barWidth}function Zn(P){return P.display.scroller.clientHeight-Hn(P)-P.display.barHeight}function yi(P,W,q){var re=P.options.lineWrapping,le=re&&Yn(P);if(!W.measure.heights||re&&W.measure.width!=le){var Pe=W.measure.heights=[];if(re){W.measure.width=le;for(var ft=W.text.firstChild.getClientRects(),Tt=0;Tt<ft.length-1;Tt++){var Qt=ft[Tt],$t=ft[Tt+1];Math.abs(Qt.bottom-$t.bottom)>2&&Pe.push((Qt.bottom+$t.top)/2-q.top)}}Pe.push(q.bottom-q.top)}}function gi(P,W,q){if(P.line==W)return{map:P.measure.map,cache:P.measure.cache};for(var re=0;re<P.rest.length;re++)if(P.rest[re]==W)return{map:P.measure.maps[re],cache:P.measure.caches[re]};for(var le=0;le<P.rest.length;le++)if(Xt(P.rest[le])>q)return{map:P.measure.maps[le],cache:P.measure.caches[le],before:!0}}function Di(P,W){W=gn(W);var q=Xt(W),re=P.display.externalMeasured=new Fa(P.doc,W,q);re.lineN=q;var le=re.built=ti(P,re);return re.text=le.pre,_(P.display.lineMeasure,le.pre),re}function Ui(P,W,q,re){return Ni(P,_i(P,W),q,re)}function Ei(P,W){if(W>=P.display.viewFrom&&W<P.display.viewTo)return P.display.view[Pa(P,W)];var q=P.display.externalMeasured;if(q&&W>=q.lineN&&W<q.lineN+q.size)return q}function _i(P,W){var q=Xt(W),re=Ei(P,q);re&&!re.text?re=null:re&&re.changes&&(rn(P,re,q,$i(P)),P.curOp.forceUpdate=!0),re||(re=Di(P,W));var le=gi(re,W,q);return{line:W,view:re,rect:null,map:le.map,cache:le.cache,before:le.before,hasHeights:!1}}function Ni(P,W,q,re,le){W.before&&(q=-1);var Pe=q+(re||""),ft;return W.cache.hasOwnProperty(Pe)?ft=W.cache[Pe]:(W.rect||(W.rect=W.view.text.getBoundingClientRect()),W.hasHeights||(yi(P,W.view,W.rect),W.hasHeights=!0),ft=fr(P,W,q,re),ft.bogus||(W.cache[Pe]=ft)),{left:ft.left,right:ft.right,top:le?ft.rtop:ft.top,bottom:le?ft.rbottom:ft.bottom}}var jn={left:0,right:0,top:0,bottom:0};function Ii(P,W,q){for(var re,le,Pe,ft,Tt,Qt,$t=0;$t<P.length;$t+=3)if(Tt=P[$t],Qt=P[$t+1],W<Tt?(le=0,Pe=1,ft="left"):W<Qt?(le=W-Tt,Pe=le+1):($t==P.length-3||W==Qt&&P[$t+3]>W)&&(Pe=Qt-Tt,le=Pe-1,W>=Qt&&(ft="right")),le!=null){if(re=P[$t+2],Tt==Qt&&q==(re.insertLeft?"left":"right")&&(ft=q),q=="left"&&le==0)for(;$t&&P[$t-2]==P[$t-3]&&P[$t-1].insertLeft;)re=P[($t-=3)+2],ft="left";if(q=="right"&&le==Qt-Tt)for(;$t<P.length-3&&P[$t+3]==P[$t+4]&&!P[$t+5].insertLeft;)re=P[($t+=3)+2],ft="right";break}return{node:re,start:le,end:Pe,collapse:ft,coverStart:Tt,coverEnd:Qt}}function Hi(P,W){var q=jn;if(W=="left")for(var re=0;re<P.length&&!((q=P[re]).left!=q.right);re++);else for(var le=P.length-1;le>=0&&!((q=P[le]).left!=q.right);le--);return q}function fr(P,W,q,re){var le=Ii(W.map,q,re),Pe=le.node,ft=le.start,Tt=le.end,Qt=le.collapse,$t;if(Pe.nodeType==3){for(var en=0;en<4;en++){for(;ft&&ue(W.line.text.charAt(le.coverStart+ft));)--ft;for(;le.coverStart+Tt<le.coverEnd&&ue(W.line.text.charAt(le.coverStart+Tt));)++Tt;if(h&&c<9&&ft==0&&Tt==le.coverEnd-le.coverStart?$t=Pe.parentNode.getBoundingClientRect():$t=Hi(D(Pe,ft,Tt).getClientRects(),re),$t.left||$t.right||ft==0)break;Tt=ft,ft=ft-1,Qt="right"}h&&c<11&&($t=Dr(P.display.measure,$t))}else{ft>0&&(Qt=re="right");var pn;P.options.lineWrapping&&(pn=Pe.getClientRects()).length>1?$t=pn[re=="right"?pn.length-1:0]:$t=Pe.getBoundingClientRect()}if(h&&c<9&&!ft&&(!$t||!$t.left&&!$t.right)){var Mn=Pe.parentNode.getClientRects()[0];Mn?$t={left:Mn.left,right:Mn.left+ta(P.display),top:Mn.top,bottom:Mn.bottom}:$t=jn}for(var Fn=$t.top-W.rect.top,vi=$t.bottom-W.rect.top,ji=(Fn+vi)/2,Ji=W.view.measure.heights,Qi=0;Qi<Ji.length-1&&!(ji<Ji[Qi]);Qi++);var Gi=Qi?Ji[Qi-1]:0,ga=Ji[Qi],Ea={left:(Qt=="right"?$t.right:$t.left)-W.rect.left,right:(Qt=="left"?$t.left:$t.right)-W.rect.left,top:Gi,bottom:ga};return!$t.left&&!$t.right&&(Ea.bogus=!0),P.options.singleCursorHeightPerLine||(Ea.rtop=Fn,Ea.rbottom=vi),Ea}function Dr(P,W){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!st(P))return W;var q=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:W.left*q,right:W.right*q,top:W.top*re,bottom:W.bottom*re}}function Qr(P){if(P.measure&&(P.measure.cache={},P.measure.heights=null,P.rest))for(var W=0;W<P.rest.length;W++)P.measure.caches[W]={}}function Nr(P){P.display.externalMeasure=null,b(P.display.lineMeasure);for(var W=0;W<P.display.view.length;W++)Qr(P.display.view[W])}function Yt(P){Nr(P),P.display.cachedCharWidth=P.display.cachedTextHeight=P.display.cachedPaddingH=null,P.options.lineWrapping||(P.display.maxLineChanged=!0),P.display.lineNumChars=null}function xr(){return i&&l?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function tr(){return i&&l?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function jr(P){var W=0;if(P.widgets)for(var q=0;q<P.widgets.length;++q)P.widgets[q].above&&(W+=Rn(P.widgets[q]));return W}function Ur(P,W,q,re,le){if(!le){var Pe=jr(W);q.top+=Pe,q.bottom+=Pe}if(re=="line")return q;re||(re="local");var ft=Gn(W);if(re=="local"?ft+=yn(P.display):ft-=P.display.viewOffset,re=="page"||re=="window"){var Tt=P.display.lineSpace.getBoundingClientRect();ft+=Tt.top+(re=="window"?0:tr());var Qt=Tt.left+(re=="window"?0:xr());q.left+=Qt,q.right+=Qt}return q.top+=ft,q.bottom+=ft,q}function dn(P,W,q){if(q=="div")return W;var re=W.left,le=W.top;if(q=="page")re-=xr(),le-=tr();else if(q=="local"||!q){var Pe=P.display.sizer.getBoundingClientRect();re+=Pe.left,le+=Pe.top}var ft=P.display.lineSpace.getBoundingClientRect();return{left:re-ft.left,top:le-ft.top}}function sn(P,W,q,re,le){return re||(re=je(P.doc,W.line)),Ur(P,re,Ui(P,re,W.ch,le),q)}function bn(P,W,q,re,le,Pe){re=re||je(P.doc,W.line),le||(le=_i(P,re));function ft(vi,ji){var Ji=Ni(P,le,vi,ji?"right":"left",Pe);return ji?Ji.left=Ji.right:Ji.right=Ji.left,Ur(P,re,Ji,q)}var Tt=it(re,P.doc.direction),Qt=W.ch,$t=W.sticky;if(Qt>=re.text.length?(Qt=re.text.length,$t="before"):Qt<=0&&(Qt=0,$t="after"),!Tt)return ft($t=="before"?Qt-1:Qt,$t=="before");function en(vi,ji,Ji){var Qi=Tt[ji],Gi=Qi.level==1;return ft(Ji?vi-1:vi,Gi!=Ji)}var pn=Te(Tt,Qt,$t),Mn=fe,Fn=en(Qt,pn,$t=="before");return Mn!=null&&(Fn.other=en(Qt,Mn,$t!="before")),Fn}function Bn(P,W){var q=0;W=vt(P.doc,W),P.options.lineWrapping||(q=ta(P.display)*W.ch);var re=je(P.doc,W.line),le=Gn(re)+yn(P.display);return{left:q,right:q,top:le,bottom:le+re.height}}function Xn(P,W,q,re,le){var Pe=Ut(P,W,q);return Pe.xRel=le,re&&(Pe.outside=re),Pe}function $n(P,W,q){var re=P.doc;if(q+=P.display.viewOffset,q<0)return Xn(re.first,0,null,-1,-1);var le=Rr(re,q),Pe=re.first+re.size-1;if(le>Pe)return Xn(re.first+re.size-1,je(re,Pe).text.length,null,1,1);W<0&&(W=0);for(var ft=je(re,le);;){var Tt=da(P,ft,le,W,q),Qt=Pn(ft,Tt.ch+(Tt.xRel>0||Tt.outside>0?1:0));if(!Qt)return Tt;var $t=Qt.find(1);if($t.line==le)return $t;ft=je(re,le=$t.line)}}function Ti(P,W,q,re){re-=jr(W);var le=W.text.length,Pe=xe(function(ft){return Ni(P,q,ft-1).bottom<=re},le,0);return le=xe(function(ft){return Ni(P,q,ft).top>re},Pe,le),{begin:Pe,end:le}}function Xi(P,W,q,re){q||(q=_i(P,W));var le=Ur(P,W,Ni(P,q,re),"line").top;return Ti(P,W,q,le)}function ua(P,W,q,re){return P.bottom<=q?!1:P.top>q?!0:(re?P.left:P.right)>W}function da(P,W,q,re,le){le-=Gn(W);var Pe=_i(P,W),ft=jr(W),Tt=0,Qt=W.text.length,$t=!0,en=it(W,P.doc.direction);if(en){var pn=(P.options.lineWrapping?ca:sa)(P,W,q,Pe,en,re,le);$t=pn.level!=1,Tt=$t?pn.from:pn.to-1,Qt=$t?pn.to:pn.from-1}var Mn=null,Fn=null,vi=xe(function(ro){var Va=Ni(P,Pe,ro);return Va.top+=ft,Va.bottom+=ft,ua(Va,re,le,!1)?(Va.top<=le&&Va.left<=re&&(Mn=ro,Fn=Va),!0):!1},Tt,Qt),ji,Ji,Qi=!1;if(Fn){var Gi=re-Fn.left<Fn.right-re,ga=Gi==$t;vi=Mn+(ga?0:1),Ji=ga?"after":"before",ji=Gi?Fn.left:Fn.right}else{!$t&&(vi==Qt||vi==Tt)&&vi++,Ji=vi==0?"after":vi==W.text.length?"before":Ni(P,Pe,vi-($t?1:0)).bottom+ft<=le==$t?"after":"before";var Ea=bn(P,Ut(q,vi,Ji),"line",W,Pe);ji=Ea.left,Qi=le<Ea.top?-1:le>=Ea.bottom?1:0}return vi=_e(W.text,vi,1),Xn(q,vi,Ji,Qi,re-ji)}function sa(P,W,q,re,le,Pe,ft){var Tt=xe(function(pn){var Mn=le[pn],Fn=Mn.level!=1;return ua(bn(P,Ut(q,Fn?Mn.to:Mn.from,Fn?"before":"after"),"line",W,re),Pe,ft,!0)},0,le.length-1),Qt=le[Tt];if(Tt>0){var $t=Qt.level!=1,en=bn(P,Ut(q,$t?Qt.from:Qt.to,$t?"after":"before"),"line",W,re);ua(en,Pe,ft,!0)&&en.top>ft&&(Qt=le[Tt-1])}return Qt}function ca(P,W,q,re,le,Pe,ft){var Tt=Ti(P,W,re,ft),Qt=Tt.begin,$t=Tt.end;/\s/.test(W.text.charAt($t-1))&&$t--;for(var en=null,pn=null,Mn=0;Mn<le.length;Mn++){var Fn=le[Mn];if(Fn.from>=$t||Fn.to<=Qt)continue;var vi=Fn.level!=1,ji=Ni(P,re,vi?Math.min($t,Fn.to)-1:Math.max(Qt,Fn.from)).right,Ji=ji<Pe?Pe-ji+1e9:ji-Pe;(!en||pn>Ji)&&(en=Fn,pn=Ji)}return en||(en=le[le.length-1]),en.from<Qt&&(en={from:Qt,to:en.to,level:en.level}),en.to>$t&&(en={from:en.from,to:$t,level:en.level}),en}var zi;function Ri(P){if(P.cachedTextHeight!=null)return P.cachedTextHeight;if(zi==null){zi=O("pre",null,"CodeMirror-line-like");for(var W=0;W<49;++W)zi.appendChild(document.createTextNode("x")),zi.appendChild(O("br"));zi.appendChild(document.createTextNode("x"))}_(P.measure,zi);var q=zi.offsetHeight/50;return q>3&&(P.cachedTextHeight=q),b(P.measure),q||1}function ta(P){if(P.cachedCharWidth!=null)return P.cachedCharWidth;var W=O("span","xxxxxxxxxx"),q=O("pre",[W],"CodeMirror-line-like");_(P.measure,q);var re=W.getBoundingClientRect(),le=(re.right-re.left)/10;return le>2&&(P.cachedCharWidth=le),le||10}function $i(P){for(var W=P.display,q={},re={},le=W.gutters.clientLeft,Pe=W.gutters.firstChild,ft=0;Pe;Pe=Pe.nextSibling,++ft){var Tt=P.display.gutterSpecs[ft].className;q[Tt]=Pe.offsetLeft+Pe.clientLeft+le,re[Tt]=Pe.clientWidth}return{fixedPos:Ca(W),gutterTotalWidth:W.gutters.offsetWidth,gutterLeft:q,gutterWidth:re,wrapperWidth:W.wrapper.clientWidth}}function Ca(P){return P.scroller.getBoundingClientRect().left-P.sizer.getBoundingClientRect().left}function Ma(P){var W=Ri(P.display),q=P.options.lineWrapping,re=q&&Math.max(5,P.display.scroller.clientWidth/ta(P.display)-3);return function(le){if(ri(P.doc,le))return 0;var Pe=0;if(le.widgets)for(var ft=0;ft<le.widgets.length;ft++)le.widgets[ft].height&&(Pe+=le.widgets[ft].height);return q?Pe+(Math.ceil(le.text.length/re)||1)*W:Pe+W}}function qi(P){var W=P.doc,q=Ma(P);W.iter(function(re){var le=q(re);le!=re.height&&Bt(re,le)})}function Yi(P,W,q,re){var le=P.display;if(!q&&qe(W).getAttribute("cm-not-content")=="true")return null;var Pe,ft,Tt=le.lineSpace.getBoundingClientRect();try{Pe=W.clientX-Tt.left,ft=W.clientY-Tt.top}catch(pn){return null}var Qt=$n(P,Pe,ft),$t;if(re&&Qt.xRel>0&&($t=je(P.doc,Qt.line).text).length==Qt.ch){var en=U($t,$t.length,P.options.tabSize)-$t.length;Qt=Ut(Qt.line,Math.max(0,Math.round((Pe-_n(P.display).left)/ta(P.display))-en))}return Qt}function Pa(P,W){if(W>=P.display.viewTo)return null;if(W-=P.display.viewFrom,W<0)return null;for(var q=P.display.view,re=0;re<q.length;re++)if(W-=q[re].size,W<0)return re}function ya(P,W,q,re){W==null&&(W=P.doc.first),q==null&&(q=P.doc.first+P.doc.size),re||(re=0);var le=P.display;if(re&&q<le.viewTo&&(le.updateLineNumbers==null||le.updateLineNumbers>W)&&(le.updateLineNumbers=W),P.curOp.viewChanged=!0,W>=le.viewTo)We&&on(P.doc,W)<le.viewTo&&la(P);else if(q<=le.viewFrom)We&&li(P.doc,q+re)>le.viewFrom?la(P):(le.viewFrom+=re,le.viewTo+=re);else if(W<=le.viewFrom&&q>=le.viewTo)la(P);else if(W<=le.viewFrom){var Pe=Ha(P,q,q+re,1);Pe?(le.view=le.view.slice(Pe.index),le.viewFrom=Pe.lineN,le.viewTo+=re):la(P)}else if(q>=le.viewTo){var ft=Ha(P,W,W,-1);ft?(le.view=le.view.slice(0,ft.index),le.viewTo=ft.lineN):la(P)}else{var Tt=Ha(P,W,W,-1),Qt=Ha(P,q,q+re,1);Tt&&Qt?(le.view=le.view.slice(0,Tt.index).concat(pi(P,Tt.lineN,Qt.lineN)).concat(le.view.slice(Qt.index)),le.viewTo+=re):la(P)}var $t=le.externalMeasured;$t&&(q<$t.lineN?$t.lineN+=re:W<$t.lineN+$t.size&&(le.externalMeasured=null))}function Ci(P,W,q){P.curOp.viewChanged=!0;var re=P.display,le=P.display.externalMeasured;if(le&&W>=le.lineN&&W<le.lineN+le.size&&(re.externalMeasured=null),W<re.viewFrom||W>=re.viewTo)return;var Pe=re.view[Pa(P,W)];if(Pe.node==null)return;var ft=Pe.changes||(Pe.changes=[]);V(ft,q)==-1&&ft.push(q)}function la(P){P.display.viewFrom=P.display.viewTo=P.doc.first,P.display.view=[],P.display.viewOffset=0}function Ha(P,W,q,re){var le=Pa(P,W),Pe,ft=P.display.view;if(!We||q==P.doc.first+P.doc.size)return{index:le,lineN:q};for(var Tt=P.display.viewFrom,Qt=0;Qt<le;Qt++)Tt+=ft[Qt].size;if(Tt!=W){if(re>0){if(le==ft.length-1)return null;Pe=Tt+ft[le].size-W,le++}else Pe=Tt-W;W+=Pe,q+=Pe}for(;on(P.doc,q)!=q;){if(le==(re<0?0:ft.length-1))return null;q+=re*ft[le-(re<0?1:0)].size,le+=re}return{index:le,lineN:q}}function ka(P,W,q){var re=P.display,le=re.view;le.length==0||W>=re.viewTo||q<=re.viewFrom?(re.view=pi(P,W,q),re.viewFrom=W):(re.viewFrom>W?re.view=pi(P,W,re.viewFrom).concat(re.view):re.viewFrom<W&&(re.view=re.view.slice(Pa(P,W))),re.viewFrom=W,re.viewTo<q?re.view=re.view.concat(pi(P,re.viewTo,q)):re.viewTo>q&&(re.view=re.view.slice(0,Pa(P,q)))),re.viewTo=q}function Aa(P){for(var W=P.display.view,q=0,re=0;re<W.length;re++){var le=W[re];!le.hidden&&(!le.node||le.changes)&&++q}return q}function Sa(P){P.display.input.showSelection(P.display.input.prepareSelection())}function Ya(P,W){W===void 0&&(W=!0);for(var q=P.doc,re={},le=re.cursors=document.createDocumentFragment(),Pe=re.selection=document.createDocumentFragment(),ft=0;ft<q.sel.ranges.length;ft++){if(!W&&ft==q.sel.primIndex)continue;var Tt=q.sel.ranges[ft];if(Tt.from().line>=P.display.viewTo||Tt.to().line<P.display.viewFrom)continue;var Qt=Tt.empty();(Qt||P.options.showCursorWhenSelecting)&&Ta(P,Tt.head,le),Qt||uo(P,Tt,Pe)}return re}function Ta(P,W,q){var re=bn(P,W,"div",null,null,!P.options.singleCursorHeightPerLine),le=q.appendChild(O("div","\xA0","CodeMirror-cursor"));if(le.style.left=re.left+"px",le.style.top=re.top+"px",le.style.height=Math.max(0,re.bottom-re.top)*P.options.cursorHeight+"px",re.other){var Pe=q.appendChild(O("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Pe.style.display="",Pe.style.left=re.other.left+"px",Pe.style.top=re.other.top+"px",Pe.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function Ga(P,W){return P.top-W.top||P.left-W.left}function uo(P,W,q){var re=P.display,le=P.doc,Pe=document.createDocumentFragment(),ft=_n(P.display),Tt=ft.left,Qt=Math.max(re.sizerWidth,Yn(P)-re.sizer.offsetLeft)-ft.right,$t=le.direction=="ltr";function en(ga,Ea,ro,Va){Ea<0&&(Ea=0),Ea=Math.round(Ea),Va=Math.round(Va),Pe.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+ga+`px;
|
|
|
top: `+Ea+"px; width: "+(ro==null?Qt-ga:ro)+`px;
|
|
|
height: `+(Va-Ea)+"px"))}function pn(ga,Ea,ro){var Va=je(le,ga),xo=Va.text.length,Po,is;function qo(Ss,ll){return sn(P,Ut(ga,Ss),"div",Va,ll)}function Fs(Ss,ll,Us){var Rs=Xi(P,Va,null,Ss),Is=ll=="ltr"==(Us=="after")?"left":"right",ps=Us=="after"?Rs.begin:Rs.end-(/\s/.test(Va.text.charAt(Rs.end-1))?2:1);return qo(ps,Is)[Is]}var sl=it(Va,le.direction);return oe(sl,Ea||0,ro==null?xo:ro,function(Ss,ll,Us,Rs){var Is=Us=="ltr",ps=qo(Ss,Is?"left":"right"),nl=qo(ll-1,Is?"right":"left"),vu=Ea==null&&Ss==0,Al=ro==null&&ll==xo,_s=Rs==0,ml=!sl||Rs==sl.length-1;if(nl.top-ps.top<=3){var Gs=($t?vu:Al)&&_s,tc=($t?Al:vu)&&ml,wa=Gs?Tt:(Is?ps:nl).left,hl=tc?Qt:(Is?nl:ps).right;en(wa,ps.top,hl-wa,ps.bottom)}else{var _l,ls,Hl,$o;Is?(_l=$t&&vu&&_s?Tt:ps.left,ls=$t?Qt:Fs(Ss,Us,"before"),Hl=$t?Tt:Fs(ll,Us,"after"),$o=$t&&Al&&ml?Qt:nl.right):(_l=$t?Fs(Ss,Us,"before"):Tt,ls=!$t&&vu&&_s?Qt:ps.right,Hl=!$t&&Al&&ml?Tt:nl.left,$o=$t?Fs(ll,Us,"after"):Qt),en(_l,ps.top,ls-_l,ps.bottom),ps.bottom<nl.top&&en(Tt,ps.bottom,null,nl.top),en(Hl,nl.top,$o-Hl,nl.bottom)}(!Po||Ga(ps,Po)<0)&&(Po=ps),Ga(nl,Po)<0&&(Po=nl),(!is||Ga(ps,is)<0)&&(is=ps),Ga(nl,is)<0&&(is=nl)}),{start:Po,end:is}}var Mn=W.from(),Fn=W.to();if(Mn.line==Fn.line)pn(Mn.line,Mn.ch,Fn.ch);else{var vi=je(le,Mn.line),ji=je(le,Fn.line),Ji=gn(vi)==gn(ji),Qi=pn(Mn.line,Mn.ch,Ji?vi.text.length+1:null).end,Gi=pn(Fn.line,Ji?0:null,Fn.ch).start;Ji&&(Qi.top<Gi.top-2?(en(Qi.right,Qi.top,null,Qi.bottom),en(Tt,Gi.top,Gi.left,Gi.bottom)):en(Qi.right,Qi.top,Gi.left-Qi.right,Qi.bottom)),Qi.bottom<Gi.top&&en(Tt,Qi.bottom,null,Gi.top)}q.appendChild(Pe)}function aa(P){if(!P.state.focused)return;var W=P.display;clearInterval(W.blinker);var q=!0;W.cursorDiv.style.visibility="",P.options.cursorBlinkRate>0?W.blinker=setInterval(function(){P.hasFocus()||$a(P),W.cursorDiv.style.visibility=(q=!q)?"":"hidden"},P.options.cursorBlinkRate):P.options.cursorBlinkRate<0&&(W.cursorDiv.style.visibility="hidden")}function ho(P){P.state.focused||(P.display.input.focus(),Na(P))}function Ua(P){P.state.delayingBlurEvent=!0,setTimeout(function(){P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1,$a(P))},100)}function Na(P,W){if(P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1),P.options.readOnly=="nocursor")return;P.state.focused||(wt(P,"focus",P,W),P.state.focused=!0,F(P.display.wrapper,"CodeMirror-focused"),!P.curOp&&P.display.selForContextMenu!=P.doc.sel&&(P.display.input.reset(),a&&setTimeout(function(){return P.display.input.reset(!0)},20)),P.display.input.receivedFocus()),aa(P)}function $a(P,W){if(P.state.delayingBlurEvent)return;P.state.focused&&(wt(P,"blur",P,W),P.state.focused=!1,w(P.display.wrapper,"CodeMirror-focused")),clearInterval(P.display.blinker),setTimeout(function(){P.state.focused||(P.display.shift=!1)},150)}function Ra(P){for(var W=P.display,q=W.lineDiv.offsetTop,re=0;re<W.view.length;re++){var le=W.view[re],Pe=P.options.lineWrapping,ft=void 0,Tt=0;if(le.hidden)continue;if(h&&c<8){var Qt=le.node.offsetTop+le.node.offsetHeight;ft=Qt-q,q=Qt}else{var $t=le.node.getBoundingClientRect();ft=$t.bottom-$t.top,!Pe&&le.text.firstChild&&(Tt=le.text.firstChild.getBoundingClientRect().right-$t.left-1)}var en=le.line.height-ft;if((en>.005||en<-.005)&&(Bt(le.line,ft),Ka(le.line),le.rest))for(var pn=0;pn<le.rest.length;pn++)Ka(le.rest[pn]);if(Tt>P.display.sizerWidth){var Mn=Math.ceil(Tt/ta(P.display));Mn>P.display.maxLineLength&&(P.display.maxLineLength=Mn,P.display.maxLine=le.line,P.display.maxLineChanged=!0)}}}function Ka(P){if(P.widgets)for(var W=0;W<P.widgets.length;++W){var q=P.widgets[W],re=q.node.parentNode;re&&(q.height=re.offsetHeight)}}function bo(P,W,q){var re=q&&q.top!=null?Math.max(0,q.top):P.scroller.scrollTop;re=Math.floor(re-yn(P));var le=q&&q.bottom!=null?q.bottom:re+P.wrapper.clientHeight,Pe=Rr(W,re),ft=Rr(W,le);if(q&&q.ensure){var Tt=q.ensure.from.line,Qt=q.ensure.to.line;Tt<Pe?(Pe=Tt,ft=Rr(W,Gn(je(W,Tt))+P.wrapper.clientHeight)):Math.min(Qt,W.lastLine())>=ft&&(Pe=Rr(W,Gn(je(W,Qt))-P.wrapper.clientHeight),ft=Qt)}return{from:Pe,to:Math.max(ft,Pe+1)}}function no(P,W){if(xt(P,"scrollCursorIntoView"))return;var q=P.display,re=q.sizer.getBoundingClientRect(),le=null;if(W.top+re.top<0?le=!0:W.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(le=!1),le!=null&&!e){var Pe=O("div","\u200B",null,`position: absolute;
|
|
|
top: `+(W.top-q.viewOffset-yn(P.display))+`px;
|
|
|
height: `+(W.bottom-W.top+Hn(P)+q.barHeight)+`px;
|
|
|
left: `+W.left+"px; width: "+Math.max(2,W.right-W.left)+"px;");P.display.lineSpace.appendChild(Pe),Pe.scrollIntoView(le),P.display.lineSpace.removeChild(Pe)}}function Co(P,W,q,re){re==null&&(re=0);var le;!P.options.lineWrapping&&W==q&&(W=W.ch?Ut(W.line,W.sticky=="before"?W.ch-1:W.ch,"after"):W,q=W.sticky=="before"?Ut(W.line,W.ch+1,"before"):W);for(var Pe=0;Pe<5;Pe++){var ft=!1,Tt=bn(P,W),Qt=!q||q==W?Tt:bn(P,q);le={left:Math.min(Tt.left,Qt.left),top:Math.min(Tt.top,Qt.top)-re,right:Math.max(Tt.left,Qt.left),bottom:Math.max(Tt.bottom,Qt.bottom)+re};var $t=po(P,le),en=P.doc.scrollTop,pn=P.doc.scrollLeft;if($t.scrollTop!=null&&(pa(P,$t.scrollTop),Math.abs(P.doc.scrollTop-en)>1&&(ft=!0)),$t.scrollLeft!=null&&(jo(P,$t.scrollLeft),Math.abs(P.doc.scrollLeft-pn)>1&&(ft=!0)),!ft)break}return le}function fo(P,W){var q=po(P,W);q.scrollTop!=null&&pa(P,q.scrollTop),q.scrollLeft!=null&&jo(P,q.scrollLeft)}function po(P,W){var q=P.display,re=Ri(P.display);W.top<0&&(W.top=0);var le=P.curOp&&P.curOp.scrollTop!=null?P.curOp.scrollTop:q.scroller.scrollTop,Pe=Zn(P),ft={};W.bottom-W.top>Pe&&(W.bottom=W.top+Pe);var Tt=P.doc.height+Sn(q),Qt=W.top<re,$t=W.bottom>Tt-re;if(W.top<le)ft.scrollTop=Qt?0:W.top;else if(W.bottom>le+Pe){var en=Math.min(W.top,($t?Tt:W.bottom)-Pe);en!=le&&(ft.scrollTop=en)}var pn=P.options.fixedGutter?0:q.gutters.offsetWidth,Mn=P.curOp&&P.curOp.scrollLeft!=null?P.curOp.scrollLeft:q.scroller.scrollLeft-pn,Fn=Yn(P)-q.gutters.offsetWidth,vi=W.right-W.left>Fn;return vi&&(W.right=W.left+Fn),W.left<10?ft.scrollLeft=0:W.left<Mn?ft.scrollLeft=Math.max(0,W.left+pn-(vi?0:10)):W.right>Fn+Mn-3&&(ft.scrollLeft=W.right+(vi?0:10)-Fn),ft}function Za(P,W){if(W==null)return;go(P),P.curOp.scrollTop=(P.curOp.scrollTop==null?P.doc.scrollTop:P.curOp.scrollTop)+W}function qa(P){go(P);var W=P.getCursor();P.curOp.scrollToPos={from:W,to:W,margin:P.options.cursorScrollMargin}}function Oa(P,W,q){(W!=null||q!=null)&&go(P),W!=null&&(P.curOp.scrollLeft=W),q!=null&&(P.curOp.scrollTop=q)}function oo(P,W){go(P),P.curOp.scrollToPos=W}function go(P){var W=P.curOp.scrollToPos;if(W){P.curOp.scrollToPos=null;var q=Bn(P,W.from),re=Bn(P,W.to);Bi(P,q,re,W.margin)}}function Bi(P,W,q,re){var le=po(P,{left:Math.min(W.left,q.left),top:Math.min(W.top,q.top)-re,right:Math.max(W.right,q.right),bottom:Math.max(W.bottom,q.bottom)+re});Oa(P,le.scrollLeft,le.scrollTop)}function pa(P,W){if(Math.abs(P.doc.scrollTop-W)<2)return;T||Jo(P,{top:W}),Do(P,W,!0),T&&Jo(P),Ro(P,100)}function Do(P,W,q){if(W=Math.max(0,Math.min(P.display.scroller.scrollHeight-P.display.scroller.clientHeight,W)),P.display.scroller.scrollTop==W&&!q)return;P.doc.scrollTop=W,P.display.scrollbars.setScrollTop(W),P.display.scroller.scrollTop!=W&&(P.display.scroller.scrollTop=W)}function jo(P,W,q,re){if(W=Math.max(0,Math.min(W,P.display.scroller.scrollWidth-P.display.scroller.clientWidth)),(q?W==P.doc.scrollLeft:Math.abs(P.doc.scrollLeft-W)<2)&&!re)return;P.doc.scrollLeft=W,gs(P),P.display.scroller.scrollLeft!=W&&(P.display.scroller.scrollLeft=W),P.display.scrollbars.setScrollLeft(W)}function Vo(P){var W=P.display,q=W.gutters.offsetWidth,re=Math.round(P.doc.height+Sn(P.display));return{clientHeight:W.scroller.clientHeight,viewHeight:W.wrapper.clientHeight,scrollWidth:W.scroller.scrollWidth,clientWidth:W.scroller.clientWidth,viewWidth:W.wrapper.clientWidth,barLeft:P.options.fixedGutter?q:0,docHeight:re,scrollHeight:re+Hn(P)+W.barHeight,nativeBarWidth:W.nativeBarWidth,gutterWidth:q}}var Yo=function(W,q,re){this.cm=re;var le=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Pe=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");le.tabIndex=Pe.tabIndex=-1,W(le),W(Pe),Oe(le,"scroll",function(){le.clientHeight&&q(le.scrollTop,"vertical")}),Oe(Pe,"scroll",function(){Pe.clientWidth&&q(Pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Yo.prototype.update=function(P){var W=P.scrollWidth>P.clientWidth+1,q=P.scrollHeight>P.clientHeight+1,re=P.nativeBarWidth;if(q){this.vert.style.display="block",this.vert.style.bottom=W?re+"px":"0";var le=P.viewHeight-(W?re:0);this.vert.firstChild.style.height=Math.max(0,P.scrollHeight-P.clientHeight+le)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(W){this.horiz.style.display="block",this.horiz.style.right=q?re+"px":"0",this.horiz.style.left=P.barLeft+"px";var Pe=P.viewWidth-P.barLeft-(q?re:0);this.horiz.firstChild.style.width=Math.max(0,P.scrollWidth-P.clientWidth+Pe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&P.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:q?re:0,bottom:W?re:0}},Yo.prototype.setScrollLeft=function(P){this.horiz.scrollLeft!=P&&(this.horiz.scrollLeft=P),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Yo.prototype.setScrollTop=function(P){this.vert.scrollTop!=P&&(this.vert.scrollTop=P),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Yo.prototype.zeroWidthHack=function(){var P=f&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=P,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new z,this.disableVert=new z},Yo.prototype.enableZeroWidthBar=function(P,W,q){P.style.pointerEvents="auto";function re(){var le=P.getBoundingClientRect(),Pe=q=="vert"?document.elementFromPoint(le.right-1,(le.top+le.bottom)/2):document.elementFromPoint((le.right+le.left)/2,le.bottom-1);Pe!=P?P.style.pointerEvents="none":W.set(1e3,re)}W.set(1e3,re)},Yo.prototype.clear=function(){var P=this.horiz.parentNode;P.removeChild(this.horiz),P.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function Da(P,W){W||(W=Vo(P));var q=P.display.barWidth,re=P.display.barHeight;Fo(P,W);for(var le=0;le<4&&q!=P.display.barWidth||re!=P.display.barHeight;le++)q!=P.display.barWidth&&P.options.lineWrapping&&Ra(P),Fo(P,Vo(P)),q=P.display.barWidth,re=P.display.barHeight}function Fo(P,W){var q=P.display,re=q.scrollbars.update(W);q.sizer.style.paddingRight=(q.barWidth=re.right)+"px",q.sizer.style.paddingBottom=(q.barHeight=re.bottom)+"px",q.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?(q.scrollbarFiller.style.display="block",q.scrollbarFiller.style.height=re.bottom+"px",q.scrollbarFiller.style.width=re.right+"px"):q.scrollbarFiller.style.display="",re.bottom&&P.options.coverGutterNextToScrollbar&&P.options.fixedGutter?(q.gutterFiller.style.display="block",q.gutterFiller.style.height=re.bottom+"px",q.gutterFiller.style.width=W.gutterWidth+"px"):q.gutterFiller.style.display=""}var cs={native:Yo,null:wo};function mo(P){P.display.scrollbars&&(P.display.scrollbars.clear(),P.display.scrollbars.addClass&&w(P.display.wrapper,P.display.scrollbars.addClass)),P.display.scrollbars=new cs[P.options.scrollbarStyle](function(W){P.display.wrapper.insertBefore(W,P.display.scrollbarFiller),Oe(W,"mousedown",function(){P.state.focused&&setTimeout(function(){return P.display.input.focus()},0)}),W.setAttribute("cm-not-content","true")},function(W,q){q=="horizontal"?jo(P,W):pa(P,W)},P),P.display.scrollbars.addClass&&F(P.display.wrapper,P.display.scrollbars.addClass)}var _o=0;function Xa(P){P.curOp={cm:P,viewChanged:!1,startHeight:P.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:++_o},Li(P.curOp)}function Qo(P){var W=P.curOp;W&&Fi(W,function(q){for(var re=0;re<q.ops.length;re++)q.ops[re].cm.curOp=null;il(q)})}function il(P){for(var W=P.ops,q=0;q<W.length;q++)Os(W[q]);for(var re=0;re<W.length;re++)as(W[re]);for(var le=0;le<W.length;le++)xs(W[le]);for(var Pe=0;Pe<W.length;Pe++)Ls(W[Pe]);for(var ft=0;ft<W.length;ft++)ys(W[ft])}function Os(P){var W=P.cm,q=W.display;Qs(W),P.updateMaxLine&&Jn(W),P.mustUpdate=P.viewChanged||P.forceUpdate||P.scrollTop!=null||P.scrollToPos&&(P.scrollToPos.from.line<q.viewFrom||P.scrollToPos.to.line>=q.viewTo)||q.maxLineChanged&&W.options.lineWrapping,P.update=P.mustUpdate&&new bi(W,P.mustUpdate&&{top:P.scrollTop,ensure:P.scrollToPos},P.forceUpdate)}function as(P){P.updatedDisplay=P.mustUpdate&&so(P.cm,P.update)}function xs(P){var W=P.cm,q=W.display;P.updatedDisplay&&Ra(W),P.barMeasure=Vo(W),q.maxLineChanged&&!W.options.lineWrapping&&(P.adjustWidthTo=Ui(W,q.maxLine,q.maxLine.text.length).left+3,W.display.sizerWidth=P.adjustWidthTo,P.barMeasure.scrollWidth=Math.max(q.scroller.clientWidth,q.sizer.offsetLeft+P.adjustWidthTo+Hn(W)+W.display.barWidth),P.maxScrollLeft=Math.max(0,q.sizer.offsetLeft+P.adjustWidthTo-Yn(W))),(P.updatedDisplay||P.selectionChanged)&&(P.preparedSelection=q.input.prepareSelection())}function Ls(P){var W=P.cm;P.adjustWidthTo!=null&&(W.display.sizer.style.minWidth=P.adjustWidthTo+"px",P.maxScrollLeft<W.doc.scrollLeft&&jo(W,Math.min(W.display.scroller.scrollLeft,P.maxScrollLeft),!0),W.display.maxLineChanged=!1);var q=P.focus&&P.focus==M();P.preparedSelection&&W.display.input.showSelection(P.preparedSelection,q),(P.updatedDisplay||P.startHeight!=W.doc.height)&&Da(W,P.barMeasure),P.updatedDisplay&&ms(W,P.barMeasure),P.selectionChanged&&aa(W),W.state.focused&&P.updateInput&&W.display.input.reset(P.typing),q&&ho(P.cm)}function ys(P){var W=P.cm,q=W.display,re=W.doc;if(P.updatedDisplay&&Ao(W,P.update),q.wheelStartX!=null&&(P.scrollTop!=null||P.scrollLeft!=null||P.scrollToPos)&&(q.wheelStartX=q.wheelStartY=null),P.scrollTop!=null&&Do(W,P.scrollTop,P.forceScroll),P.scrollLeft!=null&&jo(W,P.scrollLeft,!0,!0),P.scrollToPos){var le=Co(W,vt(re,P.scrollToPos.from),vt(re,P.scrollToPos.to),P.scrollToPos.margin);no(W,le)}var Pe=P.maybeHiddenMarkers,ft=P.maybeUnhiddenMarkers;if(Pe)for(var Tt=0;Tt<Pe.length;++Tt)Pe[Tt].lines.length||wt(Pe[Tt],"hide");if(ft)for(var Qt=0;Qt<ft.length;++Qt)ft[Qt].lines.length&&wt(ft[Qt],"unhide");q.wrapper.offsetHeight&&(re.scrollTop=W.display.scroller.scrollTop),P.changeObjs&&wt(W,"changes",W,P.changeObjs),P.update&&P.update.finish()}function Ho(P,W){if(P.curOp)return W();Xa(P);try{return W()}finally{Qo(P)}}function vo(P,W){return function(){if(P.curOp)return W.apply(P,arguments);Xa(P);try{return W.apply(P,arguments)}finally{Qo(P)}}}function es(P){return function(){if(this.curOp)return P.apply(this,arguments);Xa(this);try{return P.apply(this,arguments)}finally{Qo(this)}}}function Ko(P){return function(){var W=this.cm;if(!W||W.curOp)return P.apply(this,arguments);Xa(W);try{return P.apply(this,arguments)}finally{Qo(W)}}}function Ro(P,W){P.doc.highlightFrontier<P.display.viewTo&&P.state.highlight.set(W,B(Vr,P))}function Vr(P){var W=P.doc;if(W.highlightFrontier>=P.display.viewTo)return;var q=+new Date+P.options.workTime,re=Tn(P,W.highlightFrontier),le=[];W.iter(re.line,Math.min(W.first+W.size,P.display.viewTo+500),function(Pe){if(re.line>=P.display.viewFrom){var ft=Pe.styles,Tt=Pe.text.length>P.options.maxHighlightLength?$e(W.mode,re.state):null,Qt=Yr(P,Pe,re,!0);Tt&&(re.state=Tt),Pe.styles=Qt.styles;var $t=Pe.styleClasses,en=Qt.classes;en?Pe.styleClasses=en:$t&&(Pe.styleClasses=null);for(var pn=!ft||ft.length!=Pe.styles.length||$t!=en&&(!$t||!en||$t.bgClass!=en.bgClass||$t.textClass!=en.textClass),Mn=0;!pn&&Mn<ft.length;++Mn)pn=ft[Mn]!=Pe.styles[Mn];pn&&le.push(re.line),Pe.stateAfter=re.save(),re.nextLine()}else Pe.text.length<=P.options.maxHighlightLength&&Dn(P,Pe.text,re),Pe.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>q)return Ro(P,P.options.workDelay),!0}),W.highlightFrontier=re.line,W.modeFrontier=Math.max(W.modeFrontier,re.line),le.length&&Ho(P,function(){for(var Pe=0;Pe<le.length;Pe++)Ci(P,le[Pe],"text")})}var bi=function(W,q,re){var le=W.display;this.viewport=q,this.visible=bo(le,W.doc,q),this.editorIsHidden=!le.wrapper.offsetWidth,this.wrapperHeight=le.wrapper.clientHeight,this.wrapperWidth=le.wrapper.clientWidth,this.oldDisplayWidth=Yn(W),this.force=re,this.dims=$i(W),this.events=[]};bi.prototype.signal=function(P,W){Dt(P,W)&&this.events.push(arguments)},bi.prototype.finish=function(){for(var P=0;P<this.events.length;P++)wt.apply(null,this.events[P])};function Qs(P){var W=P.display;!W.scrollbarsClipped&&W.scroller.offsetWidth&&(W.nativeBarWidth=W.scroller.offsetWidth-W.scroller.clientWidth,W.heightForcer.style.height=Hn(P)+"px",W.sizer.style.marginBottom=-W.nativeBarWidth+"px",W.sizer.style.borderRightWidth=Hn(P)+"px",W.scrollbarsClipped=!0)}function Ns(P){if(P.hasFocus())return null;var W=M();if(!W||!N(P.display.lineDiv,W))return null;var q={activeElt:W};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&N(P.display.lineDiv,re.anchorNode)&&(q.anchorNode=re.anchorNode,q.anchorOffset=re.anchorOffset,q.focusNode=re.focusNode,q.focusOffset=re.focusOffset)}return q}function js(P){if(!P||!P.activeElt||P.activeElt==M())return;if(P.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(P.activeElt.nodeName)&&P.anchorNode&&N(document.body,P.anchorNode)&&N(document.body,P.focusNode)){var W=window.getSelection(),q=document.createRange();q.setEnd(P.anchorNode,P.anchorOffset),q.collapse(!1),W.removeAllRanges(),W.addRange(q),W.extend(P.focusNode,P.focusOffset)}}function so(P,W){var q=P.display,re=P.doc;if(W.editorIsHidden)return la(P),!1;if(!W.force&&W.visible.from>=q.viewFrom&&W.visible.to<=q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo)&&q.renderedView==q.view&&Aa(P)==0)return!1;ul(P)&&(la(P),W.dims=$i(P));var le=re.first+re.size,Pe=Math.max(W.visible.from-P.options.viewportMargin,re.first),ft=Math.min(le,W.visible.to+P.options.viewportMargin);q.viewFrom<Pe&&Pe-q.viewFrom<20&&(Pe=Math.max(re.first,q.viewFrom)),q.viewTo>ft&&q.viewTo-ft<20&&(ft=Math.min(le,q.viewTo)),We&&(Pe=on(P.doc,Pe),ft=li(P.doc,ft));var Tt=Pe!=q.viewFrom||ft!=q.viewTo||q.lastWrapHeight!=W.wrapperHeight||q.lastWrapWidth!=W.wrapperWidth;ka(P,Pe,ft),q.viewOffset=Gn(je(P.doc,q.viewFrom)),P.display.mover.style.top=q.viewOffset+"px";var Qt=Aa(P);if(!Tt&&Qt==0&&!W.force&&q.renderedView==q.view&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo))return!1;var $t=Ns(P);return Qt>4&&(q.lineDiv.style.display="none"),Uo(P,q.updateLineNumbers,W.dims),Qt>4&&(q.lineDiv.style.display=""),q.renderedView=q.view,js($t),b(q.cursorDiv),b(q.selectionDiv),q.gutters.style.height=q.sizer.style.minHeight=0,Tt&&(q.lastWrapHeight=W.wrapperHeight,q.lastWrapWidth=W.wrapperWidth,Ro(P,400)),q.updateLineNumbers=null,!0}function Ao(P,W){for(var q=W.viewport,re=!0;;re=!1){if(!re||!P.options.lineWrapping||W.oldDisplayWidth==Yn(P)){if(q&&q.top!=null&&(q={top:Math.min(P.doc.height+Sn(P.display)-Zn(P),q.top)}),W.visible=bo(P.display,P.doc,q),W.visible.from>=P.display.viewFrom&&W.visible.to<=P.display.viewTo)break}else re&&(W.visible=bo(P.display,P.doc,q));if(!so(P,W))break;Ra(P);var le=Vo(P);Sa(P),Da(P,le),ms(P,le),W.force=!1}W.signal(P,"update",P),(P.display.viewFrom!=P.display.reportedViewFrom||P.display.viewTo!=P.display.reportedViewTo)&&(W.signal(P,"viewportChange",P,P.display.viewFrom,P.display.viewTo),P.display.reportedViewFrom=P.display.viewFrom,P.display.reportedViewTo=P.display.viewTo)}function Jo(P,W){var q=new bi(P,W);if(so(P,q)){Ra(P),Ao(P,q);var re=Vo(P);Sa(P),Da(P,re),ms(P,re),q.finish()}}function Uo(P,W,q){var re=P.display,le=P.options.lineNumbers,Pe=re.lineDiv,ft=Pe.firstChild;function Tt(vi){var ji=vi.nextSibling;return a&&f&&P.display.currentWheelTarget==vi?vi.style.display="none":vi.parentNode.removeChild(vi),ji}for(var Qt=re.view,$t=re.viewFrom,en=0;en<Qt.length;en++){var pn=Qt[en];if(!pn.hidden)if(!pn.node||pn.node.parentNode!=Pe){var Mn=Wr(P,pn,$t,q);Pe.insertBefore(Mn,ft)}else{for(;ft!=pn.node;)ft=Tt(ft);var Fn=le&&W!=null&&W<=$t&&pn.lineNumber;pn.changes&&(V(pn.changes,"gutter")>-1&&(Fn=!1),rn(P,pn,$t,q)),Fn&&(b(pn.lineNumber),pn.lineNumber.appendChild(document.createTextNode(cn(P.options,$t)))),ft=pn.node.nextSibling}$t+=pn.size}for(;ft;)ft=Tt(ft)}function bs(P){var W=P.gutters.offsetWidth;P.sizer.style.marginLeft=W+"px"}function ms(P,W){P.display.sizer.style.minHeight=W.docHeight+"px",P.display.heightForcer.style.top=W.docHeight+"px",P.display.gutters.style.height=W.docHeight+P.display.barHeight+Hn(P)+"px"}function gs(P){var W=P.display,q=W.view;if(!W.alignWidgets&&(!W.gutters.firstChild||!P.options.fixedGutter))return;for(var re=Ca(W)-W.scroller.scrollLeft+P.doc.scrollLeft,le=W.gutters.offsetWidth,Pe=re+"px",ft=0;ft<q.length;ft++)if(!q[ft].hidden){P.options.fixedGutter&&(q[ft].gutter&&(q[ft].gutter.style.left=Pe),q[ft].gutterBackground&&(q[ft].gutterBackground.style.left=Pe));var Tt=q[ft].alignable;if(Tt)for(var Qt=0;Qt<Tt.length;Qt++)Tt[Qt].style.left=Pe}P.options.fixedGutter&&(W.gutters.style.left=re+le+"px")}function ul(P){if(!P.options.lineNumbers)return!1;var W=P.doc,q=cn(P.options,W.first+W.size-1),re=P.display;if(q.length!=re.lineNumChars){var le=re.measure.appendChild(O("div",[O("div",q)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Pe=le.firstChild.offsetWidth,ft=le.offsetWidth-Pe;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(Pe,re.lineGutter.offsetWidth-ft)+1,re.lineNumWidth=re.lineNumInnerWidth+ft,re.lineNumChars=re.lineNumInnerWidth?q.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",bs(P.display),!0}return!1}function Ms(P,W){for(var q=[],re=!1,le=0;le<P.length;le++){var Pe=P[le],ft=null;if(typeof Pe!="string"&&(ft=Pe.style,Pe=Pe.className),Pe=="CodeMirror-linenumbers")if(W)re=!0;else continue;q.push({className:Pe,style:ft})}return W&&!re&&q.push({className:"CodeMirror-linenumbers",style:null}),q}function Js(P){var W=P.gutters,q=P.gutterSpecs;b(W),P.lineGutter=null;for(var re=0;re<q.length;++re){var le=q[re],Pe=le.className,ft=le.style,Tt=W.appendChild(O("div",null,"CodeMirror-gutter "+Pe));ft&&(Tt.style.cssText=ft),Pe=="CodeMirror-linenumbers"&&(P.lineGutter=Tt,Tt.style.width=(P.lineNumWidth||1)+"px")}W.style.display=q.length?"":"none",bs(P)}function Hs(P){Js(P.display),ya(P),gs(P)}function Go(P,W,q,re){var le=this;this.input=q,le.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),le.scrollbarFiller.setAttribute("cm-not-content","true"),le.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),le.gutterFiller.setAttribute("cm-not-content","true"),le.lineDiv=L("div",null,"CodeMirror-code"),le.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),le.cursorDiv=O("div",null,"CodeMirror-cursors"),le.measure=O("div",null,"CodeMirror-measure"),le.lineMeasure=O("div",null,"CodeMirror-measure"),le.lineSpace=L("div",[le.measure,le.lineMeasure,le.selectionDiv,le.cursorDiv,le.lineDiv],null,"position: relative; outline: none");var Pe=L("div",[le.lineSpace],"CodeMirror-lines");le.mover=O("div",[Pe],null,"position: relative"),le.sizer=O("div",[le.mover],"CodeMirror-sizer"),le.sizerWidth=null,le.heightForcer=O("div",null,null,"position: absolute; height: "+Y+"px; width: 1px;"),le.gutters=O("div",null,"CodeMirror-gutters"),le.lineGutter=null,le.scroller=O("div",[le.sizer,le.heightForcer,le.gutters],"CodeMirror-scroll"),le.scroller.setAttribute("tabIndex","-1"),le.wrapper=O("div",[le.scrollbarFiller,le.gutterFiller,le.scroller],"CodeMirror"),h&&c<8&&(le.gutters.style.zIndex=-1,le.scroller.style.paddingRight=0),!a&&!(T&&u)&&(le.scroller.draggable=!0),P&&(P.appendChild?P.appendChild(le.wrapper):P(le.wrapper)),le.viewFrom=le.viewTo=W.first,le.reportedViewFrom=le.reportedViewTo=W.first,le.view=[],le.renderedView=null,le.externalMeasured=null,le.viewOffset=0,le.lastWrapHeight=le.lastWrapWidth=0,le.updateLineNumbers=null,le.nativeBarWidth=le.barHeight=le.barWidth=0,le.scrollbarsClipped=!1,le.lineNumWidth=le.lineNumInnerWidth=le.lineNumChars=null,le.alignWidgets=!1,le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.maxLine=null,le.maxLineLength=0,le.maxLineChanged=!1,le.wheelDX=le.wheelDY=le.wheelStartX=le.wheelStartY=null,le.shift=!1,le.selForContextMenu=null,le.activeTouch=null,le.gutterSpecs=Ms(re.gutters,re.lineNumbers),Js(le),q.init(le)}var Ps=0,St=null;h?St=-.53:T?St=15:i?St=-.7:t&&(St=-1/3);function Mt(P){var W=P.wheelDeltaX,q=P.wheelDeltaY;return W==null&&P.detail&&P.axis==P.HORIZONTAL_AXIS&&(W=P.detail),q==null&&P.detail&&P.axis==P.VERTICAL_AXIS?q=P.detail:q==null&&(q=P.wheelDelta),{x:W,y:q}}function tn(P){var W=Mt(P);return W.x*=St,W.y*=St,W}function In(P,W){var q=Mt(W),re=q.x,le=q.y,Pe=P.display,ft=Pe.scroller,Tt=ft.scrollWidth>ft.clientWidth,Qt=ft.scrollHeight>ft.clientHeight;if(!(re&&Tt||le&&Qt))return;if(le&&f&&a){e:for(var $t=W.target,en=Pe.view;$t!=ft;$t=$t.parentNode)for(var pn=0;pn<en.length;pn++)if(en[pn].node==$t){P.display.currentWheelTarget=$t;break e}}if(re&&!T&&!n&&St!=null){le&&Qt&&pa(P,Math.max(0,ft.scrollTop+le*St)),jo(P,Math.max(0,ft.scrollLeft+re*St)),(!le||le&&Qt)&&Je(W),Pe.wheelStartX=null;return}if(le&&St!=null){var Mn=le*St,Fn=P.doc.scrollTop,vi=Fn+Pe.wrapper.clientHeight;Mn<0?Fn=Math.max(0,Fn+Mn-50):vi=Math.min(P.doc.height,vi+Mn+50),Jo(P,{top:Fn,bottom:vi})}Ps<20&&(Pe.wheelStartX==null?(Pe.wheelStartX=ft.scrollLeft,Pe.wheelStartY=ft.scrollTop,Pe.wheelDX=re,Pe.wheelDY=le,setTimeout(function(){if(Pe.wheelStartX==null)return;var ji=ft.scrollLeft-Pe.wheelStartX,Ji=ft.scrollTop-Pe.wheelStartY,Qi=Ji&&Pe.wheelDY&&Ji/Pe.wheelDY||ji&&Pe.wheelDX&&ji/Pe.wheelDX;if(Pe.wheelStartX=Pe.wheelStartY=null,!Qi)return;St=(St*Ps+Qi)/(Ps+1),++Ps},200)):(Pe.wheelDX+=re,Pe.wheelDY+=le))}var mt=function(W,q){this.ranges=W,this.primIndex=q};mt.prototype.primary=function(){return this.ranges[this.primIndex]},mt.prototype.equals=function(P){if(P==this)return!0;if(P.primIndex!=this.primIndex||P.ranges.length!=this.ranges.length)return!1;for(var W=0;W<this.ranges.length;W++){var q=this.ranges[W],re=P.ranges[W];if(!ut(q.anchor,re.anchor)||!ut(q.head,re.head))return!1}return!0},mt.prototype.deepCopy=function(){for(var P=[],W=0;W<this.ranges.length;W++)P[W]=new ne(Jt(this.ranges[W].anchor),Jt(this.ranges[W].head));return new mt(P,this.primIndex)},mt.prototype.somethingSelected=function(){for(var P=0;P<this.ranges.length;P++)if(!this.ranges[P].empty())return!0;return!1},mt.prototype.contains=function(P,W){W||(W=P);for(var q=0;q<this.ranges.length;q++){var re=this.ranges[q];if(pt(W,re.from())>=0&&pt(P,re.to())<=0)return q}return-1};var ne=function(W,q){this.anchor=W,this.head=q};ne.prototype.from=function(){return At(this.anchor,this.head)},ne.prototype.to=function(){return Zt(this.anchor,this.head)},ne.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ae(P,W,q){var re=P&&P.options.selectionsMayTouch,le=W[q];W.sort(function(Mn,Fn){return pt(Mn.from(),Fn.from())}),q=V(W,le);for(var Pe=1;Pe<W.length;Pe++){var ft=W[Pe],Tt=W[Pe-1],Qt=pt(Tt.to(),ft.from());if(re&&!ft.empty()?Qt>0:Qt>=0){var $t=At(Tt.from(),ft.from()),en=Zt(Tt.to(),ft.to()),pn=Tt.empty()?ft.from()==ft.head:Tt.from()==Tt.head;Pe<=q&&--q,W.splice(--Pe,2,new ne(pn?en:$t,pn?$t:en))}}return new mt(W,q)}function we(P,W){return new mt([new ne(P,W||P)],0)}function Be(P){return P.text?Ut(P.from.line+P.text.length-1,de(P.text).length+(P.text.length==1?P.from.ch:0)):P.to}function dt(P,W){if(pt(P,W.from)<0)return P;if(pt(P,W.to)<=0)return Be(W);var q=P.line+W.text.length-(W.to.line-W.from.line)-1,re=P.ch;return P.line==W.to.line&&(re+=Be(W).ch-W.to.ch),Ut(q,re)}function Ot(P,W){for(var q=[],re=0;re<P.sel.ranges.length;re++){var le=P.sel.ranges[re];q.push(new ne(dt(le.anchor,W),dt(le.head,W)))}return Ae(P.cm,q,P.sel.primIndex)}function br(P,W,q){return P.line==W.line?Ut(q.line,P.ch-W.ch+q.ch):Ut(q.line+(P.line-W.line),P.ch)}function Lr(P,W,q){for(var re=[],le=Ut(P.first,0),Pe=le,ft=0;ft<W.length;ft++){var Tt=W[ft],Qt=br(Tt.from,le,Pe),$t=br(Be(Tt),le,Pe);if(le=Tt.to,Pe=$t,q=="around"){var en=P.sel.ranges[ft],pn=pt(en.head,en.anchor)<0;re[ft]=new ne(pn?$t:Qt,pn?Qt:$t)}else re[ft]=new ne(Qt,Qt)}return new mt(re,P.sel.primIndex)}function $r(P){P.doc.mode=vn(P.options,P.doc.modeOption),xn(P)}function xn(P){P.doc.iter(function(W){W.stateAfter&&(W.stateAfter=null),W.styles&&(W.styles=null)}),P.doc.modeFrontier=P.doc.highlightFrontier=P.doc.first,Ro(P,100),P.state.modeGen++,P.curOp&&ya(P)}function Wn(P,W){return W.from.ch==0&&W.to.ch==0&&de(W.text)==""&&(!P.cm||P.cm.options.wholeLineUpdateBefore)}function si(P,W,q,re){function le(Gi){return q?q[Gi]:null}function Pe(Gi,ga,Ea){mn(Gi,ga,Ea,re),Gt(Gi,"change",Gi,W)}function ft(Gi,ga){for(var Ea=[],ro=Gi;ro<ga;++ro)Ea.push(new Pi($t[ro],le(ro),re));return Ea}var Tt=W.from,Qt=W.to,$t=W.text,en=je(P,Tt.line),pn=je(P,Qt.line),Mn=de($t),Fn=le($t.length-1),vi=Qt.line-Tt.line;if(W.full)P.insert(0,ft(0,$t.length)),P.remove($t.length,P.size-$t.length);else if(Wn(P,W)){var ji=ft(0,$t.length-1);Pe(pn,pn.text,Fn),vi&&P.remove(Tt.line,vi),ji.length&&P.insert(Tt.line,ji)}else if(en==pn)if($t.length==1)Pe(en,en.text.slice(0,Tt.ch)+Mn+en.text.slice(Qt.ch),Fn);else{var Ji=ft(1,$t.length-1);Ji.push(new Pi(Mn+en.text.slice(Qt.ch),Fn,re)),Pe(en,en.text.slice(0,Tt.ch)+$t[0],le(0)),P.insert(Tt.line+1,Ji)}else if($t.length==1)Pe(en,en.text.slice(0,Tt.ch)+$t[0]+pn.text.slice(Qt.ch),le(0)),P.remove(Tt.line+1,vi);else{Pe(en,en.text.slice(0,Tt.ch)+$t[0],le(0)),Pe(pn,Mn+pn.text.slice(Qt.ch),Fn);var Qi=ft(1,$t.length-1);vi>1&&P.remove(Tt.line+1,vi-1),P.insert(Tt.line+1,Qi)}Gt(P,"change",P,W)}function Si(P,W,q){function re(le,Pe,ft){if(le.linked)for(var Tt=0;Tt<le.linked.length;++Tt){var Qt=le.linked[Tt];if(Qt.doc==Pe)continue;var $t=ft&&Qt.sharedHist;if(q&&!$t)continue;W(Qt.doc,$t),re(Qt.doc,le,$t)}}re(P,null,!0)}function Vi(P,W){if(W.cm)throw new Error("This document is already in use.");P.doc=W,W.cm=P,qi(P),$r(P),oa(P),P.options.lineWrapping||Jn(P),P.options.mode=W.modeOption,ya(P)}function oa(P){(P.doc.direction=="rtl"?F:w)(P.display.lineDiv,"CodeMirror-rtl")}function xa(P){Ho(P,function(){oa(P),ya(P)})}function eo(P){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=P||1}function to(P,W){var q={from:Jt(W.from),to:Be(W),text:nt(P,W.from,W.to)};return os(P,q,W.from.line,W.to.line+1),Si(P,function(re){return os(re,q,W.from.line,W.to.line+1)},!0),q}function io(P){for(;P.length;){var W=de(P);if(W.ranges)P.pop();else break}}function Oo(P,W){if(W)return io(P.done),de(P.done);if(P.done.length&&!de(P.done).ranges)return de(P.done);if(P.done.length>1&&!P.done[P.done.length-2].ranges)return P.done.pop(),de(P.done)}function yo(P,W,q,re){var le=P.history;le.undone.length=0;var Pe=+new Date,ft,Tt;if((le.lastOp==re||le.lastOrigin==W.origin&&W.origin&&(W.origin.charAt(0)=="+"&&le.lastModTime>Pe-(P.cm?P.cm.options.historyEventDelay:500)||W.origin.charAt(0)=="*"))&&(ft=Oo(le,le.lastOp==re)))Tt=de(ft.changes),pt(W.from,W.to)==0&&pt(W.from,Tt.to)==0?Tt.to=Be(W):ft.changes.push(to(P,W));else{var Qt=de(le.done);for((!Qt||!Qt.ranges)&&So(P.sel,le.done),ft={changes:[to(P,W)],generation:le.generation},le.done.push(ft);le.done.length>le.undoDepth;)le.done.shift(),le.done[0].ranges||le.done.shift()}le.done.push(q),le.generation=++le.maxGeneration,le.lastModTime=le.lastSelTime=Pe,le.lastOp=le.lastSelOp=re,le.lastOrigin=le.lastSelOrigin=W.origin,Tt||wt(P,"historyAdded")}function Mo(P,W,q,re){var le=W.charAt(0);return le=="*"||le=="+"&&q.ranges.length==re.ranges.length&&q.somethingSelected()==re.somethingSelected()&&new Date-P.history.lastSelTime<=(P.cm?P.cm.options.historyEventDelay:500)}function za(P,W,q,re){var le=P.history,Pe=re&&re.origin;q==le.lastSelOp||Pe&&le.lastSelOrigin==Pe&&(le.lastModTime==le.lastSelTime&&le.lastOrigin==Pe||Mo(P,Pe,de(le.done),W))?le.done[le.done.length-1]=W:So(W,le.done),le.lastSelTime=+new Date,le.lastSelOrigin=Pe,le.lastSelOp=q,re&&re.clearRedo!==!1&&io(le.undone)}function So(P,W){var q=de(W);q&&q.ranges&&q.equals(P)||W.push(P)}function os(P,W,q,re){var le=W["spans_"+P.id],Pe=0;P.iter(Math.max(P.first,q),Math.min(P.first+P.size,re),function(ft){ft.markedSpans&&((le||(le=W["spans_"+P.id]={}))[Pe]=ft.markedSpans),++Pe})}function ns(P){if(!P)return null;for(var W,q=0;q<P.length;++q)P[q].marker.explicitlyCleared?W||(W=P.slice(0,q)):W&&W.push(P[q]);return W?W.length?W:null:P}function Io(P,W){var q=W["spans_"+P.id];if(!q)return null;for(var re=[],le=0;le<W.text.length;++le)re.push(ns(q[le]));return re}function Xo(P,W){var q=Io(P,W),re=un(P,W);if(!q)return re;if(!re)return q;for(var le=0;le<q.length;++le){var Pe=q[le],ft=re[le];if(Pe&&ft){e:for(var Tt=0;Tt<ft.length;++Tt){for(var Qt=ft[Tt],$t=0;$t<Pe.length;++$t)if(Pe[$t].marker==Qt.marker)continue e;Pe.push(Qt)}}else ft&&(q[le]=ft)}return q}function Ds(P,W,q){for(var re=[],le=0;le<P.length;++le){var Pe=P[le];if(Pe.ranges){re.push(q?mt.prototype.deepCopy.call(Pe):Pe);continue}var ft=Pe.changes,Tt=[];re.push({changes:Tt});for(var Qt=0;Qt<ft.length;++Qt){var $t=ft[Qt],en=void 0;if(Tt.push({from:$t.from,to:$t.to,text:$t.text}),W)for(var pn in $t)(en=pn.match(/^spans_(\d+)$/))&&(V(W,Number(en[1]))>-1&&(de(Tt)[pn]=$t[pn],delete $t[pn]))}}return re}function Es(P,W,q,re){if(re){var le=P.anchor;if(q){var Pe=pt(W,le)<0;Pe!=pt(q,le)<0?(le=W,W=q):Pe!=pt(W,q)<0&&(W=q)}return new ne(le,W)}else return new ne(q||W,W)}function Wo(P,W,q,re,le){le==null&&(le=P.cm&&(P.cm.display.shift||P.extend)),Lo(P,new mt([Es(P.sel.primary(),W,q,le)],0),re)}function ws(P,W,q){for(var re=[],le=P.cm&&(P.cm.display.shift||P.extend),Pe=0;Pe<P.sel.ranges.length;Pe++)re[Pe]=Es(P.sel.ranges[Pe],W[Pe],null,le);var ft=Ae(P.cm,re,P.sel.primIndex);Lo(P,ft,q)}function ds(P,W,q,re){var le=P.sel.ranges.slice(0);le[W]=q,Lo(P,Ae(P.cm,le,P.sel.primIndex),re)}function yl(P,W,q,re){Lo(P,we(W,q),re)}function bl(P,W,q){var re={ranges:W.ranges,update:function(Pe){this.ranges=[];for(var ft=0;ft<Pe.length;ft++)this.ranges[ft]=new ne(vt(P,Pe[ft].anchor),vt(P,Pe[ft].head))},origin:q&&q.origin};return wt(P,"beforeSelectionChange",P,re),P.cm&&wt(P.cm,"beforeSelectionChange",P.cm,re),re.ranges!=W.ranges?Ae(P.cm,re.ranges,re.ranges.length-1):W}function Cs(P,W,q){var re=P.history.done,le=de(re);le&&le.ranges?(re[re.length-1]=W,ra(P,W,q)):Lo(P,W,q)}function Lo(P,W,q){ra(P,W,q),za(P,P.sel,P.cm?P.cm.curOp.id:NaN,q)}function ra(P,W,q){(Dt(P,"beforeSelectionChange")||P.cm&&Dt(P.cm,"beforeSelectionChange"))&&(W=bl(P,W,q));var re=q&&q.bias||(pt(W.primary().head,P.sel.primary().head)<0?-1:1);tl(P,Ws(P,W,re,!0)),!(q&&q.scroll===!1)&&P.cm&&qa(P.cm)}function tl(P,W){if(W.equals(P.sel))return;P.sel=W,P.cm&&(P.cm.curOp.updateInput=1,P.cm.curOp.selectionChanged=!0,Ct(P.cm)),Gt(P,"cursorActivity",P)}function Ks(P){tl(P,Ws(P,P.sel,null,!1))}function Ws(P,W,q,re){for(var le,Pe=0;Pe<W.ranges.length;Pe++){var ft=W.ranges[Pe],Tt=W.ranges.length==P.sel.ranges.length&&P.sel.ranges[Pe],Qt=ks(P,ft.anchor,Tt&&Tt.anchor,q,re),$t=ks(P,ft.head,Tt&&Tt.head,q,re);(le||Qt!=ft.anchor||$t!=ft.head)&&(le||(le=W.ranges.slice(0,Pe)),le[Pe]=new ne(Qt,$t))}return le?Ae(P.cm,le,W.primIndex):W}function hs(P,W,q,re,le){var Pe=je(P,W.line);if(Pe.markedSpans)for(var ft=0;ft<Pe.markedSpans.length;++ft){var Tt=Pe.markedSpans[ft],Qt=Tt.marker,$t="selectLeft"in Qt?!Qt.selectLeft:Qt.inclusiveLeft,en="selectRight"in Qt?!Qt.selectRight:Qt.inclusiveRight;if((Tt.from==null||($t?Tt.from<=W.ch:Tt.from<W.ch))&&(Tt.to==null||(en?Tt.to>=W.ch:Tt.to>W.ch))){if(le&&(wt(Qt,"beforeCursorEnter"),Qt.explicitlyCleared))if(Pe.markedSpans){--ft;continue}else break;if(!Qt.atomic)continue;if(q){var pn=Qt.find(re<0?1:-1),Mn=void 0;if((re<0?en:$t)&&(pn=al(P,pn,-re,pn&&pn.line==W.line?Pe:null)),pn&&pn.line==W.line&&(Mn=pt(pn,q))&&(re<0?Mn<0:Mn>0))return hs(P,pn,W,re,le)}var Fn=Qt.find(re<0?-1:1);return(re<0?$t:en)&&(Fn=al(P,Fn,re,Fn.line==W.line?Pe:null)),Fn?hs(P,Fn,W,re,le):null}}return W}function ks(P,W,q,re,le){var Pe=re||1,ft=hs(P,W,q,Pe,le)||!le&&hs(P,W,q,Pe,!0)||hs(P,W,q,-Pe,le)||!le&&hs(P,W,q,-Pe,!0);return ft||(P.cantEdit=!0,Ut(P.first,0))}function al(P,W,q,re){return q<0&&W.ch==0?W.line>P.first?vt(P,Ut(W.line-1)):null:q>0&&W.ch==(re||je(P,W.line)).text.length?W.line<P.first+P.size-1?Ut(W.line+1,0):null:new Ut(W.line,W.ch+q)}function Bs(P){P.setSelection(Ut(P.firstLine(),0),Ut(P.lastLine()),se)}function Xs(P,W,q){var re={canceled:!1,from:W.from,to:W.to,text:W.text,origin:W.origin,cancel:function(){return re.canceled=!0}};return q&&(re.update=function(le,Pe,ft,Tt){le&&(re.from=vt(P,le)),Pe&&(re.to=vt(P,Pe)),ft&&(re.text=ft),Tt!==void 0&&(re.origin=Tt)}),wt(P,"beforeChange",P,re),P.cm&&wt(P.cm,"beforeChange",P.cm,re),re.canceled?(P.cm&&(P.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function zs(P,W,q){if(P.cm){if(!P.cm.curOp)return vo(P.cm,zs)(P,W,q);if(P.cm.state.suppressEdits)return}if((Dt(P,"beforeChange")||P.cm&&Dt(P.cm,"beforeChange"))&&(W=Xs(P,W,!0),!W))return;var re=Ve&&!q&&Gr(P,W.from,W.to);if(re)for(var le=re.length-1;le>=0;--le)Ja(P,{from:re[le].from,to:re[le].to,text:le?[""]:W.text,origin:W.origin});else Ja(P,W)}function Ja(P,W){if(W.text.length==1&&W.text[0]==""&&pt(W.from,W.to)==0)return;var q=Ot(P,W);yo(P,W,q,P.cm?P.cm.curOp.id:NaN),ao(P,W,q,un(P,W));var re=[];Si(P,function(le,Pe){!Pe&&V(re,le.history)==-1&&(No(le.history,W),re.push(le.history)),ao(le,W,null,un(le,W))})}function ma(P,W,q){var re=P.cm&&P.cm.state.suppressEdits;if(re&&!q)return;for(var le=P.history,Pe,ft=P.sel,Tt=W=="undo"?le.done:le.undone,Qt=W=="undo"?le.undone:le.done,$t=0;$t<Tt.length&&!(Pe=Tt[$t],q?Pe.ranges&&!Pe.equals(P.sel):!Pe.ranges);$t++);if($t==Tt.length)return;for(le.lastOrigin=le.lastSelOrigin=null;;)if(Pe=Tt.pop(),Pe.ranges){if(So(Pe,Qt),q&&!Pe.equals(P.sel)){Lo(P,Pe,{clearRedo:!1});return}ft=Pe}else if(re){Tt.push(Pe);return}else break;var en=[];So(ft,Qt),Qt.push({changes:en,generation:le.generation}),le.generation=Pe.generation||++le.maxGeneration;for(var pn=Dt(P,"beforeChange")||P.cm&&Dt(P.cm,"beforeChange"),Mn=function(Ji){var Qi=Pe.changes[Ji];if(Qi.origin=W,pn&&!Xs(P,Qi,!1))return Tt.length=0,{};en.push(to(P,Qi));var Gi=Ji?Ot(P,Qi):de(Tt);ao(P,Qi,Gi,Xo(P,Qi)),!Ji&&P.cm&&P.cm.scrollIntoView({from:Qi.from,to:Be(Qi)});var ga=[];Si(P,function(Ea,ro){!ro&&V(ga,Ea.history)==-1&&(No(Ea.history,Qi),ga.push(Ea.history)),ao(Ea,Qi,null,Xo(Ea,Qi))})},Fn=Pe.changes.length-1;Fn>=0;--Fn){var vi=Mn(Fn);if(vi)return vi.v}}function Ba(P,W){if(W==0)return;if(P.first+=W,P.sel=new mt(Le(P.sel.ranges,function(le){return new ne(Ut(le.anchor.line+W,le.anchor.ch),Ut(le.head.line+W,le.head.ch))}),P.sel.primIndex),P.cm){ya(P.cm,P.first,P.first-W,W);for(var q=P.cm.display,re=q.viewFrom;re<q.viewTo;re++)Ci(P.cm,re,"gutter")}}function ao(P,W,q,re){if(P.cm&&!P.cm.curOp)return vo(P.cm,ao)(P,W,q,re);if(W.to.line<P.first){Ba(P,W.text.length-1-(W.to.line-W.from.line));return}if(W.from.line>P.lastLine())return;if(W.from.line<P.first){var le=W.text.length-1-(P.first-W.from.line);Ba(P,le),W={from:Ut(P.first,0),to:Ut(W.to.line+le,W.to.ch),text:[de(W.text)],origin:W.origin}}var Pe=P.lastLine();W.to.line>Pe&&(W={from:W.from,to:Ut(Pe,je(P,Pe).text.length),text:[W.text[0]],origin:W.origin}),W.removed=nt(P,W.from,W.to),q||(q=Ot(P,W)),P.cm?Zo(P.cm,W,re):si(P,W,re),ra(P,q,se),P.cantEdit&&ks(P,Ut(P.firstLine(),0))&&(P.cantEdit=!1)}function Zo(P,W,q){var re=P.doc,le=P.display,Pe=W.from,ft=W.to,Tt=!1,Qt=Pe.line;P.options.lineWrapping||(Qt=Xt(gn(je(re,Pe.line))),re.iter(Qt,ft.line+1,function(Fn){if(Fn==le.maxLine)return Tt=!0,!0})),re.sel.contains(W.from,W.to)>-1&&Ct(P),si(re,W,q,Ma(P)),P.options.lineWrapping||(re.iter(Qt,Pe.line+W.text.length,function(Fn){var vi=ki(Fn);vi>le.maxLineLength&&(le.maxLine=Fn,le.maxLineLength=vi,le.maxLineChanged=!0,Tt=!1)}),Tt&&(P.curOp.updateMaxLine=!0)),Fe(re,Pe.line),Ro(P,400);var $t=W.text.length-(ft.line-Pe.line)-1;W.full?ya(P):Pe.line==ft.line&&W.text.length==1&&!Wn(P.doc,W)?Ci(P,Pe.line,"text"):ya(P,Pe.line,ft.line+1,$t);var en=Dt(P,"changes"),pn=Dt(P,"change");if(pn||en){var Mn={from:Pe,to:ft,text:W.text,removed:W.removed,origin:W.origin};pn&&Gt(P,"change",P,Mn),en&&(P.curOp.changeObjs||(P.curOp.changeObjs=[])).push(Mn)}P.display.selForContextMenu=null}function Vs(P,W,q,re,le){var Pe;re||(re=q),pt(re,q)<0&&(Pe=[re,q],q=Pe[0],re=Pe[1]),typeof W=="string"&&(W=P.splitLines(W)),zs(P,{from:q,to:re,text:W,origin:le})}function vs(P,W,q,re){q<P.line?P.line+=re:W<P.line&&(P.line=W,P.ch=0)}function Ts(P,W,q,re){for(var le=0;le<P.length;++le){var Pe=P[le],ft=!0;if(Pe.ranges){Pe.copied||(Pe=P[le]=Pe.deepCopy(),Pe.copied=!0);for(var Tt=0;Tt<Pe.ranges.length;Tt++)vs(Pe.ranges[Tt].anchor,W,q,re),vs(Pe.ranges[Tt].head,W,q,re);continue}for(var Qt=0;Qt<Pe.changes.length;++Qt){var $t=Pe.changes[Qt];if(q<$t.from.line)$t.from=Ut($t.from.line+re,$t.from.ch),$t.to=Ut($t.to.line+re,$t.to.ch);else if(W<=$t.to.line){ft=!1;break}}ft||(P.splice(0,le+1),le=0)}}function No(P,W){var q=W.from.line,re=W.to.line,le=W.text.length-(re-q)-1;Ts(P.done,q,re,le),Ts(P.undone,q,re,le)}function To(P,W,q,re){var le=W,Pe=W;return typeof W=="number"?Pe=je(P,Pt(P,W)):le=Xt(W),le==null?null:(re(Pe,le)&&P.cm&&Ci(P.cm,le,q),Pe)}function ts(P){this.lines=P,this.parent=null;for(var W=0,q=0;q<P.length;++q)P[q].parent=this,W+=P[q].height;this.height=W}ts.prototype={chunkSize:function(){return this.lines.length},removeInner:function(W,q){for(var re=W,le=W+q;re<le;++re){var Pe=this.lines[re];this.height-=Pe.height,Fr(Pe),Gt(Pe,"delete")}this.lines.splice(W,q)},collapse:function(W){W.push.apply(W,this.lines)},insertInner:function(W,q,re){this.height+=re,this.lines=this.lines.slice(0,W).concat(q).concat(this.lines.slice(W));for(var le=0;le<q.length;++le)q[le].parent=this},iterN:function(W,q,re){for(var le=W+q;W<le;++W)if(re(this.lines[W]))return!0}};function Eo(P){this.children=P;for(var W=0,q=0,re=0;re<P.length;++re){var le=P[re];W+=le.chunkSize(),q+=le.height,le.parent=this}this.size=W,this.height=q,this.parent=null}Eo.prototype={chunkSize:function(){return this.size},removeInner:function(W,q){this.size-=q;for(var re=0;re<this.children.length;++re){var le=this.children[re],Pe=le.chunkSize();if(W<Pe){var ft=Math.min(q,Pe-W),Tt=le.height;if(le.removeInner(W,ft),this.height-=Tt-le.height,Pe==ft&&(this.children.splice(re--,1),le.parent=null),(q-=ft)==0)break;W=0}else W-=Pe}if(this.size-q<25&&(this.children.length>1||!(this.children[0]instanceof ts))){var Qt=[];this.collapse(Qt),this.children=[new ts(Qt)],this.children[0].parent=this}},collapse:function(W){for(var q=0;q<this.children.length;++q)this.children[q].collapse(W)},insertInner:function(W,q,re){this.size+=q.length,this.height+=re;for(var le=0;le<this.children.length;++le){var Pe=this.children[le],ft=Pe.chunkSize();if(W<=ft){if(Pe.insertInner(W,q,re),Pe.lines&&Pe.lines.length>50){for(var Tt=Pe.lines.length%25+25,Qt=Tt;Qt<Pe.lines.length;){var $t=new ts(Pe.lines.slice(Qt,Qt+=25));Pe.height-=$t.height,this.children.splice(++le,0,$t),$t.parent=this}Pe.lines=Pe.lines.slice(0,Tt),this.maybeSpill()}break}W-=ft}},maybeSpill:function(){if(this.children.length<=10)return;var W=this;do{var q=W.children.splice(W.children.length-5,5),re=new Eo(q);if(W.parent){W.size-=re.size,W.height-=re.height;var Pe=V(W.parent.children,W);W.parent.children.splice(Pe+1,0,re)}else{var le=new Eo(W.children);le.parent=W,W.children=[le,re],W=le}re.parent=W.parent}while(W.children.length>10);W.parent.maybeSpill()},iterN:function(W,q,re){for(var le=0;le<this.children.length;++le){var Pe=this.children[le],ft=Pe.chunkSize();if(W<ft){var Tt=Math.min(q,ft-W);if(Pe.iterN(W,Tt,re))return!0;if((q-=Tt)==0)break;W=0}else W-=ft}}};var Ys=function(W,q,re){if(re)for(var le in re)re.hasOwnProperty(le)&&(this[le]=re[le]);this.doc=W,this.node=q};Ys.prototype.clear=function(){var P=this.doc.cm,W=this.line.widgets,q=this.line,re=Xt(q);if(re==null||!W)return;for(var le=0;le<W.length;++le)W[le]==this&&W.splice(le--,1);W.length||(q.widgets=null);var Pe=Rn(this);Bt(q,Math.max(0,q.height-Pe)),P&&(Ho(P,function(){Wl(P,q,-Pe),Ci(P,re,"widget")}),Gt(P,"lineWidgetCleared",P,this,re))},Ys.prototype.changed=function(){var P=this,W=this.height,q=this.doc.cm,re=this.line;this.height=null;var le=Rn(this)-W;if(!le)return;ri(this.doc,re)||Bt(re,re.height+le),q&&Ho(q,function(){q.curOp.forceUpdate=!0,Wl(q,re,le),Gt(q,"lineWidgetChanged",q,P,Xt(re))})},Ht(Ys);function Wl(P,W,q){Gn(W)<(P.curOp&&P.curOp.scrollTop||P.doc.scrollTop)&&Za(P,q)}function wl(P,W,q,re){var le=new Ys(P,q,re),Pe=P.cm;return Pe&&le.noHScroll&&(Pe.display.alignWidgets=!0),To(P,W,"widget",function(ft){var Tt=ft.widgets||(ft.widgets=[]);if(le.insertAt==null?Tt.push(le):Tt.splice(Math.min(Tt.length-1,Math.max(0,le.insertAt)),0,le),le.line=ft,Pe&&!ri(P,ft)){var Qt=Gn(ft)<P.scrollTop;Bt(ft,ft.height+Rn(le)),Qt&&Za(Pe,le.height),Pe.curOp.forceUpdate=!0}return!0}),Pe&&Gt(Pe,"lineWidgetAdded",Pe,le,typeof W=="number"?W:Xt(W)),le}var Zl=0,cl=function(W,q){this.lines=[],this.type=q,this.doc=W,this.id=++Zl};cl.prototype.clear=function(){if(this.explicitlyCleared)return;var P=this.doc.cm,W=P&&!P.curOp;if(W&&Xa(P),Dt(this,"clear")){var q=this.find();q&&Gt(this,"clear",q.from,q.to)}for(var re=null,le=null,Pe=0;Pe<this.lines.length;++Pe){var ft=this.lines[Pe],Tt=kt(ft.markedSpans,this);P&&!this.collapsed?Ci(P,Xt(ft),"text"):P&&(Tt.to!=null&&(le=Xt(ft)),Tt.from!=null&&(re=Xt(ft))),ft.markedSpans=wr(ft.markedSpans,Tt),Tt.from==null&&this.collapsed&&!ri(this.doc,ft)&&P&&Bt(ft,Ri(P.display))}if(P&&this.collapsed&&!P.options.lineWrapping)for(var Qt=0;Qt<this.lines.length;++Qt){var $t=gn(this.lines[Qt]),en=ki($t);en>P.display.maxLineLength&&(P.display.maxLine=$t,P.display.maxLineLength=en,P.display.maxLineChanged=!0)}re!=null&&P&&this.collapsed&&ya(P,re,le+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,P&&Ks(P.doc)),P&&Gt(P,"markerCleared",P,this,re,le),W&&Qo(P),this.parent&&this.parent.clear()},cl.prototype.find=function(P,W){P==null&&this.type=="bookmark"&&(P=1);for(var q,re,le=0;le<this.lines.length;++le){var Pe=this.lines[le],ft=kt(Pe.markedSpans,this);if(ft.from!=null&&(q=Ut(W?Pe:Xt(Pe),ft.from),P==-1))return q;if(ft.to!=null&&(re=Ut(W?Pe:Xt(Pe),ft.to),P==1))return re}return q&&{from:q,to:re}},cl.prototype.changed=function(){var P=this,W=this.find(-1,!0),q=this,re=this.doc.cm;if(!W||!re)return;Ho(re,function(){var le=W.line,Pe=Xt(W.line),ft=Ei(re,Pe);if(ft&&(Qr(ft),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!ri(q.doc,le)&&q.height!=null){var Tt=q.height;q.height=null;var Qt=Rn(q)-Tt;Qt&&Bt(le,le.height+Qt)}Gt(re,"markerChanged",re,P)})},cl.prototype.attachLine=function(P){if(!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(!W.maybeHiddenMarkers||V(W.maybeHiddenMarkers,this)==-1)&&(W.maybeUnhiddenMarkers||(W.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(P)},cl.prototype.detachLine=function(P){if(this.lines.splice(V(this.lines,P),1),!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(W.maybeHiddenMarkers||(W.maybeHiddenMarkers=[])).push(this)}},Ht(cl);function Ol(P,W,q,re,le){if(re&&re.shared)return ku(P,W,q,re,le);if(P.cm&&!P.cm.curOp)return vo(P.cm,Ol)(P,W,q,re,le);var Pe=new cl(P,le),ft=pt(W,q);if(re&&K(re,Pe,!1),ft>0||ft==0&&Pe.clearWhenEmpty!==!1)return Pe;if(Pe.replacedWith&&(Pe.collapsed=!0,Pe.widgetNode=L("span",[Pe.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||Pe.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(Pe.widgetNode.insertLeft=!0)),Pe.collapsed){if(xi(P,W.line,W,q,Pe)||W.line!=q.line&&xi(P,q.line,W,q,Pe))throw new Error("Inserting collapsed marker partially overlapping an existing one");yt()}Pe.addToHistory&&yo(P,{from:W,to:q,origin:"markText"},P.sel,NaN);var Tt=W.line,Qt=P.cm,$t;if(P.iter(Tt,q.line+1,function(pn){Qt&&Pe.collapsed&&!Qt.options.lineWrapping&&gn(pn)==Qt.display.maxLine&&($t=!0),Pe.collapsed&&Tt!=W.line&&Bt(pn,0),pr(pn,new lt(Pe,Tt==W.line?W.ch:null,Tt==q.line?q.ch:null)),++Tt}),Pe.collapsed&&P.iter(W.line,q.line+1,function(pn){ri(P,pn)&&Bt(pn,0)}),Pe.clearOnEnter&&Oe(Pe,"beforeCursorEnter",function(){return Pe.clear()}),Pe.readOnly&&(Ze(),(P.history.done.length||P.history.undone.length)&&P.clearHistory()),Pe.collapsed&&(Pe.id=++Zl,Pe.atomic=!0),Qt){if($t&&(Qt.curOp.updateMaxLine=!0),Pe.collapsed)ya(Qt,W.line,q.line+1);else if(Pe.className||Pe.startStyle||Pe.endStyle||Pe.css||Pe.attributes||Pe.title)for(var en=W.line;en<=q.line;en++)Ci(Qt,en,"text");Pe.atomic&&Ks(Qt.doc),Gt(Qt,"markerAdded",Qt,Pe)}return Pe}var Bl=function(W,q){this.markers=W,this.primary=q;for(var re=0;re<W.length;++re)W[re].parent=this};Bl.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var P=0;P<this.markers.length;++P)this.markers[P].clear();Gt(this,"clear")},Bl.prototype.find=function(P,W){return this.primary.find(P,W)},Ht(Bl);function ku(P,W,q,re,le){re=K(re),re.shared=!1;var Pe=[Ol(P,W,q,re,le)],ft=Pe[0],Tt=re.widgetNode;return Si(P,function(Qt){Tt&&(re.widgetNode=Tt.cloneNode(!0)),Pe.push(Ol(Qt,vt(Qt,W),vt(Qt,q),re,le));for(var $t=0;$t<Qt.linked.length;++$t)if(Qt.linked[$t].isParent)return;ft=de(Pe)}),new Bl(Pe,ft)}function wu(P){return P.findMarks(Ut(P.first,0),P.clipPos(Ut(P.lastLine())),function(W){return W.parent})}function Bu(P,W){for(var q=0;q<W.length;q++){var re=W[q],le=re.find(),Pe=P.clipPos(le.from),ft=P.clipPos(le.to);if(pt(Pe,ft)){var Tt=Ol(P,Pe,ft,re.primary,re.primary.type);re.markers.push(Tt),Tt.parent=re}}}function Fu(P){for(var W=function(le){var Pe=P[le],ft=[Pe.primary.doc];Si(Pe.primary.doc,function($t){return ft.push($t)});for(var Tt=0;Tt<Pe.markers.length;Tt++){var Qt=Pe.markers[Tt];V(ft,Qt.doc)==-1&&(Qt.parent=null,Pe.markers.splice(Tt--,1))}},q=0;q<P.length;q++)W(q)}var Ll=0,Zs=function P(W,q,re,le,Pe){if(!(this instanceof P))return new P(W,q,re,le,Pe);re==null&&(re=0),Eo.call(this,[new ts([new Pi("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var ft=Ut(re,0);this.sel=we(ft),this.history=new eo(null),this.id=++Ll,this.modeOption=q,this.lineSep=le,this.direction=Pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof W=="string"&&(W=this.splitLines(W)),si(this,{from:ft,to:ft,text:W}),Lo(this,we(ft),se)};Zs.prototype=Ke(Eo.prototype,{constructor:Zs,iter:function(W,q,re){re?this.iterN(W-this.first,q-W,re):this.iterN(this.first,this.first+this.size,W)},insert:function(W,q){for(var re=0,le=0;le<q.length;++le)re+=q[le].height;this.insertInner(W-this.first,q,re)},remove:function(W,q){this.removeInner(W-this.first,q)},getValue:function(W){var q=Vt(this,this.first,this.first+this.size);return W===!1?q:q.join(W||this.lineSeparator())},setValue:Ko(function(P){var W=Ut(this.first,0),q=this.first+this.size-1;zs(this,{from:W,to:Ut(q,je(this,q).text.length),text:this.splitLines(P),origin:"setValue",full:!0},!0),this.cm&&Oa(this.cm,0,0),Lo(this,we(W),se)}),replaceRange:function(W,q,re,le){q=vt(this,q),re=re?vt(this,re):q,Vs(this,W,q,re,le)},getRange:function(W,q,re){var le=nt(this,vt(this,W),vt(this,q));return re===!1?le:le.join(re||this.lineSeparator())},getLine:function(W){var q=this.getLineHandle(W);return q&&q.text},getLineHandle:function(W){if(Br(this,W))return je(this,W)},getLineNumber:function(W){return Xt(W)},getLineHandleVisualStart:function(W){return typeof W=="number"&&(W=je(this,W)),gn(W)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(W){return vt(this,W)},getCursor:function(W){var q=this.sel.primary(),re;return W==null||W=="head"?re=q.head:W=="anchor"?re=q.anchor:W=="end"||W=="to"||W===!1?re=q.to():re=q.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(P,W,q){yl(this,vt(this,typeof P=="number"?Ut(P,W||0):P),null,q)}),setSelection:Ko(function(P,W,q){yl(this,vt(this,P),vt(this,W||P),q)}),extendSelection:Ko(function(P,W,q){Wo(this,vt(this,P),W&&vt(this,W),q)}),extendSelections:Ko(function(P,W){ws(this,gr(this,P),W)}),extendSelectionsBy:Ko(function(P,W){var q=Le(this.sel.ranges,P);ws(this,gr(this,q),W)}),setSelections:Ko(function(P,W,q){if(!P.length)return;for(var re=[],le=0;le<P.length;le++)re[le]=new ne(vt(this,P[le].anchor),vt(this,P[le].head));W==null&&(W=Math.min(P.length-1,this.sel.primIndex)),Lo(this,Ae(this.cm,re,W),q)}),addSelection:Ko(function(P,W,q){var re=this.sel.ranges.slice(0);re.push(new ne(vt(this,P),vt(this,W||P))),Lo(this,Ae(this.cm,re,re.length-1),q)}),getSelection:function(W){for(var q=this.sel.ranges,re,le=0;le<q.length;le++){var Pe=nt(this,q[le].from(),q[le].to());re=re?re.concat(Pe):Pe}return W===!1?re:re.join(W||this.lineSeparator())},getSelections:function(W){for(var q=[],re=this.sel.ranges,le=0;le<re.length;le++){var Pe=nt(this,re[le].from(),re[le].to());W!==!1&&(Pe=Pe.join(W||this.lineSeparator())),q[le]=Pe}return q},replaceSelection:function(W,q,re){for(var le=[],Pe=0;Pe<this.sel.ranges.length;Pe++)le[Pe]=W;this.replaceSelections(le,q,re||"+input")},replaceSelections:Ko(function(P,W,q){for(var re=[],le=this.sel,Pe=0;Pe<le.ranges.length;Pe++){var ft=le.ranges[Pe];re[Pe]={from:ft.from(),to:ft.to(),text:this.splitLines(P[Pe]),origin:q}}for(var Tt=W&&W!="end"&&Lr(this,re,W),Qt=re.length-1;Qt>=0;Qt--)zs(this,re[Qt]);Tt?Cs(this,Tt):this.cm&&qa(this.cm)}),undo:Ko(function(){ma(this,"undo")}),redo:Ko(function(){ma(this,"redo")}),undoSelection:Ko(function(){ma(this,"undo",!0)}),redoSelection:Ko(function(){ma(this,"redo",!0)}),setExtending:function(W){this.extend=W},getExtending:function(){return this.extend},historySize:function(){for(var W=this.history,q=0,re=0,le=0;le<W.done.length;le++)W.done[le].ranges||++q;for(var Pe=0;Pe<W.undone.length;Pe++)W.undone[Pe].ranges||++re;return{undo:q,redo:re}},clearHistory:function(){var W=this;this.history=new eo(this.history.maxGeneration),Si(this,function(q){return q.history=W.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(W){return W&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(W){return this.history.generation==(W||this.cleanGeneration)},getHistory:function(){return{done:Ds(this.history.done),undone:Ds(this.history.undone)}},setHistory:function(W){var q=this.history=new eo(this.history.maxGeneration);q.done=Ds(W.done.slice(0),null,!0),q.undone=Ds(W.undone.slice(0),null,!0)},setGutterMarker:Ko(function(P,W,q){return To(this,P,"gutter",function(re){var le=re.gutterMarkers||(re.gutterMarkers={});return le[W]=q,!q&&Z(le)&&(re.gutterMarkers=null),!0})}),clearGutter:Ko(function(P){var W=this;this.iter(function(q){q.gutterMarkers&&q.gutterMarkers[P]&&To(W,q,"gutter",function(){return q.gutterMarkers[P]=null,Z(q.gutterMarkers)&&(q.gutterMarkers=null),!0})})}),lineInfo:function(W){var q;if(typeof W=="number"){if(!Br(this,W))return null;if(q=W,W=je(this,W),!W)return null}else if(q=Xt(W),q==null)return null;return{line:q,handle:W,text:W.text,gutterMarkers:W.gutterMarkers,textClass:W.textClass,bgClass:W.bgClass,wrapClass:W.wrapClass,widgets:W.widgets}},addLineClass:Ko(function(P,W,q){return To(this,P,W=="gutter"?"gutter":"class",function(re){var le=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass";if(!re[le])re[le]=q;else{if(C(q).test(re[le]))return!1;re[le]+=" "+q}return!0})}),removeLineClass:Ko(function(P,W,q){return To(this,P,W=="gutter"?"gutter":"class",function(re){var le=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass",Pe=re[le];if(Pe)if(q==null)re[le]=null;else{var ft=Pe.match(C(q));if(!ft)return!1;var Tt=ft.index+ft[0].length;re[le]=Pe.slice(0,ft.index)+(!ft.index||Tt==Pe.length?"":" ")+Pe.slice(Tt)||null}else return!1;return!0})}),addLineWidget:Ko(function(P,W,q){return wl(this,P,W,q)}),removeLineWidget:function(W){W.clear()},markText:function(W,q,re){return Ol(this,vt(this,W),vt(this,q),re,re&&re.type||"range")},setBookmark:function(W,q){var re={replacedWith:q&&(q.nodeType==null?q.widget:q),insertLeft:q&&q.insertLeft,clearWhenEmpty:!1,shared:q&&q.shared,handleMouseEvents:q&&q.handleMouseEvents};return W=vt(this,W),Ol(this,W,W,re,"bookmark")},findMarksAt:function(W){W=vt(this,W);var q=[],re=je(this,W.line).markedSpans;if(re)for(var le=0;le<re.length;++le){var Pe=re[le];(Pe.from==null||Pe.from<=W.ch)&&(Pe.to==null||Pe.to>=W.ch)&&q.push(Pe.marker.parent||Pe.marker)}return q},findMarks:function(W,q,re){W=vt(this,W),q=vt(this,q);var le=[],Pe=W.line;return this.iter(W.line,q.line+1,function(ft){var Tt=ft.markedSpans;if(Tt)for(var Qt=0;Qt<Tt.length;Qt++){var $t=Tt[Qt];!($t.to!=null&&Pe==W.line&&W.ch>=$t.to||$t.from==null&&Pe!=W.line||$t.from!=null&&Pe==q.line&&$t.from>=q.ch)&&(!re||re($t.marker))&&le.push($t.marker.parent||$t.marker)}++Pe}),le},getAllMarks:function(){var W=[];return this.iter(function(q){var re=q.markedSpans;if(re)for(var le=0;le<re.length;++le)re[le].from!=null&&W.push(re[le].marker)}),W},posFromIndex:function(W){var q,re=this.first,le=this.lineSeparator().length;return this.iter(function(Pe){var ft=Pe.text.length+le;if(ft>W)return q=W,!0;W-=ft,++re}),vt(this,Ut(re,q))},indexFromPos:function(W){W=vt(this,W);var q=W.ch;if(W.line<this.first||W.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,W.line,function(le){q+=le.text.length+re}),q},copy:function(W){var q=new Zs(Vt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return q.scrollTop=this.scrollTop,q.scrollLeft=this.scrollLeft,q.sel=this.sel,q.extend=!1,W&&(q.history.undoDepth=this.history.undoDepth,q.setHistory(this.getHistory())),q},linkedDoc:function(W){W||(W={});var q=this.first,re=this.first+this.size;W.from!=null&&W.from>q&&(q=W.from),W.to!=null&&W.to<re&&(re=W.to);var le=new Zs(Vt(this,q,re),W.mode||this.modeOption,q,this.lineSep,this.direction);return W.sharedHist&&(le.history=this.history),(this.linked||(this.linked=[])).push({doc:le,sharedHist:W.sharedHist}),le.linked=[{doc:this,isParent:!0,sharedHist:W.sharedHist}],Bu(le,wu(this)),le},unlinkDoc:function(W){if(W instanceof dr&&(W=W.doc),this.linked)for(var q=0;q<this.linked.length;++q){var re=this.linked[q];if(re.doc!=W)continue;this.linked.splice(q,1),W.unlinkDoc(this),Fu(wu(this));break}if(W.history==this.history){var le=[W.id];Si(W,function(Pe){return le.push(Pe.id)},!0),W.history=new eo(null),W.history.done=Ds(this.history.done,le),W.history.undone=Ds(this.history.undone,le)}},iterLinkedDocs:function(W){Si(this,W)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(W){return this.lineSep?W.split(this.lineSep):Kr(W)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ko(function(P){if(P!="rtl"&&(P="ltr"),P==this.direction)return;this.direction=P,this.iter(function(W){return W.order=null}),this.cm&&xa(this.cm)})}),Zs.prototype.eachLine=Zs.prototype.iter;var $s=0;function ol(P){var W=this;if(lu(W),xt(W,P)||Nn(W.display,P))return;Je(P),h&&($s=+new Date);var q=Yi(W,P,!0),re=P.dataTransfer.files;if(!q||W.isReadOnly())return;if(re&&re.length&&window.FileReader&&window.File)for(var le=re.length,Pe=Array(le),ft=0,Tt=function(){++ft==le&&vo(W,function(){q=vt(W.doc,q);var vi={from:q,to:q,text:W.doc.splitLines(Pe.filter(function(ji){return ji!=null}).join(W.doc.lineSeparator())),origin:"paste"};zs(W.doc,vi),Cs(W.doc,we(vt(W.doc,q),vt(W.doc,Be(vi))))})()},Qt=function(vi,ji){if(W.options.allowDropFileTypes&&V(W.options.allowDropFileTypes,vi.type)==-1){Tt();return}var Ji=new FileReader;Ji.onerror=function(){return Tt()},Ji.onload=function(){var Qi=Ji.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qi)){Tt();return}Pe[ji]=Qi,Tt()},Ji.readAsText(vi)},$t=0;$t<re.length;$t++)Qt(re[$t],$t);else{if(W.state.draggingText&&W.doc.sel.contains(q)>-1){W.state.draggingText(P),setTimeout(function(){return W.display.input.focus()},20);return}try{var en=P.dataTransfer.getData("Text");if(en){var pn;if(W.state.draggingText&&!W.state.draggingText.copy&&(pn=W.listSelections()),ra(W.doc,we(q,q)),pn)for(var Mn=0;Mn<pn.length;++Mn)Vs(W.doc,"",pn[Mn].anchor,pn[Mn].head,"drag");W.replaceSelection(en,"around","paste"),W.display.input.focus()}}catch(Fn){}}}function zl(P,W){if(h&&(!P.state.draggingText||+new Date-$s<100)){bt(W);return}if(xt(P,W)||Nn(P.display,W))return;if(W.dataTransfer.setData("Text",P.getSelection()),W.dataTransfer.effectAllowed="copyMove",W.dataTransfer.setDragImage&&!t){var q=O("img",null,null,"position: fixed; left: 0; top: 0;");q.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&(q.width=q.height=1,P.display.wrapper.appendChild(q),q._top=q.offsetTop),W.dataTransfer.setDragImage(q,0,0),n&&q.parentNode.removeChild(q)}}function $l(P,W){var q=Yi(P,W);if(!q)return;var re=document.createDocumentFragment();Ta(P,q,re),P.display.dragCursor||(P.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),P.display.lineSpace.insertBefore(P.display.dragCursor,P.display.cursorDiv)),_(P.display.dragCursor,re)}function lu(P){P.display.dragCursor&&(P.display.lineSpace.removeChild(P.display.dragCursor),P.display.dragCursor=null)}function Vl(P){if(!document.getElementsByClassName)return;for(var W=document.getElementsByClassName("CodeMirror"),q=[],re=0;re<W.length;re++){var le=W[re].CodeMirror;le&&q.push(le)}q.length&&q[0].operation(function(){for(var Pe=0;Pe<q.length;Pe++)P(q[Pe])})}var Nl=!1;function uu(){if(Nl)return;ql(),Nl=!0}function ql(){var P;Oe(window,"resize",function(){P==null&&(P=setTimeout(function(){P=null,Vl(cu)},100))}),Oe(window,"blur",function(){return Vl($a)})}function cu(P){var W=P.display;W.cachedCharWidth=W.cachedTextHeight=W.cachedPaddingH=null,W.scrollbarsClipped=!1,P.setSize()}for(var gl={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"},Sl=0;Sl<10;Sl++)gl[Sl+48]=gl[Sl+96]=String(Sl);for(var Dl=65;Dl<=90;Dl++)gl[Dl]=String.fromCharCode(Dl);for(var eu=1;eu<=12;eu++)gl[eu+111]=gl[eu+63235]="F"+eu;var xl={};xl.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"},xl.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"},xl.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"},xl.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"]},xl.default=f?xl.macDefault:xl.pcDefault;function Uu(P){var W=P.split(/-(?!$)/);P=W[W.length-1];for(var q,re,le,Pe,ft=0;ft<W.length-1;ft++){var Tt=W[ft];if(/^(cmd|meta|m)$/i.test(Tt))Pe=!0;else if(/^a(lt)?$/i.test(Tt))q=!0;else if(/^(c|ctrl|control)$/i.test(Tt))re=!0;else if(/^s(hift)?$/i.test(Tt))le=!0;else throw new Error("Unrecognized modifier name: "+Tt)}return q&&(P="Alt-"+P),re&&(P="Ctrl-"+P),Pe&&(P="Cmd-"+P),le&&(P="Shift-"+P),P}function dl(P){var W={};for(var q in P)if(P.hasOwnProperty(q)){var re=P[q];if(/^(name|fallthrough|(de|at)tach)$/.test(q))continue;if(re=="..."){delete P[q];continue}for(var le=Le(q.split(" "),Uu),Pe=0;Pe<le.length;Pe++){var ft=void 0,Tt=void 0;Pe==le.length-1?(Tt=le.join(" "),ft=re):(Tt=le.slice(0,Pe+1).join(" "),ft="...");var Qt=W[Tt];if(!Qt)W[Tt]=ft;else if(Qt!=ft)throw new Error("Inconsistent bindings for "+Tt)}delete P[q]}for(var $t in W)P[$t]=W[$t];return P}function vl(P,W,q,re){W=Rl(W);var le=W.call?W.call(P,re):W[P];if(le===!1)return"nothing";if(le==="...")return"multi";if(le!=null&&q(le))return"handled";if(W.fallthrough){if(Object.prototype.toString.call(W.fallthrough)!="[object Array]")return vl(P,W.fallthrough,q,re);for(var Pe=0;Pe<W.fallthrough.length;Pe++){var ft=vl(P,W.fallthrough[Pe],q,re);if(ft)return ft}}}function tu(P){var W=typeof P=="string"?P:gl[P.keyCode];return W=="Ctrl"||W=="Alt"||W=="Shift"||W=="Mod"}function ju(P,W,q){var re=P;return W.altKey&&re!="Alt"&&(P="Alt-"+P),(y?W.metaKey:W.ctrlKey)&&re!="Ctrl"&&(P="Ctrl-"+P),(y?W.ctrlKey:W.metaKey)&&re!="Mod"&&(P="Cmd-"+P),!q&&W.shiftKey&&re!="Shift"&&(P="Shift-"+P),P}function du(P,W){if(n&&P.keyCode==34&&P.char)return!1;var q=gl[P.keyCode];return q==null||P.altGraphKey?!1:(P.keyCode==3&&P.code&&(q=P.code),ju(q,P,W))}function Rl(P){return typeof P=="string"?xl[P]:P}function Ml(P,W){for(var q=P.doc.sel.ranges,re=[],le=0;le<q.length;le++){for(var Pe=W(q[le]);re.length&&pt(Pe.from,de(re).to)<=0;){var ft=re.pop();if(pt(ft.from,Pe.from)<0){Pe.from=ft.from;break}}re.push(Pe)}Ho(P,function(){for(var Tt=re.length-1;Tt>=0;Tt--)Vs(P.doc,"",re[Tt].from,re[Tt].to,"+delete");qa(P)})}function Fl(P,W,q){var re=_e(P.text,W+q,q);return re<0||re>P.text.length?null:re}function Su(P,W,q){var re=Fl(P,W.ch,q);return re==null?null:new Ut(W.line,re,q<0?"after":"before")}function xu(P,W,q,re,le){if(P){W.doc.direction=="rtl"&&(le=-le);var Pe=it(q,W.doc.direction);if(Pe){var ft=le<0?de(Pe):Pe[0],Tt=le<0==(ft.level==1),Qt=Tt?"after":"before",$t;if(ft.level>0||W.doc.direction=="rtl"){var en=_i(W,q);$t=le<0?q.text.length-1:0;var pn=Ni(W,en,$t).top;$t=xe(function(Mn){return Ni(W,en,Mn).top==pn},le<0==(ft.level==1)?ft.from:ft.to-1,$t),Qt=="before"&&($t=Fl(q,$t,1))}else $t=le<0?ft.to:ft.from;return new Ut(re,$t,Qt)}}return new Ut(re,le<0?q.text.length:0,le<0?"before":"after")}function hu(P,W,q,re){var le=it(W,P.doc.direction);if(!le)return Su(W,q,re);q.ch>=W.text.length?(q.ch=W.text.length,q.sticky="before"):q.ch<=0&&(q.ch=0,q.sticky="after");var Pe=Te(le,q.ch,q.sticky),ft=le[Pe];if(P.doc.direction=="ltr"&&ft.level%2==0&&(re>0?ft.to>q.ch:ft.from<q.ch))return Su(W,q,re);var Tt=function(Gi,ga){return Fl(W,Gi instanceof Ut?Gi.ch:Gi,ga)},Qt,$t=function(Gi){return P.options.lineWrapping?(Qt=Qt||_i(P,W),Xi(P,W,Qt,Gi)):{begin:0,end:W.text.length}},en=$t(q.sticky=="before"?Tt(q,-1):q.ch);if(P.doc.direction=="rtl"||ft.level==1){var pn=ft.level==1==re<0,Mn=Tt(q,pn?1:-1);if(Mn!=null&&(pn?Mn<=ft.to&&Mn<=en.end:Mn>=ft.from&&Mn>=en.begin)){var Fn=pn?"before":"after";return new Ut(q.line,Mn,Fn)}}var vi=function(Gi,ga,Ea){for(var ro=function(qo,Fs){return Fs?new Ut(q.line,Tt(qo,1),"before"):new Ut(q.line,qo,"after")};Gi>=0&&Gi<le.length;Gi+=ga){var Va=le[Gi],xo=ga>0==(Va.level!=1),Po=xo?Ea.begin:Tt(Ea.end,-1);if(Va.from<=Po&&Po<Va.to)return ro(Po,xo);if(Po=xo?Va.from:Tt(Va.to,-1),Ea.begin<=Po&&Po<Ea.end)return ro(Po,xo)}},ji=vi(Pe+re,re,en);if(ji)return ji;var Ji=re>0?en.end:Tt(en.begin,-1);return Ji!=null&&!(re>0&&Ji==W.text.length)&&(ji=vi(re>0?0:le.length-1,re,$t(Ji)),ji)?ji:null}var Ul={selectAll:Bs,singleSelection:function(W){return W.setSelection(W.getCursor("anchor"),W.getCursor("head"),se)},killLine:function(W){return Ml(W,function(q){if(q.empty()){var re=je(W.doc,q.head.line).text.length;return q.head.ch==re&&q.head.line<W.lastLine()?{from:q.head,to:Ut(q.head.line+1,0)}:{from:q.head,to:Ut(q.head.line,re)}}else return{from:q.from(),to:q.to()}})},deleteLine:function(W){return Ml(W,function(q){return{from:Ut(q.from().line,0),to:vt(W.doc,Ut(q.to().line+1,0))}})},delLineLeft:function(W){return Ml(W,function(q){return{from:Ut(q.from().line,0),to:q.from()}})},delWrappedLineLeft:function(W){return Ml(W,function(q){var re=W.charCoords(q.head,"div").top+5,le=W.coordsChar({left:0,top:re},"div");return{from:le,to:q.from()}})},delWrappedLineRight:function(W){return Ml(W,function(q){var re=W.charCoords(q.head,"div").top+5,le=W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:re},"div");return{from:q.from(),to:le}})},undo:function(W){return W.undo()},redo:function(W){return W.redo()},undoSelection:function(W){return W.undoSelection()},redoSelection:function(W){return W.redoSelection()},goDocStart:function(W){return W.extendSelection(Ut(W.firstLine(),0))},goDocEnd:function(W){return W.extendSelection(Ut(W.lastLine()))},goLineStart:function(W){return W.extendSelectionsBy(function(q){return fu(W,q.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(W){return W.extendSelectionsBy(function(q){return Eu(W,q.head)},{origin:"+move",bias:1})},goLineEnd:function(W){return W.extendSelectionsBy(function(q){return ru(W,q.head.line)},{origin:"+move",bias:-1})},goLineRight:function(W){return W.extendSelectionsBy(function(q){var re=W.cursorCoords(q.head,"div").top+5;return W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:re},"div")},ae)},goLineLeft:function(W){return W.extendSelectionsBy(function(q){var re=W.cursorCoords(q.head,"div").top+5;return W.coordsChar({left:0,top:re},"div")},ae)},goLineLeftSmart:function(W){return W.extendSelectionsBy(function(q){var re=W.cursorCoords(q.head,"div").top+5,le=W.coordsChar({left:0,top:re},"div");return le.ch<W.getLine(le.line).search(/\S/)?Eu(W,q.head):le},ae)},goLineUp:function(W){return W.moveV(-1,"line")},goLineDown:function(W){return W.moveV(1,"line")},goPageUp:function(W){return W.moveV(-1,"page")},goPageDown:function(W){return W.moveV(1,"page")},goCharLeft:function(W){return W.moveH(-1,"char")},goCharRight:function(W){return W.moveH(1,"char")},goColumnLeft:function(W){return W.moveH(-1,"column")},goColumnRight:function(W){return W.moveH(1,"column")},goWordLeft:function(W){return W.moveH(-1,"word")},goGroupRight:function(W){return W.moveH(1,"group")},goGroupLeft:function(W){return W.moveH(-1,"group")},goWordRight:function(W){return W.moveH(1,"word")},delCharBefore:function(W){return W.deleteH(-1,"codepoint")},delCharAfter:function(W){return W.deleteH(1,"char")},delWordBefore:function(W){return W.deleteH(-1,"word")},delWordAfter:function(W){return W.deleteH(1,"word")},delGroupBefore:function(W){return W.deleteH(-1,"group")},delGroupAfter:function(W){return W.deleteH(1,"group")},indentAuto:function(W){return W.indentSelection("smart")},indentMore:function(W){return W.indentSelection("add")},indentLess:function(W){return W.indentSelection("subtract")},insertTab:function(W){return W.replaceSelection(" ")},insertSoftTab:function(W){for(var q=[],re=W.listSelections(),le=W.options.tabSize,Pe=0;Pe<re.length;Pe++){var ft=re[Pe].from(),Tt=U(W.getLine(ft.line),ft.ch,le);q.push(Ne(le-Tt%le))}W.replaceSelections(q)},defaultTab:function(W){W.somethingSelected()?W.indentSelection("add"):W.execCommand("insertTab")},transposeChars:function(W){return Ho(W,function(){for(var q=W.listSelections(),re=[],le=0;le<q.length;le++){if(!q[le].empty())continue;var Pe=q[le].head,ft=je(W.doc,Pe.line).text;if(ft){if(Pe.ch==ft.length&&(Pe=new Ut(Pe.line,Pe.ch-1)),Pe.ch>0)Pe=new Ut(Pe.line,Pe.ch+1),W.replaceRange(ft.charAt(Pe.ch-1)+ft.charAt(Pe.ch-2),Ut(Pe.line,Pe.ch-2),Pe,"+transpose");else if(Pe.line>W.doc.first){var Tt=je(W.doc,Pe.line-1).text;Tt&&(Pe=new Ut(Pe.line,1),W.replaceRange(ft.charAt(0)+W.doc.lineSeparator()+Tt.charAt(Tt.length-1),Ut(Pe.line-1,Tt.length-1),Pe,"+transpose"))}}re.push(new ne(Pe,Pe))}W.setSelections(re)})},newlineAndIndent:function(W){return Ho(W,function(){for(var q=W.listSelections(),re=q.length-1;re>=0;re--)W.replaceRange(W.doc.lineSeparator(),q[re].anchor,q[re].head,"+input");q=W.listSelections();for(var le=0;le<q.length;le++)W.indentLine(q[le].from().line,null,!0);qa(W)})},openLine:function(W){return W.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(W){return W.toggleOverwrite()}};function fu(P,W){var q=je(P.doc,W),re=gn(q);return re!=q&&(W=Xt(re)),xu(!0,P,re,W,1)}function ru(P,W){var q=je(P.doc,W),re=zr(q);return re!=q&&(W=Xt(re)),xu(!0,P,q,W,-1)}function Eu(P,W){var q=fu(P,W.line),re=je(P.doc,q.line),le=it(re,P.doc.direction);if(!le||le[0].level==0){var Pe=Math.max(q.ch,re.text.search(/\S/)),ft=W.line==q.line&&W.ch<=Pe&&W.ch;return Ut(q.line,ft?0:Pe,q.sticky)}return q}function fs(P,W,q){if(typeof W=="string"&&(W=Ul[W],!W))return!1;P.display.input.ensurePolled();var re=P.display.shift,le=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),q&&(P.display.shift=!1),le=W(P)!=J}finally{P.display.shift=re,P.state.suppressEdits=!1}return le}function rl(P,W,q){for(var re=0;re<P.state.keyMaps.length;re++){var le=vl(W,P.state.keyMaps[re],q,P);if(le)return le}return P.options.extraKeys&&vl(W,P.options.extraKeys,q,P)||vl(W,P.options.keyMap,q,P)}var El=new z;function nu(P,W,q,re){var le=P.state.keySeq;if(le){if(tu(W))return"handled";if(/\'$/.test(W)?P.state.keySeq=null:El.set(50,function(){P.state.keySeq==le&&(P.state.keySeq=null,P.display.input.reset())}),iu(P,le+" "+W,q,re))return!0}return iu(P,W,q,re)}function iu(P,W,q,re){var le=rl(P,W,re);return le=="multi"&&(P.state.keySeq=W),le=="handled"&&Gt(P,"keyHandled",P,W,q),(le=="handled"||le=="multi")&&(Je(q),aa(P)),!!le}function Cl(P,W){var q=du(W,!0);return q?W.shiftKey&&!P.state.keySeq?nu(P,"Shift-"+q,W,function(re){return fs(P,re,!0)})||nu(P,q,W,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return fs(P,re)}):nu(P,q,W,function(re){return fs(P,re)}):!1}function pl(P,W,q){return nu(P,"'"+q+"'",W,function(re){return fs(P,re,!0)})}var Cu=null;function Hu(P){var W=this;if(P.target&&P.target!=W.display.input.getField())return;if(W.curOp.focus=M(),xt(W,P))return;h&&c<11&&P.keyCode==27&&(P.returnValue=!1);var q=P.keyCode;W.display.shift=q==16||P.shiftKey;var re=Cl(W,P);n&&(Cu=re?q:null,!re&&q==88&&!nr&&(f?P.metaKey:P.ctrlKey)&&W.replaceSelection("",null,"cut")),T&&!f&&!re&&q==46&&P.shiftKey&&!P.ctrlKey&&document.execCommand&&document.execCommand("cut"),q==18&&!/\bCodeMirror-crosshair\b/.test(W.display.lineDiv.className)&&Ku(W)}function Ku(P){var W=P.display.lineDiv;F(W,"CodeMirror-crosshair");function q(re){(re.keyCode==18||!re.altKey)&&(w(W,"CodeMirror-crosshair"),Ge(document,"keyup",q),Ge(document,"mouseover",q))}Oe(document,"keyup",q),Oe(document,"mouseover",q)}function Tu(P){P.keyCode==16&&(this.doc.sel.shift=!1),xt(this,P)}function Iu(P){var W=this;if(P.target&&P.target!=W.display.input.getField())return;if(Nn(W.display,P)||xt(W,P)||P.ctrlKey&&!P.altKey||f&&P.metaKey)return;var q=P.keyCode,re=P.charCode;if(n&&q==Cu){Cu=null,Je(P);return}if(n&&(!P.which||P.which<10)&&Cl(W,P))return;var le=String.fromCharCode(re==null?q:re);if(le=="\b")return;if(pl(W,P,le))return;W.display.input.onKeyPress(P)}var Wu=400,pu=function(W,q,re){this.time=W,this.pos=q,this.button=re};pu.prototype.compare=function(P,W,q){return this.time+Wu>P&&pt(W,this.pos)==0&&q==this.button};var Tl,Il;function Gl(P,W){var q=+new Date;return Il&&Il.compare(q,P,W)?(Tl=Il=null,"triple"):Tl&&Tl.compare(q,P,W)?(Il=new pu(q,P,W),Tl=null,"double"):(Tl=new pu(q,P,W),Il=null,"single")}function jl(P){var W=this,q=W.display;if(xt(W,P)||q.activeTouch&&q.input.supportsTouch())return;if(q.input.ensurePolled(),q.shift=P.shiftKey,Nn(q,P)){a||(q.scroller.draggable=!1,setTimeout(function(){return q.scroller.draggable=!0},100));return}if(au(W,P))return;var re=Yi(W,P),le=me(P),Pe=re?Gl(re,le):"single";if(window.focus(),le==1&&W.state.selectingText&&W.state.selectingText(P),re&&_u(W,le,re,Pe,P))return;le==1?re?zu(W,re,Pe,P):qe(P)==q.scroller&&Je(P):le==2?(re&&Wo(W.doc,re),setTimeout(function(){return q.input.focus()},20)):le==3&&(x?W.display.input.onContextMenu(P):Ua(W))}function _u(P,W,q,re,le){var Pe="Click";return re=="double"?Pe="Double"+Pe:re=="triple"&&(Pe="Triple"+Pe),Pe=(W==1?"Left":W==2?"Middle":"Right")+Pe,nu(P,ju(Pe,le),le,function(ft){if(typeof ft=="string"&&(ft=Ul[ft]),!ft)return!1;var Tt=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),Tt=ft(P,q)!=J}finally{P.state.suppressEdits=!1}return Tt})}function $u(P,W,q){var re=P.getOption("configureMouse"),le=re?re(P,W,q):{};if(le.unit==null){var Pe=p?q.shiftKey&&q.metaKey:q.altKey;le.unit=Pe?"rectangle":W=="single"?"char":W=="double"?"word":"line"}return(le.extend==null||P.doc.extend)&&(le.extend=P.doc.extend||q.shiftKey),le.addNew==null&&(le.addNew=f?q.metaKey:q.ctrlKey),le.moveOnDrag==null&&(le.moveOnDrag=!(f?q.altKey:q.ctrlKey)),le}function zu(P,W,q,re){h?setTimeout(B(ho,P),0):P.curOp.focus=M();var le=$u(P,q,re),Pe=P.doc.sel,ft;P.options.dragDrop&&Rt&&!P.isReadOnly()&&q=="single"&&(ft=Pe.contains(W))>-1&&(pt((ft=Pe.ranges[ft]).from(),W)<0||W.xRel>0)&&(pt(ft.to(),W)>0||W.xRel<0)?qu(P,re,W,le):mu(P,re,W,le)}function qu(P,W,q,re){var le=P.display,Pe=!1,ft=vo(P,function($t){a&&(le.scroller.draggable=!1),P.state.draggingText=!1,Ge(le.wrapper.ownerDocument,"mouseup",ft),Ge(le.wrapper.ownerDocument,"mousemove",Tt),Ge(le.scroller,"dragstart",Qt),Ge(le.scroller,"drop",ft),Pe||(Je($t),re.addNew||Wo(P.doc,q,null,null,re.extend),a&&!t||h&&c==9?setTimeout(function(){le.wrapper.ownerDocument.body.focus({preventScroll:!0}),le.input.focus()},20):le.input.focus())}),Tt=function(en){Pe=Pe||Math.abs(W.clientX-en.clientX)+Math.abs(W.clientY-en.clientY)>=10},Qt=function(){return Pe=!0};a&&(le.scroller.draggable=!0),P.state.draggingText=ft,ft.copy=!re.moveOnDrag,le.scroller.dragDrop&&le.scroller.dragDrop(),Oe(le.wrapper.ownerDocument,"mouseup",ft),Oe(le.wrapper.ownerDocument,"mousemove",Tt),Oe(le.scroller,"dragstart",Qt),Oe(le.scroller,"drop",ft),Ua(P),setTimeout(function(){return le.input.focus()},20)}function Xl(P,W,q){if(q=="char")return new ne(W,W);if(q=="word")return P.findWordAt(W);if(q=="line")return new ne(Ut(W.line,0),vt(P.doc,Ut(W.line+1,0)));var re=q(P,W);return new ne(re.from,re.to)}function mu(P,W,q,re){var le=P.display,Pe=P.doc;Je(W);var ft,Tt,Qt=Pe.sel,$t=Qt.ranges;if(re.addNew&&!re.extend?(Tt=Pe.sel.contains(q),Tt>-1?ft=$t[Tt]:ft=new ne(q,q)):(ft=Pe.sel.primary(),Tt=Pe.sel.primIndex),re.unit=="rectangle")re.addNew||(ft=new ne(q,q)),q=Yi(P,W,!0,!0),Tt=-1;else{var en=Xl(P,q,re.unit);re.extend?ft=Es(ft,en.anchor,en.head,re.extend):ft=en}re.addNew?Tt==-1?(Tt=$t.length,Lo(Pe,Ae(P,$t.concat([ft]),Tt),{scroll:!1,origin:"*mouse"})):$t.length>1&&$t[Tt].empty()&&re.unit=="char"&&!re.extend?(Lo(Pe,Ae(P,$t.slice(0,Tt).concat($t.slice(Tt+1)),0),{scroll:!1,origin:"*mouse"}),Qt=Pe.sel):ds(Pe,Tt,ft,$):(Tt=0,Lo(Pe,new mt([ft],0),$),Qt=Pe.sel);var pn=q;function Mn(ga){if(pt(pn,ga)==0)return;if(pn=ga,re.unit=="rectangle"){for(var Ea=[],ro=P.options.tabSize,Va=U(je(Pe,q.line).text,q.ch,ro),xo=U(je(Pe,ga.line).text,ga.ch,ro),Po=Math.min(Va,xo),is=Math.max(Va,xo),qo=Math.min(q.line,ga.line),Fs=Math.min(P.lastLine(),Math.max(q.line,ga.line));qo<=Fs;qo++){var sl=je(Pe,qo).text,Ss=ge(sl,Po,ro);Po==is?Ea.push(new ne(Ut(qo,Ss),Ut(qo,Ss))):sl.length>Ss&&Ea.push(new ne(Ut(qo,Ss),Ut(qo,ge(sl,is,ro))))}Ea.length||Ea.push(new ne(q,q)),Lo(Pe,Ae(P,Qt.ranges.slice(0,Tt).concat(Ea),Tt),{origin:"*mouse",scroll:!1}),P.scrollIntoView(ga)}else{var ll=ft,Us=Xl(P,ga,re.unit),Rs=ll.anchor,Is;pt(Us.anchor,Rs)>0?(Is=Us.head,Rs=At(ll.from(),Us.anchor)):(Is=Us.anchor,Rs=Zt(ll.to(),Us.head));var ps=Qt.ranges.slice(0);ps[Tt]=ec(P,new ne(vt(Pe,Rs),Is)),Lo(Pe,Ae(P,ps,Tt),$)}}var Fn=le.wrapper.getBoundingClientRect(),vi=0;function ji(ga){var Ea=++vi,ro=Yi(P,ga,!0,re.unit=="rectangle");if(!ro)return;if(pt(ro,pn)!=0){P.curOp.focus=M(),Mn(ro);var Va=bo(le,Pe);(ro.line>=Va.to||ro.line<Va.from)&&setTimeout(vo(P,function(){vi==Ea&&ji(ga)}),150)}else{var xo=ga.clientY<Fn.top?-20:ga.clientY>Fn.bottom?20:0;xo&&setTimeout(vo(P,function(){if(vi!=Ea)return;le.scroller.scrollTop+=xo,ji(ga)}),50)}}function Ji(ga){P.state.selectingText=!1,vi=Infinity,ga&&(Je(ga),le.input.focus()),Ge(le.wrapper.ownerDocument,"mousemove",Qi),Ge(le.wrapper.ownerDocument,"mouseup",Gi),Pe.history.lastSelOrigin=null}var Qi=vo(P,function(ga){ga.buttons===0||!me(ga)?Ji(ga):ji(ga)}),Gi=vo(P,Ji);P.state.selectingText=Gi,Oe(le.wrapper.ownerDocument,"mousemove",Qi),Oe(le.wrapper.ownerDocument,"mouseup",Gi)}function ec(P,W){var q=W.anchor,re=W.head,le=je(P.doc,q.line);if(pt(q,re)==0&&q.sticky==re.sticky)return W;var Pe=it(le);if(!Pe)return W;var ft=Te(Pe,q.ch,q.sticky),Tt=Pe[ft];if(Tt.from!=q.ch&&Tt.to!=q.ch)return W;var Qt=ft+(Tt.from==q.ch==(Tt.level!=1)?0:1);if(Qt==0||Qt==Pe.length)return W;var $t;if(re.line!=q.line)$t=(re.line-q.line)*(P.doc.direction=="ltr"?1:-1)>0;else{var en=Te(Pe,re.ch,re.sticky),pn=en-ft||(re.ch-q.ch)*(Tt.level==1?-1:1);en==Qt-1||en==Qt?$t=pn<0:$t=pn>0}var Mn=Pe[Qt+($t?-1:0)],Fn=$t==(Mn.level==1),vi=Fn?Mn.from:Mn.to,ji=Fn?"after":"before";return q.ch==vi&&q.sticky==ji?W:new ne(new Ut(q.line,vi,ji),re)}function Ou(P,W,q,re){var le,Pe;if(W.touches)le=W.touches[0].clientX,Pe=W.touches[0].clientY;else try{le=W.clientX,Pe=W.clientY}catch(Mn){return!1}if(le>=Math.floor(P.display.gutters.getBoundingClientRect().right))return!1;re&&Je(W);var ft=P.display,Tt=ft.lineDiv.getBoundingClientRect();if(Pe>Tt.bottom||!Dt(P,q))return ie(W);Pe-=Tt.top-ft.viewOffset;for(var Qt=0;Qt<P.display.gutterSpecs.length;++Qt){var $t=ft.gutters.childNodes[Qt];if($t&&$t.getBoundingClientRect().right>=le){var en=Rr(P.doc,Pe),pn=P.display.gutterSpecs[Qt];return wt(P,q,P,en,pn.className,W),ie(W)}}}function au(P,W){return Ou(P,W,"gutterClick",!0)}function gu(P,W){if(Nn(P.display,W)||Yl(P,W))return;if(xt(P,W,"contextmenu"))return;x||P.display.input.onContextMenu(W)}function Yl(P,W){return Dt(P,"gutterContextMenu")?Ou(P,W,"gutterContextMenu",!1):!1}function Lu(P){P.display.wrapper.className=P.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+P.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yt(P)}var Ql={toString:function(){return"CodeMirror.Init"}},ou={},be={};function Ue(P){var W=P.optionHandlers;function q(re,le,Pe,ft){P.defaults[re]=le,Pe&&(W[re]=ft?function(Tt,Qt,$t){$t!=Ql&&Pe(Tt,Qt,$t)}:Pe)}P.defineOption=q,P.Init=Ql,q("value","",function(re,le){return re.setValue(le)},!0),q("mode",null,function(re,le){re.doc.modeOption=le,$r(re)},!0),q("indentUnit",2,$r,!0),q("indentWithTabs",!1),q("smartIndent",!0),q("tabSize",4,function(re){xn(re),Yt(re),ya(re)},!0),q("lineSeparator",null,function(re,le){if(re.doc.lineSep=le,!le)return;var Pe=[],ft=re.doc.first;re.doc.iter(function(Qt){for(var $t=0;;){var en=Qt.text.indexOf(le,$t);if(en==-1)break;$t=en+le.length,Pe.push(Ut(ft,en))}ft++});for(var Tt=Pe.length-1;Tt>=0;Tt--)Vs(re.doc,le,Pe[Tt],Ut(Pe[Tt].line,Pe[Tt].ch+le.length))}),q("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,le,Pe){re.state.specialChars=new RegExp(le.source+(le.test(" ")?"":"| "),"g"),Pe!=Ql&&re.refresh()}),q("specialCharPlaceholder",di,function(re){return re.refresh()},!0),q("electricChars",!0),q("inputStyle",u?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),q("spellcheck",!1,function(re,le){return re.getInputField().spellcheck=le},!0),q("autocorrect",!1,function(re,le){return re.getInputField().autocorrect=le},!0),q("autocapitalize",!1,function(re,le){return re.getInputField().autocapitalize=le},!0),q("rtlMoveVisually",!v),q("wholeLineUpdateBefore",!0),q("theme","default",function(re){Lu(re),Hs(re)},!0),q("keyMap","default",function(re,le,Pe){var ft=Rl(le),Tt=Pe!=Ql&&Rl(Pe);Tt&&Tt.detach&&Tt.detach(re,ft),ft.attach&&ft.attach(re,Tt||null)}),q("extraKeys",null),q("configureMouse",null),q("lineWrapping",!1,Kt,!0),q("gutters",[],function(re,le){re.display.gutterSpecs=Ms(le,re.options.lineNumbers),Hs(re)},!0),q("fixedGutter",!0,function(re,le){re.display.gutters.style.left=le?Ca(re.display)+"px":"0",re.refresh()},!0),q("coverGutterNextToScrollbar",!1,function(re){return Da(re)},!0),q("scrollbarStyle","native",function(re){mo(re),Da(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),q("lineNumbers",!1,function(re,le){re.display.gutterSpecs=Ms(re.options.gutters,le),Hs(re)},!0),q("firstLineNumber",1,Hs,!0),q("lineNumberFormatter",function(re){return re},Hs,!0),q("showCursorWhenSelecting",!1,Sa,!0),q("resetSelectionOnContextMenu",!0),q("lineWiseCopyCut",!0),q("pasteLinesPerSelection",!0),q("selectionsMayTouch",!1),q("readOnly",!1,function(re,le){le=="nocursor"&&($a(re),re.display.input.blur()),re.display.input.readOnlyChanged(le)}),q("screenReaderLabel",null,function(re,le){le=le===""?null:le,re.display.input.screenReaderLabelChanged(le)}),q("disableInput",!1,function(re,le){le||re.display.input.reset()},!0),q("dragDrop",!0,ht),q("allowDropFileTypes",null),q("cursorBlinkRate",530),q("cursorScrollMargin",0),q("cursorHeight",1,Sa,!0),q("singleCursorHeightPerLine",!0,Sa,!0),q("workTime",100),q("workDelay",100),q("flattenSpans",!0,xn,!0),q("addModeClass",!1,xn,!0),q("pollInterval",100),q("undoDepth",200,function(re,le){return re.doc.history.undoDepth=le}),q("historyEventDelay",1250),q("viewportMargin",10,function(re){return re.refresh()},!0),q("maxHighlightLength",1e4,xn,!0),q("moveInputWithCursor",!0,function(re,le){le||re.display.input.resetPosition()}),q("tabindex",null,function(re,le){return re.display.input.getField().tabIndex=le||""}),q("autofocus",null),q("direction","ltr",function(re,le){return re.doc.setDirection(le)},!0),q("phrases",null)}function ht(P,W,q){var re=q&&q!=Ql;if(!W!=!re){var le=P.display.dragFunctions,Pe=W?Oe:Ge;Pe(P.display.scroller,"dragstart",le.start),Pe(P.display.scroller,"dragenter",le.enter),Pe(P.display.scroller,"dragover",le.over),Pe(P.display.scroller,"dragleave",le.leave),Pe(P.display.scroller,"drop",le.drop)}}function Kt(P){P.options.lineWrapping?(F(P.display.wrapper,"CodeMirror-wrap"),P.display.sizer.style.minWidth="",P.display.sizerWidth=null):(w(P.display.wrapper,"CodeMirror-wrap"),Jn(P)),qi(P),ya(P),Yt(P),setTimeout(function(){return Da(P)},100)}function dr(P,W){var q=this;if(!(this instanceof dr))return new dr(P,W);this.options=W=W?K(W):{},K(ou,W,!1);var re=W.value;typeof re=="string"?re=new Zs(re,W.mode,null,W.lineSeparator,W.direction):W.mode&&(re.modeOption=W.mode),this.doc=re;var le=new dr.inputStyles[W.inputStyle](this),Pe=this.display=new Go(P,re,le,W);Pe.wrapper.CodeMirror=this,Lu(this),W.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),mo(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 z,keySeq:null,specialChars:null},W.autofocus&&!u&&Pe.input.focus(),h&&c<11&&setTimeout(function(){return q.display.input.reset(!0)},20),Tr(this),uu(),Xa(this),this.curOp.forceUpdate=!0,Vi(this,re),W.autofocus&&!u||this.hasFocus()?setTimeout(function(){q.hasFocus()&&!q.state.focused&&Na(q)},20):$a(this);for(var ft in be)be.hasOwnProperty(ft)&&be[ft](this,W[ft],Ql);ul(this),W.finishInit&&W.finishInit(this);for(var Tt=0;Tt<De.length;++Tt)De[Tt](this);Qo(this),a&&W.lineWrapping&&getComputedStyle(Pe.lineDiv).textRendering=="optimizelegibility"&&(Pe.lineDiv.style.textRendering="auto")}dr.defaults=ou,dr.optionHandlers=be;function Tr(P){var W=P.display;Oe(W.scroller,"mousedown",vo(P,jl)),h&&c<11?Oe(W.scroller,"dblclick",vo(P,function(Qt){if(xt(P,Qt))return;var $t=Yi(P,Qt);if(!$t||au(P,Qt)||Nn(P.display,Qt))return;Je(Qt);var en=P.findWordAt($t);Wo(P.doc,en.anchor,en.head)})):Oe(W.scroller,"dblclick",function(Qt){return xt(P,Qt)||Je(Qt)}),Oe(W.scroller,"contextmenu",function(Qt){return gu(P,Qt)}),Oe(W.input.getField(),"contextmenu",function(Qt){W.scroller.contains(Qt.target)||gu(P,Qt)});var q,re={end:0};function le(){W.activeTouch&&(q=setTimeout(function(){return W.activeTouch=null},1e3),re=W.activeTouch,re.end=+new Date)}function Pe(Qt){if(Qt.touches.length!=1)return!1;var $t=Qt.touches[0];return $t.radiusX<=1&&$t.radiusY<=1}function ft(Qt,$t){if($t.left==null)return!0;var en=$t.left-Qt.left,pn=$t.top-Qt.top;return en*en+pn*pn>20*20}Oe(W.scroller,"touchstart",function(Qt){if(!xt(P,Qt)&&!Pe(Qt)&&!au(P,Qt)){W.input.ensurePolled(),clearTimeout(q);var $t=+new Date;W.activeTouch={start:$t,moved:!1,prev:$t-re.end<=300?re:null},Qt.touches.length==1&&(W.activeTouch.left=Qt.touches[0].pageX,W.activeTouch.top=Qt.touches[0].pageY)}}),Oe(W.scroller,"touchmove",function(){W.activeTouch&&(W.activeTouch.moved=!0)}),Oe(W.scroller,"touchend",function(Qt){var $t=W.activeTouch;if($t&&!Nn(W,Qt)&&$t.left!=null&&!$t.moved&&new Date-$t.start<300){var en=P.coordsChar(W.activeTouch,"page"),pn;!$t.prev||ft($t,$t.prev)?pn=new ne(en,en):!$t.prev.prev||ft($t,$t.prev.prev)?pn=P.findWordAt(en):pn=new ne(Ut(en.line,0),vt(P.doc,Ut(en.line+1,0))),P.setSelection(pn.anchor,pn.head),P.focus(),Je(Qt)}le()}),Oe(W.scroller,"touchcancel",le),Oe(W.scroller,"scroll",function(){W.scroller.clientHeight&&(pa(P,W.scroller.scrollTop),jo(P,W.scroller.scrollLeft,!0),wt(P,"scroll",P))}),Oe(W.scroller,"mousewheel",function(Qt){return In(P,Qt)}),Oe(W.scroller,"DOMMouseScroll",function(Qt){return In(P,Qt)}),Oe(W.wrapper,"scroll",function(){return W.wrapper.scrollTop=W.wrapper.scrollLeft=0}),W.dragFunctions={enter:function($t){xt(P,$t)||bt($t)},over:function($t){xt(P,$t)||($l(P,$t),bt($t))},start:function($t){return zl(P,$t)},drop:vo(P,ol),leave:function($t){xt(P,$t)||lu(P)}};var Tt=W.input.getField();Oe(Tt,"keyup",function(Qt){return Tu.call(P,Qt)}),Oe(Tt,"keydown",vo(P,Hu)),Oe(Tt,"keypress",vo(P,Iu)),Oe(Tt,"focus",function(Qt){return Na(P,Qt)}),Oe(Tt,"blur",function(Qt){return $a(P,Qt)})}var De=[];dr.defineInitHook=function(P){return De.push(P)};function te(P,W,q,re){var le=P.doc,Pe;q==null&&(q="add"),q=="smart"&&(le.mode.indent?Pe=Tn(P,W).state:q="prev");var ft=P.options.tabSize,Tt=je(le,W),Qt=U(Tt.text,null,ft);Tt.stateAfter&&(Tt.stateAfter=null);var $t=Tt.text.match(/^\s*/)[0],en;if(!re&&!/\S/.test(Tt.text))en=0,q="not";else if(q=="smart"&&(en=le.mode.indent(Pe,Tt.text.slice($t.length),Tt.text),en==J||en>150)){if(!re)return;q="prev"}q=="prev"?W>le.first?en=U(je(le,W-1).text,null,ft):en=0:q=="add"?en=Qt+P.options.indentUnit:q=="subtract"?en=Qt-P.options.indentUnit:typeof q=="number"&&(en=Qt+q),en=Math.max(0,en);var pn="",Mn=0;if(P.options.indentWithTabs)for(var Fn=Math.floor(en/ft);Fn;--Fn)Mn+=ft,pn+=" ";if(Mn<en&&(pn+=Ne(en-Mn)),pn!=$t)return Vs(le,pn,Ut(W,0),Ut(W,$t.length),"+input"),Tt.stateAfter=null,!0;for(var vi=0;vi<le.sel.ranges.length;vi++){var ji=le.sel.ranges[vi];if(ji.head.line==W&&ji.head.ch<$t.length){var Ji=Ut(W,$t.length);ds(le,vi,new ne(Ji,Ji));break}}}var Se=null;function He(P){Se=P}function at(P,W,q,re,le){var Pe=P.doc;P.display.shift=!1,re||(re=Pe.sel);var ft=+new Date-200,Tt=le=="paste"||P.state.pasteIncoming>ft,Qt=Kr(W),$t=null;if(Tt&&re.ranges.length>1)if(Se&&Se.text.join(`
|
|
|
`)==W){if(re.ranges.length%Se.text.length==0){$t=[];for(var en=0;en<Se.text.length;en++)$t.push(Pe.splitLines(Se.text[en]))}}else Qt.length==re.ranges.length&&P.options.pasteLinesPerSelection&&($t=Le(Qt,function(Qi){return[Qi]}));for(var pn=P.curOp.updateInput,Mn=re.ranges.length-1;Mn>=0;Mn--){var Fn=re.ranges[Mn],vi=Fn.from(),ji=Fn.to();Fn.empty()&&(q&&q>0?vi=Ut(vi.line,vi.ch-q):P.state.overwrite&&!Tt?ji=Ut(ji.line,Math.min(je(Pe,ji.line).text.length,ji.ch+de(Qt).length)):Tt&&Se&&Se.lineWise&&Se.text.join(`
|
|
|
`)==Qt.join(`
|
|
|
`)&&(vi=ji=Ut(vi.line,0)));var Ji={from:vi,to:ji,text:$t?$t[Mn%$t.length]:Qt,origin:le||(Tt?"paste":P.state.cutIncoming>ft?"cut":"+input")};zs(P.doc,Ji),Gt(P,"inputRead",P,Ji)}W&&!Tt&&It(P,W),qa(P),P.curOp.updateInput<2&&(P.curOp.updateInput=pn),P.curOp.typing=!0,P.state.pasteIncoming=P.state.cutIncoming=-1}function Et(P,W){var q=P.clipboardData&&P.clipboardData.getData("Text");if(q)return P.preventDefault(),!W.isReadOnly()&&!W.options.disableInput&&Ho(W,function(){return at(W,q,0,null,"paste")}),!0}function It(P,W){if(!P.options.electricChars||!P.options.smartIndent)return;for(var q=P.doc.sel,re=q.ranges.length-1;re>=0;re--){var le=q.ranges[re];if(le.head.ch>100||re&&q.ranges[re-1].head.line==le.head.line)continue;var Pe=P.getModeAt(le.head),ft=!1;if(Pe.electricChars){for(var Tt=0;Tt<Pe.electricChars.length;Tt++)if(W.indexOf(Pe.electricChars.charAt(Tt))>-1){ft=te(P,le.head.line,"smart");break}}else Pe.electricInput&&(Pe.electricInput.test(je(P.doc,le.head.line).text.slice(0,le.head.ch))&&(ft=te(P,le.head.line,"smart")));ft&&Gt(P,"electricInput",P,le.head.line)}}function Nt(P){for(var W=[],q=[],re=0;re<P.doc.sel.ranges.length;re++){var le=P.doc.sel.ranges[re].head.line,Pe={anchor:Ut(le,0),head:Ut(le+1,0)};q.push(Pe),W.push(P.getRange(Pe.anchor,Pe.head))}return{text:W,ranges:q}}function vr(P,W,q,re){P.setAttribute("autocorrect",q?"":"off"),P.setAttribute("autocapitalize",re?"":"off"),P.setAttribute("spellcheck",!!W)}function Ir(){var P=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),W=O("div",[P],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?P.style.width="1000px":P.setAttribute("wrap","off"),o&&(P.style.border="1px solid black"),vr(P),W}function mr(P){var W=P.optionHandlers,q=P.helpers={};P.prototype={constructor:P,focus:function(){window.focus(),this.display.input.focus()},setOption:function(le,Pe){var ft=this.options,Tt=ft[le];if(ft[le]==Pe&&le!="mode")return;ft[le]=Pe,W.hasOwnProperty(le)&&vo(this,W[le])(this,Pe,Tt),wt(this,"optionChange",this,le)},getOption:function(le){return this.options[le]},getDoc:function(){return this.doc},addKeyMap:function(le,Pe){this.state.keyMaps[Pe?"push":"unshift"](Rl(le))},removeKeyMap:function(le){for(var Pe=this.state.keyMaps,ft=0;ft<Pe.length;++ft)if(Pe[ft]==le||Pe[ft].name==le)return Pe.splice(ft,1),!0},addOverlay:es(function(re,le){var Pe=re.token?re:P.getMode(this.options,re);if(Pe.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:Pe,modeSpec:re,opaque:le&&le.opaque,priority:le&&le.priority||0},function(ft){return ft.priority}),this.state.modeGen++,ya(this)}),removeOverlay:es(function(re){for(var le=this.state.overlays,Pe=0;Pe<le.length;++Pe){var ft=le[Pe].modeSpec;if(ft==re||typeof re=="string"&&ft.name==re){le.splice(Pe,1),this.state.modeGen++,ya(this);return}}}),indentLine:es(function(re,le,Pe){typeof le!="string"&&typeof le!="number"&&(le==null?le=this.options.smartIndent?"smart":"prev":le=le?"add":"subtract"),Br(this.doc,re)&&te(this,re,le,Pe)}),indentSelection:es(function(re){for(var le=this.doc.sel.ranges,Pe=-1,ft=0;ft<le.length;ft++){var Tt=le[ft];if(Tt.empty())Tt.head.line>Pe&&(te(this,Tt.head.line,re,!0),Pe=Tt.head.line,ft==this.doc.sel.primIndex&&qa(this));else{var Qt=Tt.from(),$t=Tt.to(),en=Math.max(Pe,Qt.line);Pe=Math.min(this.lastLine(),$t.line-($t.ch?0:1))+1;for(var pn=en;pn<Pe;++pn)te(this,pn,re);var Mn=this.doc.sel.ranges;Qt.ch==0&&le.length==Mn.length&&Mn[ft].from().ch>0&&ds(this.doc,ft,new ne(Qt,Mn[ft].to()),se)}}}),getTokenAt:function(le,Pe){return Mi(this,le,Pe)},getLineTokens:function(le,Pe){return Mi(this,Ut(le),Pe,!0)},getTokenTypeAt:function(le){le=vt(this.doc,le);var Pe=Jr(this,je(this.doc,le.line)),ft=0,Tt=(Pe.length-1)/2,Qt=le.ch,$t;if(Qt==0)$t=Pe[2];else for(;;){var en=ft+Tt>>1;if((en?Pe[en*2-1]:0)>=Qt)Tt=en;else if(Pe[en*2+1]<Qt)ft=en+1;else{$t=Pe[en*2+2];break}}var pn=$t?$t.indexOf("overlay "):-1;return pn<0?$t:pn==0?null:$t.slice(0,pn-1)},getModeAt:function(le){var Pe=this.doc.mode;return Pe.innerMode?P.innerMode(Pe,this.getTokenAt(le).state).mode:Pe},getHelper:function(le,Pe){return this.getHelpers(le,Pe)[0]},getHelpers:function(le,Pe){var ft=[];if(!q.hasOwnProperty(Pe))return ft;var Tt=q[Pe],Qt=this.getModeAt(le);if(typeof Qt[Pe]=="string")Tt[Qt[Pe]]&&ft.push(Tt[Qt[Pe]]);else if(Qt[Pe])for(var $t=0;$t<Qt[Pe].length;$t++){var en=Tt[Qt[Pe][$t]];en&&ft.push(en)}else Qt.helperType&&Tt[Qt.helperType]?ft.push(Tt[Qt.helperType]):Tt[Qt.name]&&ft.push(Tt[Qt.name]);for(var pn=0;pn<Tt._global.length;pn++){var Mn=Tt._global[pn];Mn.pred(Qt,this)&&V(ft,Mn.val)==-1&&ft.push(Mn.val)}return ft},getStateAfter:function(le,Pe){var ft=this.doc;return le=Pt(ft,le==null?ft.first+ft.size-1:le),Tn(this,le+1,Pe).state},cursorCoords:function(le,Pe){var ft,Tt=this.doc.sel.primary();return le==null?ft=Tt.head:typeof le=="object"?ft=vt(this.doc,le):ft=le?Tt.from():Tt.to(),bn(this,ft,Pe||"page")},charCoords:function(le,Pe){return sn(this,vt(this.doc,le),Pe||"page")},coordsChar:function(le,Pe){return le=dn(this,le,Pe||"page"),$n(this,le.left,le.top)},lineAtHeight:function(le,Pe){return le=dn(this,{top:le,left:0},Pe||"page").top,Rr(this.doc,le+this.display.viewOffset)},heightAtLine:function(le,Pe,ft){var Tt=!1,Qt;if(typeof le=="number"){var $t=this.doc.first+this.doc.size-1;le<this.doc.first?le=this.doc.first:le>$t&&(le=$t,Tt=!0),Qt=je(this.doc,le)}else Qt=le;return Ur(this,Qt,{top:0,left:0},Pe||"page",ft||Tt).top+(Tt?this.doc.height-Gn(Qt):0)},defaultTextHeight:function(){return Ri(this.display)},defaultCharWidth:function(){return ta(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(le,Pe,ft,Tt,Qt){var $t=this.display;le=bn(this,vt(this.doc,le));var en=le.bottom,pn=le.left;if(Pe.style.position="absolute",Pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Pe),$t.sizer.appendChild(Pe),Tt=="over")en=le.top;else if(Tt=="above"||Tt=="near"){var Mn=Math.max($t.wrapper.clientHeight,this.doc.height),Fn=Math.max($t.sizer.clientWidth,$t.lineSpace.clientWidth);(Tt=="above"||le.bottom+Pe.offsetHeight>Mn)&&le.top>Pe.offsetHeight?en=le.top-Pe.offsetHeight:le.bottom+Pe.offsetHeight<=Mn&&(en=le.bottom),pn+Pe.offsetWidth>Fn&&(pn=Fn-Pe.offsetWidth)}Pe.style.top=en+"px",Pe.style.left=Pe.style.right="",Qt=="right"?(pn=$t.sizer.clientWidth-Pe.offsetWidth,Pe.style.right="0px"):(Qt=="left"?pn=0:Qt=="middle"&&(pn=($t.sizer.clientWidth-Pe.offsetWidth)/2),Pe.style.left=pn+"px"),ft&&fo(this,{left:pn,top:en,right:pn+Pe.offsetWidth,bottom:en+Pe.offsetHeight})},triggerOnKeyDown:es(Hu),triggerOnKeyPress:es(Iu),triggerOnKeyUp:Tu,triggerOnMouseDown:es(jl),execCommand:function(le){if(Ul.hasOwnProperty(le))return Ul[le].call(null,this)},triggerElectric:es(function(re){It(this,re)}),findPosH:function(le,Pe,ft,Tt){var Qt=1;Pe<0&&(Qt=-1,Pe=-Pe);for(var $t=vt(this.doc,le),en=0;en<Pe&&!($t=cr(this.doc,$t,Qt,ft,Tt),$t.hitSide);++en);return $t},moveH:es(function(re,le){var Pe=this;this.extendSelectionsBy(function(ft){return Pe.display.shift||Pe.doc.extend||ft.empty()?cr(Pe.doc,ft.head,re,le,Pe.options.rtlMoveVisually):re<0?ft.from():ft.to()},ae)}),deleteH:es(function(re,le){var Pe=this.doc.sel,ft=this.doc;Pe.somethingSelected()?ft.replaceSelection("",null,"+delete"):Ml(this,function(Tt){var Qt=cr(ft,Tt.head,re,le,!1);return re<0?{from:Qt,to:Tt.head}:{from:Tt.head,to:Qt}})}),findPosV:function(le,Pe,ft,Tt){var Qt=1,$t=Tt;Pe<0&&(Qt=-1,Pe=-Pe);for(var en=vt(this.doc,le),pn=0;pn<Pe;++pn){var Mn=bn(this,en,"div");if($t==null?$t=Mn.left:Mn.left=$t,en=Cr(this,Mn,Qt,ft),en.hitSide)break}return en},moveV:es(function(re,le){var Pe=this,ft=this.doc,Tt=[],Qt=!this.display.shift&&!ft.extend&&ft.sel.somethingSelected();if(ft.extendSelectionsBy(function(en){if(Qt)return re<0?en.from():en.to();var pn=bn(Pe,en.head,"div");en.goalColumn!=null&&(pn.left=en.goalColumn),Tt.push(pn.left);var Mn=Cr(Pe,pn,re,le);return le=="page"&&en==ft.sel.primary()&&Za(Pe,sn(Pe,Mn,"div").top-pn.top),Mn},ae),Tt.length)for(var $t=0;$t<ft.sel.ranges.length;$t++)ft.sel.ranges[$t].goalColumn=Tt[$t]}),findWordAt:function(le){var Pe=this.doc,ft=je(Pe,le.line).text,Tt=le.ch,Qt=le.ch;if(ft){var $t=this.getHelper(le,"wordChars");(le.sticky=="before"||Qt==ft.length)&&Tt?--Tt:++Qt;for(var en=ft.charAt(Tt),pn=G(en,$t)?function(Mn){return G(Mn,$t)}:/\s/.test(en)?function(Mn){return/\s/.test(Mn)}:function(Mn){return!/\s/.test(Mn)&&!G(Mn)};Tt>0&&pn(ft.charAt(Tt-1));)--Tt;for(;Qt<ft.length&&pn(ft.charAt(Qt));)++Qt}return new ne(Ut(le.line,Tt),Ut(le.line,Qt))},toggleOverwrite:function(le){if(le!=null&&le==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):w(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:es(function(re,le){Oa(this,re,le)}),getScrollInfo:function(){var le=this.display.scroller;return{left:le.scrollLeft,top:le.scrollTop,height:le.scrollHeight-Hn(this)-this.display.barHeight,width:le.scrollWidth-Hn(this)-this.display.barWidth,clientHeight:Zn(this),clientWidth:Yn(this)}},scrollIntoView:es(function(re,le){re==null?(re={from:this.doc.sel.primary().head,to:null},le==null&&(le=this.options.cursorScrollMargin)):typeof re=="number"?re={from:Ut(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=le||0,re.from.line!=null?oo(this,re):Bi(this,re.from,re.to,re.margin)}),setSize:es(function(re,le){var Pe=this,ft=function($t){return typeof $t=="number"||/^\d+$/.test(String($t))?$t+"px":$t};re!=null&&(this.display.wrapper.style.width=ft(re)),le!=null&&(this.display.wrapper.style.height=ft(le)),this.options.lineWrapping&&Nr(this);var Tt=this.display.viewFrom;this.doc.iter(Tt,this.display.viewTo,function(Qt){if(Qt.widgets){for(var $t=0;$t<Qt.widgets.length;$t++)if(Qt.widgets[$t].noHScroll){Ci(Pe,Tt,"widget");break}}++Tt}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(le){return Ho(this,le)},startOperation:function(){return Xa(this)},endOperation:function(){return Qo(this)},refresh:es(function(){var re=this.display.cachedTextHeight;ya(this),this.curOp.forceUpdate=!0,Yt(this),Oa(this,this.doc.scrollLeft,this.doc.scrollTop),bs(this.display),(re==null||Math.abs(re-Ri(this.display))>.5||this.options.lineWrapping)&&qi(this),wt(this,"refresh",this)}),swapDoc:es(function(re){var le=this.doc;return le.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,re),Yt(this),this.display.input.reset(),Oa(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,Gt(this,"swapDoc",this,le),le}),phrase:function(le){var Pe=this.options.phrases;return Pe&&Object.prototype.hasOwnProperty.call(Pe,le)?Pe[le]:le},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}},Ht(P),P.registerHelper=function(re,le,Pe){q.hasOwnProperty(re)||(q[re]=P[re]={_global:[]}),q[re][le]=Pe},P.registerGlobalHelper=function(re,le,Pe,ft){P.registerHelper(re,le,ft),q[re]._global.push({pred:Pe,val:ft})}}function cr(P,W,q,re,le){var Pe=W,ft=q,Tt=je(P,W.line),Qt=le&&P.direction=="rtl"?-q:q;function $t(){var Gi=W.line+Qt;return Gi<P.first||Gi>=P.first+P.size?!1:(W=new Ut(Gi,W.ch,W.sticky),Tt=je(P,Gi))}function en(Gi){var ga;if(re=="codepoint"){var Ea=Tt.text.charCodeAt(W.ch+(re>0?0:-1));isNaN(Ea)?ga=null:ga=new Ut(W.line,Math.max(0,Math.min(Tt.text.length,W.ch+q*(Ea>=55296&&Ea<56320?2:1))),-q)}else le?ga=hu(P.cm,Tt,W,q):ga=Su(Tt,W,q);if(ga==null)if(!Gi&&$t())W=xu(le,P.cm,Tt,W.line,Qt);else return!1;else W=ga;return!0}if(re=="char"||re=="codepoint")en();else if(re=="column")en(!0);else if(re=="word"||re=="group")for(var pn=null,Mn=re=="group",Fn=P.cm&&P.cm.getHelper(W,"wordChars"),vi=!0;!(q<0&&!en(!vi));vi=!1){var ji=Tt.text.charAt(W.ch)||`
|
|
|
`,Ji=G(ji,Fn)?"w":Mn&&ji==`
|
|
|
`?"n":!Mn||/\s/.test(ji)?null:"p";if(Mn&&!vi&&!Ji&&(Ji="s"),pn&&pn!=Ji){q<0&&(q=1,en(),W.sticky="after");break}if(Ji&&(pn=Ji),q>0&&!en(!vi))break}var Qi=ks(P,W,Pe,ft,!0);return ut(Pe,Qi)&&(Qi.hitSide=!0),Qi}function Cr(P,W,q,re){var le=P.doc,Pe=W.left,ft;if(re=="page"){var Tt=Math.min(P.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Qt=Math.max(Tt-.5*Ri(P.display),3);ft=(q>0?W.bottom:W.top)+q*Qt}else re=="line"&&(ft=q>0?W.bottom+3:W.top-3);for(var $t;!($t=$n(P,Pe,ft),!$t.outside);){if(q<0?ft<=0:ft>=le.height){$t.hitSide=!0;break}ft+=q*5}return $t}var Pr=function(W){this.cm=W,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Pr.prototype.init=function(P){var W=this,q=this,re=q.cm,le=q.div=P.lineDiv;vr(le,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function Pe(Tt){for(var Qt=Tt.target;Qt;Qt=Qt.parentNode){if(Qt==le)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Qt.className))break}return!1}Oe(le,"paste",function(Tt){if(!Pe(Tt)||xt(re,Tt)||Et(Tt,re))return;c<=11&&setTimeout(vo(re,function(){return W.updateFromDOM()}),20)}),Oe(le,"compositionstart",function(Tt){W.composing={data:Tt.data,done:!1}}),Oe(le,"compositionupdate",function(Tt){W.composing||(W.composing={data:Tt.data,done:!1})}),Oe(le,"compositionend",function(Tt){W.composing&&(Tt.data!=W.composing.data&&W.readFromDOMSoon(),W.composing.done=!0)}),Oe(le,"touchstart",function(){return q.forceCompositionEnd()}),Oe(le,"input",function(){W.composing||W.readFromDOMSoon()});function ft(Tt){if(!Pe(Tt)||xt(re,Tt))return;if(re.somethingSelected())He({lineWise:!1,text:re.getSelections()}),Tt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var Qt=Nt(re);He({lineWise:!0,text:Qt.text}),Tt.type=="cut"&&re.operation(function(){re.setSelections(Qt.ranges,0,se),re.replaceSelection("",null,"cut")})}else return;if(Tt.clipboardData){Tt.clipboardData.clearData();var $t=Se.text.join(`
|
|
|
`);if(Tt.clipboardData.setData("Text",$t),Tt.clipboardData.getData("Text")==$t){Tt.preventDefault();return}}var en=Ir(),pn=en.firstChild;re.display.lineSpace.insertBefore(en,re.display.lineSpace.firstChild),pn.value=Se.text.join(`
|
|
|
`);var Mn=document.activeElement;j(pn),setTimeout(function(){re.display.lineSpace.removeChild(en),Mn.focus(),Mn==le&&q.showPrimarySelection()},50)}Oe(le,"copy",ft),Oe(le,"cut",ft)},Pr.prototype.screenReaderLabelChanged=function(P){P?this.div.setAttribute("aria-label",P):this.div.removeAttribute("aria-label")},Pr.prototype.prepareSelection=function(){var P=Ya(this.cm,!1);return P.focus=document.activeElement==this.div,P},Pr.prototype.showSelection=function(P,W){if(!P||!this.cm.display.view.length)return;(P.focus||W)&&this.showPrimarySelection(),this.showMultipleSelections(P)},Pr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Pr.prototype.showPrimarySelection=function(){var P=this.getSelection(),W=this.cm,q=W.doc.sel.primary(),re=q.from(),le=q.to();if(W.display.viewTo==W.display.viewFrom||re.line>=W.display.viewTo||le.line<W.display.viewFrom){P.removeAllRanges();return}var Pe=hi(W,P.anchorNode,P.anchorOffset),ft=hi(W,P.focusNode,P.focusOffset);if(Pe&&!Pe.bad&&ft&&!ft.bad&&pt(At(Pe,ft),re)==0&&pt(Zt(Pe,ft),le)==0)return;var Tt=W.display.view,Qt=re.line>=W.display.viewFrom&&an(W,re)||{node:Tt[0].measure.map[2],offset:0},$t=le.line<W.display.viewTo&&an(W,le);if(!$t){var en=Tt[Tt.length-1].measure,pn=en.maps?en.maps[en.maps.length-1]:en.map;$t={node:pn[pn.length-1],offset:pn[pn.length-2]-pn[pn.length-3]}}if(!Qt||!$t){P.removeAllRanges();return}var Mn=P.rangeCount&&P.getRangeAt(0),Fn;try{Fn=D(Qt.node,Qt.offset,$t.offset,$t.node)}catch(vi){}Fn&&(!T&&W.state.focused?(P.collapse(Qt.node,Qt.offset),Fn.collapsed||(P.removeAllRanges(),P.addRange(Fn))):(P.removeAllRanges(),P.addRange(Fn)),Mn&&P.anchorNode==null?P.addRange(Mn):T&&this.startGracePeriod()),this.rememberSelection()},Pr.prototype.startGracePeriod=function(){var P=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){P.gracePeriod=!1,P.selectionChanged()&&P.cm.operation(function(){return P.cm.curOp.selectionChanged=!0})},20)},Pr.prototype.showMultipleSelections=function(P){_(this.cm.display.cursorDiv,P.cursors),_(this.cm.display.selectionDiv,P.selection)},Pr.prototype.rememberSelection=function(){var P=this.getSelection();this.lastAnchorNode=P.anchorNode,this.lastAnchorOffset=P.anchorOffset,this.lastFocusNode=P.focusNode,this.lastFocusOffset=P.focusOffset},Pr.prototype.selectionInEditor=function(){var P=this.getSelection();if(!P.rangeCount)return!1;var W=P.getRangeAt(0).commonAncestorContainer;return N(this.div,W)},Pr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Pr.prototype.blur=function(){this.div.blur()},Pr.prototype.getField=function(){return this.div},Pr.prototype.supportsTouch=function(){return!0},Pr.prototype.receivedFocus=function(){var P=this;this.selectionInEditor()?this.pollSelection():Ho(this.cm,function(){return P.cm.curOp.selectionChanged=!0});function W(){P.cm.state.focused&&(P.pollSelection(),P.polling.set(P.cm.options.pollInterval,W))}this.polling.set(this.cm.options.pollInterval,W)},Pr.prototype.selectionChanged=function(){var P=this.getSelection();return P.anchorNode!=this.lastAnchorNode||P.anchorOffset!=this.lastAnchorOffset||P.focusNode!=this.lastFocusNode||P.focusOffset!=this.lastFocusOffset},Pr.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var P=this.getSelection(),W=this.cm;if(l&&i&&this.cm.display.gutterSpecs.length&&Kn(P.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var q=hi(W,P.anchorNode,P.anchorOffset),re=hi(W,P.focusNode,P.focusOffset);q&&re&&Ho(W,function(){Lo(W.doc,we(q,re),se),(q.bad||re.bad)&&(W.curOp.selectionChanged=!0)})},Pr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var P=this.cm,W=P.display,q=P.doc.sel.primary(),re=q.from(),le=q.to();if(re.ch==0&&re.line>P.firstLine()&&(re=Ut(re.line-1,je(P.doc,re.line-1).length)),le.ch==je(P.doc,le.line).text.length&&le.line<P.lastLine()&&(le=Ut(le.line+1,0)),re.line<W.viewFrom||le.line>W.viewTo-1)return!1;var Pe,ft,Tt;re.line==W.viewFrom||(Pe=Pa(P,re.line))==0?(ft=Xt(W.view[0].line),Tt=W.view[0].node):(ft=Xt(W.view[Pe].line),Tt=W.view[Pe-1].node.nextSibling);var Qt=Pa(P,le.line),$t,en;if(Qt==W.view.length-1?($t=W.viewTo-1,en=W.lineDiv.lastChild):($t=Xt(W.view[Qt+1].line)-1,en=W.view[Qt+1].node.previousSibling),!Tt)return!1;for(var pn=P.doc.splitLines(Oi(P,Tt,en,ft,$t)),Mn=nt(P.doc,Ut(ft,0),Ut($t,je(P.doc,$t).text.length));pn.length>1&&Mn.length>1;)if(de(pn)==de(Mn))pn.pop(),Mn.pop(),$t--;else if(pn[0]==Mn[0])pn.shift(),Mn.shift(),ft++;else break;for(var Fn=0,vi=0,ji=pn[0],Ji=Mn[0],Qi=Math.min(ji.length,Ji.length);Fn<Qi&&ji.charCodeAt(Fn)==Ji.charCodeAt(Fn);)++Fn;for(var Gi=de(pn),ga=de(Mn),Ea=Math.min(Gi.length-(pn.length==1?Fn:0),ga.length-(Mn.length==1?Fn:0));vi<Ea&&Gi.charCodeAt(Gi.length-vi-1)==ga.charCodeAt(ga.length-vi-1);)++vi;if(pn.length==1&&Mn.length==1&&ft==re.line)for(;Fn&&Fn>re.ch&&Gi.charCodeAt(Gi.length-vi-1)==ga.charCodeAt(ga.length-vi-1);)Fn--,vi++;pn[pn.length-1]=Gi.slice(0,Gi.length-vi).replace(/^\u200b+/,""),pn[0]=pn[0].slice(Fn).replace(/\u200b+$/,"");var ro=Ut(ft,Fn),Va=Ut($t,Mn.length?de(Mn).length-vi:0);if(pn.length>1||pn[0]||pt(ro,Va))return Vs(P.doc,pn,ro,Va,"+input"),!0},Pr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Pr.prototype.reset=function(){this.forceCompositionEnd()},Pr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Pr.prototype.readFromDOMSoon=function(){var P=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(P.readDOMTimeout=null,P.composing)if(P.composing.done)P.composing=null;else return;P.updateFromDOM()},80)},Pr.prototype.updateFromDOM=function(){var P=this;(this.cm.isReadOnly()||!this.pollContent())&&Ho(this.cm,function(){return ya(P.cm)})},Pr.prototype.setUneditable=function(P){P.contentEditable="false"},Pr.prototype.onKeyPress=function(P){if(P.charCode==0||this.composing)return;P.preventDefault(),this.cm.isReadOnly()||vo(this.cm,at)(this.cm,String.fromCharCode(P.charCode==null?P.keyCode:P.charCode),0)},Pr.prototype.readOnlyChanged=function(P){this.div.contentEditable=String(P!="nocursor")},Pr.prototype.onContextMenu=function(){},Pr.prototype.resetPosition=function(){},Pr.prototype.needsContentAttribute=!0;function an(P,W){var q=Ei(P,W.line);if(!q||q.hidden)return null;var re=je(P.doc,W.line),le=gi(q,re,W.line),Pe=it(re,P.doc.direction),ft="left";if(Pe){var Tt=Te(Pe,W.ch);ft=Tt%2?"right":"left"}var Qt=Ii(le.map,W.ch,ft);return Qt.offset=Qt.collapse=="right"?Qt.end:Qt.start,Qt}function Kn(P){for(var W=P;W;W=W.parentNode)if(/CodeMirror-gutter-wrapper/.test(W.className))return!0;return!1}function ni(P,W){return W&&(P.bad=!0),P}function Oi(P,W,q,re,le){var Pe="",ft=!1,Tt=P.doc.lineSeparator(),Qt=!1;function $t(Fn){return function(vi){return vi.id==Fn}}function en(){ft&&(Pe+=Tt,Qt&&(Pe+=Tt),ft=Qt=!1)}function pn(Fn){Fn&&(en(),Pe+=Fn)}function Mn(Fn){if(Fn.nodeType==1){var vi=Fn.getAttribute("cm-text");if(vi){pn(vi);return}var ji=Fn.getAttribute("cm-marker"),Ji;if(ji){var Qi=P.findMarks(Ut(re,0),Ut(le+1,0),$t(+ji));Qi.length&&(Ji=Qi[0].find(0))&&pn(nt(P.doc,Ji.from,Ji.to).join(Tt));return}if(Fn.getAttribute("contenteditable")=="false")return;var Gi=/^(pre|div|p|li|table|br)$/i.test(Fn.nodeName);if(!/^br$/i.test(Fn.nodeName)&&Fn.textContent.length==0)return;Gi&&en();for(var ga=0;ga<Fn.childNodes.length;ga++)Mn(Fn.childNodes[ga]);/^(pre|p)$/i.test(Fn.nodeName)&&(Qt=!0),Gi&&(ft=!0)}else Fn.nodeType==3&&pn(Fn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Mn(W),W==q);)W=W.nextSibling,Qt=!1;return Pe}function hi(P,W,q){var re;if(W==P.display.lineDiv){if(re=P.display.lineDiv.childNodes[q],!re)return ni(P.clipPos(Ut(P.display.viewTo-1)),!0);W=null,q=0}else for(re=W;;re=re.parentNode){if(!re||re==P.display.lineDiv)return null;if(re.parentNode&&re.parentNode==P.display.lineDiv)break}for(var le=0;le<P.display.view.length;le++){var Pe=P.display.view[le];if(Pe.node==re)return va(Pe,W,q)}}function va(P,W,q){var re=P.text.firstChild,le=!1;if(!W||!N(re,W))return ni(Ut(Xt(P.line),0),!0);if(W==re&&(le=!0,W=re.childNodes[q],q=0,!W)){var Pe=P.rest?de(P.rest):P.line;return ni(Ut(Xt(Pe),Pe.text.length),le)}var ft=W.nodeType==3?W:null,Tt=W;for(!ft&&W.childNodes.length==1&&W.firstChild.nodeType==3&&(ft=W.firstChild,q&&(q=ft.nodeValue.length));Tt.parentNode!=re;)Tt=Tt.parentNode;var Qt=P.measure,$t=Qt.maps;function en(Ji,Qi,Gi){for(var ga=-1;ga<($t?$t.length:0);ga++)for(var Ea=ga<0?Qt.map:$t[ga],ro=0;ro<Ea.length;ro+=3){var Va=Ea[ro+2];if(Va==Ji||Va==Qi){var xo=Xt(ga<0?P.line:P.rest[ga]),Po=Ea[ro]+Gi;return(Gi<0||Va!=Ji)&&(Po=Ea[ro+(Gi?1:0)]),Ut(xo,Po)}}}var pn=en(ft,Tt,q);if(pn)return ni(pn,le);for(var Mn=Tt.nextSibling,Fn=ft?ft.nodeValue.length-q:0;Mn;Mn=Mn.nextSibling){if(pn=en(Mn,Mn.firstChild,0),pn)return ni(Ut(pn.line,pn.ch-Fn),le);Fn+=Mn.textContent.length}for(var vi=Tt.previousSibling,ji=q;vi;vi=vi.previousSibling){if(pn=en(vi,vi.firstChild,-1),pn)return ni(Ut(pn.line,pn.ch+ji),le);ji+=vi.textContent.length}}var Ki=function(W){this.cm=W,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null};Ki.prototype.init=function(P){var W=this,q=this,re=this.cm;this.createField(P);var le=this.textarea;P.wrapper.insertBefore(this.wrapper,P.wrapper.firstChild),o&&(le.style.width="0px"),Oe(le,"input",function(){h&&c>=9&&W.hasSelection&&(W.hasSelection=null),q.poll()}),Oe(le,"paste",function(ft){if(xt(re,ft)||Et(ft,re))return;re.state.pasteIncoming=+new Date,q.fastPoll()});function Pe(ft){if(xt(re,ft))return;if(re.somethingSelected())He({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var Tt=Nt(re);He({lineWise:!0,text:Tt.text}),ft.type=="cut"?re.setSelections(Tt.ranges,null,se):(q.prevInput="",le.value=Tt.text.join(`
|
|
|
`),j(le))}else return;ft.type=="cut"&&(re.state.cutIncoming=+new Date)}Oe(le,"cut",Pe),Oe(le,"copy",Pe),Oe(P.scroller,"paste",function(ft){if(Nn(P,ft)||xt(re,ft))return;if(!le.dispatchEvent){re.state.pasteIncoming=+new Date,q.focus();return}var Tt=new Event("paste");Tt.clipboardData=ft.clipboardData,le.dispatchEvent(Tt)}),Oe(P.lineSpace,"selectstart",function(ft){Nn(P,ft)||Je(ft)}),Oe(le,"compositionstart",function(){var ft=re.getCursor("from");q.composing&&q.composing.range.clear(),q.composing={start:ft,range:re.markText(ft,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Oe(le,"compositionend",function(){q.composing&&(q.poll(),q.composing.range.clear(),q.composing=null)})},Ki.prototype.createField=function(P){this.wrapper=Ir(),this.textarea=this.wrapper.firstChild},Ki.prototype.screenReaderLabelChanged=function(P){P?this.textarea.setAttribute("aria-label",P):this.textarea.removeAttribute("aria-label")},Ki.prototype.prepareSelection=function(){var P=this.cm,W=P.display,q=P.doc,re=Ya(P);if(P.options.moveInputWithCursor){var le=bn(P,q.sel.primary().head,"div"),Pe=W.wrapper.getBoundingClientRect(),ft=W.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(W.wrapper.clientHeight-10,le.top+ft.top-Pe.top)),re.teLeft=Math.max(0,Math.min(W.wrapper.clientWidth-10,le.left+ft.left-Pe.left))}return re},Ki.prototype.showSelection=function(P){var W=this.cm,q=W.display;_(q.cursorDiv,P.cursors),_(q.selectionDiv,P.selection),P.teTop!=null&&(this.wrapper.style.top=P.teTop+"px",this.wrapper.style.left=P.teLeft+"px")},Ki.prototype.reset=function(P){if(this.contextMenuPending||this.composing)return;var W=this.cm;if(W.somethingSelected()){this.prevInput="";var q=W.getSelection();this.textarea.value=q,W.state.focused&&j(this.textarea),h&&c>=9&&(this.hasSelection=q)}else P||(this.prevInput=this.textarea.value="",h&&c>=9&&(this.hasSelection=null))},Ki.prototype.getField=function(){return this.textarea},Ki.prototype.supportsTouch=function(){return!1},Ki.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!u||M()!=this.textarea))try{this.textarea.focus()}catch(P){}},Ki.prototype.blur=function(){this.textarea.blur()},Ki.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ki.prototype.receivedFocus=function(){this.slowPoll()},Ki.prototype.slowPoll=function(){var P=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){P.poll(),P.cm.state.focused&&P.slowPoll()})},Ki.prototype.fastPoll=function(){var P=!1,W=this;W.pollingFast=!0;function q(){var re=W.poll();!re&&!P?(P=!0,W.polling.set(60,q)):(W.pollingFast=!1,W.slowPoll())}W.polling.set(20,q)},Ki.prototype.poll=function(){var P=this,W=this.cm,q=this.textarea,re=this.prevInput;if(this.contextMenuPending||!W.state.focused||ar(q)&&!re&&!this.composing||W.isReadOnly()||W.options.disableInput||W.state.keySeq)return!1;var le=q.value;if(le==re&&!W.somethingSelected())return!1;if(h&&c>=9&&this.hasSelection===le||f&&/[\uf700-\uf7ff]/.test(le))return W.display.input.reset(),!1;if(W.doc.sel==W.display.selForContextMenu){var Pe=le.charCodeAt(0);if(Pe==8203&&!re&&(re="\u200B"),Pe==8666)return this.reset(),this.cm.execCommand("undo")}for(var ft=0,Tt=Math.min(re.length,le.length);ft<Tt&&re.charCodeAt(ft)==le.charCodeAt(ft);)++ft;return Ho(W,function(){at(W,le.slice(ft),re.length-ft,null,P.composing?"*compose":null),le.length>1e3||le.indexOf(`
|
|
|
`)>-1?q.value=P.prevInput="":P.prevInput=le,P.composing&&(P.composing.range.clear(),P.composing.range=W.markText(P.composing.start,W.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ki.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ki.prototype.onKeyPress=function(){h&&c>=9&&(this.hasSelection=null),this.fastPoll()},Ki.prototype.onContextMenu=function(P){var W=this,q=W.cm,re=q.display,le=W.textarea;W.contextMenuPending&&W.contextMenuPending();var Pe=Yi(q,P),ft=re.scroller.scrollTop;if(!Pe||n)return;var Tt=q.options.resetSelectionOnContextMenu;Tt&&q.doc.sel.contains(Pe)==-1&&vo(q,Lo)(q.doc,we(Pe),se);var Qt=le.style.cssText,$t=W.wrapper.style.cssText,en=W.wrapper.offsetParent.getBoundingClientRect();W.wrapper.style.cssText="position: static",le.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(P.clientY-en.top-5)+"px; left: "+(P.clientX-en.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 pn;a&&(pn=window.scrollY),re.input.focus(),a&&window.scrollTo(null,pn),re.input.reset(),q.somethingSelected()||(le.value=W.prevInput=" "),W.contextMenuPending=Fn,re.selForContextMenu=q.doc.sel,clearTimeout(re.detectingSelectAll);function Mn(){if(le.selectionStart!=null){var ji=q.somethingSelected(),Ji="\u200B"+(ji?le.value:"");le.value="\u21DA",le.value=Ji,W.prevInput=ji?"":"\u200B",le.selectionStart=1,le.selectionEnd=Ji.length,re.selForContextMenu=q.doc.sel}}function Fn(){if(W.contextMenuPending!=Fn)return;if(W.contextMenuPending=!1,W.wrapper.style.cssText=$t,le.style.cssText=Qt,h&&c<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=ft),le.selectionStart!=null){(!h||h&&c<9)&&Mn();var ji=0,Ji=function Qi(){re.selForContextMenu==q.doc.sel&&le.selectionStart==0&&le.selectionEnd>0&&W.prevInput=="\u200B"?vo(q,Bs)(q):ji++<10?re.detectingSelectAll=setTimeout(Qi,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(Ji,200)}}if(h&&c>=9&&Mn(),x){bt(P);var vi=function ji(){Ge(window,"mouseup",ji),setTimeout(Fn,20)};Oe(window,"mouseup",vi)}else setTimeout(Fn,50)},Ki.prototype.readOnlyChanged=function(P){P||this.reset(),this.textarea.disabled=P=="nocursor",this.textarea.readOnly=!!P},Ki.prototype.setUneditable=function(){},Ki.prototype.needsContentAttribute=!1;function La(P,W){if(W=W?K(W):{},W.value=P.value,!W.tabindex&&P.tabIndex&&(W.tabindex=P.tabIndex),!W.placeholder&&P.placeholder&&(W.placeholder=P.placeholder),W.autofocus==null){var q=M();W.autofocus=q==P||P.getAttribute("autofocus")!=null&&q==document.body}function re(){P.value=Tt.getValue()}var le;if(P.form&&(Oe(P.form,"submit",re),!W.leaveSubmitMethodAlone)){var Pe=P.form;le=Pe.submit;try{var ft=Pe.submit=function(){re(),Pe.submit=le,Pe.submit(),Pe.submit=ft}}catch(Qt){}}W.finishInit=function(Qt){Qt.save=re,Qt.getTextArea=function(){return P},Qt.toTextArea=function(){Qt.toTextArea=isNaN,re(),P.parentNode.removeChild(Qt.getWrapperElement()),P.style.display="",P.form&&(Ge(P.form,"submit",re),!W.leaveSubmitMethodAlone&&typeof P.form.submit=="function"&&(P.form.submit=le))}},P.style.display="none";var Tt=dr(function(Qt){return P.parentNode.insertBefore(Qt,P.nextSibling)},W);return Tt}function ba(P){P.off=Ge,P.on=Oe,P.wheelEventPixels=tn,P.Doc=Zs,P.splitLines=Kr,P.countColumn=U,P.findColumn=ge,P.isWordChar=X,P.Pass=J,P.signal=wt,P.Line=Pi,P.changeEnd=Be,P.scrollbarModel=cs,P.Pos=Ut,P.cmpPos=pt,P.modes=Qe,P.mimeModes=qt,P.resolveMode=hr,P.getMode=vn,P.modeExtensions=Zr,P.extendMode=Ln,P.copyState=$e,P.startState=Ee,P.innerMode=tt,P.commands=Ul,P.keyMap=xl,P.keyName=du,P.isModifierKey=tu,P.lookupKey=vl,P.normalizeKeyMap=dl,P.StringStream=Re,P.SharedTextMarker=Bl,P.TextMarker=cl,P.LineWidget=Ys,P.e_preventDefault=Je,P.e_stopPropagation=ye,P.e_stop=bt,P.addClass=F,P.contains=N,P.rmClass=w,P.keyNames=gl}Ue(dr),mr(dr);var Ia="iter insert remove copy getEditor constructor".split(" ");for(var lo in Zs.prototype)Zs.prototype.hasOwnProperty(lo)&&V(Ia,lo)<0&&(dr.prototype[lo]=function(P){return function(){return P.apply(this.doc,arguments)}}(Zs.prototype[lo]));return Ht(Zs),dr.inputStyles={textarea:Ki,contenteditable:Pr},dr.defineMode=function(P){!dr.defaults.mode&&P!="null"&&(dr.defaults.mode=P),Sr.apply(this,arguments)},dr.defineMIME=Ar,dr.defineMode("null",function(){return{token:function(W){return W.skipToEnd()}}}),dr.defineMIME("text/plain","null"),dr.defineExtension=function(P,W){dr.prototype[P]=W},dr.defineDocExtension=function(P,W){Zs.prototype[P]=W},dr.fromTextArea=La,ba(dr),dr.version="5.58.2",dr})},Vy0f:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("iYpf"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},W2nI:function(H,k,d){var I=d("IwbS"),E=d("ProS"),T=d("bYtY"),g=["itemStyle","opacity"],S=["emphasis","itemStyle","opacity"],m=["lineStyle","opacity"],h=["emphasis","lineStyle","opacity"];function c(s,e){return s.getVisual("opacity")||s.getModel().get(e)}function a(s,e,o){var l=s.getGraphicEl(),u=c(s,e);o!=null&&(u==null&&(u=1),u*=o),l.downplay&&l.downplay(),l.traverse(function(f){f.type!=="group"&&f.setStyle("opacity",u)})}function r(s,e){var o=c(s,e),l=s.getGraphicEl();l.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",o)}),l.highlight&&l.highlight()}var i=I.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(s,e){var o=e.extent;s.moveTo(e.x1,e.y1),s.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),e.orient==="vertical"?(s.lineTo(e.x2+o,e.y2),s.bezierCurveTo(e.cpx2+o,e.cpy2,e.cpx1+o,e.cpy1,e.x1+o,e.y1)):(s.lineTo(e.x2,e.y2+o),s.bezierCurveTo(e.cpx2,e.cpy2+o,e.cpx1,e.cpy1+o,e.x1,e.y1+o)),s.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=E.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(s,e,o){var l=this,u=s.getGraph(),f=this.group,p=s.layoutInfo,v=p.width,A=p.height,y=s.getData(),x=s.getData("edge"),C=s.get("orient");this._model=s,f.removeAll(),f.attr("position",[p.x,p.y]),u.eachEdge(function(w){var b=new i;b.dataIndex=w.dataIndex,b.seriesIndex=s.seriesIndex,b.dataType="edge";var _=w.getModel("lineStyle"),O=_.get("curveness"),L=w.node1.getLayout(),D=w.node1.getModel(),N=D.get("localX"),M=D.get("localY"),F=w.node2.getLayout(),R=w.node2.getModel(),j=R.get("localX"),B=R.get("localY"),K=w.getLayout(),U,z,V,Y,J,se,$,ae;b.shape.extent=Math.max(1,K.dy),b.shape.orient=C,C==="vertical"?(U=(N!=null?N*v:L.x)+K.sy,z=(M!=null?M*A:L.y)+L.dy,V=(j!=null?j*v:F.x)+K.ty,Y=B!=null?B*A:F.y,J=U,se=z*(1-O)+Y*O,$=V,ae=z*O+Y*(1-O)):(U=(N!=null?N*v:L.x)+L.dx,z=(M!=null?M*A:L.y)+K.sy,V=j!=null?j*v:F.x,Y=(B!=null?B*A:F.y)+K.ty,J=U*(1-O)+V*O,se=z,$=U*O+V*(1-O),ae=Y),b.setShape({x1:U,y1:z,x2:V,y2:Y,cpx1:J,cpy1:se,cpx2:$,cpy2:ae}),b.setStyle(_.getItemStyle());switch(b.style.fill){case"source":b.style.fill=w.node1.getVisual("color");break;case"target":b.style.fill=w.node2.getVisual("color");break}I.setHoverStyle(b,w.getModel("emphasis.lineStyle").getItemStyle()),f.add(b),x.setItemGraphicEl(w.dataIndex,b)}),u.eachNode(function(w){var b=w.getLayout(),_=w.getModel(),O=_.get("localX"),L=_.get("localY"),D=_.getModel("label"),N=_.getModel("emphasis.label"),M=new I.Rect({shape:{x:O!=null?O*v:b.x,y:L!=null?L*A:b.y,width:b.dx,height:b.dy},style:_.getModel("itemStyle").getItemStyle()}),F=w.getModel("emphasis.itemStyle").getItemStyle();I.setLabelStyle(M.style,F,D,N,{labelFetcher:s,labelDataIndex:w.dataIndex,defaultText:w.id,isRectText:!0}),M.setStyle("fill",w.getVisual("color")),I.setHoverStyle(M,F),f.add(M),y.setItemGraphicEl(w.dataIndex,M),M.dataType="node"}),y.eachItemGraphicEl(function(w,b){var _=y.getItemModel(b);_.get("draggable")&&(w.drift=function(O,L){l._focusAdjacencyDisabled=!0,this.shape.x+=O,this.shape.y+=L,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:s.id,dataIndex:y.getRawIndex(b),localX:this.shape.x/v,localY:this.shape.y/A})},w.ondragend=function(){l._focusAdjacencyDisabled=!1},w.draggable=!0,w.cursor="move"),w.highlight=function(){this.trigger("emphasis")},w.downplay=function(){this.trigger("normal")},w.focusNodeAdjHandler&&w.off("mouseover",w.focusNodeAdjHandler),w.unfocusNodeAdjHandler&&w.off("mouseout",w.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(w.on("mouseover",w.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,dataIndex:w.dataIndex}))}),w.on("mouseout",w.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(o)}))}),x.eachItemGraphicEl(function(w,b){var _=x.getItemModel(b);w.focusNodeAdjHandler&&w.off("mouseover",w.focusNodeAdjHandler),w.unfocusNodeAdjHandler&&w.off("mouseout",w.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(w.on("mouseover",w.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,edgeDataIndex:w.dataIndex}))}),w.on("mouseout",w.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(o)}))}),!this._data&&s.get("animation")&&f.setClipPath(t(f.getBoundingRect(),s,function(){f.removeClipPath()})),this._data=s.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(s){var e=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){e._unfocusDelayTimer=null,s.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(s,e,o,l){var u=s.getData(),f=u.graph,p=l.dataIndex,v=u.getItemModel(p),A=l.edgeDataIndex;if(p==null&&A==null)return;var y=f.getNodeByIndex(p),x=f.getEdgeByIndex(A);if(f.eachNode(function(w){a(w,g,.1)}),f.eachEdge(function(w){a(w,m,.1)}),y){r(y,S);var C=v.get("focusNodeAdjacency");C==="outEdges"?T.each(y.outEdges,function(w){if(w.dataIndex<0)return;r(w,h),r(w.node2,S)}):C==="inEdges"?T.each(y.inEdges,function(w){if(w.dataIndex<0)return;r(w,h),r(w.node1,S)}):C==="allEdges"&&T.each(y.edges,function(w){if(w.dataIndex<0)return;r(w,h),w.node1!==y&&r(w.node1,S),w.node2!==y&&r(w.node2,S)})}x&&(r(x,h),r(x.node1,S),r(x.node2,S))},unfocusNodeAdjacency:function(s,e,o,l){var u=s.getGraph();u.eachNode(function(f){a(f,g)}),u.eachEdge(function(f){a(f,m)})}});function t(s,e,o){var l=new I.Rect({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return I.initProps(l,{shape:{width:s.width+20}},e,o),l}H.exports=n},W4dC:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=T.each,S=T.createHashMap,m=d("7DRL"),h=d("TIY9"),c=d("yS9w"),a=d("mFDi"),r={geoJSON:h,svg:c},i={load:function(e,o,l){var u=[],f=S(),p=S(),v,A=s(e);return g(A,function(y){var x=r[y.type].load(e,y,l);g(x.regions,function(w){var b=w.name;o&&o.hasOwnProperty(b)&&(w=w.cloneShallow(b=o[b])),u.push(w),f.set(b,w),p.set(b,w.center)});var C=x.boundingRect;C&&(v?v.union(C):v=C.clone())}),{regions:u,regionsMap:f,nameCoordMap:p,boundingRect:v||new a(0,0,0,0)}},makeGraphic:n("makeGraphic"),removeGraphic:n("removeGraphic")};function n(e){return function(o,l){var u=s(o),f=[];return g(u,function(p){var v=r[p.type][e];v&&f.push(v(o,p,l))}),f}}function t(e){}function s(e){var o=m.retrieveMap(e)||[];return o}H.exports=i},WGYa:function(H,k,d){var I=d("7yuC"),E=I.forceLayout,T=d("HF/U"),g=T.simpleLayout,S=d("lOQZ"),m=S.circularLayout,h=d("OELB"),c=h.linearMap,a=d("QBsz"),r=d("bYtY");function i(n){n.eachSeriesByType("graph",function(t){var s=t.coordinateSystem;if(s&&s.type!=="view")return;if(t.get("layout")==="force"){var e=t.preservedPoints||{},o=t.getGraph(),l=o.data,u=o.edgeData,f=t.getModel("force"),p=f.get("initLayout");t.preservedPoints?l.each(function(D){var N=l.getId(D);l.setItemLayout(D,e[N]||[NaN,NaN])}):!p||p==="none"?g(t):p==="circular"&&m(t,"value");var v=l.getDataExtent("value"),A=u.getDataExtent("value"),y=f.get("repulsion"),x=f.get("edgeLength");r.isArray(y)||(y=[y,y]),r.isArray(x)||(x=[x,x]),x=[x[1],x[0]];var C=l.mapArray("value",function(D,N){var M=l.getItemLayout(N),F=c(D,v,y);return isNaN(F)&&(F=(y[0]+y[1])/2),{w:F,rep:F,fixed:l.getItemModel(N).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),w=u.mapArray("value",function(D,N){var M=o.getEdgeByIndex(N),F=c(D,A,x);isNaN(F)&&(F=(x[0]+x[1])/2);var R=M.getModel();return{n1:C[M.node1.dataIndex],n2:C[M.node2.dataIndex],d:F,curveness:R.get("lineStyle.curveness")||0,ignoreForceLayout:R.get("ignoreForceLayout")}}),s=t.coordinateSystem,b=s.getBoundingRect(),_=E(C,w,{rect:b,gravity:f.get("gravity"),friction:f.get("friction")}),O=_.step;_.step=function(D){for(var N=0,M=C.length;N<M;N++)C[N].fixed&&a.copy(C[N].p,o.getNodeByIndex(N).getLayout());O(function(F,R,j){for(var B=0,K=F.length;B<K;B++)F[B].fixed||o.getNodeByIndex(B).setLayout(F[B].p),e[l.getId(B)]=F[B].p;for(var B=0,K=R.length;B<K;B++){var U=R[B],z=o.getEdgeByIndex(B),V=U.n1.p,Y=U.n2.p,J=z.getLayout();J=J?J.slice():[],J[0]=J[0]||[],J[1]=J[1]||[],a.copy(J[0],V),a.copy(J[1],Y),+U.curveness&&(J[2]=[(V[0]+Y[0])/2-(V[1]-Y[1])*U.curveness,(V[1]+Y[1])/2-(Y[0]-V[0])*U.curveness]),z.setLayout(J)}D&&D(j)})},t.forceLayout=_,t.preservedPoints=e,_.step()}else t.forceLayout=null})}H.exports=i},WKfj:function(H,k,d){"use strict";d.d(k,"d",function(){return E}),d.d(k,"e",function(){return T}),d.d(k,"f",function(){return g}),d.d(k,"c",function(){return S}),d.d(k,"b",function(){return h}),d.d(k,"a",function(){return a});var I=d("KQm4");function E(r){return Array.isArray(r)?r:r!==void 0?[r]:[]}function T(r,i){var n=i.labelInValue,t=i.combobox;if(r===void 0||r===""&&t)return[];var s=Array.isArray(r)?r:[r];return n?s.map(function(e){var o=e.key,l=e.value;return l!==void 0?l:o}):s}function g(r,i){var n=i.optionLabelProp,t=i.labelInValue,s=i.prevValue,e=i.options,o=i.getLabeledValue,l=r;return t&&(l=l.map(function(u){return o(u,{options:e,prevValue:s,labelInValue:t,optionLabelProp:n})})),l}function S(r,i){var n=Object(I.a)(i),t;for(t=r.length-1;t>=0&&r[t].disabled;t-=1);var s=null;return t!==-1&&(s=n[t],n.splice(t,1)),{values:n,removedValue:s}}var m=typeof window!="undefined"&&window.document&&window.document.documentElement,h=m,c=0;function a(){var r;return h?(r=c,c+=1):r="TEST_OR_SSR",r}},"WN+l":function(H,k,d){var I=d("bYtY"),E=d("IwbS");function T(S,m,h,c){var a=h.axis;if(a.scale.isBlank())return;var r=h.getModel("splitArea"),i=r.getModel("areaStyle"),n=i.get("color"),t=c.coordinateSystem.getRect(),s=a.getTicksCoords({tickModel:r,clamp:!0});if(!s.length)return;var e=n.length,o=S.__splitAreaColors,l=I.createHashMap(),u=0;if(o)for(var f=0;f<s.length;f++){var p=o.get(s[f].tickValue);if(p!=null){u=(p+(e-1)*f)%e;break}}var v=a.toGlobalCoord(s[0].coord),A=i.getAreaStyle();n=I.isArray(n)?n:[n];for(var f=1;f<s.length;f++){var y=a.toGlobalCoord(s[f].coord),x,C,w,b;a.isHorizontal()?(x=v,C=t.y,w=y-x,b=t.height,v=x+w):(x=t.x,C=v,w=t.width,b=y-C,v=C+b);var _=s[f-1].tickValue;_!=null&&l.set(_,u),m.add(new E.Rect({anid:_!=null?"area_"+_:null,shape:{x,y:C,width:w,height:b},style:I.defaults({fill:n[u]},A),silent:!0})),u=(u+1)%e}S.__splitAreaColors=l}function g(S){S.__splitAreaColors=null}k.rectCoordAxisBuildSplitArea=T,k.rectCoordAxisHandleRemove=g},WXVj:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("Bqw1")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="MinusSquareOutlined";var c=g.forwardRef(h);k.default=c},WYAk:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){(function(){var E=I,T=E.lib,g=T.Base,S=E.enc,m=S.Utf8,h=E.algo,c=h.HMAC=g.extend({init:function(r,i){r=this._hasher=new r.init,typeof i=="string"&&(i=m.parse(i));var n=r.blockSize,t=n*4;i.sigBytes>t&&(i=r.finalize(i)),i.clamp();for(var s=this._oKey=i.clone(),e=this._iKey=i.clone(),o=s.words,l=e.words,u=0;u<n;u++)o[u]^=1549556828,l[u]^=909522486;s.sigBytes=e.sigBytes=t,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var i=this._hasher,n=i.finalize(r);i.reset();var t=i.finalize(this._oKey.clone().concat(n));return t}})})()})},WaYH:function(H,k,d){"use strict";var I=d("rePB"),E=d("Ff2n"),T=d("VTBJ"),g=d("1OyB"),S=d("vuIU"),m=d("JX7q"),h=d("Ji7U"),c=d("LK+K"),a=d("q1tI"),r=d("TSYQ"),i=d.n(r),n=d("sboe"),t=d("OZM5"),s=function(x){var C=x.prefixCls,w=x.level,b=x.isStart,_=x.isEnd;if(!w)return null;for(var O="".concat(C,"-indent-unit"),L=[],D=0;D<w;D+=1){var N;L.push(a.createElement("span",{key:D,className:i()(O,(N={},Object(I.a)(N,"".concat(O,"-start"),b[D+1]),Object(I.a)(N,"".concat(O,"-end"),_[D+1]),Object(I.a)(N,"".concat(O,"-end-first-level"),!D&&_[0]),N))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(C,"-indent")},L)},e=s,o=d("815F"),l="open",u="close",f="---",p=function(y){Object(h.a)(C,y);var x=Object(c.a)(C);function C(){var w;return Object(g.a)(this,C),w=x.apply(this,arguments),w.state={dragNodeHighlight:!1},w.onSelectorClick=function(b){var _=w.props.context.onNodeClick;_(b,Object(o.b)(w.props)),w.isSelectable()?w.onSelect(b):w.onCheck(b)},w.onSelectorDoubleClick=function(b){var _=w.props.context.onNodeDoubleClick;_(b,Object(o.b)(w.props))},w.onSelect=function(b){if(w.isDisabled())return;var _=w.props.context.onNodeSelect;b.preventDefault(),_(b,Object(o.b)(w.props))},w.onCheck=function(b){if(w.isDisabled())return;var _=w.props,O=_.disableCheckbox,L=_.checked,D=w.props.context.onNodeCheck;if(!w.isCheckable()||O)return;b.preventDefault();var N=!L;D(b,Object(o.b)(w.props),N)},w.onMouseEnter=function(b){var _=w.props.context.onNodeMouseEnter;_(b,Object(o.b)(w.props))},w.onMouseLeave=function(b){var _=w.props.context.onNodeMouseLeave;_(b,Object(o.b)(w.props))},w.onContextMenu=function(b){var _=w.props.context.onNodeContextMenu;_(b,Object(o.b)(w.props))},w.onDragStart=function(b){var _=w.props.context.onNodeDragStart;b.stopPropagation(),w.setState({dragNodeHighlight:!0}),_(b,Object(m.a)(w));try{b.dataTransfer.setData("text/plain","")}catch(O){}},w.onDragEnter=function(b){var _=w.props.context.onNodeDragEnter;b.preventDefault(),b.stopPropagation(),_(b,Object(m.a)(w))},w.onDragOver=function(b){var _=w.props.context.onNodeDragOver;b.preventDefault(),b.stopPropagation(),_(b,Object(m.a)(w))},w.onDragLeave=function(b){var _=w.props.context.onNodeDragLeave;b.stopPropagation(),_(b,Object(m.a)(w))},w.onDragEnd=function(b){var _=w.props.context.onNodeDragEnd;b.stopPropagation(),w.setState({dragNodeHighlight:!1}),_(b,Object(m.a)(w))},w.onDrop=function(b){var _=w.props.context.onNodeDrop;b.preventDefault(),b.stopPropagation(),w.setState({dragNodeHighlight:!1}),_(b,Object(m.a)(w))},w.onExpand=function(b){var _=w.props.context.onNodeExpand;_(b,Object(o.b)(w.props))},w.setSelectHandle=function(b){w.selectHandle=b},w.getNodeState=function(){var b=w.props.expanded;return w.isLeaf()?null:b?l:u},w.hasChildren=function(){var b=w.props.eventKey,_=w.props.context.keyEntities,O=_[b]||{},L=O.children;return!!(L||[]).length},w.isLeaf=function(){var b=w.props,_=b.isLeaf,O=b.loaded,L=w.props.context.loadData,D=w.hasChildren();return _===!1?!1:_||!L&&!D||L&&O&&!D},w.isDisabled=function(){var b=w.props.disabled,_=w.props.context.disabled;return!!(_||b)},w.isCheckable=function(){var b=w.props.checkable,_=w.props.context.checkable;return!_||b===!1?!1:_},w.syncLoadData=function(b){var _=b.expanded,O=b.loading,L=b.loaded,D=w.props.context,N=D.loadData,M=D.onNodeLoad;if(O)return;N&&_&&!w.isLeaf()&&(!w.hasChildren()&&!L&&M(Object(o.b)(w.props)))},w.renderSwitcher=function(){var b=w.props,_=b.expanded,O=b.switcherIcon,L=w.props.context,D=L.prefixCls,N=L.switcherIcon,M=O||N;if(w.isLeaf())return a.createElement("span",{className:i()("".concat(D,"-switcher"),"".concat(D,"-switcher-noop"))},typeof M=="function"?M(Object(T.a)(Object(T.a)({},w.props),{},{isLeaf:!0})):M);var F=i()("".concat(D,"-switcher"),"".concat(D,"-switcher_").concat(_?l:u));return a.createElement("span",{onClick:w.onExpand,className:F},typeof M=="function"?M(Object(T.a)(Object(T.a)({},w.props),{},{isLeaf:!1})):M)},w.renderCheckbox=function(){var b=w.props,_=b.checked,O=b.halfChecked,L=b.disableCheckbox,D=w.props.context.prefixCls,N=w.isDisabled(),M=w.isCheckable();if(!M)return null;var F=typeof M!="boolean"?M:null;return a.createElement("span",{className:i()("".concat(D,"-checkbox"),_&&"".concat(D,"-checkbox-checked"),!_&&O&&"".concat(D,"-checkbox-indeterminate"),(N||L)&&"".concat(D,"-checkbox-disabled")),onClick:w.onCheck},F)},w.renderIcon=function(){var b=w.props.loading,_=w.props.context.prefixCls;return a.createElement("span",{className:i()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(w.getNodeState()||"docu"),b&&"".concat(_,"-icon_loading"))})},w.renderSelector=function(){var b=w.state.dragNodeHighlight,_=w.props,O=_.title,L=_.selected,D=_.icon,N=_.loading,M=_.data,F=w.props.context,R=F.prefixCls,j=F.showIcon,B=F.icon,K=F.draggable,U=F.loadData,z=F.titleRender,V=w.isDisabled(),Y="".concat(R,"-node-content-wrapper"),J;if(j){var se=D||B;J=se?a.createElement("span",{className:i()("".concat(R,"-iconEle"),"".concat(R,"-icon__customize"))},typeof se=="function"?se(w.props):se):w.renderIcon()}else U&&N&&(J=w.renderIcon());var $;typeof O=="function"?$=O(M):z?$=z(M):$=O;var ae=a.createElement("span",{className:"".concat(R,"-title")},$);return a.createElement("span",{ref:w.setSelectHandle,title:typeof O=="string"?O:"",className:i()("".concat(Y),"".concat(Y,"-").concat(w.getNodeState()||"normal"),!V&&(L||b)&&"".concat(R,"-node-selected"),!V&&K&&"draggable"),draggable:!V&&K||void 0,"aria-grabbed":!V&&K||void 0,onMouseEnter:w.onMouseEnter,onMouseLeave:w.onMouseLeave,onContextMenu:w.onContextMenu,onClick:w.onSelectorClick,onDoubleClick:w.onSelectorDoubleClick,onDragStart:K?w.onDragStart:void 0},J,ae)},w}return Object(S.a)(C,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var b=this.props.selectable,_=this.props.context.selectable;return typeof b=="boolean"?b:_}},{key:"render",value:function(){var b,_=this.props,O=_.eventKey,L=_.className,D=_.style,N=_.dragOver,M=_.dragOverGapTop,F=_.dragOverGapBottom,R=_.isLeaf,j=_.isStart,B=_.isEnd,K=_.expanded,U=_.selected,z=_.checked,V=_.halfChecked,Y=_.loading,J=_.domRef,se=_.active,$=_.onMouseMove,ae=Object(E.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ge=this.props.context,pe=ge.prefixCls,Ne=ge.filterTreeNode,de=ge.draggable,Le=ge.keyEntities,Q=this.isDisabled(),ce=Object(t.f)(ae),Ke=Le[O]||{},ee=Ke.level,X=B[B.length-1];return a.createElement("div",Object.assign({ref:J,className:i()(L,"".concat(pe,"-treenode"),(b={},Object(I.a)(b,"".concat(pe,"-treenode-disabled"),Q),Object(I.a)(b,"".concat(pe,"-treenode-switcher-").concat(K?"open":"close"),!R),Object(I.a)(b,"".concat(pe,"-treenode-checkbox-checked"),z),Object(I.a)(b,"".concat(pe,"-treenode-checkbox-indeterminate"),V),Object(I.a)(b,"".concat(pe,"-treenode-selected"),U),Object(I.a)(b,"".concat(pe,"-treenode-loading"),Y),Object(I.a)(b,"".concat(pe,"-treenode-active"),se),Object(I.a)(b,"".concat(pe,"-treenode-leaf-last"),X),Object(I.a)(b,"drag-over",!Q&&N),Object(I.a)(b,"drag-over-gap-top",!Q&&M),Object(I.a)(b,"drag-over-gap-bottom",!Q&&F),Object(I.a)(b,"filter-node",Ne&&Ne(Object(o.b)(this.props))),b)),style:D,onDragEnter:de?this.onDragEnter:void 0,onDragOver:de?this.onDragOver:void 0,onDragLeave:de?this.onDragLeave:void 0,onDrop:de?this.onDrop:void 0,onDragEnd:de?this.onDragEnd:void 0,onMouseMove:$},ce),a.createElement(e,{prefixCls:pe,level:ee,isStart:j,isEnd:B}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),C}(a.Component),v=function(x){return a.createElement(n.a.Consumer,null,function(C){return a.createElement(p,Object.assign({},x,{context:C}))})};v.displayName="TreeNode",v.defaultProps={title:f},v.isTreeNode=1;var A=k.a=v},Wqna:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=T.isObject,S=T.each,m=T.map,h=T.indexOf,c=T.retrieve,a=d("+TT/"),r=a.getLayoutRect,i=d("aX7z"),n=i.createScaleByModel,t=i.ifAxisCrossZero,s=i.niceScaleExtent,e=i.estimateLabelUnionRect,o=d("y+lR"),l=d("7AJT"),u=d("IDmD"),f=d("7hqr"),p=f.getStackedDimension;d("jtI2");function v(D,N,M){return D.getCoordSysModel()===N}function A(D,N,M){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(D,N,M),this.model=D}var y=A.prototype;y.type="grid",y.axisPointerEnabled=!0,y.getRect=function(){return this._rect},y.update=function(D,N){var M=this._axesMap;this._updateScale(D,this.model),S(M.x,function(R){s(R.scale,R.model)}),S(M.y,function(R){s(R.scale,R.model)});var F={};S(M.x,function(R){x(M,"y",R,F)}),S(M.y,function(R){x(M,"x",R,F)}),this.resize(this.model,N)};function x(D,N,M,F){M.getAxesOnZeroOf=function(){return j?[j]:[]};var R=D[N],j,B=M.model,K=B.get("axisLine.onZero"),U=B.get("axisLine.onZeroAxisIndex");if(!K)return;if(U!=null)C(R[U])&&(j=R[U]);else for(var z in R)if(R.hasOwnProperty(z)&&C(R[z])&&!F[V(R[z])]){j=R[z];break}j&&(F[V(j)]=!0);function V(Y){return Y.dim+"_"+Y.index}}function C(D){return D&&D.type!=="category"&&D.type!=="time"&&t(D)}y.resize=function(D,N,M){var F=r(D.getBoxLayoutParams(),{width:N.getWidth(),height:N.getHeight()});this._rect=F;var R=this._axesList;j(),!M&&D.get("containLabel")&&(S(R,function(B){if(!B.model.get("axisLabel.inside")){var K=e(B);if(K){var U=B.isHorizontal()?"height":"width",z=B.model.get("axisLabel.margin");F[U]-=K[U]+z,B.position==="top"?F.y+=K.height+z:B.position==="left"&&(F.x+=K.width+z)}}}),j());function j(){S(R,function(B){var K=B.isHorizontal(),U=K?[0,F.width]:[0,F.height],z=B.inverse?1:0;B.setExtent(U[z],U[1-z]),w(B,K?F.x:F.y)})}},y.getAxis=function(D,N){var M=this._axesMap[D];if(M!=null){if(N==null){for(var F in M)if(M.hasOwnProperty(F))return M[F]}return M[N]}},y.getAxes=function(){return this._axesList.slice()},y.getCartesian=function(D,N){if(D!=null&&N!=null){var M="x"+D+"y"+N;return this._coordsMap[M]}g(D)&&(N=D.yAxisIndex,D=D.xAxisIndex);for(var F=0,R=this._coordsList;F<R.length;F++)if(R[F].getAxis("x").index===D||R[F].getAxis("y").index===N)return R[F]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(D,N,M){var F=this._findConvertTarget(D,N);return F.cartesian?F.cartesian.dataToPoint(M):F.axis?F.axis.toGlobalCoord(F.axis.dataToCoord(M)):null},y.convertFromPixel=function(D,N,M){var F=this._findConvertTarget(D,N);return F.cartesian?F.cartesian.pointToData(M):F.axis?F.axis.coordToData(F.axis.toLocalCoord(M)):null},y._findConvertTarget=function(D,N){var M=N.seriesModel,F=N.xAxisModel||M&&M.getReferringComponents("xAxis")[0],R=N.yAxisModel||M&&M.getReferringComponents("yAxis")[0],j=N.gridModel,B=this._coordsList,K,U;if(M)K=M.coordinateSystem,h(B,K)<0&&(K=null);else if(F&&R)K=this.getCartesian(F.componentIndex,R.componentIndex);else if(F)U=this.getAxis("x",F.componentIndex);else if(R)U=this.getAxis("y",R.componentIndex);else if(j){var z=j.coordinateSystem;z===this&&(K=this._coordsList[0])}return{cartesian:K,axis:U}},y.containPoint=function(D){var N=this._coordsList[0];if(N)return N.containPoint(D)},y._initCartesian=function(D,N,M){var F={left:!1,right:!1,top:!1,bottom:!1},R={x:{},y:{}},j={x:0,y:0};if(N.eachComponent("xAxis",B("x"),this),N.eachComponent("yAxis",B("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=R,S(R.x,function(K,U){S(R.y,function(z,V){var Y="x"+U+"y"+V,J=new o(Y);J.grid=this,J.model=D,this._coordsMap[Y]=J,this._coordsList.push(J),J.addAxis(K),J.addAxis(z)},this)},this);function B(K){return function(U,z){if(!v(U,D,N))return;var V=U.get("position");K==="x"?V!=="top"&&V!=="bottom"&&(V=F.bottom?"top":"bottom"):V!=="left"&&V!=="right"&&(V=F.left?"right":"left"),F[V]=!0;var Y=new l(K,n(U),[0,0],U.get("type"),V),J=Y.type==="category";Y.onBand=J&&U.get("boundaryGap"),Y.inverse=U.get("inverse"),U.axis=Y,Y.model=U,Y.grid=this,Y.index=z,this._axesList.push(Y),R[K][z]=Y,j[K]++}}},y._updateScale=function(D,N){S(this._axesList,function(F){F.scale.setExtent(Infinity,-Infinity)}),D.eachSeries(function(F){if(O(F)){var R=_(F,D),j=R[0],B=R[1];if(!v(j,N,D)||!v(B,N,D))return;var K=this.getCartesian(j.componentIndex,B.componentIndex),U=F.getData(),z=K.getAxis("x"),V=K.getAxis("y");U.type==="list"&&(M(U,z,F),M(U,V,F))}},this);function M(F,R,j){S(F.mapDimension(R.dim,!0),function(B){R.scale.unionExtentFromData(F,p(F,B))})}},y.getTooltipAxes=function(D){var N=[],M=[];return S(this.getCartesians(),function(F){var R=D!=null&&D!=="auto"?F.getAxis(D):F.getBaseAxis(),j=F.getOtherAxis(R);h(N,R)<0&&N.push(R),h(M,j)<0&&M.push(j)}),{baseAxes:N,otherAxes:M}};function w(D,N){var M=D.getExtent(),F=M[0]+M[1];D.toGlobalCoord=D.dim==="x"?function(R){return R+N}:function(R){return F-R+N},D.toLocalCoord=D.dim==="x"?function(R){return R-N}:function(R){return F-R+N}}var b=["xAxis","yAxis"];function _(D,N){return m(b,function(M){var F=D.getReferringComponents(M)[0];return F})}function O(D){return D.get("coordinateSystem")==="cartesian2d"}A.create=function(D,N){var M=[];return D.eachComponent("grid",function(F,R){var j=new A(F,D,N);j.name="grid_"+R,j.resize(F,N,!0),F.coordinateSystem=j,M.push(j)}),D.eachSeries(function(F){if(!O(F))return;var R=_(F,D),j=R[0],B=R[1],K=j.getCoordSysModel(),U=K.coordinateSystem;F.coordinateSystem=U.getCartesian(j.componentIndex,B.componentIndex)}),M},A.dimensions=A.prototype.dimensions=o.prototype.dimensions,u.register("cartesian2d",A);var L=A;H.exports=L},"X+im":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("KQeH")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="DownloadOutlined";var c=g.forwardRef(h);k.default=c},"X2/X":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},XAae:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("hwYd"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},XOKv:function(H,k,d){d("OXB0"),d("SA4+")},Xmg4:function(H,k,d){var I=d("bYtY"),E=d("LPTA"),T=E.devicePixelRatio,g=d("K2GJ"),S=d("3C/r");function m(){return!1}function h(r,i,n){var t=I.createCanvas(),s=i.getWidth(),e=i.getHeight(),o=t.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=s+"px",o.height=e+"px",t.setAttribute("data-zr-dom-id",r)),t.width=s*n,t.height=e*n,t}var c=function(i,n,t){var s;t=t||T,typeof i=="string"?s=h(i,n,t):I.isObject(i)&&(s=i,i=s.id),this.id=i,this.dom=s;var e=s.style;e&&(s.onselectstart=m,e["-webkit-user-select"]="none",e["user-select"]="none",e["-webkit-touch-callout"]="none",e["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",e.padding=0,e.margin=0,e["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=t};c.prototype={constructor:c,__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 i=this.dpr;this.domBack=h("back-"+this.id,this.painter,i),this.ctxBack=this.domBack.getContext("2d"),i!==1&&this.ctxBack.scale(i,i)},resize:function(i,n){var t=this.dpr,s=this.dom,e=s.style,o=this.domBack;e&&(e.width=i+"px",e.height=n+"px"),s.width=i*t,s.height=n*t,o&&(o.width=i*t,o.height=n*t,t!==1&&this.ctxBack.scale(t,t))},clear:function(i,n){var t=this.dom,s=this.ctx,e=t.width,o=t.height,n=n||this.clearColor,l=this.motionBlur&&!i,u=this.lastFrameAlpha,f=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(t,0,0,e/f,o/f)),s.clearRect(0,0,e,o),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||g.getGradient(s,n,{x:0,y:0,width:e,height:o}),n.__canvasGradient=p):n.image&&(p=S.prototype.getCanvasPattern.call(n,s)),s.save(),s.fillStyle=p||n,s.fillRect(0,0,e,o),s.restore()}if(l){var v=this.domBack;s.save(),s.globalAlpha=u,s.drawImage(v,0,0,e,o),s.restore()}}};var a=c;H.exports=a},Xnb7:function(H,k,d){var I=d("1RvN"),E=new I(50);function T(h){if(typeof h=="string"){var c=E.get(h);return c&&c.image}else return h}function g(h,c,a,r,i){if(h)if(typeof h=="string"){if(c&&c.__zrImageSrc===h||!a)return c;var n=E.get(h),t={hostEl:a,cb:r,cbPayload:i};return n?(c=n.image,!m(c)&&n.pending.push(t)):(c=new Image,c.onload=c.onerror=S,E.put(h,c.__cachedImgObj={image:c,pending:[t]}),c.src=c.__zrImageSrc=h),c}else return h;else return c}function S(){var h=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var c=0;c<h.pending.length;c++){var a=h.pending[c],r=a.cb;r&&r(this,a.cbPayload),a.hostEl.dirty()}h.pending.length=0}function m(h){return h&&h.width&&h.height}k.findExistImage=T,k.createOrUpdateImage=g,k.isImageReady=m},XpcN:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("oVpE"),m=S.createSymbol,h=d("IwbS"),c=d("eRkO"),a=c.makeBackground,r=d("+TT/"),i=g.curry,n=g.each,t=h.Group,s=T.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new t),this._backgroundEl,this.group.add(this._selectorGroup=new t),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(f,p,v){var A=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!f.get("show",!0))return;var y=f.get("align"),x=f.get("orient");(!y||y==="auto")&&(y=f.get("left")==="right"&&x==="vertical"?"right":"left");var C=f.get("selector",!0),w=f.get("selectorPosition",!0);C&&(!w||w==="auto")&&(w=x==="horizontal"?"end":"start"),this.renderInner(y,f,p,v,C,x,w);var b=f.getBoxLayoutParams(),_={width:v.getWidth(),height:v.getHeight()},O=f.get("padding"),L=r.getLayoutRect(b,_,O),D=this.layoutInner(f,y,L,A,C,w),N=r.getLayoutRect(g.defaults({width:D.width,height:D.height},b),_,O);this.group.attr("position",[N.x-D.x,N.y-D.y]),this.group.add(this._backgroundEl=a(D,f))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(f,p,v,A,y,x,C){var w=this.getContentGroup(),b=g.createHashMap(),_=p.get("selectedMode"),O=[];v.eachRawSeries(function(L){!L.get("legendHoverLink")&&O.push(L.id)}),n(p.getData(),function(L,D){var N=L.get("name");if(!this.newlineDisabled&&(N===""||N===`
|
|
|
`)){w.add(new t({newline:!0}));return}var M=v.getSeriesByName(N)[0];if(b.get(N))return;if(M){var F=M.getData(),R=F.getVisual("color"),j=F.getVisual("borderColor");typeof R=="function"&&(R=R(M.getDataParams(0))),typeof j=="function"&&(j=j(M.getDataParams(0)));var B=F.getVisual("legendSymbol")||"roundRect",K=F.getVisual("symbol"),U=this._createItem(N,D,L,p,B,K,f,R,j,_);U.on("click",i(o,N,null,A,O)).on("mouseover",i(l,M.name,null,A,O)).on("mouseout",i(u,M.name,null,A,O)),b.set(N,!0)}else v.eachRawSeries(function(z){if(b.get(N))return;if(z.legendVisualProvider){var V=z.legendVisualProvider;if(!V.containName(N))return;var Y=V.indexOfName(N),J=V.getItemVisual(Y,"color"),se=V.getItemVisual(Y,"borderColor"),$="roundRect",ae=this._createItem(N,D,L,p,$,null,f,J,se,_);ae.on("click",i(o,null,N,A,O)).on("mouseover",i(l,null,N,A,O)).on("mouseout",i(u,null,N,A,O)),b.set(N,!0)}},this)},this),y&&this._createSelector(y,p,A,x,C)},_createSelector:function(f,p,v,A,y){var x=this.getSelectorGroup();n(f,function(w){C(w)});function C(w){var b=w.type,_=new h.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){v.dispatchAction({type:b==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(_);var O=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");h.setLabelStyle(_.style,_.hoverStyle={},O,L,{defaultText:w.title,isRectText:!1}),h.setHoverStyle(_)}},_createItem:function(f,p,v,A,y,x,C,w,b,_){var O=A.get("itemWidth"),L=A.get("itemHeight"),D=A.get("inactiveColor"),N=A.get("inactiveBorderColor"),M=A.get("symbolKeepAspect"),F=A.getModel("itemStyle"),R=A.isSelected(f),j=new t,B=v.getModel("textStyle"),K=v.get("icon"),U=v.getModel("tooltip"),z=U.parentModel;y=K||y;var V=m(y,0,0,O,L,R?w:D,M==null?!0:M);if(j.add(e(V,y,F,b,N,R)),!K&&x&&(x!==y||x==="none")){var Y=L*.8;x==="none"&&(x="circle");var J=m(x,(O-Y)/2,(L-Y)/2,Y,Y,R?w:D,M==null?!0:M);j.add(e(J,x,F,b,N,R))}var se=C==="left"?O+5:-5,$=C,ae=A.get("formatter"),ge=f;typeof ae=="string"&&ae?ge=ae.replace("{name}",f!=null?f:""):typeof ae=="function"&&(ge=ae(f)),j.add(new h.Text({style:h.setTextStyle({},B,{text:ge,x:se,y:L/2,textFill:R?B.getTextColor():D,textAlign:$,textVerticalAlign:"middle"})}));var pe=new h.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:U.get("show")?g.extend({content:f,formatter:z.get("formatter",!0)||function(){return f},formatterParams:{componentType:"legend",legendIndex:A.componentIndex,name:f,$vars:["name"]}},U.option):null});return j.add(pe),j.eachChild(function(Ne){Ne.silent=!0}),pe.silent=!_,this.getContentGroup().add(j),h.setHoverStyle(j),j.__legendDataIndex=p,j},layoutInner:function(f,p,v,A,y,x){var C=this.getContentGroup(),w=this.getSelectorGroup();r.box(f.get("orient"),C,f.get("itemGap"),v.width,v.height);var b=C.getBoundingRect(),_=[-b.x,-b.y];if(y){r.box("horizontal",w,f.get("selectorItemGap",!0));var O=w.getBoundingRect(),L=[-O.x,-O.y],D=f.get("selectorButtonGap",!0),N=f.getOrient().index,M=N===0?"width":"height",F=N===0?"height":"width",R=N===0?"y":"x";x==="end"?L[N]+=b[M]+D:_[N]+=O[M]+D,L[1-N]+=b[F]/2-O[F]/2,w.attr("position",L),C.attr("position",_);var j={x:0,y:0};return j[M]=b[M]+D+O[M],j[F]=Math.max(b[F],O[F]),j[R]=Math.min(0,O[R]+L[1-N]),j}else return C.attr("position",_),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function e(f,p,v,A,y,x){var C;return p!=="line"&&p.indexOf("empty")<0?(C=v.getItemStyle(),f.style.stroke=A,x||(C.stroke=y)):C=v.getItemStyle(["borderWidth","borderColor"]),f.setStyle(C)}function o(f,p,v,A){u(f,p,v,A),v.dispatchAction({type:"legendToggleSelect",name:f!=null?f:p}),l(f,p,v,A)}function l(f,p,v,A){var y=v.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||v.dispatchAction({type:"highlight",seriesName:f,name:p,excludeSeriesId:A})}function u(f,p,v,A){var y=v.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||v.dispatchAction({type:"downplay",seriesName:f,name:p,excludeSeriesId:A})}H.exports=s},XuBP:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},XxSj:function(H,k,d){var I=d("bYtY"),E=d("Qe9p"),T=d("OELB"),g=T.linearMap,S=I.each,m=I.isObject,h=-1,c=function(x){var C=x.mappingMethod,w=x.type,b=this.option=I.clone(x);this.type=w,this.mappingMethod=C,this._normalizeData=v[C];var _=a[w];this.applyVisual=_.applyVisual,this.getColorMapper=_.getColorMapper,this._doMap=_._doMap[C],C==="piecewise"?(n(b),r(b)):C==="category"?b.categories?i(b):n(b,!0):(I.assert(C!=="linear"||b.dataExtent),n(b))};c.prototype={constructor:c,mapValueToVisual:function(x){var C=this._normalizeData(x);return this._doMap(C,x)},getNormalizer:function(){return I.bind(this._normalizeData,this)}};var a=c.visualHandlers={color:{applyVisual:e("color"),getColorMapper:function(){var x=this.option;return I.bind(x.mappingMethod==="category"?function(C,w){return!w&&(C=this._normalizeData(C)),o.call(this,C)}:function(C,w,b){var _=!!b;return!w&&(C=this._normalizeData(C)),b=E.fastLerp(C,x.parsedVisual,b),_?b:E.stringify(b,"rgba")},this)},_doMap:{linear:function(x){return E.stringify(E.fastLerp(x,this.option.parsedVisual),"rgba")},category:o,piecewise:function(x,C){var w=f.call(this,C);return w==null&&(w=E.stringify(E.fastLerp(x,this.option.parsedVisual),"rgba")),w},fixed:l}},colorHue:t(function(x,C){return E.modifyHSL(x,C)}),colorSaturation:t(function(x,C){return E.modifyHSL(x,null,C)}),colorLightness:t(function(x,C){return E.modifyHSL(x,null,null,C)}),colorAlpha:t(function(x,C){return E.modifyAlpha(x,C)}),opacity:{applyVisual:e("opacity"),_doMap:u([0,1])},liftZ:{applyVisual:e("liftZ"),_doMap:{linear:l,category:l,piecewise:l,fixed:l}},symbol:{applyVisual:function(x,C,w){var b=this.mapValueToVisual(x);if(I.isString(b))w("symbol",b);else if(m(b))for(var _ in b)b.hasOwnProperty(_)&&w(_,b[_])},_doMap:{linear:s,category:o,piecewise:function(x,C){var w=f.call(this,C);return w==null&&(w=s.call(this,x)),w},fixed:l}},symbolSize:{applyVisual:e("symbolSize"),_doMap:u([0,1])}};function r(x){var C=x.pieceList;x.hasSpecialVisual=!1,I.each(C,function(w,b){w.originIndex=b,w.visual!=null&&(x.hasSpecialVisual=!0)})}function i(x){var C=x.categories,w=x.visual,b=x.categoryMap={};if(S(C,function(L,D){b[L]=D}),!I.isArray(w)){var _=[];I.isObject(w)?S(w,function(L,D){var N=b[D];_[N!=null?N:h]=L}):_[h]=w,w=p(x,_)}for(var O=C.length-1;O>=0;O--)w[O]==null&&(delete b[C[O]],C.pop())}function n(x,C){var w=x.visual,b=[];I.isObject(w)?S(w,function(O){b.push(O)}):w!=null&&b.push(w);var _={color:1,symbol:1};!C&&b.length===1&&!_.hasOwnProperty(x.type)&&(b[1]=b[0]),p(x,b)}function t(x){return{applyVisual:function(C,w,b){C=this.mapValueToVisual(C),b("color",x(w("color"),C))},_doMap:u([0,1])}}function s(x){var C=this.option.visual;return C[Math.round(g(x,[0,1],[0,C.length-1],!0))]||{}}function e(x){return function(C,w,b){b(x,this.mapValueToVisual(C))}}function o(x){var C=this.option.visual;return C[this.option.loop&&x!==h?x%C.length:x]}function l(){return this.option.visual[0]}function u(x){return{linear:function(C){return g(C,x,this.option.visual,!0)},category:o,piecewise:function(C,w){var b=f.call(this,w);return b==null&&(b=g(C,x,this.option.visual,!0)),b},fixed:l}}function f(x){var C=this.option,w=C.pieceList;if(C.hasSpecialVisual){var b=c.findPieceIndex(x,w),_=w[b];if(_&&_.visual)return _.visual[this.type]}}function p(x,C){return x.visual=C,x.type==="color"&&(x.parsedVisual=I.map(C,function(w){return E.parse(w)})),C}var v={linear:function(x){return g(x,this.option.dataExtent,[0,1],!0)},piecewise:function(x){var C=this.option.pieceList,w=c.findPieceIndex(x,C,!0);if(w!=null)return g(w,[0,C.length-1],[0,1],!0)},category:function(x){var C=this.option.categories?this.option.categoryMap[x]:x;return C==null?h:C},fixed:I.noop};c.listVisualTypes=function(){var x=[];return I.each(a,function(C,w){x.push(w)}),x},c.addVisualHandler=function(x,C){a[x]=C},c.isValidType=function(x){return a.hasOwnProperty(x)},c.eachVisual=function(x,C,w){I.isObject(x)?I.each(x,C,w):C.call(w,x)},c.mapVisual=function(x,C,w){var b,_=I.isArray(x)?[]:I.isObject(x)?{}:(b=!0,null);return c.eachVisual(x,function(O,L){var D=C.call(w,O,L);b?_=D:_[L]=D}),_},c.retrieveVisuals=function(x){var C={},w;return x&&S(a,function(b,_){x.hasOwnProperty(_)&&(C[_]=x[_],w=!0)}),w?C:null},c.prepareVisualTypes=function(x){if(m(x)){var C=[];S(x,function(w,b){C.push(b)}),x=C}else if(I.isArray(x))x=x.slice();else return[];return x.sort(function(w,b){return b==="color"&&w!=="color"&&w.indexOf("color")===0?1:-1}),x},c.dependsOn=function(x,C){return C==="color"?!!(x&&x.indexOf(C)===0):x===C},c.findPieceIndex=function(x,C,w){for(var b,_=Infinity,O=0,L=C.length;O<L;O++){var D=C[O].value;if(D!=null){if(D===x||typeof D=="string"&&D===x+"")return O;w&&R(D,O)}}for(var O=0,L=C.length;O<L;O++){var N=C[O],M=N.interval,F=N.close;if(M){if(M[0]===-Infinity){if(A(F[1],x,M[1]))return O}else if(M[1]===Infinity){if(A(F[0],M[0],x))return O}else if(A(F[0],M[0],x)&&A(F[1],x,M[1]))return O;w&&R(M[0],O),w&&R(M[1],O)}}if(w)return x===Infinity?C.length-1:x===-Infinity?0:b;function R(j,B){var K=Math.abs(j-x);K<_&&(_=K,b=B)}};function A(x,C,w){return x?C<=w:C<w}var y=c;H.exports=y},XzQk:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("KpQ+"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},Y1PL:function(H,k,d){"use strict";d.r(k),d.d(k,"ResizableTextArea",function(){return V});var I=d("wx14"),E=d("1OyB"),T=d("vuIU"),g=d("Ji7U"),S=d("LK+K"),m=d("q1tI"),h=d("VTBJ"),c=d("rePB"),a=d("Zm9Q"),r=d("Kwbf"),i=d("c+Xe"),n=d("m+aA"),t=d("bdgK"),s=new Map;function e(se){se.forEach(function($){var ae,ge=$.target;(ae=s.get(ge))===null||ae===void 0||ae.forEach(function(pe){return pe(ge)})})}var o=new t.default(e),l=null,u=null;function f(se,$){s.has(se)||(s.set(se,new Set),o.observe(se)),s.get(se).add($)}function p(se,$){s.has(se)&&(s.get(se).delete($),s.get(se).size||(o.unobserve(se),s.delete(se)))}var v=function(se){Object(g.a)(ae,se);var $=Object(S.a)(ae);function ae(){return Object(E.a)(this,ae),$.apply(this,arguments)}return Object(T.a)(ae,[{key:"render",value:function(){return this.props.children}}]),ae}(m.Component),A=m.createContext(null);function y(se){var $=se.children,ae=se.onBatchResize,ge=m.useRef(0),pe=m.useRef([]),Ne=m.useContext(A),de=m.useCallback(function(Le,Q,ce){ge.current+=1;var Ke=ge.current;pe.current.push({size:Le,element:Q,data:ce}),Promise.resolve().then(function(){Ke===ge.current&&(ae==null||ae(pe.current),pe.current=[])}),Ne==null||Ne(Le,Q,ce)},[ae,Ne]);return m.createElement(A.Provider,{value:de},$)}function x(se){var $=se.children,ae=se.disabled,ge=m.useRef(null),pe=m.useRef(null),Ne=m.useContext(A),de=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Le=m.isValidElement($)&&Object(i.c)($),Q=Le?$.ref:null,ce=m.useMemo(function(){return Object(i.a)(Q,ge)},[Q,ge]),Ke=m.useRef(se);Ke.current=se;var ee=m.useCallback(function(X){var G=Ke.current,Z=G.onResize,ve=G.data,ue=X.getBoundingClientRect(),_e=ue.width,xe=ue.height,oe=X.offsetWidth,fe=X.offsetHeight,Te=Math.floor(_e),ze=Math.floor(xe);if(de.current.width!==Te||de.current.height!==ze||de.current.offsetWidth!==oe||de.current.offsetHeight!==fe){var it={width:Te,height:ze,offsetWidth:oe,offsetHeight:fe};de.current=it;var et=oe===Math.round(_e)?_e:oe,Oe=fe===Math.round(xe)?xe:fe,gt=Object(h.a)(Object(h.a)({},it),{},{offsetWidth:et,offsetHeight:Oe});Ne==null||Ne(gt,X,ve),Z&&Promise.resolve().then(function(){Z(gt,X)})}},[]);return m.useEffect(function(){var X=Object(n.a)(ge.current)||Object(n.a)(pe.current);return X&&!ae&&f(X,ee),function(){return p(X,ee)}},[ge.current,ae]),m.createElement(v,{ref:pe},Le?m.cloneElement($,{ref:ce}):$)}var C="rc-observer-key";function w(se){var $=se.children,ae=Object(a.a)($);return ae.map(function(ge,pe){var Ne=(ge==null?void 0:ge.key)||"".concat(C,"-").concat(pe);return m.createElement(x,Object(I.a)({},se,{key:Ne}),ge)})}w.Collection=y;var b=w,_=d("bT9E"),O=d("TSYQ"),L=d.n(O),D=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important
|
|
|
`,N=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],M={},F;function R(se){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=se.getAttribute("id")||se.getAttribute("data-reactid")||se.getAttribute("name");if($&&M[ae])return M[ae];var ge=window.getComputedStyle(se),pe=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),Ne=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),de=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),Le=N.map(function(ce){return"".concat(ce,":").concat(ge.getPropertyValue(ce))}).join(";"),Q={sizingStyle:Le,paddingSize:Ne,borderSize:de,boxSizing:pe};return $&&ae&&(M[ae]=Q),Q}function j(se){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;F||(F=document.createElement("textarea"),F.setAttribute("tab-index","-1"),F.setAttribute("aria-hidden","true"),document.body.appendChild(F)),se.getAttribute("wrap")?F.setAttribute("wrap",se.getAttribute("wrap")):F.removeAttribute("wrap");var pe=R(se,$),Ne=pe.paddingSize,de=pe.borderSize,Le=pe.boxSizing,Q=pe.sizingStyle;F.setAttribute("style","".concat(Q,";").concat(D)),F.value=se.value||se.placeholder||"";var ce=Number.MIN_SAFE_INTEGER,Ke=Number.MAX_SAFE_INTEGER,ee=F.scrollHeight,X;if(Le==="border-box"?ee+=de:Le==="content-box"&&(ee-=Ne),ae!==null||ge!==null){F.value=" ";var G=F.scrollHeight-Ne;ae!==null&&(ce=G*ae,Le==="border-box"&&(ce=ce+Ne+de),ee=Math.max(ce,ee)),ge!==null&&(Ke=G*ge,Le==="border-box"&&(Ke=Ke+Ne+de),X=ee>Ke?"":"hidden",ee=Math.min(Ke,ee))}return{height:ee,minHeight:ce,maxHeight:Ke,overflowY:X,resize:"none"}}var B=d("Gytx"),K=d.n(B),U;(function(se){se[se.NONE=0]="NONE",se[se.RESIZING=1]="RESIZING",se[se.RESIZED=2]="RESIZED"})(U||(U={}));var z=function(se){Object(g.a)(ae,se);var $=Object(S.a)(ae);function ae(ge){var pe;return Object(E.a)(this,ae),pe=$.call(this,ge),pe.nextFrameActionId=void 0,pe.resizeFrameId=void 0,pe.textArea=void 0,pe.saveTextArea=function(Ne){pe.textArea=Ne},pe.handleResize=function(Ne){var de=pe.state.resizeStatus,Le=pe.props,Q=Le.autoSize,ce=Le.onResize;if(de!==U.NONE)return;typeof ce=="function"&&ce(Ne),Q&&pe.resizeOnNextFrame()},pe.resizeOnNextFrame=function(){cancelAnimationFrame(pe.nextFrameActionId),pe.nextFrameActionId=requestAnimationFrame(pe.resizeTextarea)},pe.resizeTextarea=function(){var Ne=pe.props.autoSize;if(!Ne||!pe.textArea)return;var de=Ne.minRows,Le=Ne.maxRows,Q=j(pe.textArea,!1,de,Le);pe.setState({textareaStyles:Q,resizeStatus:U.RESIZING},function(){cancelAnimationFrame(pe.resizeFrameId),pe.resizeFrameId=requestAnimationFrame(function(){pe.setState({resizeStatus:U.RESIZED},function(){pe.resizeFrameId=requestAnimationFrame(function(){pe.setState({resizeStatus:U.NONE}),pe.fixFirefoxAutoScroll()})})})})},pe.renderTextArea=function(){var Ne=pe.props,de=Ne.prefixCls,Le=de===void 0?"rc-textarea":de,Q=Ne.autoSize,ce=Ne.onResize,Ke=Ne.className,ee=Ne.disabled,X=pe.state,G=X.textareaStyles,Z=X.resizeStatus,ve=Object(_.a)(pe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ue=L()(Le,Ke,Object(c.a)({},"".concat(Le,"-disabled"),ee));"value"in ve&&(ve.value=ve.value||"");var _e=Object(h.a)(Object(h.a)(Object(h.a)({},pe.props.style),G),Z===U.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(b,{onResize:pe.handleResize,disabled:!(Q||ce)},m.createElement("textarea",Object(I.a)({},ve,{className:ue,style:_e,ref:pe.saveTextArea})))},pe.state={textareaStyles:{},resizeStatus:U.NONE},pe}return Object(T.a)(ae,[{key:"componentDidUpdate",value:function(pe){(pe.value!==this.props.value||!K()(pe.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 pe=this.textArea.selectionStart,Ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(pe,Ne)}}catch(de){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ae}(m.Component),V=z,Y=function(se){Object(g.a)(ae,se);var $=Object(S.a)(ae);function ae(ge){var pe;Object(E.a)(this,ae),pe=$.call(this,ge),pe.resizableTextArea=void 0,pe.focus=function(){pe.resizableTextArea.textArea.focus()},pe.saveTextArea=function(de){pe.resizableTextArea=de},pe.handleChange=function(de){var Le=pe.props.onChange;pe.setValue(de.target.value,function(){pe.resizableTextArea.resizeTextarea()}),Le&&Le(de)},pe.handleKeyDown=function(de){var Le=pe.props,Q=Le.onPressEnter,ce=Le.onKeyDown;de.keyCode===13&&Q&&Q(de),ce&&ce(de)};var Ne=typeof ge.value=="undefined"||ge.value===null?ge.defaultValue:ge.value;return pe.state={value:Ne},pe}return Object(T.a)(ae,[{key:"setValue",value:function(pe,Ne){"value"in this.props||this.setState({value:pe},Ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(V,Object(I.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(pe){return"value"in pe?{value:pe.value}:null}}]),ae}(m.Component),J=k.default=Y},YH21:function(H,k,d){var I=d("H6uX");k.Dispatcher=I;var E=d("ItGF"),T=d("Ze12"),g=T.isCanvasEl,S=T.transformCoordWithViewport,m=typeof window!="undefined"&&!!window.addEventListener,h=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function a(u,f,p,v){return p=p||{},v||!E.canvasSupported?r(u,f,p):E.browser.firefox&&f.layerX!=null&&f.layerX!==f.offsetX?(p.zrX=f.layerX,p.zrY=f.layerY):f.offsetX!=null?(p.zrX=f.offsetX,p.zrY=f.offsetY):r(u,f,p),p}function r(u,f,p){if(E.domSupported&&u.getBoundingClientRect){var v=f.clientX,A=f.clientY;if(g(u)){var y=u.getBoundingClientRect();p.zrX=v-y.left,p.zrY=A-y.top;return}else if(S(c,u,v,A)){p.zrX=c[0],p.zrY=c[1];return}}p.zrX=p.zrY=0}function i(u){return u||window.event}function n(u,f,p){if(f=i(f),f.zrX!=null)return f;var v=f.type,A=v&&v.indexOf("touch")>=0;if(!A)a(u,f,f,p),f.zrDelta=f.wheelDelta?f.wheelDelta/120:-(f.detail||0)/3;else{var y=v!=="touchend"?f.targetTouches[0]:f.changedTouches[0];y&&a(u,y,f,p)}var x=f.button;return f.which==null&&x!==void 0&&h.test(f.type)&&(f.which=x&1?1:x&2?3:x&4?2:0),f}function t(u,f,p,v){m?u.addEventListener(f,p,v):u.attachEvent("on"+f,p)}function s(u,f,p,v){m?u.removeEventListener(f,p,v):u.detachEvent("on"+f,p)}var e=m?function(u){u.preventDefault(),u.stopPropagation(),u.cancelBubble=!0}:function(u){u.returnValue=!1,u.cancelBubble=!0};function o(u){return u.which===2||u.which===3}function l(u){return u.which>1}k.clientToLocal=a,k.getNativeEvent=i,k.normalizeEvent=n,k.addEventListener=t,k.removeEventListener=s,k.stop=e,k.isMiddleOrRightButtonOnMouseUpDown=o,k.notLeftMouse=l},YJ9k:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function I(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function E(S,m){for(var h=0;h<m.length;h++){var c=m[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,h){return m&&E(S.prototype,m),h&&E(S,h),S}var g=function(){function S(){I(this,S),this._listeners=new Map}return T(S,[{key:"addEventListener",value:function(h,c){this._listeners.has(h)||this._listeners.set(h,new Set),this._listeners.get(h).add(c)}},{key:"removeEventListener",value:function(h,c){this._listeners.has(h)&&this._listeners.get(h).delete(c)}},{key:"dispatchEvent",value:function(h){var c=this;return this._listeners.has(h.type)?(this._listeners.get(h.type).forEach(function(a){return a.call(c,h)}),!h.defaultPrevented):!0}}]),S}();k.default=g},YJCA:function(H,k,d){"use strict";d.d(k,"a",function(){return Z}),d.d(k,"b",function(){return _e});var I=d("wx14"),E=d("ODXe"),T=d("vpQ4"),g=d("1OyB"),S=d("vuIU"),m=d("md7G"),h=d("foSv"),c=d("Ji7U"),a=d("JX7q"),r=d("rePB"),i=d("q1tI"),n=d.n(i),t=d("17x9"),s=d.n(t),e=d("i8i4"),o=d.n(e),l=d("QLaP"),u=d.n(l),f=d("KQm4"),p=function(){function xe(){Object(g.a)(this,xe),Object(r.a)(this,"refs",{})}return Object(S.a)(xe,[{key:"add",value:function(fe,Te){this.refs[fe]||(this.refs[fe]=[]),this.refs[fe].push(Te)}},{key:"remove",value:function(fe,Te){var ze=this.getIndex(fe,Te);ze!==-1&&this.refs[fe].splice(ze,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var fe=this;return this.refs[this.active.collection].find(function(Te){var ze=Te.node;return ze.sortableInfo.index==fe.active.index})}},{key:"getIndex",value:function(fe,Te){return this.refs[fe].indexOf(Te)}},{key:"getOrderedRefs",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[fe].sort(v)}}]),xe}();function v(xe,oe){var fe=xe.node.sortableInfo.index,Te=oe.node.sortableInfo.index;return fe-Te}function A(xe,oe,fe){return xe=xe.slice(),xe.splice(fe<0?xe.length+fe:fe,0,xe.splice(oe,1)[0]),xe}function y(xe,oe){return Object.keys(xe).reduce(function(fe,Te){return oe.indexOf(Te)===-1&&(fe[Te]=xe[Te]),fe},{})}var x={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},C=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var xe=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],oe=(Array.prototype.slice.call(xe).join("").match(/-(moz|webkit|ms)-/)||xe.OLink===""&&["","o"])[1];switch(oe){case"ms":return"ms";default:return oe&&oe.length?oe[0].toUpperCase()+oe.substr(1):""}}();function w(xe,oe){Object.keys(oe).forEach(function(fe){xe.style[fe]=oe[fe]})}function b(xe,oe){xe.style["".concat(C,"Transform")]=oe==null?"":"translate3d(".concat(oe.x,"px,").concat(oe.y,"px,0)")}function _(xe,oe){xe.style["".concat(C,"TransitionDuration")]=oe==null?"":"".concat(oe,"ms")}function O(xe,oe){for(;xe;){if(oe(xe))return xe;xe=xe.parentNode}return null}function L(xe,oe,fe){return Math.max(xe,Math.min(fe,oe))}function D(xe){return xe.substr(-2)==="px"?parseFloat(xe):0}function N(xe){var oe=window.getComputedStyle(xe);return{bottom:D(oe.marginBottom),left:D(oe.marginLeft),right:D(oe.marginRight),top:D(oe.marginTop)}}function M(xe,oe){var fe=oe.displayName||oe.name;return fe?"".concat(xe,"(").concat(fe,")"):xe}function F(xe,oe){var fe=xe.getBoundingClientRect();return{top:fe.top+oe.top,left:fe.left+oe.left}}function R(xe){return xe.touches&&xe.touches.length?{x:xe.touches[0].pageX,y:xe.touches[0].pageY}:xe.changedTouches&&xe.changedTouches.length?{x:xe.changedTouches[0].pageX,y:xe.changedTouches[0].pageY}:{x:xe.pageX,y:xe.pageY}}function j(xe){return xe.touches&&xe.touches.length||xe.changedTouches&&xe.changedTouches.length}function B(xe,oe){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!xe)return;var Te={left:fe.left+xe.offsetLeft,top:fe.top+xe.offsetTop};return xe.parentNode===oe?Te:B(xe.parentNode,oe,Te)}function K(xe,oe,fe){return xe<fe&&xe>oe?xe-1:xe>fe&&xe<oe?xe+1:xe}function U(xe){var oe=xe.lockOffset,fe=xe.width,Te=xe.height,ze=oe,it=oe,et="px";if(typeof oe=="string"){var Oe=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(oe);u()(Oe!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',oe),ze=parseFloat(oe),it=parseFloat(oe),et=Oe[1]}return u()(isFinite(ze)&&isFinite(it),"lockOffset value should be a finite. Given %s",oe),et==="%"&&(ze=ze*fe/100,it=it*Te/100),{x:ze,y:it}}function z(xe){var oe=xe.height,fe=xe.width,Te=xe.lockOffset,ze=Array.isArray(Te)?Te:[Te,Te];u()(ze.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Te);var it=Object(E.a)(ze,2),et=it[0],Oe=it[1];return[U({height:oe,lockOffset:et,width:fe}),U({height:oe,lockOffset:Oe,width:fe})]}function V(xe){var oe=window.getComputedStyle(xe),fe=/(auto|scroll)/,Te=["overflow","overflowX","overflowY"];return Te.find(function(ze){return fe.test(oe[ze])})}function Y(xe){return xe instanceof HTMLElement?V(xe)?xe:Y(xe.parentNode):null}function J(xe){var oe=window.getComputedStyle(xe);return oe.display==="grid"?{x:D(oe.gridColumnGap),y:D(oe.gridRowGap)}:{x:0,y:0}}var se={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},$={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ae(xe){var oe="input, textarea, select, canvas, [contenteditable]",fe=xe.querySelectorAll(oe),Te=xe.cloneNode(!0),ze=Object(f.a)(Te.querySelectorAll(oe));return ze.forEach(function(it,et){if(it.type!=="file"&&(it.value=fe[et].value),it.type==="radio"&&it.name&&(it.name="__sortableClone__".concat(it.name)),it.tagName===$.Canvas&&fe[et].width>0&&fe[et].height>0){var Oe=it.getContext("2d");Oe.drawImage(fe[et],0,0)}}),Te}function ge(xe){var oe,fe,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=oe=function(ze){Object(c.a)(it,ze);function it(){return Object(g.a)(this,it),Object(m.a)(this,Object(h.a)(it).apply(this,arguments))}return Object(S.a)(it,[{key:"componentDidMount",value:function(){var Oe=Object(e.findDOMNode)(this);Oe.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(Te.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 Oe=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(xe,Object(I.a)({ref:Oe},this.props))}}]),it}(i.Component),Object(r.a)(oe,"displayName",M("sortableHandle",xe)),fe}function pe(xe){return xe.sortableHandle!=null}var Ne=function(){function xe(oe,fe){Object(g.a)(this,xe),this.container=oe,this.onScrollCallback=fe}return Object(S.a)(xe,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(fe){var Te=this,ze=fe.translate,it=fe.minTranslate,et=fe.maxTranslate,Oe=fe.width,gt=fe.height,Ge={x:0,y:0},wt={x:1,y:1},xt={x:10,y:10},Ct=this.container,Dt=Ct.scrollTop,Ht=Ct.scrollLeft,Je=Ct.scrollHeight,ye=Ct.scrollWidth,ie=Ct.clientHeight,bt=Ct.clientWidth,qe=Dt===0,me=Je-Dt-ie===0,Rt=Ht===0,er=ye-Ht-bt===0;ze.y>=et.y-gt/2&&!me?(Ge.y=1,wt.y=xt.y*Math.abs((et.y-gt/2-ze.y)/gt)):ze.x>=et.x-Oe/2&&!er?(Ge.x=1,wt.x=xt.x*Math.abs((et.x-Oe/2-ze.x)/Oe)):ze.y<=it.y+gt/2&&!qe?(Ge.y=-1,wt.y=xt.y*Math.abs((ze.y-gt/2-it.y)/gt)):ze.x<=it.x+Oe/2&&!Rt&&(Ge.x=-1,wt.x=xt.x*Math.abs((ze.x-Oe/2-it.x)/Oe)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(Ge.x!==0||Ge.y!==0)&&(this.interval=setInterval(function(){Te.isAutoScrolling=!0;var ct={left:wt.x*Ge.x,top:wt.y*Ge.y};Te.container.scrollTop+=ct.top,Te.container.scrollLeft+=ct.left,Te.onScrollCallback(ct)},5))}}]),xe}();function de(xe){var oe=xe.node;return{height:oe.offsetHeight,width:oe.offsetWidth}}function Le(xe){var oe=[$.Input,$.Textarea,$.Select,$.Option,$.Button];return oe.indexOf(xe.target.tagName)!==-1?!0:!!O(xe.target,function(fe){return fe.contentEditable==="true"})}var Q={axis:s.a.oneOf(["x","y","xy"]),contentWindow:s.a.any,disableAutoscroll:s.a.bool,distance:s.a.number,getContainer:s.a.func,getHelperDimensions:s.a.func,helperClass:s.a.string,helperContainer:s.a.oneOfType([s.a.func,typeof HTMLElement=="undefined"?s.a.any:s.a.instanceOf(HTMLElement)]),hideSortableGhost:s.a.bool,keyboardSortingTransitionDuration:s.a.number,lockAxis:s.a.string,lockOffset:s.a.oneOfType([s.a.number,s.a.string,s.a.arrayOf(s.a.oneOfType([s.a.number,s.a.string]))]),lockToContainerEdges:s.a.bool,onSortEnd:s.a.func,onSortMove:s.a.func,onSortOver:s.a.func,onSortStart:s.a.func,pressDelay:s.a.number,pressThreshold:s.a.number,keyCodes:s.a.shape({lift:s.a.arrayOf(s.a.number),drop:s.a.arrayOf(s.a.number),cancel:s.a.arrayOf(s.a.number),up:s.a.arrayOf(s.a.number),down:s.a.arrayOf(s.a.number)}),shouldCancelStart:s.a.func,transitionDuration:s.a.number,updateBeforeSortStart:s.a.func,useDragHandle:s.a.bool,useWindowAsScrollContainer:s.a.bool},ce={lift:[se.SPACE],drop:[se.SPACE],cancel:[se.ESC],up:[se.UP,se.LEFT],down:[se.DOWN,se.RIGHT]},Ke={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:de,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ce,shouldCancelStart:Le,transitionDuration:300,useWindowAsScrollContainer:!1},ee=Object.keys(Q);function X(xe){u()(!(xe.distance&&xe.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 G(xe,oe){try{var fe=xe()}catch(Te){return oe(!0,Te)}return fe&&fe.then?fe.then(oe.bind(null,!1),oe.bind(null,!0)):oe(!1,value)}function Z(xe){var oe,fe,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=oe=function(ze){Object(c.a)(it,ze);function it(et){var Oe;return Object(g.a)(this,it),Oe=Object(m.a)(this,Object(h.a)(it).call(this,et)),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"state",{}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleStart",function(gt){var Ge=Oe.props,wt=Ge.distance,xt=Ge.shouldCancelStart;if(gt.button===2||xt(gt))return;Oe.touched=!0,Oe.position=R(gt);var Ct=O(gt.target,function(bt){return bt.sortableInfo!=null});if(Ct&&Ct.sortableInfo&&Oe.nodeIsChild(Ct)&&!Oe.state.sorting){var Dt=Oe.props.useDragHandle,Ht=Ct.sortableInfo,Je=Ht.index,ye=Ht.collection,ie=Ht.disabled;if(ie)return;if(Dt&&!O(gt.target,pe))return;Oe.manager.active={collection:ye,index:Je},!j(gt)&>.target.tagName===$.Anchor&>.preventDefault(),wt||(Oe.props.pressDelay===0?Oe.handlePress(gt):Oe.pressTimer=setTimeout(function(){return Oe.handlePress(gt)},Oe.props.pressDelay))}}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"nodeIsChild",function(gt){return gt.sortableInfo.manager===Oe.manager}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleMove",function(gt){var Ge=Oe.props,wt=Ge.distance,xt=Ge.pressThreshold;if(!Oe.state.sorting&&Oe.touched&&!Oe._awaitingUpdateBeforeSortStart){var Ct=R(gt),Dt={x:Oe.position.x-Ct.x,y:Oe.position.y-Ct.y},Ht=Math.abs(Dt.x)+Math.abs(Dt.y);Oe.delta=Dt,!wt&&(!xt||Ht>=xt)?(clearTimeout(Oe.cancelTimer),Oe.cancelTimer=setTimeout(Oe.cancel,0)):wt&&Ht>=wt&&Oe.manager.isActive()&&Oe.handlePress(gt)}}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleEnd",function(){Oe.touched=!1,Oe.cancel()}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"cancel",function(){var gt=Oe.props.distance,Ge=Oe.state.sorting;Ge||(gt||clearTimeout(Oe.pressTimer),Oe.manager.active=null)}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handlePress",function(gt){try{var Ge=Oe.manager.getActive(),wt=function(){if(Ge){var xt=function(){var sr=me.sortableInfo.index,Kr=N(me),ar=J(Oe.container),nr=Oe.scrollContainer.getBoundingClientRect(),Lt=Ht({index:sr,node:me,collection:Rt});if(Oe.node=me,Oe.margin=Kr,Oe.gridGap=ar,Oe.width=Lt.width,Oe.height=Lt.height,Oe.marginOffset={x:Oe.margin.left+Oe.margin.right+Oe.gridGap.x,y:Math.max(Oe.margin.top,Oe.margin.bottom,Oe.gridGap.y)},Oe.boundingClientRect=me.getBoundingClientRect(),Oe.containerBoundingRect=nr,Oe.index=sr,Oe.newIndex=sr,Oe.axis={x:Dt.indexOf("x")>=0,y:Dt.indexOf("y")>=0},Oe.offsetEdge=B(me,Oe.container),er?Oe.initialOffset=R(Object(T.a)({},gt,{pageX:Oe.boundingClientRect.left,pageY:Oe.boundingClientRect.top})):Oe.initialOffset=R(gt),Oe.initialScroll={left:Oe.scrollContainer.scrollLeft,top:Oe.scrollContainer.scrollTop},Oe.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Oe.helper=Oe.helperContainer.appendChild(ae(me)),w(Oe.helper,{boxSizing:"border-box",height:"".concat(Oe.height,"px"),left:"".concat(Oe.boundingClientRect.left-Kr.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Oe.boundingClientRect.top-Kr.top,"px"),width:"".concat(Oe.width,"px")}),er&&Oe.helper.focus(),ye&&(Oe.sortableGhost=me,w(me,{opacity:0,visibility:"hidden"})),Oe.minTranslate={},Oe.maxTranslate={},er){var st=qe?{top:0,left:0,width:Oe.contentWindow.innerWidth,height:Oe.contentWindow.innerHeight}:Oe.containerBoundingRect,Qe=st.top,qt=st.left,Sr=st.width,Ar=st.height,hr=Qe+Ar,vn=qt+Sr;Oe.axis.x&&(Oe.minTranslate.x=qt-Oe.boundingClientRect.left,Oe.maxTranslate.x=vn-(Oe.boundingClientRect.left+Oe.width)),Oe.axis.y&&(Oe.minTranslate.y=Qe-Oe.boundingClientRect.top,Oe.maxTranslate.y=hr-(Oe.boundingClientRect.top+Oe.height))}else Oe.axis.x&&(Oe.minTranslate.x=(qe?0:nr.left)-Oe.boundingClientRect.left-Oe.width/2,Oe.maxTranslate.x=(qe?Oe.contentWindow.innerWidth:nr.left+nr.width)-Oe.boundingClientRect.left-Oe.width/2),Oe.axis.y&&(Oe.minTranslate.y=(qe?0:nr.top)-Oe.boundingClientRect.top-Oe.height/2,Oe.maxTranslate.y=(qe?Oe.contentWindow.innerHeight:nr.top+nr.height)-Oe.boundingClientRect.top-Oe.height/2);Je&&Je.split(" ").forEach(function(Zr){return Oe.helper.classList.add(Zr)}),Oe.listenerNode=gt.touches?me:Oe.contentWindow,er?(Oe.listenerNode.addEventListener("wheel",Oe.handleKeyEnd,!0),Oe.listenerNode.addEventListener("mousedown",Oe.handleKeyEnd,!0),Oe.listenerNode.addEventListener("keydown",Oe.handleKeyDown)):(x.move.forEach(function(Zr){return Oe.listenerNode.addEventListener(Zr,Oe.handleSortMove,!1)}),x.end.forEach(function(Zr){return Oe.listenerNode.addEventListener(Zr,Oe.handleSortEnd,!1)})),Oe.setState({sorting:!0,sortingIndex:sr}),bt&&bt({node:me,index:sr,collection:Rt,isKeySorting:er,nodes:Oe.manager.getOrderedRefs(),helper:Oe.helper},gt),er&&Oe.keyMove(0)},Ct=Oe.props,Dt=Ct.axis,Ht=Ct.getHelperDimensions,Je=Ct.helperClass,ye=Ct.hideSortableGhost,ie=Ct.updateBeforeSortStart,bt=Ct.onSortStart,qe=Ct.useWindowAsScrollContainer,me=Ge.node,Rt=Ge.collection,er=Oe.manager.isKeySorting,ct=function(){if(typeof ie=="function"){Oe._awaitingUpdateBeforeSortStart=!0;var zt=G(function(){var sr=me.sortableInfo.index;return Promise.resolve(ie({collection:Rt,index:sr,node:me,isKeySorting:er},gt)).then(function(){})},function(sr,Kr){if(Oe._awaitingUpdateBeforeSortStart=!1,sr)throw Kr;return Kr});if(zt&&zt.then)return zt.then(function(){})}}();return ct&&ct.then?ct.then(xt):xt(ct)}}();return Promise.resolve(wt&&wt.then?wt.then(function(){}):void 0)}catch(xt){return Promise.reject(xt)}}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleSortMove",function(gt){var Ge=Oe.props.onSortMove;typeof gt.preventDefault=="function"&>.preventDefault(),Oe.updateHelperPosition(gt),Oe.animateNodes(),Oe.autoscroll(),Ge&&Ge(gt)}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleSortEnd",function(gt){var Ge=Oe.props,wt=Ge.hideSortableGhost,xt=Ge.onSortEnd,Ct=Oe.manager,Dt=Ct.active.collection,Ht=Ct.isKeySorting,Je=Oe.manager.getOrderedRefs();Oe.listenerNode&&(Ht?(Oe.listenerNode.removeEventListener("wheel",Oe.handleKeyEnd,!0),Oe.listenerNode.removeEventListener("mousedown",Oe.handleKeyEnd,!0),Oe.listenerNode.removeEventListener("keydown",Oe.handleKeyDown)):(x.move.forEach(function(me){return Oe.listenerNode.removeEventListener(me,Oe.handleSortMove)}),x.end.forEach(function(me){return Oe.listenerNode.removeEventListener(me,Oe.handleSortEnd)}))),Oe.helper.parentNode.removeChild(Oe.helper),wt&&Oe.sortableGhost&&w(Oe.sortableGhost,{opacity:"",visibility:""});for(var ye=0,ie=Je.length;ye<ie;ye++){var bt=Je[ye],qe=bt.node;bt.edgeOffset=null,bt.boundingClientRect=null,b(qe,null),_(qe,null),bt.translate=null}Oe.autoScroller.clear(),Oe.manager.active=null,Oe.manager.isKeySorting=!1,Oe.setState({sorting:!1,sortingIndex:null}),typeof xt=="function"&&xt({collection:Dt,newIndex:Oe.newIndex,oldIndex:Oe.index,isKeySorting:Ht,nodes:Je},gt),Oe.touched=!1}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"autoscroll",function(){var gt=Oe.props.disableAutoscroll,Ge=Oe.manager.isKeySorting;if(gt){Oe.autoScroller.clear();return}if(Ge){var wt=Object(T.a)({},Oe.translate),xt=0,Ct=0;Oe.axis.x&&(wt.x=Math.min(Oe.maxTranslate.x,Math.max(Oe.minTranslate.x,Oe.translate.x)),xt=Oe.translate.x-wt.x),Oe.axis.y&&(wt.y=Math.min(Oe.maxTranslate.y,Math.max(Oe.minTranslate.y,Oe.translate.y)),Ct=Oe.translate.y-wt.y),Oe.translate=wt,b(Oe.helper,Oe.translate),Oe.scrollContainer.scrollLeft+=xt,Oe.scrollContainer.scrollTop+=Ct;return}Oe.autoScroller.update({height:Oe.height,maxTranslate:Oe.maxTranslate,minTranslate:Oe.minTranslate,translate:Oe.translate,width:Oe.width})}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"onAutoScroll",function(gt){Oe.translate.x+=gt.left,Oe.translate.y+=gt.top,Oe.animateNodes()}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleKeyDown",function(gt){var Ge=gt.keyCode,wt=Oe.props,xt=wt.shouldCancelStart,Ct=wt.keyCodes,Dt=Ct===void 0?{}:Ct,Ht=Object(T.a)({},ce,Dt);if(Oe.manager.active&&!Oe.manager.isKeySorting||!Oe.manager.active&&(!Ht.lift.includes(Ge)||xt(gt)||!Oe.isValidSortingTarget(gt)))return;gt.stopPropagation(),gt.preventDefault(),Ht.lift.includes(Ge)&&!Oe.manager.active?Oe.keyLift(gt):Ht.drop.includes(Ge)&&Oe.manager.active?Oe.keyDrop(gt):Ht.cancel.includes(Ge)?(Oe.newIndex=Oe.manager.active.index,Oe.keyDrop(gt)):Ht.up.includes(Ge)?Oe.keyMove(-1):Ht.down.includes(Ge)&&Oe.keyMove(1)}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"keyLift",function(gt){var Ge=gt.target,wt=O(Ge,function(Ht){return Ht.sortableInfo!=null}),xt=wt.sortableInfo,Ct=xt.index,Dt=xt.collection;Oe.initialFocusedNode=Ge,Oe.manager.isKeySorting=!0,Oe.manager.active={index:Ct,collection:Dt},Oe.handlePress(gt)}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"keyMove",function(gt){var Ge=Oe.manager.getOrderedRefs(),wt=Ge[Ge.length-1].node.sortableInfo.index,xt=Oe.newIndex+gt,Ct=Oe.newIndex;if(xt<0||xt>wt)return;Oe.prevIndex=Ct,Oe.newIndex=xt;var Dt=K(Oe.newIndex,Oe.prevIndex,Oe.index),Ht=Ge.find(function(er){var ct=er.node;return ct.sortableInfo.index===Dt}),Je=Ht.node,ye=Oe.containerScrollDelta,ie=Ht.boundingClientRect||F(Je,ye),bt=Ht.translate||{x:0,y:0},qe={top:ie.top+bt.y-ye.top,left:ie.left+bt.x-ye.left},me=Ct<xt,Rt={x:me&&Oe.axis.x?Je.offsetWidth-Oe.width:0,y:me&&Oe.axis.y?Je.offsetHeight-Oe.height:0};Oe.handleSortMove({pageX:qe.left+Rt.x,pageY:qe.top+Rt.y,ignoreTransition:gt===0})}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"keyDrop",function(gt){Oe.handleSortEnd(gt),Oe.initialFocusedNode&&Oe.initialFocusedNode.focus()}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"handleKeyEnd",function(gt){Oe.manager.active&&Oe.keyDrop(gt)}),Object(r.a)(Object(a.a)(Object(a.a)(Oe)),"isValidSortingTarget",function(gt){var Ge=Oe.props.useDragHandle,wt=gt.target,xt=O(wt,function(Ct){return Ct.sortableInfo!=null});return xt&&xt.sortableInfo&&!xt.sortableInfo.disabled&&(Ge?pe(wt):wt.sortableInfo)}),X(et),Oe.manager=new p,Oe.events={end:Oe.handleEnd,move:Oe.handleMove,start:Oe.handleStart},Oe}return Object(S.a)(it,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Oe=this,gt=this.props.useWindowAsScrollContainer,Ge=this.getContainer();Promise.resolve(Ge).then(function(wt){Oe.container=wt,Oe.document=Oe.container.ownerDocument||document;var xt=Oe.props.contentWindow||Oe.document.defaultView||window;Oe.contentWindow=typeof xt=="function"?xt():xt,Oe.scrollContainer=gt?Oe.document.scrollingElement||Oe.document.documentElement:Y(Oe.container)||Oe.container,Oe.autoScroller=new Ne(Oe.scrollContainer,Oe.onAutoScroll),Object.keys(Oe.events).forEach(function(Ct){return x[Ct].forEach(function(Dt){return Oe.container.addEventListener(Dt,Oe.events[Ct],!1)})}),Oe.container.addEventListener("keydown",Oe.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Oe=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(gt){return x[gt].forEach(function(Ge){return Oe.container.removeEventListener(Ge,Oe.events[gt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Oe){var gt=this.props,Ge=gt.lockAxis,wt=gt.lockOffset,xt=gt.lockToContainerEdges,Ct=gt.transitionDuration,Dt=gt.keyboardSortingTransitionDuration,Ht=Dt===void 0?Ct:Dt,Je=this.manager.isKeySorting,ye=Oe.ignoreTransition,ie=R(Oe),bt={x:ie.x-this.initialOffset.x,y:ie.y-this.initialOffset.y};if(bt.y-=window.pageYOffset-this.initialWindowScroll.top,bt.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=bt,xt){var qe=z({height:this.height,lockOffset:wt,width:this.width}),me=Object(E.a)(qe,2),Rt=me[0],er=me[1],ct={x:this.width/2-Rt.x,y:this.height/2-Rt.y},zt={x:this.width/2-er.x,y:this.height/2-er.y};bt.x=L(this.minTranslate.x+ct.x,this.maxTranslate.x-zt.x,bt.x),bt.y=L(this.minTranslate.y+ct.y,this.maxTranslate.y-zt.y,bt.y)}Ge==="x"?bt.y=0:Ge==="y"&&(bt.x=0),Je&&Ht&&!ye&&_(this.helper,Ht),b(this.helper,bt)}},{key:"animateNodes",value:function(){var Oe=this.props,gt=Oe.transitionDuration,Ge=Oe.hideSortableGhost,wt=Oe.onSortOver,xt=this.containerScrollDelta,Ct=this.windowScrollDelta,Dt=this.manager.getOrderedRefs(),Ht={left:this.offsetEdge.left+this.translate.x+xt.left,top:this.offsetEdge.top+this.translate.y+xt.top},Je=this.manager.isKeySorting,ye=this.newIndex;this.newIndex=null;for(var ie=0,bt=Dt.length;ie<bt;ie++){var qe=Dt[ie].node,me=qe.sortableInfo.index,Rt=qe.offsetWidth,er=qe.offsetHeight,ct={height:this.height>er?er/2:this.height/2,width:this.width>Rt?Rt/2:this.width/2},zt=Je&&me>this.index&&me<=ye,sr=Je&&me<this.index&&me>=ye,Kr={x:0,y:0},ar=Dt[ie].edgeOffset;ar||(ar=B(qe,this.container),Dt[ie].edgeOffset=ar,Je&&(Dt[ie].boundingClientRect=F(qe,xt)));var nr=ie<Dt.length-1&&Dt[ie+1],Lt=ie>0&&Dt[ie-1];if(nr&&!nr.edgeOffset&&(nr.edgeOffset=B(nr.node,this.container),Je&&(nr.boundingClientRect=F(nr.node,xt))),me===this.index){Ge&&(this.sortableGhost=qe,w(qe,{opacity:0,visibility:"hidden"}));continue}gt&&_(qe,gt),this.axis.x?this.axis.y?sr||me<this.index&&(Ht.left+Ct.left-ct.width<=ar.left&&Ht.top+Ct.top<=ar.top+ct.height||Ht.top+Ct.top+ct.height<=ar.top)?(Kr.x=this.width+this.marginOffset.x,ar.left+Kr.x>this.containerBoundingRect.width-ct.width&&(nr&&(Kr.x=nr.edgeOffset.left-ar.left,Kr.y=nr.edgeOffset.top-ar.top)),this.newIndex===null&&(this.newIndex=me)):(zt||me>this.index&&(Ht.left+Ct.left+ct.width>=ar.left&&Ht.top+Ct.top+ct.height>=ar.top||Ht.top+Ct.top+ct.height>=ar.top+er))&&(Kr.x=-(this.width+this.marginOffset.x),ar.left+Kr.x<this.containerBoundingRect.left+ct.width&&(Lt&&(Kr.x=Lt.edgeOffset.left-ar.left,Kr.y=Lt.edgeOffset.top-ar.top)),this.newIndex=me):zt||me>this.index&&Ht.left+Ct.left+ct.width>=ar.left?(Kr.x=-(this.width+this.marginOffset.x),this.newIndex=me):(sr||me<this.index&&Ht.left+Ct.left<=ar.left+ct.width)&&(Kr.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=me)):this.axis.y&&(zt||me>this.index&&Ht.top+Ct.top+ct.height>=ar.top?(Kr.y=-(this.height+this.marginOffset.y),this.newIndex=me):(sr||me<this.index&&Ht.top+Ct.top<=ar.top+ct.height)&&(Kr.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=me))),b(qe,Kr),Dt[ie].translate=Kr}this.newIndex==null&&(this.newIndex=this.index),Je&&(this.newIndex=ye);var st=Je?this.prevIndex:ye;wt&&this.newIndex!==st&&wt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:st,isKeySorting:Je,nodes:Dt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(Te.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 Oe=this.props.getContainer;return typeof Oe!="function"?Object(e.findDOMNode)(this):Oe(Te.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Oe=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(xe,Object(I.a)({ref:Oe},y(this.props,ee)))}},{key:"helperContainer",get:function(){var Oe=this.props.helperContainer;return typeof Oe=="function"?Oe():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Oe=this.props.useWindowAsScrollContainer;return Oe?{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}}}]),it}(i.Component),Object(r.a)(oe,"displayName",M("sortableList",xe)),Object(r.a)(oe,"defaultProps",Ke),Object(r.a)(oe,"propTypes",Q),Object(r.a)(oe,"childContextTypes",{manager:s.a.object.isRequired}),fe}var ve={index:s.a.number.isRequired,collection:s.a.oneOfType([s.a.number,s.a.string]),disabled:s.a.bool},ue=Object.keys(ve);function _e(xe){var oe,fe,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=oe=function(ze){Object(c.a)(it,ze);function it(){return Object(g.a)(this,it),Object(m.a)(this,Object(h.a)(it).apply(this,arguments))}return Object(S.a)(it,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Oe){this.node&&(Oe.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Oe.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Oe.collection!==this.props.collection&&(this.unregister(Oe.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Oe=this.props,gt=Oe.collection,Ge=Oe.disabled,wt=Oe.index,xt=Object(e.findDOMNode)(this);xt.sortableInfo={collection:gt,disabled:Ge,index:wt,manager:this.context.manager},this.node=xt,this.ref={node:xt},this.context.manager.add(gt,this.ref)}},{key:"unregister",value:function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Oe,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(Te.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 Oe=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(xe,Object(I.a)({ref:Oe},y(this.props,ue)))}}]),it}(i.Component),Object(r.a)(oe,"displayName",M("sortableElement",xe)),Object(r.a)(oe,"contextTypes",{manager:s.a.object.isRequired}),Object(r.a)(oe,"propTypes",ve),Object(r.a)(oe,"defaultProps",{collection:0}),fe}},YNAk:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("QyFq")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="CaretDownFilled";var c=g.forwardRef(h);k.default=c},YNf1:function(H,k,d){var I=d("IwbS"),E=d("6Ic6"),T=.3,g=E.extend({type:"parallel",init:function(){this._dataGroup=new I.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,t,s,e){var o=this._dataGroup,l=n.getData(),u=this._data,f=n.coordinateSystem,p=f.dimensions,v=c(n);l.diff(u).add(A).update(y).remove(x).execute();function A(w){var b=h(l,o,w,p,f);a(b,l,w,v)}function y(w,b){var _=u.getItemGraphicEl(b),O=m(l,w,p,f);l.setItemGraphicEl(w,_);var L=e&&e.animation===!1?null:n;I.updateProps(_,{shape:{points:O}},L,w),a(_,l,w,v)}function x(w){var b=u.getItemGraphicEl(w);o.remove(b)}if(!this._initialized){this._initialized=!0;var C=S(f,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(C)}this._data=l},incrementalPrepareRender:function(n,t,s){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,t,s){for(var e=t.getData(),o=t.coordinateSystem,l=o.dimensions,u=c(t),f=n.start;f<n.end;f++){var p=h(e,this._dataGroup,f,l,o);p.incremental=!0,a(p,e,f,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function S(n,t,s){var e=n.model,o=n.getRect(),l=new I.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),u=e.get("layout")==="horizontal"?"width":"height";return l.setShape(u,0),I.initProps(l,{shape:{width:o.width,height:o.height}},t,s),l}function m(n,t,s,e){for(var o=[],l=0;l<s.length;l++){var u=s[l],f=n.get(n.mapDimension(u),t);r(f,e.getAxis(u).type)||o.push(e.dataToPoint(f,u))}return o}function h(n,t,s,e,o){var l=m(n,s,e,o),u=new I.Polyline({shape:{points:l},silent:!0,z2:10});return t.add(u),n.setItemGraphicEl(s,u),u}function c(n){var t=n.get("smooth",!0);return t===!0&&(t=T),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:t!=null?t:T}}function a(n,t,s,e){var o=e.lineStyle;if(t.hasItemOption){var l=t.getItemModel(s).getModel("lineStyle");o=l.getLineStyle()}n.useStyle(o);var u=n.style;u.fill=null,u.stroke=t.getItemVisual(s,"color"),u.opacity=t.getItemVisual(s,"opacity"),e.smooth&&(n.shape.smooth=e.smooth)}function r(n,t){return t==="category"?n==null:n==null||isNaN(n)}var i=g;H.exports=i},YOMW:function(H,k,d){var I=d("bYtY"),E={get:function(S,m,h){var c=I.clone((T[S]||{})[m]);return h&&I.isArray(c)?c[c.length-1]:c}},T={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]}},g=E;H.exports=g},YXkt:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("Qxkt"),S=d("gPAo"),m=d("7G+c"),h=d("KxfA"),c=h.defaultDimValueGetters,a=h.DefaultDataProvider,r=d("L0Ub"),i=r.summarizeDimensions,n=d("Vi4m"),t=T.isObject,s="undefined",e=-1,o="e\0\0",l={float:typeof Float64Array===s?Array:Float64Array,int:typeof Int32Array===s?Array:Int32Array,ordinal:Array,number:Array,time:Array},u=typeof Uint32Array===s?Array:Uint32Array,f=typeof Int32Array===s?Array:Int32Array,p=typeof Uint16Array===s?Array:Uint16Array;function v(V){return V._rawCount>65535?u:p}function A(V){var Y=V.constructor;return Y===Array?V.slice():new Y(V)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function C(V,Y){T.each(y.concat(Y.__wrappedMethods||[]),function(J){Y.hasOwnProperty(J)&&(V[J]=Y[J])}),V.__wrappedMethods=Y.__wrappedMethods,T.each(x,function(J){V[J]=T.clone(Y[J])}),V._calculationInfo=T.extend(Y._calculationInfo)}var w=function(V,Y){V=V||["x","y"];for(var J={},se=[],$={},ae=0;ae<V.length;ae++){var ge=V[ae];T.isString(ge)?ge=new n({name:ge}):ge instanceof n||(ge=new n(ge));var pe=ge.name;ge.type=ge.type||"float",ge.coordDim||(ge.coordDim=pe,ge.coordDimIndex=0),ge.otherDims=ge.otherDims||{},se.push(pe),J[pe]=ge,ge.index=ae,ge.createInvertedIndices&&($[pe]=[])}this.dimensions=se,this._dimensionInfos=J,this.hostModel=Y,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=i(this),this._invertedIndicesMap=$,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},b=w.prototype;b.type="list",b.hasItemOption=!0,b.getDimension=function(V){return(typeof V=="number"||!isNaN(V)&&!this._dimensionInfos.hasOwnProperty(V))&&(V=this.dimensions[V]),V},b.getDimensionInfo=function(V){return this._dimensionInfos[this.getDimension(V)]},b.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},b.mapDimension=function(V,Y){var J=this._dimensionsSummary;if(Y==null)return J.encodeFirstDimNotExtra[V];var se=J.encode[V];return Y===!0?(se||[]).slice():se&&se[Y]},b.initData=function(V,Y,J){var se=m.isInstance(V)||T.isArrayLike(V);se&&(V=new a(V,this.dimensions.length)),this._rawData=V,this._storage={},this._indices=null,this._nameList=Y||[],this._idList=[],this._nameRepeatCount={},J||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=J=J||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,V.count()),V.pure&&(this.hasItemOption=!1)},b.getProvider=function(){return this._rawData},b.appendData=function(V){var Y=this._rawData,J=this.count();Y.appendData(V);var se=Y.count();Y.persistent||(se+=J),this._initDataFromProvider(J,se)},b.appendValues=function(V,Y){for(var J=this._chunkSize,se=this._storage,$=this.dimensions,ae=$.length,ge=this._rawExtent,pe=this.count(),Ne=pe+Math.max(V.length,Y?Y.length:0),de=this._chunkCount,Le=0;Le<ae;Le++){var Q=$[Le];ge[Q]||(ge[Q]=K()),se[Q]||(se[Q]=[]),_(se,this._dimensionInfos[Q],J,de,Ne),this._chunkCount=se[Q].length}for(var ce=new Array(ae),Ke=pe;Ke<Ne;Ke++){for(var ee=Ke-pe,X=Math.floor(Ke/J),G=Ke%J,Z=0;Z<ae;Z++){var Q=$[Z],ve=this._dimValueGetterArrayRows(V[ee]||ce,Q,ee,Z);se[Q][X][G]=ve;var ue=ge[Q];ve<ue[0]&&(ue[0]=ve),ve>ue[1]&&(ue[1]=ve)}Y&&(this._nameList[Ke]=Y[ee])}this._rawCount=this._count=Ne,this._extent={},O(this)},b._initDataFromProvider=function(V,Y){if(V>=Y)return;for(var J=this._chunkSize,se=this._rawData,$=this._storage,ae=this.dimensions,ge=ae.length,pe=this._dimensionInfos,Ne=this._nameList,de=this._idList,Le=this._rawExtent,Q=this._nameRepeatCount={},ce,Ke=this._chunkCount,ee=0;ee<ge;ee++){var X=ae[ee];Le[X]||(Le[X]=K());var G=pe[X];G.otherDims.itemName===0&&(ce=this._nameDimIdx=ee),G.otherDims.itemId===0&&(this._idDimIdx=ee),$[X]||($[X]=[]),_($,G,J,Ke,Y),this._chunkCount=$[X].length}for(var Z=new Array(ge),ve=V;ve<Y;ve++){Z=se.getItem(ve,Z);for(var ue=Math.floor(ve/J),_e=ve%J,xe=0;xe<ge;xe++){var X=ae[xe],oe=$[X][ue],fe=this._dimValueGetter(Z,X,ve,xe);oe[_e]=fe;var Te=Le[X];fe<Te[0]&&(Te[0]=fe),fe>Te[1]&&(Te[1]=fe)}if(!se.pure){var ze=Ne[ve];if(Z&&ze==null){if(Z.name!=null)Ne[ve]=ze=Z.name;else if(ce!=null){var it=ae[ce],et=$[it][ue];if(et){ze=et[_e];var Oe=pe[it].ordinalMeta;Oe&&Oe.categories.length&&(ze=Oe.categories[ze])}}}var gt=Z==null?null:Z.id;gt==null&&ze!=null&&(Q[ze]=Q[ze]||0,gt=ze,Q[ze]>0&&(gt+="__ec__"+Q[ze]),Q[ze]++),gt!=null&&(de[ve]=gt)}}!se.persistent&&se.clean&&se.clean(),this._rawCount=this._count=Y,this._extent={},O(this)};function _(V,Y,J,se,$){var ae=l[Y.type],ge=se-1,pe=Y.name,Ne=V[pe][ge];if(Ne&&Ne.length<J){for(var de=new ae(Math.min($-ge*J,J)),Le=0;Le<Ne.length;Le++)de[Le]=Ne[Le];V[pe][ge]=de}for(var Q=se*J;Q<$;Q+=J)V[pe].push(new ae(Math.min($-Q,J)))}function O(V){var Y=V._invertedIndicesMap;T.each(Y,function(J,se){var $=V._dimensionInfos[se],ae=$.ordinalMeta;if(ae){J=Y[se]=new f(ae.categories.length);for(var ge=0;ge<J.length;ge++)J[ge]=e;for(var ge=0;ge<V._count;ge++)J[V.get(se,ge)]=ge}})}function L(V,Y,J){var se;if(Y!=null){var $=V._chunkSize,ae=Math.floor(J/$),ge=J%$,pe=V.dimensions[Y],Ne=V._storage[pe][ae];if(Ne){se=Ne[ge];var de=V._dimensionInfos[pe].ordinalMeta;de&&de.categories.length&&(se=de.categories[se])}}return se}b.count=function(){return this._count},b.getIndices=function(){var V,Y=this._indices;if(Y){var J=Y.constructor,se=this._count;if(J===Array){V=new J(se);for(var $=0;$<se;$++)V[$]=Y[$]}else V=new J(Y.buffer,0,se)}else for(var J=v(this),V=new J(this.count()),$=0;$<V.length;$++)V[$]=$;return V},b.get=function(V,Y){if(!(Y>=0&&Y<this._count))return NaN;var J=this._storage;if(!J[V])return NaN;Y=this.getRawIndex(Y);var se=Math.floor(Y/this._chunkSize),$=Y%this._chunkSize,ae=J[V][se],ge=ae[$];return ge},b.getByRawIndex=function(V,Y){if(!(Y>=0&&Y<this._rawCount))return NaN;var J=this._storage[V];if(!J)return NaN;var se=Math.floor(Y/this._chunkSize),$=Y%this._chunkSize,ae=J[se];return ae[$]},b._getFast=function(V,Y){var J=Math.floor(Y/this._chunkSize),se=Y%this._chunkSize,$=this._storage[V][J];return $[se]},b.getValues=function(V,Y){var J=[];T.isArray(V)||(Y=V,V=this.dimensions);for(var se=0,$=V.length;se<$;se++)J.push(this.get(V[se],Y));return J},b.hasValue=function(V){for(var Y=this._dimensionsSummary.dataDimsOnCoord,J=0,se=Y.length;J<se;J++)if(isNaN(this.get(Y[J],V)))return!1;return!0},b.getDataExtent=function(V){V=this.getDimension(V);var Y=this._storage[V],J=K();if(!Y)return J;var se=this.count(),$=!this._indices,ae;if($)return this._rawExtent[V].slice();if(ae=this._extent[V],ae)return ae.slice();ae=J;for(var ge=ae[0],pe=ae[1],Ne=0;Ne<se;Ne++){var de=this._getFast(V,this.getRawIndex(Ne));de<ge&&(ge=de),de>pe&&(pe=de)}return ae=[ge,pe],this._extent[V]=ae,ae},b.getApproximateExtent=function(V){return V=this.getDimension(V),this._approximateExtent[V]||this.getDataExtent(V)},b.setApproximateExtent=function(V,Y){Y=this.getDimension(Y),this._approximateExtent[Y]=V.slice()},b.getCalculationInfo=function(V){return this._calculationInfo[V]},b.setCalculationInfo=function(V,Y){t(V)?T.extend(this._calculationInfo,V):this._calculationInfo[V]=Y},b.getSum=function(V){var Y=this._storage[V],J=0;if(Y)for(var se=0,$=this.count();se<$;se++){var ae=this.get(V,se);isNaN(ae)||(J+=ae)}return J},b.getMedian=function(V){var Y=[];this.each(V,function($,ae){isNaN($)||Y.push($)});var J=[].concat(Y).sort(function($,ae){return $-ae}),se=this.count();return se===0?0:se%2===1?J[(se-1)/2]:(J[se/2]+J[se/2-1])/2},b.rawIndexOf=function(V,Y){var J=V&&this._invertedIndicesMap[V],se=J[Y];return se==null||isNaN(se)?e:se},b.indexOfName=function(V){for(var Y=0,J=this.count();Y<J;Y++)if(this.getName(Y)===V)return Y;return-1},b.indexOfRawIndex=function(V){if(V>=this._rawCount||V<0)return-1;if(!this._indices)return V;var Y=this._indices,J=Y[V];if(J!=null&&J<this._count&&J===V)return V;for(var se=0,$=this._count-1;se<=$;){var ae=(se+$)/2|0;if(Y[ae]<V)se=ae+1;else if(Y[ae]>V)$=ae-1;else return ae}return-1},b.indicesOfNearest=function(V,Y,J){var se=this._storage,$=se[V],ae=[];if(!$)return ae;J==null&&(J=Infinity);for(var ge=Infinity,pe=-1,Ne=0,de=0,Le=this.count();de<Le;de++){var Q=Y-this.get(V,de),ce=Math.abs(Q);ce<=J&&((ce<ge||ce===ge&&Q>=0&&pe<0)&&(ge=ce,pe=Q,Ne=0),Q===pe&&(ae[Ne++]=de))}return ae.length=Ne,ae},b.getRawIndex=D;function D(V){return V}function N(V){return V<this._count&&V>=0?this._indices[V]:-1}b.getRawDataItem=function(V){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(V));for(var Y=[],J=0;J<this.dimensions.length;J++){var se=this.dimensions[J];Y.push(this.get(se,V))}return Y},b.getName=function(V){var Y=this.getRawIndex(V);return this._nameList[Y]||L(this,this._nameDimIdx,Y)||""},b.getId=function(V){return M(this,this.getRawIndex(V))};function M(V,Y){var J=V._idList[Y];return J==null&&(J=L(V,V._idDimIdx,Y)),J==null&&(J=o+Y),J}function F(V){return T.isArray(V)||(V=[V]),V}function R(V,Y){for(var J=0;J<Y.length;J++)V._dimensionInfos[Y[J]]||console.error("Unkown dimension "+Y[J])}b.each=function(V,Y,J,se){"use strict";if(!this._count)return;typeof V=="function"&&(se=J,J=Y,Y=V,V=[]),J=J||se||this,V=T.map(F(V),this.getDimension,this);for(var $=V.length,ae=0;ae<this.count();ae++)switch($){case 0:Y.call(J,ae);break;case 1:Y.call(J,this.get(V[0],ae),ae);break;case 2:Y.call(J,this.get(V[0],ae),this.get(V[1],ae),ae);break;default:for(var ge=0,pe=[];ge<$;ge++)pe[ge]=this.get(V[ge],ae);pe[ge]=ae,Y.apply(J,pe)}},b.filterSelf=function(V,Y,J,se){"use strict";if(!this._count)return;typeof V=="function"&&(se=J,J=Y,Y=V,V=[]),J=J||se||this,V=T.map(F(V),this.getDimension,this);for(var $=this.count(),ae=v(this),ge=new ae($),pe=[],Ne=V.length,de=0,Le=V[0],Q=0;Q<$;Q++){var ce,Ke=this.getRawIndex(Q);if(Ne===0)ce=Y.call(J,Q);else if(Ne===1){var ee=this._getFast(Le,Ke);ce=Y.call(J,ee,Q)}else{for(var X=0;X<Ne;X++)pe[X]=this._getFast(Le,Ke);pe[X]=Q,ce=Y.apply(J,pe)}ce&&(ge[de++]=Ke)}return de<$&&(this._indices=ge),this._count=de,this._extent={},this.getRawIndex=this._indices?N:D,this},b.selectRange=function(V){"use strict";if(!this._count)return;var Y=[];for(var J in V)V.hasOwnProperty(J)&&Y.push(J);var se=Y.length;if(!se)return;var $=this.count(),ae=v(this),ge=new ae($),pe=0,Ne=Y[0],de=V[Ne][0],Le=V[Ne][1],Q=!1;if(!this._indices){var ce=0;if(se===1){for(var Ke=this._storage[Y[0]],ee=0;ee<this._chunkCount;ee++)for(var X=Ke[ee],G=Math.min(this._count-ee*this._chunkSize,this._chunkSize),Z=0;Z<G;Z++){var ve=X[Z];(ve>=de&&ve<=Le||isNaN(ve))&&(ge[pe++]=ce),ce++}Q=!0}else if(se===2){for(var Ke=this._storage[Ne],ue=this._storage[Y[1]],_e=V[Y[1]][0],xe=V[Y[1]][1],ee=0;ee<this._chunkCount;ee++)for(var X=Ke[ee],oe=ue[ee],G=Math.min(this._count-ee*this._chunkSize,this._chunkSize),Z=0;Z<G;Z++){var ve=X[Z],fe=oe[Z];(ve>=de&&ve<=Le||isNaN(ve))&&(fe>=_e&&fe<=xe||isNaN(fe))&&(ge[pe++]=ce),ce++}Q=!0}}if(!Q)if(se===1)for(var Z=0;Z<$;Z++){var Te=this.getRawIndex(Z),ve=this._getFast(Ne,Te);(ve>=de&&ve<=Le||isNaN(ve))&&(ge[pe++]=Te)}else for(var Z=0;Z<$;Z++){for(var ze=!0,Te=this.getRawIndex(Z),ee=0;ee<se;ee++){var it=Y[ee],ve=this._getFast(J,Te);(ve<V[it][0]||ve>V[it][1])&&(ze=!1)}ze&&(ge[pe++]=this.getRawIndex(Z))}return pe<$&&(this._indices=ge),this._count=pe,this._extent={},this.getRawIndex=this._indices?N:D,this},b.mapArray=function(V,Y,J,se){"use strict";typeof V=="function"&&(se=J,J=Y,Y=V,V=[]),J=J||se||this;var $=[];return this.each(V,function(){$.push(Y&&Y.apply(this,arguments))},J),$};function j(V,Y){var J=V.dimensions,se=new w(T.map(J,V.getDimensionInfo,V),V.hostModel);C(se,V);for(var $=se._storage={},ae=V._storage,ge=0;ge<J.length;ge++){var pe=J[ge];ae[pe]&&(T.indexOf(Y,pe)>=0?($[pe]=B(ae[pe]),se._rawExtent[pe]=K(),se._extent[pe]=null):$[pe]=ae[pe])}return se}function B(V){for(var Y=new Array(V.length),J=0;J<V.length;J++)Y[J]=A(V[J]);return Y}function K(){return[Infinity,-Infinity]}b.map=function(V,Y,J,se){"use strict";J=J||se||this,V=T.map(F(V),this.getDimension,this);var $=j(this,V);$._indices=this._indices,$.getRawIndex=$._indices?N:D;for(var ae=$._storage,ge=[],pe=this._chunkSize,Ne=V.length,de=this.count(),Le=[],Q=$._rawExtent,ce=0;ce<de;ce++){for(var Ke=0;Ke<Ne;Ke++)Le[Ke]=this.get(V[Ke],ce);Le[Ne]=ce;var ee=Y&&Y.apply(J,Le);if(ee!=null){typeof ee!="object"&&(ge[0]=ee,ee=ge);for(var X=this.getRawIndex(ce),G=Math.floor(X/pe),Z=X%pe,ve=0;ve<ee.length;ve++){var ue=V[ve],_e=ee[ve],xe=Q[ue],oe=ae[ue];oe&&(oe[G][Z]=_e),_e<xe[0]&&(xe[0]=_e),_e>xe[1]&&(xe[1]=_e)}}}return $},b.downSample=function(V,Y,J,se){for(var $=j(this,[V]),ae=$._storage,ge=[],pe=Math.floor(1/Y),Ne=ae[V],de=this.count(),Le=this._chunkSize,Q=$._rawExtent[V],ce=new(v(this))(de),Ke=0,ee=0;ee<de;ee+=pe){pe>de-ee&&(pe=de-ee,ge.length=pe);for(var X=0;X<pe;X++){var G=this.getRawIndex(ee+X),Z=Math.floor(G/Le),ve=G%Le;ge[X]=Ne[Z][ve]}var ue=J(ge),_e=this.getRawIndex(Math.min(ee+se(ge,ue)||0,de-1)),xe=Math.floor(_e/Le),oe=_e%Le;Ne[xe][oe]=ue,ue<Q[0]&&(Q[0]=ue),ue>Q[1]&&(Q[1]=ue),ce[Ke++]=_e}return $._count=Ke,$._indices=ce,$.getRawIndex=N,$},b.getItemModel=function(V){var Y=this.hostModel;return new g(this.getRawDataItem(V),Y,Y&&Y.ecModel)},b.diff=function(V){var Y=this;return new S(V?V.getIndices():[],this.getIndices(),function(J){return M(V,J)},function(J){return M(Y,J)})},b.getVisual=function(V){var Y=this._visual;return Y&&Y[V]},b.setVisual=function(V,Y){if(t(V)){for(var J in V)V.hasOwnProperty(J)&&this.setVisual(J,V[J]);return}this._visual=this._visual||{},this._visual[V]=Y},b.setLayout=function(V,Y){if(t(V)){for(var J in V)V.hasOwnProperty(J)&&this.setLayout(J,V[J]);return}this._layout[V]=Y},b.getLayout=function(V){return this._layout[V]},b.getItemLayout=function(V){return this._itemLayouts[V]},b.setItemLayout=function(V,Y,J){this._itemLayouts[V]=J?T.extend(this._itemLayouts[V]||{},Y):Y},b.clearItemLayouts=function(){this._itemLayouts.length=0},b.getItemVisual=function(V,Y,J){var se=this._itemVisuals[V],$=se&&se[Y];return $==null&&!J?this.getVisual(Y):$},b.setItemVisual=function(V,Y,J){var se=this._itemVisuals[V]||{},$=this.hasItemVisual;if(this._itemVisuals[V]=se,t(Y)){for(var ae in Y)Y.hasOwnProperty(ae)&&(se[ae]=Y[ae],$[ae]=!0);return}se[Y]=J,$[Y]=!0},b.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var U=function(V){V.seriesIndex=this.seriesIndex,V.dataIndex=this.dataIndex,V.dataType=this.dataType};b.setItemGraphicEl=function(V,Y){var J=this.hostModel;Y&&(Y.dataIndex=V,Y.dataType=this.dataType,Y.seriesIndex=J&&J.seriesIndex,Y.type==="group"&&Y.traverse(U,Y)),this._graphicEls[V]=Y},b.getItemGraphicEl=function(V){return this._graphicEls[V]},b.eachItemGraphicEl=function(V,Y){T.each(this._graphicEls,function(J,se){J&&(V&&V.call(Y,J,se))})},b.cloneShallow=function(V){if(!V){var Y=T.map(this.dimensions,this.getDimensionInfo,this);V=new w(Y,this.hostModel)}if(V._storage=this._storage,C(V,this),this._indices){var J=this._indices.constructor;V._indices=new J(this._indices)}else V._indices=null;return V.getRawIndex=V._indices?N:D,V},b.wrapMethod=function(V,Y){var J=this[V];if(typeof J!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(V),this[V]=function(){var se=J.apply(this,arguments);return Y.apply(this,[se].concat(T.slice(arguments)))}},b.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],b.CHANGABLE_METHODS=["filterSelf","selectRange"];var z=w;H.exports=z},YgsL:function(H,k,d){var I=d("QBsz"),E=I.distance;function T(S,m,h,c,a,r,i){var n=(h-S)*.5,t=(c-m)*.5;return(2*(m-h)+n+t)*i+(-3*(m-h)-2*n-t)*r+n*a+m}function g(S,m){for(var h=S.length,c=[],a=0,r=1;r<h;r++)a+=E(S[r-1],S[r]);var i=a/2;i=i<h?h:i;for(var r=0;r<i;r++){var n=r/(i-1)*(m?h:h-1),t=Math.floor(n),s=n-t,e,o=S[t%h],l,u;m?(e=S[(t-1+h)%h],l=S[(t+1)%h],u=S[(t+2)%h]):(e=S[t===0?t:t-1],l=S[t>h-2?h-1:t+1],u=S[t>h-3?h-1:t+2]);var f=s*s,p=s*f;c.push([T(e[0],o[0],l[0],u[0],s,f,p),T(e[1],o[1],l[1],u[1],s,f,p)])}return c}H.exports=g},Yl7c:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=".",S="___EC__COMPONENT__CONTAINER___";function m(e){var o={main:"",sub:""};return e&&(e=e.split(g),o.main=e[0]||"",o.sub=e[1]||""),o}function h(e){T.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,o){e.$constructor=e,e.extend=function(l){var u=this,f=function(){l.$constructor?l.$constructor.apply(this,arguments):u.apply(this,arguments)};return T.extend(f.prototype,l),f.extend=this.extend,f.superCall=i,f.superApply=n,T.inherits(f,this),f.superClass=u,f}}var a=0;function r(e){var o=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");e.prototype[o]=!0,e.isInstance=function(l){return!!(l&&l[o])}}function i(e,o){var l=T.slice(arguments,2);return this.superClass.prototype[o].apply(e,l)}function n(e,o,l){return this.superClass.prototype[o].apply(e,l)}function t(e,o){o=o||{};var l={};e.registerClass=function(p,v){if(v){if(h(v),v=m(v),!v.sub)l[v.main]=p;else if(v.sub!==S){var A=u(v);A[v.sub]=p}}return p},e.getClass=function(p,v,A){var y=l[p];if(y&&y[S]&&(y=v?y[v]:null),A&&!y)throw new Error(v?"Component "+p+"."+(v||"")+" not exists. Load it first.":p+".type should be specified.");return y},e.getClassesByMainType=function(p){p=m(p);var v=[],A=l[p.main];return A&&A[S]?T.each(A,function(y,x){x!==S&&v.push(y)}):v.push(A),v},e.hasClass=function(p){return p=m(p),!!l[p.main]},e.getAllClassMainTypes=function(){var p=[];return T.each(l,function(v,A){p.push(A)}),p},e.hasSubTypes=function(p){p=m(p);var v=l[p.main];return v&&v[S]},e.parseClassType=m;function u(p){var v=l[p.main];return(!v||!v[S])&&(v=l[p.main]={},v[S]=!0),v}if(o.registerWhenExtend){var f=e.extend;f&&(e.extend=function(p){var v=f.call(this,p);return e.registerClass(v,p.type)})}return e}function s(e,o){}k.parseClassType=m,k.enableClassExtend=c,k.enableClassCheck=r,k.enableClassManagement=t,k.setReadOnly=s},Ynxi:function(H,k,d){var I=d("bYtY"),E=d("ProS"),T=d("IwbS"),g=d("+TT/"),S=g.getLayoutRect,m=d("7aKB"),h=m.windowOpen;E.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"}}}),E.extendComponentView({type:"title",render:function(c,a,r){if(this.group.removeAll(),!c.get("show"))return;var i=this.group,n=c.getModel("textStyle"),t=c.getModel("subtextStyle"),s=c.get("textAlign"),e=I.retrieve2(c.get("textBaseline"),c.get("textVerticalAlign")),o=new T.Text({style:T.setTextStyle({},n,{text:c.get("text"),textFill:n.getTextColor()},{disableBox:!0}),z2:10}),l=o.getBoundingRect(),u=c.get("subtext"),f=new T.Text({style:T.setTextStyle({},t,{text:u,textFill:t.getTextColor(),y:l.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),v=c.get("sublink"),A=c.get("triggerEvent",!0);o.silent=!p&&!A,f.silent=!v&&!A,p&&o.on("click",function(){h(p,"_"+c.get("target"))}),v&&f.on("click",function(){h(p,"_"+c.get("subtarget"))}),o.eventData=f.eventData=A?{componentType:"title",componentIndex:c.componentIndex}:null,i.add(o),u&&i.add(f);var y=i.getBoundingRect(),x=c.getBoxLayoutParams();x.width=y.width,x.height=y.height;var C=S(x,{width:r.getWidth(),height:r.getHeight()},c.get("padding"));s||(s=c.get("left")||c.get("right"),s==="middle"&&(s="center"),s==="right"?C.x+=C.width:s==="center"&&(C.x+=C.width/2)),e||(e=c.get("top")||c.get("bottom"),e==="center"&&(e="middle"),e==="bottom"?C.y+=C.height:e==="middle"&&(C.y+=C.height/2),e=e||"top"),i.attr("position",[C.x,C.y]);var w={textAlign:s,textVerticalAlign:e};o.setStyle(w),f.setStyle(w),y=i.getBoundingRect();var b=C.margin,_=c.getItemStyle(["color","opacity"]);_.fill=c.get("backgroundColor");var O=new T.Rect({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:c.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(O)}})},Ywus:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("DO2E")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="DeleteOutlined";var c=g.forwardRef(h);k.default=c},Z0Lh:function(H,k,d){"use strict";var I=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var E=I(d("pVnL")),T=I(d("HjOm")),g=I(d("Z6rY")),S={lang:(0,E.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"]},T.default),timePickerLocale:(0,E.default)({},g.default)};S.lang.ok="\u786E \u5B9A";var m=S;k.default=m},Z1HP:function(H,k,d){var I=d("ycre"),E=d("quyA"),T=d("q4HE");function g(S){return E(S)?T(S):I(S)}H.exports=g},Z1r0:function(H,k){function d(I){var E=I.findComponents({mainType:"legend"});if(!E||!E.length)return;I.eachSeriesByType("graph",function(T){var g=T.getCategoriesData(),S=T.getGraph(),m=S.data,h=g.mapArray(g.getName);m.filterSelf(function(c){var a=m.getItemModel(c),r=a.getShallow("category");if(r!=null){typeof r=="number"&&(r=h[r]);for(var i=0;i<E.length;i++)if(!E[i].isSelected(r))return!1}return!0})},this)}H.exports=d},Z1wy:function(H,k,d){var I=d("ProS");d("ThAp"),d("pmaE"),d("SehX"),d("7uqq");var E=d("zuHt"),T=d("VPsl"),g=d("9u0u"),S=d("lELe"),m=d("d4KN");I.registerLayout(E),I.registerVisual(T),I.registerProcessor(I.PRIORITY.PROCESSOR.STATISTIC,g),I.registerPreprocessor(S),m("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(H,k,d){var I=d("MwEJ"),E=d("T4UG"),T=E.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(g,S){return I(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}});H.exports=T},Z6rY:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},E=I;k.default=E},Z8zF:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("IwbS"),m=d("56rv"),h=m.setLabel,c=d("Qxkt"),a=d("tceW"),r=d("y+Vt"),i=d("4fz+"),n=d("iLNv"),t=n.throttle,s=d("sK/D"),e=s.createClipPath,o=d("wr5s"),l=["itemStyle","barBorderWidth"],u=[0,0];g.extend(c.prototype,a);function f(U,z){var V=U.getArea&&U.getArea();if(U.type==="cartesian2d"){var Y=U.getBaseAxis();if(Y.type!=="category"||!Y.onBand){var J=z.getLayout("bandWidth");Y.isHorizontal()?(V.x-=J,V.width+=J*2):(V.y-=J,V.height+=J*2)}}return V}var p=T.extendChartView({type:"bar",render:function(U,z,V){this._updateDrawMode(U);var Y=U.get("coordinateSystem");return(Y==="cartesian2d"||Y==="polar")&&(this._isLargeDraw?this._renderLarge(U,z,V):this._renderNormal(U,z,V)),this.group},incrementalPrepareRender:function(U,z,V){this._clear(),this._updateDrawMode(U)},incrementalRender:function(U,z,V,Y){this._incrementalRenderLarge(U,z)},_updateDrawMode:function(U){var z=U.pipelineContext.large;(this._isLargeDraw==null||z^this._isLargeDraw)&&(this._isLargeDraw=z,this._clear())},_renderNormal:function(U,z,V){var Y=this.group,J=U.getData(),se=this._data,$=U.coordinateSystem,ae=$.getBaseAxis(),ge;$.type==="cartesian2d"?ge=ae.isHorizontal():$.type==="polar"&&(ge=ae.dim==="angle");var pe=U.isAnimationEnabled()?U:null,Ne=U.get("clip",!0),de=f($,J);Y.removeClipPath();var Le=U.get("roundCap",!0),Q=U.get("showBackground",!0),ce=U.getModel("backgroundStyle"),Ke=ce.get("barBorderRadius")||0,ee=[],X=this._backgroundEls||[];J.diff(se).add(function(ve){var ue=J.getItemModel(ve),_e=b[$.type](J,ve,ue);if(Q){var xe=b[$.type](J,ve),oe=K($,ge,xe);oe.useStyle(ce.getBarItemStyle()),$.type==="cartesian2d"&&oe.setShape("r",Ke),ee[ve]=oe}if(!J.hasValue(ve))return;if(Ne){var fe=y[$.type](de,_e);if(fe){Y.remove(Te);return}}var Te=x[$.type](ve,_e,ge,pe,!1,Le);J.setItemGraphicEl(ve,Te),Y.add(Te),O(Te,J,ve,ue,_e,U,ge,$.type==="polar")}).update(function(ve,ue){var _e=J.getItemModel(ve),xe=b[$.type](J,ve,_e);if(Q){var oe=X[ue];oe.useStyle(ce.getBarItemStyle()),$.type==="cartesian2d"&&oe.setShape("r",Ke),ee[ve]=oe;var fe=b[$.type](J,ve),Te=B(ge,fe,$);S.updateProps(oe,{shape:Te},pe,ve)}var ze=se.getItemGraphicEl(ue);if(!J.hasValue(ve)){Y.remove(ze);return}if(Ne){var it=y[$.type](de,xe);if(it){Y.remove(ze);return}}ze?S.updateProps(ze,{shape:xe},pe,ve):ze=x[$.type](ve,xe,ge,pe,!0,Le),J.setItemGraphicEl(ve,ze),Y.add(ze),O(ze,J,ve,_e,xe,U,ge,$.type==="polar")}).remove(function(ve){var ue=se.getItemGraphicEl(ve);$.type==="cartesian2d"?ue&&C(ve,pe,ue):ue&&w(ve,pe,ue)}).execute();var G=this._backgroundGroup||(this._backgroundGroup=new i);G.removeAll();for(var Z=0;Z<ee.length;++Z)G.add(ee[Z]);Y.add(G),this._backgroundEls=ee,this._data=J},_renderLarge:function(U,z,V){this._clear(),N(U,this.group);var Y=U.get("clip",!0)?e(U.coordinateSystem,!1,U):null;Y?this.group.setClipPath(Y):this.group.removeClipPath()},_incrementalRenderLarge:function(U,z){this._removeBackground(),N(z,this.group,!0)},dispose:g.noop,remove:function(U){this._clear(U)},_clear:function(U){var z=this.group,V=this._data;U&&U.get("animation")&&V&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],V.eachItemGraphicEl(function(Y){Y.type==="sector"?w(Y.dataIndex,U,Y):C(Y.dataIndex,U,Y)})):z.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),v=Math.max,A=Math.min,y={cartesian2d:function(U,z){var V=z.width<0?-1:1,Y=z.height<0?-1:1;V<0&&(z.x+=z.width,z.width=-z.width),Y<0&&(z.y+=z.height,z.height=-z.height);var J=v(z.x,U.x),se=A(z.x+z.width,U.x+U.width),$=v(z.y,U.y),ae=A(z.y+z.height,U.y+U.height);z.x=J,z.y=$,z.width=se-J,z.height=ae-$;var ge=z.width<0||z.height<0;return V<0&&(z.x+=z.width,z.width=-z.width),Y<0&&(z.y+=z.height,z.height=-z.height),ge},polar:function(U){return!1}},x={cartesian2d:function(U,z,V,Y,J){var se=new S.Rect({shape:g.extend({},z),z2:1});if(se.name="item",Y){var $=se.shape,ae=V?"height":"width",ge={};$[ae]=0,ge[ae]=z[ae],S[J?"updateProps":"initProps"](se,{shape:ge},Y,U)}return se},polar:function(U,z,V,Y,J,se){var $=z.startAngle<z.endAngle,ae=!V&&se?o:S.Sector,ge=new ae({shape:g.defaults({clockwise:$},z),z2:1});if(ge.name="item",Y){var pe=ge.shape,Ne=V?"r":"endAngle",de={};pe[Ne]=V?0:z.startAngle,de[Ne]=z[Ne],S[J?"updateProps":"initProps"](ge,{shape:de},Y,U)}return ge}};function C(U,z,V){V.style.text=null,S.updateProps(V,{shape:{width:0}},z,U,function(){V.parent&&V.parent.remove(V)})}function w(U,z,V){V.style.text=null,S.updateProps(V,{shape:{r:V.shape.r0}},z,U,function(){V.parent&&V.parent.remove(V)})}var b={cartesian2d:function(U,z,V){var Y=U.getItemLayout(z),J=V?L(V,Y):0,se=Y.width>0?1:-1,$=Y.height>0?1:-1;return{x:Y.x+se*J/2,y:Y.y+$*J/2,width:Y.width-se*J,height:Y.height-$*J}},polar:function(U,z,V){var Y=U.getItemLayout(z);return{cx:Y.cx,cy:Y.cy,r0:Y.r0,r:Y.r,startAngle:Y.startAngle,endAngle:Y.endAngle}}};function _(U){return U.startAngle!=null&&U.endAngle!=null&&U.startAngle===U.endAngle}function O(U,z,V,Y,J,se,$,ae){var ge=z.getItemVisual(V,"color"),pe=z.getItemVisual(V,"opacity"),Ne=z.getVisual("borderColor"),de=Y.getModel("itemStyle"),Le=Y.getModel("emphasis.itemStyle").getBarItemStyle();ae||U.setShape("r",de.get("barBorderRadius")||0),U.useStyle(g.defaults({stroke:_(J)?"none":Ne,fill:_(J)?"none":ge,opacity:pe},de.getBarItemStyle()));var Q=Y.getShallow("cursor");Q&&U.attr("cursor",Q);var ce=$?J.height>0?"bottom":"top":J.width>0?"left":"right";ae||h(U.style,Le,Y,ge,se,V,ce),_(J)&&(Le.fill=Le.stroke="none"),S.setHoverStyle(U,Le)}function L(U,z){var V=U.get(l)||0,Y=isNaN(z.width)?Number.MAX_VALUE:Math.abs(z.width),J=isNaN(z.height)?Number.MAX_VALUE:Math.abs(z.height);return Math.min(V,Y,J)}var D=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(U,z){for(var V=z.points,Y=this.__startPoint,J=this.__baseDimIdx,se=0;se<V.length;se+=2)Y[J]=V[se+J],U.moveTo(Y[0],Y[1]),U.lineTo(V[se],V[se+1])}});function N(U,z,V){var Y=U.getData(),J=[],se=Y.getLayout("valueAxisHorizontal")?1:0;J[1-se]=Y.getLayout("valueAxisStart");var $=Y.getLayout("largeDataIndices"),ae=Y.getLayout("barWidth"),ge=U.getModel("backgroundStyle"),pe=U.get("showBackground",!0);if(pe){var Ne=Y.getLayout("largeBackgroundPoints"),de=[];de[1-se]=Y.getLayout("backgroundStart");var Le=new D({shape:{points:Ne},incremental:!!V,__startPoint:de,__baseDimIdx:se,__largeDataIndices:$,__barWidth:ae,silent:!0,z2:0});j(Le,ge,Y),z.add(Le)}var Q=new D({shape:{points:Y.getLayout("largePoints")},incremental:!!V,__startPoint:J,__baseDimIdx:se,__largeDataIndices:$,__barWidth:ae});z.add(Q),R(Q,U,Y),Q.seriesIndex=U.seriesIndex,U.get("silent")||(Q.on("mousedown",M),Q.on("mousemove",M))}var M=t(function(U){var z=this,V=F(z,U.offsetX,U.offsetY);z.dataIndex=V>=0?V:null},30,!1);function F(U,z,V){var Y=U.__baseDimIdx,J=1-Y,se=U.shape.points,$=U.__largeDataIndices,ae=Math.abs(U.__barWidth/2),ge=U.__startPoint[J];u[0]=z,u[1]=V;for(var pe=u[Y],Ne=u[1-Y],de=pe-ae,Le=pe+ae,Q=0,ce=se.length/2;Q<ce;Q++){var Ke=Q*2,ee=se[Ke+Y],X=se[Ke+J];if(ee>=de&&ee<=Le&&(ge<=X?Ne>=ge&&Ne<=X:Ne>=X&&Ne<=ge))return $[Q]}return-1}function R(U,z,V){var Y=V.getVisual("borderColor")||V.getVisual("color"),J=z.getModel("itemStyle").getItemStyle(["color","borderColor"]);U.useStyle(J),U.style.fill=null,U.style.stroke=Y,U.style.lineWidth=V.getLayout("barWidth")}function j(U,z,V){var Y=z.get("borderColor")||z.get("color"),J=z.getItemStyle(["color","borderColor"]);U.useStyle(J),U.style.fill=null,U.style.stroke=Y,U.style.lineWidth=V.getLayout("barWidth")}function B(U,z,V){var Y,J=V.type==="polar";return J?Y=V.getArea():Y=V.grid.getRect(),J?{cx:Y.cx,cy:Y.cy,r0:U?Y.r0:z.r0,r:U?Y.r:z.r,startAngle:U?z.startAngle:0,endAngle:U?z.endAngle:Math.PI*2}:{x:U?z.x:Y.x,y:U?Y.y:z.y,width:U?z.width:Y.width,height:U?Y.height:z.height}}function K(U,z,V){var Y=U.type==="polar"?S.Sector:S.Rect;return new Y({shape:B(z,V,U),silent:!0,z2:0})}H.exports=p},ZCgT:function(H,k,d){var I=d("tLB3"),E=1/0,T=17976931348623157e292;function g(S){if(!S)return S===0?S:0;if(S=I(S),S===E||S===-E){var m=S<0?-1:1;return m*T}return S===S?S:0}H.exports=g},ZLWo:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},ZMnZ:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("2oIt")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="UpOutlined";var c=g.forwardRef(h);k.default=c},ZTPi:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("q1tI"),m=d("rePB"),h=d("ODXe"),c=d("Ff2n"),a=d("VTBJ"),r=d("TSYQ"),i=d.n(r),n=d("Zm9Q"),t=d("6cGi"),s=d("KQm4"),e=d("xEkU"),o=d.n(e),l=d("t23M");function u(fr){var Dr=Object(S.useRef)(),Qr=Object(S.useRef)(!1);function Nr(){for(var Yt=arguments.length,xr=new Array(Yt),tr=0;tr<Yt;tr++)xr[tr]=arguments[tr];Qr.current||(o.a.cancel(Dr.current),Dr.current=o()(function(){fr.apply(void 0,xr)}))}return Object(S.useEffect)(function(){return function(){Qr.current=!0,o.a.cancel(Dr.current)}},[]),Nr}function f(fr){var Dr=Object(S.useRef)([]),Qr=Object(S.useState)({}),Nr=Object(h.a)(Qr,2),Yt=Nr[1],xr=Object(S.useRef)(typeof fr=="function"?fr():fr),tr=u(function(){var Ur=xr.current;Dr.current.forEach(function(dn){Ur=dn(Ur)}),Dr.current=[],xr.current=Ur,Yt({})});function jr(Ur){Dr.current.push(Ur),tr()}return[xr.current,jr]}var p=d("4IlW");function v(fr,Dr){var Qr,Nr=fr.prefixCls,Yt=fr.id,xr=fr.active,tr=fr.rtl,jr=fr.tab,Ur=jr.key,dn=jr.tab,sn=jr.disabled,bn=jr.closeIcon,Bn=fr.tabBarGutter,Xn=fr.tabPosition,$n=fr.closable,Ti=fr.renderWrapper,Xi=fr.removeAriaLabel,ua=fr.editable,da=fr.onClick,sa=fr.onRemove,ca=fr.onFocus,zi="".concat(Nr,"-tab");S.useEffect(function(){return sa},[]);var Ri={};Xn==="top"||Xn==="bottom"?Ri[tr?"marginLeft":"marginRight"]=Bn:Ri.marginBottom=Bn;var ta=ua&&$n!==!1&&!sn;function $i(qi){if(sn)return;da(qi)}function Ca(qi){qi.preventDefault(),qi.stopPropagation(),ua.onEdit("remove",{key:Ur,event:qi})}var Ma=S.createElement("div",{key:Ur,ref:Dr,className:i()(zi,(Qr={},Object(m.a)(Qr,"".concat(zi,"-with-remove"),ta),Object(m.a)(Qr,"".concat(zi,"-active"),xr),Object(m.a)(Qr,"".concat(zi,"-disabled"),sn),Qr)),style:Ri,onClick:$i},S.createElement("div",{role:"tab","aria-selected":xr,id:Yt&&"".concat(Yt,"-tab-").concat(Ur),className:"".concat(zi,"-btn"),"aria-controls":Yt&&"".concat(Yt,"-panel-").concat(Ur),"aria-disabled":sn,tabIndex:sn?null:0,onClick:function(Yi){Yi.stopPropagation(),$i(Yi)},onKeyDown:function(Yi){[p.a.SPACE,p.a.ENTER].includes(Yi.which)&&(Yi.preventDefault(),$i(Yi))},onFocus:ca},dn),ta&&S.createElement("button",{type:"button","aria-label":Xi||"remove",tabIndex:0,className:"".concat(zi,"-remove"),onClick:function(Yi){Yi.stopPropagation(),Ca(Yi)}},bn||ua.removeIcon||"\xD7"));return Ti&&(Ma=Ti(Ma)),Ma}var A=S.forwardRef(v),y={width:0,height:0,left:0,top:0};function x(fr,Dr,Qr){return Object(S.useMemo)(function(){for(var Nr,Yt=new Map,xr=Dr.get((Nr=fr[0])===null||Nr===void 0?void 0:Nr.key)||y,tr=xr.left+xr.width,jr=0;jr<fr.length;jr+=1){var Ur=fr[jr].key,dn=Dr.get(Ur);if(!dn){var sn;dn=Dr.get((sn=fr[jr-1])===null||sn===void 0?void 0:sn.key)||y}var bn=Yt.get(Ur)||Object(a.a)({},dn);bn.right=tr-bn.left-bn.width,Yt.set(Ur,bn)}return Yt},[fr.map(function(Nr){return Nr.key}).join("_"),Dr,Qr])}var C={width:0,height:0,left:0,top:0,right:0};function w(fr,Dr,Qr,Nr,Yt){var xr=Yt.tabs,tr=Yt.tabPosition,jr=Yt.rtl,Ur,dn,sn;["top","bottom"].includes(tr)?(Ur="width",dn=jr?"right":"left",sn=Math.abs(Dr.left)):(Ur="height",dn="top",sn=-Dr.top);var bn=Dr[Ur],Bn=Qr[Ur],Xn=Nr[Ur],$n=bn;return Bn+Xn>bn&&($n=bn-Xn),Object(S.useMemo)(function(){if(!xr.length)return[0,0];for(var Ti=xr.length,Xi=Ti,ua=0;ua<Ti;ua+=1){var da=fr.get(xr[ua].key)||C;if(da[dn]+da[Ur]>sn+$n){Xi=ua-1;break}}for(var sa=0,ca=Ti-1;ca>=0;ca-=1){var zi=fr.get(xr[ca].key)||C;if(zi[dn]<sn){sa=ca+1;break}}return[sa,Xi]},[fr,sn,$n,tr,xr.map(function(Ti){return Ti.key}).join("_"),jr])}var b=d("wx14"),_=d("1OyB"),O=d("vuIU"),L=d("JX7q"),D=d("Ji7U"),N=d("LK+K"),M=d("I8Z2"),F=d("bT9E"),R=d("2GS6"),j=d("Gytx"),B=d.n(j),K=d("U8pU"),U=/iPhone/i,z=/iPod/i,V=/iPad/i,Y=/\bAndroid(?:.+)Mobile\b/i,J=/Android/i,se=/\bAndroid(?:.+)SD4930UR\b/i,$=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,ae=/Windows Phone/i,ge=/\bWindows(?:.+)ARM\b/i,pe=/BlackBerry/i,Ne=/BB10/i,de=/Opera Mini/i,Le=/\b(CriOS|Chrome)(?:.+)Mobile/i,Q=/Mobile(?:.+)Firefox\b/i;function ce(fr,Dr){return fr.test(Dr)}function Ke(fr){var Dr=fr||(typeof navigator!="undefined"?navigator.userAgent:""),Qr=(Dr||"").split("[FBAN");if(typeof Qr[1]!="undefined"){var Nr=Qr,Yt=Object(h.a)(Nr,1);Dr=Yt[0]}if(Qr=Dr.split("Twitter"),typeof Qr[1]!="undefined"){var xr=Qr,tr=Object(h.a)(xr,1);Dr=tr[0]}var jr={apple:{phone:ce(U,Dr)&&!ce(ae,Dr),ipod:ce(z,Dr),tablet:!ce(U,Dr)&&ce(V,Dr)&&!ce(ae,Dr),device:(ce(U,Dr)||ce(z,Dr)||ce(V,Dr))&&!ce(ae,Dr)},amazon:{phone:ce(se,Dr),tablet:!ce(se,Dr)&&ce($,Dr),device:ce(se,Dr)||ce($,Dr)},android:{phone:!ce(ae,Dr)&&ce(se,Dr)||!ce(ae,Dr)&&ce(Y,Dr),tablet:!ce(ae,Dr)&&!ce(se,Dr)&&!ce(Y,Dr)&&(ce($,Dr)||ce(J,Dr)),device:!ce(ae,Dr)&&(ce(se,Dr)||ce($,Dr)||ce(Y,Dr)||ce(J,Dr))||ce(/\bokhttp\b/i,Dr)},windows:{phone:ce(ae,Dr),tablet:ce(ge,Dr),device:ce(ae,Dr)||ce(ge,Dr)},other:{blackberry:ce(pe,Dr),blackberry10:ce(Ne,Dr),opera:ce(de,Dr),firefox:ce(Q,Dr),chrome:ce(Le,Dr),device:ce(pe,Dr)||ce(Ne,Dr)||ce(de,Dr)||ce(Q,Dr)||ce(Le,Dr)},any:null,phone:null,tablet:null};return jr.any=jr.apple.device||jr.android.device||jr.windows.device||jr.other.device,jr.phone=jr.apple.phone||jr.android.phone||jr.windows.phone,jr.tablet=jr.apple.tablet||jr.android.tablet||jr.windows.tablet,jr}var ee=Object(a.a)(Object(a.a)({},Ke()),{},{isMobile:Ke}),X=ee;function G(){}function Z(fr,Dr,Qr){var Nr=Dr||"";return fr.key||"".concat(Nr,"item_").concat(Qr)}function ve(fr){return"".concat(fr,"-menu-")}function ue(fr,Dr){var Qr=-1;S.Children.forEach(fr,function(Nr){Qr+=1,Nr&&Nr.type&&Nr.type.isMenuItemGroup?S.Children.forEach(Nr.props.children,function(Yt){Qr+=1,Dr(Yt,Qr)}):Dr(Nr,Qr)})}function _e(fr,Dr,Qr){if(!fr||Qr.find)return;S.Children.forEach(fr,function(Nr){if(Nr){var Yt=Nr.type;if(!Yt||!(Yt.isSubMenu||Yt.isMenuItem||Yt.isMenuItemGroup))return;Dr.indexOf(Nr.key)!==-1?Qr.find=!0:Nr.props.children&&_e(Nr.props.children,Dr,Qr)}})}var xe=["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"],oe=function(Dr){var Qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nr=Dr&&typeof Dr.getBoundingClientRect=="function"&&Dr.getBoundingClientRect().width;if(Nr){if(Qr){var Yt=getComputedStyle(Dr),xr=Yt.marginLeft,tr=Yt.marginRight;Nr+=+xr.replace("px","")+ +tr.replace("px","")}Nr=+Nr.toFixed(6)}return Nr||0},fe=function(Dr,Qr,Nr){Dr&&Object(K.a)(Dr.style)==="object"&&(Dr.style[Qr]=Nr)},Te=function(){return X.any},ze=d("bdgK"),it=d("i8i4"),et=d.n(it),Oe=d("wgJM"),gt=d("l4aY"),Ge=d("m+aA"),wt=d("c+Xe"),xt=d("zT1h"),Ct=d("QC+M");function Dt(fr,Dr,Qr){return Qr?fr[0]===Dr[0]:fr[0]===Dr[0]&&fr[1]===Dr[1]}function Ht(fr,Dr,Qr){var Nr=fr[Dr]||{};return Object(a.a)(Object(a.a)({},Nr),Qr)}function Je(fr,Dr,Qr,Nr){for(var Yt=Qr.points,xr=Object.keys(fr),tr=0;tr<xr.length;tr+=1){var jr=xr[tr];if(Dt(fr[jr].points,Yt,Nr))return"".concat(Dr,"-placement-").concat(jr)}return""}var ye=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var fr=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(fr)||/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(fr==null?void 0:fr.substr(0,4)))},ie=d("MNnm");function bt(fr,Dr){var Qr={};return Qr[fr.toLowerCase()]=Dr.toLowerCase(),Qr["Webkit".concat(fr)]="webkit".concat(Dr),Qr["Moz".concat(fr)]="moz".concat(Dr),Qr["ms".concat(fr)]="MS".concat(Dr),Qr["O".concat(fr)]="o".concat(Dr.toLowerCase()),Qr}function qe(fr,Dr){var Qr={animationend:bt("Animation","AnimationEnd"),transitionend:bt("Transition","TransitionEnd")};return fr&&("AnimationEvent"in Dr||delete Qr.animationend.animation,"TransitionEvent"in Dr||delete Qr.transitionend.transition),Qr}var me=qe(Object(ie.a)(),typeof window!="undefined"?window:{}),Rt={};if(Object(ie.a)()){var er=document.createElement("div");Rt=er.style}var ct={};function zt(fr){if(ct[fr])return ct[fr];var Dr=me[fr];if(Dr)for(var Qr=Object.keys(Dr),Nr=Qr.length,Yt=0;Yt<Nr;Yt+=1){var xr=Qr[Yt];if(Object.prototype.hasOwnProperty.call(Dr,xr)&&xr in Rt)return ct[fr]=Dr[xr],ct[fr]}return""}var sr=zt("animationend"),Kr=zt("transitionend"),ar=!!(sr&&Kr),nr=sr||"animationend",Lt=Kr||"transitionend";function st(fr,Dr){if(!fr)return null;if(Object(K.a)(fr)==="object"){var Qr=Dr.replace(/-\w/g,function(Nr){return Nr[1].toUpperCase()});return fr[Qr]}return"".concat(fr,"-").concat(Dr)}var Qe="none",qt="appear",Sr="enter",Ar="leave",hr="none",vn="prepare",Zr="start",Ln="active",$e="end";function tt(fr){var Dr=Object(S.useRef)(!1),Qr=Object(S.useState)(fr),Nr=Object(h.a)(Qr,2),Yt=Nr[0],xr=Nr[1];function tr(jr){Dr.current||xr(jr)}return Object(S.useEffect)(function(){return function(){Dr.current=!0}},[]),[Yt,tr]}var Ee=Object(ie.a)()?S.useLayoutEffect:S.useEffect,Re=Ee,je=function(){var fr=S.useRef(null);function Dr(){Oe.a.cancel(fr.current)}function Qr(Nr){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Dr();var xr=Object(Oe.a)(function(){Yt<=1?Nr({isCanceled:function(){return xr!==fr.current}}):Qr(Nr,Yt-1)});fr.current=xr}return S.useEffect(function(){return function(){Dr()}},[]),[Qr,Dr]},nt=[vn,Zr,Ln,$e],Vt=!1,Bt=!0;function Xt(fr){return fr===Ln||fr===$e}var Rr=function(fr,Dr){var Qr=S.useState(hr),Nr=Object(h.a)(Qr,2),Yt=Nr[0],xr=Nr[1],tr=je(),jr=Object(h.a)(tr,2),Ur=jr[0],dn=jr[1];function sn(){xr(vn)}return Re(function(){if(Yt!==hr&&Yt!==$e){var bn=nt.indexOf(Yt),Bn=nt[bn+1],Xn=Dr(Yt);Xn===Vt?xr(Bn):Ur(function($n){function Ti(){if($n.isCanceled())return;xr(Bn)}Xn===!0?Ti():Promise.resolve(Xn).then(Ti)})}},[fr,Yt]),S.useEffect(function(){return function(){dn()}},[]),[sn,Yt]},Br=function(fr){var Dr=Object(S.useRef)(),Qr=Object(S.useRef)(fr);Qr.current=fr;var Nr=S.useCallback(function(tr){Qr.current(tr)},[]);function Yt(tr){tr&&(tr.removeEventListener(Lt,Nr),tr.removeEventListener(nr,Nr))}function xr(tr){Dr.current&&Dr.current!==tr&&Yt(Dr.current),tr&&tr!==Dr.current&&(tr.addEventListener(Lt,Nr),tr.addEventListener(nr,Nr),Dr.current=tr)}return S.useEffect(function(){return function(){Yt(Dr.current)}},[]),[xr,Yt]};function cn(fr,Dr,Qr,Nr){var Yt=Nr.motionEnter,xr=Yt===void 0?!0:Yt,tr=Nr.motionAppear,jr=tr===void 0?!0:tr,Ur=Nr.motionLeave,dn=Ur===void 0?!0:Ur,sn=Nr.motionDeadline,bn=Nr.motionLeaveImmediately,Bn=Nr.onAppearPrepare,Xn=Nr.onEnterPrepare,$n=Nr.onLeavePrepare,Ti=Nr.onAppearStart,Xi=Nr.onEnterStart,ua=Nr.onLeaveStart,da=Nr.onAppearActive,sa=Nr.onEnterActive,ca=Nr.onLeaveActive,zi=Nr.onAppearEnd,Ri=Nr.onEnterEnd,ta=Nr.onLeaveEnd,$i=Nr.onVisibleChanged,Ca=tt(),Ma=Object(h.a)(Ca,2),qi=Ma[0],Yi=Ma[1],Pa=tt(Qe),ya=Object(h.a)(Pa,2),Ci=ya[0],la=ya[1],Ha=tt(null),ka=Object(h.a)(Ha,2),Aa=ka[0],Sa=ka[1],Ya=Object(S.useRef)(!1),Ta=Object(S.useRef)(null),Ga=Object(S.useRef)(!1),uo=Object(S.useRef)(null);function aa(){var qa=Qr();return qa||uo.current}var ho=Object(S.useRef)(!1);function Ua(qa){var Oa=aa();if(qa&&!qa.deadline&&qa.target!==Oa)return;var oo;Ci===qt&&ho.current?oo=zi==null?void 0:zi(Oa,qa):Ci===Sr&&ho.current?oo=Ri==null?void 0:Ri(Oa,qa):Ci===Ar&&ho.current&&(oo=ta==null?void 0:ta(Oa,qa)),oo!==!1&&!Ga.current&&(la(Qe),Sa(null))}var Na=Br(Ua),$a=Object(h.a)(Na,1),Ra=$a[0],Ka=S.useMemo(function(){var qa,Oa,oo;switch(Ci){case"appear":return qa={},Object(m.a)(qa,vn,Bn),Object(m.a)(qa,Zr,Ti),Object(m.a)(qa,Ln,da),qa;case"enter":return Oa={},Object(m.a)(Oa,vn,Xn),Object(m.a)(Oa,Zr,Xi),Object(m.a)(Oa,Ln,sa),Oa;case"leave":return oo={},Object(m.a)(oo,vn,$n),Object(m.a)(oo,Zr,ua),Object(m.a)(oo,Ln,ca),oo;default:return{}}},[Ci]),bo=Rr(Ci,function(qa){if(qa===vn){var Oa=Ka[vn];return Oa?Oa(aa()):Vt}if(fo in Ka){var oo;Sa(((oo=Ka[fo])===null||oo===void 0?void 0:oo.call(Ka,aa(),null))||null)}return fo===Ln&&(Ra(aa()),sn>0&&(clearTimeout(Ta.current),Ta.current=setTimeout(function(){Ua({deadline:!0})},sn))),Bt}),no=Object(h.a)(bo,2),Co=no[0],fo=no[1],po=Xt(fo);ho.current=po,Re(function(){Yi(Dr);var qa=Ya.current;if(Ya.current=!0,!fr)return;var Oa;!qa&&Dr&&jr&&(Oa=qt),qa&&Dr&&xr&&(Oa=Sr),(qa&&!Dr&&dn||!qa&&bn&&!Dr&&dn)&&(Oa=Ar),Oa&&(la(Oa),Co())},[Dr]),Object(S.useEffect)(function(){(Ci===qt&&!jr||Ci===Sr&&!xr||Ci===Ar&&!dn)&&la(Qe)},[jr,xr,dn]),Object(S.useEffect)(function(){return function(){clearTimeout(Ta.current),Ga.current=!0}},[]),Object(S.useEffect)(function(){qi!==void 0&&Ci===Qe&&($i==null||$i(qi))},[qi,Ci]);var Za=Aa;return Ka[vn]&&fo===Zr&&(Za=Object(a.a)({transition:"none"},Za)),[Ci,fo,Za,qi!=null?qi:Dr]}var Ut=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(){return Object(_.a)(this,Qr),Dr.apply(this,arguments)}return Object(O.a)(Qr,[{key:"render",value:function(){return this.props.children}}]),Qr}(S.Component),pt=Ut;function ut(fr){var Dr=fr;Object(K.a)(fr)==="object"&&(Dr=fr.transitionSupport);function Qr(Yt){return!!(Yt.motionName&&Dr)}var Nr=S.forwardRef(function(Yt,xr){var tr=Yt.visible,jr=tr===void 0?!0:tr,Ur=Yt.removeOnLeave,dn=Ur===void 0?!0:Ur,sn=Yt.forceRender,bn=Yt.children,Bn=Yt.motionName,Xn=Yt.leavedClassName,$n=Yt.eventProps,Ti=Qr(Yt),Xi=Object(S.useRef)(),ua=Object(S.useRef)();function da(){try{return Object(Ge.a)(Xi.current||ua.current)}catch(la){return null}}var sa=cn(Ti,jr,da,Yt),ca=Object(h.a)(sa,4),zi=ca[0],Ri=ca[1],ta=ca[2],$i=ca[3],Ca=S.useRef($i);$i&&(Ca.current=!0);var Ma=Object(S.useRef)(xr);Ma.current=xr;var qi=S.useCallback(function(la){Xi.current=la,Object(wt.b)(Ma.current,la)},[]),Yi,Pa=Object(a.a)(Object(a.a)({},$n),{},{visible:jr});if(!bn)Yi=null;else if(zi===Qe||!Qr(Yt))$i?Yi=bn(Object(a.a)({},Pa),qi):!dn&&Ca.current?Yi=bn(Object(a.a)(Object(a.a)({},Pa),{},{className:Xn}),qi):sn?Yi=bn(Object(a.a)(Object(a.a)({},Pa),{},{style:{display:"none"}}),qi):Yi=null;else{var ya,Ci;Ri===vn?Ci="prepare":Xt(Ri)?Ci="active":Ri===Zr&&(Ci="start"),Yi=bn(Object(a.a)(Object(a.a)({},Pa),{},{className:i()(st(Bn,zi),(ya={},Object(m.a)(ya,st(Bn,"".concat(zi,"-").concat(Ci)),Ci),Object(m.a)(ya,Bn,typeof Bn=="string"),ya)),style:ta}),qi)}return S.createElement(pt,{ref:ua},Yi)});return Nr.displayName="CSSMotion",Nr}var Jt=ut(ar),Zt="add",At="keep",Pt="remove",vt="removed";function Ft(fr){var Dr;return fr&&Object(K.a)(fr)==="object"&&"key"in fr?Dr=fr:Dr={key:fr},Object(a.a)(Object(a.a)({},Dr),{},{key:String(Dr.key)})}function gr(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return fr.map(Ft)}function or(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Qr=[],Nr=0,Yt=Dr.length,xr=gr(fr),tr=gr(Dr);xr.forEach(function(dn){for(var sn=!1,bn=Nr;bn<Yt;bn+=1){var Bn=tr[bn];if(Bn.key===dn.key){Nr<bn&&(Qr=Qr.concat(tr.slice(Nr,bn).map(function(Xn){return Object(a.a)(Object(a.a)({},Xn),{},{status:Zt})})),Nr=bn),Qr.push(Object(a.a)(Object(a.a)({},Bn),{},{status:At})),Nr+=1,sn=!0;break}}sn||Qr.push(Object(a.a)(Object(a.a)({},dn),{},{status:Pt}))}),Nr<Yt&&(Qr=Qr.concat(tr.slice(Nr).map(function(dn){return Object(a.a)(Object(a.a)({},dn),{},{status:Zt})})));var jr={};Qr.forEach(function(dn){var sn=dn.key;jr[sn]=(jr[sn]||0)+1});var Ur=Object.keys(jr).filter(function(dn){return jr[dn]>1});return Ur.forEach(function(dn){Qr=Qr.filter(function(sn){var bn=sn.key,Bn=sn.status;return bn!==dn||Bn!==Pt}),Qr.forEach(function(sn){sn.key===dn&&(sn.status=At)})}),Qr}var ur=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Yr(fr){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jt,Qr=function(Nr){Object(D.a)(xr,Nr);var Yt=Object(N.a)(xr);function xr(){var tr;return Object(_.a)(this,xr),tr=Yt.apply(this,arguments),tr.state={keyEntities:[]},tr.removeKey=function(jr){tr.setState(function(Ur){var dn=Ur.keyEntities;return{keyEntities:dn.map(function(sn){return sn.key!==jr?sn:Object(a.a)(Object(a.a)({},sn),{},{status:vt})})}})},tr}return Object(O.a)(xr,[{key:"render",value:function(){var jr=this,Ur=this.state.keyEntities,dn=this.props,sn=dn.component,bn=dn.children,Bn=dn.onVisibleChanged,Xn=Object(c.a)(dn,["component","children","onVisibleChanged"]),$n=sn||S.Fragment,Ti={};return ur.forEach(function(Xi){Ti[Xi]=Xn[Xi],delete Xn[Xi]}),delete Xn.keys,S.createElement($n,Xn,Ur.map(function(Xi){var ua=Xi.status,da=Object(c.a)(Xi,["status"]),sa=ua===Zt||ua===At;return S.createElement(Dr,Object(b.a)({},Ti,{key:da.key,visible:sa,eventProps:da,onVisibleChanged:function(zi){Bn==null||Bn(zi,{key:da.key}),zi||jr.removeKey(da.key)}}),bn)}))}}],[{key:"getDerivedStateFromProps",value:function(jr,Ur){var dn=jr.keys,sn=Ur.keyEntities,bn=gr(dn),Bn=or(sn,bn);return{keyEntities:Bn.filter(function(Xn){var $n=sn.find(function(Ti){var Xi=Ti.key;return Xn.key===Xi});return!($n&&$n.status===vt&&Xn.status===Pt)})}}}]),xr}(S.Component);return Qr.defaultProps={component:"div"},Qr}var Jr=Yr(ar),Tn=Jt;function Dn(fr){var Dr=fr.prefixCls,Qr=fr.motion,Nr=fr.animation,Yt=fr.transitionName;return Qr||(Nr?{motionName:"".concat(Dr,"-").concat(Nr)}:Yt?{motionName:Yt}:null)}function zn(fr){var Dr=fr.prefixCls,Qr=fr.visible,Nr=fr.zIndex,Yt=fr.mask,xr=fr.maskMotion,tr=fr.maskAnimation,jr=fr.maskTransitionName;if(!Yt)return null;var Ur={};return(xr||jr||tr)&&(Ur=Object(a.a)({motionAppear:!0},Dn({motion:xr,prefixCls:Dr,transitionName:jr,animation:tr}))),S.createElement(Tn,Object(b.a)({},Ur,{visible:Qr,removeOnLeave:!0}),function(dn){var sn=dn.className;return S.createElement("div",{style:{zIndex:Nr},className:i()("".concat(Dr,"-mask"),sn)})})}var qn=d("9mu1"),Ai=d("o0o1"),Mi=d.n(Ai),Ye=d("HaE+"),Ce=["measure","align",null,"motion"],ke=function(fr,Dr){var Qr=Object(S.useState)(null),Nr=Object(h.a)(Qr,2),Yt=Nr[0],xr=Nr[1],tr=Object(S.useRef)(),jr=Object(S.useRef)(!1);function Ur(bn){jr.current||xr(bn)}function dn(){Oe.a.cancel(tr.current)}function sn(bn){dn(),tr.current=Object(Oe.a)(function(){Ur(function(Bn){switch(Yt){case"align":return"motion";case"motion":return"stable";default:}return Bn}),bn==null||bn()})}return Object(S.useEffect)(function(){Ur("measure")},[fr]),Object(S.useEffect)(function(){switch(Yt){case"measure":Dr();break;default:}Yt&&(tr.current=Object(Oe.a)(Object(Ye.a)(Mi.a.mark(function bn(){var Bn,Xn;return Mi.a.wrap(function(Ti){for(;;)switch(Ti.prev=Ti.next){case 0:Bn=Ce.indexOf(Yt),Xn=Ce[Bn+1],Xn&&Bn!==-1&&Ur(Xn);case 3:case"end":return Ti.stop()}},bn)}))))},[Yt]),Object(S.useEffect)(function(){return function(){jr.current=!0,dn()}},[]),[Yt,sn]},Fe=function(fr){var Dr=S.useState({width:0,height:0}),Qr=Object(h.a)(Dr,2),Nr=Qr[0],Yt=Qr[1];function xr(jr){Yt({width:jr.offsetWidth,height:jr.offsetHeight})}var tr=S.useMemo(function(){var jr={};if(fr){var Ur=Nr.width,dn=Nr.height;fr.indexOf("height")!==-1&&dn?jr.height=dn:fr.indexOf("minHeight")!==-1&&dn&&(jr.minHeight=dn),fr.indexOf("width")!==-1&&Ur?jr.width=Ur:fr.indexOf("minWidth")!==-1&&Ur&&(jr.minWidth=Ur)}return jr},[fr,Nr]);return[tr,xr]},Ve=S.forwardRef(function(fr,Dr){var Qr=fr.visible,Nr=fr.prefixCls,Yt=fr.className,xr=fr.style,tr=fr.children,jr=fr.zIndex,Ur=fr.stretch,dn=fr.destroyPopupOnHide,sn=fr.forceRender,bn=fr.align,Bn=fr.point,Xn=fr.getRootDomNode,$n=fr.getClassNameFromAlign,Ti=fr.onAlign,Xi=fr.onMouseEnter,ua=fr.onMouseLeave,da=fr.onMouseDown,sa=fr.onTouchStart,ca=Object(S.useRef)(),zi=Object(S.useRef)(),Ri=Object(S.useState)(),ta=Object(h.a)(Ri,2),$i=ta[0],Ca=ta[1],Ma=Fe(Ur),qi=Object(h.a)(Ma,2),Yi=qi[0],Pa=qi[1];function ya(){Ur&&Pa(Xn())}var Ci=ke(Qr,ya),la=Object(h.a)(Ci,2),Ha=la[0],ka=la[1],Aa=Object(S.useRef)();function Sa(){return Bn||Xn}function Ya(){var Na;(Na=ca.current)===null||Na===void 0||Na.forceAlign()}function Ta(Na,$a){var Ra=$n($a);$i!==Ra&&Ca(Ra),Ha==="align"&&($i!==Ra?Promise.resolve().then(function(){Ya()}):ka(function(){var Ka;(Ka=Aa.current)===null||Ka===void 0||Ka.call(Aa)}),Ti==null||Ti(Na,$a))}var Ga=Object(a.a)({},Dn(fr));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Na){var $a=Ga[Na];Ga[Na]=function(Ra,Ka){return ka(),$a==null?void 0:$a(Ra,Ka)}});function uo(){return new Promise(function(Na){Aa.current=Na})}S.useEffect(function(){!Ga.motionName&&Ha==="motion"&&ka()},[Ga.motionName,Ha]),S.useImperativeHandle(Dr,function(){return{forceAlign:Ya,getElement:function(){return zi.current}}});var aa=Object(a.a)(Object(a.a)({},Yi),{},{zIndex:jr,opacity:Ha==="motion"||Ha==="stable"||!Qr?void 0:0,pointerEvents:Ha==="stable"?void 0:"none"},xr),ho=!0;(bn==null?void 0:bn.points)&&(Ha==="align"||Ha==="stable")&&(ho=!1);var Ua=tr;return S.Children.count(tr)>1&&(Ua=S.createElement("div",{className:"".concat(Nr,"-content")},tr)),S.createElement(Tn,Object(b.a)({visible:Qr,ref:zi,leavedClassName:"".concat(Nr,"-hidden")},Ga,{onAppearPrepare:uo,onEnterPrepare:uo,removeOnLeave:dn,forceRender:sn}),function(Na,$a){var Ra=Na.className,Ka=Na.style,bo=i()(Nr,Yt,$i,Ra);return S.createElement(qn.a,{target:Sa(),key:"popup",ref:ca,monitorWindowResize:!0,disabled:ho,align:bn,onAlign:Ta},S.createElement("div",{ref:$a,className:bo,onMouseEnter:Xi,onMouseLeave:ua,onMouseDownCapture:da,onTouchStartCapture:sa,style:Object(a.a)(Object(a.a)({},Ka),aa)},Ua))})});Ve.displayName="PopupInner";var We=Ve,Ze=S.forwardRef(function(fr,Dr){var Qr=fr.prefixCls,Nr=fr.visible,Yt=fr.zIndex,xr=fr.children,tr=fr.mobile;tr=tr===void 0?{}:tr;var jr=tr.popupClassName,Ur=tr.popupStyle,dn=tr.popupMotion,sn=dn===void 0?{}:dn,bn=tr.popupRender,Bn=S.useRef();S.useImperativeHandle(Dr,function(){return{forceAlign:function(){},getElement:function(){return Bn.current}}});var Xn=Object(a.a)({zIndex:Yt},Ur),$n=xr;return S.Children.count(xr)>1&&($n=S.createElement("div",{className:"".concat(Qr,"-content")},xr)),bn&&($n=bn($n)),S.createElement(Tn,Object(b.a)({visible:Nr,ref:Bn,removeOnLeave:!0},sn),function(Ti,Xi){var ua=Ti.className,da=Ti.style,sa=i()(Qr,jr,ua);return S.createElement("div",{ref:Xi,className:sa,style:Object(a.a)(Object(a.a)({},da),Xn)},$n)})});Ze.displayName="MobilePopupInner";var yt=Ze,lt=["visible","mobile"],kt=S.forwardRef(function(fr,Dr){var Qr=fr.visible,Nr=fr.mobile,Yt=Object(c.a)(fr,lt),xr=Object(S.useState)(Qr),tr=Object(h.a)(xr,2),jr=tr[0],Ur=tr[1],dn=Object(S.useState)(!1),sn=Object(h.a)(dn,2),bn=sn[0],Bn=sn[1],Xn=Object(a.a)(Object(a.a)({},Yt),{},{visible:jr});Object(S.useEffect)(function(){Ur(Qr),Qr&&Nr&&Bn(ye())},[Qr,Nr]);var $n=bn?S.createElement(yt,Object(b.a)({},Xn,{mobile:Nr,ref:Dr})):S.createElement(We,Object(b.a)({},Xn,{ref:Dr}));return S.createElement("div",null,S.createElement(zn,Xn),$n)});kt.displayName="Popup";var wr=kt,pr=S.createContext(null),_r=pr;function Wt(){}function un(){return""}function ir(fr){return fr?fr.ownerDocument:window.document}var Gr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function kr(fr){var Dr=function(Qr){Object(D.a)(Yt,Qr);var Nr=Object(N.a)(Yt);function Yt(xr){var tr;Object(_.a)(this,Yt),tr=Nr.call(this,xr),tr.popupRef=S.createRef(),tr.triggerRef=S.createRef(),tr.attachId=void 0,tr.clickOutsideHandler=void 0,tr.touchOutsideHandler=void 0,tr.contextMenuOutsideHandler1=void 0,tr.contextMenuOutsideHandler2=void 0,tr.mouseDownTimeout=void 0,tr.focusTime=void 0,tr.preClickTime=void 0,tr.preTouchTime=void 0,tr.delayTimer=void 0,tr.hasPopupMouseDown=void 0,tr.onMouseEnter=function(Ur){var dn=tr.props.mouseEnterDelay;tr.fireEvents("onMouseEnter",Ur),tr.delaySetPopupVisible(!0,dn,dn?null:Ur)},tr.onMouseMove=function(Ur){tr.fireEvents("onMouseMove",Ur),tr.setPoint(Ur)},tr.onMouseLeave=function(Ur){tr.fireEvents("onMouseLeave",Ur),tr.delaySetPopupVisible(!1,tr.props.mouseLeaveDelay)},tr.onPopupMouseEnter=function(){tr.clearDelayTimer()},tr.onPopupMouseLeave=function(Ur){var dn;if(Ur.relatedTarget&&!Ur.relatedTarget.setTimeout&&Object(gt.a)((dn=tr.popupRef.current)===null||dn===void 0?void 0:dn.getElement(),Ur.relatedTarget))return;tr.delaySetPopupVisible(!1,tr.props.mouseLeaveDelay)},tr.onFocus=function(Ur){tr.fireEvents("onFocus",Ur),tr.clearDelayTimer(),tr.isFocusToShow()&&(tr.focusTime=Date.now(),tr.delaySetPopupVisible(!0,tr.props.focusDelay))},tr.onMouseDown=function(Ur){tr.fireEvents("onMouseDown",Ur),tr.preClickTime=Date.now()},tr.onTouchStart=function(Ur){tr.fireEvents("onTouchStart",Ur),tr.preTouchTime=Date.now()},tr.onBlur=function(Ur){tr.fireEvents("onBlur",Ur),tr.clearDelayTimer(),tr.isBlurToHide()&&tr.delaySetPopupVisible(!1,tr.props.blurDelay)},tr.onContextMenu=function(Ur){Ur.preventDefault(),tr.fireEvents("onContextMenu",Ur),tr.setPopupVisible(!0,Ur)},tr.onContextMenuClose=function(){tr.isContextMenuToShow()&&tr.close()},tr.onClick=function(Ur){if(tr.fireEvents("onClick",Ur),tr.focusTime){var dn;if(tr.preClickTime&&tr.preTouchTime?dn=Math.min(tr.preClickTime,tr.preTouchTime):tr.preClickTime?dn=tr.preClickTime:tr.preTouchTime&&(dn=tr.preTouchTime),Math.abs(dn-tr.focusTime)<20)return;tr.focusTime=0}tr.preClickTime=0,tr.preTouchTime=0,tr.isClickToShow()&&(tr.isClickToHide()||tr.isBlurToHide())&&Ur&&Ur.preventDefault&&Ur.preventDefault();var sn=!tr.state.popupVisible;(tr.isClickToHide()&&!sn||sn&&tr.isClickToShow())&&tr.setPopupVisible(!tr.state.popupVisible,Ur)},tr.onPopupMouseDown=function(){if(tr.hasPopupMouseDown=!0,clearTimeout(tr.mouseDownTimeout),tr.mouseDownTimeout=window.setTimeout(function(){tr.hasPopupMouseDown=!1},0),tr.context){var Ur;(Ur=tr.context).onPopupMouseDown.apply(Ur,arguments)}},tr.onDocumentClick=function(Ur){if(tr.props.mask&&!tr.props.maskClosable)return;var dn=Ur.target,sn=tr.getRootDomNode(),bn=tr.getPopupDomNode();(!Object(gt.a)(sn,dn)||tr.isContextMenuOnly())&&!Object(gt.a)(bn,dn)&&!tr.hasPopupMouseDown&&tr.close()},tr.getRootDomNode=function(){var Ur=tr.props.getTriggerDOMNode;if(Ur)return Ur(tr.triggerRef.current);try{var dn=Object(Ge.a)(tr.triggerRef.current);if(dn)return dn}catch(sn){}return et.a.findDOMNode(Object(L.a)(tr))},tr.getPopupClassNameFromAlign=function(Ur){var dn=[],sn=tr.props,bn=sn.popupPlacement,Bn=sn.builtinPlacements,Xn=sn.prefixCls,$n=sn.alignPoint,Ti=sn.getPopupClassNameFromAlign;return bn&&Bn&&dn.push(Je(Bn,Xn,Ur,$n)),Ti&&dn.push(Ti(Ur)),dn.join(" ")},tr.getComponent=function(){var Ur=tr.props,dn=Ur.prefixCls,sn=Ur.destroyPopupOnHide,bn=Ur.popupClassName,Bn=Ur.onPopupAlign,Xn=Ur.popupMotion,$n=Ur.popupAnimation,Ti=Ur.popupTransitionName,Xi=Ur.popupStyle,ua=Ur.mask,da=Ur.maskAnimation,sa=Ur.maskTransitionName,ca=Ur.maskMotion,zi=Ur.zIndex,Ri=Ur.popup,ta=Ur.stretch,$i=Ur.alignPoint,Ca=Ur.mobile,Ma=Ur.forceRender,qi=tr.state,Yi=qi.popupVisible,Pa=qi.point,ya=tr.getPopupAlign(),Ci={};return tr.isMouseEnterToShow()&&(Ci.onMouseEnter=tr.onPopupMouseEnter),tr.isMouseLeaveToHide()&&(Ci.onMouseLeave=tr.onPopupMouseLeave),Ci.onMouseDown=tr.onPopupMouseDown,Ci.onTouchStart=tr.onPopupMouseDown,S.createElement(wr,Object(b.a)({prefixCls:dn,destroyPopupOnHide:sn,visible:Yi,point:$i&&Pa,className:bn,align:ya,onAlign:Bn,animation:$n,getClassNameFromAlign:tr.getPopupClassNameFromAlign},Ci,{stretch:ta,getRootDomNode:tr.getRootDomNode,style:Xi,mask:ua,zIndex:zi,transitionName:Ti,maskAnimation:da,maskTransitionName:sa,maskMotion:ca,ref:tr.popupRef,motion:Xn,mobile:Ca,forceRender:Ma}),typeof Ri=="function"?Ri():Ri)},tr.attachParent=function(Ur){Oe.a.cancel(tr.attachId);var dn=tr.props,sn=dn.getPopupContainer,bn=dn.getDocument,Bn=tr.getRootDomNode(),Xn;sn?(Bn||sn.length===0)&&(Xn=sn(Bn)):Xn=bn(tr.getRootDomNode()).body,Xn?Xn.appendChild(Ur):tr.attachId=Object(Oe.a)(function(){tr.attachParent(Ur)})},tr.getContainer=function(){var Ur=tr.props.getDocument,dn=Ur(tr.getRootDomNode()).createElement("div");return dn.style.position="absolute",dn.style.top="0",dn.style.left="0",dn.style.width="100%",tr.attachParent(dn),dn},tr.setPoint=function(Ur){var dn=tr.props.alignPoint;if(!dn||!Ur)return;tr.setState({point:{pageX:Ur.pageX,pageY:Ur.pageY}})},tr.handlePortalUpdate=function(){tr.state.prevPopupVisible!==tr.state.popupVisible&&tr.props.afterPopupVisibleChange(tr.state.popupVisible)},tr.triggerContextValue={onPopupMouseDown:tr.onPopupMouseDown};var jr;return"popupVisible"in xr?jr=!!xr.popupVisible:jr=!!xr.defaultPopupVisible,tr.state={prevPopupVisible:jr,popupVisible:jr},Gr.forEach(function(Ur){tr["fire".concat(Ur)]=function(dn){tr.fireEvents(Ur,dn)}}),tr}return Object(O.a)(Yt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var tr=this.props,jr=this.state;if(jr.popupVisible){var Ur;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ur=tr.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(xt.a)(Ur,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ur=Ur||tr.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(xt.a)(Ur,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ur=Ur||tr.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(xt.a)(Ur,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(xt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Oe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var tr;return((tr=this.popupRef.current)===null||tr===void 0?void 0:tr.getElement())||null}},{key:"getPopupAlign",value:function(){var tr=this.props,jr=tr.popupPlacement,Ur=tr.popupAlign,dn=tr.builtinPlacements;return jr&&dn?Ht(dn,jr,Ur):Ur}},{key:"setPopupVisible",value:function(tr,jr){var Ur=this.props.alignPoint,dn=this.state.popupVisible;this.clearDelayTimer(),dn!==tr&&("popupVisible"in this.props||this.setState({popupVisible:tr,prevPopupVisible:dn}),this.props.onPopupVisibleChange(tr)),Ur&&jr&&tr&&this.setPoint(jr)}},{key:"delaySetPopupVisible",value:function(tr,jr,Ur){var dn=this,sn=jr*1e3;if(this.clearDelayTimer(),sn){var bn=Ur?{pageX:Ur.pageX,pageY:Ur.pageY}:null;this.delayTimer=window.setTimeout(function(){dn.setPopupVisible(tr,bn),dn.clearDelayTimer()},sn)}else this.setPopupVisible(tr,Ur)}},{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(tr){var jr=this.props.children.props,Ur=this.props;return jr[tr]&&Ur[tr]?this["fire".concat(tr)]:jr[tr]||Ur[tr]}},{key:"isClickToShow",value:function(){var tr=this.props,jr=tr.action,Ur=tr.showAction;return jr.indexOf("click")!==-1||Ur.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var tr=this.props.action;return tr==="contextMenu"||tr.length===1&&tr[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var tr=this.props,jr=tr.action,Ur=tr.showAction;return jr.indexOf("contextMenu")!==-1||Ur.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var tr=this.props,jr=tr.action,Ur=tr.hideAction;return jr.indexOf("click")!==-1||Ur.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var tr=this.props,jr=tr.action,Ur=tr.showAction;return jr.indexOf("hover")!==-1||Ur.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var tr=this.props,jr=tr.action,Ur=tr.hideAction;return jr.indexOf("hover")!==-1||Ur.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var tr=this.props,jr=tr.action,Ur=tr.showAction;return jr.indexOf("focus")!==-1||Ur.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var tr=this.props,jr=tr.action,Ur=tr.hideAction;return jr.indexOf("focus")!==-1||Ur.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var tr;(tr=this.popupRef.current)===null||tr===void 0||tr.forceAlign()}}},{key:"fireEvents",value:function(tr,jr){var Ur=this.props.children.props[tr];Ur&&Ur(jr);var dn=this.props[tr];dn&&dn(jr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var tr=this.state.popupVisible,jr=this.props,Ur=jr.children,dn=jr.forceRender,sn=jr.alignPoint,bn=jr.className,Bn=jr.autoDestroy,Xn=S.Children.only(Ur),$n={key:"trigger"};this.isContextMenuToShow()?$n.onContextMenu=this.onContextMenu:$n.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?($n.onClick=this.onClick,$n.onMouseDown=this.onMouseDown,$n.onTouchStart=this.onTouchStart):($n.onClick=this.createTwoChains("onClick"),$n.onMouseDown=this.createTwoChains("onMouseDown"),$n.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?($n.onMouseEnter=this.onMouseEnter,sn&&($n.onMouseMove=this.onMouseMove)):$n.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?$n.onMouseLeave=this.onMouseLeave:$n.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?($n.onFocus=this.onFocus,$n.onBlur=this.onBlur):($n.onFocus=this.createTwoChains("onFocus"),$n.onBlur=this.createTwoChains("onBlur"));var Ti=i()(Xn&&Xn.props&&Xn.props.className,bn);Ti&&($n.className=Ti);var Xi=Object(a.a)({},$n);Object(wt.c)(Xn)&&(Xi.ref=Object(wt.a)(this.triggerRef,Xn.ref));var ua=S.cloneElement(Xn,Xi),da;return(tr||this.popupRef.current||dn)&&(da=S.createElement(fr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!tr&&Bn&&(da=null),S.createElement(_r.Provider,{value:this.triggerContextValue},ua,da)}}],[{key:"getDerivedStateFromProps",value:function(tr,jr){var Ur=tr.popupVisible,dn={};return Ur!==void 0&&jr.popupVisible!==Ur&&(dn.popupVisible=Ur,dn.prevPopupVisible=jr.popupVisible),dn}}]),Yt}(S.Component);return Dr.contextType=_r,Dr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:un,getDocument:ir,onPopupVisibleChange:Wt,afterPopupVisibleChange:Wt,onPopupAlign:Wt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Dr}var yr=kr(Ct.a),En={adjustX:1,adjustY:1},kn={topLeft:{points:["bl","tl"],overflow:En,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:En,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:En,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:En,offset:[4,0]}},ii={topLeft:{points:["bl","tl"],overflow:En,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:En,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:En,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:En,offset:[4,0]}},oi=kn,ei=0,ci={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Pn=function(Dr,Qr,Nr){var Yt=ve(Qr),xr=Dr.getState();Dr.setState({defaultActiveFirst:Object(a.a)(Object(a.a)({},xr.defaultActiveFirst),{},Object(m.a)({},Yt,Nr))})},xi=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(Nr){var Yt;Object(_.a)(this,Qr),Yt=Dr.call(this,Nr),Yt.onDestroy=function(sn){Yt.props.onDestroy(sn)},Yt.onKeyDown=function(sn){var bn=sn.keyCode,Bn=Yt.menuInstance,Xn=Yt.props.store,$n=Yt.getVisible();if(bn===p.a.ENTER)return Yt.onTitleClick(sn),Pn(Xn,Yt.props.eventKey,!0),!0;if(bn===p.a.RIGHT)return $n?Bn.onKeyDown(sn):(Yt.triggerOpenChange(!0),Pn(Xn,Yt.props.eventKey,!0)),!0;if(bn===p.a.LEFT){var Ti;if($n)Ti=Bn.onKeyDown(sn);else return;return Ti||(Yt.triggerOpenChange(!1),Ti=!0),Ti}return $n&&(bn===p.a.UP||bn===p.a.DOWN)?Bn.onKeyDown(sn):void 0},Yt.onOpenChange=function(sn){Yt.props.onOpenChange(sn)},Yt.onPopupVisibleChange=function(sn){Yt.triggerOpenChange(sn,sn?"mouseenter":"mouseleave")},Yt.onMouseEnter=function(sn){var bn=Yt.props,Bn=bn.eventKey,Xn=bn.onMouseEnter,$n=bn.store;Pn($n,Yt.props.eventKey,!1),Xn({key:Bn,domEvent:sn})},Yt.onMouseLeave=function(sn){var bn=Yt.props,Bn=bn.parentMenu,Xn=bn.eventKey,$n=bn.onMouseLeave;Bn.subMenuInstance=Object(L.a)(Yt),$n({key:Xn,domEvent:sn})},Yt.onTitleMouseEnter=function(sn){var bn=Yt.props,Bn=bn.eventKey,Xn=bn.onItemHover,$n=bn.onTitleMouseEnter;Xn({key:Bn,hover:!0}),$n({key:Bn,domEvent:sn})},Yt.onTitleMouseLeave=function(sn){var bn=Yt.props,Bn=bn.parentMenu,Xn=bn.eventKey,$n=bn.onItemHover,Ti=bn.onTitleMouseLeave;Bn.subMenuInstance=Object(L.a)(Yt),$n({key:Xn,hover:!1}),Ti({key:Xn,domEvent:sn})},Yt.onTitleClick=function(sn){var bn=Object(L.a)(Yt),Bn=bn.props;if(Bn.onTitleClick({key:Bn.eventKey,domEvent:sn}),Bn.triggerSubMenuAction==="hover")return;Yt.triggerOpenChange(!Yt.getVisible(),"click"),Pn(Bn.store,Yt.props.eventKey,!1)},Yt.onSubMenuClick=function(sn){typeof Yt.props.onClick=="function"&&Yt.props.onClick(Yt.addKeyPath(sn))},Yt.onSelect=function(sn){Yt.props.onSelect(sn)},Yt.onDeselect=function(sn){Yt.props.onDeselect(sn)},Yt.getPrefixCls=function(){return"".concat(Yt.props.rootPrefixCls,"-submenu")},Yt.getActiveClassName=function(){return"".concat(Yt.getPrefixCls(),"-active")},Yt.getDisabledClassName=function(){return"".concat(Yt.getPrefixCls(),"-disabled")},Yt.getSelectedClassName=function(){return"".concat(Yt.getPrefixCls(),"-selected")},Yt.getOpenClassName=function(){return"".concat(Yt.props.rootPrefixCls,"-submenu-open")},Yt.getVisible=function(){return Yt.state.isOpen},Yt.getMode=function(){return Yt.state.mode},Yt.saveMenuInstance=function(sn){Yt.menuInstance=sn},Yt.addKeyPath=function(sn){return Object(a.a)(Object(a.a)({},sn),{},{keyPath:(sn.keyPath||[]).concat(Yt.props.eventKey)})},Yt.triggerOpenChange=function(sn,bn){var Bn=Yt.props.eventKey,Xn=function(){Yt.onOpenChange({key:Bn,item:Object(L.a)(Yt),trigger:bn,open:sn})};bn==="mouseenter"?Yt.mouseenterTimeout=setTimeout(function(){Xn()},0):Xn()},Yt.isChildrenSelected=function(){var sn={find:!1};return _e(Yt.props.children,Yt.props.selectedKeys,sn),sn.find},Yt.isInlineMode=function(){return Yt.getMode()==="inline"},Yt.adjustWidth=function(){if(!Yt.subMenuTitle||!Yt.menuInstance)return;var sn=it.findDOMNode(Yt.menuInstance);if(sn.offsetWidth>=Yt.subMenuTitle.offsetWidth)return;sn.style.minWidth="".concat(Yt.subMenuTitle.offsetWidth,"px")},Yt.saveSubMenuTitle=function(sn){Yt.subMenuTitle=sn},Yt.getBaseProps=function(){var sn=Object(L.a)(Yt),bn=sn.props,Bn=Yt.getMode();return{mode:Bn==="horizontal"?"vertical":Bn,visible:Yt.getVisible(),level:bn.level+1,inlineIndent:bn.inlineIndent,focusable:!1,onClick:Yt.onSubMenuClick,onSelect:Yt.onSelect,onDeselect:Yt.onDeselect,onDestroy:Yt.onDestroy,selectedKeys:bn.selectedKeys,eventKey:"".concat(bn.eventKey,"-menu-"),openKeys:bn.openKeys,motion:bn.motion,onOpenChange:Yt.onOpenChange,subMenuOpenDelay:bn.subMenuOpenDelay,parentMenu:Object(L.a)(Yt),subMenuCloseDelay:bn.subMenuCloseDelay,forceSubMenuRender:bn.forceSubMenuRender,triggerSubMenuAction:bn.triggerSubMenuAction,builtinPlacements:bn.builtinPlacements,defaultActiveFirst:bn.store.getState().defaultActiveFirst[ve(bn.eventKey)],multiple:bn.multiple,prefixCls:bn.rootPrefixCls,id:Yt.internalMenuId,manualRef:Yt.saveMenuInstance,itemIcon:bn.itemIcon,expandIcon:bn.expandIcon,direction:bn.direction}},Yt.getMotion=function(sn,bn){var Bn=Object(L.a)(Yt),Xn=Bn.haveRendered,$n=Yt.props,Ti=$n.motion,Xi=$n.rootPrefixCls,ua=Object(a.a)(Object(a.a)({},Ti),{},{leavedClassName:"".concat(Xi,"-hidden"),removeOnLeave:!1,motionAppear:Xn||!bn||sn!=="inline"});return ua};var xr=Nr.store,tr=Nr.eventKey,jr=xr.getState(),Ur=jr.defaultActiveFirst;Yt.isRootMenu=!1;var dn=!1;return Ur&&(dn=Ur[tr]),Pn(xr,tr,dn),Yt.state={mode:Nr.mode,isOpen:Nr.isOpen},Yt}return Object(O.a)(Qr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Yt=this,xr=this.props,tr=xr.mode,jr=xr.parentMenu,Ur=xr.manualRef,dn=xr.isOpen,sn=function(){Yt.setState({mode:tr,isOpen:dn})},bn=dn!==this.state.isOpen,Bn=tr!==this.state.mode;if((Bn||bn)&&(Oe.a.cancel(this.updateStateRaf),Bn?this.updateStateRaf=Object(Oe.a)(sn):sn()),Ur&&Ur(this),tr!=="horizontal"||!(jr==null?void 0:jr.isRootMenu)||!dn)return;this.minWidthTimeout=setTimeout(function(){return Yt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Yt=this.props,xr=Yt.onDestroy,tr=Yt.eventKey;xr&&xr(tr),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Oe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Yt,xr){var tr=this.getBaseProps();return S.createElement(An,Object(b.a)({},tr,{id:this.internalMenuId,className:Yt,style:xr}),this.props.children)}},{key:"renderChildren",value:function(){var Yt=this,xr=this.getBaseProps(),tr=xr.mode,jr=xr.visible,Ur=xr.forceSubMenuRender,dn=xr.direction,sn=this.getMotion(tr,jr);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||jr||Ur,!this.haveOpened)return S.createElement("div",null);var bn=i()("".concat(xr.prefixCls,"-sub"),Object(m.a)({},"".concat(xr.prefixCls,"-rtl"),dn==="rtl"));return this.isInlineMode()?S.createElement(Tn,Object(b.a)({visible:xr.visible,forceRender:Ur},sn),function(Bn){var Xn=Bn.className,$n=Bn.style,Ti=i()(bn,Xn);return Yt.renderPopupMenu(Ti,$n)}):this.renderPopupMenu(bn)}},{key:"render",value:function(){var Yt,xr,tr,jr=Object(a.a)({},this.props),Ur=this.getVisible(),dn=this.getPrefixCls(),sn=this.isInlineMode(),bn=this.getMode(),Bn=i()(dn,"".concat(dn,"-").concat(bn),(Yt={},Object(m.a)(Yt,jr.className,!!jr.className),Object(m.a)(Yt,this.getOpenClassName(),Ur),Object(m.a)(Yt,this.getActiveClassName(),jr.active||Ur&&!sn),Object(m.a)(Yt,this.getDisabledClassName(),jr.disabled),Object(m.a)(Yt,this.getSelectedClassName(),this.isChildrenSelected()),Yt));this.internalMenuId||(jr.eventKey?this.internalMenuId="".concat(jr.eventKey,"$Menu"):(ei+=1,this.internalMenuId="$__$".concat(ei,"$Menu")));var Xn={},$n={},Ti={};jr.disabled||(Xn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},$n={onClick:this.onTitleClick},Ti={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Xi={},ua=jr.direction,da=ua==="rtl";sn&&(da?Xi.paddingRight=jr.inlineIndent*jr.level:Xi.paddingLeft=jr.inlineIndent*jr.level);var sa={};this.getVisible()&&(sa={"aria-owns":this.internalMenuId});var ca=null;bn!=="horizontal"&&(ca=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ca=S.createElement(this.props.expandIcon,Object(a.a)({},this.props))));var zi=S.createElement("div",Object(b.a)({ref:this.saveSubMenuTitle,style:Xi,className:"".concat(dn,"-title"),role:"button"},Ti,$n,{"aria-expanded":Ur},sa,{"aria-haspopup":"true",title:typeof jr.title=="string"?jr.title:void 0}),jr.title,ca||S.createElement("i",{className:"".concat(dn,"-arrow")})),Ri=this.renderChildren(),ta=((xr=jr.parentMenu)===null||xr===void 0?void 0:xr.isRootMenu)?jr.parentMenu.props.getPopupContainer:function(Sa){return Sa.parentNode},$i=ci[bn],Ca=jr.popupOffset?{offset:jr.popupOffset}:{},Ma=i()((tr={},Object(m.a)(tr,jr.popupClassName,jr.popupClassName&&!sn),Object(m.a)(tr,"".concat(dn,"-rtl"),da),tr)),qi=jr.disabled,Yi=jr.triggerSubMenuAction,Pa=jr.subMenuOpenDelay,ya=jr.forceSubMenuRender,Ci=jr.subMenuCloseDelay,la=jr.builtinPlacements;xe.forEach(function(Sa){return delete jr[Sa]}),delete jr.onClick;var Ha=da?Object(a.a)(Object(a.a)({},ii),la):Object(a.a)(Object(a.a)({},kn),la);delete jr.direction;var ka=this.getBaseProps(),Aa=sn?null:this.getMotion(ka.mode,ka.visible);return S.createElement("li",Object(b.a)({},jr,Xn,{className:Bn,role:"menuitem"}),S.createElement(yr,{prefixCls:dn,popupClassName:i()("".concat(dn,"-popup"),Ma),getPopupContainer:ta,builtinPlacements:Ha,popupPlacement:$i,popupVisible:sn?!1:Ur,popupAlign:Ca,popup:sn?null:Ri,action:qi||sn?[]:[Yi],mouseEnterDelay:Pa,mouseLeaveDelay:Ci,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ya,popupMotion:Aa},zi),sn?Ri:null)}}]),Qr}(S.Component);xi.defaultProps={onMouseEnter:G,onMouseLeave:G,onTitleMouseEnter:G,onTitleMouseLeave:G,onTitleClick:G,manualRef:G,mode:"vertical",title:""};var gn=Object(M.b)(function(fr,Dr){var Qr=fr.openKeys,Nr=fr.activeKey,Yt=fr.selectedKeys,xr=Dr.eventKey,tr=Dr.subMenuKey;return{isOpen:Qr.indexOf(xr)>-1,active:Nr[tr]===xr,selectedKeys:Yt}})(xi);gn.isSubMenu=!0;var zr=gn,Cn="menuitem-overflowed",on=.5,li=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(){var Nr;return Object(_.a)(this,Qr),Nr=Dr.apply(this,arguments),Nr.resizeObserver=null,Nr.mutationObserver=null,Nr.originalTotalWidth=0,Nr.overflowedItems=[],Nr.menuItemSizes=[],Nr.cancelFrameId=null,Nr.state={lastVisibleIndex:void 0},Nr.childRef=S.createRef(),Nr.getMenuItemNodes=function(){var Yt=Nr.props.prefixCls,xr=Nr.childRef.current;return xr?[].slice.call(xr.children).filter(function(tr){return tr.className.split(" ").indexOf("".concat(Yt,"-overflowed-submenu"))<0}):[]},Nr.getOverflowedSubMenuItem=function(Yt,xr,tr){var jr=Nr.props,Ur=jr.overflowedIndicator,dn=jr.level,sn=jr.mode,bn=jr.prefixCls,Bn=jr.theme;if(dn!==1||sn!=="horizontal")return null;var Xn=Nr.props.children[0],$n=Xn.props,Ti=$n.children,Xi=$n.title,ua=$n.style,da=Object(c.a)($n,["children","title","style"]),sa=Object(a.a)({},ua),ca="".concat(Yt,"-overflowed-indicator"),zi="".concat(Yt,"-overflowed-indicator");xr.length===0&&tr!==!0?sa=Object(a.a)(Object(a.a)({},sa),{},{display:"none"}):tr&&(sa=Object(a.a)(Object(a.a)({},sa),{},{visibility:"hidden",position:"absolute"}),ca="".concat(ca,"-placeholder"),zi="".concat(zi,"-placeholder"));var Ri=Bn?"".concat(bn,"-").concat(Bn):"",ta={};return xe.forEach(function($i){da[$i]!==void 0&&(ta[$i]=da[$i])}),S.createElement(zr,Object(b.a)({title:Ur,className:"".concat(bn,"-overflowed-submenu"),popupClassName:Ri},ta,{key:ca,eventKey:zi,disabled:!1,style:sa}),xr)},Nr.setChildrenWidthAndResize=function(){if(Nr.props.mode!=="horizontal")return;var Yt=Nr.childRef.current;if(!Yt)return;var xr=Yt.children;if(!xr||xr.length===0)return;var tr=Yt.children[xr.length-1];fe(tr,"display","inline-block");var jr=Nr.getMenuItemNodes(),Ur=jr.filter(function(dn){return dn.className.split(" ").indexOf(Cn)>=0});Ur.forEach(function(dn){fe(dn,"display","inline-block")}),Nr.menuItemSizes=jr.map(function(dn){return oe(dn,!0)}),Ur.forEach(function(dn){fe(dn,"display","none")}),Nr.overflowedIndicatorWidth=oe(Yt.children[Yt.children.length-1],!0),Nr.originalTotalWidth=Nr.menuItemSizes.reduce(function(dn,sn){return dn+sn},0),Nr.handleResize(),fe(tr,"display","none")},Nr.handleResize=function(){if(Nr.props.mode!=="horizontal")return;var Yt=Nr.childRef.current;if(!Yt)return;var xr=oe(Yt);Nr.overflowedItems=[];var tr=0,jr;Nr.originalTotalWidth>xr+on&&(jr=-1,Nr.menuItemSizes.forEach(function(Ur){tr+=Ur,tr+Nr.overflowedIndicatorWidth<=xr&&(jr+=1)})),Nr.setState({lastVisibleIndex:jr})},Nr}return Object(O.a)(Qr,[{key:"componentDidMount",value:function(){var Yt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var xr=this.childRef.current;if(!xr)return;this.resizeObserver=new ze.default(function(tr){tr.forEach(function(){var jr=Yt.cancelFrameId;cancelAnimationFrame(jr),Yt.cancelFrameId=requestAnimationFrame(Yt.setChildrenWidthAndResize)})}),[].slice.call(xr.children).concat(xr).forEach(function(tr){Yt.resizeObserver.observe(tr)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Yt.resizeObserver.disconnect(),[].slice.call(xr.children).concat(xr).forEach(function(tr){Yt.resizeObserver.observe(tr)}),Yt.setChildrenWidthAndResize()}),this.mutationObserver.observe(xr,{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(Yt){var xr=this,tr=this.state.lastVisibleIndex;return(Yt||[]).reduce(function(jr,Ur,dn){var sn=Ur;if(xr.props.mode==="horizontal"){var bn=xr.getOverflowedSubMenuItem(Ur.props.eventKey,[]);tr!==void 0&&xr.props.className.indexOf("".concat(xr.props.prefixCls,"-root"))!==-1&&(dn>tr&&(sn=S.cloneElement(Ur,{style:{display:"none"},eventKey:"".concat(Ur.props.eventKey,"-hidden"),className:"".concat(Cn)})),dn===tr+1&&(xr.overflowedItems=Yt.slice(tr+1).map(function(Xn){return S.cloneElement(Xn,{key:Xn.props.eventKey,mode:"vertical-left"})}),bn=xr.getOverflowedSubMenuItem(Ur.props.eventKey,xr.overflowedItems)));var Bn=[].concat(Object(s.a)(jr),[bn,sn]);return dn===Yt.length-1&&Bn.push(xr.getOverflowedSubMenuItem(Ur.props.eventKey,[],!0)),Bn}return[].concat(Object(s.a)(jr),[sn])},[])}},{key:"render",value:function(){var Yt=this.props,xr=Yt.visible,tr=Yt.prefixCls,jr=Yt.overflowedIndicator,Ur=Yt.mode,dn=Yt.level,sn=Yt.tag,bn=Yt.children,Bn=Yt.theme,Xn=Object(c.a)(Yt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),$n=sn;return S.createElement($n,Object(b.a)({ref:this.childRef},Xn),this.renderChildren(bn))}}]),Qr}(S.Component);li.defaultProps={tag:"div",className:""};var ri=li;function wi(fr){return fr.length?fr.every(function(Dr){return!!Dr.props.disabled}):!0}function Gn(fr,Dr,Qr){var Nr=fr.getState();fr.setState({activeKey:Object(a.a)(Object(a.a)({},Nr.activeKey),{},Object(m.a)({},Dr,Qr))})}function ki(fr){return fr.eventKey||"0-menu-"}function Jn(fr,Dr){var Qr=Dr,Nr=fr.children,Yt=fr.eventKey;if(Qr){var xr;if(ue(Nr,function(tr,jr){tr&&tr.props&&!tr.props.disabled&&Qr===Z(tr,Yt,jr)&&(xr=!0)}),xr)return Qr}return Qr=null,fr.defaultActiveFirst&&ue(Nr,function(tr,jr){!Qr&&tr&&!tr.props.disabled&&(Qr=Z(tr,Yt,jr))}),Qr}function Pi(fr){if(!fr)return;var Dr=this.instanceArray.indexOf(fr);Dr!==-1?this.instanceArray[Dr]=fr:this.instanceArray.push(fr)}var mn=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(Nr){var Yt;return Object(_.a)(this,Qr),Yt=Dr.call(this,Nr),Yt.onKeyDown=function(xr,tr){var jr=xr.keyCode,Ur;if(Yt.getFlatInstanceArray().forEach(function(sn){sn&&sn.props.active&&sn.onKeyDown&&(Ur=sn.onKeyDown(xr))}),Ur)return 1;var dn=null;return(jr===p.a.UP||jr===p.a.DOWN)&&(dn=Yt.step(jr===p.a.UP?-1:1)),dn?(xr.preventDefault(),Gn(Yt.props.store,ki(Yt.props),dn.props.eventKey),typeof tr=="function"&&tr(dn),1):void 0},Yt.onItemHover=function(xr){var tr=xr.key,jr=xr.hover;Gn(Yt.props.store,ki(Yt.props),jr?tr:null)},Yt.onDeselect=function(xr){Yt.props.onDeselect(xr)},Yt.onSelect=function(xr){Yt.props.onSelect(xr)},Yt.onClick=function(xr){Yt.props.onClick(xr)},Yt.onOpenChange=function(xr){Yt.props.onOpenChange(xr)},Yt.onDestroy=function(xr){Yt.props.onDestroy(xr)},Yt.getFlatInstanceArray=function(){return Yt.instanceArray},Yt.step=function(xr){var tr=Yt.getFlatInstanceArray(),jr=Yt.props.store.getState().activeKey[ki(Yt.props)],Ur=tr.length;if(!Ur)return null;xr<0&&(tr=tr.concat().reverse());var dn=-1;if(tr.every(function(Xn,$n){return Xn&&Xn.props.eventKey===jr?(dn=$n,!1):!0}),!Yt.props.defaultActiveFirst&&dn!==-1&&wi(tr.slice(dn,Ur-1)))return;var sn=(dn+1)%Ur,bn=sn;do{var Bn=tr[bn];if(!Bn||Bn.props.disabled)bn=(bn+1)%Ur;else return Bn}while(bn!==sn);return null},Yt.renderCommonMenuItem=function(xr,tr,jr){var Ur=Yt.props.store.getState(),dn=Object(L.a)(Yt),sn=dn.props,bn=Z(xr,sn.eventKey,tr),Bn=xr.props;if(!Bn||typeof xr.type=="string")return xr;var Xn=bn===Ur.activeKey,$n=Object(a.a)(Object(a.a)({mode:Bn.mode||sn.mode,level:sn.level,inlineIndent:sn.inlineIndent,renderMenuItem:Yt.renderMenuItem,rootPrefixCls:sn.prefixCls,index:tr,parentMenu:sn.parentMenu,manualRef:Bn.disabled?void 0:Object(R.a)(xr.ref,Pi.bind(Object(L.a)(Yt))),eventKey:bn,active:!Bn.disabled&&Xn,multiple:sn.multiple,onClick:function(Xi){(Bn.onClick||G)(Xi),Yt.onClick(Xi)},onItemHover:Yt.onItemHover,motion:sn.motion,subMenuOpenDelay:sn.subMenuOpenDelay,subMenuCloseDelay:sn.subMenuCloseDelay,forceSubMenuRender:sn.forceSubMenuRender,onOpenChange:Yt.onOpenChange,onDeselect:Yt.onDeselect,onSelect:Yt.onSelect,builtinPlacements:sn.builtinPlacements,itemIcon:Bn.itemIcon||Yt.props.itemIcon,expandIcon:Bn.expandIcon||Yt.props.expandIcon},jr),{},{direction:sn.direction});return(sn.mode==="inline"||Te())&&($n.triggerSubMenuAction="click"),S.cloneElement(xr,Object(a.a)(Object(a.a)({},$n),{},{key:bn||tr}))},Yt.renderMenuItem=function(xr,tr,jr){if(!xr)return null;var Ur=Yt.props.store.getState(),dn={openKeys:Ur.openKeys,selectedKeys:Ur.selectedKeys,triggerSubMenuAction:Yt.props.triggerSubMenuAction,subMenuKey:jr};return Yt.renderCommonMenuItem(xr,tr,dn)},Nr.store.setState({activeKey:Object(a.a)(Object(a.a)({},Nr.store.getState().activeKey),{},Object(m.a)({},Nr.eventKey,Jn(Nr,Nr.activeKey)))}),Yt.instanceArray=[],Yt}return Object(O.a)(Qr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Yt){return this.props.visible||Yt.visible||this.props.className!==Yt.className||!B()(this.props.style,Yt.style)}},{key:"componentDidUpdate",value:function(Yt){var xr=this.props,tr="activeKey"in xr?xr.activeKey:xr.store.getState().activeKey[ki(xr)],jr=Jn(xr,tr);if(jr!==tr)Gn(xr.store,ki(xr),jr);else if("activeKey"in Yt){var Ur=Jn(Yt,Yt.activeKey);jr!==Ur&&Gn(xr.store,ki(xr),jr)}}},{key:"render",value:function(){var Yt=this,xr=Object(b.a)({},this.props);this.instanceArray=[];var tr=i()(xr.prefixCls,xr.className,"".concat(xr.prefixCls,"-").concat(xr.mode)),jr={className:tr,role:xr.role||"menu"};xr.id&&(jr.id=xr.id),xr.focusable&&(jr.tabIndex=0,jr.onKeyDown=this.onKeyDown);var Ur=xr.prefixCls,dn=xr.eventKey,sn=xr.visible,bn=xr.level,Bn=xr.mode,Xn=xr.overflowedIndicator,$n=xr.theme;return xe.forEach(function(Ti){return delete xr[Ti]}),delete xr.onClick,S.createElement(ri,Object(b.a)({},xr,{prefixCls:Ur,mode:Bn,tag:"ul",level:bn,theme:$n,visible:sn,overflowedIndicator:Xn},jr),Object(n.a)(xr.children).map(function(Ti,Xi){return Yt.renderMenuItem(Ti,Xi,dn||"0-menu-")}))}}]),Qr}(S.Component);mn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:G};var Fr=Object(M.b)()(mn),An=Fr,Un=d("Kwbf");function Vn(fr,Dr,Qr){var Nr=fr.prefixCls,Yt=fr.motion,xr=fr.defaultMotions,tr=xr===void 0?{}:xr,jr=fr.openAnimation,Ur=fr.openTransitionName,dn=Dr.switchingModeFromInline;if(Yt)return Yt;if(Object(K.a)(jr)==="object"&&jr)Object(Un.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof jr=="string")return{motionName:"".concat(Nr,"-open-").concat(jr)};if(Ur)return{motionName:Ur};var sn=tr[Qr];return sn||(dn?null:tr.other)}var ti=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(Nr){var Yt;Object(_.a)(this,Qr),Yt=Dr.call(this,Nr),Yt.onSelect=function(jr){var Ur=Object(L.a)(Yt),dn=Ur.props;if(dn.selectable){var sn=Yt.store.getState(),bn=sn.selectedKeys,Bn=jr.key;dn.multiple?bn=bn.concat([Bn]):bn=[Bn],"selectedKeys"in dn||Yt.store.setState({selectedKeys:bn}),dn.onSelect(Object(a.a)(Object(a.a)({},jr),{},{selectedKeys:bn}))}},Yt.onClick=function(jr){var Ur=Yt.getRealMenuMode(),dn=Object(L.a)(Yt),sn=dn.store,bn=dn.props.onOpenChange;Ur!=="inline"&&!("openKeys"in Yt.props)&&(sn.setState({openKeys:[]}),bn([])),Yt.props.onClick(jr)},Yt.onKeyDown=function(jr,Ur){Yt.innerMenu.getWrappedInstance().onKeyDown(jr,Ur)},Yt.onOpenChange=function(jr){var Ur=Object(L.a)(Yt),dn=Ur.props,sn=Yt.store.getState().openKeys.concat(),bn=!1,Bn=function($n){var Ti=!1;if($n.open)Ti=sn.indexOf($n.key)===-1,Ti&&sn.push($n.key);else{var Xi=sn.indexOf($n.key);Ti=Xi!==-1,Ti&&sn.splice(Xi,1)}bn=bn||Ti};Array.isArray(jr)?jr.forEach(Bn):Bn(jr),bn&&("openKeys"in Yt.props||Yt.store.setState({openKeys:sn}),dn.onOpenChange(sn))},Yt.onDeselect=function(jr){var Ur=Object(L.a)(Yt),dn=Ur.props;if(dn.selectable){var sn=Yt.store.getState().selectedKeys.concat(),bn=jr.key,Bn=sn.indexOf(bn);Bn!==-1&&sn.splice(Bn,1),"selectedKeys"in dn||Yt.store.setState({selectedKeys:sn}),dn.onDeselect(Object(a.a)(Object(a.a)({},jr),{},{selectedKeys:sn}))}},Yt.onMouseEnter=function(jr){Yt.restoreModeVerticalFromInline();var Ur=Yt.props.onMouseEnter;Ur&&Ur(jr)},Yt.onTransitionEnd=function(jr){var Ur=jr.propertyName==="width"&&jr.target===jr.currentTarget,dn=jr.target.className,sn=Object.prototype.toString.call(dn)==="[object SVGAnimatedString]"?dn.animVal:dn,bn=jr.propertyName==="font-size"&&sn.indexOf("anticon")>=0;(Ur||bn)&&Yt.restoreModeVerticalFromInline()},Yt.setInnerMenu=function(jr){Yt.innerMenu=jr},Yt.isRootMenu=!0;var xr=Nr.defaultSelectedKeys,tr=Nr.defaultOpenKeys;return"selectedKeys"in Nr&&(xr=Nr.selectedKeys||[]),"openKeys"in Nr&&(tr=Nr.openKeys||[]),Yt.store=Object(M.c)({selectedKeys:xr,openKeys:tr,activeKey:{"0-menu-":Jn(Nr,Nr.activeKey)}}),Yt.state={switchingModeFromInline:!1,prevProps:Nr,inlineOpenKeys:[],store:Yt.store},Yt}return Object(O.a)(Qr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Yt){var xr=this.props,tr=xr.siderCollapsed,jr=xr.inlineCollapsed,Ur=xr.onOpenChange;(!Yt.inlineCollapsed&&jr||!Yt.siderCollapsed&&tr)&&Ur([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Yt=this.props.collapsedWidth,xr=this.store,tr=this.prevOpenKeys,jr=this.getInlineCollapsed()&&(Yt===0||Yt==="0"||Yt==="0px");jr?(this.prevOpenKeys=xr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):tr&&(this.store.setState({openKeys:tr}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Yt=this.props.mode,xr=this.state.switchingModeFromInline,tr=this.getInlineCollapsed();return xr&&tr?"inline":tr?"vertical":Yt}},{key:"getInlineCollapsed",value:function(){var Yt=this.props,xr=Yt.inlineCollapsed,tr=Yt.siderCollapsed;return tr!==void 0?tr:xr}},{key:"restoreModeVerticalFromInline",value:function(){var Yt=this.state.switchingModeFromInline;Yt&&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 Yt=Object(a.a)({},Object(F.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),xr=this.getRealMenuMode();return Yt.className+=" ".concat(Yt.prefixCls,"-root"),Yt.direction==="rtl"&&(Yt.className+=" ".concat(Yt.prefixCls,"-rtl")),Yt=Object(a.a)(Object(a.a)({},Yt),{},{mode:xr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Vn(this.props,this.state,xr)}),delete Yt.openAnimation,delete Yt.openTransitionName,S.createElement(M.a,{store:this.store},S.createElement(An,Object(b.a)({},Yt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Yt,xr){var tr=xr.prevProps,jr=xr.store,Ur=jr.getState(),dn={},sn={prevProps:Yt};return tr.mode==="inline"&&Yt.mode!=="inline"&&(sn.switchingModeFromInline=!0),"openKeys"in Yt?dn.openKeys=Yt.openKeys||[]:((Yt.inlineCollapsed&&!tr.inlineCollapsed||Yt.siderCollapsed&&!tr.siderCollapsed)&&(sn.switchingModeFromInline=!0,sn.inlineOpenKeys=Ur.openKeys,dn.openKeys=[]),(!Yt.inlineCollapsed&&tr.inlineCollapsed||!Yt.siderCollapsed&&tr.siderCollapsed)&&(dn.openKeys=xr.inlineOpenKeys,sn.inlineOpenKeys=[])),Object.keys(dn).length&&jr.setState(dn),sn}}]),Qr}(S.Component);ti.defaultProps={selectable:!0,onClick:G,onSelect:G,onOpenChange:G,onDeselect:G,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var di=ti,fi=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(){var Nr;return Object(_.a)(this,Qr),Nr=Dr.apply(this,arguments),Nr.onKeyDown=function(Yt){var xr=Yt.keyCode;return xr===p.a.ENTER?(Nr.onClick(Yt),!0):void 0},Nr.onMouseLeave=function(Yt){var xr=Nr.props,tr=xr.eventKey,jr=xr.onItemHover,Ur=xr.onMouseLeave;jr({key:tr,hover:!1}),Ur({key:tr,domEvent:Yt})},Nr.onMouseEnter=function(Yt){var xr=Nr.props,tr=xr.eventKey,jr=xr.onItemHover,Ur=xr.onMouseEnter;jr({key:tr,hover:!0}),Ur({key:tr,domEvent:Yt})},Nr.onClick=function(Yt){var xr=Nr.props,tr=xr.eventKey,jr=xr.multiple,Ur=xr.onClick,dn=xr.onSelect,sn=xr.onDeselect,bn=xr.isSelected,Bn={key:tr,keyPath:[tr],item:Object(L.a)(Nr),domEvent:Yt};Ur(Bn),jr?bn?sn(Bn):dn(Bn):bn||dn(Bn)},Nr.saveNode=function(Yt){Nr.node=Yt},Nr}return Object(O.a)(Qr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Yt=this.props;Yt.onDestroy&&Yt.onDestroy(Yt.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 Yt,xr=Object(a.a)({},this.props),tr=i()(this.getPrefixCls(),xr.className,(Yt={},Object(m.a)(Yt,this.getActiveClassName(),!xr.disabled&&xr.active),Object(m.a)(Yt,this.getSelectedClassName(),xr.isSelected),Object(m.a)(Yt,this.getDisabledClassName(),xr.disabled),Yt)),jr=Object(a.a)(Object(a.a)({},xr.attribute),{},{title:typeof xr.title=="string"?xr.title:void 0,className:tr,role:xr.role||"menuitem","aria-disabled":xr.disabled});xr.role==="option"?jr=Object(a.a)(Object(a.a)({},jr),{},{role:"option","aria-selected":xr.isSelected}):(xr.role===null||xr.role==="none")&&(jr.role="none");var Ur={onClick:xr.disabled?null:this.onClick,onMouseLeave:xr.disabled?null:this.onMouseLeave,onMouseEnter:xr.disabled?null:this.onMouseEnter},dn=Object(a.a)({},xr.style);xr.mode==="inline"&&(xr.direction==="rtl"?dn.paddingRight=xr.inlineIndent*xr.level:dn.paddingLeft=xr.inlineIndent*xr.level),xe.forEach(function(bn){return delete xr[bn]}),delete xr.direction;var sn=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(sn=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(b.a)({},Object(F.a)(xr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),jr,Ur,{style:dn,ref:this.saveNode}),xr.children,sn)}}]),Qr}(S.Component);fi.isMenuItem=!0,fi.defaultProps={onSelect:G,onMouseEnter:G,onMouseLeave:G,manualRef:G};var mi=Object(M.b)(function(fr,Dr){var Qr=fr.activeKey,Nr=fr.selectedKeys,Yt=Dr.eventKey,xr=Dr.subMenuKey;return{active:Qr[xr]===Yt,isSelected:Array.isArray(Nr)?Nr.indexOf(Yt)!==-1:Nr===Yt}})(fi),Wi=mi,na=function(fr){Object(D.a)(Qr,fr);var Dr=Object(N.a)(Qr);function Qr(){var Nr;return Object(_.a)(this,Qr),Nr=Dr.apply(this,arguments),Nr.renderInnerMenuItem=function(Yt){var xr=Nr.props,tr=xr.renderMenuItem,jr=xr.index;return tr(Yt,jr,Nr.props.subMenuKey)},Nr}return Object(O.a)(Qr,[{key:"render",value:function(){var Yt=Object(b.a)({},this.props),xr=Yt.className,tr=xr===void 0?"":xr,jr=Yt.rootPrefixCls,Ur="".concat(jr,"-item-group-title"),dn="".concat(jr,"-item-group-list"),sn=Yt.title,bn=Yt.children;return xe.forEach(function(Bn){return delete Yt[Bn]}),delete Yt.direction,S.createElement("li",Object(b.a)({},Yt,{onClick:function(Xn){return Xn.stopPropagation()},className:"".concat(tr," ").concat(jr,"-item-group")}),S.createElement("div",{className:Ur,title:typeof sn=="string"?sn:void 0},sn),S.createElement("ul",{className:dn},S.Children.map(bn,this.renderInnerMenuItem)))}}]),Qr}(S.Component);na.isMenuItemGroup=!0,na.defaultProps={disabled:!0};var ea=na,Fa=function(Dr){var Qr=Dr.className,Nr=Dr.rootPrefixCls,Yt=Dr.style;return S.createElement("li",{className:"".concat(Qr," ").concat(Nr,"-item-divider"),style:Yt})};Fa.defaultProps={disabled:!0,className:"",style:{}};var pi=Fa,ln=di,Li=d("eDIo");function Zi(fr,Dr){var Qr=fr.prefixCls,Nr=fr.editable,Yt=fr.locale,xr=fr.style;return!Nr||Nr.showAdd===!1?null:S.createElement("button",{ref:Dr,type:"button",className:"".concat(Qr,"-nav-add"),style:xr,"aria-label":(Yt==null?void 0:Yt.addAriaLabel)||"Add tab",onClick:function(jr){Nr.onEdit("add",{event:jr})}},Nr.addIcon||"+")}var Fi=S.forwardRef(Zi);function ia(fr,Dr){var Qr=fr.prefixCls,Nr=fr.id,Yt=fr.tabs,xr=fr.locale,tr=fr.mobile,jr=fr.moreIcon,Ur=jr===void 0?"More":jr,dn=fr.moreTransitionName,sn=fr.style,bn=fr.className,Bn=fr.editable,Xn=fr.tabBarGutter,$n=fr.rtl,Ti=fr.onTabClick,Xi=Object(S.useState)(!1),ua=Object(h.a)(Xi,2),da=ua[0],sa=ua[1],ca=Object(S.useState)(null),zi=Object(h.a)(ca,2),Ri=zi[0],ta=zi[1],$i="".concat(Nr,"-more-popup"),Ca="".concat(Qr,"-dropdown"),Ma=Ri!==null?"".concat($i,"-").concat(Ri):null,qi=xr==null?void 0:xr.dropdownAriaLabel,Yi=S.createElement(ln,{onClick:function(Aa){var Sa=Aa.key,Ya=Aa.domEvent;Ti(Sa,Ya),sa(!1)},id:$i,tabIndex:-1,role:"listbox","aria-activedescendant":Ma,selectedKeys:[Ri],"aria-label":qi!==void 0?qi:"expanded dropdown"},Yt.map(function(ka){return S.createElement(Wi,{key:ka.key,id:"".concat($i,"-").concat(ka.key),role:"option","aria-controls":Nr&&"".concat(Nr,"-panel-").concat(ka.key),disabled:ka.disabled},ka.tab)}));function Pa(ka){for(var Aa=Yt.filter(function(uo){return!uo.disabled}),Sa=Aa.findIndex(function(uo){return uo.key===Ri})||0,Ya=Aa.length,Ta=0;Ta<Ya;Ta+=1){Sa=(Sa+ka+Ya)%Ya;var Ga=Aa[Sa];if(!Ga.disabled){ta(Ga.key);return}}}function ya(ka){var Aa=ka.which;if(!da){[p.a.DOWN,p.a.SPACE,p.a.ENTER].includes(Aa)&&(sa(!0),ka.preventDefault());return}switch(Aa){case p.a.UP:Pa(-1),ka.preventDefault();break;case p.a.DOWN:Pa(1),ka.preventDefault();break;case p.a.ESC:sa(!1);break;case p.a.SPACE:case p.a.ENTER:Ri!==null&&Ti(Ri,ka);break}}Object(S.useEffect)(function(){var ka=document.getElementById(Ma);ka&&ka.scrollIntoView&&ka.scrollIntoView(!1)},[Ri]),Object(S.useEffect)(function(){da||ta(null)},[da]);var Ci=Object(m.a)({},$n?"marginLeft":"marginRight",Xn);Yt.length||(Ci.visibility="hidden",Ci.order=1);var la=i()(Object(m.a)({},"".concat(Ca,"-rtl"),$n)),Ha=tr?null:S.createElement(Li.a,{prefixCls:Ca,overlay:Yi,trigger:["hover"],visible:da,transitionName:dn,onVisibleChange:sa,overlayClassName:la,mouseEnterDelay:.1,mouseLeaveDelay:.1},S.createElement("button",{type:"button",className:"".concat(Qr,"-nav-more"),style:Ci,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$i,id:"".concat(Nr,"-more"),"aria-expanded":da,onKeyDown:ya},Ur));return S.createElement("div",{className:i()("".concat(Qr,"-nav-operations"),bn),style:sn,ref:Dr},Ha,S.createElement(Fi,{prefixCls:Qr,locale:xr,editable:Bn}))}var Gt=S.forwardRef(ia),Xr=Object(S.createContext)(null),rn=.1,fn=.01,Xe=20,_t=Math.pow(.995,Xe);function lr(){var fr=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(fr)||/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(fr.substr(0,4)))}function rr(fr,Dr){var Qr=Object(S.useState)(),Nr=Object(h.a)(Qr,2),Yt=Nr[0],xr=Nr[1],tr=Object(S.useState)(0),jr=Object(h.a)(tr,2),Ur=jr[0],dn=jr[1],sn=Object(S.useState)(0),bn=Object(h.a)(sn,2),Bn=bn[0],Xn=bn[1],$n=Object(S.useState)(),Ti=Object(h.a)($n,2),Xi=Ti[0],ua=Ti[1],da=Object(S.useRef)();function sa(qi){var Yi=qi.touches[0],Pa=Yi.screenX,ya=Yi.screenY;xr({x:Pa,y:ya}),window.clearInterval(da.current)}function ca(qi){if(!Yt)return;qi.preventDefault();var Yi=qi.touches[0],Pa=Yi.screenX,ya=Yi.screenY;xr({x:Pa,y:ya});var Ci=Pa-Yt.x,la=ya-Yt.y;Dr(Ci,la);var Ha=Date.now();dn(Ha),Xn(Ha-Ur),ua({x:Ci,y:la})}function zi(){if(!Yt)return;if(xr(null),ua(null),Xi){var qi=Xi.x/Bn,Yi=Xi.y/Bn,Pa=Math.abs(qi),ya=Math.abs(Yi);if(Math.max(Pa,ya)<rn)return;var Ci=qi,la=Yi;da.current=window.setInterval(function(){if(Math.abs(Ci)<fn&&Math.abs(la)<fn){window.clearInterval(da.current);return}Ci*=_t,la*=_t,Dr(Ci*Xe,la*Xe)},Xe)}}var Ri=Object(S.useRef)(0),ta=Object(S.useRef)(!1),$i=Object(S.useRef)();function Ca(qi){var Yi=qi.deltaX,Pa=qi.deltaY,ya=0,Ci=Math.abs(Yi),la=Math.abs(Pa);Ci===la?ya=$i.current==="x"?Yi:Pa:Ci>la?(ya=Yi,$i.current="x"):(ya=Pa,$i.current="y");var Ha=Date.now();Ha-Ri.current>100&&(ta.current=!1),(Dr(-ya,-ya)||ta.current)&&(qi.preventDefault(),ta.current=!0),Ri.current=Ha}var Ma=Object(S.useRef)(null);Ma.current={onTouchStart:sa,onTouchMove:ca,onTouchEnd:zi,onWheel:Ca},S.useEffect(function(){function qi(Ci){Ma.current.onTouchStart(Ci)}function Yi(Ci){Ma.current.onTouchMove(Ci)}function Pa(Ci){Ma.current.onTouchEnd(Ci)}function ya(Ci){Ma.current.onWheel(Ci)}return document.addEventListener("touchmove",Yi,{passive:!1}),document.addEventListener("touchend",Pa,{passive:!1}),fr.current.addEventListener("touchstart",qi,{passive:!1}),fr.current.addEventListener("wheel",ya),function(){document.removeEventListener("touchmove",Yi),document.removeEventListener("touchend",Pa)}},[])}function Or(){var fr=Object(S.useRef)(new Map);function Dr(Nr){return fr.current.has(Nr)||fr.current.set(Nr,S.createRef()),fr.current.get(Nr)}function Qr(Nr){fr.current.delete(Nr)}return[Dr,Qr]}function Mr(fr,Dr){var Qr=S.useRef(fr),Nr=S.useState({}),Yt=Object(h.a)(Nr,2),xr=Yt[1];function tr(jr){var Ur=typeof jr=="function"?jr(Qr.current):jr;Ur!==Qr.current&&Dr(Ur,Qr.current),Qr.current=Ur,xr({})}return[Qr.current,tr]}var Wr=function(Dr){var Qr=Dr.position,Nr=Dr.prefixCls,Yt=Dr.extra;if(!Yt)return null;var xr,tr=Yt;return Qr==="right"&&(xr=tr.right||!tr.left&&tr||null),Qr==="left"&&(xr=tr.left||null),xr?S.createElement("div",{className:"".concat(Nr,"-extra-content")},xr):null};function nn(fr,Dr){var Qr,Nr=S.useContext(Xr),Yt=Nr.prefixCls,xr=Nr.tabs,tr=fr.className,jr=fr.style,Ur=fr.id,dn=fr.animated,sn=fr.activeKey,bn=fr.rtl,Bn=fr.extra,Xn=fr.editable,$n=fr.locale,Ti=fr.tabPosition,Xi=fr.tabBarGutter,ua=fr.children,da=fr.onTabClick,sa=fr.onTabScroll,ca=Object(S.useRef)(),zi=Object(S.useRef)(),Ri=Object(S.useRef)(),ta=Object(S.useRef)(),$i=Or(),Ca=Object(h.a)($i,2),Ma=Ca[0],qi=Ca[1],Yi=Ti==="top"||Ti==="bottom",Pa=Mr(0,function(we,Be){Yi&&sa&&sa({direction:we>Be?"left":"right"})}),ya=Object(h.a)(Pa,2),Ci=ya[0],la=ya[1],Ha=Mr(0,function(we,Be){!Yi&&sa&&sa({direction:we>Be?"top":"bottom"})}),ka=Object(h.a)(Ha,2),Aa=ka[0],Sa=ka[1],Ya=Object(S.useState)(0),Ta=Object(h.a)(Ya,2),Ga=Ta[0],uo=Ta[1],aa=Object(S.useState)(0),ho=Object(h.a)(aa,2),Ua=ho[0],Na=ho[1],$a=Object(S.useState)(0),Ra=Object(h.a)($a,2),Ka=Ra[0],bo=Ra[1],no=Object(S.useState)(0),Co=Object(h.a)(no,2),fo=Co[0],po=Co[1],Za=Object(S.useState)(null),qa=Object(h.a)(Za,2),Oa=qa[0],oo=qa[1],go=Object(S.useState)(null),Bi=Object(h.a)(go,2),pa=Bi[0],Do=Bi[1],jo=Object(S.useState)(0),Vo=Object(h.a)(jo,2),Yo=Vo[0],wo=Vo[1],Da=Object(S.useState)(0),Fo=Object(h.a)(Da,2),cs=Fo[0],mo=Fo[1],_o=f(new Map),Xa=Object(h.a)(_o,2),Qo=Xa[0],il=Xa[1],Os=x(xr,Qo,Ga),as="".concat(Yt,"-nav-operations-hidden"),xs=0,Ls=0;Yi?bn?(xs=0,Ls=Math.max(0,Ga-Oa)):(xs=Math.min(0,Oa-Ga),Ls=0):(xs=Math.min(0,pa-Ua),Ls=0);function ys(we){return we<xs?[xs,!1]:we>Ls?[Ls,!1]:[we,!0]}var Ho=Object(S.useRef)(),vo=Object(S.useState)(),es=Object(h.a)(vo,2),Ko=es[0],Ro=es[1];function Vr(){Ro(Date.now())}function bi(){window.clearTimeout(Ho.current)}rr(ca,function(we,Be){var dt=!1;function Ot(br,Lr){br(function($r){var xn=ys($r+Lr),Wn=Object(h.a)(xn,2),si=Wn[0],Si=Wn[1];return dt=Si,si})}if(Yi){if(Oa>=Ga)return dt;Ot(la,we)}else{if(pa>=Ua)return dt;Ot(Sa,Be)}return bi(),Vr(),dt}),Object(S.useEffect)(function(){return bi(),Ko&&(Ho.current=window.setTimeout(function(){Ro(0)},100)),bi},[Ko]);function Qs(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sn,Be=Os.get(we);if(!Be)return;if(Yi){var dt=Ci;bn?Be.right<Ci?dt=Be.right:Be.right+Be.width>Ci+Oa&&(dt=Be.right+Be.width-Oa):Be.left<-Ci?dt=-Be.left:Be.left+Be.width>-Ci+Oa&&(dt=-(Be.left+Be.width-Oa)),Sa(0),la(ys(dt)[0])}else{var Ot=Aa;Be.top<-Aa?Ot=-Be.top:Be.top+Be.height>-Aa+pa&&(Ot=-(Be.top+Be.height-pa)),la(0),Sa(ys(Ot)[0])}}var Ns=w(Os,{width:Oa,height:pa,left:Ci,top:Aa},{width:Ka,height:fo},{width:Yo,height:cs},Object(a.a)(Object(a.a)({},fr),{},{tabs:xr})),js=Object(h.a)(Ns,2),so=js[0],Ao=js[1],Jo=xr.map(function(we){var Be=we.key;return S.createElement(A,{id:Ur,prefixCls:Yt,key:Be,rtl:bn,tab:we,closable:we.closable,editable:Xn,active:Be===sn,tabPosition:Ti,tabBarGutter:Xi,renderWrapper:ua,removeAriaLabel:$n==null?void 0:$n.removeAriaLabel,ref:Ma(Be),onClick:function(Ot){da(Be,Ot)},onRemove:function(){qi(Be)},onFocus:function(){Qs(Be),Vr(),bn||(ca.current.scrollLeft=0),ca.current.scrollTop=0}})}),Uo=u(function(){var we,Be,dt,Ot,br,Lr,$r,xn,Wn,si=((we=ca.current)===null||we===void 0?void 0:we.offsetWidth)||0,Si=((Be=ca.current)===null||Be===void 0?void 0:Be.offsetHeight)||0,Vi=((dt=ta.current)===null||dt===void 0?void 0:dt.offsetWidth)||0,oa=((Ot=ta.current)===null||Ot===void 0?void 0:Ot.offsetHeight)||0,xa=((br=Ri.current)===null||br===void 0?void 0:br.offsetWidth)||0,eo=((Lr=Ri.current)===null||Lr===void 0?void 0:Lr.offsetHeight)||0;oo(si),Do(Si),wo(Vi),mo(oa);var to=((($r=zi.current)===null||$r===void 0?void 0:$r.offsetWidth)||0)-Vi,io=(((xn=zi.current)===null||xn===void 0?void 0:xn.offsetHeight)||0)-oa;uo(to),Na(io);var Oo=(Wn=Ri.current)===null||Wn===void 0?void 0:Wn.className.includes(as);bo(to-(Oo?0:xa)),po(io-(Oo?0:eo)),il(function(){var yo=new Map;return xr.forEach(function(Mo){var za=Mo.key,So=Ma(za).current;So&&yo.set(za,{width:So.offsetWidth,height:So.offsetHeight,left:So.offsetLeft,top:So.offsetTop})}),yo})}),bs=xr.slice(0,so),ms=xr.slice(Ao+1),gs=[].concat(Object(s.a)(bs),Object(s.a)(ms)),ul=Object(S.useState)(),Ms=Object(h.a)(ul,2),Js=Ms[0],Hs=Ms[1],Go=Os.get(sn),Ps=Object(S.useRef)();function St(){o.a.cancel(Ps.current)}Object(S.useEffect)(function(){var we={};return Go&&(Yi?(bn?we.right=Go.right:we.left=Go.left,we.width=Go.width):(we.top=Go.top,we.height=Go.height)),St(),Ps.current=o()(function(){Hs(we)}),St},[Go,Yi,bn]),Object(S.useEffect)(function(){Qs()},[sn,Go,Os,Yi]),Object(S.useEffect)(function(){Uo()},[bn,Xi,sn,xr.map(function(we){return we.key}).join("_")]);var Mt=!!gs.length,tn="".concat(Yt,"-nav-wrap"),In,mt,ne,Ae;return Yi?bn?(mt=Ci>0,In=Ci+Oa<Ga):(In=Ci<0,mt=-Ci+Oa<Ga):(ne=Aa<0,Ae=-Aa+pa<Ua),S.createElement("div",{ref:Dr,role:"tablist",className:i()("".concat(Yt,"-nav"),tr),style:jr,onKeyDown:function(){Vr()}},S.createElement(Wr,{position:"left",extra:Bn,prefixCls:Yt}),S.createElement(l.a,{onResize:Uo},S.createElement("div",{className:i()(tn,(Qr={},Object(m.a)(Qr,"".concat(tn,"-ping-left"),In),Object(m.a)(Qr,"".concat(tn,"-ping-right"),mt),Object(m.a)(Qr,"".concat(tn,"-ping-top"),ne),Object(m.a)(Qr,"".concat(tn,"-ping-bottom"),Ae),Qr)),ref:ca},S.createElement(l.a,{onResize:Uo},S.createElement("div",{ref:zi,className:"".concat(Yt,"-nav-list"),style:{transform:"translate(".concat(Ci,"px, ").concat(Aa,"px)"),transition:Ko?"none":void 0}},Jo,S.createElement(Fi,{ref:ta,prefixCls:Yt,locale:$n,editable:Xn,style:{visibility:Mt?"hidden":null}}),S.createElement("div",{className:i()("".concat(Yt,"-ink-bar"),Object(m.a)({},"".concat(Yt,"-ink-bar-animated"),dn.inkBar)),style:Js}))))),S.createElement(Gt,Object.assign({},fr,{ref:Ri,prefixCls:Yt,tabs:gs,className:!Mt&&as})),S.createElement(Wr,{position:"right",extra:Bn,prefixCls:Yt}))}var wn=S.forwardRef(nn);function On(fr){var Dr=fr.id,Qr=fr.activeKey,Nr=fr.animated,Yt=fr.tabPosition,xr=fr.rtl,tr=fr.destroyInactiveTabPane,jr=S.useContext(Xr),Ur=jr.prefixCls,dn=jr.tabs,sn=Nr.tabPane,bn=dn.findIndex(function(Bn){return Bn.key===Qr});return S.createElement("div",{className:i()("".concat(Ur,"-content-holder"))},S.createElement("div",{className:i()("".concat(Ur,"-content"),"".concat(Ur,"-content-").concat(Yt),Object(m.a)({},"".concat(Ur,"-content-animated"),sn)),style:bn&&sn?Object(m.a)({},xr?"marginRight":"marginLeft","-".concat(bn,"00%")):null},dn.map(function(Bn){return S.cloneElement(Bn.node,{key:Bn.key,prefixCls:Ur,tabKey:Bn.key,id:Dr,animated:sn,active:Bn.key===Qr,destroyInactiveTabPane:tr})})))}function Rn(fr){var Dr=fr.prefixCls,Qr=fr.forceRender,Nr=fr.className,Yt=fr.style,xr=fr.id,tr=fr.active,jr=fr.animated,Ur=fr.destroyInactiveTabPane,dn=fr.tabKey,sn=fr.children,bn=S.useState(Qr),Bn=Object(h.a)(bn,2),Xn=Bn[0],$n=Bn[1];S.useEffect(function(){tr?$n(!0):Ur&&$n(!1)},[tr,Ur]);var Ti={};return tr||(jr?(Ti.visibility="hidden",Ti.height=0,Ti.overflowY="hidden"):Ti.display="none"),S.createElement("div",{id:xr&&"".concat(xr,"-panel-").concat(dn),role:"tabpanel",tabIndex:tr?0:-1,"aria-labelledby":xr&&"".concat(xr,"-tab-").concat(dn),"aria-hidden":!tr,style:Object(a.a)(Object(a.a)({},Ti),Yt),className:i()("".concat(Dr,"-tabpane"),tr&&"".concat(Dr,"-tabpane-active"),Nr)},(tr||Xn||Qr)&&sn)}var Nn=0;function yn(fr){return Object(n.a)(fr).map(function(Dr){if(S.isValidElement(Dr)){var Qr=Dr.key!==void 0?String(Dr.key):void 0;return Object(a.a)(Object(a.a)({key:Qr},Dr.props),{},{node:Dr})}return null}).filter(function(Dr){return Dr})}function Sn(fr,Dr){var Qr,Nr=fr.id,Yt=fr.prefixCls,xr=Yt===void 0?"rc-tabs":Yt,tr=fr.className,jr=fr.children,Ur=fr.direction,dn=fr.activeKey,sn=fr.defaultActiveKey,bn=fr.editable,Bn=fr.animated,Xn=fr.tabPosition,$n=Xn===void 0?"top":Xn,Ti=fr.tabBarGutter,Xi=fr.tabBarStyle,ua=fr.tabBarExtraContent,da=fr.locale,sa=fr.moreIcon,ca=fr.moreTransitionName,zi=fr.destroyInactiveTabPane,Ri=fr.renderTabBar,ta=fr.onChange,$i=fr.onTabClick,Ca=fr.onTabScroll,Ma=Object(c.a)(fr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),qi=yn(jr),Yi=Ur==="rtl",Pa;Bn===!1?Pa={inkBar:!1,tabPane:!1}:Pa=Object(a.a)({inkBar:!0,tabPane:!1},Bn!==!0?Bn:null);var ya=Object(S.useState)(!1),Ci=Object(h.a)(ya,2),la=Ci[0],Ha=Ci[1];Object(S.useEffect)(function(){Ha(lr())},[]);var ka=Object(t.a)(function(){var fo;return(fo=qi[0])===null||fo===void 0?void 0:fo.key},{value:dn,defaultValue:sn}),Aa=Object(h.a)(ka,2),Sa=Aa[0],Ya=Aa[1],Ta=Object(S.useState)(function(){return qi.findIndex(function(fo){return fo.key===Sa})}),Ga=Object(h.a)(Ta,2),uo=Ga[0],aa=Ga[1];Object(S.useEffect)(function(){var fo=qi.findIndex(function(Za){return Za.key===Sa});if(fo===-1){var po;fo=Math.max(0,Math.min(uo,qi.length-1)),Ya((po=qi[fo])===null||po===void 0?void 0:po.key)}aa(fo)},[qi.map(function(fo){return fo.key}).join("_"),Sa,uo]);var ho=Object(t.a)(null,{value:Nr}),Ua=Object(h.a)(ho,2),Na=Ua[0],$a=Ua[1],Ra=$n;la&&!["left","right"].includes($n)&&(Ra="top"),Object(S.useEffect)(function(){Nr||($a("rc-tabs-".concat(Nn)),Nn+=1)},[]);function Ka(fo,po){$i==null||$i(fo,po),Ya(fo),ta==null||ta(fo)}var bo={id:Na,activeKey:Sa,animated:Pa,tabPosition:Ra,rtl:Yi,mobile:la},no,Co=Object(a.a)(Object(a.a)({},bo),{},{editable:bn,locale:da,moreIcon:sa,moreTransitionName:ca,tabBarGutter:Ti,onTabClick:Ka,onTabScroll:Ca,extra:ua,style:Xi,panes:jr});return Ri?no=Ri(Co,wn):no=S.createElement(wn,Object.assign({},Co)),S.createElement(Xr.Provider,{value:{tabs:qi,prefixCls:xr}},S.createElement("div",Object.assign({ref:Dr,id:Nr,className:i()(xr,"".concat(xr,"-").concat(Ra),(Qr={},Object(m.a)(Qr,"".concat(xr,"-mobile"),la),Object(m.a)(Qr,"".concat(xr,"-editable"),bn),Object(m.a)(Qr,"".concat(xr,"-rtl"),Yi),Qr),tr)},Ma),no,S.createElement(On,Object.assign({destroyInactiveTabPane:zi},bo,{animated:Pa}))))}var _n=S.forwardRef(Sn);_n.TabPane=Rn;var Hn=_n,Yn=Hn,Zn=d("cCPh"),yi=d.n(Zn),gi=d("fNCr"),Di=d.n(gi),Ui=d("V/uB"),Ei=d.n(Ui),_i=d("uaoM"),Ni=d("H84U"),jn=function(fr,Dr){var Qr={};for(var Nr in fr)Object.prototype.hasOwnProperty.call(fr,Nr)&&Dr.indexOf(Nr)<0&&(Qr[Nr]=fr[Nr]);if(fr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Nr=Object.getOwnPropertySymbols(fr);Yt<Nr.length;Yt++)Dr.indexOf(Nr[Yt])<0&&Object.prototype.propertyIsEnumerable.call(fr,Nr[Yt])&&(Qr[Nr[Yt]]=fr[Nr[Yt]]);return Qr};function Ii(fr){var Dr,Qr=fr.type,Nr=fr.className,Yt=fr.size,xr=fr.onEdit,tr=fr.hideAdd,jr=fr.centered,Ur=fr.addIcon,dn=jn(fr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),sn=dn.prefixCls,bn=S.useContext(Ni.b),Bn=bn.getPrefixCls,Xn=bn.direction,$n=Bn("tabs",sn),Ti;return Qr==="editable-card"&&(Ti={onEdit:function(ua,da){var sa=da.key,ca=da.event;xr==null||xr(ua==="add"?ca:sa,ua)},removeIcon:S.createElement(Ei.a,null),addIcon:Ur||S.createElement(Di.a,null),showAdd:tr!==!0}),Object(_i.a)(!("onPrevClick"in dn)&&!("onNextClick"in dn),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),S.createElement(Yn,E()({direction:Xn},dn,{moreTransitionName:"slide-up",className:i()(Nr,(Dr={},g()(Dr,"".concat($n,"-").concat(Yt),Yt),g()(Dr,"".concat($n,"-card"),["card","editable-card"].includes(Qr)),g()(Dr,"".concat($n,"-editable-card"),Qr==="editable-card"),g()(Dr,"".concat($n,"-centered"),jr),Dr)),editable:Ti,moreIcon:S.createElement(yi.a,null),prefixCls:$n}))}Ii.TabPane=Rn;var Hi=k.a=Ii},ZTW2:function(H,k,d){},ZWlE:function(H,k,d){var I=d("bYtY"),E=d("4NO4");function T(m){g(m),S(m)}function g(m){if(m.parallel)return;var h=!1;I.each(m.series,function(c){c&&c.type==="parallel"&&(h=!0)}),h&&(m.parallel=[{}])}function S(m){var h=E.normalizeToArray(m.parallelAxis);I.each(h,function(c){if(!I.isObject(c))return;var a=c.parallelIndex||0,r=E.normalizeToArray(m.parallel)[a];r&&r.parallelAxisDefault&&I.merge(c,r.parallelAxisDefault,!1)})}H.exports=T},ZX9x:function(H,k,d){"use strict";d.d(k,"a",function(){return O}),d.d(k,"b",function(){return N});var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("lwsE"),m=d.n(S),h=d("W8MJ"),c=d.n(h),a=d("7W2i"),r=d.n(a),i=d("LQ03"),n=d.n(i),t=d("q1tI"),s=d("TSYQ"),e=d.n(s),o=d("BGR+"),l=d("T1rO"),u=d.n(l),f=d("fEPi"),p=d.n(f),v=d("DFhj"),A=d.n(v),y=d("PKem"),x=d("H84U"),C=function(F){return!isNaN(parseFloat(F))&&isFinite(F)},w=C,b=function(M,F){var R={};for(var j in M)Object.prototype.hasOwnProperty.call(M,j)&&F.indexOf(j)<0&&(R[j]=M[j]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,j=Object.getOwnPropertySymbols(M);B<j.length;B++)F.indexOf(j[B])<0&&Object.prototype.propertyIsEnumerable.call(M,j[B])&&(R[j[B]]=M[j[B]]);return R},_={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O=t.createContext({}),L=function(){var M=0;return function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return M+=1,"".concat(F).concat(M)}}(),D=function(M){r()(R,M);var F=n()(R);function R(j){var B;m()(this,R),B=F.call(this,j),B.responsiveHandler=function(z){B.setState({below:z.matches});var V=B.props.onBreakpoint,Y=B.state.collapsed;V&&V(z.matches),Y!==z.matches&&B.setCollapsed(z.matches,"responsive")},B.setCollapsed=function(z,V){"collapsed"in B.props||B.setState({collapsed:z});var Y=B.props.onCollapse;Y&&Y(z,V)},B.toggle=function(){var z=!B.state.collapsed;B.setCollapsed(z,"clickTrigger")},B.renderSider=function(z){var V,Y=z.getPrefixCls,J=B.props,se=J.prefixCls,$=J.className,ae=J.theme,ge=J.collapsible,pe=J.reverseArrow,Ne=J.trigger,de=J.style,Le=J.width,Q=J.collapsedWidth,ce=J.zeroWidthTriggerStyle,Ke=J.children,ee=b(J,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),X=B.state,G=X.collapsed,Z=X.below,ve=Y("layout-sider",se),ue=Object(o.default)(ee,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),_e=G?Q:Le,xe=w(_e)?"".concat(_e,"px"):String(_e),oe=parseFloat(String(Q||0))===0?t.createElement("span",{onClick:B.toggle,className:e()("".concat(ve,"-zero-width-trigger"),"".concat(ve,"-zero-width-trigger-").concat(pe?"right":"left")),style:ce},Ne||t.createElement(u.a,null)):null,fe={expanded:pe?t.createElement(p.a,null):t.createElement(A.a,null),collapsed:pe?t.createElement(A.a,null):t.createElement(p.a,null)},Te=G?"collapsed":"expanded",ze=fe[Te],it=Ne!==null?oe||t.createElement("div",{className:"".concat(ve,"-trigger"),onClick:B.toggle,style:{width:xe}},Ne||ze):null,et=g()(g()({},de),{flex:"0 0 ".concat(xe),maxWidth:xe,minWidth:xe,width:xe}),Oe=e()($,ve,"".concat(ve,"-").concat(ae),(V={},E()(V,"".concat(ve,"-collapsed"),!!G),E()(V,"".concat(ve,"-has-trigger"),ge&&Ne!==null&&!oe),E()(V,"".concat(ve,"-below"),!!Z),E()(V,"".concat(ve,"-zero-width"),parseFloat(xe)===0),V));return t.createElement("aside",g()({className:Oe},ue,{style:et}),t.createElement("div",{className:"".concat(ve,"-children")},Ke),ge||Z&&oe?it:null)},B.uniqueId=L("ant-sider-");var K;typeof window!="undefined"&&(K=window.matchMedia),K&&j.breakpoint&&j.breakpoint in _&&(B.mql=K("(max-width: ".concat(_[j.breakpoint],")")));var U;return"collapsed"in j?U=j.collapsed:U=j.defaultCollapsed,B.state={collapsed:U,below:!1},B}return c()(R,[{key:"componentDidMount",value:function(){var B;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(B=this.props)===null||B===void 0||B.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var B,K;(B=this===null||this===void 0?void 0:this.mql)===null||B===void 0||B.removeListener(this.responsiveHandler),(K=this.props)===null||K===void 0||K.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var B=this.state.collapsed,K=this.props.collapsedWidth;return t.createElement(O.Provider,{value:{siderCollapsed:B,collapsedWidth:K}},t.createElement(x.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(B){return"collapsed"in B?{collapsed:B.collapsed}:null}}]),R}(t.Component);D.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var N=function(M){r()(R,M);var F=n()(R);function R(){return m()(this,R),F.apply(this,arguments)}return c()(R,[{key:"render",value:function(){var B=this;return t.createElement(y.a.Consumer,null,function(K){return t.createElement(D,g()({},K,B.props))})}}]),R}(t.Component)},ZYIC:function(H,k,d){var I=d("zM3Q"),E={seriesType:"lines",plan:I(),reset:function(T){var g=T.coordinateSystem,S=T.get("polyline"),m=T.pipelineContext.large;function h(c,a){var r=[];if(m){var i,n=c.end-c.start;if(S){for(var t=0,s=c.start;s<c.end;s++)t+=T.getLineCoordsCount(s);i=new Float32Array(n+t*2)}else i=new Float32Array(n*4);for(var e=0,o=[],s=c.start;s<c.end;s++){var l=T.getLineCoords(s,r);S&&(i[e++]=l);for(var u=0;u<l;u++)o=g.dataToPoint(r[u],!1,o),i[e++]=o[0],i[e++]=o[1]}a.setLayout("linesPoints",i)}else for(var s=c.start;s<c.end;s++){var f=a.getItemModel(s),l=T.getLineCoords(s,r),p=[];if(S)for(var v=0;v<l;v++)p.push(g.dataToPoint(r[v]));else{p[0]=g.dataToPoint(r[0]),p[1]=g.dataToPoint(r[1]);var A=f.get("lineStyle.curveness");+A&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*A,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*A])}a.setItemLayout(s,p)}}return{progress:h}}};H.exports=E},Ze12:function(H,k,d){var I=d("ItGF"),E=d("hOwI"),T=E.buildTransformer,g="___zrEVENTSAVED",S=[];function m(i,n,t,s,e){return h(S,n,s,e,!0)&&h(i,t,S[0],S[1])}function h(i,n,t,s,e){if(n.getBoundingClientRect&&I.domSupported&&!r(n)){var o=n[g]||(n[g]={}),l=c(n,o),u=a(l,o,e);if(u)return u(i,t,s),!0}return!1}function c(i,n){var t=n.markers;if(t)return t;t=n.markers=[];for(var s=["left","right"],e=["top","bottom"],o=0;o<4;o++){var l=document.createElement("div"),u=l.style,f=o%2,p=(o>>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[f]+":0",e[p]+":0",s[1-f]+":auto",e[1-p]+":auto",""].join("!important;"),i.appendChild(l),t.push(l)}return t}function a(i,n,t){for(var s=t?"invTrans":"trans",e=n[s],o=n.srcCoords,l=!0,u=[],f=[],p=0;p<4;p++){var v=i[p].getBoundingClientRect(),A=2*p,y=v.left,x=v.top;u.push(y,x),l=l&&o&&y===o[A]&&x===o[A+1],f.push(i[p].offsetLeft,i[p].offsetTop)}return l&&e?e:(n.srcCoords=u,n[s]=t?T(f,u):T(u,f))}function r(i){return i.nodeName.toUpperCase()==="CANVAS"}k.transformLocalCoord=m,k.transformCoordWithViewport=h,k.isCanvasEl=r},Znkb:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("zTMp"),S=T.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,i,n,t){this.axisPointerClass&&g.fixValue(r),S.superApply(this,"render",arguments),m(this,r,i,n,t,!0)},updateAxisPointer:function(r,i,n,t,s){m(this,r,i,n,t,!1)},remove:function(r,i){var n=this._axisPointer;n&&n.remove(i),S.superApply(this,"remove",arguments)},dispose:function(r,i){h(this,i),S.superApply(this,"dispose",arguments)}});function m(r,i,n,t,s,e){var o=S.getAxisPointerClass(r.axisPointerClass);if(!o)return;var l=g.getAxisPointerModel(i);l?(r._axisPointer||(r._axisPointer=new o)).render(i,l,t,e):h(r,t)}function h(r,i,n){var t=r._axisPointer;t&&t.dispose(i,n),r._axisPointer=null}var c=[];S.registerAxisPointerClass=function(r,i){c[r]=i},S.getAxisPointerClass=function(r){return r&&c[r]};var a=S;H.exports=a},"Znn+":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("9ama"),g=d.n(T)},ZqQs:function(H,k,d){var I=d("bYtY");function E(m){var h=m&&m.timeline;I.isArray(h)||(h=h?[h]:[]),I.each(h,function(c){if(!c)return;T(c)})}function T(m){var h=m.type,c={number:"value",time:"time"};if(c[h]&&(m.axisType=c[h],delete m.type),g(m),S(m,"controlPosition")){var a=m.controlStyle||(m.controlStyle={});S(a,"position")||(a.position=m.controlPosition),a.position==="none"&&!S(a,"show")&&(a.show=!1,delete a.position),delete m.controlPosition}I.each(m.data||[],function(r){I.isObject(r)&&!I.isArray(r)&&(!S(r,"value")&&S(r,"name")&&(r.value=r.name),g(r))})}function g(m){var h=m.itemStyle||(m.itemStyle={}),c=h.emphasis||(h.emphasis={}),a=m.label||m.label||{},r=a.normal||(a.normal={}),i={normal:1,emphasis:1};I.each(a,function(n,t){!i[t]&&!S(r,t)&&(r[t]=n)}),c.label&&!S(a,"emphasis")&&(a.emphasis=c.label,delete c.label)}function S(m,h){return m.hasOwnProperty(h)}H.exports=E},Zss7:function(H,k,d){var I;(function(E){var T=/^\s+/,g=/\s+$/,S=0,m=E.round,h=E.min,c=E.max,a=E.random;function r(de,Le){if(de=de||"",Le=Le||{},de instanceof r)return de;if(!(this instanceof r))return new r(de,Le);var Q=i(de);this._originalInput=de,this._r=Q.r,this._g=Q.g,this._b=Q.b,this._a=Q.a,this._roundA=m(100*this._a)/100,this._format=Le.format||Q.format,this._gradientType=Le.gradientType,this._r<1&&(this._r=m(this._r)),this._g<1&&(this._g=m(this._g)),this._b<1&&(this._b=m(this._b)),this._ok=Q.ok,this._tc_id=S++}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Le=this.toRgb();return(Le.r*299+Le.g*587+Le.b*114)/1e3},getLuminance:function(){var Le=this.toRgb(),Q,ce,Ke,ee,X,G;return Q=Le.r/255,ce=Le.g/255,Ke=Le.b/255,Q<=.03928?ee=Q/12.92:ee=E.pow((Q+.055)/1.055,2.4),ce<=.03928?X=ce/12.92:X=E.pow((ce+.055)/1.055,2.4),Ke<=.03928?G=Ke/12.92:G=E.pow((Ke+.055)/1.055,2.4),.2126*ee+.7152*X+.0722*G},setAlpha:function(Le){return this._a=j(Le),this._roundA=m(100*this._a)/100,this},toHsv:function(){var Le=e(this._r,this._g,this._b);return{h:Le.h*360,s:Le.s,v:Le.v,a:this._a}},toHsvString:function(){var Le=e(this._r,this._g,this._b),Q=m(Le.h*360),ce=m(Le.s*100),Ke=m(Le.v*100);return this._a==1?"hsv("+Q+", "+ce+"%, "+Ke+"%)":"hsva("+Q+", "+ce+"%, "+Ke+"%, "+this._roundA+")"},toHsl:function(){var Le=t(this._r,this._g,this._b);return{h:Le.h*360,s:Le.s,l:Le.l,a:this._a}},toHslString:function(){var Le=t(this._r,this._g,this._b),Q=m(Le.h*360),ce=m(Le.s*100),Ke=m(Le.l*100);return this._a==1?"hsl("+Q+", "+ce+"%, "+Ke+"%)":"hsla("+Q+", "+ce+"%, "+Ke+"%, "+this._roundA+")"},toHex:function(Le){return l(this._r,this._g,this._b,Le)},toHexString:function(Le){return"#"+this.toHex(Le)},toHex8:function(Le){return u(this._r,this._g,this._b,this._a,Le)},toHex8String:function(Le){return"#"+this.toHex8(Le)},toRgb:function(){return{r:m(this._r),g:m(this._g),b:m(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+m(this._r)+", "+m(this._g)+", "+m(this._b)+")":"rgba("+m(this._r)+", "+m(this._g)+", "+m(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:m(B(this._r,255)*100)+"%",g:m(B(this._g,255)*100)+"%",b:m(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(B(this._r,255)*100)+"%, "+m(B(this._g,255)*100)+"%, "+m(B(this._b,255)*100)+"%)":"rgba("+m(B(this._r,255)*100)+"%, "+m(B(this._g,255)*100)+"%, "+m(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(Le){var Q="#"+f(this._r,this._g,this._b,this._a),ce=Q,Ke=this._gradientType?"GradientType = 1, ":"";if(Le){var ee=r(Le);ce="#"+f(ee._r,ee._g,ee._b,ee._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ke+"startColorstr="+Q+",endColorstr="+ce+")"},toString:function(Le){var Q=!!Le;Le=Le||this._format;var ce=!1,Ke=this._a<1&&this._a>=0,ee=!Q&&Ke&&(Le==="hex"||Le==="hex6"||Le==="hex3"||Le==="hex4"||Le==="hex8"||Le==="name");return ee?Le==="name"&&this._a===0?this.toName():this.toRgbString():(Le==="rgb"&&(ce=this.toRgbString()),Le==="prgb"&&(ce=this.toPercentageRgbString()),(Le==="hex"||Le==="hex6")&&(ce=this.toHexString()),Le==="hex3"&&(ce=this.toHexString(!0)),Le==="hex4"&&(ce=this.toHex8String(!0)),Le==="hex8"&&(ce=this.toHex8String()),Le==="name"&&(ce=this.toName()),Le==="hsl"&&(ce=this.toHslString()),Le==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(Le,Q){var ce=Le.apply(null,[this].concat([].slice.call(Q)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(Le,Q){return Le.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},r.fromRatio=function(de,Le){if(typeof de=="object"){var Q={};for(var ce in de)de.hasOwnProperty(ce)&&(ce==="a"?Q[ce]=de[ce]:Q[ce]=J(de[ce]));de=Q}return r(de,Le)};function i(de){var Le={r:0,g:0,b:0},Q=1,ce=null,Ke=null,ee=null,X=!1,G=!1;return typeof de=="string"&&(de=pe(de)),typeof de=="object"&&(ge(de.r)&&ge(de.g)&&ge(de.b)?(Le=n(de.r,de.g,de.b),X=!0,G=String(de.r).substr(-1)==="%"?"prgb":"rgb"):ge(de.h)&&ge(de.s)&&ge(de.v)?(ce=J(de.s),Ke=J(de.v),Le=o(de.h,ce,Ke),X=!0,G="hsv"):ge(de.h)&&ge(de.s)&&ge(de.l)&&(ce=J(de.s),ee=J(de.l),Le=s(de.h,ce,ee),X=!0,G="hsl"),de.hasOwnProperty("a")&&(Q=de.a)),Q=j(Q),{ok:X,format:de.format||G,r:h(255,c(Le.r,0)),g:h(255,c(Le.g,0)),b:h(255,c(Le.b,0)),a:Q}}function n(de,Le,Q){return{r:B(de,255)*255,g:B(Le,255)*255,b:B(Q,255)*255}}function t(de,Le,Q){de=B(de,255),Le=B(Le,255),Q=B(Q,255);var ce=c(de,Le,Q),Ke=h(de,Le,Q),ee,X,G=(ce+Ke)/2;if(ce==Ke)ee=X=0;else{var Z=ce-Ke;X=G>.5?Z/(2-ce-Ke):Z/(ce+Ke);switch(ce){case de:ee=(Le-Q)/Z+(Le<Q?6:0);break;case Le:ee=(Q-de)/Z+2;break;case Q:ee=(de-Le)/Z+4;break}ee/=6}return{h:ee,s:X,l:G}}function s(de,Le,Q){var ce,Ke,ee;de=B(de,360),Le=B(Le,100),Q=B(Q,100);function X(ve,ue,_e){return _e<0&&(_e+=1),_e>1&&(_e-=1),_e<1/6?ve+(ue-ve)*6*_e:_e<1/2?ue:_e<2/3?ve+(ue-ve)*(2/3-_e)*6:ve}if(Le===0)ce=Ke=ee=Q;else{var G=Q<.5?Q*(1+Le):Q+Le-Q*Le,Z=2*Q-G;ce=X(Z,G,de+1/3),Ke=X(Z,G,de),ee=X(Z,G,de-1/3)}return{r:ce*255,g:Ke*255,b:ee*255}}function e(de,Le,Q){de=B(de,255),Le=B(Le,255),Q=B(Q,255);var ce=c(de,Le,Q),Ke=h(de,Le,Q),ee,X,G=ce,Z=ce-Ke;if(X=ce===0?0:Z/ce,ce==Ke)ee=0;else{switch(ce){case de:ee=(Le-Q)/Z+(Le<Q?6:0);break;case Le:ee=(Q-de)/Z+2;break;case Q:ee=(de-Le)/Z+4;break}ee/=6}return{h:ee,s:X,v:G}}function o(de,Le,Q){de=B(de,360)*6,Le=B(Le,100),Q=B(Q,100);var ce=E.floor(de),Ke=de-ce,ee=Q*(1-Le),X=Q*(1-Ke*Le),G=Q*(1-(1-Ke)*Le),Z=ce%6,ve=[Q,X,ee,ee,G,Q][Z],ue=[G,Q,Q,X,ee,ee][Z],_e=[ee,ee,G,Q,Q,X][Z];return{r:ve*255,g:ue*255,b:_e*255}}function l(de,Le,Q,ce){var Ke=[Y(m(de).toString(16)),Y(m(Le).toString(16)),Y(m(Q).toString(16))];return ce&&Ke[0].charAt(0)==Ke[0].charAt(1)&&Ke[1].charAt(0)==Ke[1].charAt(1)&&Ke[2].charAt(0)==Ke[2].charAt(1)?Ke[0].charAt(0)+Ke[1].charAt(0)+Ke[2].charAt(0):Ke.join("")}function u(de,Le,Q,ce,Ke){var ee=[Y(m(de).toString(16)),Y(m(Le).toString(16)),Y(m(Q).toString(16)),Y(se(ce))];return Ke&&ee[0].charAt(0)==ee[0].charAt(1)&&ee[1].charAt(0)==ee[1].charAt(1)&&ee[2].charAt(0)==ee[2].charAt(1)&&ee[3].charAt(0)==ee[3].charAt(1)?ee[0].charAt(0)+ee[1].charAt(0)+ee[2].charAt(0)+ee[3].charAt(0):ee.join("")}function f(de,Le,Q,ce){var Ke=[Y(se(ce)),Y(m(de).toString(16)),Y(m(Le).toString(16)),Y(m(Q).toString(16))];return Ke.join("")}r.equals=function(de,Le){return!de||!Le?!1:r(de).toRgbString()==r(Le).toRgbString()},r.random=function(){return r.fromRatio({r:a(),g:a(),b:a()})};function p(de,Le){Le=Le===0?0:Le||10;var Q=r(de).toHsl();return Q.s-=Le/100,Q.s=K(Q.s),r(Q)}function v(de,Le){Le=Le===0?0:Le||10;var Q=r(de).toHsl();return Q.s+=Le/100,Q.s=K(Q.s),r(Q)}function A(de){return r(de).desaturate(100)}function y(de,Le){Le=Le===0?0:Le||10;var Q=r(de).toHsl();return Q.l+=Le/100,Q.l=K(Q.l),r(Q)}function x(de,Le){Le=Le===0?0:Le||10;var Q=r(de).toRgb();return Q.r=c(0,h(255,Q.r-m(255*-(Le/100)))),Q.g=c(0,h(255,Q.g-m(255*-(Le/100)))),Q.b=c(0,h(255,Q.b-m(255*-(Le/100)))),r(Q)}function C(de,Le){Le=Le===0?0:Le||10;var Q=r(de).toHsl();return Q.l-=Le/100,Q.l=K(Q.l),r(Q)}function w(de,Le){var Q=r(de).toHsl(),ce=(Q.h+Le)%360;return Q.h=ce<0?360+ce:ce,r(Q)}function b(de){var Le=r(de).toHsl();return Le.h=(Le.h+180)%360,r(Le)}function _(de){var Le=r(de).toHsl(),Q=Le.h;return[r(de),r({h:(Q+120)%360,s:Le.s,l:Le.l}),r({h:(Q+240)%360,s:Le.s,l:Le.l})]}function O(de){var Le=r(de).toHsl(),Q=Le.h;return[r(de),r({h:(Q+90)%360,s:Le.s,l:Le.l}),r({h:(Q+180)%360,s:Le.s,l:Le.l}),r({h:(Q+270)%360,s:Le.s,l:Le.l})]}function L(de){var Le=r(de).toHsl(),Q=Le.h;return[r(de),r({h:(Q+72)%360,s:Le.s,l:Le.l}),r({h:(Q+216)%360,s:Le.s,l:Le.l})]}function D(de,Le,Q){Le=Le||6,Q=Q||30;var ce=r(de).toHsl(),Ke=360/Q,ee=[r(de)];for(ce.h=(ce.h-(Ke*Le>>1)+720)%360;--Le;)ce.h=(ce.h+Ke)%360,ee.push(r(ce));return ee}function N(de,Le){Le=Le||6;for(var Q=r(de).toHsv(),ce=Q.h,Ke=Q.s,ee=Q.v,X=[],G=1/Le;Le--;)X.push(r({h:ce,s:Ke,v:ee})),ee=(ee+G)%1;return X}r.mix=function(de,Le,Q){Q=Q===0?0:Q||50;var ce=r(de).toRgb(),Ke=r(Le).toRgb(),ee=Q/100,X={r:(Ke.r-ce.r)*ee+ce.r,g:(Ke.g-ce.g)*ee+ce.g,b:(Ke.b-ce.b)*ee+ce.b,a:(Ke.a-ce.a)*ee+ce.a};return r(X)},r.readability=function(de,Le){var Q=r(de),ce=r(Le);return(E.max(Q.getLuminance(),ce.getLuminance())+.05)/(E.min(Q.getLuminance(),ce.getLuminance())+.05)},r.isReadable=function(de,Le,Q){var ce=r.readability(de,Le),Ke,ee;ee=!1,Ke=Ne(Q);switch(Ke.level+Ke.size){case"AAsmall":case"AAAlarge":ee=ce>=4.5;break;case"AAlarge":ee=ce>=3;break;case"AAAsmall":ee=ce>=7;break}return ee},r.mostReadable=function(de,Le,Q){var ce=null,Ke=0,ee,X,G,Z;Q=Q||{},X=Q.includeFallbackColors,G=Q.level,Z=Q.size;for(var ve=0;ve<Le.length;ve++)ee=r.readability(de,Le[ve]),ee>Ke&&(Ke=ee,ce=r(Le[ve]));return r.isReadable(de,ce,{level:G,size:Z})||!X?ce:(Q.includeFallbackColors=!1,r.mostReadable(de,["#fff","#000"],Q))};var M=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=r.hexNames=R(M);function R(de){var Le={};for(var Q in de)de.hasOwnProperty(Q)&&(Le[de[Q]]=Q);return Le}function j(de){return de=parseFloat(de),(isNaN(de)||de<0||de>1)&&(de=1),de}function B(de,Le){z(de)&&(de="100%");var Q=V(de);return de=h(Le,c(0,parseFloat(de))),Q&&(de=parseInt(de*Le,10)/100),E.abs(de-Le)<1e-6?1:de%Le/parseFloat(Le)}function K(de){return h(1,c(0,de))}function U(de){return parseInt(de,16)}function z(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1}function V(de){return typeof de=="string"&&de.indexOf("%")!=-1}function Y(de){return de.length==1?"0"+de:""+de}function J(de){return de<=1&&(de=de*100+"%"),de}function se(de){return E.round(parseFloat(de)*255).toString(16)}function $(de){return U(de)/255}var ae=function(){var de="[-\\+]?\\d+%?",Le="[-\\+]?\\d*\\.\\d+%?",Q="(?:"+Le+")|(?:"+de+")",ce="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?",Ke="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?";return{CSS_UNIT:new RegExp(Q),rgb:new RegExp("rgb"+ce),rgba:new RegExp("rgba"+Ke),hsl:new RegExp("hsl"+ce),hsla:new RegExp("hsla"+Ke),hsv:new RegExp("hsv"+ce),hsva:new RegExp("hsva"+Ke),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 ge(de){return!!ae.CSS_UNIT.exec(de)}function pe(de){de=de.replace(T,"").replace(g,"").toLowerCase();var Le=!1;if(M[de])de=M[de],Le=!0;else if(de=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Q;return(Q=ae.rgb.exec(de))?{r:Q[1],g:Q[2],b:Q[3]}:(Q=ae.rgba.exec(de))?{r:Q[1],g:Q[2],b:Q[3],a:Q[4]}:(Q=ae.hsl.exec(de))?{h:Q[1],s:Q[2],l:Q[3]}:(Q=ae.hsla.exec(de))?{h:Q[1],s:Q[2],l:Q[3],a:Q[4]}:(Q=ae.hsv.exec(de))?{h:Q[1],s:Q[2],v:Q[3]}:(Q=ae.hsva.exec(de))?{h:Q[1],s:Q[2],v:Q[3],a:Q[4]}:(Q=ae.hex8.exec(de))?{r:U(Q[1]),g:U(Q[2]),b:U(Q[3]),a:$(Q[4]),format:Le?"name":"hex8"}:(Q=ae.hex6.exec(de))?{r:U(Q[1]),g:U(Q[2]),b:U(Q[3]),format:Le?"name":"hex"}:(Q=ae.hex4.exec(de))?{r:U(Q[1]+""+Q[1]),g:U(Q[2]+""+Q[2]),b:U(Q[3]+""+Q[3]),a:$(Q[4]+""+Q[4]),format:Le?"name":"hex8"}:(Q=ae.hex3.exec(de))?{r:U(Q[1]+""+Q[1]),g:U(Q[2]+""+Q[2]),b:U(Q[3]+""+Q[3]),format:Le?"name":"hex"}:!1}function Ne(de){var Le,Q;return de=de||{level:"AA",size:"small"},Le=(de.level||"AA").toUpperCase(),Q=(de.size||"small").toLowerCase(),Le!=="AA"&&Le!=="AAA"&&(Le="AA"),Q!=="small"&&Q!=="large"&&(Q="small"),{level:Le,size:Q}}H.exports?H.exports=r:!(I=function(){return r}.call(k,d,k,H),I!==void 0&&(H.exports=I))})(Math)},Zvw2:function(H,k,d){var I=d("bYtY"),E=d("hM6l"),T=function(S,m,h,c,a){E.call(this,S,m,h),this.type=c||"value",this.position=a||"bottom",this.orient=null};T.prototype={constructor:T,model:null,isHorizontal:function(){var S=this.position;return S==="top"||S==="bottom"},pointToData:function(S,m){return this.coordinateSystem.pointToData(S,m)[0]},toGlobalCoord:null,toLocalCoord:null},I.inherits(T,E);var g=T;H.exports=g},a7Wl:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},a9QJ:function(H,k){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function I(E,T){if(E==="world"){var g=d[T.name];if(g){var S=T.center;S[0]=g[0],S[1]=g[1]}}}H.exports=I},aHsQ:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("6D9b"),g=d.n(T)},aKvl:function(H,k,d){var I=d("Sj9i"),E=I.quadraticProjectPoint;function T(g,S,m,h,c,a,r,i,n){if(r===0)return!1;var t=r;if(n>S+t&&n>h+t&&n>a+t||n<S-t&&n<h-t&&n<a-t||i>g+t&&i>m+t&&i>c+t||i<g-t&&i<m-t&&i<c-t)return!1;var s=E(g,S,m,h,c,a,i,n,null);return s<=t/2}k.containStroke=T},aTJb:function(H,k,d){var I=d("bLfw");I.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(H,k,d){var I=d("3gBT"),E=d("ItGF"),T=d("bYtY"),g=d("0s+r"),S=d("r6Bn"),m=d("7SHv"),h=d("MKOG"),c=d("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=!E.canvasSupported,r={canvas:m},i={},n="4.3.1";function t(f,p){var v=new u(I(),f,p);return i[v.id]=v,v}function s(f){if(f)f.dispose();else{for(var p in i)i.hasOwnProperty(p)&&i[p].dispose();i={}}return this}function e(f){return i[f]}function o(f,p){r[f]=p}function l(f){delete i[f]}var u=function(p,v,A){A=A||{},this.dom=v,this.id=p;var y=this,x=new S,C=A.renderer;if(a){if(!r.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");C="vml"}else(!C||!r[C])&&(C="canvas");var w=new r[C](v,x,A,p);this.storage=x,this.painter=w;var b=!E.node&&!E.worker?new c(w.getViewportRoot(),w.root):null;this.handler=new g(x,w,b,w.root),this.animation=new h({stage:{update:T.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var _=x.delFromStorage,O=x.addToStorage;x.delFromStorage=function(L){_.call(x,L),L&&L.removeSelfFromZr(y)},x.addToStorage=function(L){O.call(x,L),L.addSelfToZr(y)}};u.prototype={constructor:u,getId:function(){return this.id},add:function(p){this.storage.addRoot(p),this._needsRefresh=!0},remove:function(p){this.storage.delRoot(p),this._needsRefresh=!0},configLayer:function(p,v){this.painter.configLayer&&this.painter.configLayer(p,v),this._needsRefresh=!0},setBackgroundColor:function(p){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(p),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 p;this._needsRefresh&&(p=!0,this.refreshImmediately()),this._needsRefreshHover&&(p=!0,this.refreshHoverImmediately()),p&&this.trigger("rendered")},addHover:function(p,v){if(this.painter.addHover){var A=this.painter.addHover(p,v);return this.refreshHover(),A}},removeHover:function(p){this.painter.removeHover&&(this.painter.removeHover(p),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(p){p=p||{},this.painter.resize(p.width,p.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(p,v){return this.painter.pathToImage(p,v)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,v){return this.handler.findHover(p,v)},on:function(p,v,A){this.handler.on(p,v,A)},off:function(p,v){this.handler.off(p,v)},trigger:function(p,v){this.handler.trigger(p,v)},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,l(this.id)}},k.version=n,k.init=t,k.dispose=s,k.getInstance=e,k.registerPainter=o},aX7z:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("GMDS"),S=d("ieMj"),m=d("4NgU"),h=d("OELB"),c=d("nVfU"),a=c.prepareLayoutBarSeries,r=c.makeColumnLayout,i=c.retrieveColumnLayout,n=d("mFDi");d("IWp7"),d("jCoz");function t(x,C){var w=x.type,b=C.getMin(),_=C.getMax(),O=x.getExtent(),L,D,N;w==="ordinal"?L=C.getCategories().length:(D=C.get("boundaryGap"),T.isArray(D)||(D=[D||0,D||0]),typeof D[0]=="boolean"&&(D=[0,0]),D[0]=h.parsePercent(D[0],1),D[1]=h.parsePercent(D[1],1),N=O[1]-O[0]||Math.abs(O[0])),b==="dataMin"?b=O[0]:typeof b=="function"&&(b=b({min:O[0],max:O[1]})),_==="dataMax"?_=O[1]:typeof _=="function"&&(_=_({min:O[0],max:O[1]}));var M=b!=null,F=_!=null;b==null&&(b=w==="ordinal"?L?0:NaN:O[0]-D[0]*N),_==null&&(_=w==="ordinal"?L?L-1:NaN:O[1]+D[1]*N),(b==null||!isFinite(b))&&(b=NaN),(_==null||!isFinite(_))&&(_=NaN),x.setBlank(T.eqNaN(b)||T.eqNaN(_)||w==="ordinal"&&!x.getOrdinalMeta().categories.length),C.getNeedCrossZero()&&(b>0&&_>0&&!M&&(b=0),b<0&&_<0&&!F&&(_=0));var R=C.ecModel;if(R&&w==="time"){var j=a("bar",R),B;if(T.each(j,function(z){B|=z.getBaseAxis()===C.axis}),B){var K=r(j),U=s(b,_,C,K);b=U.min,_=U.max}}return{extent:[b,_],fixMin:M,fixMax:F}}function s(x,C,w,b){var _=w.axis.getExtent(),O=_[1]-_[0],L=i(b,w.axis);if(L===void 0)return{min:x,max:C};var D=Infinity;T.each(L,function(B){D=Math.min(B.offset,D)});var N=-Infinity;T.each(L,function(B){N=Math.max(B.offset+B.width,N)}),D=Math.abs(D),N=Math.abs(N);var M=D+N,F=C-x,R=1-(D+N)/O,j=F/R-F;return C+=j*(N/M),x-=j*(D/M),{min:x,max:C}}function e(x,C){var w=t(x,C),b=w.extent,_=C.get("splitNumber");x.type==="log"&&(x.base=C.get("logBase"));var O=x.type;x.setExtent(b[0],b[1]),x.niceExtent({splitNumber:_,fixMin:w.fixMin,fixMax:w.fixMax,minInterval:O==="interval"||O==="time"?C.get("minInterval"):null,maxInterval:O==="interval"||O==="time"?C.get("maxInterval"):null});var L=C.get("interval");L!=null&&(x.setInterval&&x.setInterval(L))}function o(x,C){if(C=C||x.get("type"),C)switch(C){case"category":return new g(x.getOrdinalMeta?x.getOrdinalMeta():x.getCategories(),[Infinity,-Infinity]);case"value":return new S;default:return(m.getClass(C)||S).create(x)}}function l(x){var C=x.scale.getExtent(),w=C[0],b=C[1];return!(w>0&&b>0||w<0&&b<0)}function u(x){var C=x.getLabelModel().get("formatter"),w=x.type==="category"?x.scale.getExtent()[0]:null;return typeof C=="string"?(C=function(b){return function(_){return _=x.scale.getLabel(_),b.replace("{value}",_!=null?_:"")}}(C),C):typeof C=="function"?function(b,_){return w!=null&&(_=b-w),C(f(x,b),_)}:function(b){return x.scale.getLabel(b)}}function f(x,C){return x.type==="category"?x.scale.getLabel(C):C}function p(x){var C=x.model,w=x.scale;if(!C.get("axisLabel.show")||w.isBlank())return;var b=x.type==="category",_,O,L=w.getExtent();b?O=w.count():(_=w.getTicks(),O=_.length);var D=x.getLabelModel(),N=u(x),M,F=1;O>40&&(F=Math.ceil(O/40));for(var R=0;R<O;R+=F){var j=_?_[R]:L[0]+R,B=N(j),K=D.getTextRect(B),U=v(K,D.get("rotate")||0);M?M.union(U):M=U}return M}function v(x,C){var w=C*Math.PI/180,b=x.plain(),_=b.width,O=b.height,L=_*Math.cos(w)+O*Math.sin(w),D=_*Math.sin(w)+O*Math.cos(w),N=new n(b.x,b.y,L,D);return N}function A(x){var C=x.get("interval");return C==null?"auto":C}function y(x){return x.type==="category"&&A(x.getLabelModel())===0}k.getScaleExtent=t,k.niceScaleExtent=e,k.createScaleByModel=o,k.ifAxisCrossZero=l,k.makeLabelFormatter=u,k.getAxisRawValue=f,k.estimateLabelUnionRect=p,k.getOptionCategoryInterval=A,k.shouldShowAllLabels=y},"af/B":function(H,k,d){var I=d("bYtY"),E=I.each,T=I.map,g=I.isFunction,S=I.createHashMap,m=I.noop,h=d("9H2F"),c=h.createTask,a=d("iRjW"),r=a.getUID,i=d("fmMI"),n=d("hD7B"),t=d("4NO4"),s=t.normalizeToArray;function e(B,K,U,z){this.ecInstance=B,this.api=K,this.unfinished;var U=this._dataProcessorHandlers=U.slice(),z=this._visualHandlers=z.slice();this._allHandlers=U.concat(z),this._stageTaskMap=S()}var o=e.prototype;o.restoreData=function(B,K){B.restoreData(K),this._stageTaskMap.each(function(U){var z=U.overallTask;z&&z.dirty()})},o.getPerformArgs=function(B,K){if(!B.__pipeline)return;var U=this._pipelineMap.get(B.__pipeline.id),z=U.context,V=!K&&U.progressiveEnabled&&(!z||z.progressiveRender)&&B.__idxInPipeline>U.blockIndex,Y=V?U.step:null,J=z&&z.modDataCount,se=J!=null?Math.ceil(J/Y):null;return{step:Y,modBy:se,modDataCount:J}},o.getPipeline=function(B){return this._pipelineMap.get(B)},o.updateStreamModes=function(B,K){var U=this._pipelineMap.get(B.uid),z=B.getData(),V=z.count(),Y=U.progressiveEnabled&&K.incrementalPrepareRender&&V>=U.threshold,J=B.get("large")&&V>=B.get("largeThreshold"),se=B.get("progressiveChunkMode")==="mod"?V:null;B.pipelineContext=U.context={progressiveRender:Y,modDataCount:se,large:J}},o.restorePipelines=function(B){var K=this,U=K._pipelineMap=S();B.eachSeries(function(z){var V=z.getProgressive(),Y=z.uid;U.set(Y,{id:Y,head:null,tail:null,threshold:z.getProgressiveThreshold(),progressiveEnabled:V&&!(z.preventIncremental&&z.preventIncremental()),blockIndex:-1,step:Math.round(V||700),count:0}),L(K,z,z.dataTask)})},o.prepareStageTasks=function(){var B=this._stageTaskMap,K=this.ecInstance.getModel(),U=this.api;E(this._allHandlers,function(z){var V=B.get(z.uid)||B.set(z.uid,[]);z.reset&&f(this,z,V,K,U),z.overallReset&&p(this,z,V,K,U)},this)},o.prepareView=function(B,K,U,z){var V=B.renderTask,Y=V.context;Y.model=K,Y.ecModel=U,Y.api=z,V.__block=!B.incrementalPrepareRender,L(this,K,V)},o.performDataProcessorTasks=function(B,K){l(this,this._dataProcessorHandlers,B,K,{block:!0})},o.performVisualTasks=function(B,K,U){l(this,this._visualHandlers,B,K,U)};function l(B,K,U,z,V){V=V||{};var Y;E(K,function(se,$){if(V.visualType&&V.visualType!==se.visualType)return;var ae=B._stageTaskMap.get(se.uid),ge=ae.seriesTaskMap,pe=ae.overallTask;if(pe){var Ne,de=pe.agentStubMap;de.each(function(Q){J(V,Q)&&(Q.dirty(),Ne=!0)}),Ne&&pe.dirty(),u(pe,z);var Le=B.getPerformArgs(pe,V.block);de.each(function(Q){Q.perform(Le)}),Y|=pe.perform(Le)}else ge&&ge.each(function(Q,ce){J(V,Q)&&Q.dirty();var Ke=B.getPerformArgs(Q,V.block);Ke.skip=!se.performRawSeries&&U.isSeriesFiltered(Q.context.model),u(Q,z),Y|=Q.perform(Ke)})});function J(se,$){return se.setDirty&&(!se.dirtyMap||se.dirtyMap.get($.__pipeline.id))}B.unfinished|=Y}o.performSeriesTasks=function(B){var K;B.eachSeries(function(U){K|=U.dataTask.perform()}),this.unfinished|=K},o.plan=function(){this._pipelineMap.each(function(B){var K=B.tail;do{if(K.__block){B.blockIndex=K.__idxInPipeline;break}K=K.getUpstream()}while(K)})};var u=o.updatePayload=function(B,K){K!=="remain"&&(B.context.payload=K)};function f(B,K,U,z,V){var Y=U.seriesTaskMap||(U.seriesTaskMap=S()),J=K.seriesType,se=K.getTargetSeries;K.createOnAllSeries?z.eachRawSeries($):J?z.eachRawSeriesByType(J,$):se&&se(z,V).each($);function $(ge){var pe=ge.uid,Ne=Y.get(pe)||Y.set(pe,c({plan:C,reset:w,count:O}));Ne.context={model:ge,ecModel:z,api:V,useClearVisual:K.isVisual&&!K.isLayout,plan:K.plan,reset:K.reset,scheduler:B},L(B,ge,Ne)}var ae=B._pipelineMap;Y.each(function(ge,pe){ae.get(pe)||(ge.dispose(),Y.removeKey(pe))})}function p(B,K,U,z,V){var Y=U.overallTask=U.overallTask||c({reset:v});Y.context={ecModel:z,api:V,overallReset:K.overallReset,scheduler:B};var J=Y.agentStubMap=Y.agentStubMap||S(),se=K.seriesType,$=K.getTargetSeries,ae=!0,ge=K.modifyOutputEnd;se?z.eachRawSeriesByType(se,pe):$?$(z,V).each(pe):(ae=!1,E(z.getSeries(),pe));function pe(de){var Le=de.uid,Q=J.get(Le);Q||(Q=J.set(Le,c({reset:A,onDirty:x})),Y.dirty()),Q.context={model:de,overallProgress:ae,modifyOutputEnd:ge},Q.agent=Y,Q.__block=ae,L(B,de,Q)}var Ne=B._pipelineMap;J.each(function(de,Le){Ne.get(Le)||(de.dispose(),Y.dirty(),J.removeKey(Le))})}function v(B){B.overallReset(B.ecModel,B.api,B.payload)}function A(B,K){return B.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function C(B){return B.plan&&B.plan(B.model,B.ecModel,B.api,B.payload)}function w(B){B.useClearVisual&&B.data.clearAllVisual();var K=B.resetDefines=s(B.reset(B.model,B.ecModel,B.api,B.payload));return K.length>1?T(K,function(U,z){return _(z)}):b}var b=_(0);function _(B){return function(K,U){var z=U.data,V=U.resetDefines[B];if(V&&V.dataEach)for(var Y=K.start;Y<K.end;Y++)V.dataEach(z,Y);else V&&V.progress&&V.progress(K,z)}}function O(B){return B.data.count()}function L(B,K,U){var z=K.uid,V=B._pipelineMap.get(z);!V.head&&(V.head=U),V.tail&&V.tail.pipe(U),V.tail=U,U.__idxInPipeline=V.count++,U.__pipeline=V}e.wrapStageHandler=function(B,K){return g(B)&&(B={overallReset:B,seriesType:D(B)}),B.uid=r("stageHandler"),K&&(B.visualType=K),B};function D(B){F=null;try{B(N,M)}catch(K){}return F}var N={},M={},F;R(N,i),R(M,n),N.eachSeriesByType=N.eachRawSeriesByType=function(B){F=B},N.eachComponent=function(B){B.mainType==="series"&&B.subType&&(F=B.subType)};function R(B,K){for(var U in K.prototype)B[U]=m}var j=e;H.exports=j},akwb:function(H,k,d){var I=d("RSch"),E=d("bYtY"),T=d("D9ME"),g=d("QBsz");function S(c,a,r){T.call(this,c,a,r),this._lastFrame=0,this._lastFramePercent=0}var m=S.prototype;m.createLine=function(c,a,r){return new I(c,a,r)},m.updateAnimationPoints=function(c,a){this._points=a;for(var r=[0],i=0,n=1;n<a.length;n++){var t=a[n-1],s=a[n];i+=g.dist(t,s),r.push(i)}if(i===0)return;for(var n=0;n<r.length;n++)r[n]/=i;this._offsets=r,this._length=i},m.getLineLength=function(c){return this._length},m.updateSymbolPosition=function(c){var a=c.__t,r=this._points,i=this._offsets,n=r.length;if(!i)return;var t=this._lastFrame,s;if(a<this._lastFramePercent){var e=Math.min(t+1,n-1);for(s=e;s>=0&&!(i[s]<=a);s--);s=Math.min(s,n-2)}else{for(var s=t;s<n&&!(i[s]>a);s++);s=Math.min(s-1,n-2)}g.lerp(c.position,r[s],r[s+1],(a-i[s])/(i[s+1]-i[s]));var o=r[s+1][0]-r[s][0],l=r[s+1][1]-r[s][1];c.rotation=-Math.atan2(l,o)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=a,c.ignore=!1},E.inherits(S,T);var h=S;H.exports=h},apAg:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("bsht")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="SearchOutlined";var c=g.forwardRef(h);k.default=c},as94:function(H,k,d){var I=d("7aKB"),E=d("3LNs"),T=d("IwbS"),g=d("/y7N"),S=d("Fofx"),m=d("+rIm"),h=d("Znkb"),c=E.extend({makeElOption:function(n,t,s,e,o){var l=s.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=l.polar,f=u.getOtherAxis(l),p=f.getExtent(),v;v=l["dataTo"+I.capitalFirst(l.dim)](t);var A=e.get("type");if(A&&A!=="none"){var y=g.buildElStyle(e),x=r[A](l,u,v,p,y);x.style=y,n.graphicKey=x.type,n.pointer=x}var C=e.get("label.margin"),w=a(t,s,e,u,C);g.buildLabelElOption(n,s,e,o,w)}});function a(n,t,s,e,o){var l=t.axis,u=l.dataToCoord(n),f=e.getAngleAxis().getExtent()[0];f=f/180*Math.PI;var p=e.getRadiusAxis().getExtent(),v,A,y;if(l.dim==="radius"){var x=S.create();S.rotate(x,x,f),S.translate(x,x,[e.cx,e.cy]),v=T.applyTransform([u,-o],x);var C=t.getModel("axisLabel").get("rotate")||0,w=m.innerTextLayout(f,C*Math.PI/180,-1);A=w.textAlign,y=w.textVerticalAlign}else{var b=p[1];v=e.coordToPoint([b+o,u]);var _=e.cx,O=e.cy;A=Math.abs(v[0]-_)/b<.3?"center":v[0]>_?"left":"right",y=Math.abs(v[1]-O)/b<.3?"middle":v[1]>O?"top":"bottom"}return{position:v,align:A,verticalAlign:y}}var r={line:function(n,t,s,e,o){return n.dim==="angle"?{type:"Line",shape:g.makeLineShape(t.coordToPoint([e[0],s]),t.coordToPoint([e[1],s]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:s}}},shadow:function(n,t,s,e,o){var l=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:g.makeSectorShape(t.cx,t.cy,e[0],e[1],(-s-l/2)*u,(-s+l/2)*u)}:{type:"Sector",shape:g.makeSectorShape(t.cx,t.cy,s-l/2,s+l/2,0,Math.PI*2)}}};h.registerAxisPointerClass("PolarAxisPointer",c);var i=c;H.exports=i},b56q:function(H,k,d){},b80e:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("gKaM")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="DoubleLeftOutlined";var c=g.forwardRef(h);k.default=c},b9oc:function(H,k,d){var I=d("bYtY"),E=I.each,T="\0_ec_hist_store";function g(a,r){var i=c(a);E(r,function(n,t){for(var s=i.length-1;s>=0;s--){var e=i[s];if(e[t])break}if(s<0){var o=a.queryComponents({mainType:"dataZoom",subType:"select",id:t})[0];if(o){var l=o.getPercentRange();i[0][t]={dataZoomId:t,start:l[0],end:l[1]}}}}),i.push(r)}function S(a){var r=c(a),i=r[r.length-1];r.length>1&&r.pop();var n={};return E(i,function(t,s){for(var e=r.length-1;e>=0;e--){var t=r[e][s];if(t){n[s]=t;break}}}),n}function m(a){a[T]=null}function h(a){return c(a).length}function c(a){var r=a[T];return r||(r=a[T]=[{}]),r}k.push=g,k.pop=S,k.clear=m,k.count=h},bBKM:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("+rIm"),m=d("IwbS"),h=["axisLine","axisTickLabel","axisName"],c=T.extendComponentView({type:"radar",render:function(a,r,i){var n=this.group;n.removeAll(),this._buildAxes(a),this._buildSplitLineAndArea(a)},_buildAxes:function(a){var r=a.coordinateSystem,i=r.getIndicatorAxes(),n=g.map(i,function(t){var s=new S(t.model,{position:[r.cx,r.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});g.each(n,function(t){g.each(h,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(a){var r=a.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=a.get("shape"),t=a.getModel("splitLine"),s=a.getModel("splitArea"),e=t.getModel("lineStyle"),o=s.getModel("areaStyle"),l=t.get("show"),u=s.get("show"),f=e.get("color"),p=o.get("color");f=g.isArray(f)?f:[f],p=g.isArray(p)?p:[p];var v=[],A=[];function y(j,B,K){var U=K%B.length;return j[U]=j[U]||[],U}if(n==="circle")for(var x=i[0].getTicksCoords(),C=r.cx,w=r.cy,b=0;b<x.length;b++){if(l){var _=y(v,f,b);v[_].push(new m.Circle({shape:{cx:C,cy:w,r:x[b].coord}}))}if(u&&b<x.length-1){var _=y(A,p,b);A[_].push(new m.Ring({shape:{cx:C,cy:w,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var O,L=g.map(i,function(j,B){var K=j.getTicksCoords();return O=O==null?K.length-1:Math.min(K.length-1,O),g.map(K,function(U){return r.coordToPoint(U.coord,B)})}),D=[],b=0;b<=O;b++){for(var N=[],M=0;M<i.length;M++)N.push(L[M][b]);if(N[0]&&N.push(N[0].slice()),l){var _=y(v,f,b);v[_].push(new m.Polyline({shape:{points:N}}))}if(u&&D){var _=y(A,p,b-1);A[_].push(new m.Polygon({shape:{points:N.concat(D)}}))}D=N.slice().reverse()}var F=e.getLineStyle(),R=o.getAreaStyle();g.each(A,function(j,B){this.group.add(m.mergePath(j,{style:g.defaults({stroke:"none",fill:p[B%p.length]},R),silent:!0}))},this),g.each(v,function(j,B){this.group.add(m.mergePath(j,{style:g.defaults({fill:"none",stroke:f[B%f.length]},F),silent:!0}))},this)}});H.exports=c},bBL8:function(H,k,d){var I=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var E=d("UnoB"),T=d("cbJ4"),g=d("0/Rx");I.registerLayout(E),I.registerVisual(T),I.registerProcessor(g("themeRiver"))},bE4E:function(H,k,d){},bE4q:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("RIqP"),m=d.n(S),h=d("q1tI"),c=d("TSYQ"),a=d.n(c),r=d("Zm9Q"),i=d("HQEm"),n=d.n(i),t=d("XBQK"),s=d("H84U"),e=function(D,N){var M={};for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&N.indexOf(F)<0&&(M[F]=D[F]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(D);R<F.length;R++)N.indexOf(F[R])<0&&Object.prototype.propertyIsEnumerable.call(D,F[R])&&(M[F[R]]=D[F[R]]);return M},o=function(N){var M=N.prefixCls,F=N.separator,R=F===void 0?"/":F,j=N.children,B=N.overlay,K=N.dropdownProps,U=e(N,["prefixCls","separator","children","overlay","dropdownProps"]),z=h.useContext(s.b),V=z.getPrefixCls,Y=V("breadcrumb",M),J=function(ae){return B?h.createElement(t.a,E()({overlay:B,placement:"bottomCenter"},K),h.createElement("span",{className:"".concat(Y,"-overlay-link")},ae,h.createElement(n.a,null))):ae},se;return"href"in U?se=h.createElement("a",E()({className:"".concat(Y,"-link")},U),j):se=h.createElement("span",E()({className:"".concat(Y,"-link")},U),j),se=J(se),j?h.createElement("span",null,se,R&&R!==""&&h.createElement("span",{className:"".concat(Y,"-separator")},R)):null};o.__ANT_BREADCRUMB_ITEM=!0;var l=o,u=function(N){var M=N.children,F=h.useContext(s.b),R=F.getPrefixCls,j=R("breadcrumb");return h.createElement("span",{className:"".concat(j,"-separator")},M||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var f=u,p=d("BvKs"),v=d("uaoM"),A=d("0n0R"),y=function(D,N){var M={};for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&N.indexOf(F)<0&&(M[F]=D[F]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(D);R<F.length;R++)N.indexOf(F[R])<0&&Object.prototype.propertyIsEnumerable.call(D,F[R])&&(M[F[R]]=D[F[R]]);return M};function x(D,N){if(!D.breadcrumbName)return null;var M=Object.keys(N).join("|"),F=D.breadcrumbName.replace(new RegExp(":(".concat(M,")"),"g"),function(R,j){return N[j]||R});return F}function C(D,N,M,F){var R=M.indexOf(D)===M.length-1,j=x(D,N);return R?h.createElement("span",null,j):h.createElement("a",{href:"#/".concat(F.join("/"))},j)}var w=function(N,M){return N=(N||"").replace(/^\//,""),Object.keys(M).forEach(function(F){N=N.replace(":".concat(F),M[F])}),N},b=function(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",F=arguments.length>2?arguments[2]:void 0,R=m()(N),j=w(M,F);return j&&R.push(j),R},_=function(N){var M=N.prefixCls,F=N.separator,R=F===void 0?"/":F,j=N.style,B=N.className,K=N.routes,U=N.children,z=N.itemRender,V=z===void 0?C:z,Y=N.params,J=Y===void 0?{}:Y,se=y(N,["prefixCls","separator","style","className","routes","children","itemRender","params"]),$=h.useContext(s.b),ae=$.getPrefixCls,ge=$.direction,pe,Ne=ae("breadcrumb",M);if(K&&K.length>0){var de=[];pe=K.map(function(Q){var ce=w(Q.path,J);ce&&de.push(ce);var Ke;return Q.children&&Q.children.length&&(Ke=h.createElement(p.a,null,Q.children.map(function(ee){return h.createElement(p.a.Item,{key:ee.path||ee.breadcrumbName},V(ee,J,K,b(de,ee.path,J)))}))),h.createElement(l,{overlay:Ke,separator:R,key:ce||Q.breadcrumbName},V(Q,J,K,de))})}else U&&(pe=Object(r.a)(U).map(function(Q,ce){return Q&&(Object(v.a)(Q.type&&(Q.type.__ANT_BREADCRUMB_ITEM===!0||Q.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(A.a)(Q,{separator:R,key:ce}))}));var Le=a()(B,Ne,g()({},"".concat(Ne,"-rtl"),ge==="rtl"));return h.createElement("div",E()({className:Le,style:j},se),pe)};_.Item=l,_.Separator=f;var O=_,L=k.a=O},bKJz:function(H,k,d){},bLfw:function(H,k,d){var I=d("bYtY"),E=d("Qxkt"),T=d("iRjW"),g=d("Yl7c"),S=g.enableClassManagement,m=g.parseClassType,h=d("4NO4"),c=h.makeInner,a=d("+TT/"),r=d("3hzK"),i=c(),n=E.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,o,l,u){E.call(this,e,o,l,u),this.uid=T.getUID("ec_cpt_model")},init:function(e,o,l,u){this.mergeDefaultAndTheme(e,l)},mergeDefaultAndTheme:function(e,o){var l=this.layoutMode,u=l?a.getLayoutParams(e):{},f=o.getTheme();I.merge(e,f.get(this.mainType)),I.merge(e,this.getDefaultOption()),l&&a.mergeLayoutParam(e,u,l)},mergeOption:function(e,o){I.merge(this.option,e,!0);var l=this.layoutMode;l&&a.mergeLayoutParam(this.option,e,l)},optionUpdated:function(e,o){},getDefaultOption:function(){var e=i(this);if(!e.defaultOption){for(var o=[],l=this.constructor;l;){var u=l.prototype.defaultOption;u&&o.push(u),l=l.superClass}for(var f={},p=o.length-1;p>=0;p--)f=I.merge(f,o[p],!0);e.defaultOption=f}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});S(n,{registerWhenExtend:!0}),T.enableSubTypeDefaulter(n),T.enableTopologicalTravel(n,t);function t(e){var o=[];return I.each(n.getClassesByMainType(e),function(l){o=o.concat(l.prototype.dependencies||[])}),o=I.map(o,function(l){return m(l).main}),e!=="dataset"&&I.indexOf(o,"dataset")<=0&&o.unshift("dataset"),o}I.mixin(n,r);var s=n;H.exports=s},bMXI:function(H,k,d){var I=d("bYtY"),E=d("QBsz"),T=d("Fofx"),g=d("mFDi"),S=d("DN4a"),m=E.applyTransform;function h(){S.call(this)}I.mixin(h,S);function c(i){this.name=i,this.zoomLimit,S.call(this),this._roamTransformable=new h,this._rawTransformable=new h,this._center,this._zoom}c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(i,n,t,s){return this._rect=new g(i,n,t,s),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(i,n,t,s){this.transformTo(i,n,t,s),this._viewRect=new g(i,n,t,s)},transformTo:function(i,n,t,s){var e=this.getBoundingRect(),o=this._rawTransformable;o.transform=e.calculateTransform(new g(i,n,t,s)),o.decomposeTransform(),this._updateTransform()},setCenter:function(i){if(!i)return;this._center=i,this._updateCenterAndZoom()},setZoom:function(i){i=i||1;var n=this.zoomLimit;n&&(n.max!=null&&(i=Math.min(n.max,i)),n.min!=null&&(i=Math.max(n.min,i))),this._zoom=i,this._updateCenterAndZoom()},getDefaultCenter:function(){var i=this.getBoundingRect(),n=i.x+i.width/2,t=i.y+i.height/2;return[n,t]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var i=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,t=this.getDefaultCenter(),s=this.getCenter(),e=this.getZoom();s=E.applyTransform([],s,i),t=E.applyTransform([],t,i),n.origin=s,n.position=[t[0]-s[0],t[1]-s[1]],n.scale=[e,e],this._updateTransform()},_updateTransform:function(){var i=this._roamTransformable,n=this._rawTransformable;n.parent=i,i.updateTransform(),n.updateTransform(),T.copy(this.transform||(this.transform=[]),n.transform||T.create()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],T.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var i=this._roamTransformable.transform,n=this._rawTransformable;return{roamTransform:i?I.slice(i):T.create(),rawScale:I.slice(n.scale),rawPosition:I.slice(n.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var i=this.getBoundingRect().clone();return i.applyTransform(this.transform),i},dataToPoint:function(i,n,t){var s=n?this._rawTransform:this.transform;return t=t||[],s?m(t,i,s):E.copy(t,i)},pointToData:function(i){var n=this.invTransform;return n?m([],i,n):[i[0],i[1]]},convertToPixel:I.curry(a,"dataToPoint"),convertFromPixel:I.curry(a,"pointToData"),containPoint:function(i){return this.getViewRectAfterRoam().contain(i[0],i[1])}},I.mixin(c,S);function a(i,n,t,s){var e=t.seriesModel,o=e?e.coordinateSystem:null;return o===this?o[i](s):null}var r=c;H.exports=r},bNin:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("FBjb"),g=d("Itpr"),S=g.radialCoordinate,m=d("ProS"),h=d("4mN7"),c=d("bMXI"),a=d("Ae+d"),r=d("SgGq"),i=d("xSat"),n=i.onIrrelevantElement,t=d("Tghj"),s=t.__DEV__,e=d("OELB"),o=e.parsePercent,l=E.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(C,w){var b=w.childPoints,_=b.length,O=w.parentPoint,L=b[0],D=b[_-1];if(_===1){C.moveTo(O[0],O[1]),C.lineTo(L[0],L[1]);return}var N=w.orient,M=N==="TB"||N==="BT"?0:1,F=1-M,R=o(w.forkPosition,1),j=[];j[M]=O[M],j[F]=O[F]+(D[F]-O[F])*R,C.moveTo(O[0],O[1]),C.lineTo(j[0],j[1]),C.moveTo(L[0],L[1]),j[M]=L[M],C.lineTo(j[0],j[1]),j[M]=D[M],C.lineTo(j[0],j[1]),C.lineTo(D[0],D[1]);for(var B=1;B<_-1;B++){var K=b[B];C.moveTo(K[0],K[1]),j[M]=K[M],C.lineTo(j[0],j[1])}}}),u=m.extendChartView({type:"tree",init:function(C,w){this._oldTree,this._mainGroup=new E.Group,this._controller=new r(w.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(C,w,b,_){var O=C.getData(),L=C.layoutInfo,D=this._mainGroup,N=C.get("layout");N==="radial"?D.attr("position",[L.x+L.width/2,L.y+L.height/2]):D.attr("position",[L.x,L.y]),this._updateViewCoordSys(C,L,N),this._updateController(C,w,b);var M=this._data,F={expandAndCollapse:C.get("expandAndCollapse"),layout:N,edgeShape:C.get("edgeShape"),edgeForkPosition:C.get("edgeForkPosition"),orient:C.getOrient(),curvature:C.get("lineStyle.curveness"),symbolRotate:C.get("symbolRotate"),symbolOffset:C.get("symbolOffset"),hoverAnimation:C.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};O.diff(M).add(function(R){f(O,R)&&v(O,R,null,D,C,F)}).update(function(R,j){var B=M.getItemGraphicEl(j);if(!f(O,R)){B&&y(M,j,B,D,C,F);return}v(O,R,B,D,C,F)}).remove(function(R){var j=M.getItemGraphicEl(R);j&&y(M,R,j,D,C,F)}).execute(),this._nodeScaleRatio=C.get("nodeScaleRatio"),this._updateNodeAndLinkScale(C),F.expandAndCollapse===!0&&O.eachItemGraphicEl(function(R,j){R.off("click").on("click",function(){b.dispatchAction({type:"treeExpandAndCollapse",seriesId:C.id,dataIndex:j})})}),this._data=O},_updateViewCoordSys:function(C){var w=C.getData(),b=[];w.each(function(M){var F=w.getItemLayout(M);F&&!isNaN(F.x)&&!isNaN(F.y)&&b.push([+F.x,+F.y])});var _=[],O=[];h.fromPoints(b,_,O);var L=this._min,D=this._max;O[0]-_[0]===0&&(_[0]=L?L[0]:_[0]-1,O[0]=D?D[0]:O[0]+1),O[1]-_[1]===0&&(_[1]=L?L[1]:_[1]-1,O[1]=D?D[1]:O[1]+1);var N=C.coordinateSystem=new c;N.zoomLimit=C.get("scaleLimit"),N.setBoundingRect(_[0],_[1],O[0]-_[0],O[1]-_[1]),N.setCenter(C.get("center")),N.setZoom(C.get("zoom")),this.group.attr({position:N.position,scale:N.scale}),this._viewCoordSys=N,this._min=_,this._max=O},_updateController:function(C,w,b){var _=this._controller,O=this._controllerHost,L=this.group;_.setPointerChecker(function(D,N,M){var F=L.getBoundingRect();return F.applyTransform(L.transform),F.contain(N,M)&&!n(D,b,C)}),_.enable(C.get("roam")),O.zoomLimit=C.get("scaleLimit"),O.zoom=C.coordinateSystem.getZoom(),_.off("pan").off("zoom").on("pan",function(D){a.updateViewOnPan(O,D.dx,D.dy),b.dispatchAction({seriesId:C.id,type:"treeRoam",dx:D.dx,dy:D.dy})},this).on("zoom",function(D){a.updateViewOnZoom(O,D.scale,D.originX,D.originY),b.dispatchAction({seriesId:C.id,type:"treeRoam",zoom:D.scale,originX:D.originX,originY:D.originY}),this._updateNodeAndLinkScale(C)},this)},_updateNodeAndLinkScale:function(C){var w=C.getData(),b=this._getNodeGlobalScale(C),_=[b,b];w.eachItemGraphicEl(function(O,L){O.attr("scale",_)})},_getNodeGlobalScale:function(C){var w=C.coordinateSystem;if(w.type!=="view")return 1;var b=this._nodeScaleRatio,_=w.scale,O=_&&_[0]||1,L=w.getZoom(),D=(L-1)*b+1;return D/O},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function f(C,w){var b=C.getItemLayout(w);return b&&!isNaN(b.x)&&!isNaN(b.y)&&C.getItemVisual(w,"symbol")!=="none"}function p(C,w,b){return b.itemModel=w,b.itemStyle=w.getModel("itemStyle").getItemStyle(),b.hoverItemStyle=w.getModel("emphasis.itemStyle").getItemStyle(),b.lineStyle=w.getModel("lineStyle").getLineStyle(),b.labelModel=w.getModel("label"),b.hoverLabelModel=w.getModel("emphasis.label"),C.isExpand===!1&&C.children.length!==0?b.symbolInnerColor=b.itemStyle.fill:b.symbolInnerColor="#fff",b}function v(C,w,b,_,O,L){var D=!b,N=C.tree.getNodeByDataIndex(w),M=N.getModel(),L=p(N,M,L),F=C.tree.root,R=N.parentNode===F?N:N.parentNode||N,j=C.getItemGraphicEl(R.dataIndex),B=R.getLayout(),K=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:B,U=N.getLayout();D?(b=new T(C,w,L),b.attr("position",[K.x,K.y])):b.updateData(C,w,L),b.__radialOldRawX=b.__radialRawX,b.__radialOldRawY=b.__radialRawY,b.__radialRawX=U.rawX,b.__radialRawY=U.rawY,_.add(b),C.setItemGraphicEl(w,b),E.updateProps(b,{position:[U.x,U.y]},O);var z=b.getSymbolPath();if(L.layout==="radial"){var V=F.children[0],Y=V.getLayout(),J=V.children.length,se,$;if(U.x===Y.x&&N.isExpand===!0){var ae={};ae.x=(V.children[0].getLayout().x+V.children[J-1].getLayout().x)/2,ae.y=(V.children[0].getLayout().y+V.children[J-1].getLayout().y)/2,se=Math.atan2(ae.y-Y.y,ae.x-Y.x),se<0&&(se=Math.PI*2+se),$=ae.x<Y.x,$&&(se=se-Math.PI)}else se=Math.atan2(U.y-Y.y,U.x-Y.x),se<0&&(se=Math.PI*2+se),N.children.length===0||N.children.length!==0&&N.isExpand===!1?($=U.x<Y.x,$&&(se=se-Math.PI)):($=U.x>Y.x,$||(se=se-Math.PI));var ge=$?"left":"right",pe=L.labelModel.get("rotate"),Ne=pe*(Math.PI/180);z.setStyle({textPosition:L.labelModel.get("position")||ge,textRotation:pe==null?-se:Ne,textOrigin:"center",verticalAlign:"middle"})}A(O,N,F,b,K,B,U,_,L)}function A(C,w,b,_,O,L,D,N,M){var F=M.edgeShape,R=_.__edge;if(F==="curve")w.parentNode&&w.parentNode!==b&&(R||(R=_.__edge=new E.BezierCurve({shape:x(M,O,O),style:I.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),E.updateProps(R,{shape:x(M,L,D),style:{opacity:1}},C));else if(F==="polyline"&&(M.layout==="orthogonal"&&(w!==b&&w.children&&w.children.length!==0&&w.isExpand===!0))){for(var j=w.children,B=[],K=0;K<j.length;K++){var U=j[K].getLayout();B.push([U.x,U.y])}R||(R=_.__edge=new l({shape:{parentPoint:[D.x,D.y],childPoints:[[D.x,D.y]],orient:M.orient,forkPosition:M.edgeForkPosition},style:I.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),E.updateProps(R,{shape:{parentPoint:[D.x,D.y],childPoints:B},style:{opacity:1}},C)}N.add(R)}function y(C,w,b,_,O,L){for(var D=C.tree.getNodeByDataIndex(w),N=C.tree.root,M=D.getModel(),L=p(D,M,L),F=D.parentNode===N?D:D.parentNode||D,R=L.edgeShape,j;j=F.getLayout(),j==null;)F=F.parentNode===N?F:F.parentNode||F;E.updateProps(b,{position:[j.x+1,j.y+1]},O,function(){_.remove(b),C.setItemGraphicEl(w,null)}),b.fadeOut(null,{keepLabel:!0});var B=C.getItemGraphicEl(F.dataIndex),K=B.__edge,U=b.__edge||(F.isExpand===!1||F.children.length===1?K:void 0),R=L.edgeShape;U&&(R==="curve"?E.updateProps(U,{shape:x(L,j,j),style:{opacity:0}},O,function(){_.remove(U)}):R==="polyline"&&L.layout==="orthogonal"&&E.updateProps(U,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},O,function(){_.remove(U)}))}function x(C,w,b){var _,O,L,D,N=C.orient,M,F,R,j;if(C.layout==="radial"){M=w.rawX,R=w.rawY,F=b.rawX,j=b.rawY;var B=S(M,R),K=S(M,R+(j-R)*C.curvature),U=S(F,j+(R-j)*C.curvature),z=S(F,j);return{x1:B.x,y1:B.y,x2:z.x,y2:z.y,cpx1:K.x,cpy1:K.y,cpx2:U.x,cpy2:U.y}}else M=w.x,R=w.y,F=b.x,j=b.y,(N==="LR"||N==="RL")&&(_=M+(F-M)*C.curvature,O=R,L=F+(M-F)*C.curvature,D=j),(N==="TB"||N==="BT")&&(_=M,O=R+(j-R)*C.curvature,L=F,D=j+(R-j)*C.curvature);return{x1:M,y1:R,x2:F,y2:j,cpx1:_,cpy1:O,cpx2:L,cpy2:D}}H.exports=u},bQjk:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return function(E){var T=I,g=T.lib,S=g.CipherParams,m=T.enc,h=m.Hex,c=T.format,a=c.Hex={stringify:function(i){return i.ciphertext.toString(h)},parse:function(i){var n=h.parse(i);return S.create({ciphertext:n})}}}(),I.format.Hex})},bT9E:function(H,k,d){"use strict";d.d(k,"a",function(){return E});var I=d("VTBJ");function E(T,g){var S=Object(I.a)({},T);return Array.isArray(g)&&g.forEach(function(m){delete S[m]}),S}},bX4T:function(H,k,d){"use strict";d.d(k,"a",function(){return c});var I=d("VTBJ"),E=`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`,T=`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`,g="".concat(E," ").concat(T).split(/[\s\n]+/),S="aria-",m="data-";function h(a,r){return a.indexOf(r)===0}function c(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i;r===!1?i={aria:!0,data:!0,attr:!0}:r===!0?i={aria:!0}:i=Object(I.a)({},r);var n={};return Object.keys(a).forEach(function(t){(i.aria&&(t==="role"||h(t,S))||i.data&&h(t,m)||i.attr&&g.includes(t))&&(n[t]=a[t])}),n}},bYtY:function(H,k){var d={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},I={"[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},E=Object.prototype.toString,T=Array.prototype,g=T.forEach,S=T.filter,m=T.slice,h=T.map,c=T.reduce,a={};function r(Q,ce){Q==="createCanvas"&&(l=null),a[Q]=ce}function i(Q){if(Q==null||typeof Q!="object")return Q;var ce=Q,Ke=E.call(Q);if(Ke==="[object Array]"){if(!ge(Q)){ce=[];for(var ee=0,X=Q.length;ee<X;ee++)ce[ee]=i(Q[ee])}}else if(I[Ke]){if(!ge(Q)){var G=Q.constructor;if(Q.constructor.from)ce=G.from(Q);else{ce=new G(Q.length);for(var ee=0,X=Q.length;ee<X;ee++)ce[ee]=i(Q[ee])}}}else if(!d[Ke]&&!ge(Q)&&!j(Q)){ce={};for(var Z in Q)Q.hasOwnProperty(Z)&&(ce[Z]=i(Q[Z]))}return ce}function n(Q,ce,Ke){if(!M(ce)||!M(Q))return Ke?i(ce):Q;for(var ee in ce)if(ce.hasOwnProperty(ee)){var X=Q[ee],G=ce[ee];M(G)&&M(X)&&!L(G)&&!L(X)&&!j(G)&&!j(X)&&!F(G)&&!F(X)&&!ge(G)&&!ge(X)?n(X,G,Ke):(Ke||!(ee in Q))&&(Q[ee]=i(ce[ee],!0))}return Q}function t(Q,ce){for(var Ke=Q[0],ee=1,X=Q.length;ee<X;ee++)Ke=n(Ke,Q[ee],ce);return Ke}function s(Q,ce){for(var Ke in ce)ce.hasOwnProperty(Ke)&&(Q[Ke]=ce[Ke]);return Q}function e(Q,ce,Ke){for(var ee in ce)ce.hasOwnProperty(ee)&&(Ke?ce[ee]!=null:Q[ee]==null)&&(Q[ee]=ce[ee]);return Q}var o=function(){return a.createCanvas()};a.createCanvas=function(){return document.createElement("canvas")};var l;function u(){return l||(l=o().getContext("2d")),l}function f(Q,ce){if(Q){if(Q.indexOf)return Q.indexOf(ce);for(var Ke=0,ee=Q.length;Ke<ee;Ke++)if(Q[Ke]===ce)return Ke}return-1}function p(Q,ce){var Ke=Q.prototype;function ee(){}ee.prototype=ce.prototype,Q.prototype=new ee;for(var X in Ke)Ke.hasOwnProperty(X)&&(Q.prototype[X]=Ke[X]);Q.prototype.constructor=Q,Q.superClass=ce}function v(Q,ce,Ke){Q="prototype"in Q?Q.prototype:Q,ce="prototype"in ce?ce.prototype:ce,e(Q,ce,Ke)}function A(Q){return Q?typeof Q=="string"?!1:typeof Q.length=="number":void 0}function y(Q,ce,Ke){if(!(Q&&ce))return;if(Q.forEach&&Q.forEach===g)Q.forEach(ce,Ke);else if(Q.length===+Q.length)for(var ee=0,X=Q.length;ee<X;ee++)ce.call(Ke,Q[ee],ee,Q);else for(var G in Q)Q.hasOwnProperty(G)&&ce.call(Ke,Q[G],G,Q)}function x(Q,ce,Ke){if(!(Q&&ce))return;if(Q.map&&Q.map===h)return Q.map(ce,Ke);for(var ee=[],X=0,G=Q.length;X<G;X++)ee.push(ce.call(Ke,Q[X],X,Q));return ee}function C(Q,ce,Ke,ee){if(!(Q&&ce))return;if(Q.reduce&&Q.reduce===c)return Q.reduce(ce,Ke,ee);for(var X=0,G=Q.length;X<G;X++)Ke=ce.call(ee,Ke,Q[X],X,Q);return Ke}function w(Q,ce,Ke){if(!(Q&&ce))return;if(Q.filter&&Q.filter===S)return Q.filter(ce,Ke);for(var ee=[],X=0,G=Q.length;X<G;X++)ce.call(Ke,Q[X],X,Q)&&ee.push(Q[X]);return ee}function b(Q,ce,Ke){if(!(Q&&ce))return;for(var ee=0,X=Q.length;ee<X;ee++)if(ce.call(Ke,Q[ee],ee,Q))return Q[ee]}function _(Q,ce){var Ke=m.call(arguments,2);return function(){return Q.apply(ce,Ke.concat(m.call(arguments)))}}function O(Q){var ce=m.call(arguments,1);return function(){return Q.apply(this,ce.concat(m.call(arguments)))}}function L(Q){return E.call(Q)==="[object Array]"}function D(Q){return typeof Q=="function"}function N(Q){return E.call(Q)==="[object String]"}function M(Q){var ce=typeof Q;return ce==="function"||!!Q&&ce==="object"}function F(Q){return!!d[E.call(Q)]}function R(Q){return!!I[E.call(Q)]}function j(Q){return typeof Q=="object"&&typeof Q.nodeType=="number"&&typeof Q.ownerDocument=="object"}function B(Q){return Q!==Q}function K(Q){for(var ce=0,Ke=arguments.length;ce<Ke;ce++)if(arguments[ce]!=null)return arguments[ce]}function U(Q,ce){return Q!=null?Q:ce}function z(Q,ce,Ke){return Q!=null?Q:ce!=null?ce:Ke}function V(){return Function.call.apply(m,arguments)}function Y(Q){if(typeof Q=="number")return[Q,Q,Q,Q];var ce=Q.length;return ce===2?[Q[0],Q[1],Q[0],Q[1]]:ce===3?[Q[0],Q[1],Q[2],Q[1]]:Q}function J(Q,ce){if(!Q)throw new Error(ce)}function se(Q){return Q==null?null:typeof Q.trim=="function"?Q.trim():Q.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $="__ec_primitive__";function ae(Q){Q[$]=!0}function ge(Q){return Q[$]}function pe(Q){var ce=L(Q);this.data={};var Ke=this;Q instanceof pe?Q.each(ee):Q&&y(Q,ee);function ee(X,G){ce?Ke.set(X,G):Ke.set(G,X)}}pe.prototype={constructor:pe,get:function(ce){return this.data.hasOwnProperty(ce)?this.data[ce]:null},set:function(ce,Ke){return this.data[ce]=Ke},each:function(ce,Ke){Ke!==void 0&&(ce=_(ce,Ke));for(var ee in this.data)this.data.hasOwnProperty(ee)&&ce(this.data[ee],ee)},removeKey:function(ce){delete this.data[ce]}};function Ne(Q){return new pe(Q)}function de(Q,ce){for(var Ke=new Q.constructor(Q.length+ce.length),ee=0;ee<Q.length;ee++)Ke[ee]=Q[ee];var X=Q.length;for(ee=0;ee<ce.length;ee++)Ke[ee+X]=ce[ee];return Ke}function Le(){}k.$override=r,k.clone=i,k.merge=n,k.mergeAll=t,k.extend=s,k.defaults=e,k.createCanvas=o,k.getContext=u,k.indexOf=f,k.inherits=p,k.mixin=v,k.isArrayLike=A,k.each=y,k.map=x,k.reduce=C,k.filter=w,k.find=b,k.bind=_,k.curry=O,k.isArray=L,k.isFunction=D,k.isString=N,k.isObject=M,k.isBuiltInObject=F,k.isTypedArray=R,k.isDom=j,k.eqNaN=B,k.retrieve=K,k.retrieve2=U,k.retrieve3=z,k.slice=V,k.normalizeCssArray=Y,k.assert=J,k.trim=se,k.setAsPrimitive=ae,k.isPrimitive=ge,k.createHashMap=Ne,k.concatArray=de,k.noop=Le},bZqE:function(H,k){function d(E,T,g){for(var S=[E],m=[],h;h=S.pop();)if(m.push(h),h.isExpand){var c=h.children;if(c.length)for(var a=0;a<c.length;a++)S.push(c[a])}for(;h=m.pop();)T(h,g)}function I(E,T){for(var g=[E],S;S=g.pop();)if(T(S),S.isExpand){var m=S.children;if(m.length)for(var h=m.length-1;h>=0;h--)g.push(m[h])}}k.eachAfter=d,k.eachBefore=I},bahg:function(H,k){function d(I){return I.split("")}H.exports=d},bbsP:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("CWI+"),g=d.n(T)},bogI:function(H,k,d){"use strict";d.d(k,"a",function(){return I});var I=function(T){if(!T)return null;var g=typeof T=="function";return g?T():T}},bsht:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},bx4M:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("q1tI"),m=d("TSYQ"),h=d.n(m),c=d("BGR+"),a=d("H84U"),r=function(x,C){var w={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&C.indexOf(b)<0&&(w[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)C.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(w[b[_]]=x[b[_]]);return w},i=function(C){return S.createElement(a.a,null,function(w){var b=w.getPrefixCls,_=C.prefixCls,O=C.className,L=C.hoverable,D=L===void 0?!0:L,N=r(C,["prefixCls","className","hoverable"]),M=b("card",_),F=h()("".concat(M,"-grid"),O,E()({},"".concat(M,"-grid-hoverable"),D));return S.createElement("div",g()({},N,{className:F}))})},n=i,t=function(x,C){var w={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&C.indexOf(b)<0&&(w[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)C.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(w[b[_]]=x[b[_]]);return w},s=function(C){return S.createElement(a.a,null,function(w){var b=w.getPrefixCls,_=C.prefixCls,O=C.className,L=C.avatar,D=C.title,N=C.description,M=t(C,["prefixCls","className","avatar","title","description"]),F=b("card",_),R=h()("".concat(F,"-meta"),O),j=L?S.createElement("div",{className:"".concat(F,"-meta-avatar")},L):null,B=D?S.createElement("div",{className:"".concat(F,"-meta-title")},D):null,K=N?S.createElement("div",{className:"".concat(F,"-meta-description")},N):null,U=B||K?S.createElement("div",{className:"".concat(F,"-meta-detail")},B,K):null;return S.createElement("div",g()({},M,{className:R}),j,U)})},e=s,o=d("ZTPi"),l=d("BMrR"),u=d("kPKH"),f=d("3Nzz"),p=function(x,C){var w={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&C.indexOf(b)<0&&(w[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)C.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(w[b[_]]=x[b[_]]);return w};function v(x){var C=x.map(function(w,b){return S.createElement("li",{style:{width:"".concat(100/x.length,"%")},key:"action-".concat(b)},S.createElement("span",null,w))});return C}var A=function(C){var w,b,_=S.useContext(a.b),O=_.getPrefixCls,L=_.direction,D=S.useContext(f.b),N=function(xt){C.onTabChange&&C.onTabChange(xt)},M=function(){var xt;return S.Children.forEach(C.children,function(Ct){Ct&&Ct.type&&Ct.type===n&&(xt=!0)}),xt},F=C.prefixCls,R=C.className,j=C.extra,B=C.headStyle,K=B===void 0?{}:B,U=C.bodyStyle,z=U===void 0?{}:U,V=C.title,Y=C.loading,J=C.bordered,se=J===void 0?!0:J,$=C.size,ae=C.type,ge=C.cover,pe=C.actions,Ne=C.tabList,de=C.children,Le=C.activeTabKey,Q=C.defaultActiveTabKey,ce=C.tabBarExtraContent,Ke=C.hoverable,ee=C.tabProps,X=ee===void 0?{}:ee,G=p(C,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),Z=O("card",F),ve=z.padding===0||z.padding==="0px"?{padding:24}:void 0,ue=S.createElement("div",{className:"".concat(Z,"-loading-block")}),_e=S.createElement("div",{className:"".concat(Z,"-loading-content"),style:ve},S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:22},ue)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:8},ue),S.createElement(u.a,{span:15},ue)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:6},ue),S.createElement(u.a,{span:18},ue)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:13},ue),S.createElement(u.a,{span:9},ue)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:4},ue),S.createElement(u.a,{span:3},ue),S.createElement(u.a,{span:16},ue))),xe=Le!==void 0,oe=g()(g()({},X),(w={},E()(w,xe?"activeKey":"defaultActiveKey",xe?Le:Q),E()(w,"tabBarExtraContent",ce),w)),fe,Te=Ne&&Ne.length?S.createElement(o.a,g()({size:"large"},oe,{className:"".concat(Z,"-head-tabs"),onChange:N}),Ne.map(function(wt){return S.createElement(o.a.TabPane,{tab:wt.tab,disabled:wt.disabled,key:wt.key})})):null;(V||j||Te)&&(fe=S.createElement("div",{className:"".concat(Z,"-head"),style:K},S.createElement("div",{className:"".concat(Z,"-head-wrapper")},V&&S.createElement("div",{className:"".concat(Z,"-head-title")},V),j&&S.createElement("div",{className:"".concat(Z,"-extra")},j)),Te));var ze=ge?S.createElement("div",{className:"".concat(Z,"-cover")},ge):null,it=S.createElement("div",{className:"".concat(Z,"-body"),style:z},Y?_e:de),et=pe&&pe.length?S.createElement("ul",{className:"".concat(Z,"-actions")},v(pe)):null,Oe=Object(c.default)(G,["onTabChange"]),gt=$||D,Ge=h()(Z,R,(b={},E()(b,"".concat(Z,"-loading"),Y),E()(b,"".concat(Z,"-bordered"),se),E()(b,"".concat(Z,"-hoverable"),Ke),E()(b,"".concat(Z,"-contain-grid"),M()),E()(b,"".concat(Z,"-contain-tabs"),Ne&&Ne.length),E()(b,"".concat(Z,"-").concat(gt),gt),E()(b,"".concat(Z,"-type-").concat(ae),!!ae),E()(b,"".concat(Z,"-rtl"),L==="rtl"),b));return S.createElement("div",g()({},Oe,{className:Ge}),fe,ze,it,et)};A.Grid=n,A.Meta=e;var y=k.a=A},c2i1:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("Yl7c"),S=g.enableClassCheck;function m(t){return"_EC_"+t}var h=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=h.prototype;c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(t,s){t=t==null?""+s:""+t;var e=this._nodesMap;if(e[m(t)])return;var o=new a(t,s);return o.hostGraph=this,this.nodes.push(o),e[m(t)]=o,o},c.getNodeByIndex=function(t){var s=this.data.getRawIndex(t);return this.nodes[s]},c.getNodeById=function(t){return this._nodesMap[m(t)]},c.addEdge=function(t,s,e){var o=this._nodesMap,l=this._edgesMap;if(typeof t=="number"&&(t=this.nodes[t]),typeof s=="number"&&(s=this.nodes[s]),a.isInstance(t)||(t=o[m(t)]),a.isInstance(s)||(s=o[m(s)]),!t||!s)return;var u=t.id+"-"+s.id;if(l[u])return;var f=new r(t,s,e);return f.hostGraph=this,this._directed&&(t.outEdges.push(f),s.inEdges.push(f)),t.edges.push(f),t!==s&&s.edges.push(f),this.edges.push(f),l[u]=f,f},c.getEdgeByIndex=function(t){var s=this.edgeData.getRawIndex(t);return this.edges[s]},c.getEdge=function(t,s){a.isInstance(t)&&(t=t.id),a.isInstance(s)&&(s=s.id);var e=this._edgesMap;return this._directed?e[t+"-"+s]:e[t+"-"+s]||e[s+"-"+t]},c.eachNode=function(t,s){for(var e=this.nodes,o=e.length,l=0;l<o;l++)e[l].dataIndex>=0&&t.call(s,e[l],l)},c.eachEdge=function(t,s){for(var e=this.edges,o=e.length,l=0;l<o;l++)e[l].dataIndex>=0&&e[l].node1.dataIndex>=0&&e[l].node2.dataIndex>=0&&t.call(s,e[l],l)},c.breadthFirstTraverse=function(t,s,e,o){if(a.isInstance(s)||(s=this._nodesMap[m(s)]),!s)return;for(var l=e==="out"?"outEdges":e==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(t.call(o,s,null))return;for(var f=[s];f.length;)for(var p=f.shift(),v=p[l],u=0;u<v.length;u++){var A=v[u],y=A.node1===p?A.node2:A.node1;if(!y.__visited){if(t.call(o,y,p))return;f.push(y),y.__visited=!0}}},c.update=function(){for(var t=this.data,s=this.edgeData,e=this.nodes,o=this.edges,l=0,u=e.length;l<u;l++)e[l].dataIndex=-1;for(var l=0,u=t.count();l<u;l++)e[t.getRawIndex(l)].dataIndex=l;s.filterSelf(function(f){var p=o[s.getRawIndex(f)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var l=0,u=o.length;l<u;l++)o[l].dataIndex=-1;for(var l=0,u=s.count();l<u;l++)o[s.getRawIndex(l)].dataIndex=l},c.clone=function(){for(var t=new h(this._directed),s=this.nodes,e=this.edges,o=0;o<s.length;o++)t.addNode(s[o].id,s[o].dataIndex);for(var o=0;o<e.length;o++){var l=e[o];t.addEdge(l.node1.id,l.node2.id,l.dataIndex)}return t};function a(t,s){this.id=t==null?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=s==null?-1:s}a.prototype={constructor:a,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(this.dataIndex<0)return;var s=this.hostGraph,e=s.data.getItemModel(this.dataIndex);return e.getModel(t)}};function r(t,s,e){this.node1=t,this.node2=s,this.dataIndex=e==null?-1:e}r.prototype.getModel=function(t){if(this.dataIndex<0)return;var s=this.hostGraph,e=s.edgeData.getItemModel(this.dataIndex);return e.getModel(t)};var i=function(t,s){return{getValue:function(e){var o=this[t][s];return o.get(o.getDimension(e||"value"),this.dataIndex)},setVisual:function(e,o){this.dataIndex>=0&&this[t][s].setItemVisual(this.dataIndex,e,o)},getVisual:function(e,o){return this[t][s].getItemVisual(this.dataIndex,e,o)},setLayout:function(e,o){this.dataIndex>=0&&this[t][s].setItemLayout(this.dataIndex,e,o)},getLayout:function(){return this[t][s].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][s].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][s].getRawIndex(this.dataIndex)}}};T.mixin(a,i("hostGraph","data")),T.mixin(r,i("hostGraph","edgeData")),h.Node=a,h.Edge=r,S(a),S(r);var n=h;H.exports=n},c5Ni:function(H,k,d){},c5fP:function(H,k,d){"use strict";function I(Ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(xt){return typeof xt}:I=function(xt){return xt&&typeof Symbol=="function"&&xt.constructor===Symbol&&xt!==Symbol.prototype?"symbol":typeof xt},I(Ge)}Object.defineProperty(k,"__esModule",{value:!0}),k._tr_init=ze,k._tr_stored_block=it,k._tr_flush_block=Oe,k._tr_tally=gt,k._tr_align=et;var E=g(d("6BzB"));function T(){if(typeof WeakMap!="function")return null;var Ge=new WeakMap;return T=function(){return Ge},Ge}function g(Ge){if(Ge&&Ge.__esModule)return Ge;if(Ge===null||I(Ge)!=="object"&&typeof Ge!="function")return{default:Ge};var wt=T();if(wt&&wt.has(Ge))return wt.get(Ge);var xt={},Ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Dt in Ge)if(Object.prototype.hasOwnProperty.call(Ge,Dt)){var Ht=Ct?Object.getOwnPropertyDescriptor(Ge,Dt):null;Ht&&(Ht.get||Ht.set)?Object.defineProperty(xt,Dt,Ht):xt[Dt]=Ge[Dt]}return xt.default=Ge,wt&&wt.set(Ge,xt),xt}var S=4,m=0,h=1,c=2;function a(Ge){for(var wt=Ge.length;--wt>=0;)Ge[wt]=0}var r=0,i=1,n=2,t=3,s=258,e=29,o=256,l=o+1+e,u=30,f=19,p=2*l+1,v=15,A=16,y=7,x=256,C=16,w=17,b=18,_=[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],O=[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],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=512,M=new Array((l+2)*2);a(M);var F=new Array(u*2);a(F);var R=new Array(N);a(R);var j=new Array(s-t+1);a(j);var B=new Array(e);a(B);var K=new Array(u);a(K);function U(Ge,wt,xt,Ct,Dt){this.static_tree=Ge,this.extra_bits=wt,this.extra_base=xt,this.elems=Ct,this.max_length=Dt,this.has_stree=Ge&&Ge.length}var z,V,Y;function J(Ge,wt){this.dyn_tree=Ge,this.max_code=0,this.stat_desc=wt}function se(Ge){return Ge<256?R[Ge]:R[256+(Ge>>>7)]}function $(Ge,wt){Ge.pending_buf[Ge.pending++]=wt&255,Ge.pending_buf[Ge.pending++]=wt>>>8&255}function ae(Ge,wt,xt){Ge.bi_valid>A-xt?(Ge.bi_buf|=wt<<Ge.bi_valid&65535,$(Ge,Ge.bi_buf),Ge.bi_buf=wt>>A-Ge.bi_valid,Ge.bi_valid+=xt-A):(Ge.bi_buf|=wt<<Ge.bi_valid&65535,Ge.bi_valid+=xt)}function ge(Ge,wt,xt){ae(Ge,xt[wt*2],xt[wt*2+1])}function pe(Ge,wt){var xt=0;do xt|=Ge&1,Ge>>>=1,xt<<=1;while(--wt>0);return xt>>>1}function Ne(Ge){Ge.bi_valid===16?($(Ge,Ge.bi_buf),Ge.bi_buf=0,Ge.bi_valid=0):Ge.bi_valid>=8&&(Ge.pending_buf[Ge.pending++]=Ge.bi_buf&255,Ge.bi_buf>>=8,Ge.bi_valid-=8)}function de(Ge,wt){var xt=wt.dyn_tree,Ct=wt.max_code,Dt=wt.stat_desc.static_tree,Ht=wt.stat_desc.has_stree,Je=wt.stat_desc.extra_bits,ye=wt.stat_desc.extra_base,ie=wt.stat_desc.max_length,bt,qe,me,Rt,er,ct,zt=0;for(Rt=0;Rt<=v;Rt++)Ge.bl_count[Rt]=0;for(xt[Ge.heap[Ge.heap_max]*2+1]=0,bt=Ge.heap_max+1;bt<p;bt++){if(qe=Ge.heap[bt],Rt=xt[xt[qe*2+1]*2+1]+1,Rt>ie&&(Rt=ie,zt++),xt[qe*2+1]=Rt,qe>Ct)continue;Ge.bl_count[Rt]++,er=0,qe>=ye&&(er=Je[qe-ye]),ct=xt[qe*2],Ge.opt_len+=ct*(Rt+er),Ht&&(Ge.static_len+=ct*(Dt[qe*2+1]+er))}if(zt===0)return;do{for(Rt=ie-1;Ge.bl_count[Rt]===0;)Rt--;Ge.bl_count[Rt]--,Ge.bl_count[Rt+1]+=2,Ge.bl_count[ie]--,zt-=2}while(zt>0);for(Rt=ie;Rt!==0;Rt--)for(qe=Ge.bl_count[Rt];qe!==0;){if(me=Ge.heap[--bt],me>Ct)continue;xt[me*2+1]!==Rt&&(Ge.opt_len+=(Rt-xt[me*2+1])*xt[me*2],xt[me*2+1]=Rt),qe--}}function Le(Ge,wt,xt){var Ct=new Array(v+1),Dt=0,Ht,Je;for(Ht=1;Ht<=v;Ht++)Ct[Ht]=Dt=Dt+xt[Ht-1]<<1;for(Je=0;Je<=wt;Je++){var ye=Ge[Je*2+1];if(ye===0)continue;Ge[Je*2]=pe(Ct[ye]++,ye)}}function Q(){var Ge,wt,xt,Ct,Dt,Ht=new Array(v+1);for(xt=0,Ct=0;Ct<e-1;Ct++)for(B[Ct]=xt,Ge=0;Ge<1<<_[Ct];Ge++)j[xt++]=Ct;for(j[xt-1]=Ct,Dt=0,Ct=0;Ct<16;Ct++)for(K[Ct]=Dt,Ge=0;Ge<1<<O[Ct];Ge++)R[Dt++]=Ct;for(Dt>>=7;Ct<u;Ct++)for(K[Ct]=Dt<<7,Ge=0;Ge<1<<O[Ct]-7;Ge++)R[256+Dt++]=Ct;for(wt=0;wt<=v;wt++)Ht[wt]=0;for(Ge=0;Ge<=143;)M[Ge*2+1]=8,Ge++,Ht[8]++;for(;Ge<=255;)M[Ge*2+1]=9,Ge++,Ht[9]++;for(;Ge<=279;)M[Ge*2+1]=7,Ge++,Ht[7]++;for(;Ge<=287;)M[Ge*2+1]=8,Ge++,Ht[8]++;for(Le(M,l+1,Ht),Ge=0;Ge<u;Ge++)F[Ge*2+1]=5,F[Ge*2]=pe(Ge,5);z=new U(M,_,o+1,l,v),V=new U(F,O,0,u,v),Y=new U(new Array(0),L,0,f,y)}function ce(Ge){var wt;for(wt=0;wt<l;wt++)Ge.dyn_ltree[wt*2]=0;for(wt=0;wt<u;wt++)Ge.dyn_dtree[wt*2]=0;for(wt=0;wt<f;wt++)Ge.bl_tree[wt*2]=0;Ge.dyn_ltree[x*2]=1,Ge.opt_len=Ge.static_len=0,Ge.last_lit=Ge.matches=0}function Ke(Ge){Ge.bi_valid>8?$(Ge,Ge.bi_buf):Ge.bi_valid>0&&(Ge.pending_buf[Ge.pending++]=Ge.bi_buf),Ge.bi_buf=0,Ge.bi_valid=0}function ee(Ge,wt,xt,Ct){Ke(Ge),Ct&&($(Ge,xt),$(Ge,~xt)),E.arraySet(Ge.pending_buf,Ge.window,wt,xt,Ge.pending),Ge.pending+=xt}function X(Ge,wt,xt,Ct){var Dt=wt*2,Ht=xt*2;return Ge[Dt]<Ge[Ht]||Ge[Dt]===Ge[Ht]&&Ct[wt]<=Ct[xt]}function G(Ge,wt,xt){for(var Ct=Ge.heap[xt],Dt=xt<<1;Dt<=Ge.heap_len&&!(Dt<Ge.heap_len&&X(wt,Ge.heap[Dt+1],Ge.heap[Dt],Ge.depth)&&Dt++,X(wt,Ct,Ge.heap[Dt],Ge.depth));)Ge.heap[xt]=Ge.heap[Dt],xt=Dt,Dt<<=1;Ge.heap[xt]=Ct}function Z(Ge,wt,xt){var Ct,Dt,Ht=0,Je,ye;if(Ge.last_lit!==0)do Ct=Ge.pending_buf[Ge.d_buf+Ht*2]<<8|Ge.pending_buf[Ge.d_buf+Ht*2+1],Dt=Ge.pending_buf[Ge.l_buf+Ht],Ht++,Ct===0?ge(Ge,Dt,wt):(Je=j[Dt],ge(Ge,Je+o+1,wt),ye=_[Je],ye!==0&&(Dt-=B[Je],ae(Ge,Dt,ye)),Ct--,Je=se(Ct),ge(Ge,Je,xt),ye=O[Je],ye!==0&&(Ct-=K[Je],ae(Ge,Ct,ye)));while(Ht<Ge.last_lit);ge(Ge,x,wt)}function ve(Ge,wt){var xt=wt.dyn_tree,Ct=wt.stat_desc.static_tree,Dt=wt.stat_desc.has_stree,Ht=wt.stat_desc.elems,Je,ye,ie=-1,bt;for(Ge.heap_len=0,Ge.heap_max=p,Je=0;Je<Ht;Je++)xt[Je*2]!==0?(Ge.heap[++Ge.heap_len]=ie=Je,Ge.depth[Je]=0):xt[Je*2+1]=0;for(;Ge.heap_len<2;)bt=Ge.heap[++Ge.heap_len]=ie<2?++ie:0,xt[bt*2]=1,Ge.depth[bt]=0,Ge.opt_len--,Dt&&(Ge.static_len-=Ct[bt*2+1]);for(wt.max_code=ie,Je=Ge.heap_len>>1;Je>=1;Je--)G(Ge,xt,Je);bt=Ht;do Je=Ge.heap[1],Ge.heap[1]=Ge.heap[Ge.heap_len--],G(Ge,xt,1),ye=Ge.heap[1],Ge.heap[--Ge.heap_max]=Je,Ge.heap[--Ge.heap_max]=ye,xt[bt*2]=xt[Je*2]+xt[ye*2],Ge.depth[bt]=(Ge.depth[Je]>=Ge.depth[ye]?Ge.depth[Je]:Ge.depth[ye])+1,xt[Je*2+1]=xt[ye*2+1]=bt,Ge.heap[1]=bt++,G(Ge,xt,1);while(Ge.heap_len>=2);Ge.heap[--Ge.heap_max]=Ge.heap[1],de(Ge,wt),Le(xt,ie,Ge.bl_count)}function ue(Ge,wt,xt){var Ct,Dt=-1,Ht,Je=wt[0*2+1],ye=0,ie=7,bt=4;for(Je===0&&(ie=138,bt=3),wt[(xt+1)*2+1]=65535,Ct=0;Ct<=xt;Ct++){if(Ht=Je,Je=wt[(Ct+1)*2+1],++ye<ie&&Ht===Je)continue;ye<bt?Ge.bl_tree[Ht*2]+=ye:Ht!==0?(Ht!==Dt&&Ge.bl_tree[Ht*2]++,Ge.bl_tree[C*2]++):ye<=10?Ge.bl_tree[w*2]++:Ge.bl_tree[b*2]++,ye=0,Dt=Ht,Je===0?(ie=138,bt=3):Ht===Je?(ie=6,bt=3):(ie=7,bt=4)}}function _e(Ge,wt,xt){var Ct,Dt=-1,Ht,Je=wt[0*2+1],ye=0,ie=7,bt=4;for(Je===0&&(ie=138,bt=3),Ct=0;Ct<=xt;Ct++){if(Ht=Je,Je=wt[(Ct+1)*2+1],++ye<ie&&Ht===Je)continue;if(ye<bt)do ge(Ge,Ht,Ge.bl_tree);while(--ye!==0);else Ht!==0?(Ht!==Dt&&(ge(Ge,Ht,Ge.bl_tree),ye--),ge(Ge,C,Ge.bl_tree),ae(Ge,ye-3,2)):ye<=10?(ge(Ge,w,Ge.bl_tree),ae(Ge,ye-3,3)):(ge(Ge,b,Ge.bl_tree),ae(Ge,ye-11,7));ye=0,Dt=Ht,Je===0?(ie=138,bt=3):Ht===Je?(ie=6,bt=3):(ie=7,bt=4)}}function xe(Ge){var wt;for(ue(Ge,Ge.dyn_ltree,Ge.l_desc.max_code),ue(Ge,Ge.dyn_dtree,Ge.d_desc.max_code),ve(Ge,Ge.bl_desc),wt=f-1;wt>=3&&!(Ge.bl_tree[D[wt]*2+1]!==0);wt--);return Ge.opt_len+=3*(wt+1)+5+5+4,wt}function oe(Ge,wt,xt,Ct){var Dt;for(ae(Ge,wt-257,5),ae(Ge,xt-1,5),ae(Ge,Ct-4,4),Dt=0;Dt<Ct;Dt++)ae(Ge,Ge.bl_tree[D[Dt]*2+1],3);_e(Ge,Ge.dyn_ltree,wt-1),_e(Ge,Ge.dyn_dtree,xt-1)}function fe(Ge){var wt=4093624447,xt;for(xt=0;xt<=31;xt++,wt>>>=1)if(wt&1&&Ge.dyn_ltree[xt*2]!==0)return m;if(Ge.dyn_ltree[9*2]!==0||Ge.dyn_ltree[10*2]!==0||Ge.dyn_ltree[13*2]!==0)return h;for(xt=32;xt<o;xt++)if(Ge.dyn_ltree[xt*2]!==0)return h;return m}var Te=!1;function ze(Ge){Te||(Q(),Te=!0),Ge.l_desc=new J(Ge.dyn_ltree,z),Ge.d_desc=new J(Ge.dyn_dtree,V),Ge.bl_desc=new J(Ge.bl_tree,Y),Ge.bi_buf=0,Ge.bi_valid=0,ce(Ge)}function it(Ge,wt,xt,Ct){ae(Ge,(r<<1)+(Ct?1:0),3),ee(Ge,wt,xt,!0)}function et(Ge){ae(Ge,i<<1,3),ge(Ge,x,M),Ne(Ge)}function Oe(Ge,wt,xt,Ct){var Dt,Ht,Je=0;Ge.level>0?(Ge.strm.data_type===c&&(Ge.strm.data_type=fe(Ge)),ve(Ge,Ge.l_desc),ve(Ge,Ge.d_desc),Je=xe(Ge),Dt=Ge.opt_len+3+7>>>3,Ht=Ge.static_len+3+7>>>3,Ht<=Dt&&(Dt=Ht)):Dt=Ht=xt+5,xt+4<=Dt&&wt!==-1?it(Ge,wt,xt,Ct):Ge.strategy===S||Ht===Dt?(ae(Ge,(i<<1)+(Ct?1:0),3),Z(Ge,M,F)):(ae(Ge,(n<<1)+(Ct?1:0),3),oe(Ge,Ge.l_desc.max_code+1,Ge.d_desc.max_code+1,Je+1),Z(Ge,Ge.dyn_ltree,Ge.dyn_dtree)),ce(Ge),Ct&&Ke(Ge)}function gt(Ge,wt,xt){return Ge.pending_buf[Ge.d_buf+Ge.last_lit*2]=wt>>>8&255,Ge.pending_buf[Ge.d_buf+Ge.last_lit*2+1]=wt&255,Ge.pending_buf[Ge.l_buf+Ge.last_lit]=xt&255,Ge.last_lit++,wt===0?Ge.dyn_ltree[xt*2]++:(Ge.matches++,wt--,Ge.dyn_ltree[(j[xt]+o+1)*2]++,Ge.dyn_dtree[se(wt)*2]++),Ge.last_lit===Ge.lit_bufsize-1}},c8qY:function(H,k,d){var I=d("IwbS"),E=d("fls0");function T(n){this._ctor=n||E,this.group=new I.Group}var g=T.prototype;g.isPersistent=function(){return!0},g.updateData=function(n){var t=this,s=t.group,e=t._lineData;t._lineData=n,e||s.removeAll();var o=c(n);n.diff(e).add(function(l){S(t,n,l,o)}).update(function(l,u){m(t,e,n,u,l,o)}).remove(function(l){s.remove(e.getItemGraphicEl(l))}).execute()};function S(n,t,s,e){var o=t.getItemLayout(s);if(!r(o))return;var l=new n._ctor(t,s,e);t.setItemGraphicEl(s,l),n.group.add(l)}function m(n,t,s,e,o,l){var u=t.getItemGraphicEl(e);if(!r(s.getItemLayout(o))){n.group.remove(u);return}u?u.updateData(s,o,l):u=new n._ctor(s,o,l),s.setItemGraphicEl(o,u),n.group.add(u)}g.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(t,s){t.updateLayout(n,s)},this)},g.incrementalPrepareUpdate=function(n){this._seriesScope=c(n),this._lineData=null,this.group.removeAll()};function h(n){return n.animators&&n.animators.length>0}g.incrementalUpdate=function(n,t){function s(u){!u.isGroup&&!h(u)&&(u.incremental=u.useHoverLayer=!0)}for(var e=n.start;e<n.end;e++){var o=t.getItemLayout(e);if(r(o)){var l=new this._ctor(t,e,this._seriesScope);l.traverse(s),this.group.add(l),t.setItemGraphicEl(e,l)}}};function c(n){var t=n.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}g.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},g._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};function a(n){return isNaN(n[0])||isNaN(n[1])}function r(n){return!a(n[0])&&!a(n[1])}var i=T;H.exports=i},cCMj:function(H,k,d){var I=d("bYtY"),E={updateSelectedMap:function(T){this._targetList=I.isArray(T)?T.slice():[],this._selectTargetMap=I.reduce(T||[],function(g,S){return g.set(S.name,S),g},I.createHashMap())},select:function(T,g){var S=g!=null?this._targetList[g]:this._selectTargetMap.get(T),m=this.get("selectedMode");m==="single"&&this._selectTargetMap.each(function(h){h.selected=!1}),S&&(S.selected=!0)},unSelect:function(T,g){var S=g!=null?this._targetList[g]:this._selectTargetMap.get(T);S&&(S.selected=!1)},toggleSelected:function(T,g){var S=g!=null?this._targetList[g]:this._selectTargetMap.get(T);if(S!=null)return this[S.selected?"unSelect":"select"](T,g),S.selected},isSelected:function(T,g){var S=g!=null?this._targetList[g]:this._selectTargetMap.get(T);return S&&S.selected}};H.exports=E},cVA7:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=d("MT78"),E=S(I),T=d("t3Fx"),g=S(T);function S(r){return r&&r.__esModule?r:{default:r}}function m(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function h(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function c(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a=function(r){c(i,r);function i(n){m(this,i);var t=h(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,n));return t.echartsLib=E.default,t}return i}(g.default);k.default=a},cWXX:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("oIFs"),g=d.n(T)},ca2m:function(H,k,d){var I=d("bYtY"),E={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)"]}}},T={};T.categoryAxis=I.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E),T.valueAxis=I.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},E),T.timeAxis=I.defaults({scale:!0,min:"dataMin",max:"dataMax"},T.valueAxis),T.logAxis=I.defaults({scale:!0,logBase:10},T.valueAxis);var g=T;H.exports=g},cbJ4:function(H,k,d){var I=d("bYtY"),E=I.createHashMap;function T(g){g.eachSeriesByType("themeRiver",function(S){var m=S.getData(),h=S.getRawData(),c=S.get("color"),a=E();m.each(function(r){a.set(m.getRawIndex(r),r)}),h.each(function(r){var i=h.getName(r),n=c[(S.nameMap.get(i)-1)%c.length];h.setItemVisual(r,"color",n);var t=a.get(r);t!=null&&m.setItemVisual(t,"color",n)})})}H.exports=T},chpo:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=1,E=function(){return"".concat(I++)};k.default=E},cpOr:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("T4UG"),g=d("YXkt"),S=d("bYtY"),m=S.concatArray,h=S.mergeAll,c=S.map,a=d("7aKB"),r=a.encodeHTML,i=d("IDmD"),n=typeof Uint32Array=="undefined"?Array:Uint32Array,t=typeof Float64Array=="undefined"?Array:Float64Array;function s(l){var u=l.data;u&&u[0]&&u[0][0]&&u[0][0].coord&&(l.data=c(u,function(f){var p=[f[0].coord,f[1].coord],v={coords:p};return f[0].name&&(v.fromName=f[0].name),f[1].name&&(v.toName=f[1].name),h([v,f[0],f[1]])}))}var e=T.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(l){l.data=l.data||[],s(l);var u=this._processFlatCoordsArray(l.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(l.data=new Float32Array(u.count)),e.superApply(this,"init",arguments)},mergeOption:function(l){if(l.data=l.data||[],s(l),l.data){var u=this._processFlatCoordsArray(l.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(l.data=new Float32Array(u.count))}e.superApply(this,"mergeOption",arguments)},appendData:function(l){var u=this._processFlatCoordsArray(l.data);u.flatCoords&&(this._flatCoords?(this._flatCoords=m(this._flatCoords,u.flatCoords),this._flatCoordsOffset=m(this._flatCoordsOffset,u.flatCoordsOffset)):(this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset),l.data=new Float32Array(u.count)),this.getRawData().appendData(l.data)},_getCoordsFromItemModel:function(l){var u=this.getData().getItemModel(l),f=u.option instanceof Array?u.option:u.getShallow("coords");return f},getLineCoordsCount:function(l){return this._flatCoordsOffset?this._flatCoordsOffset[l*2+1]:this._getCoordsFromItemModel(l).length},getLineCoords:function(l,u){if(this._flatCoordsOffset){for(var f=this._flatCoordsOffset[l*2],p=this._flatCoordsOffset[l*2+1],v=0;v<p;v++)u[v]=u[v]||[],u[v][0]=this._flatCoords[f+v*2],u[v][1]=this._flatCoords[f+v*2+1];return p}else{for(var A=this._getCoordsFromItemModel(l),v=0;v<A.length;v++)u[v]=u[v]||[],u[v][0]=A[v][0],u[v][1]=A[v][1];return A.length}},_processFlatCoordsArray:function(l){var u=0;if(this._flatCoords&&(u=this._flatCoords.length),typeof l[0]=="number"){for(var f=l.length,p=new n(f),v=new t(f),A=0,y=0,x=0,C=0;C<f;){x++;var w=l[C++];p[y++]=A+u,p[y++]=w;for(var b=0;b<w;b++){var _=l[C++],O=l[C++];v[A++]=_,v[A++]=O,C>f}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:v,count:x}}return{flatCoordsOffset:null,flatCoords:null,count:l.length}},getInitialData:function(l,u){var f=new g(["value"],this);return f.hasItemOption=!1,f.initData(l.data,[],function(p,v,A,y){if(p instanceof Array)return NaN;f.hasItemOption=!0;var x=p.value;if(x!=null)return x instanceof Array?x[y]:x}),f},formatTooltip:function(l){var u=this.getData(),f=u.getItemModel(l),p=f.get("name");if(p)return p;var v=f.get("fromName"),A=f.get("toName"),y=[];return v!=null&&y.push(v),A!=null&&y.push(A),r(y.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var l=this.option.progressive;return l==null?this.option.large?1e4:this.get("progressive"):l},getProgressiveThreshold:function(){var l=this.option.progressiveThreshold;return l==null?this.option.large?2e4:this.get("progressiveThreshold"):l},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}}}),o=e;H.exports=o},crZl:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IwbS"),g=d("7aKB"),S=d("+TT/"),m=d("XxSj"),h=I.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(c,a){this.ecModel=c,this.api=a,this.visualMapModel},render:function(c,a,r,i){if(this.visualMapModel=c,c.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(c){var a=this.visualMapModel,r=g.normalizeCssArray(a.get("padding")||0),i=c.getBoundingRect();c.add(new T.Rect({z2:-1,silent:!0,shape:{x:i.x-r[3],y:i.y-r[0],width:i.width+r[3]+r[1],height:i.height+r[0]+r[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},getControllerVisual:function(c,a,r){r=r||{};var i=r.forceState,n=this.visualMapModel,t={};if(a==="symbol"&&(t.symbol=n.get("itemSymbol")),a==="color"){var s=n.get("contentColor");t.color=s}function e(f){return t[f]}function o(f,p){t[f]=p}var l=n.controllerVisuals[i||n.getValueState(c)],u=m.prepareVisualTypes(l);return E.each(u,function(f){var p=l[f];r.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=l.__alphaForOpacity),m.dependsOn(f,a)&&(p&&p.applyVisual(c,e,o))}),t[a]},positionGroup:function(c){var a=this.visualMapModel,r=this.api;S.positionElement(c,a.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:E.noop});H.exports=h},crp1:function(H,k,d){"use strict";d.d(k,"b",function(){return st}),d.d(k,"a",function(){return Ar});var I={},E=function(pt,ut,Jt,Zt,At){var Pt=I[ut]||(I[ut]=URL.createObjectURL(new Blob([pt],{type:"text/javascript"}))),vt=new Worker(Pt);return vt.onerror=function(Ft){return At(Ft.error,null)},vt.onmessage=function(Ft){return At(null,Ft.data)},vt.postMessage(Jt,Zt),vt},T=Uint8Array,g=Uint16Array,S=Uint32Array,m=new 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,0,0,0]),h=new T([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]),c=new T([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(pt,ut){for(var Jt=new g(31),Zt=0;Zt<31;++Zt)Jt[Zt]=ut+=1<<pt[Zt-1];for(var At=new S(Jt[30]),Zt=1;Zt<30;++Zt)for(var Pt=Jt[Zt];Pt<Jt[Zt+1];++Pt)At[Pt]=Pt-Jt[Zt]<<5|Zt;return[Jt,At]},r=a(m,2),i=r[0],n=r[1];i[28]=258,n[258]=28;for(var t=a(h,0),s=t[0],e=t[1],o=new g(32768),l=0;l<32768;++l){var u=(l&43690)>>>1|(l&21845)<<1;u=(u&52428)>>>2|(u&13107)<<2,u=(u&61680)>>>4|(u&3855)<<4,o[l]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var f=function(pt,ut,Jt){for(var Zt=pt.length,At=0,Pt=new g(ut);At<Zt;++At)++Pt[pt[At]-1];var vt=new g(ut);for(At=0;At<ut;++At)vt[At]=vt[At-1]+Pt[At-1]<<1;var Ft;if(Jt){Ft=new g(1<<ut);var gr=15-ut;for(At=0;At<Zt;++At)if(pt[At])for(var or=At<<4|pt[At],ur=ut-pt[At],Yr=vt[pt[At]-1]++<<ur,Jr=Yr|(1<<ur)-1;Yr<=Jr;++Yr)Ft[o[Yr]>>>gr]=or}else for(Ft=new g(Zt),At=0;At<Zt;++At)Ft[At]=o[vt[pt[At]-1]++]>>>15-pt[At];return Ft},p=new T(288),l=0;l<144;++l)p[l]=8;for(var l=144;l<256;++l)p[l]=9;for(var l=256;l<280;++l)p[l]=7;for(var l=280;l<288;++l)p[l]=8;for(var v=new T(32),l=0;l<32;++l)v[l]=5;var A=f(p,9,0),y=f(p,9,1),x=f(v,5,0),C=f(v,5,1),w=function(pt){for(var ut=pt[0],Jt=1;Jt<pt.length;++Jt)pt[Jt]>ut&&(ut=pt[Jt]);return ut},b=function(pt,ut,Jt){var Zt=ut/8>>0;return(pt[Zt]|pt[Zt+1]<<8)>>>(ut&7)&Jt},_=function(pt,ut){var Jt=ut/8>>0;return(pt[Jt]|pt[Jt+1]<<8|pt[Jt+2]<<16)>>>(ut&7)},O=function(pt){return(pt/8>>0)+(pt&7&&1)},L=function(pt,ut,Jt){(ut==null||ut<0)&&(ut=0),(Jt==null||Jt>pt.length)&&(Jt=pt.length);var Zt=new(pt instanceof g?g:pt instanceof S?S:T)(Jt-ut);return Zt.set(pt.subarray(ut,Jt)),Zt},D=function(pt,ut,Jt){var Zt=pt.length,At=!ut||Jt,Pt=!Jt||Jt.i;Jt||(Jt={}),ut||(ut=new T(Zt*3));var vt=function(ci){var Pn=ut.length;if(ci>Pn){var xi=new T(Math.max(Pn*2,ci));xi.set(ut),ut=xi}},Ft=Jt.f||0,gr=Jt.p||0,or=Jt.b||0,ur=Jt.l,Yr=Jt.d,Jr=Jt.m,Tn=Jt.n,Dn=Zt*8;do{if(!ur){Jt.f=Ft=b(pt,gr,1);var zn=b(pt,gr+1,3);if(gr+=3,zn)if(zn==1)ur=y,Yr=C,Jr=9,Tn=5;else if(zn==2){var Ye=b(pt,gr,31)+257,Ce=b(pt,gr+10,15)+4,ke=Ye+b(pt,gr+5,31)+1;gr+=14;for(var Fe=new T(ke),Ve=new T(19),We=0;We<Ce;++We)Ve[c[We]]=b(pt,gr+We*3,7);gr+=Ce*3;var Ze=w(Ve),yt=(1<<Ze)-1;if(!Pt&&gr+ke*(Ze+7)>Dn)break;for(var lt=f(Ve,Ze,1),We=0;We<ke;){var kt=lt[b(pt,gr,yt)];gr+=kt&15;var qn=kt>>>4;if(qn<16)Fe[We++]=qn;else{var wr=0,pr=0;for(qn==16?(pr=3+b(pt,gr,3),gr+=2,wr=Fe[We-1]):qn==17?(pr=3+b(pt,gr,7),gr+=3):qn==18&&(pr=11+b(pt,gr,127),gr+=7);pr--;)Fe[We++]=wr}}var _r=Fe.subarray(0,Ye),Wt=Fe.subarray(Ye);Jr=w(_r),Tn=w(Wt),ur=f(_r,Jr,1),Yr=f(Wt,Tn,1)}else throw"invalid block type";else{var qn=O(gr)+4,Ai=pt[qn-4]|pt[qn-3]<<8,Mi=qn+Ai;if(Mi>Zt){if(Pt)throw"unexpected EOF";break}At&&vt(or+Ai),ut.set(pt.subarray(qn,Mi),or),Jt.b=or+=Ai,Jt.p=gr=Mi*8;continue}if(gr>Dn)throw"unexpected EOF"}At&&vt(or+131072);for(var un=(1<<Jr)-1,ir=(1<<Tn)-1,Gr=Jr+Tn+18;Pt||gr+Gr<Dn;){var wr=ur[_(pt,gr)&un],kr=wr>>>4;if(gr+=wr&15,gr>Dn)throw"unexpected EOF";if(!wr)throw"invalid length/literal";if(kr<256)ut[or++]=kr;else if(kr==256){ur=null;break}else{var yr=kr-254;if(kr>264){var We=kr-257,En=m[We];yr=b(pt,gr,(1<<En)-1)+i[We],gr+=En}var kn=Yr[_(pt,gr)&ir],ii=kn>>>4;if(!kn)throw"invalid distance";gr+=kn&15;var Wt=s[ii];if(ii>3){var En=h[ii];Wt+=_(pt,gr)&(1<<En)-1,gr+=En}if(gr>Dn)throw"unexpected EOF";At&&vt(or+131072);for(var oi=or+yr;or<oi;or+=4)ut[or]=ut[or-Wt],ut[or+1]=ut[or+1-Wt],ut[or+2]=ut[or+2-Wt],ut[or+3]=ut[or+3-Wt];or=oi}}Jt.l=ur,Jt.p=gr,Jt.b=or,ur&&(Ft=1,Jt.m=Jr,Jt.d=Yr,Jt.n=Tn)}while(!Ft);return or==ut.length?ut:L(ut,0,or)},N=function(pt,ut,Jt){Jt<<=ut&7;var Zt=ut/8>>0;pt[Zt]|=Jt,pt[Zt+1]|=Jt>>>8},M=function(pt,ut,Jt){Jt<<=ut&7;var Zt=ut/8>>0;pt[Zt]|=Jt,pt[Zt+1]|=Jt>>>8,pt[Zt+2]|=Jt>>>16},F=function(pt,ut){for(var Jt=[],Zt=0;Zt<pt.length;++Zt)pt[Zt]&&Jt.push({s:Zt,f:pt[Zt]});var At=Jt.length,Pt=Jt.slice();if(!At)return[new T(0),0];if(At==1){var vt=new T(Jt[0].s+1);return vt[Jt[0].s]=1,[vt,1]}Jt.sort(function(ke,Fe){return ke.f-Fe.f}),Jt.push({s:-1,f:25001});var Ft=Jt[0],gr=Jt[1],or=0,ur=1,Yr=2;for(Jt[0]={s:-1,f:Ft.f+gr.f,l:Ft,r:gr};ur!=At-1;)Ft=Jt[Jt[or].f<Jt[Yr].f?or++:Yr++],gr=Jt[or!=ur&&Jt[or].f<Jt[Yr].f?or++:Yr++],Jt[ur++]={s:-1,f:Ft.f+gr.f,l:Ft,r:gr};for(var Jr=Pt[0].s,Zt=1;Zt<At;++Zt)Pt[Zt].s>Jr&&(Jr=Pt[Zt].s);var Tn=new g(Jr+1),Dn=R(Jt[ur-1],Tn,0);if(Dn>ut){var Zt=0,zn=0,qn=Dn-ut,Ai=1<<qn;for(Pt.sort(function(Fe,Ve){return Tn[Ve.s]-Tn[Fe.s]||Fe.f-Ve.f});Zt<At;++Zt){var Mi=Pt[Zt].s;if(Tn[Mi]>ut)zn+=Ai-(1<<Dn-Tn[Mi]),Tn[Mi]=ut;else break}for(zn>>>=qn;zn>0;){var Ye=Pt[Zt].s;Tn[Ye]<ut?zn-=1<<ut-Tn[Ye]++-1:++Zt}for(;Zt>=0&&zn;--Zt){var Ce=Pt[Zt].s;Tn[Ce]==ut&&(--Tn[Ce],++zn)}Dn=ut}return[new T(Tn),Dn]},R=function Ut(pt,ut,Jt){return pt.s==-1?Math.max(Ut(pt.l,ut,Jt+1),Ut(pt.r,ut,Jt+1)):ut[pt.s]=Jt},j=function(pt){for(var ut=pt.length;ut&&!pt[--ut];);for(var Jt=new g(++ut),Zt=0,At=pt[0],Pt=1,vt=function(or){Jt[Zt++]=or},Ft=1;Ft<=ut;++Ft)if(pt[Ft]==At&&Ft!=ut)++Pt;else{if(!At&&Pt>2){for(;Pt>138;Pt-=138)vt(32754);Pt>2&&(vt(Pt>10?Pt-11<<5|28690:Pt-3<<5|12305),Pt=0)}else if(Pt>3){for(vt(At),--Pt;Pt>6;Pt-=6)vt(8304);Pt>2&&(vt(Pt-3<<5|8208),Pt=0)}for(;Pt--;)vt(At);Pt=1,At=pt[Ft]}return[Jt.subarray(0,Zt),ut]},B=function(pt,ut){for(var Jt=0,Zt=0;Zt<ut.length;++Zt)Jt+=pt[Zt]*ut[Zt];return Jt},K=function(pt,ut,Jt){var Zt=Jt.length,At=O(ut+2);pt[At]=Zt&255,pt[At+1]=Zt>>>8,pt[At+2]=pt[At]^255,pt[At+3]=pt[At+1]^255;for(var Pt=0;Pt<Zt;++Pt)pt[At+Pt+4]=Jt[Pt];return(At+4+Zt)*8},U=function(pt,ut,Jt,Zt,At,Pt,vt,Ft,gr,or,ur){N(ut,ur++,Jt),++At[256];for(var Yr=F(At,15),Jr=Yr[0],Tn=Yr[1],Dn=F(Pt,15),zn=Dn[0],qn=Dn[1],Ai=j(Jr),Mi=Ai[0],Ye=Ai[1],Ce=j(zn),ke=Ce[0],Fe=Ce[1],Ve=new g(19),We=0;We<Mi.length;++We)Ve[Mi[We]&31]++;for(var We=0;We<ke.length;++We)Ve[ke[We]&31]++;for(var Ze=F(Ve,7),yt=Ze[0],lt=Ze[1],kt=19;kt>4&&!yt[c[kt-1]];--kt);var wr=or+5<<3,pr=B(At,p)+B(Pt,v)+vt,_r=B(At,Jr)+B(Pt,zn)+vt+14+3*kt+B(Ve,yt)+(2*Ve[16]+3*Ve[17]+7*Ve[18]);if(wr<=pr&&wr<=_r)return K(ut,ur,pt.subarray(gr,gr+or));var Wt,un,ir,Gr;if(N(ut,ur,1+(_r<pr)),ur+=2,_r<pr){Wt=f(Jr,Tn,0),un=Jr,ir=f(zn,qn,0),Gr=zn;var kr=f(yt,lt,0);N(ut,ur,Ye-257),N(ut,ur+5,Fe-1),N(ut,ur+10,kt-4),ur+=14;for(var We=0;We<kt;++We)N(ut,ur+3*We,yt[c[We]]);ur+=3*kt;for(var yr=[Mi,ke],En=0;En<2;++En)for(var kn=yr[En],We=0;We<kn.length;++We){var ii=kn[We]&31;N(ut,ur,kr[ii]),ur+=yt[ii],ii>15&&(N(ut,ur,kn[We]>>>5&127),ur+=kn[We]>>>12)}}else Wt=A,un=p,ir=x,Gr=v;for(var We=0;We<Ft;++We)if(Zt[We]>255){var ii=Zt[We]>>>18&31;M(ut,ur,Wt[ii+257]),ur+=un[ii+257],ii>7&&(N(ut,ur,Zt[We]>>>23&31),ur+=m[ii]);var oi=Zt[We]&31;M(ut,ur,ir[oi]),ur+=Gr[oi],oi>3&&(M(ut,ur,Zt[We]>>>5&8191),ur+=h[oi])}else M(ut,ur,Wt[Zt[We]]),ur+=un[Zt[We]];return M(ut,ur,Wt[256]),ur+un[256]},z=new S([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),V=new T(0),Y=function(pt,ut,Jt,Zt,At,Pt){var vt=pt.length,Ft=new T(Zt+vt+5*(1+Math.floor(vt/7e3))+At),gr=Ft.subarray(Zt,Ft.length-At),or=0;if(!ut||vt<8)for(var ur=0;ur<=vt;ur+=65535){var Yr=ur+65535;Yr<vt?or=K(gr,or,pt.subarray(ur,Yr)):(gr[ur]=Pt,or=K(gr,or,pt.subarray(ur,vt)))}else{for(var Jr=z[ut-1],Tn=Jr>>>13,Dn=Jr&8191,zn=(1<<Jt)-1,qn=new g(32768),Ai=new g(zn+1),Mi=Math.ceil(Jt/3),Ye=2*Mi,Ce=function(ri){return(pt[ri]^pt[ri+1]<<Mi^pt[ri+2]<<Ye)&zn},ke=new S(25e3),Fe=new g(288),Ve=new g(32),We=0,Ze=0,ur=0,yt=0,lt=0,kt=0;ur<vt;++ur){var wr=Ce(ur),pr=ur&32767,_r=Ai[wr];if(qn[pr]=_r,Ai[wr]=pr,lt<=ur){var Wt=vt-ur;if((We>7e3||yt>24576)&&Wt>423){or=U(pt,gr,0,ke,Fe,Ve,Ze,yt,kt,ur-kt,or),yt=We=Ze=0,kt=ur;for(var un=0;un<286;++un)Fe[un]=0;for(var un=0;un<30;++un)Ve[un]=0}var ir=2,Gr=0,kr=Dn,yr=pr-_r&32767;if(Wt>2&&wr==Ce(ur-yr))for(var En=Math.min(Tn,Wt)-1,kn=Math.min(32767,ur),ii=Math.min(258,Wt);yr<=kn&&--kr&&pr!=_r;){if(pt[ur+ir]==pt[ur+ir-yr]){for(var oi=0;oi<ii&&pt[ur+oi]==pt[ur+oi-yr];++oi);if(oi>ir){if(ir=oi,Gr=yr,oi>En)break;for(var ei=Math.min(yr,oi-2),ci=0,un=0;un<ei;++un){var Pn=ur-yr+un+32768&32767,xi=qn[Pn],gn=Pn-xi+32768&32767;gn>ci&&(ci=gn,_r=Pn)}}}pr=_r,_r=qn[pr],yr+=pr-_r+32768&32767}if(Gr){ke[yt++]=268435456|n[ir]<<18|e[Gr];var zr=n[ir]&31,Cn=e[Gr]&31;Ze+=m[zr]+h[Cn],++Fe[257+zr],++Ve[Cn],lt=ur+ir,++We}else ke[yt++]=pt[ur],++Fe[pt[ur]]}}or=U(pt,gr,Pt,ke,Fe,Ve,Ze,yt,kt,ur-kt,or),Pt||(or=K(gr,or,V))}return L(Ft,0,Zt+O(or)+At)},J=function(){for(var Ut=new S(256),pt=0;pt<256;++pt){for(var ut=pt,Jt=9;--Jt;)ut=(ut&1&&3988292384)^ut>>>1;Ut[pt]=ut}return Ut}(),se=function(){var pt=4294967295;return{p:function(Jt){for(var Zt=pt,At=0;At<Jt.length;++At)Zt=J[Zt&255^Jt[At]]^Zt>>>8;pt=Zt},d:function(){return pt^4294967295}}},$=function(){var pt=1,ut=0;return{p:function(Zt){for(var At=pt,Pt=ut,vt=Zt.length,Ft=0;Ft!=vt;){for(var gr=Math.min(Ft+5552,vt);Ft<gr;++Ft)At+=Zt[Ft],Pt+=At;At%=65521,Pt%=65521}pt=At,ut=Pt},d:function(){return(pt>>>8<<16|(ut&255)<<8|ut>>>8)+((pt&255)<<23)*2}}},ae=function(pt,ut,Jt,Zt,At){return Y(pt,ut.level==null?6:ut.level,ut.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(pt.length)))*1.5):12+ut.mem,Jt,Zt,!At)},ge=function(pt,ut){var Jt={};for(var Zt in pt)Jt[Zt]=pt[Zt];for(var Zt in ut)Jt[Zt]=ut[Zt];return Jt},pe=function(pt,ut,Jt){for(var Zt=pt(),At=pt.toString(),Pt=At.slice(At.indexOf("[")+1,At.lastIndexOf("]")).replace(/ /g,"").split(","),vt=0;vt<Zt.length;++vt){var Ft=Zt[vt],gr=Pt[vt];if(typeof Ft=="function"){ut+=";"+gr+"=";var or=Ft.toString();if(Ft.prototype)if(or.indexOf("[native code]")!=-1){var ur=or.indexOf(" ",8)+1;ut+=or.slice(ur,or.indexOf("(",ur))}else{ut+=or;for(var Yr in Ft.prototype)ut+=";"+gr+".prototype."+Yr+"="+Ft.prototype[Yr].toString()}else ut+=or}else Jt[gr]=Ft}return[ut,Jt]},Ne=[],de=function(pt){var ut=[];for(var Jt in pt)(pt[Jt]instanceof T||pt[Jt]instanceof g||pt[Jt]instanceof S)&&ut.push((pt[Jt]=new pt[Jt].constructor(pt[Jt])).buffer);return ut},Le=function(pt,ut,Jt,Zt){var At;if(!Ne[Jt]){for(var Pt="",vt={},Ft=pt.length-1,gr=0;gr<Ft;++gr)At=pe(pt[gr],Pt,vt),Pt=At[0],vt=At[1];Ne[Jt]=pe(pt[Ft],Pt,vt)}var or=ge({},Ne[Jt][1]);return E(Ne[Jt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+ut.toString()+"}",Jt,or,de(or),Zt)},Q=function(){return[T,g,S,m,h,c,i,s,y,C,o,f,w,b,_,O,L,D,bt,Z,ve]},ce=function(){return[T,g,S,m,h,c,n,e,A,p,x,v,o,z,V,f,N,M,F,R,j,B,K,U,O,L,Y,ae,Ht,Z]},Ke=function(){return[ze,Oe,Te,se,J]},ee=function(){return[it,et]},X=function(){return[gt,Te,$]},G=function(){return[Ge]},Z=function(pt){return postMessage(pt,[pt.buffer])},ve=function(pt){return pt&&pt.size&&new T(pt.size)},ue=function(pt,ut,Jt,Zt,At,Pt){var vt=Le(Jt,Zt,At,function(Ft,gr){vt.terminate(),Pt(Ft,gr)});return ut.consume||(pt=new T(pt)),vt.postMessage([pt,ut],[pt.buffer]),function(){vt.terminate()}},_e=function(pt){return pt.ondata=function(ut,Jt){return postMessage([ut,Jt],[ut.buffer])},function(ut){return pt.push(ut.data[0],ut.data[1])}},xe=function(pt,ut,Jt,Zt,At){var Pt,vt=Le(pt,Zt,At,function(Ft,gr){Ft?(vt.terminate(),ut.ondata.call(ut,Ft)):(gr[1]&&vt.terminate(),ut.ondata.call(ut,Ft,gr[0],gr[1]))});vt.postMessage(Jt),ut.push=function(Ft,gr){if(Pt)throw"stream finished";if(!ut.ondata)throw"no stream handler";vt.postMessage([Ft,Pt=gr],[Ft.buffer])},ut.terminate=function(){vt.terminate()}},oe=function(pt,ut){return pt[ut]|pt[ut+1]<<8},fe=function(pt,ut){return(pt[ut]|pt[ut+1]<<8|pt[ut+2]<<16)+(pt[ut+3]<<23)*2},Te=function(pt,ut,Jt){for(;Jt;++ut)pt[ut]=Jt,Jt>>>=8},ze=function(pt,ut){var Jt=ut.filename;if(pt[0]=31,pt[1]=139,pt[2]=8,pt[8]=ut.level<2?4:ut.level==9?2:0,pt[9]=3,ut.mtime!=0&&Te(pt,4,Math.floor(new Date(ut.mtime||Date.now())/1e3)),Jt){pt[3]=8;for(var Zt=0;Zt<=Jt.length;++Zt)pt[Zt+10]=Jt.charCodeAt(Zt)}},it=function(pt){if(pt[0]!=31||pt[1]!=139||pt[2]!=8)throw"invalid gzip data";var ut=pt[3],Jt=10;ut&4&&(Jt+=pt[10]|(pt[11]<<8)+2);for(var Zt=(ut>>3&1)+(ut>>4&1);Zt>0;Zt-=!pt[Jt++]);return Jt+(ut&2)},et=function(pt){var ut=pt.length;return(pt[ut-4]|pt[ut-3]<<8|pt[ut-2]<<16)+2*(pt[ut-1]<<23)},Oe=function(pt){return 10+(pt.filename&&pt.filename.length+1||0)},gt=function(pt,ut){var Jt=ut.level,Zt=Jt==0?0:Jt<6?1:Jt==9?3:2;pt[0]=120,pt[1]=Zt<<6|(Zt?32-2*Zt:1)},Ge=function(pt){if((pt[0]&15)!=8||pt[0]>>>4>7||(pt[0]<<8|pt[1])%31)throw"invalid zlib data";if(pt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function wt(Ut,pt){return!pt&&typeof Ut=="function"&&(pt=Ut,Ut={}),this.ondata=pt,Ut}var xt=function(){function Ut(pt,ut){!ut&&typeof pt=="function"&&(ut=pt,pt={}),this.ondata=ut,this.o=pt||{}}return Ut.prototype.p=function(pt,ut){this.ondata(ae(pt,this.o,0,0,!ut),ut)},Ut.prototype.push=function(pt,ut){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=ut,this.p(pt,ut||!1)},Ut}(),Ct=function(){function Ut(pt,ut){xe([ce,function(){return[_e,xt]}],this,wt.call(this,pt,ut),function(Jt){var Zt=new xt(Jt.data);onmessage=_e(Zt)},6)}return Ut}();function Dt(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return ue(Ut,pt,[ce],function(Jt){return Z(Ht(Jt.data[0],Jt.data[1]))},0,ut)}function Ht(Ut,pt){return pt===void 0&&(pt={}),ae(Ut,pt,0,0)}var Je=function(){function Ut(pt){this.s={},this.p=new T(0),this.ondata=pt}return Ut.prototype.e=function(pt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var ut=this.p.length,Jt=new T(ut+pt.length);Jt.set(this.p),Jt.set(pt,ut),this.p=Jt},Ut.prototype.c=function(pt){this.d=this.s.i=pt||!1;var ut=this.s.b,Jt=D(this.p,this.o,this.s);this.ondata(L(Jt,ut,this.s.b),this.d),this.o=L(Jt,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8>>0),this.s.p&=7},Ut.prototype.push=function(pt,ut){this.e(pt),this.c(ut)},Ut}(),ye=function(){function Ut(pt){this.ondata=pt,xe([Q,function(){return[_e,Je]}],this,0,function(){var ut=new Je;onmessage=_e(ut)},7)}return Ut}();function ie(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return ue(Ut,pt,[Q],function(Jt){return Z(bt(Jt.data[0],ve(Jt.data[1])))},1,ut)}function bt(Ut,pt){return D(Ut,pt)}var qe=function(){function Ut(pt,ut){this.c=se(),this.l=0,this.v=1,xt.call(this,pt,ut)}return Ut.prototype.push=function(pt,ut){xt.prototype.push.call(this,pt,ut)},Ut.prototype.p=function(pt,ut){this.c.p(pt),this.l+=pt.length;var Jt=ae(pt,this.o,this.v&&Oe(this.o),ut&&8,!ut);this.v&&(ze(Jt,this.o),this.v=0),ut&&(Te(Jt,Jt.length-8,this.c.d()),Te(Jt,Jt.length-4,this.l)),this.ondata(Jt,ut)},Ut}(),me=function(){function Ut(pt,ut){xe([ce,Ke,function(){return[_e,xt,qe]}],this,wt.call(this,pt,ut),function(Jt){var Zt=new qe(Jt.data);onmessage=_e(Zt)},8)}return Ut}();function Rt(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return ue(Ut,pt,[ce,Ke,function(){return[er]}],function(Jt){return Z(er(Jt.data[0],Jt.data[1]))},2,ut)}function er(Ut,pt){pt===void 0&&(pt={});var ut=se(),Jt=Ut.length;ut.p(Ut);var Zt=ae(Ut,pt,Oe(pt),8),At=Zt.length;return ze(Zt,pt),Te(Zt,At-8,ut.d()),Te(Zt,At-4,Jt),Zt}var ct=function(){function Ut(pt){this.v=1,Je.call(this,pt)}return Ut.prototype.push=function(pt,ut){if(Je.prototype.e.call(this,pt),this.v){var Jt=it(this.p);if(Jt>=this.p.length&&!ut)return;this.p=this.p.subarray(Jt),this.v=0}if(ut){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Je.prototype.c.call(this,ut)},Ut}(),zt=function(){function Ut(pt){this.ondata=pt,xe([Q,ee,function(){return[_e,Je,ct]}],this,0,function(){var ut=new ct;onmessage=_e(ut)},9)}return Ut}();function sr(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return ue(Ut,pt,[Q,ee,function(){return[Kr]}],function(Jt){return Z(Kr(Jt.data[0]))},3,ut)}function Kr(Ut,pt){return D(Ut.subarray(it(Ut),-8),pt||new T(et(Ut)))}var ar=function(){function Ut(pt,ut){this.c=$(),this.v=1,xt.call(this,pt,ut)}return Ut.prototype.push=function(pt,ut){xt.prototype.push.call(this,pt,ut)},Ut.prototype.p=function(pt,ut){this.c.p(pt);var Jt=ae(pt,this.o,this.v&&2,ut&&4,!ut);this.v&&(gt(Jt,this.o),this.v=0),ut&&Te(Jt,Jt.length-4,this.c.d()),this.ondata(Jt,ut)},Ut}(),nr=function(){function Ut(pt,ut){xe([ce,X,function(){return[_e,xt,ar]}],this,wt.call(this,pt,ut),function(Jt){var Zt=new ar(Jt.data);onmessage=_e(Zt)},10)}return Ut}();function Lt(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return ue(Ut,pt,[ce,X,function(){return[st]}],function(Jt){return Z(st(Jt.data[0],Jt.data[1]))},4,ut)}function st(Ut,pt){pt===void 0&&(pt={});var ut=$();ut.p(Ut);var Jt=ae(Ut,pt,2,4);return gt(Jt,pt),Te(Jt,Jt.length-4,ut.d()),Jt}var Qe=function(){function Ut(pt){this.v=1,Je.call(this,pt)}return Ut.prototype.push=function(pt,ut){if(Je.prototype.e.call(this,pt),this.v){if(this.p.length<2&&!ut)return;this.p=this.p.subarray(2),this.v=0}if(ut){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Je.prototype.c.call(this,ut)},Ut}(),qt=function(){function Ut(pt){this.ondata=pt,xe([Q,G,function(){return[_e,Je,Qe]}],this,0,function(){var ut=new Qe;onmessage=_e(ut)},11)}return Ut}();function Sr(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return ue(Ut,pt,[Q,G,function(){return[Ar]}],function(Jt){return Z(Ar(Jt.data[0],ve(Jt.data[1])))},5,ut)}function Ar(Ut,pt){return D((Ge(Ut),Ut.subarray(2,-4)),pt)}var hr=function(){function Ut(pt){this.G=ct,this.I=Je,this.Z=Qe,this.ondata=pt}return Ut.prototype.push=function(pt,ut){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(pt,ut);else{if(this.p&&this.p.length){var Jt=new T(this.p.length+pt.length);Jt.set(this.p),Jt.set(pt,this.p.length)}else this.p=pt;if(this.p.length>2){var Zt=this,At=function(){Zt.ondata.apply(Zt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(At):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(At):new this.Z(At),this.s.push(this.p,ut),this.p=null}}},Ut}(),vn=function(){function Ut(pt){this.G=zt,this.I=ye,this.Z=qt,this.ondata=pt}return Ut.prototype.push=function(pt,ut){hr.prototype.push.call(this,pt,ut)},Ut}();function Zr(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";return Ut[0]==31&&Ut[1]==139&&Ut[2]==8?sr(Ut,pt,ut):(Ut[0]&15)!=8||Ut[0]>>4>7||(Ut[0]<<8|Ut[1])%31?ie(Ut,pt,ut):Sr(Ut,pt,ut)}function Ln(Ut,pt){return Ut[0]==31&&Ut[1]==139&&Ut[2]==8?Kr(Ut,pt):(Ut[0]&15)!=8||Ut[0]>>4>7||(Ut[0]<<8|Ut[1])%31?bt(Ut,pt):Ar(Ut,pt)}var $e=function Ut(pt,ut,Jt,Zt){for(var At in pt){var Pt=pt[At],vt=ut+At;Pt instanceof T?Jt[vt]=[Pt,Zt]:Array.isArray(Pt)?Jt[vt]=[Pt[0],ge(Zt,Pt[1])]:Ut(Pt,vt+"/",Jt,Zt)}};function tt(Ut,pt){var ut=Ut.length;if(!pt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Ut);for(var Jt=new T(Ut.length+(Ut.length>>>1)),Zt=0,At=function(or){Jt[Zt++]=or},Pt=0;Pt<ut;++Pt){if(Zt+5>Jt.length){var vt=new T(Zt+8+(ut-Pt<<1));vt.set(Jt),Jt=vt}var Ft=Ut.charCodeAt(Pt);Ft<128||pt?At(Ft):Ft<2048?(At(192|Ft>>>6),At(128|Ft&63)):Ft>55295&&Ft<57344?(Ft=65536+(Ft&1023<<10)|Ut.charCodeAt(++Pt)&1023,At(240|Ft>>>18),At(128|Ft>>>12&63),At(128|Ft>>>6&63),At(128|Ft&63)):(At(224|Ft>>>12),At(128|Ft>>>6&63),At(128|Ft&63))}return L(Jt,0,Zt)}function Ee(Ut,pt){var ut="";if(!pt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Ut);for(var Jt=0;Jt<Ut.length;){var Zt=Ut[Jt++];Zt<128||pt?ut+=String.fromCharCode(Zt):Zt<224?ut+=String.fromCharCode((Zt&31)<<6|Ut[Jt++]&63):Zt<240?ut+=String.fromCharCode((Zt&15)<<12|(Ut[Jt++]&63)<<6|Ut[Jt++]&63):(Zt=((Zt&15)<<18|(Ut[Jt++]&63)<<12|(Ut[Jt++]&63)<<6|Ut[Jt++]&63)-65536,ut+=String.fromCharCode(55296|Zt>>10,56320|Zt&1023))}return ut}var Re=function(pt,ut){return ut+30+oe(pt,ut+26)+oe(pt,ut+28)},je=function(pt,ut,Jt){var Zt=oe(pt,ut+28),At=Ee(pt.subarray(ut+46,ut+46+Zt),!(oe(pt,ut+8)&2048)),Pt=ut+46+Zt,vt=Jt?nt(pt,Pt):[fe(pt,ut+20),fe(pt,ut+24),fe(pt,ut+42)],Ft=vt[0],gr=vt[1],or=vt[2];return[oe(pt,ut+10),Ft,gr,At,Pt+oe(pt,ut+30)+oe(pt,ut+32),or]},nt=function(pt,ut){for(;oe(pt,ut)!=1;ut+=4+oe(pt,ut+2));return[fe(pt,ut+12),fe(pt,ut+4),fe(pt,ut+20)]},Vt=function(pt,ut,Jt,Zt,At,Pt,vt,Ft,gr,or){var ur=Pt.length,Yr=Zt.length;Te(pt,ut,gr!=null?33639248:67324752),ut+=4,gr!=null&&(pt[ut]=20,ut+=2),pt[ut]=20,ut+=2,pt[ut++]=or==8&&(Ft.level==1?6:Ft.level<6?4:Ft.level==9?2:0),pt[ut++]=vt&&8,pt[ut]=or,ut+=2;var Jr=new Date(Ft.mtime||Date.now()),Tn=Jr.getFullYear()-1980;if(Tn<0||Tn>119)throw"date not in range 1980-2099";Te(pt,ut,(Tn<<24)*2|Jr.getMonth()+1<<21|Jr.getDate()<<16|Jr.getHours()<<11|Jr.getMinutes()<<5|Jr.getSeconds()>>>1),ut+=4,Te(pt,ut,Jt),Te(pt,ut+4,Yr),Te(pt,ut+8,At),Te(pt,ut+12,ur),ut+=16,gr!=null&&(Te(pt,ut+=10,gr),ut+=4),pt.set(Pt,ut),ut+=ur,gr==null&&pt.set(Zt,ut)},Bt=function(pt,ut,Jt,Zt,At){Te(pt,ut,101010256),Te(pt,ut+8,Jt),Te(pt,ut+10,Jt),Te(pt,ut+12,Zt),Te(pt,ut+16,At)};function Xt(Ut,pt,ut){if(ut||(ut=pt,pt={}),typeof ut!="function")throw"no callback";var Jt={};$e(Ut,"",Jt,pt);var Zt=Object.keys(Jt),At=Zt.length,Pt=0,vt=0,Ft=At,gr=new Array(At),or=[],ur=function(){for(var zn=0;zn<or.length;++zn)or[zn]()},Yr=function(){var zn=new T(vt+22),qn=Pt,Ai=vt-Pt;vt=0;for(var Mi=0;Mi<Ft;++Mi){var Ye=gr[Mi];try{Vt(zn,vt,Ye.c,Ye.d,Ye.m,Ye.n,Ye.u,Ye.p,null,Ye.t),Vt(zn,Pt,Ye.c,Ye.d,Ye.m,Ye.n,Ye.u,Ye.p,vt,Ye.t),Pt+=46+Ye.n.length,vt+=30+Ye.n.length+Ye.d.length}catch(Ce){return ut(Ce,null)}}Bt(zn,Pt,gr.length,Ai,qn),ut(null,zn)};At||Yr();for(var Jr=function(zn){var qn=Zt[zn],Ai=Jt[qn],Mi=Ai[0],Ye=Ai[1],Ce=se(),ke=Mi.length;Ce.p(Mi);var Fe=tt(qn),Ve=Fe.length,We=Ye.level==0?0:8,Ze=function(lt,kt){if(lt)ur(),ut(lt,null);else{var wr=kt.length;gr[zn]={t:We,d:kt,m:ke,c:Ce.d(),u:qn.length!=wr,n:Fe,p:Ye},Pt+=30+Ve+wr,vt+=76+2*Ve+wr,--At||Yr()}};if(Fe.length>65535&&Ze("filename too long",null),!We)Ze(null,Mi);else if(ke<16e4)try{Ze(null,Ht(Mi,Ye))}catch(yt){Ze(yt,null)}else or.push(Dt(Mi,Ye,Ze))},Tn=0;Tn<Ft;++Tn)Jr(Tn);return ur}function Rr(Ut,pt){pt===void 0&&(pt={});var ut={},Jt=[];$e(Ut,"",ut,pt);var Zt=0,At=0;for(var Pt in ut){var vt=ut[Pt],Ft=vt[0],gr=vt[1],or=gr.level==0?0:8,ur=tt(Pt),Yr=ur.length;if(ur.length>65535)throw"filename too long";var Jr=or?Ht(Ft,gr):Ft,Tn=Jr.length,Dn=se();Dn.p(Ft),Jt.push({t:or,d:Jr,m:Ft.length,c:Dn.d(),u:Pt.length!=Yr,n:ur,o:Zt,p:gr}),Zt+=30+Yr+Tn,At+=76+2*Yr+Tn}for(var zn=new T(At+22),qn=Zt,Ai=At-Zt,Mi=0;Mi<Jt.length;++Mi){var Ye=Jt[Mi];Vt(zn,Ye.o,Ye.c,Ye.d,Ye.m,Ye.n,Ye.u,Ye.p,null,Ye.t),Vt(zn,Zt,Ye.c,Ye.d,Ye.m,Ye.n,Ye.u,Ye.p,Ye.o,Ye.t),Zt+=46+Ye.n.length}return Bt(zn,Zt,Jt.length,Ai,qn),zn}function Br(Ut,pt){if(typeof pt!="function")throw"no callback";for(var ut=[],Jt=function(){for(var Jr=0;Jr<ut.length;++Jr)ut[Jr]()},Zt={},At=Ut.length-22;fe(Ut,At)!=101010256;--At)if(!At||Ut.length-At>65558){pt("invalid zip file",null);return}var Pt=oe(Ut,At+8);Pt||pt(null,{});var vt=Pt,Ft=fe(Ut,At+16),gr=Ft==4294967295;if(gr){if(At=fe(Ut,At-12),fe(Ut,At)!=101075792)throw"invalid zip file";vt=Pt=fe(Ut,At+32),Ft=fe(Ut,At+48)}for(var or=function(Jr){var Tn=je(Ut,Ft,gr),Dn=Tn[0],zn=Tn[1],qn=Tn[2],Ai=Tn[3],Mi=Tn[4],Ye=Tn[5],Ce=Re(Ut,Ye);Ft=Mi;var ke=function(We,Ze){We?(Jt(),pt(We,null)):(Zt[Ai]=Ze,--Pt||pt(null,Zt))};if(!Dn)ke(null,L(Ut,Ce,Ce+zn));else if(Dn==8){var Fe=Ut.subarray(Ce,Ce+zn);if(zn<32e4)try{ke(null,bt(Fe,new T(qn)))}catch(Ve){ke(Ve,null)}else ut.push(ie(Fe,{size:qn},ke))}else ke("unknown compression type "+Dn,null)},ur=0;ur<vt;++ur)or(ur);return Jt}function cn(Ut){for(var pt={},ut=Ut.length-22;fe(Ut,ut)!=101010256;--ut)if(!ut||Ut.length-ut>65558)throw"invalid zip file";var Jt=oe(Ut,ut+8);if(!Jt)return{};var Zt=fe(Ut,ut+16),At=Zt==4294967295;if(At){if(ut=fe(Ut,ut-12),fe(Ut,ut)!=101075792)throw"invalid zip file";Jt=fe(Ut,ut+32),Zt=fe(Ut,ut+48)}for(var Pt=0;Pt<Jt;++Pt){var vt=je(Ut,Zt,At),Ft=vt[0],gr=vt[1],or=vt[2],ur=vt[3],Yr=vt[4],Jr=vt[5],Tn=Re(Ut,Jr);if(Zt=Yr,!Ft)pt[ur]=L(Ut,Tn,Tn+gr);else if(Ft==8)pt[ur]=bt(Ut.subarray(Tn,Tn+gr),new T(or));else throw"unknown compression type "+Ft}return pt}},cv67:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(E){var T=I,g=T.lib,S=g.WordArray,m=g.Hasher,h=T.algo,c=[];(function(){for(var s=0;s<64;s++)c[s]=E.abs(E.sin(s+1))*4294967296|0})();var a=h.MD5=m.extend({_doReset:function(){this._hash=new S.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var l=0;l<16;l++){var u=o+l,f=e[u];e[u]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}var p=this._hash.words,v=e[o+0],A=e[o+1],y=e[o+2],x=e[o+3],C=e[o+4],w=e[o+5],b=e[o+6],_=e[o+7],O=e[o+8],L=e[o+9],D=e[o+10],N=e[o+11],M=e[o+12],F=e[o+13],R=e[o+14],j=e[o+15],B=p[0],K=p[1],U=p[2],z=p[3];B=r(B,K,U,z,v,7,c[0]),z=r(z,B,K,U,A,12,c[1]),U=r(U,z,B,K,y,17,c[2]),K=r(K,U,z,B,x,22,c[3]),B=r(B,K,U,z,C,7,c[4]),z=r(z,B,K,U,w,12,c[5]),U=r(U,z,B,K,b,17,c[6]),K=r(K,U,z,B,_,22,c[7]),B=r(B,K,U,z,O,7,c[8]),z=r(z,B,K,U,L,12,c[9]),U=r(U,z,B,K,D,17,c[10]),K=r(K,U,z,B,N,22,c[11]),B=r(B,K,U,z,M,7,c[12]),z=r(z,B,K,U,F,12,c[13]),U=r(U,z,B,K,R,17,c[14]),K=r(K,U,z,B,j,22,c[15]),B=i(B,K,U,z,A,5,c[16]),z=i(z,B,K,U,b,9,c[17]),U=i(U,z,B,K,N,14,c[18]),K=i(K,U,z,B,v,20,c[19]),B=i(B,K,U,z,w,5,c[20]),z=i(z,B,K,U,D,9,c[21]),U=i(U,z,B,K,j,14,c[22]),K=i(K,U,z,B,C,20,c[23]),B=i(B,K,U,z,L,5,c[24]),z=i(z,B,K,U,R,9,c[25]),U=i(U,z,B,K,x,14,c[26]),K=i(K,U,z,B,O,20,c[27]),B=i(B,K,U,z,F,5,c[28]),z=i(z,B,K,U,y,9,c[29]),U=i(U,z,B,K,_,14,c[30]),K=i(K,U,z,B,M,20,c[31]),B=n(B,K,U,z,w,4,c[32]),z=n(z,B,K,U,O,11,c[33]),U=n(U,z,B,K,N,16,c[34]),K=n(K,U,z,B,R,23,c[35]),B=n(B,K,U,z,A,4,c[36]),z=n(z,B,K,U,C,11,c[37]),U=n(U,z,B,K,_,16,c[38]),K=n(K,U,z,B,D,23,c[39]),B=n(B,K,U,z,F,4,c[40]),z=n(z,B,K,U,v,11,c[41]),U=n(U,z,B,K,x,16,c[42]),K=n(K,U,z,B,b,23,c[43]),B=n(B,K,U,z,L,4,c[44]),z=n(z,B,K,U,M,11,c[45]),U=n(U,z,B,K,j,16,c[46]),K=n(K,U,z,B,y,23,c[47]),B=t(B,K,U,z,v,6,c[48]),z=t(z,B,K,U,_,10,c[49]),U=t(U,z,B,K,R,15,c[50]),K=t(K,U,z,B,w,21,c[51]),B=t(B,K,U,z,M,6,c[52]),z=t(z,B,K,U,x,10,c[53]),U=t(U,z,B,K,D,15,c[54]),K=t(K,U,z,B,A,21,c[55]),B=t(B,K,U,z,O,6,c[56]),z=t(z,B,K,U,j,10,c[57]),U=t(U,z,B,K,b,15,c[58]),K=t(K,U,z,B,F,21,c[59]),B=t(B,K,U,z,C,6,c[60]),z=t(z,B,K,U,N,10,c[61]),U=t(U,z,B,K,y,15,c[62]),K=t(K,U,z,B,L,21,c[63]),p[0]=p[0]+B|0,p[1]=p[1]+K|0,p[2]=p[2]+U|0,p[3]=p[3]+z|0},_doFinalize:function(){var e=this._data,o=e.words,l=this._nDataBytes*8,u=e.sigBytes*8;o[u>>>5]|=128<<24-u%32;var f=E.floor(l/4294967296),p=l;o[(u+64>>>9<<4)+15]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,o[(u+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,e.sigBytes=(o.length+1)*4,this._process();for(var v=this._hash,A=v.words,y=0;y<4;y++){var x=A[y];A[y]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return v},clone:function(){var e=m.clone.call(this);return e._hash=this._hash.clone(),e}});function r(s,e,o,l,u,f,p){var v=s+(e&o|~e&l)+u+p;return(v<<f|v>>>32-f)+e}function i(s,e,o,l,u,f,p){var v=s+(e&l|o&~l)+u+p;return(v<<f|v>>>32-f)+e}function n(s,e,o,l,u,f,p){var v=s+(e^o^l)+u+p;return(v<<f|v>>>32-f)+e}function t(s,e,o,l,u,f,p){var v=s+(o^(e|~l))+u+p;return(v<<f|v>>>32-f)+e}T.MD5=m._createHelper(a),T.HmacMD5=m._createHmacHelper(a)}(Math),I.MD5})},czTT:function(H,k,d){},d4KN:function(H,k,d){var I=d("ProS"),E=d("bYtY");function T(g,S){E.each(S,function(m){m.update="updateView",I.registerAction(m,function(h,c){var a={};return c.eachComponent({mainType:"series",subType:g,query:h},function(r){r[m.method]&&r[m.method](h.name,h.dataIndex);var i=r.getData();i.each(function(n){var t=i.getName(n);a[t]=r.isSelected(t)||!1})}),{name:h.name,selected:a,seriesId:h.seriesId}})})}H.exports=T},dBmv:function(H,k,d){var I=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),I.registerPreprocessor(E)},"dF/Y":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="DownloadOutlined";var h=k.a=E.forwardRef(m)},dMvE:function(H,k){var d={linear:function(T){return T},quadraticIn:function(T){return T*T},quadraticOut:function(T){return T*(2-T)},quadraticInOut:function(T){return(T*=2)<1?.5*T*T:-.5*(--T*(T-2)-1)},cubicIn:function(T){return T*T*T},cubicOut:function(T){return--T*T*T+1},cubicInOut:function(T){return(T*=2)<1?.5*T*T*T:.5*((T-=2)*T*T+2)},quarticIn:function(T){return T*T*T*T},quarticOut:function(T){return 1- --T*T*T*T},quarticInOut:function(T){return(T*=2)<1?.5*T*T*T*T:-.5*((T-=2)*T*T*T-2)},quinticIn:function(T){return T*T*T*T*T},quinticOut:function(T){return--T*T*T*T*T+1},quinticInOut:function(T){return(T*=2)<1?.5*T*T*T*T*T:.5*((T-=2)*T*T*T*T+2)},sinusoidalIn:function(T){return 1-Math.cos(T*Math.PI/2)},sinusoidalOut:function(T){return Math.sin(T*Math.PI/2)},sinusoidalInOut:function(T){return .5*(1-Math.cos(Math.PI*T))},exponentialIn:function(T){return T===0?0:Math.pow(1024,T-1)},exponentialOut:function(T){return T===1?1:1-Math.pow(2,-10*T)},exponentialInOut:function(T){return T===0?0:T===1?1:(T*=2)<1?.5*Math.pow(1024,T-1):.5*(-Math.pow(2,-10*(T-1))+2)},circularIn:function(T){return 1-Math.sqrt(1-T*T)},circularOut:function(T){return Math.sqrt(1- --T*T)},circularInOut:function(T){return(T*=2)<1?-.5*(Math.sqrt(1-T*T)-1):.5*(Math.sqrt(1-(T-=2)*T)+1)},elasticIn:function(T){var g,S=.1,m=.4;return T===0?0:T===1?1:(!S||S<1?(S=1,g=m/4):g=m*Math.asin(1/S)/(2*Math.PI),-(S*Math.pow(2,10*(T-=1))*Math.sin((T-g)*(2*Math.PI)/m)))},elasticOut:function(T){var g,S=.1,m=.4;return T===0?0:T===1?1:(!S||S<1?(S=1,g=m/4):g=m*Math.asin(1/S)/(2*Math.PI),S*Math.pow(2,-10*T)*Math.sin((T-g)*(2*Math.PI)/m)+1)},elasticInOut:function(T){var g,S=.1,m=.4;return T===0?0:T===1?1:(!S||S<1?(S=1,g=m/4):g=m*Math.asin(1/S)/(2*Math.PI),(T*=2)<1?-.5*(S*Math.pow(2,10*(T-=1))*Math.sin((T-g)*(2*Math.PI)/m)):S*Math.pow(2,-10*(T-=1))*Math.sin((T-g)*(2*Math.PI)/m)*.5+1)},backIn:function(T){var g=1.70158;return T*T*((g+1)*T-g)},backOut:function(T){var g=1.70158;return--T*T*((g+1)*T+g)+1},backInOut:function(T){var g=1.70158*1.525;return(T*=2)<1?.5*(T*T*((g+1)*T-g)):.5*((T-=2)*T*((g+1)*T+g)+2)},bounceIn:function(T){return 1-d.bounceOut(1-T)},bounceOut:function(T){return T<1/2.75?7.5625*T*T:T<2/2.75?7.5625*(T-=1.5/2.75)*T+.75:T<2.5/2.75?7.5625*(T-=2.25/2.75)*T+.9375:7.5625*(T-=2.625/2.75)*T+.984375},bounceInOut:function(T){return T<.5?d.bounceIn(T*2)*.5:d.bounceOut(T*2-1)*.5+.5}},I=d;H.exports=I},diRs:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("q1tI"),g=d.n(T),S=d("3S7+"),m=d("H84U"),h=d("bogI"),c=function(r,i){var n={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&i.indexOf(t)<0&&(n[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(r);s<t.length;s++)i.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(r,t[s])&&(n[t[s]]=r[t[s]]);return n},a=T.forwardRef(function(r,i){var n=r.prefixCls,t=r.title,s=r.content,e=c(r,["prefixCls","title","content"]),o=T.useContext(m.b),l=o.getPrefixCls,u=function(v){return T.createElement(T.Fragment,null,t&&T.createElement("div",{className:"".concat(v,"-title")},Object(h.a)(t)),T.createElement("div",{className:"".concat(v,"-inner-content")},Object(h.a)(s)))},f=l("popover",n);return T.createElement(S.a,E()({},e,{prefixCls:f,ref:i,overlay:u(f)}))});a.displayName="Popover",a.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},k.a=a},digP:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={icon:function(T,g){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:g}},{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:T}}]}},name:"file",theme:"twotone"};k.default=I},dmGj:function(H,k,d){var I=d("DEFe"),E=d("ProS"),T=E.extendComponentView({type:"geo",init:function(g,S){var m=new I(S,!0);this._mapDraw=m,this.group.add(m.group)},render:function(g,S,m,h){if(h&&h.type==="geoToggleSelect"&&h.from===this.uid)return;var c=this._mapDraw;g.get("show")?c.draw(g,S,m,this,h):this._mapDraw.group.removeAll(),this.group.silent=g.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});H.exports=T},dnwI:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("YH21"),g=d("Kagy"),S=d("IUWy"),m=g.toolbox.dataView,h=new Array(60).join("-"),c=" ";function a(A){var y={},x=[],C=[];return A.eachRawSeries(function(w){var b=w.coordinateSystem;if(b&&(b.type==="cartesian2d"||b.type==="polar")){var _=b.getBaseAxis();if(_.type==="category"){var O=_.dim+"_"+_.index;y[O]||(y[O]={categoryAxis:_,valueAxis:b.getOtherAxis(_),series:[]},C.push({axisDim:_.dim,axisIndex:_.index})),y[O].series.push(w)}else x.push(w)}else x.push(w)}),{seriesGroupByCategoryAxis:y,other:x,meta:C}}function r(A){var y=[];return E.each(A,function(x,C){var w=x.categoryAxis,b=x.valueAxis,_=b.dim,O=[" "].concat(E.map(x.series,function(R){return R.name})),L=[w.model.getCategories()];E.each(x.series,function(R){L.push(R.getRawData().mapArray(_,function(j){return j}))});for(var D=[O.join(c)],N=0;N<L[0].length;N++){for(var M=[],F=0;F<L.length;F++)M.push(L[F][N]);D.push(M.join(c))}y.push(D.join(`
|
|
|
`))}),y.join(`
|
|
|
|
|
|
`+h+`
|
|
|
|
|
|
`)}function i(A){return E.map(A,function(y){var x=y.getRawData(),C=[y.name],w=[];return x.each(x.dimensions,function(){for(var b=arguments.length,_=arguments[b-1],O=x.getName(_),L=0;L<b-1;L++)w[L]=arguments[L];C.push((O?O+c:"")+w.join(c))}),C.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+h+`
|
|
|
|
|
|
`)}function n(A){var y=a(A);return{value:E.filter([r(y.seriesGroupByCategoryAxis),i(y.other)],function(x){return x.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+h+`
|
|
|
|
|
|
`),meta:y.meta}}function t(A){return A.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s(A){var y=A.slice(0,A.indexOf(`
|
|
|
`));if(y.indexOf(c)>=0)return!0}var e=new RegExp("["+c+"]+","g");function o(A){for(var y=A.split(/\n+/g),x=t(y.shift()).split(e),C=[],w=E.map(x,function(L){return{name:L,data:[]}}),b=0;b<y.length;b++){var _=t(y[b]).split(e);C.push(_.shift());for(var O=0;O<_.length;O++)w[O]&&(w[O].data[b]=_[O])}return{series:w,categories:C}}function l(A){for(var y=A.split(/\n+/g),x=t(y.shift()),C=[],w=0;w<y.length;w++){var b=t(y[w]).split(e),_="",O,L=!1;isNaN(b[0])?(L=!0,_=b[0],b=b.slice(1),C[w]={name:_,value:[]},O=C[w].value):O=C[w]=[];for(var D=0;D<b.length;D++)O.push(+b[D]);O.length===1&&(L?C[w].value=O[0]:C[w]=O[0])}return{name:x,data:C}}function u(A,y){var x=A.split(new RegExp(`
|
|
|
*`+h+`
|
|
|
*`,"g")),C={series:[]};return E.each(x,function(w,b){if(s(w)){var _=o(w),O=y[b],L=O.axisDim+"Axis";O&&(C[L]=C[L]||[],C[L][O.axisIndex]={data:_.categories},C.series=C.series.concat(_.series))}else{var _=l(w);C.series.push(_)}}),C}function f(A){this._dom=null,this.model=A}f.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:E.clone(m.title),lang:E.clone(m.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},f.prototype.onclick=function(A,y){var x=y.getDom(),C=this.model;this._dom&&x.removeChild(this._dom);var w=document.createElement("div");w.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",w.style.backgroundColor=C.get("backgroundColor")||"#fff";var b=document.createElement("h4"),_=C.get("lang")||[];b.innerHTML=_[0]||C.get("title"),b.style.cssText="margin: 10px 20px;",b.style.color=C.get("textColor");var O=document.createElement("div"),L=document.createElement("textarea");O.style.cssText="display:block;width:100%;overflow:auto;";var D=C.get("optionToContent"),N=C.get("contentToOption"),M=n(A);if(typeof D=="function"){var F=D(y.getOption());typeof F=="string"?O.innerHTML=F:E.isDom(F)&&O.appendChild(F)}else O.appendChild(L),L.readOnly=C.get("readOnly"),L.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",L.style.color=C.get("textColor"),L.style.borderColor=C.get("textareaBorderColor"),L.style.backgroundColor=C.get("textareaColor"),L.value=M.value;var R=M.meta,j=document.createElement("div");j.style.cssText="position:absolute;bottom:0;left:0;right:0;";var B="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",K=document.createElement("div"),U=document.createElement("div");B+=";background-color:"+C.get("buttonColor"),B+=";color:"+C.get("buttonTextColor");var z=this;function V(){x.removeChild(w),z._dom=null}T.addEventListener(K,"click",V),T.addEventListener(U,"click",function(){var Y;try{typeof N=="function"?Y=N(O,y.getOption()):Y=u(L.value,R)}catch(J){throw V(),new Error("Data view format error "+J)}Y&&y.dispatchAction({type:"changeDataView",newOption:Y}),V()}),K.innerHTML=_[1],U.innerHTML=_[2],U.style.cssText=B,K.style.cssText=B,!C.get("readOnly")&&j.appendChild(U),j.appendChild(K),w.appendChild(b),w.appendChild(O),w.appendChild(j),O.style.height=x.clientHeight-80+"px",x.appendChild(w),this._dom=w},f.prototype.remove=function(A,y){this._dom&&y.getDom().removeChild(this._dom)},f.prototype.dispose=function(A,y){this.remove(A,y)};function p(A,y){return E.map(A,function(x,C){var w=y&&y[C];return E.isObject(w)&&!E.isArray(w)?(E.isObject(x)&&!E.isArray(x)&&(x=x.value),E.defaults({value:x},w)):x})}S.register("dataView",f),I.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(A,y){var x=[];E.each(A.newOption.series,function(C){var w=y.getSeriesByName(C.name)[0];if(!w)x.push(E.extend({type:"scatter"},C));else{var b=w.get("data");x.push({name:C.name,data:p(C.data,b)})}}),y.mergeOption(E.defaults({series:x},A.newOption))});var v=f;H.exports=v},dqUG:function(H,k,d){var I=d("Gev7"),E=d("bYtY"),T=d("6GrX"),g=d("pzxd"),S=d("gut8"),m=S.ContextCachedBy,h=function(r){I.call(this,r)};h.prototype={constructor:h,type:"text",brush:function(r,i){var n=this.style;this.__dirty&&g.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var t=n.text;if(t!=null&&(t+=""),!g.needDrawText(t,n)){r.__attrCachedBy=m.NONE;return}this.setTransform(r),g.renderText(this,r,t,n,null,i),this.restoreTransform(r)},getBoundingRect:function(){var r=this.style;if(this.__dirty&&g.normalizeTextStyle(r,!0),!this._rect){var i=r.text;i!=null?i+="":i="";var n=T.getBoundingRect(r.text+"",r.font,r.textAlign,r.textVerticalAlign,r.textPadding,r.textLineHeight,r.rich);if(n.x+=r.x||0,n.y+=r.y||0,g.getStroke(r.textStroke,r.textStrokeWidth)){var t=r.textStrokeWidth;n.x-=t/2,n.y-=t/2,n.width+=t,n.height+=t}this._rect=n}return this._rect}},E.inherits(h,I);var c=h;H.exports=c},dt0z:function(H,k,d){var I=d("zoYe");function E(T){return T==null?"":I(T)}H.exports=E},dtIV:function(H,k,d){"use strict";d.r(k),function(I){d.d(k,"AcroForm",function(){return qe}),d.d(k,"AcroFormAppearance",function(){return ie}),d.d(k,"AcroFormButton",function(){return wt}),d.d(k,"AcroFormCheckBox",function(){return Ht}),d.d(k,"AcroFormChoiceField",function(){return et}),d.d(k,"AcroFormComboBox",function(){return gt}),d.d(k,"AcroFormEditBox",function(){return Ge}),d.d(k,"AcroFormListBox",function(){return Oe}),d.d(k,"AcroFormPasswordField",function(){return ye}),d.d(k,"AcroFormPushButton",function(){return xt}),d.d(k,"AcroFormRadioButton",function(){return Ct}),d.d(k,"AcroFormTextField",function(){return Je}),d.d(k,"GState",function(){return F}),d.d(k,"ShadingPattern",function(){return j}),d.d(k,"TilingPattern",function(){return B}),d.d(k,"jsPDF",function(){return K});var E=d("cDf5"),T=d.n(E),g=d("crp1");/** @license
|
|
|
*
|
|
|
* jsPDF - PDF Document creation from JavaScript
|
|
|
* Version 2.5.0 Built on 2021-12-21T09:44:51.866Z
|
|
|
* 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 S=function(){return typeof window!="undefined"?window:typeof I!="undefined"?I:typeof self!="undefined"?self:this}();function m(){S.console&&typeof S.console.log=="function"&&S.console.log.apply(S.console,arguments)}var h={log:m,warn:function(Ce){S.console&&(typeof S.console.warn=="function"?S.console.warn.apply(S.console,arguments):m.call(null,arguments))},error:function(Ce){S.console&&(typeof S.console.error=="function"?S.console.error.apply(S.console,arguments):m(Ce))}};function c(Ye,Ce,ke){var Fe=new XMLHttpRequest;Fe.open("GET",Ye),Fe.responseType="blob",Fe.onload=function(){t(Fe.response,Ce,ke)},Fe.onerror=function(){h.error("could not download file")},Fe.send()}function a(Ye){var Ce=new XMLHttpRequest;Ce.open("HEAD",Ye,!1);try{Ce.send()}catch(ke){}return Ce.status>=200&&Ce.status<=299}function r(Ye){try{Ye.dispatchEvent(new MouseEvent("click"))}catch(ke){var Ce=document.createEvent("MouseEvents");Ce.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Ye.dispatchEvent(Ce)}}var i,n,t=S.saveAs||((typeof window=="undefined"?"undefined":T()(window))!=="object"||window!==S?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Ye,Ce,ke){var Fe=S.URL||S.webkitURL,Ve=document.createElement("a");Ce=Ce||Ye.name||"download",Ve.download=Ce,Ve.rel="noopener",typeof Ye=="string"?(Ve.href=Ye,Ve.origin!==location.origin?a(Ve.href)?c(Ye,Ce,ke):r(Ve,Ve.target="_blank"):r(Ve)):(Ve.href=Fe.createObjectURL(Ye),setTimeout(function(){Fe.revokeObjectURL(Ve.href)},4e4),setTimeout(function(){r(Ve)},0))}:"msSaveOrOpenBlob"in navigator?function(Ye,Ce,ke){if(Ce=Ce||Ye.name||"download",typeof Ye=="string")if(a(Ye))c(Ye,Ce,ke);else{var Fe=document.createElement("a");Fe.href=Ye,Fe.target="_blank",setTimeout(function(){r(Fe)})}else navigator.msSaveOrOpenBlob(function(Ve,We){return We===void 0?We={autoBom:!1}:T()(We)!=="object"&&(h.warn("Deprecated: Expected third argument to be a object"),We={autoBom:!We}),We.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ve.type)?new Blob([String.fromCharCode(65279),Ve],{type:Ve.type}):Ve}(Ye,ke),Ce)}:function(Ye,Ce,ke,Fe){if((Fe=Fe||open("","_blank"))&&(Fe.document.title=Fe.document.body.innerText="downloading..."),typeof Ye=="string")return c(Ye,Ce,ke);var Ve=Ye.type==="application/octet-stream",We=/constructor/i.test(S.HTMLElement)||S.safari,Ze=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ze||Ve&&We)&&(typeof FileReader=="undefined"?"undefined":T()(FileReader))==="object"){var yt=new FileReader;yt.onloadend=function(){var wr=yt.result;wr=Ze?wr:wr.replace(/^data:[^;]*;/,"data:attachment/file;"),Fe?Fe.location.href=wr:location=wr,Fe=null},yt.readAsDataURL(Ye)}else{var lt=S.URL||S.webkitURL,kt=lt.createObjectURL(Ye);Fe?Fe.location=kt:location.href=kt,Fe=null,setTimeout(function(){lt.revokeObjectURL(kt)},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 s(Ye){var Ce;Ye=Ye||"",this.ok=!1,Ye.charAt(0)=="#"&&(Ye=Ye.substr(1,6)),Ye={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"}[Ye=(Ye=Ye.replace(/ /g,"")).toLowerCase()]||Ye;for(var ke=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(lt){return[parseInt(lt[1]),parseInt(lt[2]),parseInt(lt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(lt){return[parseInt(lt[1],16),parseInt(lt[2],16),parseInt(lt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(lt){return[parseInt(lt[1]+lt[1],16),parseInt(lt[2]+lt[2],16),parseInt(lt[3]+lt[3],16)]}}],Fe=0;Fe<ke.length;Fe++){var Ve=ke[Fe].re,We=ke[Fe].process,Ze=Ve.exec(Ye);Ze&&(Ce=We(Ze),this.r=Ce[0],this.g=Ce[1],this.b=Ce[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 yt=this.r.toString(16),lt=this.g.toString(16),kt=this.b.toString(16);return yt.length==1&&(yt="0"+yt),lt.length==1&&(lt="0"+lt),kt.length==1&&(kt="0"+kt),"#"+yt+lt+kt}}/**
|
|
|
* @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 e(Ye,Ce){var ke=Ye[0],Fe=Ye[1],Ve=Ye[2],We=Ye[3];ke=l(ke,Fe,Ve,We,Ce[0],7,-680876936),We=l(We,ke,Fe,Ve,Ce[1],12,-389564586),Ve=l(Ve,We,ke,Fe,Ce[2],17,606105819),Fe=l(Fe,Ve,We,ke,Ce[3],22,-1044525330),ke=l(ke,Fe,Ve,We,Ce[4],7,-176418897),We=l(We,ke,Fe,Ve,Ce[5],12,1200080426),Ve=l(Ve,We,ke,Fe,Ce[6],17,-1473231341),Fe=l(Fe,Ve,We,ke,Ce[7],22,-45705983),ke=l(ke,Fe,Ve,We,Ce[8],7,1770035416),We=l(We,ke,Fe,Ve,Ce[9],12,-1958414417),Ve=l(Ve,We,ke,Fe,Ce[10],17,-42063),Fe=l(Fe,Ve,We,ke,Ce[11],22,-1990404162),ke=l(ke,Fe,Ve,We,Ce[12],7,1804603682),We=l(We,ke,Fe,Ve,Ce[13],12,-40341101),Ve=l(Ve,We,ke,Fe,Ce[14],17,-1502002290),ke=u(ke,Fe=l(Fe,Ve,We,ke,Ce[15],22,1236535329),Ve,We,Ce[1],5,-165796510),We=u(We,ke,Fe,Ve,Ce[6],9,-1069501632),Ve=u(Ve,We,ke,Fe,Ce[11],14,643717713),Fe=u(Fe,Ve,We,ke,Ce[0],20,-373897302),ke=u(ke,Fe,Ve,We,Ce[5],5,-701558691),We=u(We,ke,Fe,Ve,Ce[10],9,38016083),Ve=u(Ve,We,ke,Fe,Ce[15],14,-660478335),Fe=u(Fe,Ve,We,ke,Ce[4],20,-405537848),ke=u(ke,Fe,Ve,We,Ce[9],5,568446438),We=u(We,ke,Fe,Ve,Ce[14],9,-1019803690),Ve=u(Ve,We,ke,Fe,Ce[3],14,-187363961),Fe=u(Fe,Ve,We,ke,Ce[8],20,1163531501),ke=u(ke,Fe,Ve,We,Ce[13],5,-1444681467),We=u(We,ke,Fe,Ve,Ce[2],9,-51403784),Ve=u(Ve,We,ke,Fe,Ce[7],14,1735328473),ke=f(ke,Fe=u(Fe,Ve,We,ke,Ce[12],20,-1926607734),Ve,We,Ce[5],4,-378558),We=f(We,ke,Fe,Ve,Ce[8],11,-2022574463),Ve=f(Ve,We,ke,Fe,Ce[11],16,1839030562),Fe=f(Fe,Ve,We,ke,Ce[14],23,-35309556),ke=f(ke,Fe,Ve,We,Ce[1],4,-1530992060),We=f(We,ke,Fe,Ve,Ce[4],11,1272893353),Ve=f(Ve,We,ke,Fe,Ce[7],16,-155497632),Fe=f(Fe,Ve,We,ke,Ce[10],23,-1094730640),ke=f(ke,Fe,Ve,We,Ce[13],4,681279174),We=f(We,ke,Fe,Ve,Ce[0],11,-358537222),Ve=f(Ve,We,ke,Fe,Ce[3],16,-722521979),Fe=f(Fe,Ve,We,ke,Ce[6],23,76029189),ke=f(ke,Fe,Ve,We,Ce[9],4,-640364487),We=f(We,ke,Fe,Ve,Ce[12],11,-421815835),Ve=f(Ve,We,ke,Fe,Ce[15],16,530742520),ke=p(ke,Fe=f(Fe,Ve,We,ke,Ce[2],23,-995338651),Ve,We,Ce[0],6,-198630844),We=p(We,ke,Fe,Ve,Ce[7],10,1126891415),Ve=p(Ve,We,ke,Fe,Ce[14],15,-1416354905),Fe=p(Fe,Ve,We,ke,Ce[5],21,-57434055),ke=p(ke,Fe,Ve,We,Ce[12],6,1700485571),We=p(We,ke,Fe,Ve,Ce[3],10,-1894986606),Ve=p(Ve,We,ke,Fe,Ce[10],15,-1051523),Fe=p(Fe,Ve,We,ke,Ce[1],21,-2054922799),ke=p(ke,Fe,Ve,We,Ce[8],6,1873313359),We=p(We,ke,Fe,Ve,Ce[15],10,-30611744),Ve=p(Ve,We,ke,Fe,Ce[6],15,-1560198380),Fe=p(Fe,Ve,We,ke,Ce[13],21,1309151649),ke=p(ke,Fe,Ve,We,Ce[4],6,-145523070),We=p(We,ke,Fe,Ve,Ce[11],10,-1120210379),Ve=p(Ve,We,ke,Fe,Ce[2],15,718787259),Fe=p(Fe,Ve,We,ke,Ce[9],21,-343485551),Ye[0]=_(ke,Ye[0]),Ye[1]=_(Fe,Ye[1]),Ye[2]=_(Ve,Ye[2]),Ye[3]=_(We,Ye[3])}function o(Ye,Ce,ke,Fe,Ve,We){return Ce=_(_(Ce,Ye),_(Fe,We)),_(Ce<<Ve|Ce>>>32-Ve,ke)}function l(Ye,Ce,ke,Fe,Ve,We,Ze){return o(Ce&ke|~Ce&Fe,Ye,Ce,Ve,We,Ze)}function u(Ye,Ce,ke,Fe,Ve,We,Ze){return o(Ce&Fe|ke&~Fe,Ye,Ce,Ve,We,Ze)}function f(Ye,Ce,ke,Fe,Ve,We,Ze){return o(Ce^ke^Fe,Ye,Ce,Ve,We,Ze)}function p(Ye,Ce,ke,Fe,Ve,We,Ze){return o(ke^(Ce|~Fe),Ye,Ce,Ve,We,Ze)}function v(Ye){var Ce,ke=Ye.length,Fe=[1732584193,-271733879,-1732584194,271733878];for(Ce=64;Ce<=Ye.length;Ce+=64)e(Fe,A(Ye.substring(Ce-64,Ce)));Ye=Ye.substring(Ce-64);var Ve=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Ce=0;Ce<Ye.length;Ce++)Ve[Ce>>2]|=Ye.charCodeAt(Ce)<<(Ce%4<<3);if(Ve[Ce>>2]|=128<<(Ce%4<<3),Ce>55)for(e(Fe,Ve),Ce=0;Ce<16;Ce++)Ve[Ce]=0;return Ve[14]=8*ke,e(Fe,Ve),Fe}function A(Ye){var Ce,ke=[];for(Ce=0;Ce<64;Ce+=4)ke[Ce>>2]=Ye.charCodeAt(Ce)+(Ye.charCodeAt(Ce+1)<<8)+(Ye.charCodeAt(Ce+2)<<16)+(Ye.charCodeAt(Ce+3)<<24);return ke}i=S.atob.bind(S),n=S.btoa.bind(S);var y="0123456789abcdef".split("");function x(Ye){for(var Ce="",ke=0;ke<4;ke++)Ce+=y[Ye>>8*ke+4&15]+y[Ye>>8*ke&15];return Ce}function C(Ye){return String.fromCharCode((255&Ye)>>0,(65280&Ye)>>8,(16711680&Ye)>>16,(4278190080&Ye)>>24)}function w(Ye){return v(Ye).map(C).join("")}var b=function(Ye){for(var Ce=0;Ce<Ye.length;Ce++)Ye[Ce]=x(Ye[Ce]);return Ye.join("")}(v("hello"))!="5d41402abc4b2a76b9719d911017c592";function _(Ye,Ce){if(b){var ke=(65535&Ye)+(65535&Ce);return(Ye>>16)+(Ce>>16)+(ke>>16)<<16|65535&ke}return Ye+Ce&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 O(Ye,Ce){var ke,Fe,Ve,We;if(Ye!==ke){for(var Ze=(Ve=Ye,We=1+(256/Ye.length>>0),new Array(We+1).join(Ve)),yt=[],lt=0;lt<256;lt++)yt[lt]=lt;var kt=0;for(lt=0;lt<256;lt++){var wr=yt[lt];kt=(kt+wr+Ze.charCodeAt(lt))%256,yt[lt]=yt[kt],yt[kt]=wr}ke=Ye,Fe=yt}else yt=Fe;var pr=Ce.length,_r=0,Wt=0,un="";for(lt=0;lt<pr;lt++)Wt=(Wt+(wr=yt[_r=(_r+1)%256]))%256,yt[_r]=yt[Wt],yt[Wt]=wr,Ze=yt[(yt[_r]+yt[Wt])%256],un+=String.fromCharCode(Ce.charCodeAt(lt)^Ze);return un}/**
|
|
|
* @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 L={print:4,modify:8,copy:16,"annot-forms":32};function D(Ye,Ce,ke,Fe){this.v=1,this.r=2;var Ve=192;Ye.forEach(function(yt){if(L.perm!==void 0)throw new Error("Invalid permission: "+yt);Ve+=L[yt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var We=(Ce+this.padding).substr(0,32),Ze=(ke+this.padding).substr(0,32);this.O=this.processOwnerPassword(We,Ze),this.P=-(1+(255^Ve)),this.encryptionKey=w(We+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Fe)).substr(0,5),this.U=O(this.encryptionKey,this.padding)}function N(Ye){if(/[^\u0000-\u00ff]/.test(Ye))throw new Error("Invalid PDF Name Object: "+Ye+", Only accept ASCII characters.");for(var Ce="",ke=Ye.length,Fe=0;Fe<ke;Fe++){var Ve=Ye.charCodeAt(Fe);Ve<33||Ve===35||Ve===37||Ve===40||Ve===41||Ve===47||Ve===60||Ve===62||Ve===91||Ve===93||Ve===123||Ve===125||Ve>126?Ce+="#"+("0"+Ve.toString(16)).slice(-2):Ce+=Ye[Fe]}return Ce}function M(Ye){if(T()(Ye)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Ce={};this.subscribe=function(ke,Fe,Ve){if(Ve=Ve||!1,typeof ke!="string"||typeof Fe!="function"||typeof Ve!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Ce.hasOwnProperty(ke)||(Ce[ke]={});var We=Math.random().toString(35);return Ce[ke][We]=[Fe,!!Ve],We},this.unsubscribe=function(ke){for(var Fe in Ce)if(Ce[Fe][ke])return delete Ce[Fe][ke],Object.keys(Ce[Fe]).length===0&&delete Ce[Fe],!0;return!1},this.publish=function(ke){if(Ce.hasOwnProperty(ke)){var Fe=Array.prototype.slice.call(arguments,1),Ve=[];for(var We in Ce[ke]){var Ze=Ce[ke][We];try{Ze[0].apply(Ye,Fe)}catch(yt){S.console&&h.error("jsPDF PubSub Error",yt.message,yt)}Ze[1]&&Ve.push(We)}Ve.length&&Ve.forEach(this.unsubscribe)}},this.getTopics=function(){return Ce}}function F(Ye){if(!(this instanceof F))return new F(Ye);var Ce="opacity,stroke-opacity".split(",");for(var ke in Ye)Ye.hasOwnProperty(ke)&&Ce.indexOf(ke)>=0&&(this[ke]=Ye[ke]);this.id="",this.objectNumber=-1}function R(Ye,Ce){this.gState=Ye,this.matrix=Ce,this.id="",this.objectNumber=-1}function j(Ye,Ce,ke,Fe,Ve){if(!(this instanceof j))return new j(Ye,Ce,ke,Fe,Ve);this.type=Ye==="axial"?2:3,this.coords=Ce,this.colors=ke,R.call(this,Fe,Ve)}function B(Ye,Ce,ke,Fe,Ve){if(!(this instanceof B))return new B(Ye,Ce,ke,Fe,Ve);this.boundingBox=Ye,this.xStep=Ce,this.yStep=ke,this.stream="",this.cloneIndex=0,R.call(this,Fe,Ve)}function K(Ye){var Ce,ke=typeof arguments[0]=="string"?arguments[0]:"p",Fe=arguments[1],Ve=arguments[2],We=arguments[3],Ze=[],yt=1,lt=16,kt="S",wr=null;T()(Ye=Ye||{})==="object"&&(ke=Ye.orientation,Fe=Ye.unit||Fe,Ve=Ye.format||Ve,We=Ye.compress||Ye.compressPdf||We,(wr=Ye.encryption||null)!==null&&(wr.userPassword=wr.userPassword||"",wr.ownerPassword=wr.ownerPassword||"",wr.userPermissions=wr.userPermissions||[]),yt=typeof Ye.userUnit=="number"?Math.abs(Ye.userUnit):1,Ye.precision!==void 0&&(Ce=Ye.precision),Ye.floatPrecision!==void 0&&(lt=Ye.floatPrecision),kt=Ye.defaultPathOperation||"S"),Ze=Ye.filters||(We===!0?["FlateEncode"]:Ze),Fe=Fe||"mm",ke=(""+(ke||"P")).toLowerCase();var pr=Ye.putOnlyUsedFonts||!1,_r={},Wt={internal:{},__private__:{}};Wt.__private__.PubSub=M;var un="1.3",ir=Wt.__private__.getPdfVersion=function(){return un};Wt.__private__.setPdfVersion=function(St){un=St};var Gr={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]};Wt.__private__.getPageFormats=function(){return Gr};var kr=Wt.__private__.getPageFormat=function(St){return Gr[St]};Ve=Ve||"a4";var yr={COMPAT:"compat",ADVANCED:"advanced"},En=yr.COMPAT;function kn(){this.saveGraphicsState(),ln(new jn(Wr,0,0,-Wr,0,Go()*Wr).toString()+" cm"),this.setFontSize(this.getFontSize()/Wr),kt="n",En=yr.ADVANCED}function ii(){this.restoreGraphicsState(),kt="S",En=yr.COMPAT}var oi=Wt.__private__.combineFontStyleAndFontWeight=function(St,Mt){if(St=="bold"&&Mt=="normal"||St=="bold"&&Mt==400||St=="normal"&&Mt=="italic"||St=="bold"&&Mt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Mt&&(St=Mt==400||Mt==="normal"?St==="italic"?"italic":"normal":Mt!=700&&Mt!=="bold"||St!=="normal"?(Mt==700?"bold":Mt)+""+St:"bold"),St};Wt.advancedAPI=function(St){var Mt=En===yr.COMPAT;return Mt&&kn.call(this),typeof St!="function"||(St(this),Mt&&ii.call(this)),this},Wt.compatAPI=function(St){var Mt=En===yr.ADVANCED;return Mt&&ii.call(this),typeof St!="function"||(St(this),Mt&&kn.call(this)),this},Wt.isAdvancedAPI=function(){return En===yr.ADVANCED};var ei,ci=function(Mt){if(En!==yr.ADVANCED)throw new Error(Mt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Pn=Wt.roundToPrecision=Wt.__private__.roundToPrecision=function(St,Mt){var tn=Ce||Mt;if(isNaN(St)||isNaN(tn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return St.toFixed(tn).replace(/0+$/,"")};ei=Wt.hpf=Wt.__private__.hpf=typeof lt=="number"?function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.hpf");return Pn(St,lt)}:lt==="smart"?function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.hpf");return Pn(St,St>-1&&St<1?16:5)}:function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.hpf");return Pn(St,16)};var xi=Wt.f2=Wt.__private__.f2=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.f2");return Pn(St,2)},gn=Wt.__private__.f3=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.f3");return Pn(St,3)},zr=Wt.scale=Wt.__private__.scale=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.scale");return En===yr.COMPAT?St*Wr:En===yr.ADVANCED?St:void 0},Cn=function(Mt){return En===yr.COMPAT?Go()-Mt:En===yr.ADVANCED?Mt:void 0},on=function(Mt){return zr(Cn(Mt))};Wt.__private__.setPrecision=Wt.setPrecision=function(St){typeof parseInt(St,10)=="number"&&(Ce=parseInt(St,10))};var li,ri="00000000000000000000000000000000",wi=Wt.__private__.getFileId=function(){return ri},Gn=Wt.__private__.setFileId=function(St){return ri=St!==void 0&&/^[a-fA-F0-9]{32}$/.test(St)?St.toUpperCase():ri.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),wr!==null&&(Za=new D(wr.userPermissions,wr.userPassword,wr.ownerPassword,ri)),ri};Wt.setFileId=function(St){return Gn(St),this},Wt.getFileId=function(){return wi()};var ki=Wt.__private__.convertDateToPDFDate=function(St){var Mt=St.getTimezoneOffset(),tn=Mt<0?"+":"-",In=Math.floor(Math.abs(Mt/60)),mt=Math.abs(Mt%60),ne=[tn,An(In),"'",An(mt),"'"].join("");return["D:",St.getFullYear(),An(St.getMonth()+1),An(St.getDate()),An(St.getHours()),An(St.getMinutes()),An(St.getSeconds()),ne].join("")},Jn=Wt.__private__.convertPDFDateToDate=function(St){var Mt=parseInt(St.substr(2,4),10),tn=parseInt(St.substr(6,2),10)-1,In=parseInt(St.substr(8,2),10),mt=parseInt(St.substr(10,2),10),ne=parseInt(St.substr(12,2),10),Ae=parseInt(St.substr(14,2),10);return new Date(Mt,tn,In,mt,ne,Ae,0)},Pi=Wt.__private__.setCreationDate=function(St){var Mt;if(St===void 0&&(St=new Date),St instanceof Date)Mt=ki(St);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(St))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Mt=St}return li=Mt},mn=Wt.__private__.getCreationDate=function(St){var Mt=li;return St==="jsDate"&&(Mt=Jn(li)),Mt};Wt.setCreationDate=function(St){return Pi(St),this},Wt.getCreationDate=function(St){return mn(St)};var Fr,An=Wt.__private__.padd2=function(St){return("0"+parseInt(St)).slice(-2)},Un=Wt.__private__.padd2Hex=function(St){return("00"+(St=St.toString())).substr(St.length)},Vn=0,ti=[],di=[],fi=0,mi=[],Wi=[],na=!1,ea=di,Fa=function(){Vn=0,fi=0,di=[],ti=[],mi=[],xr=Qr(),tr=Qr()};Wt.__private__.setCustomOutputDestination=function(St){na=!0,ea=St};var pi=function(Mt){na||(ea=Mt)};Wt.__private__.resetCustomOutputDestination=function(){na=!1,ea=di};var ln=Wt.__private__.out=function(St){return St=St.toString(),fi+=St.length+1,ea.push(St),ea},Li=Wt.__private__.write=function(St){return ln(arguments.length===1?St.toString():Array.prototype.join.call(arguments," "))},Zi=Wt.__private__.getArrayBuffer=function(St){for(var Mt=St.length,tn=new ArrayBuffer(Mt),In=new Uint8Array(tn);Mt--;)In[Mt]=St.charCodeAt(Mt);return tn},Fi=[["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]];Wt.__private__.getStandardFonts=function(){return Fi};var ia=Ye.fontSize||16;Wt.__private__.setFontSize=Wt.setFontSize=function(St){return ia=En===yr.ADVANCED?St/Wr:St,this};var Gt,Xr=Wt.__private__.getFontSize=Wt.getFontSize=function(){return En===yr.COMPAT?ia:ia*Wr},rn=Ye.R2L||!1;Wt.__private__.setR2L=Wt.setR2L=function(St){return rn=St,this},Wt.__private__.getR2L=Wt.getR2L=function(){return rn};var fn,Xe=Wt.__private__.setZoomMode=function(St){var Mt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(St))Gt=St;else if(isNaN(St)){if(Mt.indexOf(St)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+St+'" is not recognized.');Gt=St}else Gt=parseInt(St,10)};Wt.__private__.getZoomMode=function(){return Gt};var _t,lr=Wt.__private__.setPageMode=function(St){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(St)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+St+'" is not recognized.');fn=St};Wt.__private__.getPageMode=function(){return fn};var rr=Wt.__private__.setLayoutMode=function(St){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(St)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+St+'" is not recognized.');_t=St};Wt.__private__.getLayoutMode=function(){return _t},Wt.__private__.setDisplayMode=Wt.setDisplayMode=function(St,Mt,tn){return Xe(St),rr(Mt),lr(tn),this};var Or={title:"",subject:"",author:"",keywords:"",creator:""};Wt.__private__.getDocumentProperty=function(St){if(Object.keys(Or).indexOf(St)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Or[St]},Wt.__private__.getDocumentProperties=function(){return Or},Wt.__private__.setDocumentProperties=Wt.setProperties=Wt.setDocumentProperties=function(St){for(var Mt in Or)Or.hasOwnProperty(Mt)&&St[Mt]&&(Or[Mt]=St[Mt]);return this},Wt.__private__.setDocumentProperty=function(St,Mt){if(Object.keys(Or).indexOf(St)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Or[St]=Mt};var Mr,Wr,nn,wn,On,Rn={},Nn={},yn=[],Sn={},_n={},Hn={},Yn={},Zn=null,yi=0,gi=[],Di=new M(Wt),Ui=Ye.hotfixes||[],Ei={},_i={},Ni=[],jn=function St(Mt,tn,In,mt,ne,Ae){if(!(this instanceof St))return new St(Mt,tn,In,mt,ne,Ae);isNaN(Mt)&&(Mt=1),isNaN(tn)&&(tn=0),isNaN(In)&&(In=0),isNaN(mt)&&(mt=1),isNaN(ne)&&(ne=0),isNaN(Ae)&&(Ae=0),this._matrix=[Mt,tn,In,mt,ne,Ae]};Object.defineProperty(jn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Mt){this._matrix[0]=Mt}}),Object.defineProperty(jn.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Mt){this._matrix[1]=Mt}}),Object.defineProperty(jn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Mt){this._matrix[2]=Mt}}),Object.defineProperty(jn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Mt){this._matrix[3]=Mt}}),Object.defineProperty(jn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Mt){this._matrix[4]=Mt}}),Object.defineProperty(jn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Mt){this._matrix[5]=Mt}}),Object.defineProperty(jn.prototype,"a",{get:function(){return this._matrix[0]},set:function(Mt){this._matrix[0]=Mt}}),Object.defineProperty(jn.prototype,"b",{get:function(){return this._matrix[1]},set:function(Mt){this._matrix[1]=Mt}}),Object.defineProperty(jn.prototype,"c",{get:function(){return this._matrix[2]},set:function(Mt){this._matrix[2]=Mt}}),Object.defineProperty(jn.prototype,"d",{get:function(){return this._matrix[3]},set:function(Mt){this._matrix[3]=Mt}}),Object.defineProperty(jn.prototype,"e",{get:function(){return this._matrix[4]},set:function(Mt){this._matrix[4]=Mt}}),Object.defineProperty(jn.prototype,"f",{get:function(){return this._matrix[5]},set:function(Mt){this._matrix[5]=Mt}}),Object.defineProperty(jn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(jn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(jn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(jn.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),jn.prototype.join=function(St){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ei).join(St)},jn.prototype.multiply=function(St){var Mt=St.sx*this.sx+St.shy*this.shx,tn=St.sx*this.shy+St.shy*this.sy,In=St.shx*this.sx+St.sy*this.shx,mt=St.shx*this.shy+St.sy*this.sy,ne=St.tx*this.sx+St.ty*this.shx+this.tx,Ae=St.tx*this.shy+St.ty*this.sy+this.ty;return new jn(Mt,tn,In,mt,ne,Ae)},jn.prototype.decompose=function(){var St=this.sx,Mt=this.shy,tn=this.shx,In=this.sy,mt=this.tx,ne=this.ty,Ae=Math.sqrt(St*St+Mt*Mt),we=(St/=Ae)*tn+(Mt/=Ae)*In;tn-=St*we,In-=Mt*we;var Be=Math.sqrt(tn*tn+In*In);return we/=Be,St*(In/=Be)<Mt*(tn/=Be)&&(St=-St,Mt=-Mt,we=-we,Ae=-Ae),{scale:new jn(Ae,0,0,Be,0,0),translate:new jn(1,0,0,1,mt,ne),rotate:new jn(St,Mt,-Mt,St,0,0),skew:new jn(1,0,we,1,0,0)}},jn.prototype.toString=function(St){return this.join(" ")},jn.prototype.inversed=function(){var St=this.sx,Mt=this.shy,tn=this.shx,In=this.sy,mt=this.tx,ne=this.ty,Ae=1/(St*In-Mt*tn),we=In*Ae,Be=-Mt*Ae,dt=-tn*Ae,Ot=St*Ae;return new jn(we,Be,dt,Ot,-we*mt-dt*ne,-Be*mt-Ot*ne)},jn.prototype.applyToPoint=function(St){var Mt=St.x*this.sx+St.y*this.shx+this.tx,tn=St.x*this.shy+St.y*this.sy+this.ty;return new Uo(Mt,tn)},jn.prototype.applyToRectangle=function(St){var Mt=this.applyToPoint(St),tn=this.applyToPoint(new Uo(St.x+St.w,St.y+St.h));return new bs(Mt.x,Mt.y,tn.x-Mt.x,tn.y-Mt.y)},jn.prototype.clone=function(){var St=this.sx,Mt=this.shy,tn=this.shx,In=this.sy,mt=this.tx,ne=this.ty;return new jn(St,Mt,tn,In,mt,ne)},Wt.Matrix=jn;var Ii=Wt.matrixMult=function(St,Mt){return Mt.multiply(St)},Hi=new jn(1,0,0,1,0,0);Wt.unitMatrix=Wt.identityMatrix=Hi;var fr=function(Mt,tn){if(!_n[Mt]){var In=(tn instanceof j?"Sh":"P")+(Object.keys(Sn).length+1).toString(10);tn.id=In,_n[Mt]=In,Sn[In]=tn,Di.publish("addPattern",tn)}};Wt.ShadingPattern=j,Wt.TilingPattern=B,Wt.addShadingPattern=function(St,Mt){return ci("addShadingPattern()"),fr(St,Mt),this},Wt.beginTilingPattern=function(St){ci("beginTilingPattern()"),gs(St.boundingBox[0],St.boundingBox[1],St.boundingBox[2]-St.boundingBox[0],St.boundingBox[3]-St.boundingBox[1],St.matrix)},Wt.endTilingPattern=function(St,Mt){ci("endTilingPattern()"),Mt.stream=Wi[Fr].join(`
|
|
|
`),fr(St,Mt),Di.publish("endTilingPattern",Mt),Ni.pop().restore()};var Dr=Wt.__private__.newObject=function(){var St=Qr();return Nr(St,!0),St},Qr=Wt.__private__.newObjectDeferred=function(){return Vn++,ti[Vn]=function(){return fi},Vn},Nr=function(Mt,tn){return tn=typeof tn=="boolean"&&tn,ti[Mt]=fi,tn&&ln(Mt+" 0 obj"),Mt},Yt=Wt.__private__.newAdditionalObject=function(){var St={objId:Qr(),content:""};return mi.push(St),St},xr=Qr(),tr=Qr(),jr=Wt.__private__.decodeColorString=function(St){var Mt=St.split(" ");if(Mt.length!==2||Mt[1]!=="g"&&Mt[1]!=="G")Mt.length===5&&(Mt[4]==="k"||Mt[4]==="K")&&(Mt=[(1-Mt[0])*(1-Mt[3]),(1-Mt[1])*(1-Mt[3]),(1-Mt[2])*(1-Mt[3]),"r"]);else{var tn=parseFloat(Mt[0]);Mt=[tn,tn,tn,"r"]}for(var In="#",mt=0;mt<3;mt++)In+=("0"+Math.floor(255*parseFloat(Mt[mt])).toString(16)).slice(-2);return In},Ur=Wt.__private__.encodeColorString=function(St){var Mt;typeof St=="string"&&(St={ch1:St});var tn=St.ch1,In=St.ch2,mt=St.ch3,ne=St.ch4,Ae=St.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof tn=="string"&&tn.charAt(0)!=="#"){var we=new s(tn);if(we.ok)tn=we.toHex();else if(!/^\d*\.?\d*$/.test(tn))throw new Error('Invalid color "'+tn+'" passed to jsPDF.encodeColorString.')}if(typeof tn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(tn)&&(tn="#"+tn[1]+tn[1]+tn[2]+tn[2]+tn[3]+tn[3]),typeof tn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(tn)){var Be=parseInt(tn.substr(1),16);tn=Be>>16&255,In=Be>>8&255,mt=255&Be}if(In===void 0||ne===void 0&&tn===In&&In===mt)if(typeof tn=="string")Mt=tn+" "+Ae[0];else switch(St.precision){case 2:Mt=xi(tn/255)+" "+Ae[0];break;case 3:default:Mt=gn(tn/255)+" "+Ae[0]}else if(ne===void 0||T()(ne)==="object"){if(ne&&!isNaN(ne.a)&&ne.a===0)return Mt=["1.","1.","1.",Ae[1]].join(" ");if(typeof tn=="string")Mt=[tn,In,mt,Ae[1]].join(" ");else switch(St.precision){case 2:Mt=[xi(tn/255),xi(In/255),xi(mt/255),Ae[1]].join(" ");break;default:case 3:Mt=[gn(tn/255),gn(In/255),gn(mt/255),Ae[1]].join(" ")}}else if(typeof tn=="string")Mt=[tn,In,mt,ne,Ae[2]].join(" ");else switch(St.precision){case 2:Mt=[xi(tn),xi(In),xi(mt),xi(ne),Ae[2]].join(" ");break;case 3:default:Mt=[gn(tn),gn(In),gn(mt),gn(ne),Ae[2]].join(" ")}return Mt},dn=Wt.__private__.getFilters=function(){return Ze},sn=Wt.__private__.putStream=function(St){var Mt=(St=St||{}).data||"",tn=St.filters||dn(),In=St.alreadyAppliedFilters||[],mt=St.addLength1||!1,ne=Mt.length,Ae=St.objectId,we=function(si){return si};if(wr!==null&&Ae===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");wr!==null&&(we=Za.encryptor(Ae,0));var Be={};tn===!0&&(tn=["FlateEncode"]);var dt=St.additionalKeyValues||[],Ot=(Be=K.API.processDataByFilters!==void 0?K.API.processDataByFilters(Mt,tn):{data:Mt,reverseChain:[]}).reverseChain+(Array.isArray(In)?In.join(" "):In.toString());if(Be.data.length!==0&&(dt.push({key:"Length",value:Be.data.length}),mt===!0&&dt.push({key:"Length1",value:ne})),Ot.length!=0)if(Ot.split("/").length-1==1)dt.push({key:"Filter",value:Ot});else{dt.push({key:"Filter",value:"["+Ot+"]"});for(var br=0;br<dt.length;br+=1)if(dt[br].key==="DecodeParms"){for(var Lr=[],$r=0;$r<Be.reverseChain.split("/").length-1;$r+=1)Lr.push("null");Lr.push(dt[br].value),dt[br].value="["+Lr.join(" ")+"]"}}ln("<<");for(var xn=0;xn<dt.length;xn++)ln("/"+dt[xn].key+" "+dt[xn].value);ln(">>"),Be.data.length!==0&&(ln("stream"),ln(we(Be.data)),ln("endstream"))},bn=Wt.__private__.putPage=function(St){var Mt=St.number,tn=St.data,In=St.objId,mt=St.contentsObjId;Nr(In,!0),ln("<</Type /Page"),ln("/Parent "+St.rootDictionaryObjId+" 0 R"),ln("/Resources "+St.resourceDictionaryObjId+" 0 R"),ln("/MediaBox ["+parseFloat(ei(St.mediaBox.bottomLeftX))+" "+parseFloat(ei(St.mediaBox.bottomLeftY))+" "+ei(St.mediaBox.topRightX)+" "+ei(St.mediaBox.topRightY)+"]"),St.cropBox!==null&&ln("/CropBox ["+ei(St.cropBox.bottomLeftX)+" "+ei(St.cropBox.bottomLeftY)+" "+ei(St.cropBox.topRightX)+" "+ei(St.cropBox.topRightY)+"]"),St.bleedBox!==null&&ln("/BleedBox ["+ei(St.bleedBox.bottomLeftX)+" "+ei(St.bleedBox.bottomLeftY)+" "+ei(St.bleedBox.topRightX)+" "+ei(St.bleedBox.topRightY)+"]"),St.trimBox!==null&&ln("/TrimBox ["+ei(St.trimBox.bottomLeftX)+" "+ei(St.trimBox.bottomLeftY)+" "+ei(St.trimBox.topRightX)+" "+ei(St.trimBox.topRightY)+"]"),St.artBox!==null&&ln("/ArtBox ["+ei(St.artBox.bottomLeftX)+" "+ei(St.artBox.bottomLeftY)+" "+ei(St.artBox.topRightX)+" "+ei(St.artBox.topRightY)+"]"),typeof St.userUnit=="number"&&St.userUnit!==1&&ln("/UserUnit "+St.userUnit),Di.publish("putPage",{objId:In,pageContext:gi[Mt],pageNumber:Mt,page:tn}),ln("/Contents "+mt+" 0 R"),ln(">>"),ln("endobj");var ne=tn.join(`
|
|
|
`);return En===yr.ADVANCED&&(ne+=`
|
|
|
Q`),Nr(mt,!0),sn({data:ne,filters:dn(),objectId:mt}),ln("endobj"),In},Bn=Wt.__private__.putPages=function(){var St,Mt,tn=[];for(St=1;St<=yi;St++)gi[St].objId=Qr(),gi[St].contentsObjId=Qr();for(St=1;St<=yi;St++)tn.push(bn({number:St,data:Wi[St],objId:gi[St].objId,contentsObjId:gi[St].contentsObjId,mediaBox:gi[St].mediaBox,cropBox:gi[St].cropBox,bleedBox:gi[St].bleedBox,trimBox:gi[St].trimBox,artBox:gi[St].artBox,userUnit:gi[St].userUnit,rootDictionaryObjId:xr,resourceDictionaryObjId:tr}));Nr(xr,!0),ln("<</Type /Pages");var In="/Kids [";for(Mt=0;Mt<yi;Mt++)In+=tn[Mt]+" 0 R ";ln(In+"]"),ln("/Count "+yi),ln(">>"),ln("endobj"),Di.publish("postPutPages")},Xn=function(Mt){Di.publish("putFont",{font:Mt,out:ln,newObject:Dr,putStream:sn}),Mt.isAlreadyPutted!==!0&&(Mt.objectNumber=Dr(),ln("<<"),ln("/Type /Font"),ln("/BaseFont /"+N(Mt.postScriptName)),ln("/Subtype /Type1"),typeof Mt.encoding=="string"&&ln("/Encoding /"+Mt.encoding),ln("/FirstChar 32"),ln("/LastChar 255"),ln(">>"),ln("endobj"))},$n=function(){for(var Mt in Rn)Rn.hasOwnProperty(Mt)&&(pr===!1||pr===!0&&_r.hasOwnProperty(Mt))&&Xn(Rn[Mt])},Ti=function(Mt){Mt.objectNumber=Dr();var tn=[];tn.push({key:"Type",value:"/XObject"}),tn.push({key:"Subtype",value:"/Form"}),tn.push({key:"BBox",value:"["+[ei(Mt.x),ei(Mt.y),ei(Mt.x+Mt.width),ei(Mt.y+Mt.height)].join(" ")+"]"}),tn.push({key:"Matrix",value:"["+Mt.matrix.toString()+"]"});var In=Mt.pages[1].join(`
|
|
|
`);sn({data:In,additionalKeyValues:tn,objectId:Mt.objectNumber}),ln("endobj")},Xi=function(){for(var Mt in Ei)Ei.hasOwnProperty(Mt)&&Ti(Ei[Mt])},ua=function(Mt,tn){var In,mt=[],ne=1/(tn-1);for(In=0;In<1;In+=ne)mt.push(In);if(mt.push(1),Mt[0].offset!=0){var Ae={offset:0,color:Mt[0].color};Mt.unshift(Ae)}if(Mt[Mt.length-1].offset!=1){var we={offset:1,color:Mt[Mt.length-1].color};Mt.push(we)}for(var Be="",dt=0,Ot=0;Ot<mt.length;Ot++){for(In=mt[Ot];In>Mt[dt+1].offset;)dt++;var br=Mt[dt].offset,Lr=(In-br)/(Mt[dt+1].offset-br),$r=Mt[dt].color,xn=Mt[dt+1].color;Be+=Un(Math.round((1-Lr)*$r[0]+Lr*xn[0]).toString(16))+Un(Math.round((1-Lr)*$r[1]+Lr*xn[1]).toString(16))+Un(Math.round((1-Lr)*$r[2]+Lr*xn[2]).toString(16))}return Be.trim()},da=function(Mt,tn){tn||(tn=21);var In=Dr(),mt=ua(Mt.colors,tn),ne=[];ne.push({key:"FunctionType",value:"0"}),ne.push({key:"Domain",value:"[0.0 1.0]"}),ne.push({key:"Size",value:"["+tn+"]"}),ne.push({key:"BitsPerSample",value:"8"}),ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),sn({data:mt,additionalKeyValues:ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:In}),ln("endobj"),Mt.objectNumber=Dr(),ln("<< /ShadingType "+Mt.type),ln("/ColorSpace /DeviceRGB");var Ae="/Coords ["+ei(parseFloat(Mt.coords[0]))+" "+ei(parseFloat(Mt.coords[1]))+" ";Mt.type===2?Ae+=ei(parseFloat(Mt.coords[2]))+" "+ei(parseFloat(Mt.coords[3])):Ae+=ei(parseFloat(Mt.coords[2]))+" "+ei(parseFloat(Mt.coords[3]))+" "+ei(parseFloat(Mt.coords[4]))+" "+ei(parseFloat(Mt.coords[5])),ln(Ae+="]"),Mt.matrix&&ln("/Matrix ["+Mt.matrix.toString()+"]"),ln("/Function "+In+" 0 R"),ln("/Extend [true true]"),ln(">>"),ln("endobj")},sa=function(Mt,tn){var In=Qr(),mt=Dr();tn.push({resourcesOid:In,objectOid:mt}),Mt.objectNumber=mt;var ne=[];ne.push({key:"Type",value:"/Pattern"}),ne.push({key:"PatternType",value:"1"}),ne.push({key:"PaintType",value:"1"}),ne.push({key:"TilingType",value:"1"}),ne.push({key:"BBox",value:"["+Mt.boundingBox.map(ei).join(" ")+"]"}),ne.push({key:"XStep",value:ei(Mt.xStep)}),ne.push({key:"YStep",value:ei(Mt.yStep)}),ne.push({key:"Resources",value:In+" 0 R"}),Mt.matrix&&ne.push({key:"Matrix",value:"["+Mt.matrix.toString()+"]"}),sn({data:Mt.stream,additionalKeyValues:ne,objectId:Mt.objectNumber}),ln("endobj")},ca=function(Mt){var tn;for(tn in Sn)Sn.hasOwnProperty(tn)&&(Sn[tn]instanceof j?da(Sn[tn]):Sn[tn]instanceof B&&sa(Sn[tn],Mt))},zi=function(Mt){for(var tn in Mt.objectNumber=Dr(),ln("<<"),Mt)switch(tn){case"opacity":ln("/ca "+xi(Mt[tn]));break;case"stroke-opacity":ln("/CA "+xi(Mt[tn]))}ln(">>"),ln("endobj")},Ri=function(){var Mt;for(Mt in Hn)Hn.hasOwnProperty(Mt)&&zi(Hn[Mt])},ta=function(){for(var Mt in ln("/XObject <<"),Ei)Ei.hasOwnProperty(Mt)&&Ei[Mt].objectNumber>=0&&ln("/"+Mt+" "+Ei[Mt].objectNumber+" 0 R");Di.publish("putXobjectDict"),ln(">>")},$i=function(){Za.oid=Dr(),ln("<<"),ln("/Filter /Standard"),ln("/V "+Za.v),ln("/R "+Za.r),ln("/U <"+Za.toHexString(Za.U)+">"),ln("/O <"+Za.toHexString(Za.O)+">"),ln("/P "+Za.P),ln(">>"),ln("endobj")},Ca=function(){for(var Mt in ln("/Font <<"),Rn)Rn.hasOwnProperty(Mt)&&(pr===!1||pr===!0&&_r.hasOwnProperty(Mt))&&ln("/"+Mt+" "+Rn[Mt].objectNumber+" 0 R");ln(">>")},Ma=function(){if(Object.keys(Sn).length>0){for(var Mt in ln("/Shading <<"),Sn)Sn.hasOwnProperty(Mt)&&Sn[Mt]instanceof j&&Sn[Mt].objectNumber>=0&&ln("/"+Mt+" "+Sn[Mt].objectNumber+" 0 R");Di.publish("putShadingPatternDict"),ln(">>")}},qi=function(Mt){if(Object.keys(Sn).length>0){for(var tn in ln("/Pattern <<"),Sn)Sn.hasOwnProperty(tn)&&Sn[tn]instanceof Wt.TilingPattern&&Sn[tn].objectNumber>=0&&Sn[tn].objectNumber<Mt&&ln("/"+tn+" "+Sn[tn].objectNumber+" 0 R");Di.publish("putTilingPatternDict"),ln(">>")}},Yi=function(){if(Object.keys(Hn).length>0){var Mt;for(Mt in ln("/ExtGState <<"),Hn)Hn.hasOwnProperty(Mt)&&Hn[Mt].objectNumber>=0&&ln("/"+Mt+" "+Hn[Mt].objectNumber+" 0 R");Di.publish("putGStateDict"),ln(">>")}},Pa=function(Mt){Nr(Mt.resourcesOid,!0),ln("<<"),ln("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ca(),Ma(),qi(Mt.objectOid),Yi(),ta(),ln(">>"),ln("endobj")},ya=function(){var Mt=[];$n(),Ri(),Xi(),ca(Mt),Di.publish("putResources"),Mt.forEach(Pa),Pa({resourcesOid:tr,objectOid:Number.MAX_SAFE_INTEGER}),Di.publish("postPutResources")},Ci=function(){Di.publish("putAdditionalObjects");for(var Mt=0;Mt<mi.length;Mt++){var tn=mi[Mt];Nr(tn.objId,!0),ln(tn.content),ln("endobj")}Di.publish("postPutAdditionalObjects")},la=function(Mt){Nn[Mt.fontName]=Nn[Mt.fontName]||{},Nn[Mt.fontName][Mt.fontStyle]=Mt.id},Ha=function(Mt,tn,In,mt,ne){var Ae={id:"F"+(Object.keys(Rn).length+1).toString(10),postScriptName:Mt,fontName:tn,fontStyle:In,encoding:mt,isStandardFont:ne||!1,metadata:{}};return Di.publish("addFont",{font:Ae,instance:this}),Rn[Ae.id]=Ae,la(Ae),Ae.id},ka=function(Mt){for(var tn=0,In=Fi.length;tn<In;tn++){var mt=Ha.call(this,Mt[tn][0],Mt[tn][1],Mt[tn][2],Fi[tn][3],!0);pr===!1&&(_r[mt]=!0);var ne=Mt[tn][0].split("-");la({id:mt,fontName:ne[0],fontStyle:ne[1]||""})}Di.publish("addFonts",{fonts:Rn,dictionary:Nn})},Aa=function(Mt){return Mt.foo=function(){try{return Mt.apply(this,arguments)}catch(mt){var tn=mt.stack||"";~tn.indexOf(" at ")&&(tn=tn.split(" at ")[1]);var In="Error in function "+tn.split(`
|
|
|
`)[0].split("<")[0]+": "+mt.message;if(!S.console)throw new Error(In);S.console.error(In,mt),S.alert&&alert(In)}},Mt.foo.bar=Mt,Mt.foo},Sa=function(Mt,tn){var In,mt,ne,Ae,we,Be,dt,Ot,br;if(ne=(tn=tn||{}).sourceEncoding||"Unicode",we=tn.outputEncoding,(tn.autoencode||we)&&Rn[Mr].metadata&&Rn[Mr].metadata[ne]&&Rn[Mr].metadata[ne].encoding&&(Ae=Rn[Mr].metadata[ne].encoding,!we&&Rn[Mr].encoding&&(we=Rn[Mr].encoding),!we&&Ae.codePages&&(we=Ae.codePages[0]),typeof we=="string"&&(we=Ae[we]),we)){for(dt=!1,Be=[],In=0,mt=Mt.length;In<mt;In++)(Ot=we[Mt.charCodeAt(In)])?Be.push(String.fromCharCode(Ot)):Be.push(Mt[In]),Be[In].charCodeAt(0)>>8&&(dt=!0);Mt=Be.join("")}for(In=Mt.length;dt===void 0&&In!==0;)Mt.charCodeAt(In-1)>>8&&(dt=!0),In--;if(!dt)return Mt;for(Be=tn.noBOM?[]:[254,255],In=0,mt=Mt.length;In<mt;In++){if((br=(Ot=Mt.charCodeAt(In))>>8)>>8)throw new Error("Character at position "+In+" of string '"+Mt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Be.push(br),Be.push(Ot-(br<<8))}return String.fromCharCode.apply(void 0,Be)},Ya=Wt.__private__.pdfEscape=Wt.pdfEscape=function(St,Mt){return Sa(St,Mt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ta=Wt.__private__.beginPage=function(St){Wi[++yi]=[],gi[yi]={objId:0,contentsObjId:0,userUnit:Number(yt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(St[0]),topRightY:Number(St[1])}},aa(yi),pi(Wi[Fr])},Ga=function(Mt,tn){var In,mt,ne;switch(ke=tn||ke,typeof Mt=="string"&&(In=kr(Mt.toLowerCase()),Array.isArray(In)&&(mt=In[0],ne=In[1])),Array.isArray(Mt)&&(mt=Mt[0]*Wr,ne=Mt[1]*Wr),isNaN(mt)&&(mt=Ve[0],ne=Ve[1]),(mt>14400||ne>14400)&&(h.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),mt=Math.min(14400,mt),ne=Math.min(14400,ne)),Ve=[mt,ne],ke.substr(0,1)){case"l":ne>mt&&(Ve=[ne,mt]);break;case"p":mt>ne&&(Ve=[ne,mt])}Ta(Ve),as(il),ln(Ro),so!==0&&ln(so+" J"),Ao!==0&&ln(Ao+" j"),Di.publish("addPage",{pageNumber:yi})},uo=function(Mt){Mt>0&&Mt<=yi&&(Wi.splice(Mt,1),gi.splice(Mt,1),yi--,Fr>yi&&(Fr=yi),this.setPage(Fr))},aa=function(Mt){Mt>0&&Mt<=yi&&(Fr=Mt)},ho=Wt.__private__.getNumberOfPages=Wt.getNumberOfPages=function(){return Wi.length-1},Ua=function(Mt,tn,In){var mt,ne=void 0;return In=In||{},Mt=Mt!==void 0?Mt:Rn[Mr].fontName,tn=tn!==void 0?tn:Rn[Mr].fontStyle,mt=Mt.toLowerCase(),Nn[mt]!==void 0&&Nn[mt][tn]!==void 0?ne=Nn[mt][tn]:Nn[Mt]!==void 0&&Nn[Mt][tn]!==void 0?ne=Nn[Mt][tn]:In.disableWarning===!1&&h.warn("Unable to look up font label for font '"+Mt+"', '"+tn+"'. Refer to getFontList() for available fonts."),ne||In.noFallback||(ne=Nn.times[tn])==null&&(ne=Nn.times.normal),ne},Na=Wt.__private__.putInfo=function(){var St=Dr(),Mt=function(mt){return mt};for(var tn in wr!==null&&(Mt=Za.encryptor(St,0)),ln("<<"),ln("/Producer ("+Ya(Mt("jsPDF "+K.version))+")"),Or)Or.hasOwnProperty(tn)&&Or[tn]&&ln("/"+tn.substr(0,1).toUpperCase()+tn.substr(1)+" ("+Ya(Mt(Or[tn]))+")");ln("/CreationDate ("+Ya(Mt(li))+")"),ln(">>"),ln("endobj")},$a=Wt.__private__.putCatalog=function(St){var Mt=(St=St||{}).rootDictionaryObjId||xr;switch(Dr(),ln("<<"),ln("/Type /Catalog"),ln("/Pages "+Mt+" 0 R"),Gt||(Gt="fullwidth"),Gt){case"fullwidth":ln("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ln("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ln("/OpenAction [3 0 R /Fit]");break;case"original":ln("/OpenAction [3 0 R /XYZ null null 1]");break;default:var tn=""+Gt;tn.substr(tn.length-1)==="%"&&(Gt=parseInt(Gt)/100),typeof Gt=="number"&&ln("/OpenAction [3 0 R /XYZ null null "+xi(Gt)+"]")}switch(_t||(_t="continuous"),_t){case"continuous":ln("/PageLayout /OneColumn");break;case"single":ln("/PageLayout /SinglePage");break;case"two":case"twoleft":ln("/PageLayout /TwoColumnLeft");break;case"tworight":ln("/PageLayout /TwoColumnRight")}fn&&ln("/PageMode /"+fn),Di.publish("putCatalog"),ln(">>"),ln("endobj")},Ra=Wt.__private__.putTrailer=function(){ln("trailer"),ln("<<"),ln("/Size "+(Vn+1)),ln("/Root "+Vn+" 0 R"),ln("/Info "+(Vn-1)+" 0 R"),wr!==null&&ln("/Encrypt "+Za.oid+" 0 R"),ln("/ID [ <"+ri+"> <"+ri+"> ]"),ln(">>")},Ka=Wt.__private__.putHeader=function(){ln("%PDF-"+un),ln("%\xBA\xDF\xAC\xE0")},bo=Wt.__private__.putXRef=function(){var St="0000000000";ln("xref"),ln("0 "+(Vn+1)),ln("0000000000 65535 f ");for(var Mt=1;Mt<=Vn;Mt++)typeof ti[Mt]=="function"?ln((St+ti[Mt]()).slice(-10)+" 00000 n "):ti[Mt]!==void 0?ln((St+ti[Mt]).slice(-10)+" 00000 n "):ln("0000000000 00000 n ")},no=Wt.__private__.buildDocument=function(){Fa(),pi(di),Di.publish("buildDocument"),Ka(),Bn(),Ci(),ya(),wr!==null&&$i(),Na(),$a();var St=fi;return bo(),Ra(),ln("startxref"),ln(""+St),ln("%%EOF"),pi(Wi[Fr]),di.join(`
|
|
|
`)},Co=Wt.__private__.getBlob=function(St){return new Blob([Zi(St)],{type:"application/pdf"})},fo=Wt.output=Wt.__private__.output=Aa(function(St,Mt){switch(typeof(Mt=Mt||{})=="string"?Mt={filename:Mt}:Mt.filename=Mt.filename||"generated.pdf",St){case void 0:return no();case"save":Wt.save(Mt.filename);break;case"arraybuffer":return Zi(no());case"blob":return Co(no());case"bloburi":case"bloburl":if(S.URL!==void 0&&typeof S.URL.createObjectURL=="function")return S.URL&&S.URL.createObjectURL(Co(no()))||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 tn="",In=no();try{tn=n(In)}catch(br){tn=n(unescape(encodeURIComponent(In)))}return"data:application/pdf;filename="+Mt.filename+";base64,"+tn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(S)==="[object Window]"){var mt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(Mt.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Mt)+");</script></body></html>",ne=S.open();return ne!==null&&ne.document.write(mt),ne}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(S)==="[object Window]"){var Ae='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Mt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Mt.filename+'" width="500px" height="400px" /></body></html>',we=S.open();if(we!==null){we.document.write(Ae);var Be=this;we.document.documentElement.querySelector("#pdfViewer").onload=function(){we.document.title=Mt.filename,we.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Be.output("bloburl"))}}return we}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(S)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var dt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Mt)+'"></iframe></body></html>',Ot=S.open();if(Ot!==null&&(Ot.document.write(dt),Ot.document.title=Mt.filename),Ot||typeof safari=="undefined")return Ot;break;case"datauri":case"dataurl":return S.document.location.href=this.output("datauristring",Mt);default:return null}}),po=function(Mt){return Array.isArray(Ui)===!0&&Ui.indexOf(Mt)>-1};switch(Fe){case"pt":Wr=1;break;case"mm":Wr=72/25.4;break;case"cm":Wr=72/2.54;break;case"in":Wr=72;break;case"px":Wr=po("px_scaling")==1?.75:96/72;break;case"pc":case"em":Wr=12;break;case"ex":Wr=6;break;default:if(typeof Fe!="number")throw new Error("Invalid unit: "+Fe);Wr=Fe}var Za=null;Pi(),Gn();var qa=function(Mt){return wr!==null?Za.encryptor(Mt,0):function(tn){return tn}},Oa=Wt.__private__.getPageInfo=Wt.getPageInfo=function(St){if(isNaN(St)||St%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:gi[St].objId,pageNumber:St,pageContext:gi[St]}},oo=Wt.__private__.getPageInfoByObjId=function(St){if(isNaN(St)||St%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Mt in gi)if(gi[Mt].objId===St)break;return Oa(Mt)},go=Wt.__private__.getCurrentPageInfo=Wt.getCurrentPageInfo=function(){return{objId:gi[Fr].objId,pageNumber:Fr,pageContext:gi[Fr]}};Wt.addPage=function(){return Ga.apply(this,arguments),this},Wt.setPage=function(){return aa.apply(this,arguments),pi.call(this,Wi[Fr]),this},Wt.insertPage=function(St){return this.addPage(),this.movePage(Fr,St),this},Wt.movePage=function(St,Mt){var tn,In;if(St>Mt){tn=Wi[St],In=gi[St];for(var mt=St;mt>Mt;mt--)Wi[mt]=Wi[mt-1],gi[mt]=gi[mt-1];Wi[Mt]=tn,gi[Mt]=In,this.setPage(Mt)}else if(St<Mt){tn=Wi[St],In=gi[St];for(var ne=St;ne<Mt;ne++)Wi[ne]=Wi[ne+1],gi[ne]=gi[ne+1];Wi[Mt]=tn,gi[Mt]=In,this.setPage(Mt)}return this},Wt.deletePage=function(){return uo.apply(this,arguments),this},Wt.__private__.text=Wt.text=function(St,Mt,tn,In,mt){var ne,Ae,we,Be,dt,Ot,br,Lr,$r,xn=(In=In||{}).scope||this;if(typeof St=="number"&&typeof Mt=="number"&&(typeof tn=="string"||Array.isArray(tn))){var Wn=tn;tn=Mt,Mt=St,St=Wn}if(arguments[3]instanceof jn==!1?(we=arguments[4],Be=arguments[5],T()(br=arguments[3])==="object"&&br!==null||(typeof we=="string"&&(Be=we,we=null),typeof br=="string"&&(Be=br,br=null),typeof br=="number"&&(we=br,br=null),In={flags:br,angle:we,align:Be})):(ci("The transform parameter of text() with a Matrix value"),$r=mt),isNaN(Mt)||isNaN(tn)||St==null)throw new Error("Invalid arguments passed to jsPDF.text");if(St.length===0)return xn;var si="",Si=!1,Vi=typeof In.lineHeightFactor=="number"?In.lineHeightFactor:Qo,oa=xn.internal.scaleFactor;function xa(No){return No=No.split(" ").join(Array(In.TabLen||9).join(" ")),Ya(No,br)}function eo(No){for(var To,ts=No.concat(),Eo=[],Ys=ts.length;Ys--;)typeof(To=ts.shift())=="string"?Eo.push(To):Array.isArray(No)&&(To.length===1||To[1]===void 0&&To[2]===void 0)?Eo.push(To[0]):Eo.push([To[0],To[1],To[2]]);return Eo}function to(No,To){var ts;if(typeof No=="string")ts=To(No)[0];else if(Array.isArray(No)){for(var Eo,Ys,Wl=No.concat(),wl=[],Zl=Wl.length;Zl--;)typeof(Eo=Wl.shift())=="string"?wl.push(To(Eo)[0]):Array.isArray(Eo)&&typeof Eo[0]=="string"&&(Ys=To(Eo[0],Eo[1],Eo[2]),wl.push([Ys[0],Ys[1],Ys[2]]));ts=wl}return ts}var io=!1,Oo=!0;if(typeof St=="string")io=!0;else if(Array.isArray(St)){var yo=St.concat();Ae=[];for(var Mo,za=yo.length;za--;)(typeof(Mo=yo.shift())!="string"||Array.isArray(Mo)&&typeof Mo[0]!="string")&&(Oo=!1);io=Oo}if(io===!1)throw new Error('Type of text must be string or Array. "'+St+'" is not recognized.');typeof St=="string"&&(St=St.match(/[\r?\n]/)?St.split(/\r\n|\r|\n/g):[St]);var So=ia/xn.internal.scaleFactor,os=So*(Vi-1);switch(In.baseline){case"bottom":tn-=os;break;case"top":tn+=So-os;break;case"hanging":tn+=So-2*os;break;case"middle":tn+=So/2-os}if((Ot=In.maxWidth||0)>0&&(typeof St=="string"?St=xn.splitTextToSize(St,Ot):Object.prototype.toString.call(St)==="[object Array]"&&(St=St.reduce(function(No,To){return No.concat(xn.splitTextToSize(To,Ot))},[]))),ne={text:St,x:Mt,y:tn,options:In,mutex:{pdfEscape:Ya,activeFontKey:Mr,fonts:Rn,activeFontSize:ia}},Di.publish("preProcessText",ne),St=ne.text,we=(In=ne.options).angle,$r instanceof jn==!1&&we&&typeof we=="number"){we*=Math.PI/180,In.rotationDirection===0&&(we=-we),En===yr.ADVANCED&&(we=-we);var ns=Math.cos(we),Io=Math.sin(we);$r=new jn(ns,Io,-Io,ns,0,0)}else we&&we instanceof jn&&($r=we);En!==yr.ADVANCED||$r||($r=Hi),(dt=In.charSpace||Ns)!==void 0&&(si+=ei(zr(dt))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Lr=In.horizontalScale)!==void 0&&(si+=ei(100*Lr)+` Tz
|
|
|
`),In.lang;var Xo=-1,Ds=In.renderingMode!==void 0?In.renderingMode:In.stroke,Es=xn.internal.getCurrentPageInfo().pageContext;switch(Ds){case 0:case!1:case"fill":Xo=0;break;case 1:case!0:case"stroke":Xo=1;break;case 2:case"fillThenStroke":Xo=2;break;case 3:case"invisible":Xo=3;break;case 4:case"fillAndAddForClipping":Xo=4;break;case 5:case"strokeAndAddPathForClipping":Xo=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Xo=6;break;case 7:case"addToPathForClipping":Xo=7}var Wo=Es.usedRenderingMode!==void 0?Es.usedRenderingMode:-1;Xo!==-1?si+=Xo+` Tr
|
|
|
`:Wo!==-1&&(si+=`0 Tr
|
|
|
`),Xo!==-1&&(Es.usedRenderingMode=Xo),Be=In.align||"left";var ws,ds=ia*Vi,yl=xn.internal.pageSize.getWidth(),bl=Rn[Mr];dt=In.charSpace||Ns,Ot=In.maxWidth||0,br=Object.assign({autoencode:!0,noBOM:!0},In.flags);var Cs=[];if(Object.prototype.toString.call(St)==="[object Array]"){var Lo;Ae=eo(St),Be!=="left"&&(ws=Ae.map(function(No){return xn.getStringUnitWidth(No,{font:bl,charSpace:dt,fontSize:ia,doKerning:!1})*ia/oa}));var ra,tl=0;if(Be==="right"){Mt-=ws[0],St=[],za=Ae.length;for(var Ks=0;Ks<za;Ks++)Ks===0?(ra=Ho(Mt),Lo=vo(tn)):(ra=zr(tl-ws[Ks]),Lo=-ds),St.push([Ae[Ks],ra,Lo]),tl=ws[Ks]}else if(Be==="center"){Mt-=ws[0]/2,St=[],za=Ae.length;for(var Ws=0;Ws<za;Ws++)Ws===0?(ra=Ho(Mt),Lo=vo(tn)):(ra=zr((tl-ws[Ws])/2),Lo=-ds),St.push([Ae[Ws],ra,Lo]),tl=ws[Ws]}else if(Be==="left"){St=[],za=Ae.length;for(var hs=0;hs<za;hs++)St.push(Ae[hs])}else{if(Be!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');St=[],za=Ae.length,Ot=Ot!==0?Ot:yl;for(var ks=0;ks<za;ks++)Lo=ks===0?vo(tn):-ds,ra=ks===0?Ho(Mt):0,ks<za-1?Cs.push(ei(zr((Ot-ws[ks])/(Ae[ks].split(" ").length-1)))):Cs.push(0),St.push([Ae[ks],ra,Lo])}}var al=typeof In.R2L=="boolean"?In.R2L:rn;al===!0&&(St=to(St,function(No,To,ts){return[No.split("").reverse().join(""),To,ts]})),ne={text:St,x:Mt,y:tn,options:In,mutex:{pdfEscape:Ya,activeFontKey:Mr,fonts:Rn,activeFontSize:ia}},Di.publish("postProcessText",ne),St=ne.text,Si=ne.mutex.isHex||!1;var Bs=Rn[Mr].encoding;Bs!=="WinAnsiEncoding"&&Bs!=="StandardEncoding"||(St=to(St,function(No,To,ts){return[xa(No),To,ts]})),Ae=eo(St),St=[];for(var Xs,zs,Ja,ma=0,Ba=1,ao=Array.isArray(Ae[0])?Ba:ma,Zo="",Vs=function(To,ts,Eo){var Ys="";return Eo instanceof jn?(Eo=typeof In.angle=="number"?Ii(Eo,new jn(1,0,0,1,To,ts)):Ii(new jn(1,0,0,1,To,ts),Eo),En===yr.ADVANCED&&(Eo=Ii(new jn(1,0,0,-1,0,0),Eo)),Ys=Eo.join(" ")+` Tm
|
|
|
`):Ys=ei(To)+" "+ei(ts)+` Td
|
|
|
`,Ys},vs=0;vs<Ae.length;vs++){switch(Zo="",ao){case Ba:Ja=(Si?"<":"(")+Ae[vs][0]+(Si?">":")"),Xs=parseFloat(Ae[vs][1]),zs=parseFloat(Ae[vs][2]);break;case ma:Ja=(Si?"<":"(")+Ae[vs]+(Si?">":")"),Xs=Ho(Mt),zs=vo(tn)}Cs!==void 0&&Cs[vs]!==void 0&&(Zo=Cs[vs]+` Tw
|
|
|
`),vs===0?St.push(Zo+Vs(Xs,zs,$r)+Ja):ao===ma?St.push(Zo+Ja):ao===Ba&&St.push(Zo+Vs(Xs,zs,$r)+Ja)}St=ao===ma?St.join(` Tj
|
|
|
T* `):St.join(` Tj
|
|
|
`),St+=` Tj
|
|
|
`;var Ts=`BT
|
|
|
/`;return Ts+=Mr+" "+ia+` Tf
|
|
|
`,Ts+=ei(ia*Vi)+` TL
|
|
|
`,Ts+=bi+`
|
|
|
`,Ts+=si,Ts+=St,ln(Ts+="ET"),_r[Mr]=!0,xn};var Bi=Wt.__private__.clip=Wt.clip=function(St){return ln(St==="evenodd"?"W*":"W"),this};Wt.clipEvenOdd=function(){return Bi("evenodd")},Wt.__private__.discardPath=Wt.discardPath=function(){return ln("n"),this};var pa=Wt.__private__.isValidStyle=function(St){var Mt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(St)!==-1&&(Mt=!0),Mt};Wt.__private__.setDefaultPathOperation=Wt.setDefaultPathOperation=function(St){return pa(St)&&(kt=St),this};var Do=Wt.__private__.getStyle=Wt.getStyle=function(St){var Mt=kt;switch(St){case"D":case"S":Mt="S";break;case"F":Mt="f";break;case"FD":case"DF":Mt="B";break;case"f":case"f*":case"B":case"B*":Mt=St}return Mt},jo=Wt.close=function(){return ln("h"),this};Wt.stroke=function(){return ln("S"),this},Wt.fill=function(St){return Vo("f",St),this},Wt.fillEvenOdd=function(St){return Vo("f*",St),this},Wt.fillStroke=function(St){return Vo("B",St),this},Wt.fillStrokeEvenOdd=function(St){return Vo("B*",St),this};var Vo=function(Mt,tn){T()(tn)==="object"?Da(tn,Mt):ln(Mt)},Yo=function(Mt){Mt===null||En===yr.ADVANCED&&Mt===void 0||(Mt=Do(Mt),ln(Mt))};function wo(St,Mt,tn,In,mt){var ne=new B(Mt||this.boundingBox,tn||this.xStep,In||this.yStep,this.gState,mt||this.matrix);ne.stream=this.stream;var Ae=St+"$$"+this.cloneIndex+++"$$";return fr(Ae,ne),ne}var Da=function(Mt,tn){var In=_n[Mt.key],mt=Sn[In];if(mt instanceof j)ln("q"),ln(Fo(tn)),mt.gState&&Wt.setGState(mt.gState),ln(Mt.matrix.toString()+" cm"),ln("/"+In+" sh"),ln("Q");else if(mt instanceof B){var ne=new jn(1,0,0,-1,0,Go());Mt.matrix&&(ne=ne.multiply(Mt.matrix||Hi),In=wo.call(mt,Mt.key,Mt.boundingBox,Mt.xStep,Mt.yStep,ne).id),ln("q"),ln("/Pattern cs"),ln("/"+In+" scn"),mt.gState&&Wt.setGState(mt.gState),ln(tn),ln("Q")}},Fo=function(Mt){switch(Mt){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=Wt.moveTo=function(St,Mt){return ln(ei(zr(St))+" "+ei(on(Mt))+" m"),this},mo=Wt.lineTo=function(St,Mt){return ln(ei(zr(St))+" "+ei(on(Mt))+" l"),this},_o=Wt.curveTo=function(St,Mt,tn,In,mt,ne){return ln([ei(zr(St)),ei(on(Mt)),ei(zr(tn)),ei(on(In)),ei(zr(mt)),ei(on(ne)),"c"].join(" ")),this};Wt.__private__.line=Wt.line=function(St,Mt,tn,In,mt){if(isNaN(St)||isNaN(Mt)||isNaN(tn)||isNaN(In)||!pa(mt))throw new Error("Invalid arguments passed to jsPDF.line");return En===yr.COMPAT?this.lines([[tn-St,In-Mt]],St,Mt,[1,1],mt||"S"):this.lines([[tn-St,In-Mt]],St,Mt,[1,1]).stroke()},Wt.__private__.lines=Wt.lines=function(St,Mt,tn,In,mt,ne){var Ae,we,Be,dt,Ot,br,Lr,$r,xn,Wn,si,Si;if(typeof St=="number"&&(Si=tn,tn=Mt,Mt=St,St=Si),In=In||[1,1],ne=ne||!1,isNaN(Mt)||isNaN(tn)||!Array.isArray(St)||!Array.isArray(In)||!pa(mt)||typeof ne!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(Mt,tn),Ae=In[0],we=In[1],dt=St.length,Wn=Mt,si=tn,Be=0;Be<dt;Be++)(Ot=St[Be]).length===2?(Wn=Ot[0]*Ae+Wn,si=Ot[1]*we+si,mo(Wn,si)):(br=Ot[0]*Ae+Wn,Lr=Ot[1]*we+si,$r=Ot[2]*Ae+Wn,xn=Ot[3]*we+si,Wn=Ot[4]*Ae+Wn,si=Ot[5]*we+si,_o(br,Lr,$r,xn,Wn,si));return ne&&jo(),Yo(mt),this},Wt.path=function(St){for(var Mt=0;Mt<St.length;Mt++){var tn=St[Mt],In=tn.c;switch(tn.op){case"m":cs(In[0],In[1]);break;case"l":mo(In[0],In[1]);break;case"c":_o.apply(this,In);break;case"h":jo()}}return this},Wt.__private__.rect=Wt.rect=function(St,Mt,tn,In,mt){if(isNaN(St)||isNaN(Mt)||isNaN(tn)||isNaN(In)||!pa(mt))throw new Error("Invalid arguments passed to jsPDF.rect");return En===yr.COMPAT&&(In=-In),ln([ei(zr(St)),ei(on(Mt)),ei(zr(tn)),ei(zr(In)),"re"].join(" ")),Yo(mt),this},Wt.__private__.triangle=Wt.triangle=function(St,Mt,tn,In,mt,ne,Ae){if(isNaN(St)||isNaN(Mt)||isNaN(tn)||isNaN(In)||isNaN(mt)||isNaN(ne)||!pa(Ae))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[tn-St,In-Mt],[mt-tn,ne-In],[St-mt,Mt-ne]],St,Mt,[1,1],Ae,!0),this},Wt.__private__.roundedRect=Wt.roundedRect=function(St,Mt,tn,In,mt,ne,Ae){if(isNaN(St)||isNaN(Mt)||isNaN(tn)||isNaN(In)||isNaN(mt)||isNaN(ne)||!pa(Ae))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var we=4/3*(Math.SQRT2-1);return mt=Math.min(mt,.5*tn),ne=Math.min(ne,.5*In),this.lines([[tn-2*mt,0],[mt*we,0,mt,ne-ne*we,mt,ne],[0,In-2*ne],[0,ne*we,-mt*we,ne,-mt,ne],[2*mt-tn,0],[-mt*we,0,-mt,-ne*we,-mt,-ne],[0,2*ne-In],[0,-ne*we,mt*we,-ne,mt,-ne]],St+mt,Mt,[1,1],Ae,!0),this},Wt.__private__.ellipse=Wt.ellipse=function(St,Mt,tn,In,mt){if(isNaN(St)||isNaN(Mt)||isNaN(tn)||isNaN(In)||!pa(mt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ne=4/3*(Math.SQRT2-1)*tn,Ae=4/3*(Math.SQRT2-1)*In;return cs(St+tn,Mt),_o(St+tn,Mt-Ae,St+ne,Mt-In,St,Mt-In),_o(St-ne,Mt-In,St-tn,Mt-Ae,St-tn,Mt),_o(St-tn,Mt+Ae,St-ne,Mt+In,St,Mt+In),_o(St+ne,Mt+In,St+tn,Mt+Ae,St+tn,Mt),Yo(mt),this},Wt.__private__.circle=Wt.circle=function(St,Mt,tn,In){if(isNaN(St)||isNaN(Mt)||isNaN(tn)||!pa(In))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(St,Mt,tn,tn,In)},Wt.setFont=function(St,Mt,tn){return tn&&(Mt=oi(Mt,tn)),Mr=Ua(St,Mt,{disableWarning:!1}),this};var Xa=Wt.__private__.getFont=Wt.getFont=function(){return Rn[Ua.apply(Wt,arguments)]};Wt.__private__.getFontList=Wt.getFontList=function(){var St,Mt,tn={};for(St in Nn)if(Nn.hasOwnProperty(St))for(Mt in tn[St]=[],Nn[St])Nn[St].hasOwnProperty(Mt)&&tn[St].push(Mt);return tn},Wt.addFont=function(St,Mt,tn,In,mt){var ne=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ne.indexOf(arguments[3])!==-1?mt=arguments[3]:arguments[3]&&ne.indexOf(arguments[3])==-1&&(tn=oi(tn,In)),mt=mt||"Identity-H",Ha.call(this,St,Mt,tn,mt)};var Qo,il=Ye.lineWidth||.200025,Os=Wt.__private__.getLineWidth=Wt.getLineWidth=function(){return il},as=Wt.__private__.setLineWidth=Wt.setLineWidth=function(St){return il=St,ln(ei(zr(St))+" w"),this};Wt.__private__.setLineDash=K.API.setLineDash=K.API.setLineDashPattern=function(St,Mt){if(St=St||[],Mt=Mt||0,isNaN(Mt)||!Array.isArray(St))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return St=St.map(function(tn){return ei(zr(tn))}).join(" "),Mt=ei(zr(Mt)),ln("["+St+"] "+Mt+" d"),this};var xs=Wt.__private__.getLineHeight=Wt.getLineHeight=function(){return ia*Qo};Wt.__private__.getLineHeight=Wt.getLineHeight=function(){return ia*Qo};var Ls=Wt.__private__.setLineHeightFactor=Wt.setLineHeightFactor=function(St){return typeof(St=St||1.15)=="number"&&(Qo=St),this},ys=Wt.__private__.getLineHeightFactor=Wt.getLineHeightFactor=function(){return Qo};Ls(Ye.lineHeight);var Ho=Wt.__private__.getHorizontalCoordinate=function(St){return zr(St)},vo=Wt.__private__.getVerticalCoordinate=function(St){return En===yr.ADVANCED?St:gi[Fr].mediaBox.topRightY-gi[Fr].mediaBox.bottomLeftY-zr(St)},es=Wt.__private__.getHorizontalCoordinateString=Wt.getHorizontalCoordinateString=function(St){return ei(Ho(St))},Ko=Wt.__private__.getVerticalCoordinateString=Wt.getVerticalCoordinateString=function(St){return ei(vo(St))},Ro=Ye.strokeColor||"0 G";Wt.__private__.getStrokeColor=Wt.getDrawColor=function(){return jr(Ro)},Wt.__private__.setStrokeColor=Wt.setDrawColor=function(St,Mt,tn,In){return Ro=Ur({ch1:St,ch2:Mt,ch3:tn,ch4:In,pdfColorType:"draw",precision:2}),ln(Ro),this};var Vr=Ye.fillColor||"0 g";Wt.__private__.getFillColor=Wt.getFillColor=function(){return jr(Vr)},Wt.__private__.setFillColor=Wt.setFillColor=function(St,Mt,tn,In){return Vr=Ur({ch1:St,ch2:Mt,ch3:tn,ch4:In,pdfColorType:"fill",precision:2}),ln(Vr),this};var bi=Ye.textColor||"0 g",Qs=Wt.__private__.getTextColor=Wt.getTextColor=function(){return jr(bi)};Wt.__private__.setTextColor=Wt.setTextColor=function(St,Mt,tn,In){return bi=Ur({ch1:St,ch2:Mt,ch3:tn,ch4:In,pdfColorType:"text",precision:3}),this};var Ns=Ye.charSpace,js=Wt.__private__.getCharSpace=Wt.getCharSpace=function(){return parseFloat(Ns||0)};Wt.__private__.setCharSpace=Wt.setCharSpace=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ns=St,this};var so=0;Wt.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},Wt.__private__.setLineCap=Wt.setLineCap=function(St){var Mt=Wt.CapJoinStyles[St];if(Mt===void 0)throw new Error("Line cap style of '"+St+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return so=Mt,ln(Mt+" J"),this};var Ao=0;Wt.__private__.setLineJoin=Wt.setLineJoin=function(St){var Mt=Wt.CapJoinStyles[St];if(Mt===void 0)throw new Error("Line join style of '"+St+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ao=Mt,ln(Mt+" j"),this},Wt.__private__.setLineMiterLimit=Wt.__private__.setMiterLimit=Wt.setLineMiterLimit=Wt.setMiterLimit=function(St){if(St=St||0,isNaN(St))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ln(ei(zr(St))+" M"),this},Wt.GState=F,Wt.setGState=function(St){(St=typeof St=="string"?Hn[Yn[St]]:Jo(null,St)).equals(Zn)||(ln("/"+St.id+" gs"),Zn=St)};var Jo=function(Mt,tn){if(!Mt||!Yn[Mt]){var In=!1;for(var mt in Hn)if(Hn.hasOwnProperty(mt)&&Hn[mt].equals(tn)){In=!0;break}if(In)tn=Hn[mt];else{var ne="GS"+(Object.keys(Hn).length+1).toString(10);Hn[ne]=tn,tn.id=ne}return Mt&&(Yn[Mt]=tn.id),Di.publish("addGState",tn),tn}};Wt.addGState=function(St,Mt){return Jo(St,Mt),this},Wt.saveGraphicsState=function(){return ln("q"),yn.push({key:Mr,size:ia,color:bi}),this},Wt.restoreGraphicsState=function(){ln("Q");var St=yn.pop();return Mr=St.key,ia=St.size,bi=St.color,Zn=null,this},Wt.setCurrentTransformationMatrix=function(St){return ln(St.toString()+" cm"),this},Wt.comment=function(St){return ln("#"+St),this};var Uo=function(Mt,tn){var In=Mt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return In},set:function(we){isNaN(we)||(In=parseFloat(we))}});var mt=tn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return mt},set:function(we){isNaN(we)||(mt=parseFloat(we))}});var ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ne},set:function(we){ne=we.toString()}}),this},bs=function(Mt,tn,In,mt){Uo.call(this,Mt,tn),this.type="rect";var ne=In||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ne},set:function(Be){isNaN(Be)||(ne=parseFloat(Be))}});var Ae=mt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ae},set:function(Be){isNaN(Be)||(Ae=parseFloat(Be))}}),this},ms=function(){this.page=yi,this.currentPage=Fr,this.pages=Wi.slice(0),this.pagesContext=gi.slice(0),this.x=nn,this.y=wn,this.matrix=On,this.width=Js(Fr),this.height=Go(Fr),this.outputDestination=ea,this.id="",this.objectNumber=-1};ms.prototype.restore=function(){yi=this.page,Fr=this.currentPage,gi=this.pagesContext,Wi=this.pages,nn=this.x,wn=this.y,On=this.matrix,Hs(Fr,this.width),Ps(Fr,this.height),ea=this.outputDestination};var gs=function(Mt,tn,In,mt,ne){Ni.push(new ms),yi=Fr=0,Wi=[],nn=Mt,wn=tn,On=ne,Ta([In,mt])},ul=function(Mt){if(_i[Mt])Ni.pop().restore();else{var tn=new ms,In="Xo"+(Object.keys(Ei).length+1).toString(10);tn.id=In,_i[Mt]=In,Ei[In]=tn,Di.publish("addFormObject",tn),Ni.pop().restore()}};for(var Ms in Wt.beginFormObject=function(St,Mt,tn,In,mt){return gs(St,Mt,tn,In,mt),this},Wt.endFormObject=function(St){return ul(St),this},Wt.doFormObject=function(St,Mt){var tn=Ei[_i[St]];return ln("q"),ln(Mt.toString()+" cm"),ln("/"+tn.id+" Do"),ln("Q"),this},Wt.getFormObject=function(St){var Mt=Ei[_i[St]];return{x:Mt.x,y:Mt.y,width:Mt.width,height:Mt.height,matrix:Mt.matrix}},Wt.save=function(St,Mt){return St=St||"generated.pdf",(Mt=Mt||{}).returnPromise=Mt.returnPromise||!1,Mt.returnPromise===!1?(t(Co(no()),St),typeof t.unload=="function"&&S.setTimeout&&setTimeout(t.unload,911),this):new Promise(function(tn,In){try{var mt=t(Co(no()),St);typeof t.unload=="function"&&S.setTimeout&&setTimeout(t.unload,911),tn(mt)}catch(ne){In(ne.message)}})},K.API)K.API.hasOwnProperty(Ms)&&(Ms==="events"&&K.API.events.length?function(St,Mt){var tn,In,mt;for(mt=Mt.length-1;mt!==-1;mt--)tn=Mt[mt][0],In=Mt[mt][1],St.subscribe.apply(St,[tn].concat(typeof In=="function"?[In]:In))}(Di,K.API.events):Wt[Ms]=K.API[Ms]);var Js=Wt.getPageWidth=function(St){return(gi[St=St||Fr].mediaBox.topRightX-gi[St].mediaBox.bottomLeftX)/Wr},Hs=Wt.setPageWidth=function(St,Mt){gi[St].mediaBox.topRightX=Mt*Wr+gi[St].mediaBox.bottomLeftX},Go=Wt.getPageHeight=function(St){return(gi[St=St||Fr].mediaBox.topRightY-gi[St].mediaBox.bottomLeftY)/Wr},Ps=Wt.setPageHeight=function(St,Mt){gi[St].mediaBox.topRightY=Mt*Wr+gi[St].mediaBox.bottomLeftY};return Wt.internal={pdfEscape:Ya,getStyle:Do,getFont:Xa,getFontSize:Xr,getCharSpace:js,getTextColor:Qs,getLineHeight:xs,getLineHeightFactor:ys,getLineWidth:Os,write:Li,getHorizontalCoordinate:Ho,getVerticalCoordinate:vo,getCoordinateString:es,getVerticalCoordinateString:Ko,collections:{},newObject:Dr,newAdditionalObject:Yt,newObjectDeferred:Qr,newObjectDeferredBegin:Nr,getFilters:dn,putStream:sn,events:Di,scaleFactor:Wr,pageSize:{getWidth:function(){return Js(Fr)},setWidth:function(Mt){Hs(Fr,Mt)},getHeight:function(){return Go(Fr)},setHeight:function(Mt){Ps(Fr,Mt)}},encryptionOptions:wr,encryption:Za,getEncryptor:qa,output:fo,getNumberOfPages:ho,pages:Wi,out:ln,f2:xi,f3:gn,getPageInfo:Oa,getPageInfoByObjId:oo,getCurrentPageInfo:go,getPDFVersion:ir,Point:Uo,Rectangle:bs,Matrix:jn,hasHotfix:po},Object.defineProperty(Wt.internal.pageSize,"width",{get:function(){return Js(Fr)},set:function(Mt){Hs(Fr,Mt)},enumerable:!0,configurable:!0}),Object.defineProperty(Wt.internal.pageSize,"height",{get:function(){return Go(Fr)},set:function(Mt){Ps(Fr,Mt)},enumerable:!0,configurable:!0}),ka.call(Wt,Fi),Mr="F1",Ga(Ve,ke),Di.publish("initialized"),Wt}D.prototype.lsbFirstWord=function(Ye){return String.fromCharCode(Ye>>0&255,Ye>>8&255,Ye>>16&255,Ye>>24&255)},D.prototype.toHexString=function(Ye){return Ye.split("").map(function(Ce){return("0"+(255&Ce.charCodeAt(0)).toString(16)).slice(-2)}).join("")},D.prototype.hexToBytes=function(Ye){for(var Ce=[],ke=0;ke<Ye.length;ke+=2)Ce.push(String.fromCharCode(parseInt(Ye.substr(ke,2),16)));return Ce.join("")},D.prototype.processOwnerPassword=function(Ye,Ce){return O(w(Ce).substr(0,5),Ye)},D.prototype.encryptor=function(Ye,Ce){var ke=w(this.encryptionKey+String.fromCharCode(255&Ye,Ye>>8&255,Ye>>16&255,255&Ce,Ce>>8&255)).substr(0,10);return function(Fe){return O(ke,Fe)}},F.prototype.equals=function(Ye){var Ce,ke="id,objectNumber,equals";if(!Ye||T()(Ye)!==T()(this))return!1;var Fe=0;for(Ce in this)if(!(ke.indexOf(Ce)>=0)){if(this.hasOwnProperty(Ce)&&!Ye.hasOwnProperty(Ce))return!1;if(this[Ce]!==Ye[Ce])return!1;Fe++}for(Ce in Ye)Ye.hasOwnProperty(Ce)&&ke.indexOf(Ce)<0&&Fe--;return Fe===0},K.API={events:[]},K.version="2.5.0";var U=K.API,z=1,V=function(Ce){return Ce.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(Ce){return Ce.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},J=function(Ce){return Ce.toFixed(2)},se=function(Ce){return Ce.toFixed(5)};U.__acroform__={};var $=function(Ce,ke){Ce.prototype=Object.create(ke.prototype),Ce.prototype.constructor=Ce},ae=function(Ce){return Ce*z},ge=function(Ce){var ke=new Te,Fe=ie.internal.getHeight(Ce)||0,Ve=ie.internal.getWidth(Ce)||0;return ke.BBox=[0,0,Number(J(Ve)),Number(J(Fe))],ke},pe=U.__acroform__.setBit=function(Ye,Ce){if(Ye=Ye||0,Ce=Ce||0,isNaN(Ye)||isNaN(Ce))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Ye|=1<<Ce},Ne=U.__acroform__.clearBit=function(Ye,Ce){if(Ye=Ye||0,Ce=Ce||0,isNaN(Ye)||isNaN(Ce))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Ye&=~(1<<Ce)},de=U.__acroform__.getBit=function(Ye,Ce){if(isNaN(Ye)||isNaN(Ce))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Ye&1<<Ce)==0?0:1},Le=U.__acroform__.getBitForPdf=function(Ye,Ce){if(isNaN(Ye)||isNaN(Ce))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return de(Ye,Ce-1)},Q=U.__acroform__.setBitForPdf=function(Ye,Ce){if(isNaN(Ye)||isNaN(Ce))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return pe(Ye,Ce-1)},ce=U.__acroform__.clearBitForPdf=function(Ye,Ce){if(isNaN(Ye)||isNaN(Ce))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ne(Ye,Ce-1)},Ke=U.__acroform__.calculateCoordinates=function(Ye,Ce){var ke=Ce.internal.getHorizontalCoordinate,Fe=Ce.internal.getVerticalCoordinate,Ve=Ye[0],We=Ye[1],Ze=Ye[2],yt=Ye[3],lt={};return lt.lowerLeft_X=ke(Ve)||0,lt.lowerLeft_Y=Fe(We+yt)||0,lt.upperRight_X=ke(Ve+Ze)||0,lt.upperRight_Y=Fe(We)||0,[Number(J(lt.lowerLeft_X)),Number(J(lt.lowerLeft_Y)),Number(J(lt.upperRight_X)),Number(J(lt.upperRight_Y))]},ee=function(Ce){if(Ce.appearanceStreamContent)return Ce.appearanceStreamContent;if(Ce.V||Ce.DV){var ke=[],Fe=Ce._V||Ce.DV,Ve=X(Ce,Fe),We=Ce.scope.internal.getFont(Ce.fontName,Ce.fontStyle).id;ke.push("/Tx BMC"),ke.push("q"),ke.push("BT"),ke.push(Ce.scope.__private__.encodeColorString(Ce.color)),ke.push("/"+We+" "+J(Ve.fontSize)+" Tf"),ke.push("1 0 0 1 0 0 Tm"),ke.push(Ve.text),ke.push("ET"),ke.push("Q"),ke.push("EMC");var Ze=ge(Ce);return Ze.scope=Ce.scope,Ze.stream=ke.join(`
|
|
|
`),Ze}},X=function(Ce,ke){var Fe=Ce.fontSize===0?Ce.maxFontSize:Ce.fontSize,Ve={text:"",fontSize:""},We=(ke=(ke=ke.substr(0,1)=="("?ke.substr(1):ke).substr(ke.length-1)==")"?ke.substr(0,ke.length-1):ke).split(" ");We=Ce.multiline?We.map(function(zr){return zr.split(`
|
|
|
`)}):We.map(function(zr){return[zr]});var Ze=Fe,yt=ie.internal.getHeight(Ce)||0;yt=yt<0?-yt:yt;var lt=ie.internal.getWidth(Ce)||0;lt=lt<0?-lt:lt;var kt=function(Cn,on,li){if(Cn+1<We.length){var ri=on+" "+We[Cn+1][0];return G(ri,Ce,li).width<=lt-4}return!1};Ze++;e:for(;Ze>0;){ke="",Ze--;var wr,pr,_r=G("3",Ce,Ze).height,Wt=Ce.multiline?yt-Ze:(yt-_r)/2,un=Wt+=2,ir=0,Gr=0,kr=0;if(Ze<=0){ke=`(...) Tj
|
|
|
`,ke+="% Width of Text: "+G(ke,Ce,Ze=12).width+", FieldWidth:"+lt+`
|
|
|
`;break}for(var yr="",En=0,kn=0;kn<We.length;kn++)if(We.hasOwnProperty(kn)){var ii=!1;if(We[kn].length!==1&&kr!==We[kn].length-1){if((_r+2)*(En+2)+2>yt)continue e;yr+=We[kn][kr],ii=!0,Gr=kn,kn--}else{yr=(yr+=We[kn][kr]+" ").substr(yr.length-1)==" "?yr.substr(0,yr.length-1):yr;var oi=parseInt(kn),ei=kt(oi,yr,Ze),ci=kn>=We.length-1;if(ei&&!ci){yr+=" ",kr=0;continue}if(ei||ci){if(ci)Gr=oi;else if(Ce.multiline&&(_r+2)*(En+2)+2>yt)continue e}else{if(!Ce.multiline)continue e;if((_r+2)*(En+2)+2>yt)continue e;Gr=oi}}for(var Pn="",xi=ir;xi<=Gr;xi++){var gn=We[xi];if(Ce.multiline){if(xi===Gr){Pn+=gn[kr]+" ",kr=(kr+1)%gn.length;continue}if(xi===ir){Pn+=gn[gn.length-1]+" ";continue}}Pn+=gn[0]+" "}switch(Pn=Pn.substr(Pn.length-1)==" "?Pn.substr(0,Pn.length-1):Pn,pr=G(Pn,Ce,Ze).width,Ce.textAlign){case"right":wr=lt-pr-2;break;case"center":wr=(lt-pr)/2;break;case"left":default:wr=2}ke+=J(wr)+" "+J(un)+` Td
|
|
|
`,ke+="("+V(Pn)+`) Tj
|
|
|
`,ke+=-J(wr)+` 0 Td
|
|
|
`,un=-(Ze+2),pr=0,ir=ii?Gr:Gr+1,En++,yr=""}break}return Ve.text=ke,Ve.fontSize=Ze,Ve},G=function(Ce,ke,Fe){var Ve=ke.scope.internal.getFont(ke.fontName,ke.fontStyle),We=ke.scope.getStringUnitWidth(Ce,{font:Ve,fontSize:parseFloat(Fe),charSpace:0})*parseFloat(Fe);return{height:ke.scope.getStringUnitWidth("3",{font:Ve,fontSize:parseFloat(Fe),charSpace:0})*parseFloat(Fe)*1.5,width:We}},Z={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ve=function(Ce,ke){var Fe={type:"reference",object:Ce};ke.internal.getPageInfo(Ce.page).pageContext.annotations.find(function(Ve){return Ve.type===Fe.type&&Ve.object===Fe.object})===void 0&&ke.internal.getPageInfo(Ce.page).pageContext.annotations.push(Fe)},ue=function(Ce,ke){for(var Fe in Ce)if(Ce.hasOwnProperty(Fe)){var Ve=Fe,We=Ce[Fe];ke.internal.newObjectDeferredBegin(We.objId,!0),T()(We)==="object"&&typeof We.putStream=="function"&&We.putStream(),delete Ce[Ve]}},_e=function(Ce,ke){if(ke.scope=Ce,Ce.internal!==void 0&&(Ce.internal.acroformPlugin===void 0||Ce.internal.acroformPlugin.isInitialized===!1)){if(it.FieldNum=0,Ce.internal.acroformPlugin=JSON.parse(JSON.stringify(Z)),Ce.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");z=Ce.internal.scaleFactor,Ce.internal.acroformPlugin.acroFormDictionaryRoot=new ze,Ce.internal.acroformPlugin.acroFormDictionaryRoot.scope=Ce,Ce.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Ce.internal.events.subscribe("postPutResources",function(){!function(Fe){Fe.internal.events.unsubscribe(Fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Fe.internal.acroformPlugin.printedOut=!0}(Ce)}),Ce.internal.events.subscribe("buildDocument",function(){!function(Fe){Fe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ve=Fe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var We in Ve)if(Ve.hasOwnProperty(We)){var Ze=Ve[We];Ze.objId=void 0,Ze.hasAnnotation&&ve(Ze,Fe)}}(Ce)}),Ce.internal.events.subscribe("putCatalog",function(){!function(Fe){if(Fe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Fe.internal.write("/AcroForm "+Fe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Ce)}),Ce.internal.events.subscribe("postPutPages",function(Fe){!function(Ve,We){var Ze=!Ve;for(var yt in Ve||(We.internal.newObjectDeferredBegin(We.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),We.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ve=Ve||We.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ve.hasOwnProperty(yt)){var lt=Ve[yt],kt=[],wr=lt.Rect;if(lt.Rect&&(lt.Rect=Ke(lt.Rect,We)),We.internal.newObjectDeferredBegin(lt.objId,!0),lt.DA=ie.createDefaultAppearanceStream(lt),T()(lt)==="object"&&typeof lt.getKeyValueListForStream=="function"&&(kt=lt.getKeyValueListForStream()),lt.Rect=wr,lt.hasAppearanceStream&&!lt.appearanceStreamContent){var pr=ee(lt);kt.push({key:"AP",value:"<</N "+pr+">>"}),We.internal.acroformPlugin.xForms.push(pr)}if(lt.appearanceStreamContent){var _r="";for(var Wt in lt.appearanceStreamContent)if(lt.appearanceStreamContent.hasOwnProperty(Wt)){var un=lt.appearanceStreamContent[Wt];if(_r+="/"+Wt+" ",_r+="<<",Object.keys(un).length>=1||Array.isArray(un)){for(var yt in un)if(un.hasOwnProperty(yt)){var ir=un[yt];typeof ir=="function"&&(ir=ir.call(We,lt)),_r+="/"+yt+" "+ir+" ",We.internal.acroformPlugin.xForms.indexOf(ir)>=0||We.internal.acroformPlugin.xForms.push(ir)}}else typeof(ir=un)=="function"&&(ir=ir.call(We,lt)),_r+="/"+yt+" "+ir,We.internal.acroformPlugin.xForms.indexOf(ir)>=0||We.internal.acroformPlugin.xForms.push(ir);_r+=">>"}kt.push({key:"AP",value:`<<
|
|
|
`+_r+">>"})}We.internal.putStream({additionalKeyValues:kt,objectId:lt.objId}),We.internal.out("endobj")}Ze&&ue(We.internal.acroformPlugin.xForms,We)}(Fe,Ce)}),Ce.internal.acroformPlugin.isInitialized=!0}},xe=U.__acroform__.arrayToPdfArray=function(Ye,Ce,ke){var Fe=function(yt){return yt};if(Array.isArray(Ye)){for(var Ve="[",We=0;We<Ye.length;We++)switch(We!==0&&(Ve+=" "),T()(Ye[We])){case"boolean":case"number":case"object":Ve+=Ye[We].toString();break;case"string":Ye[We].substr(0,1)!=="/"?(Ce!==void 0&&ke&&(Fe=ke.internal.getEncryptor(Ce)),Ve+="("+V(Fe(Ye[We].toString()))+")"):Ve+=Ye[We].toString()}return Ve+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},oe=function(Ce,ke,Fe){var Ve=function(Ze){return Ze};return ke!==void 0&&Fe&&(Ve=Fe.internal.getEncryptor(ke)),(Ce=Ce||"").toString(),Ce="("+V(Ve(Ce))+")"},fe=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(ke){this._objId=ke}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fe.prototype.toString=function(){return this.objId+" 0 R"},fe.prototype.putStream=function(){var Ye=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Ye,objectId:this.objId}),this.scope.internal.out("endobj")},fe.prototype.getKeyValueListForStream=function(){var Ye=[],Ce=Object.getOwnPropertyNames(this).filter(function(We){return We!="content"&&We!="appearanceStreamContent"&&We!="scope"&&We!="objId"&&We.substring(0,1)!="_"});for(var ke in Ce)if(Object.getOwnPropertyDescriptor(this,Ce[ke]).configurable===!1){var Fe=Ce[ke],Ve=this[Fe];Ve&&(Array.isArray(Ve)?Ye.push({key:Fe,value:xe(Ve,this.objId,this.scope)}):Ve instanceof fe?(Ve.scope=this.scope,Ye.push({key:Fe,value:Ve.objId+" 0 R"})):typeof Ve!="function"&&Ye.push({key:Fe,value:Ve}))}return Ye};var Te=function(){fe.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 Ce,ke=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return ke},set:function(Ve){ke=Ve}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ve){Ce=Ve.trim()},get:function(){return Ce||null}})};$(Te,fe);var ze=function(){fe.call(this);var Ce,ke=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return ke.length>0?ke:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return ke}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Ce){var Ve=function(Ze){return Ze};return this.scope&&(Ve=this.scope.internal.getEncryptor(this.objId)),"("+V(Ve(Ce))+")"}},set:function(Ve){Ce=Ve}})};$(ze,fe);var it=function Ye(){fe.call(this);var Ce=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Ce},set:function(yr){if(isNaN(yr))throw new Error('Invalid value "'+yr+'" for attribute F supplied.');Ce=yr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(Ce,3))},set:function(yr){Boolean(yr)===!0?this.F=Q(Ce,3):this.F=ce(Ce,3)}});var ke=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return ke},set:function(yr){if(isNaN(yr))throw new Error('Invalid value "'+yr+'" for attribute Ff supplied.');ke=yr}});var Fe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Fe.length!==0)return Fe},set:function(yr){Fe=yr!==void 0?yr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[0])?0:Fe[0]},set:function(yr){Fe[0]=yr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[1])?0:Fe[1]},set:function(yr){Fe[1]=yr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[2])?0:Fe[2]},set:function(yr){Fe[2]=yr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[3])?0:Fe[3]},set:function(yr){Fe[3]=yr}});var Ve="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ve},set:function(yr){switch(yr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ve=yr;break;default:throw new Error('Invalid value "'+yr+'" for attribute FT supplied.')}}});var We=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!We||We.length<1){if(this instanceof Dt)return;We="FieldObject"+Ye.FieldNum++}var yr=function(kn){return kn};return this.scope&&(yr=this.scope.internal.getEncryptor(this.objId)),"("+V(yr(We))+")"},set:function(yr){We=yr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return We},set:function(yr){We=yr}});var Ze="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Ze},set:function(yr){Ze=yr}});var yt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(yr){yt=yr}});var lt=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return lt},set:function(yr){lt=yr}});var kt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return kt===void 0?50/z:kt},set:function(yr){kt=yr}});var wr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return wr},set:function(yr){wr=yr}});var pr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!pr||this instanceof Dt||this instanceof Je))return oe(pr,this.objId,this.scope)},set:function(yr){yr=yr.toString(),pr=yr}});var _r=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(_r)return this instanceof wt==!1?oe(_r,this.objId,this.scope):_r},set:function(yr){yr=yr.toString(),_r=this instanceof wt==!1?yr.substr(0,1)==="("?Y(yr.substr(1,yr.length-2)):Y(yr):yr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof wt==!0?Y(_r.substr(1,_r.length-1)):_r},set:function(yr){yr=yr.toString(),_r=this instanceof wt==!0?"/"+yr:yr}});var Wt=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Wt)return Wt},set:function(yr){this.V=yr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Wt)return this instanceof wt==!1?oe(Wt,this.objId,this.scope):Wt},set:function(yr){yr=yr.toString(),Wt=this instanceof wt==!1?yr.substr(0,1)==="("?Y(yr.substr(1,yr.length-2)):Y(yr):yr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof wt==!0?Y(Wt.substr(1,Wt.length-1)):Wt},set:function(yr){yr=yr.toString(),Wt=this instanceof wt==!0?"/"+yr:yr}}),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 un,ir=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ir},set:function(yr){yr=Boolean(yr),ir=yr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(un)return un},set:function(yr){un=yr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,1))},set:function(yr){Boolean(yr)===!0?this.Ff=Q(this.Ff,1):this.Ff=ce(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,2))},set:function(yr){Boolean(yr)===!0?this.Ff=Q(this.Ff,2):this.Ff=ce(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,3))},set:function(yr){Boolean(yr)===!0?this.Ff=Q(this.Ff,3):this.Ff=ce(this.Ff,3)}});var Gr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Gr!==null)return Gr},set:function(yr){if([0,1,2].indexOf(yr)===-1)throw new Error('Invalid value "'+yr+'" for attribute Q supplied.');Gr=yr}}),Object.defineProperty(this,"textAlign",{get:function(){var yr;switch(Gr){case 0:default:yr="left";break;case 1:yr="center";break;case 2:yr="right"}return yr},configurable:!0,enumerable:!0,set:function(yr){switch(yr){case"right":case 2:Gr=2;break;case"center":case 1:Gr=1;break;case"left":case 0:default:Gr=0}}})};$(it,fe);var et=function(){it.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Ce=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Ce},set:function(Ve){Ce=Ve}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Ce},set:function(Ve){Ce=Ve}});var ke=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return xe(ke,this.objId,this.scope)},set:function(Ve){var We,Ze;Ze=[],typeof(We=Ve)=="string"&&(Ze=function(yt,lt,kt){kt||(kt=1);for(var wr,pr=[];wr=lt.exec(yt);)pr.push(wr[kt]);return pr}(We,/\((.*?)\)/g)),ke=Ze}}),this.getOptions=function(){return ke},this.setOptions=function(Fe){ke=Fe,this.sort&&ke.sort()},this.addOption=function(Fe){Fe=(Fe=Fe||"").toString(),ke.push(Fe),this.sort&&ke.sort()},this.removeOption=function(Fe,Ve){for(Ve=Ve||!1,Fe=(Fe=Fe||"").toString();ke.indexOf(Fe)!==-1&&(ke.splice(ke.indexOf(Fe),1),Ve!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,18))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,18):this.Ff=ce(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,19))},set:function(Ve){this.combo===!0&&(Boolean(Ve)===!0?this.Ff=Q(this.Ff,19):this.Ff=ce(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,20))},set:function(Ve){Boolean(Ve)===!0?(this.Ff=Q(this.Ff,20),ke.sort()):this.Ff=ce(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,22))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,22):this.Ff=ce(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,23))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,23):this.Ff=ce(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,27))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,27):this.Ff=ce(this.Ff,27)}}),this.hasAppearanceStream=!1};$(et,it);var Oe=function(){et.call(this),this.fontName="helvetica",this.combo=!1};$(Oe,et);var gt=function(){Oe.call(this),this.combo=!0};$(gt,Oe);var Ge=function(){gt.call(this),this.edit=!0};$(Ge,gt);var wt=function(){it.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,15))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,15):this.Ff=ce(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,16))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,16):this.Ff=ce(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,17))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,17):this.Ff=ce(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,26))},set:function(Ve){Boolean(Ve)===!0?this.Ff=Q(this.Ff,26):this.Ff=ce(this.Ff,26)}});var Ce,ke={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ve=function(lt){return lt};if(this.scope&&(Ve=this.scope.internal.getEncryptor(this.objId)),Object.keys(ke).length!==0){var We,Ze=[];for(We in Ze.push("<<"),ke)Ze.push("/"+We+" ("+V(Ve(ke[We]))+")");return Ze.push(">>"),Ze.join(`
|
|
|
`)}},set:function(Ve){T()(Ve)==="object"&&(ke=Ve)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return ke.CA||""},set:function(Ve){typeof Ve=="string"&&(ke.CA=Ve)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ce},set:function(Ve){Ce=Ve}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ce.substr(1,Ce.length-1)},set:function(Ve){Ce="/"+Ve}})};$(wt,it);var xt=function(){wt.call(this),this.pushButton=!0};$(xt,wt);var Ct=function(){wt.call(this),this.radio=!0,this.pushButton=!1;var Ce=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Ce},set:function(Fe){Ce=Fe!==void 0?Fe:[]}})};$(Ct,wt);var Dt=function(){var Ce,ke;it.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Ce},set:function(Ze){Ce=Ze}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return ke},set:function(Ze){ke=Ze}});var Fe,Ve={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ze=function(wr){return wr};this.scope&&(Ze=this.scope.internal.getEncryptor(this.objId));var yt,lt=[];for(yt in lt.push("<<"),Ve)lt.push("/"+yt+" ("+V(Ze(Ve[yt]))+")");return lt.push(">>"),lt.join(`
|
|
|
`)},set:function(Ze){T()(Ze)==="object"&&(Ve=Ze)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ve.CA||""},set:function(Ze){typeof Ze=="string"&&(Ve.CA=Ze)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Fe},set:function(Ze){Fe=Ze}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Fe.substr(1,Fe.length-1)},set:function(Ze){Fe="/"+Ze}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ie.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};$(Dt,it),Ct.prototype.setAppearance=function(Ye){if(!("createAppearanceStream"in Ye)||!("getCA"in Ye))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Ce in this.Kids)if(this.Kids.hasOwnProperty(Ce)){var ke=this.Kids[Ce];ke.appearanceStreamContent=Ye.createAppearanceStream(ke.optionName),ke.caption=Ye.getCA()}},Ct.prototype.createOption=function(Ye){var Ce=new Dt;return Ce.Parent=this,Ce.optionName=Ye,this.Kids.push(Ce),bt.call(this.scope,Ce),Ce};var Ht=function(){wt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ie.CheckBox.createAppearanceStream()};$(Ht,wt);var Je=function(){it.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,13))},set:function(Fe){Boolean(Fe)===!0?this.Ff=Q(this.Ff,13):this.Ff=ce(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,21))},set:function(Fe){Boolean(Fe)===!0?this.Ff=Q(this.Ff,21):this.Ff=ce(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,23))},set:function(Fe){Boolean(Fe)===!0?this.Ff=Q(this.Ff,23):this.Ff=ce(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,24))},set:function(Fe){Boolean(Fe)===!0?this.Ff=Q(this.Ff,24):this.Ff=ce(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,25))},set:function(Fe){Boolean(Fe)===!0?this.Ff=Q(this.Ff,25):this.Ff=ce(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,26))},set:function(Fe){Boolean(Fe)===!0?this.Ff=Q(this.Ff,26):this.Ff=ce(this.Ff,26)}});var Ce=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Ce},set:function(Fe){Ce=Fe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Ce},set:function(Fe){Number.isInteger(Fe)&&(Ce=Fe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};$(Je,it);var ye=function(){Je.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Le(this.Ff,14))},set:function(ke){Boolean(ke)===!0?this.Ff=Q(this.Ff,14):this.Ff=ce(this.Ff,14)}}),this.password=!0};$(ye,Je);var ie={CheckBox:{createAppearanceStream:function(){return{N:{On:ie.CheckBox.YesNormal},D:{On:ie.CheckBox.YesPushDown,Off:ie.CheckBox.OffPushDown}}},YesPushDown:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[],Ve=Ce.scope.internal.getFont(Ce.fontName,Ce.fontStyle).id,We=Ce.scope.__private__.encodeColorString(Ce.color),Ze=X(Ce,Ce.caption);return Fe.push("0.749023 g"),Fe.push("0 0 "+J(ie.internal.getWidth(Ce))+" "+J(ie.internal.getHeight(Ce))+" re"),Fe.push("f"),Fe.push("BMC"),Fe.push("q"),Fe.push("0 0 1 rg"),Fe.push("/"+Ve+" "+J(Ze.fontSize)+" Tf "+We),Fe.push("BT"),Fe.push(Ze.text),Fe.push("ET"),Fe.push("Q"),Fe.push("EMC"),ke.stream=Fe.join(`
|
|
|
`),ke},YesNormal:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=Ce.scope.internal.getFont(Ce.fontName,Ce.fontStyle).id,Ve=Ce.scope.__private__.encodeColorString(Ce.color),We=[],Ze=ie.internal.getHeight(Ce),yt=ie.internal.getWidth(Ce),lt=X(Ce,Ce.caption);return We.push("1 g"),We.push("0 0 "+J(yt)+" "+J(Ze)+" re"),We.push("f"),We.push("q"),We.push("0 0 1 rg"),We.push("0 0 "+J(yt-1)+" "+J(Ze-1)+" re"),We.push("W"),We.push("n"),We.push("0 g"),We.push("BT"),We.push("/"+Fe+" "+J(lt.fontSize)+" Tf "+Ve),We.push(lt.text),We.push("ET"),We.push("Q"),ke.stream=We.join(`
|
|
|
`),ke},OffPushDown:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[];return Fe.push("0.749023 g"),Fe.push("0 0 "+J(ie.internal.getWidth(Ce))+" "+J(ie.internal.getHeight(Ce))+" re"),Fe.push("f"),ke.stream=Fe.join(`
|
|
|
`),ke}},RadioButton:{Circle:{createAppearanceStream:function(Ce){var ke={D:{Off:ie.RadioButton.Circle.OffPushDown},N:{}};return ke.N[Ce]=ie.RadioButton.Circle.YesNormal,ke.D[Ce]=ie.RadioButton.Circle.YesPushDown,ke},getCA:function(){return"l"},YesNormal:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[],Ve=ie.internal.getWidth(Ce)<=ie.internal.getHeight(Ce)?ie.internal.getWidth(Ce)/4:ie.internal.getHeight(Ce)/4;Ve=Number((.9*Ve).toFixed(5));var We=ie.internal.Bezier_C,Ze=Number((Ve*We).toFixed(5));return Fe.push("q"),Fe.push("1 0 0 1 "+se(ie.internal.getWidth(Ce)/2)+" "+se(ie.internal.getHeight(Ce)/2)+" cm"),Fe.push(Ve+" 0 m"),Fe.push(Ve+" "+Ze+" "+Ze+" "+Ve+" 0 "+Ve+" c"),Fe.push("-"+Ze+" "+Ve+" -"+Ve+" "+Ze+" -"+Ve+" 0 c"),Fe.push("-"+Ve+" -"+Ze+" -"+Ze+" -"+Ve+" 0 -"+Ve+" c"),Fe.push(Ze+" -"+Ve+" "+Ve+" -"+Ze+" "+Ve+" 0 c"),Fe.push("f"),Fe.push("Q"),ke.stream=Fe.join(`
|
|
|
`),ke},YesPushDown:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[],Ve=ie.internal.getWidth(Ce)<=ie.internal.getHeight(Ce)?ie.internal.getWidth(Ce)/4:ie.internal.getHeight(Ce)/4;Ve=Number((.9*Ve).toFixed(5));var We=Number((2*Ve).toFixed(5)),Ze=Number((We*ie.internal.Bezier_C).toFixed(5)),yt=Number((Ve*ie.internal.Bezier_C).toFixed(5));return Fe.push("0.749023 g"),Fe.push("q"),Fe.push("1 0 0 1 "+se(ie.internal.getWidth(Ce)/2)+" "+se(ie.internal.getHeight(Ce)/2)+" cm"),Fe.push(We+" 0 m"),Fe.push(We+" "+Ze+" "+Ze+" "+We+" 0 "+We+" c"),Fe.push("-"+Ze+" "+We+" -"+We+" "+Ze+" -"+We+" 0 c"),Fe.push("-"+We+" -"+Ze+" -"+Ze+" -"+We+" 0 -"+We+" c"),Fe.push(Ze+" -"+We+" "+We+" -"+Ze+" "+We+" 0 c"),Fe.push("f"),Fe.push("Q"),Fe.push("0 g"),Fe.push("q"),Fe.push("1 0 0 1 "+se(ie.internal.getWidth(Ce)/2)+" "+se(ie.internal.getHeight(Ce)/2)+" cm"),Fe.push(Ve+" 0 m"),Fe.push(Ve+" "+yt+" "+yt+" "+Ve+" 0 "+Ve+" c"),Fe.push("-"+yt+" "+Ve+" -"+Ve+" "+yt+" -"+Ve+" 0 c"),Fe.push("-"+Ve+" -"+yt+" -"+yt+" -"+Ve+" 0 -"+Ve+" c"),Fe.push(yt+" -"+Ve+" "+Ve+" -"+yt+" "+Ve+" 0 c"),Fe.push("f"),Fe.push("Q"),ke.stream=Fe.join(`
|
|
|
`),ke},OffPushDown:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[],Ve=ie.internal.getWidth(Ce)<=ie.internal.getHeight(Ce)?ie.internal.getWidth(Ce)/4:ie.internal.getHeight(Ce)/4;Ve=Number((.9*Ve).toFixed(5));var We=Number((2*Ve).toFixed(5)),Ze=Number((We*ie.internal.Bezier_C).toFixed(5));return Fe.push("0.749023 g"),Fe.push("q"),Fe.push("1 0 0 1 "+se(ie.internal.getWidth(Ce)/2)+" "+se(ie.internal.getHeight(Ce)/2)+" cm"),Fe.push(We+" 0 m"),Fe.push(We+" "+Ze+" "+Ze+" "+We+" 0 "+We+" c"),Fe.push("-"+Ze+" "+We+" -"+We+" "+Ze+" -"+We+" 0 c"),Fe.push("-"+We+" -"+Ze+" -"+Ze+" -"+We+" 0 -"+We+" c"),Fe.push(Ze+" -"+We+" "+We+" -"+Ze+" "+We+" 0 c"),Fe.push("f"),Fe.push("Q"),ke.stream=Fe.join(`
|
|
|
`),ke}},Cross:{createAppearanceStream:function(Ce){var ke={D:{Off:ie.RadioButton.Cross.OffPushDown},N:{}};return ke.N[Ce]=ie.RadioButton.Cross.YesNormal,ke.D[Ce]=ie.RadioButton.Cross.YesPushDown,ke},getCA:function(){return"8"},YesNormal:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[],Ve=ie.internal.calculateCross(Ce);return Fe.push("q"),Fe.push("1 1 "+J(ie.internal.getWidth(Ce)-2)+" "+J(ie.internal.getHeight(Ce)-2)+" re"),Fe.push("W"),Fe.push("n"),Fe.push(J(Ve.x1.x)+" "+J(Ve.x1.y)+" m"),Fe.push(J(Ve.x2.x)+" "+J(Ve.x2.y)+" l"),Fe.push(J(Ve.x4.x)+" "+J(Ve.x4.y)+" m"),Fe.push(J(Ve.x3.x)+" "+J(Ve.x3.y)+" l"),Fe.push("s"),Fe.push("Q"),ke.stream=Fe.join(`
|
|
|
`),ke},YesPushDown:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=ie.internal.calculateCross(Ce),Ve=[];return Ve.push("0.749023 g"),Ve.push("0 0 "+J(ie.internal.getWidth(Ce))+" "+J(ie.internal.getHeight(Ce))+" re"),Ve.push("f"),Ve.push("q"),Ve.push("1 1 "+J(ie.internal.getWidth(Ce)-2)+" "+J(ie.internal.getHeight(Ce)-2)+" re"),Ve.push("W"),Ve.push("n"),Ve.push(J(Fe.x1.x)+" "+J(Fe.x1.y)+" m"),Ve.push(J(Fe.x2.x)+" "+J(Fe.x2.y)+" l"),Ve.push(J(Fe.x4.x)+" "+J(Fe.x4.y)+" m"),Ve.push(J(Fe.x3.x)+" "+J(Fe.x3.y)+" l"),Ve.push("s"),Ve.push("Q"),ke.stream=Ve.join(`
|
|
|
`),ke},OffPushDown:function(Ce){var ke=ge(Ce);ke.scope=Ce.scope;var Fe=[];return Fe.push("0.749023 g"),Fe.push("0 0 "+J(ie.internal.getWidth(Ce))+" "+J(ie.internal.getHeight(Ce))+" re"),Fe.push("f"),ke.stream=Fe.join(`
|
|
|
`),ke}}},createDefaultAppearanceStream:function(Ce){var ke=Ce.scope.internal.getFont(Ce.fontName,Ce.fontStyle).id,Fe=Ce.scope.__private__.encodeColorString(Ce.color);return"/"+ke+" "+Ce.fontSize+" Tf "+Fe}};ie.internal={Bezier_C:.551915024494,calculateCross:function(Ce){var ke=ie.internal.getWidth(Ce),Fe=ie.internal.getHeight(Ce),Ve=Math.min(ke,Fe);return{x1:{x:(ke-Ve)/2,y:(Fe-Ve)/2+Ve},x2:{x:(ke-Ve)/2+Ve,y:(Fe-Ve)/2},x3:{x:(ke-Ve)/2,y:(Fe-Ve)/2},x4:{x:(ke-Ve)/2+Ve,y:(Fe-Ve)/2+Ve}}}},ie.internal.getWidth=function(Ye){var Ce=0;return T()(Ye)==="object"&&(Ce=ae(Ye.Rect[2])),Ce},ie.internal.getHeight=function(Ye){var Ce=0;return T()(Ye)==="object"&&(Ce=ae(Ye.Rect[3])),Ce};var bt=U.addField=function(Ye){if(_e(this,Ye),!(Ye instanceof it))throw new Error("Invalid argument passed to jsPDF.addField.");var Ce;return(Ce=Ye).scope.internal.acroformPlugin.printedOut&&(Ce.scope.internal.acroformPlugin.printedOut=!1,Ce.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Ce.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Ce),Ye.page=Ye.scope.internal.getCurrentPageInfo().pageNumber,this};U.AcroFormChoiceField=et,U.AcroFormListBox=Oe,U.AcroFormComboBox=gt,U.AcroFormEditBox=Ge,U.AcroFormButton=wt,U.AcroFormPushButton=xt,U.AcroFormRadioButton=Ct,U.AcroFormCheckBox=Ht,U.AcroFormTextField=Je,U.AcroFormPasswordField=ye,U.AcroFormAppearance=ie,U.AcroForm={ChoiceField:et,ListBox:Oe,ComboBox:gt,EditBox:Ge,Button:wt,PushButton:xt,RadioButton:Ct,CheckBox:Ht,TextField:Je,PasswordField:ye,Appearance:ie},K.AcroForm={ChoiceField:et,ListBox:Oe,ComboBox:gt,EditBox:Ge,Button:wt,PushButton:xt,RadioButton:Ct,CheckBox:Ht,TextField:Je,PasswordField:ye,Appearance:ie};var qe=K.AcroForm;function me(Ye){return Ye.reduce(function(Ce,ke,Fe){return Ce[ke]=Fe,Ce},{})}!function(Ye){Ye.__addimage__={};var Ce="UNKNOWN",ke={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]]},Fe=Ye.__addimage__.getImageFileTypeByImageData=function(gn,zr){var Cn,on,li,ri,wi,Gn=Ce;if((zr=zr||Ce)==="RGBA"||gn.data!==void 0&&gn.data instanceof Uint8ClampedArray&&"height"in gn&&"width"in gn)return"RGBA";if(oi(gn))for(wi in ke)for(li=ke[wi],Cn=0;Cn<li.length;Cn+=1){for(ri=!0,on=0;on<li[Cn].length;on+=1)if(li[Cn][on]!==void 0&&li[Cn][on]!==gn[on]){ri=!1;break}if(ri===!0){Gn=wi;break}}else for(wi in ke)for(li=ke[wi],Cn=0;Cn<li.length;Cn+=1){for(ri=!0,on=0;on<li[Cn].length;on+=1)if(li[Cn][on]!==void 0&&li[Cn][on]!==gn.charCodeAt(on)){ri=!1;break}if(ri===!0){Gn=wi;break}}return Gn===Ce&&zr!==Ce&&(Gn=zr),Gn},Ve=function gn(zr){for(var Cn=this.internal.write,on=this.internal.putStream,li=(0,this.internal.getFilters)();li.indexOf("FlateEncode")!==-1;)li.splice(li.indexOf("FlateEncode"),1);zr.objectId=this.internal.newObject();var ri=[];if(ri.push({key:"Type",value:"/XObject"}),ri.push({key:"Subtype",value:"/Image"}),ri.push({key:"Width",value:zr.width}),ri.push({key:"Height",value:zr.height}),zr.colorSpace===Gr.INDEXED?ri.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(zr.palette.length/3-1)+" "+("sMask"in zr&&zr.sMask!==void 0?zr.objectId+2:zr.objectId+1)+" 0 R]"}):(ri.push({key:"ColorSpace",value:"/"+zr.colorSpace}),zr.colorSpace===Gr.DEVICE_CMYK&&ri.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ri.push({key:"BitsPerComponent",value:zr.bitsPerComponent}),"decodeParameters"in zr&&zr.decodeParameters!==void 0&&ri.push({key:"DecodeParms",value:"<<"+zr.decodeParameters+">>"}),"transparency"in zr&&Array.isArray(zr.transparency)){for(var wi="",Gn=0,ki=zr.transparency.length;Gn<ki;Gn++)wi+=zr.transparency[Gn]+" "+zr.transparency[Gn]+" ";ri.push({key:"Mask",value:"["+wi+"]"})}zr.sMask!==void 0&&ri.push({key:"SMask",value:zr.objectId+1+" 0 R"});var Jn=zr.filter!==void 0?["/"+zr.filter]:void 0;if(on({data:zr.data,additionalKeyValues:ri,alreadyAppliedFilters:Jn,objectId:zr.objectId}),Cn("endobj"),"sMask"in zr&&zr.sMask!==void 0){var Pi="/Predictor "+zr.predictor+" /Colors 1 /BitsPerComponent "+zr.bitsPerComponent+" /Columns "+zr.width,mn={width:zr.width,height:zr.height,colorSpace:"DeviceGray",bitsPerComponent:zr.bitsPerComponent,decodeParameters:Pi,data:zr.sMask};"filter"in zr&&(mn.filter=zr.filter),gn.call(this,mn)}if(zr.colorSpace===Gr.INDEXED){var Fr=this.internal.newObject();on({data:ci(new Uint8Array(zr.palette)),objectId:Fr}),Cn("endobj")}},We=function(){var zr=this.internal.collections.addImage_images;for(var Cn in zr)Ve.call(this,zr[Cn])},Ze=function(){var zr,Cn=this.internal.collections.addImage_images,on=this.internal.write;for(var li in Cn)on("/I"+(zr=Cn[li]).index,zr.objectId,"0","R")},yt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",We),this.internal.events.subscribe("putXobjectDict",Ze))},lt=function(){var zr=this.internal.collections.addImage_images;return yt.call(this),zr},kt=function(){return Object.keys(this.internal.collections.addImage_images).length},wr=function(zr){return typeof Ye["process"+zr.toUpperCase()]=="function"},pr=function(zr){return T()(zr)==="object"&&zr.nodeType===1},_r=function(zr,Cn){if(zr.nodeName==="IMG"&&zr.hasAttribute("src")){var on=""+zr.getAttribute("src");if(on.indexOf("data:image/")===0)return i(unescape(on).split("base64,").pop());var li=Ye.loadFile(on,!0);if(li!==void 0)return li}if(zr.nodeName==="CANVAS"){if(zr.width===0||zr.height===0)throw new Error("Given canvas must have data. Canvas width: "+zr.width+", height: "+zr.height);var ri;switch(Cn){case"PNG":ri="image/png";break;case"WEBP":ri="image/webp";break;case"JPEG":case"JPG":default:ri="image/jpeg"}return i(zr.toDataURL(ri,1).split("base64,").pop())}},Wt=function(zr){var Cn=this.internal.collections.addImage_images;if(Cn){for(var on in Cn)if(zr===Cn[on].alias)return Cn[on]}},un=function(zr,Cn,on){return zr||Cn||(zr=-96,Cn=-96),zr<0&&(zr=-1*on.width*72/zr/this.internal.scaleFactor),Cn<0&&(Cn=-1*on.height*72/Cn/this.internal.scaleFactor),zr===0&&(zr=Cn*on.width/on.height),Cn===0&&(Cn=zr*on.height/on.width),[zr,Cn]},ir=function(zr,Cn,on,li,ri,wi){var Gn=un.call(this,on,li,ri),ki=this.internal.getCoordinateString,Jn=this.internal.getVerticalCoordinateString,Pi=lt.call(this);if(on=Gn[0],li=Gn[1],Pi[ri.index]=ri,wi){wi*=Math.PI/180;var mn=Math.cos(wi),Fr=Math.sin(wi),An=function(ti){return ti.toFixed(4)},Un=[An(mn),An(Fr),An(-1*Fr),An(mn),0,0,"cm"]}this.internal.write("q"),wi?(this.internal.write([1,"0","0",1,ki(zr),Jn(Cn+li),"cm"].join(" ")),this.internal.write(Un.join(" ")),this.internal.write([ki(on),"0","0",ki(li),"0","0","cm"].join(" "))):this.internal.write([ki(on),"0","0",ki(li),ki(zr),Jn(Cn+li),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ri.index+" Do"),this.internal.write("Q")},Gr=Ye.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"};Ye.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 kr=Ye.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},yr=Ye.__addimage__.sHashCode=function(gn){var zr,Cn,on=0;if(typeof gn=="string")for(Cn=gn.length,zr=0;zr<Cn;zr++)on=(on<<5)-on+gn.charCodeAt(zr),on|=0;else if(oi(gn))for(Cn=gn.byteLength/2,zr=0;zr<Cn;zr++)on=(on<<5)-on+gn[zr],on|=0;return on},En=Ye.__addimage__.validateStringAsBase64=function(gn){(gn=gn||"").toString().trim();var zr=!0;return gn.length===0&&(zr=!1),gn.length%4!=0&&(zr=!1),/^[A-Za-z0-9+/]+$/.test(gn.substr(0,gn.length-2))===!1&&(zr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(gn.substr(-2))===!1&&(zr=!1),zr},kn=Ye.__addimage__.extractImageFromDataUrl=function(gn){var zr=(gn=gn||"").split("base64,"),Cn=null;if(zr.length===2){var on=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(zr[0]);Array.isArray(on)&&(Cn={mimeType:on[1],charset:on[2],data:zr[1]})}return Cn},ii=Ye.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Ye.__addimage__.isArrayBuffer=function(gn){return ii()&&gn instanceof ArrayBuffer};var oi=Ye.__addimage__.isArrayBufferView=function(gn){return ii()&&typeof Uint32Array!="undefined"&&(gn instanceof Int8Array||gn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&gn instanceof Uint8ClampedArray||gn instanceof Int16Array||gn instanceof Uint16Array||gn instanceof Int32Array||gn instanceof Uint32Array||gn instanceof Float32Array||gn instanceof Float64Array)},ei=Ye.__addimage__.binaryStringToUint8Array=function(gn){for(var zr=gn.length,Cn=new Uint8Array(zr),on=0;on<zr;on++)Cn[on]=gn.charCodeAt(on);return Cn},ci=Ye.__addimage__.arrayBufferToBinaryString=function(gn){for(var zr="",Cn=oi(gn)?gn:new Uint8Array(gn),on=0;on<Cn.length;on+=8192)zr+=String.fromCharCode.apply(null,Cn.subarray(on,on+8192));return zr};Ye.addImage=function(){var gn,zr,Cn,on,li,ri,wi,Gn,ki;if(typeof arguments[1]=="number"?(zr=Ce,Cn=arguments[1],on=arguments[2],li=arguments[3],ri=arguments[4],wi=arguments[5],Gn=arguments[6],ki=arguments[7]):(zr=arguments[1],Cn=arguments[2],on=arguments[3],li=arguments[4],ri=arguments[5],wi=arguments[6],Gn=arguments[7],ki=arguments[8]),T()(gn=arguments[0])==="object"&&!pr(gn)&&"imageData"in gn){var Jn=gn;gn=Jn.imageData,zr=Jn.format||zr||Ce,Cn=Jn.x||Cn||0,on=Jn.y||on||0,li=Jn.w||Jn.width||li,ri=Jn.h||Jn.height||ri,wi=Jn.alias||wi,Gn=Jn.compression||Gn,ki=Jn.rotation||Jn.angle||ki}var Pi=this.internal.getFilters();if(Gn===void 0&&Pi.indexOf("FlateEncode")!==-1&&(Gn="SLOW"),isNaN(Cn)||isNaN(on))throw new Error("Invalid coordinates passed to jsPDF.addImage");yt.call(this);var mn=Pn.call(this,gn,zr,wi,Gn);return ir.call(this,Cn,on,li,ri,mn,ki),this};var Pn=function(zr,Cn,on,li){var ri,wi,Gn;if(typeof zr=="string"&&Fe(zr)===Ce){zr=unescape(zr);var ki=xi(zr,!1);(ki!==""||(ki=Ye.loadFile(zr,!0))!==void 0)&&(zr=ki)}if(pr(zr)&&(zr=_r(zr,Cn)),Cn=Fe(zr,Cn),!wr(Cn))throw new Error("addImage does not support files of type '"+Cn+"', please ensure that a plugin for '"+Cn+"' support is added.");if(((Gn=on)==null||Gn.length===0)&&(on=function(Jn){return typeof Jn=="string"||oi(Jn)?yr(Jn):oi(Jn.data)?yr(Jn.data):null}(zr)),(ri=Wt.call(this,on))||(ii()&&(zr instanceof Uint8Array||Cn==="RGBA"||(wi=zr,zr=ei(zr))),ri=this["process"+Cn.toUpperCase()](zr,kt.call(this),on,function(Jn){return Jn&&typeof Jn=="string"&&(Jn=Jn.toUpperCase()),Jn in Ye.image_compression?Jn:kr.NONE}(li),wi)),!ri)throw new Error("An unknown error occurred whilst processing the image.");return ri},xi=Ye.__addimage__.convertBase64ToBinaryString=function(gn,zr){var Cn;zr=typeof zr!="boolean"||zr;var on,li="";if(typeof gn=="string"){on=(Cn=kn(gn))!==null?Cn.data:gn;try{li=i(on)}catch(ri){if(zr)throw En(on)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ri.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return li};Ye.getImageProperties=function(gn){var zr,Cn,on="";if(pr(gn)&&(gn=_r(gn)),typeof gn=="string"&&Fe(gn)===Ce&&((on=xi(gn,!1))===""&&(on=Ye.loadFile(gn)||""),gn=on),Cn=Fe(gn),!wr(Cn))throw new Error("addImage does not support files of type '"+Cn+"', please ensure that a plugin for '"+Cn+"' support is added.");if(!ii()||gn instanceof Uint8Array||(gn=ei(gn)),!(zr=this["process"+Cn.toUpperCase()](gn)))throw new Error("An unknown error occurred whilst processing the image");return zr.fileType=Cn,zr}}(K.API),function(Ye){var Ce=function(Fe){if(Fe!==void 0&&Fe!="")return!0};K.API.events.push(["addPage",function(ke){this.internal.getPageInfo(ke.pageNumber).pageContext.annotations=[]}]),Ye.events.push(["putPage",function(ke){for(var Fe,Ve,We,Ze=this.internal.getCoordinateString,yt=this.internal.getVerticalCoordinateString,lt=this.internal.getPageInfoByObjId(ke.objId),kt=ke.pageContext.annotations,wr=!1,pr=0;pr<kt.length&&!wr;pr++)switch((Fe=kt[pr]).type){case"link":(Ce(Fe.options.url)||Ce(Fe.options.pageNumber))&&(wr=!0);break;case"reference":case"text":case"freetext":wr=!0}if(wr!=0){this.internal.write("/Annots [");for(var _r=0;_r<kt.length;_r++){Fe=kt[_r];var Wt=this.internal.pdfEscape,un=this.internal.getEncryptor(ke.objId);switch(Fe.type){case"reference":this.internal.write(" "+Fe.object.objId+" 0 R ");break;case"text":var ir=this.internal.newAdditionalObject(),Gr=this.internal.newAdditionalObject(),kr=this.internal.getEncryptor(ir.objId),yr=Fe.title||"Note";We="<</Type /Annot /Subtype /Text "+(Ve="/Rect ["+Ze(Fe.bounds.x)+" "+yt(Fe.bounds.y+Fe.bounds.h)+" "+Ze(Fe.bounds.x+Fe.bounds.w)+" "+yt(Fe.bounds.y)+"] ")+"/Contents ("+Wt(kr(Fe.contents))+")",We+=" /Popup "+Gr.objId+" 0 R",We+=" /P "+lt.objId+" 0 R",We+=" /T ("+Wt(kr(yr))+") >>",ir.content=We;var En=ir.objId+" 0 R";We="<</Type /Annot /Subtype /Popup "+(Ve="/Rect ["+Ze(Fe.bounds.x+30)+" "+yt(Fe.bounds.y+Fe.bounds.h)+" "+Ze(Fe.bounds.x+Fe.bounds.w+30)+" "+yt(Fe.bounds.y)+"] ")+" /Parent "+En,Fe.open&&(We+=" /Open true"),We+=" >>",Gr.content=We,this.internal.write(ir.objId,"0 R",Gr.objId,"0 R");break;case"freetext":Ve="/Rect ["+Ze(Fe.bounds.x)+" "+yt(Fe.bounds.y)+" "+Ze(Fe.bounds.x+Fe.bounds.w)+" "+yt(Fe.bounds.y+Fe.bounds.h)+"] ";var kn=Fe.color||"#000000";We="<</Type /Annot /Subtype /FreeText "+Ve+"/Contents ("+Wt(un(Fe.contents))+")",We+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+kn+")",We+=" /Border [0 0 0]",We+=" >>",this.internal.write(We);break;case"link":if(Fe.options.name){var ii=this.annotations._nameMap[Fe.options.name];Fe.options.pageNumber=ii.page,Fe.options.top=ii.y}else Fe.options.top||(Fe.options.top=0);if(Ve="/Rect ["+Fe.finalBounds.x+" "+Fe.finalBounds.y+" "+Fe.finalBounds.w+" "+Fe.finalBounds.h+"] ",We="",Fe.options.url)We="<</Type /Annot /Subtype /Link "+Ve+"/Border [0 0 0] /A <</S /URI /URI ("+Wt(un(Fe.options.url))+") >>";else if(Fe.options.pageNumber)switch(We="<</Type /Annot /Subtype /Link "+Ve+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Fe.options.pageNumber).objId+" 0 R",Fe.options.magFactor=Fe.options.magFactor||"XYZ",Fe.options.magFactor){case"Fit":We+=" /Fit]";break;case"FitH":We+=" /FitH "+Fe.options.top+"]";break;case"FitV":Fe.options.left=Fe.options.left||0,We+=" /FitV "+Fe.options.left+"]";break;case"XYZ":default:var oi=yt(Fe.options.top);Fe.options.left=Fe.options.left||0,Fe.options.zoom===void 0&&(Fe.options.zoom=0),We+=" /XYZ "+Fe.options.left+" "+oi+" "+Fe.options.zoom+"]"}We!=""&&(We+=" >>",this.internal.write(We))}}this.internal.write("]")}}]),Ye.createAnnotation=function(ke){var Fe=this.internal.getCurrentPageInfo();switch(ke.type){case"link":this.link(ke.bounds.x,ke.bounds.y,ke.bounds.w,ke.bounds.h,ke);break;case"text":case"freetext":Fe.pageContext.annotations.push(ke)}},Ye.link=function(ke,Fe,Ve,We,Ze){var yt=this.internal.getCurrentPageInfo(),lt=this.internal.getCoordinateString,kt=this.internal.getVerticalCoordinateString;yt.pageContext.annotations.push({finalBounds:{x:lt(ke),y:kt(Fe),w:lt(ke+Ve),h:kt(Fe+We)},options:Ze,type:"link"})},Ye.textWithLink=function(ke,Fe,Ve,We){var Ze,yt,lt=this.getTextWidth(ke),kt=this.internal.getLineHeight()/this.internal.scaleFactor;if(We.maxWidth!==void 0){yt=We.maxWidth;var wr=this.splitTextToSize(ke,yt).length;Ze=Math.ceil(kt*wr)}else yt=lt,Ze=kt;return this.text(ke,Fe,Ve,We),Ve+=.2*kt,We.align==="center"&&(Fe-=lt/2),We.align==="right"&&(Fe-=lt),this.link(Fe,Ve-kt,yt,Ze,We),lt},Ye.getTextWidth=function(ke){var Fe=this.internal.getFontSize();return this.getStringUnitWidth(ke)*Fe/this.internal.scaleFactor}}(K.API),function(Ye){var Ce={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]},ke={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}},Fe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ve=[1570,1571,1573,1575];Ye.__arabicParser__={};var We=Ye.__arabicParser__.isInArabicSubstitutionA=function(ir){return Ce[ir.charCodeAt(0)]!==void 0},Ze=Ye.__arabicParser__.isArabicLetter=function(ir){return typeof ir=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ir)},yt=Ye.__arabicParser__.isArabicEndLetter=function(ir){return Ze(ir)&&We(ir)&&Ce[ir.charCodeAt(0)].length<=2},lt=Ye.__arabicParser__.isArabicAlfLetter=function(ir){return Ze(ir)&&Ve.indexOf(ir.charCodeAt(0))>=0};Ye.__arabicParser__.arabicLetterHasIsolatedForm=function(ir){return Ze(ir)&&We(ir)&&Ce[ir.charCodeAt(0)].length>=1};var kt=Ye.__arabicParser__.arabicLetterHasFinalForm=function(ir){return Ze(ir)&&We(ir)&&Ce[ir.charCodeAt(0)].length>=2};Ye.__arabicParser__.arabicLetterHasInitialForm=function(ir){return Ze(ir)&&We(ir)&&Ce[ir.charCodeAt(0)].length>=3};var wr=Ye.__arabicParser__.arabicLetterHasMedialForm=function(ir){return Ze(ir)&&We(ir)&&Ce[ir.charCodeAt(0)].length==4},pr=Ye.__arabicParser__.resolveLigatures=function(ir){var Gr=0,kr=ke,yr="",En=0;for(Gr=0;Gr<ir.length;Gr+=1)kr[ir.charCodeAt(Gr)]!==void 0?(En++,typeof(kr=kr[ir.charCodeAt(Gr)])=="number"&&(yr+=String.fromCharCode(kr),kr=ke,En=0),Gr===ir.length-1&&(kr=ke,yr+=ir.charAt(Gr-(En-1)),Gr-=En-1,En=0)):(kr=ke,yr+=ir.charAt(Gr-En),Gr-=En,En=0);return yr};Ye.__arabicParser__.isArabicDiacritic=function(ir){return ir!==void 0&&Fe[ir.charCodeAt(0)]!==void 0};var _r=Ye.__arabicParser__.getCorrectForm=function(ir,Gr,kr){return Ze(ir)?We(ir)===!1?-1:!kt(ir)||!Ze(Gr)&&!Ze(kr)||!Ze(kr)&&yt(Gr)||yt(ir)&&!Ze(Gr)||yt(ir)&<(Gr)||yt(ir)&&yt(Gr)?0:wr(ir)&&Ze(Gr)&&!yt(Gr)&&Ze(kr)&&kt(kr)?3:yt(ir)||!Ze(kr)?1:2:-1},Wt=function(Gr){var kr=0,yr=0,En=0,kn="",ii="",oi="",ei=(Gr=Gr||"").split("\\s+"),ci=[];for(kr=0;kr<ei.length;kr+=1){for(ci.push(""),yr=0;yr<ei[kr].length;yr+=1)kn=ei[kr][yr],ii=ei[kr][yr-1],oi=ei[kr][yr+1],Ze(kn)?(En=_r(kn,ii,oi),ci[kr]+=En!==-1?String.fromCharCode(Ce[kn.charCodeAt(0)][En]):kn):ci[kr]+=kn;ci[kr]=pr(ci[kr])}return ci.join(" ")},un=Ye.__arabicParser__.processArabic=Ye.processArabic=function(){var ir,Gr=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,kr=[];if(Array.isArray(Gr)){var yr=0;for(kr=[],yr=0;yr<Gr.length;yr+=1)Array.isArray(Gr[yr])?kr.push([Wt(Gr[yr][0]),Gr[yr][1],Gr[yr][2]]):kr.push([Wt(Gr[yr])]);ir=kr}else ir=Wt(Gr);return typeof arguments[0]=="string"?ir:(arguments[0].text=ir,arguments[0])};Ye.events.push(["preProcessText",un])}(K.API),K.API.autoPrint=function(Ye){var Ce;switch((Ye=Ye||{}).variant=Ye.variant||"non-conform",Ye.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Ce=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 "+Ce+" 0 R")})}return this},function(Ye){var Ce=function(){var Fe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Fe},set:function(kt){Fe=kt}});var Ve=150;Object.defineProperty(this,"width",{get:function(){return Ve},set:function(kt){Ve=isNaN(kt)||Number.isInteger(kt)===!1||kt<0?150:kt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ve+1)}});var We=300;Object.defineProperty(this,"height",{get:function(){return We},set:function(kt){We=isNaN(kt)||Number.isInteger(kt)===!1||kt<0?300:kt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=We+1)}});var Ze=[];Object.defineProperty(this,"childNodes",{get:function(){return Ze},set:function(kt){Ze=kt}});var yt={};Object.defineProperty(this,"style",{get:function(){return yt},set:function(kt){yt=kt}}),Object.defineProperty(this,"parentNode",{})};Ce.prototype.getContext=function(ke,Fe){var Ve;if((ke=ke||"2d")!=="2d")return null;for(Ve in Fe)this.pdf.context2d.hasOwnProperty(Ve)&&(this.pdf.context2d[Ve]=Fe[Ve]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Ce.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Ye.events.push(["initialized",function(){this.canvas=new Ce,this.canvas.pdf=this}])}(K.API),function(Ye){var Ce={left:0,top:0,bottom:0,right:0},ke=!1,Fe=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({},Ce),this.internal.__cell__.margins.width=this.getPageWidth(),Ve.call(this))},Ve=function(){this.internal.__cell__.lastCell=new We,this.internal.__cell__.pages=1},We=function(){var kt=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return kt},set:function(kr){kt=kr}});var wr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return wr},set:function(kr){wr=kr}});var pr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return pr},set:function(kr){pr=kr}});var _r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return _r},set:function(kr){_r=kr}});var Wt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Wt},set:function(kr){Wt=kr}});var un=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return un},set:function(kr){un=kr}});var ir=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return ir},set:function(kr){ir=kr}}),this};We.prototype.clone=function(){return new We(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},We.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Ye.setHeaderFunction=function(lt){return Fe.call(this),this.internal.__cell__.headerFunction=typeof lt=="function"?lt:void 0,this},Ye.getTextDimensions=function(lt,kt){Fe.call(this);var wr=(kt=kt||{}).fontSize||this.getFontSize(),pr=kt.font||this.getFont(),_r=kt.scaleFactor||this.internal.scaleFactor,Wt=0,un=0,ir=0,Gr=this;if(!Array.isArray(lt)&&typeof lt!="string"){if(typeof lt!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");lt=String(lt)}var kr=kt.maxWidth;kr>0?typeof lt=="string"?lt=this.splitTextToSize(lt,kr):Object.prototype.toString.call(lt)==="[object Array]"&&(lt=lt.reduce(function(En,kn){return En.concat(Gr.splitTextToSize(kn,kr))},[])):lt=Array.isArray(lt)?lt:[lt];for(var yr=0;yr<lt.length;yr++)Wt<(ir=this.getStringUnitWidth(lt[yr],{font:pr})*wr)&&(Wt=ir);return Wt!==0&&(un=lt.length),{w:Wt/=_r,h:Math.max((un*wr*this.getLineHeightFactor()-wr*(this.getLineHeightFactor()-1))/_r,0)}},Ye.cellAddPage=function(){Fe.call(this),this.addPage();var lt=this.internal.__cell__.margins||Ce;return this.internal.__cell__.lastCell=new We(lt.left,lt.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Ze=Ye.cell=function(){var lt;lt=arguments[0]instanceof We?arguments[0]:new We(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Fe.call(this);var kt=this.internal.__cell__.lastCell,wr=this.internal.__cell__.padding,pr=this.internal.__cell__.margins||Ce,_r=this.internal.__cell__.tableHeaderRow,Wt=this.internal.__cell__.printHeaders;return kt.lineNumber!==void 0&&(kt.lineNumber===lt.lineNumber?(lt.x=(kt.x||0)+(kt.width||0),lt.y=kt.y||0):kt.y+kt.height+lt.height+pr.bottom>this.getPageHeight()?(this.cellAddPage(),lt.y=pr.top,Wt&&_r&&(this.printHeaderRow(lt.lineNumber,!0),lt.y+=_r[0].height)):lt.y=kt.y+kt.height||lt.y),lt.text[0]!==void 0&&(this.rect(lt.x,lt.y,lt.width,lt.height,ke===!0?"FD":void 0),lt.align==="right"?this.text(lt.text,lt.x+lt.width-wr,lt.y+wr,{align:"right",baseline:"top"}):lt.align==="center"?this.text(lt.text,lt.x+lt.width/2,lt.y+wr,{align:"center",baseline:"top",maxWidth:lt.width-wr-wr}):this.text(lt.text,lt.x+wr,lt.y+wr,{align:"left",baseline:"top",maxWidth:lt.width-wr-wr})),this.internal.__cell__.lastCell=lt,this};Ye.table=function(lt,kt,wr,pr,_r){if(Fe.call(this),!wr)throw new Error("No data for PDF table.");var Wt,un,ir,Gr,kr=[],yr=[],En=[],kn={},ii={},oi=[],ei=[],ci=(_r=_r||{}).autoSize||!1,Pn=_r.printHeaders!==!1,xi=_r.css&&_r.css["font-size"]!==void 0?16*_r.css["font-size"]:_r.fontSize||12,gn=_r.margins||Object.assign({width:this.getPageWidth()},Ce),zr=typeof _r.padding=="number"?_r.padding:3,Cn=_r.headerBackgroundColor||"#c8c8c8",on=_r.headerTextColor||"#000";if(Ve.call(this),this.internal.__cell__.printHeaders=Pn,this.internal.__cell__.margins=gn,this.internal.__cell__.table_font_size=xi,this.internal.__cell__.padding=zr,this.internal.__cell__.headerBackgroundColor=Cn,this.internal.__cell__.headerTextColor=on,this.setFontSize(xi),pr==null)yr=kr=Object.keys(wr[0]),En=kr.map(function(){return"left"});else if(Array.isArray(pr)&&T()(pr[0])==="object")for(kr=pr.map(function(Jn){return Jn.name}),yr=pr.map(function(Jn){return Jn.prompt||Jn.name||""}),En=pr.map(function(Jn){return Jn.align||"left"}),Wt=0;Wt<pr.length;Wt+=1)ii[pr[Wt].name]=pr[Wt].width*(19.049976/25.4);else Array.isArray(pr)&&typeof pr[0]=="string"&&(yr=kr=pr,En=kr.map(function(){return"left"}));if(ci||Array.isArray(pr)&&typeof pr[0]=="string")for(Wt=0;Wt<kr.length;Wt+=1){for(kn[Gr=kr[Wt]]=wr.map(function(Jn){return Jn[Gr]}),this.setFont(void 0,"bold"),oi.push(this.getTextDimensions(yr[Wt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),un=kn[Gr],this.setFont(void 0,"normal"),ir=0;ir<un.length;ir+=1)oi.push(this.getTextDimensions(un[ir],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ii[Gr]=Math.max.apply(null,oi)+zr+zr,oi=[]}if(Pn){var li={};for(Wt=0;Wt<kr.length;Wt+=1)li[kr[Wt]]={},li[kr[Wt]].text=yr[Wt],li[kr[Wt]].align=En[Wt];var ri=yt.call(this,li,ii);ei=kr.map(function(Jn){return new We(lt,kt,ii[Jn],ri,li[Jn].text,void 0,li[Jn].align)}),this.setTableHeaderRow(ei),this.printHeaderRow(1,!1)}var wi=pr.reduce(function(Jn,Pi){return Jn[Pi.name]=Pi.align,Jn},{});for(Wt=0;Wt<wr.length;Wt+=1){"rowStart"in _r&&_r.rowStart instanceof Function&&_r.rowStart({row:Wt,data:wr[Wt]},this);var Gn=yt.call(this,wr[Wt],ii);for(ir=0;ir<kr.length;ir+=1){var ki=wr[Wt][kr[ir]];"cellStart"in _r&&_r.cellStart instanceof Function&&_r.cellStart({row:Wt,col:ir,data:ki},this),Ze.call(this,new We(lt,kt,ii[kr[ir]],Gn,ki,Wt+2,wi[kr[ir]]))}}return this.internal.__cell__.table_x=lt,this.internal.__cell__.table_y=kt,this};var yt=function(kt,wr){var pr=this.internal.__cell__.padding,_r=this.internal.__cell__.table_font_size,Wt=this.internal.scaleFactor;return Object.keys(kt).map(function(un){var ir=kt[un];return this.splitTextToSize(ir.hasOwnProperty("text")?ir.text:ir,wr[un]-pr-pr)},this).map(function(un){return this.getLineHeightFactor()*un.length*_r/Wt+pr+pr},this).reduce(function(un,ir){return Math.max(un,ir)},0)};Ye.setTableHeaderRow=function(lt){Fe.call(this),this.internal.__cell__.tableHeaderRow=lt},Ye.printHeaderRow=function(lt,kt){if(Fe.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var wr;if(ke=!0,typeof this.internal.__cell__.headerFunction=="function"){var pr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new We(pr[0],pr[1],pr[2],pr[3],void 0,-1)}this.setFont(void 0,"bold");for(var _r=[],Wt=0;Wt<this.internal.__cell__.tableHeaderRow.length;Wt+=1){wr=this.internal.__cell__.tableHeaderRow[Wt].clone(),kt&&(wr.y=this.internal.__cell__.margins.top||0,_r.push(wr)),wr.lineNumber=lt;var un=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Ze.call(this,wr),this.setTextColor(un)}_r.length>0&&this.setTableHeaderRow(_r),this.setFont(void 0,"normal"),ke=!1}}(K.API);var Rt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},er=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ct=me(er),zt=[100,200,300,400,500,600,700,800,900],sr=me(zt);function Kr(Ye){var Ce=Ye.family.replace(/"|'/g,"").toLowerCase(),ke=function(We){return Rt[We=We||"normal"]?We:"normal"}(Ye.style),Fe=function(We){if(!We)return 400;if(typeof We=="number")return We>=100&&We<=900&&We%100==0?We:400;if(/^\d00$/.test(We))return parseInt(We);switch(We){case"bold":return 700;case"normal":default:return 400}}(Ye.weight),Ve=function(We){return typeof ct[We=We||"normal"]=="number"?We:"normal"}(Ye.stretch);return{family:Ce,style:ke,weight:Fe,stretch:Ve,src:Ye.src||[],ref:Ye.ref||{name:Ce,style:[Ve,ke,Fe].join(" ")}}}function ar(Ye,Ce,ke,Fe){var Ve;for(Ve=ke;Ve>=0&&Ve<Ce.length;Ve+=Fe)if(Ye[Ce[Ve]])return Ye[Ce[Ve]];for(Ve=ke;Ve>=0&&Ve<Ce.length;Ve-=Fe)if(Ye[Ce[Ve]])return Ye[Ce[Ve]]}var nr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Lt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function st(Ye){return[Ye.stretch,Ye.style,Ye.weight,Ye.family].join(" ")}function Qe(Ye,Ce,ke){for(var Fe=(ke=ke||{}).defaultFontFamily||"times",Ve=Object.assign({},nr,ke.genericFontFamilies||{}),We=null,Ze=null,yt=0;yt<Ce.length;++yt)if(Ve[(We=Kr(Ce[yt])).family]&&(We.family=Ve[We.family]),Ye.hasOwnProperty(We.family)){Ze=Ye[We.family];break}if(!(Ze=Ze||Ye[Fe]))throw new Error("Could not find a font-family for the rule '"+st(We)+"' and default family '"+Fe+"'.");if(Ze=function(lt,kt){if(kt[lt])return kt[lt];var wr=ct[lt],pr=wr<=ct.normal?-1:1,_r=ar(kt,er,wr,pr);if(!_r)throw new Error("Could not find a matching font-stretch value for "+lt);return _r}(We.stretch,Ze),Ze=function(lt,kt){if(kt[lt])return kt[lt];for(var wr=Rt[lt],pr=0;pr<wr.length;++pr)if(kt[wr[pr]])return kt[wr[pr]];throw new Error("Could not find a matching font-style for "+lt)}(We.style,Ze),!(Ze=function(lt,kt){if(kt[lt])return kt[lt];if(lt===400&&kt[500])return kt[500];if(lt===500&&kt[400])return kt[400];var wr=sr[lt],pr=ar(kt,zt,wr,lt<400?-1:1);if(!pr)throw new Error("Could not find a matching font-weight for value "+lt);return pr}(We.weight,Ze)))throw new Error("Failed to resolve a font for the rule '"+st(We)+"'.");return Ze}function qt(Ye){return Ye.trimLeft()}function Sr(Ye,Ce){for(var ke=0;ke<Ye.length;){if(Ye.charAt(ke)===Ce)return[Ye.substring(0,ke),Ye.substring(ke+1)];ke+=1}return null}function Ar(Ye){var Ce=Ye.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Ce===null?null:[Ce[0],Ye.substring(Ce[0].length)]}var hr,vn,Zr,Ln=["times"];!function(Ye){var Ce,ke,Fe,Ve,We,Ze,yt,lt,kt,wr=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 lt,this.globalCompositeOperation=Fr.globalCompositeOperation||"normal",this.globalAlpha=Fr.globalAlpha||1,this.clip_path=Fr.clip_path||[],this.currentPoint=Fr.currentPoint||new Ze,this.miterLimit=Fr.miterLimit||10,this.lastPoint=Fr.lastPoint||new Ze,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};Ye.events.push(["initialized",function(){this.context2d=new pr(this),Ce=this.internal.f2,ke=this.internal.getCoordinateString,Fe=this.internal.getVerticalCoordinateString,Ve=this.internal.getHorizontalCoordinate,We=this.internal.getVerticalCoordinate,Ze=this.internal.Point,yt=this.internal.Rectangle,lt=this.internal.Matrix,kt=new wr}]);var pr=function(Fr){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var An=Fr;Object.defineProperty(this,"pdf",{get:function(){return An}});var Un=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Un},set:function(Li){Un=Boolean(Li)}});var Vn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Vn},set:function(Li){Vn=Boolean(Li)}});var ti=0;Object.defineProperty(this,"posX",{get:function(){return ti},set:function(Li){isNaN(Li)||(ti=Li)}});var di=0;Object.defineProperty(this,"posY",{get:function(){return di},set:function(Li){isNaN(Li)||(di=Li)}}),Object.defineProperty(this,"margin",{get:function(){return kt.margin},set:function(Li){var Zi;typeof Li=="number"?Zi=[Li,Li,Li,Li]:((Zi=new Array(4))[0]=Li[0],Zi[1]=Li.length>=2?Li[1]:Zi[0],Zi[2]=Li.length>=3?Li[2]:Zi[0],Zi[3]=Li.length>=4?Li[3]:Zi[1]),kt.margin=Zi}});var fi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fi},set:function(Li){fi=Li}});var mi=0;Object.defineProperty(this,"lastBreak",{get:function(){return mi},set:function(Li){mi=Li}});var Wi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Wi},set:function(Li){Wi=Li}}),Object.defineProperty(this,"ctx",{get:function(){return kt},set:function(Li){Li instanceof wr&&(kt=Li)}}),Object.defineProperty(this,"path",{get:function(){return kt.path},set:function(Li){kt.path=Li}});var na=[];Object.defineProperty(this,"ctxStack",{get:function(){return na},set:function(Li){na=Li}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Li){var Zi;Zi=_r(Li),this.ctx.fillStyle=Zi.style,this.ctx.isFillTransparent=Zi.a===0,this.ctx.fillOpacity=Zi.a,this.pdf.setFillColor(Zi.r,Zi.g,Zi.b,{a:Zi.a}),this.pdf.setTextColor(Zi.r,Zi.g,Zi.b,{a:Zi.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Li){var Zi=_r(Li);this.ctx.strokeStyle=Zi.style,this.ctx.isStrokeTransparent=Zi.a===0,this.ctx.strokeOpacity=Zi.a,Zi.a===0?this.pdf.setDrawColor(255,255,255):(Zi.a,this.pdf.setDrawColor(Zi.r,Zi.g,Zi.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Li){["butt","round","square"].indexOf(Li)!==-1&&(this.ctx.lineCap=Li,this.pdf.setLineCap(Li))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Li){isNaN(Li)||(this.ctx.lineWidth=Li,this.pdf.setLineWidth(Li))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Li){["bevel","round","miter"].indexOf(Li)!==-1&&(this.ctx.lineJoin=Li,this.pdf.setLineJoin(Li))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Li){isNaN(Li)||(this.ctx.miterLimit=Li,this.pdf.setMiterLimit(Li))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Li){this.ctx.textBaseline=Li}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Li){["right","end","center","left","start"].indexOf(Li)!==-1&&(this.ctx.textAlign=Li)}});var ea=null;function Fa(ln,Li){if(ea===null){var Zi=function(Fi){var ia=[];return Object.keys(Fi).forEach(function(Gt){Fi[Gt].forEach(function(Xr){var rn=null;switch(Xr){case"bold":rn={family:Gt,weight:"bold"};break;case"italic":rn={family:Gt,style:"italic"};break;case"bolditalic":rn={family:Gt,weight:"bold",style:"italic"};break;case"":case"normal":rn={family:Gt}}rn!==null&&(rn.ref={name:Gt,style:Xr},ia.push(rn))})}),ia}(ln.getFontList());ea=function(Fi){for(var ia={},Gt=0;Gt<Fi.length;++Gt){var Xr=Kr(Fi[Gt]),rn=Xr.family,fn=Xr.stretch,Xe=Xr.style,_t=Xr.weight;ia[rn]=ia[rn]||{},ia[rn][fn]=ia[rn][fn]||{},ia[rn][fn][Xe]=ia[rn][fn][Xe]||{},ia[rn][fn][Xe][_t]=Xr}return ia}(Zi.concat(Li))}return ea}var pi=null;Object.defineProperty(this,"fontFaces",{get:function(){return pi},set:function(Li){ea=null,pi=Li}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Li){var Zi;if(this.ctx.font=Li,(Zi=/^\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(Li))!==null){var Fi=Zi[1],ia=(Zi[2],Zi[3]),Gt=Zi[4],Xr=(Zi[5],Zi[6]),rn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Gt)[2];Gt=rn==="px"?Math.floor(parseFloat(Gt)*this.pdf.internal.scaleFactor):rn==="em"?Math.floor(parseFloat(Gt)*this.pdf.getFontSize()):Math.floor(parseFloat(Gt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Gt);var fn=function(Wr){var nn,wn,On=[],Rn=Wr.trim();if(Rn==="")return Ln;if(Rn in Lt)return[Lt[Rn]];for(;Rn!=="";){switch(wn=null,nn=(Rn=qt(Rn)).charAt(0)){case'"':case"'":wn=Sr(Rn.substring(1),nn);break;default:wn=Ar(Rn)}if(wn===null)return Ln;if(On.push(wn[0]),(Rn=qt(wn[1]))!==""&&Rn.charAt(0)!==",")return Ln;Rn=Rn.replace(/^,/,"")}return On}(Xr);if(this.fontFaces){var Xe=Qe(Fa(this.pdf,this.fontFaces),fn.map(function(Wr){return{family:Wr,stretch:"normal",weight:ia,style:Fi}}));this.pdf.setFont(Xe.ref.name,Xe.ref.style)}else{var _t="";(ia==="bold"||parseInt(ia,10)>=700||Fi==="bold")&&(_t="bold"),Fi==="italic"&&(_t+="italic"),_t.length===0&&(_t="normal");for(var lr="",rr={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"},Or=0;Or<fn.length;Or++){if(this.pdf.internal.getFont(fn[Or],_t,{noFallback:!0,disableWarning:!0})!==void 0){lr=fn[Or];break}if(_t==="bolditalic"&&this.pdf.internal.getFont(fn[Or],"bold",{noFallback:!0,disableWarning:!0})!==void 0)lr=fn[Or],_t="bold";else if(this.pdf.internal.getFont(fn[Or],"normal",{noFallback:!0,disableWarning:!0})!==void 0){lr=fn[Or],_t="normal";break}}if(lr===""){for(var Mr=0;Mr<fn.length;Mr++)if(rr[fn[Mr]]){lr=rr[fn[Mr]];break}}lr=lr===""?"Times":lr,this.pdf.setFont(lr,_t)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Li){this.ctx.globalCompositeOperation=Li}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Li){this.ctx.globalAlpha=Li}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Li){this.ctx.lineDashOffset=Li,Pi.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Li){this.ctx.lineDash=Li,Pi.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Li){this.ctx.ignoreClearRect=Boolean(Li)}})};pr.prototype.setLineDash=function(mn){this.lineDash=mn},pr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},pr.prototype.fill=function(){kn.call(this,"fill",!1)},pr.prototype.stroke=function(){kn.call(this,"stroke",!1)},pr.prototype.beginPath=function(){this.path=[{type:"begin"}]},pr.prototype.moveTo=function(mn,Fr){if(isNaN(mn)||isNaN(Fr))throw h.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var An=this.ctx.transform.applyToPoint(new Ze(mn,Fr));this.path.push({type:"mt",x:An.x,y:An.y}),this.ctx.lastPoint=new Ze(mn,Fr)},pr.prototype.closePath=function(){var mn=new Ze(0,0),Fr=0;for(Fr=this.path.length-1;Fr!==-1;Fr--)if(this.path[Fr].type==="begin"&&T()(this.path[Fr+1])==="object"&&typeof this.path[Fr+1].x=="number"){mn=new Ze(this.path[Fr+1].x,this.path[Fr+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Ze(mn.x,mn.y)},pr.prototype.lineTo=function(mn,Fr){if(isNaN(mn)||isNaN(Fr))throw h.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var An=this.ctx.transform.applyToPoint(new Ze(mn,Fr));this.path.push({type:"lt",x:An.x,y:An.y}),this.ctx.lastPoint=new Ze(An.x,An.y)},pr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),kn.call(this,null,!0)},pr.prototype.quadraticCurveTo=function(mn,Fr,An,Un){if(isNaN(An)||isNaN(Un)||isNaN(mn)||isNaN(Fr))throw h.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Vn=this.ctx.transform.applyToPoint(new Ze(An,Un)),ti=this.ctx.transform.applyToPoint(new Ze(mn,Fr));this.path.push({type:"qct",x1:ti.x,y1:ti.y,x:Vn.x,y:Vn.y}),this.ctx.lastPoint=new Ze(Vn.x,Vn.y)},pr.prototype.bezierCurveTo=function(mn,Fr,An,Un,Vn,ti){if(isNaN(Vn)||isNaN(ti)||isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un))throw h.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var di=this.ctx.transform.applyToPoint(new Ze(Vn,ti)),fi=this.ctx.transform.applyToPoint(new Ze(mn,Fr)),mi=this.ctx.transform.applyToPoint(new Ze(An,Un));this.path.push({type:"bct",x1:fi.x,y1:fi.y,x2:mi.x,y2:mi.y,x:di.x,y:di.y}),this.ctx.lastPoint=new Ze(di.x,di.y)},pr.prototype.arc=function(mn,Fr,An,Un,Vn,ti){if(isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un)||isNaN(Vn))throw h.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ti=Boolean(ti),!this.ctx.transform.isIdentity){var di=this.ctx.transform.applyToPoint(new Ze(mn,Fr));mn=di.x,Fr=di.y;var fi=this.ctx.transform.applyToPoint(new Ze(0,An)),mi=this.ctx.transform.applyToPoint(new Ze(0,0));An=Math.sqrt(Math.pow(fi.x-mi.x,2)+Math.pow(fi.y-mi.y,2))}Math.abs(Vn-Un)>=2*Math.PI&&(Un=0,Vn=2*Math.PI),this.path.push({type:"arc",x:mn,y:Fr,radius:An,startAngle:Un,endAngle:Vn,counterclockwise:ti})},pr.prototype.arcTo=function(mn,Fr,An,Un,Vn){throw new Error("arcTo not implemented.")},pr.prototype.rect=function(mn,Fr,An,Un){if(isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un))throw h.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(mn,Fr),this.lineTo(mn+An,Fr),this.lineTo(mn+An,Fr+Un),this.lineTo(mn,Fr+Un),this.lineTo(mn,Fr),this.lineTo(mn+An,Fr),this.lineTo(mn,Fr)},pr.prototype.fillRect=function(mn,Fr,An,Un){if(isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un))throw h.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Wt.call(this)){var Vn={};this.lineCap!=="butt"&&(Vn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Vn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(mn,Fr,An,Un),this.fill(),Vn.hasOwnProperty("lineCap")&&(this.lineCap=Vn.lineCap),Vn.hasOwnProperty("lineJoin")&&(this.lineJoin=Vn.lineJoin)}},pr.prototype.strokeRect=function(mn,Fr,An,Un){if(isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un))throw h.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");un.call(this)||(this.beginPath(),this.rect(mn,Fr,An,Un),this.stroke())},pr.prototype.clearRect=function(mn,Fr,An,Un){if(isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un))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(mn,Fr,An,Un))},pr.prototype.save=function(mn){mn=typeof mn!="boolean"||mn;for(var Fr=this.pdf.internal.getCurrentPageInfo().pageNumber,An=0;An<this.pdf.internal.getNumberOfPages();An++)this.pdf.setPage(An+1),this.pdf.internal.out("q");if(this.pdf.setPage(Fr),mn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Un=new wr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Un}},pr.prototype.restore=function(mn){mn=typeof mn!="boolean"||mn;for(var Fr=this.pdf.internal.getCurrentPageInfo().pageNumber,An=0;An<this.pdf.internal.getNumberOfPages();An++)this.pdf.setPage(An+1),this.pdf.internal.out("Q");this.pdf.setPage(Fr),mn&&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)},pr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var _r=function(Fr){var An,Un,Vn,ti;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))An=0,Un=0,Vn=0,ti=0;else{var di=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Fr);if(di!==null)An=parseInt(di[1]),Un=parseInt(di[2]),Vn=parseInt(di[3]),ti=1;else if((di=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Fr))!==null)An=parseInt(di[1]),Un=parseInt(di[2]),Vn=parseInt(di[3]),ti=parseFloat(di[4]);else{if(ti=1,typeof Fr=="string"&&Fr.charAt(0)!=="#"){var fi=new s(Fr);Fr=fi.ok?fi.toHex():"#000000"}Fr.length===4?(An=Fr.substring(1,2),An+=An,Un=Fr.substring(2,3),Un+=Un,Vn=Fr.substring(3,4),Vn+=Vn):(An=Fr.substring(1,3),Un=Fr.substring(3,5),Vn=Fr.substring(5,7)),An=parseInt(An,16),Un=parseInt(Un,16),Vn=parseInt(Vn,16)}}return{r:An,g:Un,b:Vn,a:ti,style:Fr}},Wt=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},un=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};pr.prototype.fillText=function(mn,Fr,An,Un){if(isNaN(Fr)||isNaN(An)||typeof mn!="string")throw h.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Un=isNaN(Un)?void 0:Un,!Wt.call(this)){var Vn=Gn(this.ctx.transform.rotation),ti=this.ctx.transform.scaleX;zr.call(this,{text:mn,x:Fr,y:An,scale:ti,angle:Vn,align:this.textAlign,maxWidth:Un})}},pr.prototype.strokeText=function(mn,Fr,An,Un){if(isNaN(Fr)||isNaN(An)||typeof mn!="string")throw h.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!un.call(this)){Un=isNaN(Un)?void 0:Un;var Vn=Gn(this.ctx.transform.rotation),ti=this.ctx.transform.scaleX;zr.call(this,{text:mn,x:Fr,y:An,scale:ti,renderingMode:"stroke",angle:Vn,align:this.textAlign,maxWidth:Un})}},pr.prototype.measureText=function(mn){if(typeof mn!="string")throw h.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Fr=this.pdf,An=this.pdf.internal.scaleFactor,Un=Fr.internal.getFontSize(),Vn=Fr.getStringUnitWidth(mn)*Un/Fr.internal.scaleFactor,ti=function(fi){var mi=(fi=fi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return mi}}),this};return new ti({width:Vn*=Math.round(96*An/72*1e4)/1e4})},pr.prototype.scale=function(mn,Fr){if(isNaN(mn)||isNaN(Fr))throw h.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var An=new lt(mn,0,0,Fr,0,0);this.ctx.transform=this.ctx.transform.multiply(An)},pr.prototype.rotate=function(mn){if(isNaN(mn))throw h.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Fr=new lt(Math.cos(mn),Math.sin(mn),-Math.sin(mn),Math.cos(mn),0,0);this.ctx.transform=this.ctx.transform.multiply(Fr)},pr.prototype.translate=function(mn,Fr){if(isNaN(mn)||isNaN(Fr))throw h.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var An=new lt(1,0,0,1,mn,Fr);this.ctx.transform=this.ctx.transform.multiply(An)},pr.prototype.transform=function(mn,Fr,An,Un,Vn,ti){if(isNaN(mn)||isNaN(Fr)||isNaN(An)||isNaN(Un)||isNaN(Vn)||isNaN(ti))throw h.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var di=new lt(mn,Fr,An,Un,Vn,ti);this.ctx.transform=this.ctx.transform.multiply(di)},pr.prototype.setTransform=function(mn,Fr,An,Un,Vn,ti){mn=isNaN(mn)?1:mn,Fr=isNaN(Fr)?0:Fr,An=isNaN(An)?0:An,Un=isNaN(Un)?1:Un,Vn=isNaN(Vn)?0:Vn,ti=isNaN(ti)?0:ti,this.ctx.transform=new lt(mn,Fr,An,Un,Vn,ti)};var ir=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};pr.prototype.drawImage=function(mn,Fr,An,Un,Vn,ti,di,fi,mi){var Wi=this.pdf.getImageProperties(mn),na=1,ea=1,Fa=1,pi=1;Un!==void 0&&fi!==void 0&&(Fa=fi/Un,pi=mi/Vn,na=Wi.width/Un*fi/Un,ea=Wi.height/Vn*mi/Vn),ti===void 0&&(ti=Fr,di=An,Fr=0,An=0),Un!==void 0&&fi===void 0&&(fi=Un,mi=Vn),Un===void 0&&fi===void 0&&(fi=Wi.width,mi=Wi.height);for(var ln,Li=this.ctx.transform.decompose(),Zi=Gn(Li.rotate.shx),Fi=new lt,ia=(Fi=(Fi=(Fi=Fi.multiply(Li.translate)).multiply(Li.skew)).multiply(Li.scale)).applyToRectangle(new yt(ti-Fr*Fa,di-An*pi,Un*na,Vn*ea)),Gt=Gr.call(this,ia),Xr=[],rn=0;rn<Gt.length;rn+=1)Xr.indexOf(Gt[rn])===-1&&Xr.push(Gt[rn]);if(En(Xr),this.autoPaging)for(var fn=Xr[0],Xe=Xr[Xr.length-1],_t=fn;_t<Xe+1;_t++){this.pdf.setPage(_t);var lr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],rr=_t===1?this.posY+this.margin[0]:this.margin[0],Or=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Mr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Wr=_t===1?0:Or+(_t-2)*Mr;if(this.ctx.clip_path.length!==0){var nn=this.path;ln=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=yr(ln,this.posX+this.margin[3],-Wr+rr+this.ctx.prevPageLastElemOffset),ii.call(this,"fill",!0),this.path=nn}var wn=JSON.parse(JSON.stringify(ia));wn=yr([wn],this.posX+this.margin[3],-Wr+rr+this.ctx.prevPageLastElemOffset)[0];var On=(_t>fn||_t<Xe)&&ir.call(this);On&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],lr,Mr,null).clip().discardPath()),this.pdf.addImage(mn,"JPEG",wn.x,wn.y,wn.w,wn.h,null,null,Zi),On&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(mn,"JPEG",ia.x,ia.y,ia.w,ia.h,null,null,Zi)};var Gr=function(Fr,An,Un){var Vn=[];An=An||this.pdf.internal.pageSize.width,Un=Un||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ti=this.posY+this.ctx.prevPageLastElemOffset;switch(Fr.type){default:case"mt":case"lt":Vn.push(Math.floor((Fr.y+ti)/Un)+1);break;case"arc":Vn.push(Math.floor((Fr.y+ti-Fr.radius)/Un)+1),Vn.push(Math.floor((Fr.y+ti+Fr.radius)/Un)+1);break;case"qct":var di=ki(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Fr.x1,Fr.y1,Fr.x,Fr.y);Vn.push(Math.floor((di.y+ti)/Un)+1),Vn.push(Math.floor((di.y+di.h+ti)/Un)+1);break;case"bct":var fi=Jn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Fr.x1,Fr.y1,Fr.x2,Fr.y2,Fr.x,Fr.y);Vn.push(Math.floor((fi.y+ti)/Un)+1),Vn.push(Math.floor((fi.y+fi.h+ti)/Un)+1);break;case"rect":Vn.push(Math.floor((Fr.y+ti)/Un)+1),Vn.push(Math.floor((Fr.y+Fr.h+ti)/Un)+1)}for(var mi=0;mi<Vn.length;mi+=1)for(;this.pdf.internal.getNumberOfPages()<Vn[mi];)kr.call(this);return Vn},kr=function(){var Fr=this.fillStyle,An=this.strokeStyle,Un=this.font,Vn=this.lineCap,ti=this.lineWidth,di=this.lineJoin;this.pdf.addPage(),this.fillStyle=Fr,this.strokeStyle=An,this.font=Un,this.lineCap=Vn,this.lineWidth=ti,this.lineJoin=di},yr=function(Fr,An,Un){for(var Vn=0;Vn<Fr.length;Vn++)switch(Fr[Vn].type){case"bct":Fr[Vn].x2+=An,Fr[Vn].y2+=Un;case"qct":Fr[Vn].x1+=An,Fr[Vn].y1+=Un;case"mt":case"lt":case"arc":default:Fr[Vn].x+=An,Fr[Vn].y+=Un}return Fr},En=function(Fr){return Fr.sort(function(An,Un){return An-Un})},kn=function(Fr,An){for(var Un,Vn,ti=this.fillStyle,di=this.strokeStyle,fi=this.lineCap,mi=this.lineWidth,Wi=Math.abs(mi*this.ctx.transform.scaleX),na=this.lineJoin,ea=JSON.parse(JSON.stringify(this.path)),Fa=JSON.parse(JSON.stringify(this.path)),pi=[],ln=0;ln<Fa.length;ln++)if(Fa[ln].x!==void 0)for(var Li=Gr.call(this,Fa[ln]),Zi=0;Zi<Li.length;Zi+=1)pi.indexOf(Li[Zi])===-1&&pi.push(Li[Zi]);for(var Fi=0;Fi<pi.length;Fi++)for(;this.pdf.internal.getNumberOfPages()<pi[Fi];)kr.call(this);if(En(pi),this.autoPaging)for(var ia=pi[0],Gt=pi[pi.length-1],Xr=ia;Xr<Gt+1;Xr++){this.pdf.setPage(Xr),this.fillStyle=ti,this.strokeStyle=di,this.lineCap=fi,this.lineWidth=Wi,this.lineJoin=na;var rn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fn=Xr===1?this.posY+this.margin[0]:this.margin[0],Xe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_t=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],lr=Xr===1?0:Xe+(Xr-2)*_t;if(this.ctx.clip_path.length!==0){var rr=this.path;Un=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=yr(Un,this.posX+this.margin[3],-lr+fn+this.ctx.prevPageLastElemOffset),ii.call(this,Fr,!0),this.path=rr}if(Vn=JSON.parse(JSON.stringify(ea)),this.path=yr(Vn,this.posX+this.margin[3],-lr+fn+this.ctx.prevPageLastElemOffset),An===!1||Xr===0){var Or=(Xr>ia||Xr<Gt)&&ir.call(this);Or&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],rn,_t,null).clip().discardPath()),ii.call(this,Fr,An),Or&&this.pdf.restoreGraphicsState()}this.lineWidth=mi}else this.lineWidth=Wi,ii.call(this,Fr,An),this.lineWidth=mi;this.path=ea},ii=function(Fr,An){if((Fr!=="stroke"||An||!un.call(this))&&(Fr==="stroke"||An||!Wt.call(this))){for(var Un,Vn,ti=[],di=this.path,fi=0;fi<di.length;fi++){var mi=di[fi];switch(mi.type){case"begin":ti.push({begin:!0});break;case"close":ti.push({close:!0});break;case"mt":ti.push({start:mi,deltas:[],abs:[]});break;case"lt":var Wi=ti.length;if(di[fi-1]&&!isNaN(di[fi-1].x)&&(Un=[mi.x-di[fi-1].x,mi.y-di[fi-1].y],Wi>0)){for(;Wi>=0;Wi--)if(ti[Wi-1].close!==!0&&ti[Wi-1].begin!==!0){ti[Wi-1].deltas.push(Un),ti[Wi-1].abs.push(mi);break}}break;case"bct":Un=[mi.x1-di[fi-1].x,mi.y1-di[fi-1].y,mi.x2-di[fi-1].x,mi.y2-di[fi-1].y,mi.x-di[fi-1].x,mi.y-di[fi-1].y],ti[ti.length-1].deltas.push(Un);break;case"qct":var na=di[fi-1].x+2/3*(mi.x1-di[fi-1].x),ea=di[fi-1].y+2/3*(mi.y1-di[fi-1].y),Fa=mi.x+2/3*(mi.x1-mi.x),pi=mi.y+2/3*(mi.y1-mi.y),ln=mi.x,Li=mi.y;Un=[na-di[fi-1].x,ea-di[fi-1].y,Fa-di[fi-1].x,pi-di[fi-1].y,ln-di[fi-1].x,Li-di[fi-1].y],ti[ti.length-1].deltas.push(Un);break;case"arc":ti.push({deltas:[],abs:[],arc:!0}),Array.isArray(ti[ti.length-1].abs)&&ti[ti.length-1].abs.push(mi)}}Vn=An?null:Fr==="stroke"?"stroke":"fill";for(var Zi=!1,Fi=0;Fi<ti.length;Fi++)if(ti[Fi].arc)for(var ia=ti[Fi].abs,Gt=0;Gt<ia.length;Gt++){var Xr=ia[Gt];Xr.type==="arc"?ci.call(this,Xr.x,Xr.y,Xr.radius,Xr.startAngle,Xr.endAngle,Xr.counterclockwise,void 0,An,!Zi):Cn.call(this,Xr.x,Xr.y),Zi=!0}else if(ti[Fi].close===!0)this.pdf.internal.out("h"),Zi=!1;else if(ti[Fi].begin!==!0){var rn=ti[Fi].start.x,fn=ti[Fi].start.y;on.call(this,ti[Fi].deltas,rn,fn),Zi=!0}Vn&&Pn.call(this,Vn),An&&xi.call(this)}},oi=function(Fr){var An=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Un=An*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Fr-Un;case"top":return Fr+An-Un;case"hanging":return Fr+An-2*Un;case"middle":return Fr+An/2-Un;case"ideographic":return Fr;case"alphabetic":default:return Fr}},ei=function(Fr){return Fr+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};pr.prototype.createLinearGradient=function(){var mn=function(){};return mn.colorStops=[],mn.addColorStop=function(Fr,An){this.colorStops.push([Fr,An])},mn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},mn.isCanvasGradient=!0,mn},pr.prototype.createPattern=function(){return this.createLinearGradient()},pr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ci=function(Fr,An,Un,Vn,ti,di,fi,mi,Wi){for(var na=ri.call(this,Un,Vn,ti,di),ea=0;ea<na.length;ea++){var Fa=na[ea];ea===0&&(Wi?gn.call(this,Fa.x1+Fr,Fa.y1+An):Cn.call(this,Fa.x1+Fr,Fa.y1+An)),li.call(this,Fr,An,Fa.x2,Fa.y2,Fa.x3,Fa.y3,Fa.x4,Fa.y4)}mi?xi.call(this):Pn.call(this,fi)},Pn=function(Fr){switch(Fr){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},xi=function(){this.pdf.clip(),this.pdf.discardPath()},gn=function(Fr,An){this.pdf.internal.out(ke(Fr)+" "+Fe(An)+" m")},zr=function(Fr){var An;switch(Fr.align){case"right":case"end":An="right";break;case"center":An="center";break;case"left":case"start":default:An="left"}var Un=this.pdf.getTextDimensions(Fr.text),Vn=oi.call(this,Fr.y),ti=ei.call(this,Vn)-Un.h,di=this.ctx.transform.applyToPoint(new Ze(Fr.x,Vn)),fi=this.ctx.transform.decompose(),mi=new lt;mi=(mi=(mi=mi.multiply(fi.translate)).multiply(fi.skew)).multiply(fi.scale);for(var Wi,na,ea,Fa=this.ctx.transform.applyToRectangle(new yt(Fr.x,Vn,Un.w,Un.h)),pi=mi.applyToRectangle(new yt(Fr.x,ti,Un.w,Un.h)),ln=Gr.call(this,pi),Li=[],Zi=0;Zi<ln.length;Zi+=1)Li.indexOf(ln[Zi])===-1&&Li.push(ln[Zi]);if(En(Li),this.autoPaging)for(var Fi=Li[0],ia=Li[Li.length-1],Gt=Fi;Gt<ia+1;Gt++){this.pdf.setPage(Gt);var Xr=Gt===1?this.posY+this.margin[0]:this.margin[0],rn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],fn=this.pdf.internal.pageSize.height-this.margin[2],Xe=fn-this.margin[0],_t=this.pdf.internal.pageSize.width-this.margin[1],lr=_t-this.margin[3],rr=Gt===1?0:rn+(Gt-2)*Xe;if(this.ctx.clip_path.length!==0){var Or=this.path;Wi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=yr(Wi,this.posX+this.margin[3],-1*rr+Xr),ii.call(this,"fill",!0),this.path=Or}var Mr=yr([JSON.parse(JSON.stringify(pi))],this.posX+this.margin[3],-rr+Xr+this.ctx.prevPageLastElemOffset)[0];Fr.scale>=.01&&(na=this.pdf.internal.getFontSize(),this.pdf.setFontSize(na*Fr.scale),ea=this.lineWidth,this.lineWidth=ea*Fr.scale);var Wr=this.autoPaging!=="text";if(Wr||Mr.y+Mr.h<=fn){if(Wr||Mr.y>=Xr&&Mr.x<=_t){var nn=Wr?Fr.text:this.pdf.splitTextToSize(Fr.text,Fr.maxWidth||_t-Mr.x)[0],wn=yr([JSON.parse(JSON.stringify(Fa))],this.posX+this.margin[3],-rr+Xr+this.ctx.prevPageLastElemOffset)[0],On=Wr&&(Gt>Fi||Gt<ia)&&ir.call(this);On&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],lr,Xe,null).clip().discardPath()),this.pdf.text(nn,wn.x,wn.y,{angle:Fr.angle,align:An,renderingMode:Fr.renderingMode}),On&&this.pdf.restoreGraphicsState()}}else Mr.y<fn&&(this.ctx.prevPageLastElemOffset+=fn-Mr.y);Fr.scale>=.01&&(this.pdf.setFontSize(na),this.lineWidth=ea)}else Fr.scale>=.01&&(na=this.pdf.internal.getFontSize(),this.pdf.setFontSize(na*Fr.scale),ea=this.lineWidth,this.lineWidth=ea*Fr.scale),this.pdf.text(Fr.text,di.x+this.posX,di.y+this.posY,{angle:Fr.angle,align:An,renderingMode:Fr.renderingMode,maxWidth:Fr.maxWidth}),Fr.scale>=.01&&(this.pdf.setFontSize(na),this.lineWidth=ea)},Cn=function(Fr,An,Un,Vn){Un=Un||0,Vn=Vn||0,this.pdf.internal.out(ke(Fr+Un)+" "+Fe(An+Vn)+" l")},on=function(Fr,An,Un){return this.pdf.lines(Fr,An,Un,null,null)},li=function(Fr,An,Un,Vn,ti,di,fi,mi){this.pdf.internal.out([Ce(Ve(Un+Fr)),Ce(We(Vn+An)),Ce(Ve(ti+Fr)),Ce(We(di+An)),Ce(Ve(fi+Fr)),Ce(We(mi+An)),"c"].join(" "))},ri=function(Fr,An,Un,Vn){for(var ti=2*Math.PI,di=Math.PI/2;An>Un;)An-=ti;var fi=Math.abs(Un-An);fi<ti&&Vn&&(fi=ti-fi);for(var mi=[],Wi=Vn?-1:1,na=An;fi>1e-5;){var ea=na+Wi*Math.min(fi,di);mi.push(wi.call(this,Fr,na,ea)),fi-=Math.abs(ea-na),na=ea}return mi},wi=function(Fr,An,Un){var Vn=(Un-An)/2,ti=Fr*Math.cos(Vn),di=Fr*Math.sin(Vn),fi=ti,mi=-di,Wi=fi*fi+mi*mi,na=Wi+fi*ti+mi*di,ea=4/3*(Math.sqrt(2*Wi*na)-na)/(fi*di-mi*ti),Fa=fi-ea*mi,pi=mi+ea*fi,ln=Fa,Li=-pi,Zi=Vn+An,Fi=Math.cos(Zi),ia=Math.sin(Zi);return{x1:Fr*Math.cos(An),y1:Fr*Math.sin(An),x2:Fa*Fi-pi*ia,y2:Fa*ia+pi*Fi,x3:ln*Fi-Li*ia,y3:ln*ia+Li*Fi,x4:Fr*Math.cos(Un),y4:Fr*Math.sin(Un)}},Gn=function(Fr){return 180*Fr/Math.PI},ki=function(Fr,An,Un,Vn,ti,di){var fi=Fr+.5*(Un-Fr),mi=An+.5*(Vn-An),Wi=ti+.5*(Un-ti),na=di+.5*(Vn-di),ea=Math.min(Fr,ti,fi,Wi),Fa=Math.max(Fr,ti,fi,Wi),pi=Math.min(An,di,mi,na),ln=Math.max(An,di,mi,na);return new yt(ea,pi,Fa-ea,ln-pi)},Jn=function(Fr,An,Un,Vn,ti,di,fi,mi){var Wi,na,ea,Fa,pi,ln,Li,Zi,Fi,ia,Gt,Xr,rn,fn,Xe=Un-Fr,_t=Vn-An,lr=ti-Un,rr=di-Vn,Or=fi-ti,Mr=mi-di;for(na=0;na<41;na++)Fi=(Li=(ea=Fr+(Wi=na/40)*Xe)+Wi*((pi=Un+Wi*lr)-ea))+Wi*(pi+Wi*(ti+Wi*Or-pi)-Li),ia=(Zi=(Fa=An+Wi*_t)+Wi*((ln=Vn+Wi*rr)-Fa))+Wi*(ln+Wi*(di+Wi*Mr-ln)-Zi),na==0?(Gt=Fi,Xr=ia,rn=Fi,fn=ia):(Gt=Math.min(Gt,Fi),Xr=Math.min(Xr,ia),rn=Math.max(rn,Fi),fn=Math.max(fn,ia));return new yt(Math.round(Gt),Math.round(Xr),Math.round(rn-Gt),Math.round(fn-Xr))},Pi=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Fr,An,Un=(Fr=this.ctx.lineDash,An=this.ctx.lineDashOffset,JSON.stringify({lineDash:Fr,lineDashOffset:An}));this.prevLineDash!==Un&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Un)}}}(K.API),function(Ye){var Ce=function(Ze){var yt,lt,kt,wr,pr,_r,Wt,un,ir,Gr;for(/[^\x00-\xFF]/.test(Ze),lt=[],kt=0,wr=(Ze+=yt="\0\0\0\0".slice(Ze.length%4||4)).length;wr>kt;kt+=4)(pr=(Ze.charCodeAt(kt)<<24)+(Ze.charCodeAt(kt+1)<<16)+(Ze.charCodeAt(kt+2)<<8)+Ze.charCodeAt(kt+3))!==0?(_r=(pr=((pr=((pr=((pr=(pr-(Gr=pr%85))/85)-(ir=pr%85))/85)-(un=pr%85))/85)-(Wt=pr%85))/85)%85,lt.push(_r+33,Wt+33,un+33,ir+33,Gr+33)):lt.push(122);return function(kr,yr){for(var En=yr;En>0;En--)kr.pop()}(lt,yt.length),String.fromCharCode.apply(String,lt)+"~>"},ke=function(Ze){var yt,lt,kt,wr,pr,_r=String,Wt="length",un=255,ir="charCodeAt",Gr="slice",kr="replace";for(Ze[Gr](-2),Ze=Ze[Gr](0,-2)[kr](/\s/g,"")[kr]("z","!!!!!"),kt=[],wr=0,pr=(Ze+=yt="uuuuu"[Gr](Ze[Wt]%5||5))[Wt];pr>wr;wr+=5)lt=52200625*(Ze[ir](wr)-33)+614125*(Ze[ir](wr+1)-33)+7225*(Ze[ir](wr+2)-33)+85*(Ze[ir](wr+3)-33)+(Ze[ir](wr+4)-33),kt.push(un<>>24,un<>>16,un<>>8,un<);return function(yr,En){for(var kn=En;kn>0;kn--)yr.pop()}(kt,yt[Wt]),_r.fromCharCode.apply(_r,kt)},Fe=function(Ze){var yt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Ze=Ze.replace(/\s/g,"")).indexOf(">")!==-1&&(Ze=Ze.substr(0,Ze.indexOf(">"))),Ze.length%2&&(Ze+="0"),yt.test(Ze)===!1)return"";for(var lt="",kt=0;kt<Ze.length;kt+=2)lt+=String.fromCharCode("0x"+(Ze[kt]+Ze[kt+1]));return lt},Ve=function(Ze){for(var yt=new Uint8Array(Ze.length),lt=Ze.length;lt--;)yt[lt]=Ze.charCodeAt(lt);return Ze=(yt=Object(g.b)(yt)).reduce(function(kt,wr){return kt+String.fromCharCode(wr)},"")};Ye.processDataByFilters=function(We,Ze){var yt=0,lt=We||"",kt=[];for(typeof(Ze=Ze||[])=="string"&&(Ze=[Ze]),yt=0;yt<Ze.length;yt+=1)switch(Ze[yt]){case"ASCII85Decode":case"/ASCII85Decode":lt=ke(lt),kt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":lt=Ce(lt),kt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":lt=Fe(lt),kt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":lt=lt.split("").map(function(wr){return("0"+wr.charCodeAt().toString(16)).slice(-2)}).join("")+">",kt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":lt=Ve(lt),kt.push("/FlateDecode");break;default:throw new Error('The filter: "'+Ze[yt]+'" is not implemented')}return{data:lt,reverseChain:kt.reverse().join(" ")}}}(K.API),function(Ye){Ye.loadFile=function(Ce,ke,Fe){return function(Ve,We,Ze){We=We!==!1,Ze=typeof Ze=="function"?Ze:function(){};var yt=void 0;try{yt=function(lt,kt,wr){var pr=new XMLHttpRequest,_r=0,Wt=function(ir){var Gr=ir.length,kr=[],yr=String.fromCharCode;for(_r=0;_r<Gr;_r+=1)kr.push(yr(255&ir.charCodeAt(_r)));return kr.join("")};if(pr.open("GET",lt,!kt),pr.overrideMimeType("text/plain; charset=x-user-defined"),kt===!1&&(pr.onload=function(){pr.status===200?wr(Wt(this.responseText)):wr(void 0)}),pr.send(null),kt&&pr.status===200)return Wt(pr.responseText)}(Ve,We,Ze)}catch(lt){}return yt}(Ce,ke,Fe)},Ye.loadImageFile=Ye.loadFile}(K.API),function(Ye){function Ce(){return(S.html2canvas?Promise.resolve(S.html2canvas):Promise.resolve().then(d.t.bind(null,"wOnQ",7))).catch(function(Ze){return Promise.reject(new Error("Could not load html2canvas: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze})}function ke(){return(S.DOMPurify?Promise.resolve(S.DOMPurify):d.e(240).then(d.t.bind(null,"qZ2Q",7))).catch(function(Ze){return Promise.reject(new Error("Could not load dompurify: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze})}var Fe=function(yt){var lt=T()(yt);return lt==="undefined"?"undefined":lt==="string"||yt instanceof String?"string":lt==="number"||yt instanceof Number?"number":lt==="function"||yt instanceof Function?"function":yt&&yt.constructor===Array?"array":yt&&yt.nodeType===1?"element":lt==="object"?"object":"unknown"},Ve=function(yt,lt){var kt=document.createElement(yt);for(var wr in lt.className&&(kt.className=lt.className),lt.innerHTML&<.dompurify&&(kt.innerHTML=lt.dompurify.sanitize(lt.innerHTML)),lt.style)kt.style[wr]=lt.style[wr];return kt},We=function Ze(yt){var lt=Object.assign(Ze.convert(Promise.resolve()),JSON.parse(JSON.stringify(Ze.template))),kt=Ze.convert(Promise.resolve(),lt);return kt=(kt=kt.setProgress(1,Ze,1,[Ze])).set(yt)};(We.prototype=Object.create(Promise.prototype)).constructor=We,We.convert=function(Ze,yt){return Ze.__proto__=yt||We.prototype,Ze},We.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"}},We.prototype.from=function(Ze,yt){return this.then(function(){switch(yt=yt||function(lt){switch(Fe(lt)){case"string":return"string";case"element":return lt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Ze)){case"string":return this.then(ke).then(function(lt){return this.set({src:Ve("div",{innerHTML:Ze,dompurify:lt})})});case"element":return this.set({src:Ze});case"canvas":return this.set({canvas:Ze});case"img":return this.set({img:Ze});default:return this.error("Unknown source type.")}})},We.prototype.to=function(Ze){switch(Ze){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.")}},We.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 Ze={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},yt=function lt(kt,wr){for(var pr=kt.nodeType===3?document.createTextNode(kt.nodeValue):kt.cloneNode(!1),_r=kt.firstChild;_r;_r=_r.nextSibling)wr!==!0&&_r.nodeType===1&&_r.nodeName==="SCRIPT"||pr.appendChild(lt(_r,wr));return kt.nodeType===1&&(kt.nodeName==="CANVAS"?(pr.width=kt.width,pr.height=kt.height,pr.getContext("2d").drawImage(kt,0,0)):kt.nodeName!=="TEXTAREA"&&kt.nodeName!=="SELECT"||(pr.value=kt.value),pr.addEventListener("load",function(){pr.scrollTop=kt.scrollTop,pr.scrollLeft=kt.scrollLeft},!0)),pr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);yt.tagName==="BODY"&&(Ze.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ve("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ve("div",{className:"html2pdf__container",style:Ze}),this.prop.container.appendChild(yt),this.prop.container.firstChild.appendChild(Ve("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"})},We.prototype.toCanvas=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(Ce).then(function(yt){var lt=Object.assign({},this.opt.html2canvas);return delete lt.onrendered,yt(this.prop.container,lt)}).then(function(yt){(this.opt.html2canvas.onrendered||function(){})(yt),this.prop.canvas=yt,document.body.removeChild(this.prop.overlay)})},We.prototype.toContext2d=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(Ce).then(function(yt){var lt=this.opt.jsPDF,kt=this.opt.fontFaces,wr=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,pr=Object.assign({async:!0,allowTaint:!0,scale:wr,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 pr.onrendered,lt.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,lt.context2d.posX=this.opt.x,lt.context2d.posY=this.opt.y,lt.context2d.margin=this.opt.margin,lt.context2d.fontFaces=kt,kt)for(var _r=0;_r<kt.length;++_r){var Wt=kt[_r],un=Wt.src.find(function(ir){return ir.format==="truetype"});un&<.addFont(un.url,Wt.ref.name,Wt.ref.style)}return pr.windowHeight=pr.windowHeight||0,pr.windowHeight=pr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):pr.windowHeight,lt.context2d.save(!0),yt(this.prop.container,pr)}).then(function(yt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(yt),this.prop.canvas=yt,document.body.removeChild(this.prop.overlay)})},We.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Ze=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ze})},We.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},We.prototype.output=function(Ze,yt,lt){return(lt=lt||"pdf").toLowerCase()==="img"||lt.toLowerCase()==="image"?this.outputImg(Ze,yt):this.outputPdf(Ze,yt)},We.prototype.outputPdf=function(Ze,yt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Ze,yt)})},We.prototype.outputImg=function(Ze){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Ze){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 "'+Ze+'" is not supported.'}})},We.prototype.save=function(Ze){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Ze?{filename:Ze}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},We.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},We.prototype.set=function(Ze){if(Fe(Ze)!=="object")return this;var yt=Object.keys(Ze||{}).map(function(lt){if(lt in We.template.prop)return function(){this.prop[lt]=Ze[lt]};switch(lt){case"margin":return this.setMargin.bind(this,Ze.margin);case"jsPDF":return function(){return this.opt.jsPDF=Ze.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Ze.pageSize);default:return function(){this.opt[lt]=Ze[lt]}}},this);return this.then(function(){return this.thenList(yt)})},We.prototype.get=function(Ze,yt){return this.then(function(){var lt=Ze in We.template.prop?this.prop[Ze]:this.opt[Ze];return yt?yt(lt):lt})},We.prototype.setMargin=function(Ze){return this.then(function(){switch(Fe(Ze)){case"number":Ze=[Ze,Ze,Ze,Ze];case"array":if(Ze.length===2&&(Ze=[Ze[0],Ze[1],Ze[0],Ze[1]]),Ze.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Ze}).then(this.setPageSize)},We.prototype.setPageSize=function(Ze){function yt(lt,kt){return Math.floor(lt*kt/72*96)}return this.then(function(){(Ze=Ze||K.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Ze.inner={width:Ze.width-this.opt.margin[1]-this.opt.margin[3],height:Ze.height-this.opt.margin[0]-this.opt.margin[2]},Ze.inner.px={width:yt(Ze.inner.width,Ze.k),height:yt(Ze.inner.height,Ze.k)},Ze.inner.ratio=Ze.inner.height/Ze.inner.width),this.prop.pageSize=Ze})},We.prototype.setProgress=function(Ze,yt,lt,kt){return Ze!=null&&(this.progress.val=Ze),yt!=null&&(this.progress.state=yt),lt!=null&&(this.progress.n=lt),kt!=null&&(this.progress.stack=kt),this.progress.ratio=this.progress.val/this.progress.state,this},We.prototype.updateProgress=function(Ze,yt,lt,kt){return this.setProgress(Ze?this.progress.val+Ze:null,yt||null,lt?this.progress.n+lt:null,kt?this.progress.stack.concat(kt):null)},We.prototype.then=function(Ze,yt){var lt=this;return this.thenCore(Ze,yt,function(kt,wr){return lt.updateProgress(null,null,1,[kt]),Promise.prototype.then.call(this,function(pr){return lt.updateProgress(null,kt),pr}).then(kt,wr).then(function(pr){return lt.updateProgress(1),pr})})},We.prototype.thenCore=function(Ze,yt,lt){lt=lt||Promise.prototype.then,Ze&&(Ze=Ze.bind(this)),yt&&(yt=yt.bind(this));var kt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:We.convert(Object.assign({},this),Promise.prototype),wr=lt.call(kt,Ze,yt);return We.convert(wr,this.__proto__)},We.prototype.thenExternal=function(Ze,yt){return Promise.prototype.then.call(this,Ze,yt)},We.prototype.thenList=function(Ze){var yt=this;return Ze.forEach(function(lt){yt=yt.thenCore(lt)}),yt},We.prototype.catch=function(Ze){Ze&&(Ze=Ze.bind(this));var yt=Promise.prototype.catch.call(this,Ze);return We.convert(yt,this)},We.prototype.catchExternal=function(Ze){return Promise.prototype.catch.call(this,Ze)},We.prototype.error=function(Ze){return this.then(function(){throw new Error(Ze)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,K.getPageSize=function(Ze,yt,lt){if(T()(Ze)==="object"){var kt=Ze;Ze=kt.orientation,yt=kt.unit||yt,lt=kt.format||lt}yt=yt||"mm",lt=lt||"a4",Ze=(""+(Ze||"P")).toLowerCase();var wr,pr=(""+lt).toLowerCase(),_r={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(yt){case"pt":wr=1;break;case"mm":wr=72/25.4;break;case"cm":wr=72/2.54;break;case"in":wr=72;break;case"px":wr=.75;break;case"pc":case"em":wr=12;break;case"ex":wr=6;break;default:throw"Invalid unit: "+yt}var Wt,un=0,ir=0;if(_r.hasOwnProperty(pr))un=_r[pr][1]/wr,ir=_r[pr][0]/wr;else try{un=lt[1],ir=lt[0]}catch(Gr){throw new Error("Invalid format: "+lt)}if(Ze==="p"||Ze==="portrait")Ze="p",ir>un&&(Wt=ir,ir=un,un=Wt);else{if(Ze!=="l"&&Ze!=="landscape")throw"Invalid orientation: "+Ze;Ze="l",un>ir&&(Wt=ir,ir=un,un=Wt)}return{width:ir,height:un,unit:yt,k:wr,orientation:Ze}},Ye.html=function(Ze,yt){(yt=yt||{}).callback=yt.callback||function(){},yt.html2canvas=yt.html2canvas||{},yt.html2canvas.canvas=yt.html2canvas.canvas||this.canvas,yt.jsPDF=yt.jsPDF||this,yt.fontFaces=yt.fontFaces?yt.fontFaces.map(Kr):null;var lt=new We(yt);return yt.worker?lt:lt.from(Ze).doCallback()}}(K.API),K.API.addJS=function(Ye){return Zr=Ye,this.internal.events.subscribe("postPutResources",function(){hr=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(hr+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),vn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Zr+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){hr!==void 0&&vn!==void 0&&this.internal.out("/Names <</JavaScript "+hr+" 0 R>>")}),this},function(Ye){var Ce;Ye.events.push(["postPutResources",function(){var ke=this,Fe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ve=ke.outline.render().split(/\r\n/),We=0;We<Ve.length;We++){var Ze=Ve[We],yt=Fe.exec(Ze);if(yt!=null){var lt=yt[1];ke.internal.newObjectDeferredBegin(lt,!1)}ke.internal.write(Ze)}if(this.outline.createNamedDestinations){var kt=this.internal.pages.length,wr=[];for(We=0;We<kt;We++){var pr=ke.internal.newObject();wr.push(pr);var _r=ke.internal.getPageInfo(We+1);ke.internal.write("<< /D["+_r.objId+" 0 R /XYZ null null null]>> endobj")}var Wt=ke.internal.newObject();for(ke.internal.write("<< /Names [ "),We=0;We<wr.length;We++)ke.internal.write("(page_"+(We+1)+")"+wr[We]+" 0 R");ke.internal.write(" ] >>","endobj"),Ce=ke.internal.newObject(),ke.internal.write("<< /Dests "+Wt+" 0 R"),ke.internal.write(">>","endobj")}}]),Ye.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 "+Ce+" 0 R"))}]),Ye.events.push(["initialized",function(){var ke=this;ke.outline={createNamedDestinations:!1,root:{children:[]}},ke.outline.add=function(Fe,Ve,We){var Ze={title:Ve,options:We,children:[]};return Fe==null&&(Fe=this.root),Fe.children.push(Ze),Ze},ke.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=ke,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},ke.outline.genIds_r=function(Fe){Fe.id=ke.internal.newObjectDeferred();for(var Ve=0;Ve<Fe.children.length;Ve++)this.genIds_r(Fe.children[Ve])},ke.outline.renderRoot=function(Fe){this.objStart(Fe),this.line("/Type /Outlines"),Fe.children.length>0&&(this.line("/First "+this.makeRef(Fe.children[0])),this.line("/Last "+this.makeRef(Fe.children[Fe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Fe)),this.objEnd()},ke.outline.renderItems=function(Fe){for(var Ve=this.ctx.pdf.internal.getVerticalCoordinateString,We=0;We<Fe.children.length;We++){var Ze=Fe.children[We];this.objStart(Ze),this.line("/Title "+this.makeString(Ze.title)),this.line("/Parent "+this.makeRef(Fe)),We>0&&this.line("/Prev "+this.makeRef(Fe.children[We-1])),We<Fe.children.length-1&&this.line("/Next "+this.makeRef(Fe.children[We+1])),Ze.children.length>0&&(this.line("/First "+this.makeRef(Ze.children[0])),this.line("/Last "+this.makeRef(Ze.children[Ze.children.length-1])));var yt=this.count=this.count_r({count:0},Ze);if(yt>0&&this.line("/Count "+yt),Ze.options&&Ze.options.pageNumber){var lt=ke.internal.getPageInfo(Ze.options.pageNumber);this.line("/Dest ["+lt.objId+" 0 R /XYZ 0 "+Ve(0)+" 0]")}this.objEnd()}for(var kt=0;kt<Fe.children.length;kt++)this.renderItems(Fe.children[kt])},ke.outline.line=function(Fe){this.ctx.val+=Fe+`\r
|
|
|
`},ke.outline.makeRef=function(Fe){return Fe.id+" 0 R"},ke.outline.makeString=function(Fe){return"("+ke.internal.pdfEscape(Fe)+")"},ke.outline.objStart=function(Fe){this.ctx.val+=`\r
|
|
|
`+Fe.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},ke.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},ke.outline.count_r=function(Fe,Ve){for(var We=0;We<Ve.children.length;We++)Fe.count++,this.count_r(Fe,Ve.children[We]);return Fe.count}}])}(K.API),function(Ye){var Ce=[192,193,194,195,196,197,198,199];Ye.processJPEG=function(ke,Fe,Ve,We,Ze,yt){var lt,kt=this.decode.DCT_DECODE,wr=null;if(typeof ke=="string"||this.__addimage__.isArrayBuffer(ke)||this.__addimage__.isArrayBufferView(ke)){switch(ke=Ze||ke,ke=this.__addimage__.isArrayBuffer(ke)?new Uint8Array(ke):ke,(lt=function(pr){for(var _r,Wt=256*pr.charCodeAt(4)+pr.charCodeAt(5),un=pr.length,ir={width:0,height:0,numcomponents:1},Gr=4;Gr<un;Gr+=2){if(Gr+=Wt,Ce.indexOf(pr.charCodeAt(Gr+1))!==-1){_r=256*pr.charCodeAt(Gr+5)+pr.charCodeAt(Gr+6),ir={width:256*pr.charCodeAt(Gr+7)+pr.charCodeAt(Gr+8),height:_r,numcomponents:pr.charCodeAt(Gr+9)};break}Wt=256*pr.charCodeAt(Gr+2)+pr.charCodeAt(Gr+3)}return ir}(ke=this.__addimage__.isArrayBufferView(ke)?this.__addimage__.arrayBufferToBinaryString(ke):ke)).numcomponents){case 1:yt=this.color_spaces.DEVICE_GRAY;break;case 4:yt=this.color_spaces.DEVICE_CMYK;break;case 3:yt=this.color_spaces.DEVICE_RGB}wr={data:ke,width:lt.width,height:lt.height,colorSpace:yt,bitsPerComponent:8,filter:kt,index:Fe,alias:Ve}}return wr}}(K.API);var $e,tt,Ee,Re,je,nt=function(){var Ye,Ce,ke;function Fe(We){var Ze,yt,lt,kt,wr,pr,_r,Wt,un,ir,Gr,kr,yr,En;for(this.data=We,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},pr=null;;){switch(Ze=this.readUInt32(),un=function(){var kn,ii;for(ii=[],kn=0;kn<4;++kn)ii.push(String.fromCharCode(this.data[this.pos++]));return ii}.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(Ze);break;case"fcTL":pr&&this.animation.frames.push(pr),this.pos+=4,pr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},wr=this.readUInt16(),kt=this.readUInt16()||100,pr.delay=1e3*wr/kt,pr.disposeOp=this.data[this.pos++],pr.blendOp=this.data[this.pos++],pr.data=[];break;case"IDAT":case"fdAT":for(un==="fdAT"&&(this.pos+=4,Ze-=4),We=(pr!=null?pr.data:void 0)||this.imgData,kr=0;0<=Ze?kr<Ze:kr>Ze;0<=Ze?++kr:--kr)We.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(lt=this.palette.length/3,this.transparency.indexed=this.read(Ze),this.transparency.indexed.length>lt)throw new Error("More transparent colors than palette size");if((ir=lt-this.transparency.indexed.length)>0)for(yr=0;0<=ir?yr<ir:yr>ir;0<=ir?++yr:--yr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Ze)[0];break;case 2:this.transparency.rgb=this.read(Ze)}break;case"tEXt":_r=(Gr=this.read(Ze)).indexOf(0),Wt=String.fromCharCode.apply(String,Gr.slice(0,_r)),this.text[Wt]=String.fromCharCode.apply(String,Gr.slice(_r+1));break;case"IEND":return pr&&this.animation.frames.push(pr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(En=this.colorType)===4||En===6,yt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*yt,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+=Ze}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Fe.prototype.read=function(We){var Ze,yt;for(yt=[],Ze=0;0<=We?Ze<We:Ze>We;0<=We?++Ze:--Ze)yt.push(this.data[this.pos++]);return yt},Fe.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Fe.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Fe.prototype.decodePixels=function(We){var Ze=this.pixelBitlength/8,yt=new Uint8Array(this.width*this.height*Ze),lt=0,kt=this;if(We==null&&(We=this.imgData),We.length===0)return new Uint8Array(0);function wr(pr,_r,Wt,un){var ir,Gr,kr,yr,En,kn,ii,oi,ei,ci,Pn,xi,gn,zr,Cn,on,li,ri,wi,Gn,ki,Jn=Math.ceil((kt.width-pr)/Wt),Pi=Math.ceil((kt.height-_r)/un),mn=kt.width==Jn&&kt.height==Pi;for(zr=Ze*Jn,xi=mn?yt:new Uint8Array(zr*Pi),kn=We.length,gn=0,Gr=0;gn<Pi&<<kn;){switch(We[lt++]){case 0:for(yr=li=0;li<zr;yr=li+=1)xi[Gr++]=We[lt++];break;case 1:for(yr=ri=0;ri<zr;yr=ri+=1)ir=We[lt++],En=yr<Ze?0:xi[Gr-Ze],xi[Gr++]=(ir+En)%256;break;case 2:for(yr=wi=0;wi<zr;yr=wi+=1)ir=We[lt++],kr=(yr-yr%Ze)/Ze,Cn=gn&&xi[(gn-1)*zr+kr*Ze+yr%Ze],xi[Gr++]=(Cn+ir)%256;break;case 3:for(yr=Gn=0;Gn<zr;yr=Gn+=1)ir=We[lt++],kr=(yr-yr%Ze)/Ze,En=yr<Ze?0:xi[Gr-Ze],Cn=gn&&xi[(gn-1)*zr+kr*Ze+yr%Ze],xi[Gr++]=(ir+Math.floor((En+Cn)/2))%256;break;case 4:for(yr=ki=0;ki<zr;yr=ki+=1)ir=We[lt++],kr=(yr-yr%Ze)/Ze,En=yr<Ze?0:xi[Gr-Ze],gn===0?Cn=on=0:(Cn=xi[(gn-1)*zr+kr*Ze+yr%Ze],on=kr&&xi[(gn-1)*zr+(kr-1)*Ze+yr%Ze]),ii=En+Cn-on,oi=Math.abs(ii-En),ci=Math.abs(ii-Cn),Pn=Math.abs(ii-on),ei=oi<=ci&&oi<=Pn?En:ci<=Pn?Cn:on,xi[Gr++]=(ir+ei)%256;break;default:throw new Error("Invalid filter algorithm: "+We[lt-1])}if(!mn){var Fr=((_r+gn*un)*kt.width+pr)*Ze,An=gn*zr;for(yr=0;yr<Jn;yr+=1){for(var Un=0;Un<Ze;Un+=1)yt[Fr++]=xi[An++];Fr+=(Wt-1)*Ze}}gn++}}return We=Object(g.a)(We),kt.interlaceMethod==1?(wr(0,0,8,8),wr(4,0,8,8),wr(0,4,4,8),wr(2,0,4,4),wr(0,2,2,4),wr(1,0,2,2),wr(0,1,1,2)):wr(0,0,1,1),yt},Fe.prototype.decodePalette=function(){var We,Ze,yt,lt,kt,wr,pr,_r,Wt;for(yt=this.palette,wr=this.transparency.indexed||[],kt=new Uint8Array((wr.length||0)+yt.length),lt=0,We=0,Ze=pr=0,_r=yt.length;pr<_r;Ze=pr+=3)kt[lt++]=yt[Ze],kt[lt++]=yt[Ze+1],kt[lt++]=yt[Ze+2],kt[lt++]=(Wt=wr[We++])!=null?Wt:255;return kt},Fe.prototype.copyToImageData=function(We,Ze){var yt,lt,kt,wr,pr,_r,Wt,un,ir,Gr,kr;if(lt=this.colors,ir=null,yt=this.hasAlphaChannel,this.palette.length&&(ir=(kr=this._decodedPalette)!=null?kr:this._decodedPalette=this.decodePalette(),lt=4,yt=!0),un=(kt=We.data||We).length,pr=ir||Ze,wr=_r=0,lt===1)for(;wr<un;)Wt=ir?4*Ze[wr/4]:_r,Gr=pr[Wt++],kt[wr++]=Gr,kt[wr++]=Gr,kt[wr++]=Gr,kt[wr++]=yt?pr[Wt++]:255,_r=Wt;else for(;wr<un;)Wt=ir?4*Ze[wr/4]:_r,kt[wr++]=pr[Wt++],kt[wr++]=pr[Wt++],kt[wr++]=pr[Wt++],kt[wr++]=yt?pr[Wt++]:255,_r=Wt},Fe.prototype.decode=function(){var We;return We=new Uint8Array(this.width*this.height*4),this.copyToImageData(We,this.decodePixels()),We};var Ve=function(){if(Object.prototype.toString.call(S)==="[object Window]"){try{Ce=S.document.createElement("canvas"),ke=Ce.getContext("2d")}catch(Ze){return!1}return!0}return!1};return Ve(),Ye=function(Ze){var yt;if(Ve()===!0)return ke.width=Ze.width,ke.height=Ze.height,ke.clearRect(0,0,Ze.width,Ze.height),ke.putImageData(Ze,0,0),(yt=new Image).src=Ce.toDataURL(),yt;throw new Error("This method requires a Browser with Canvas-capability.")},Fe.prototype.decodeFrames=function(We){var Ze,yt,lt,kt,wr,pr,_r,Wt;if(this.animation){for(Wt=[],yt=wr=0,pr=(_r=this.animation.frames).length;wr<pr;yt=++wr)Ze=_r[yt],lt=We.createImageData(Ze.width,Ze.height),kt=this.decodePixels(new Uint8Array(Ze.data)),this.copyToImageData(lt,kt),Ze.imageData=lt,Wt.push(Ze.image=Ye(lt));return Wt}},Fe.prototype.renderFrame=function(We,Ze){var yt,lt,kt;return yt=(lt=this.animation.frames)[Ze],kt=lt[Ze-1],Ze===0&&We.clearRect(0,0,this.width,this.height),(kt!=null?kt.disposeOp:void 0)===1?We.clearRect(kt.xOffset,kt.yOffset,kt.width,kt.height):(kt!=null?kt.disposeOp:void 0)===2&&We.putImageData(kt.imageData,kt.xOffset,kt.yOffset),yt.blendOp===0&&We.clearRect(yt.xOffset,yt.yOffset,yt.width,yt.height),We.drawImage(yt.image,yt.xOffset,yt.yOffset)},Fe.prototype.animate=function(We){var Ze,yt,lt,kt,wr,pr,_r=this;return yt=0,pr=this.animation,kt=pr.numFrames,lt=pr.frames,wr=pr.numPlays,(Ze=function(){var un,ir;if(un=yt++%kt,ir=lt[un],_r.renderFrame(We,un),kt>1&&yt/kt<wr)return _r.animation._timeout=setTimeout(Ze,ir.delay)})()},Fe.prototype.stopAnimation=function(){var We;return clearTimeout((We=this.animation)!=null?We._timeout:void 0)},Fe.prototype.render=function(We){var Ze,yt;return We._png&&We._png.stopAnimation(),We._png=this,We.width=this.width,We.height=this.height,Ze=We.getContext("2d"),this.animation?(this.decodeFrames(Ze),this.animate(Ze)):(yt=Ze.createImageData(this.width,this.height),this.copyToImageData(yt,this.decodePixels()),Ze.putImageData(yt,0,0))},Fe}();/**
|
|
|
* @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(Ye){var Ce=0;if(Ye[Ce++]!==71||Ye[Ce++]!==73||Ye[Ce++]!==70||Ye[Ce++]!==56||(Ye[Ce++]+1&253)!=56||Ye[Ce++]!==97)throw new Error("Invalid GIF 87a/89a header.");var ke=Ye[Ce++]|Ye[Ce++]<<8,Fe=Ye[Ce++]|Ye[Ce++]<<8,Ve=Ye[Ce++],We=Ve>>7,Ze=1<<(7&Ve)+1;Ye[Ce++],Ye[Ce++];var yt=null,lt=null;We&&(yt=Ce,lt=Ze,Ce+=3*Ze);var kt=!0,wr=[],pr=0,_r=null,Wt=0,un=null;for(this.width=ke,this.height=Fe;kt&&Ce<Ye.length;)switch(Ye[Ce++]){case 33:switch(Ye[Ce++]){case 255:if(Ye[Ce]!==11||Ye[Ce+1]==78&&Ye[Ce+2]==69&&Ye[Ce+3]==84&&Ye[Ce+4]==83&&Ye[Ce+5]==67&&Ye[Ce+6]==65&&Ye[Ce+7]==80&&Ye[Ce+8]==69&&Ye[Ce+9]==50&&Ye[Ce+10]==46&&Ye[Ce+11]==48&&Ye[Ce+12]==3&&Ye[Ce+13]==1&&Ye[Ce+16]==0)Ce+=14,un=Ye[Ce++]|Ye[Ce++]<<8,Ce++;else for(Ce+=12;;){if(!((gn=Ye[Ce++])>=0))throw Error("Invalid block size");if(gn===0)break;Ce+=gn}break;case 249:if(Ye[Ce++]!==4||Ye[Ce+4]!==0)throw new Error("Invalid graphics extension block.");var ir=Ye[Ce++];pr=Ye[Ce++]|Ye[Ce++]<<8,_r=Ye[Ce++],(1&ir)==0&&(_r=null),Wt=ir>>2&7,Ce++;break;case 254:for(;;){if(!((gn=Ye[Ce++])>=0))throw Error("Invalid block size");if(gn===0)break;Ce+=gn}break;default:throw new Error("Unknown graphic control label: 0x"+Ye[Ce-1].toString(16))}break;case 44:var Gr=Ye[Ce++]|Ye[Ce++]<<8,kr=Ye[Ce++]|Ye[Ce++]<<8,yr=Ye[Ce++]|Ye[Ce++]<<8,En=Ye[Ce++]|Ye[Ce++]<<8,kn=Ye[Ce++],ii=kn>>6&1,oi=1<<(7&kn)+1,ei=yt,ci=lt,Pn=!1;kn>>7&&(Pn=!0,ei=Ce,ci=oi,Ce+=3*oi);var xi=Ce;for(Ce++;;){var gn;if(!((gn=Ye[Ce++])>=0))throw Error("Invalid block size");if(gn===0)break;Ce+=gn}wr.push({x:Gr,y:kr,width:yr,height:En,has_local_palette:Pn,palette_offset:ei,palette_size:ci,data_offset:xi,data_length:Ce-xi,transparent_index:_r,interlaced:!!ii,delay:pr,disposal:Wt});break;case 59:kt=!1;break;default:throw new Error("Unknown gif block: 0x"+Ye[Ce-1].toString(16))}this.numFrames=function(){return wr.length},this.loopCount=function(){return un},this.frameInfo=function(zr){if(zr<0||zr>=wr.length)throw new Error("Frame index out of range.");return wr[zr]},this.decodeAndBlitFrameBGRA=function(zr,Cn){var on=this.frameInfo(zr),li=on.width*on.height,ri=new Uint8Array(li);Bt(Ye,on.data_offset,ri,li);var wi=on.palette_offset,Gn=on.transparent_index;Gn===null&&(Gn=256);var ki=on.width,Jn=ke-ki,Pi=ki,mn=4*(on.y*ke+on.x),Fr=4*((on.y+on.height)*ke+on.x),An=mn,Un=4*Jn;on.interlaced===!0&&(Un+=4*ke*7);for(var Vn=8,ti=0,di=ri.length;ti<di;++ti){var fi=ri[ti];if(Pi===0&&(Pi=ki,(An+=Un)>=Fr&&(Un=4*Jn+4*ke*(Vn-1),An=mn+(ki+Jn)*(Vn<<1),Vn>>=1)),fi===Gn)An+=4;else{var mi=Ye[wi+3*fi],Wi=Ye[wi+3*fi+1],na=Ye[wi+3*fi+2];Cn[An++]=na,Cn[An++]=Wi,Cn[An++]=mi,Cn[An++]=255}--Pi}},this.decodeAndBlitFrameRGBA=function(zr,Cn){var on=this.frameInfo(zr),li=on.width*on.height,ri=new Uint8Array(li);Bt(Ye,on.data_offset,ri,li);var wi=on.palette_offset,Gn=on.transparent_index;Gn===null&&(Gn=256);var ki=on.width,Jn=ke-ki,Pi=ki,mn=4*(on.y*ke+on.x),Fr=4*((on.y+on.height)*ke+on.x),An=mn,Un=4*Jn;on.interlaced===!0&&(Un+=4*ke*7);for(var Vn=8,ti=0,di=ri.length;ti<di;++ti){var fi=ri[ti];if(Pi===0&&(Pi=ki,(An+=Un)>=Fr&&(Un=4*Jn+4*ke*(Vn-1),An=mn+(ki+Jn)*(Vn<<1),Vn>>=1)),fi===Gn)An+=4;else{var mi=Ye[wi+3*fi],Wi=Ye[wi+3*fi+1],na=Ye[wi+3*fi+2];Cn[An++]=mi,Cn[An++]=Wi,Cn[An++]=na,Cn[An++]=255}--Pi}}}function Bt(Ye,Ce,ke,Fe){for(var Ve=Ye[Ce++],We=1<<Ve,Ze=We+1,yt=Ze+1,lt=Ve+1,kt=(1<<lt)-1,wr=0,pr=0,_r=0,Wt=Ye[Ce++],un=new Int32Array(4096),ir=null;;){for(;wr<16&&Wt!==0;)pr|=Ye[Ce++]<<wr,wr+=8,Wt===1?Wt=Ye[Ce++]:--Wt;if(wr<lt)break;var Gr=pr&kt;if(pr>>=lt,wr-=lt,Gr!==We){if(Gr===Ze)break;for(var kr=Gr<yt?Gr:ir,yr=0,En=kr;En>We;)En=un[En]>>8,++yr;var kn=En;if(_r+yr+(kr!==Gr?1:0)>Fe)return void h.log("Warning, gif stream longer than expected.");ke[_r++]=kn;var ii=_r+=yr;for(kr!==Gr&&(ke[_r++]=kn),En=kr;yr--;)En=un[En],ke[--ii]=255&En,En>>=8;ir!==null&&yt<4096&&(un[yt++]=ir<<8|kn,yt>=kt+1&<<12&&(++lt,kt=kt<<1|1)),ir=Gr}else yt=Ze+1,kt=(1<<(lt=Ve+1))-1,ir=null}return _r!==Fe&&h.log("Warning, gif stream shorter than expected."),ke}/**
|
|
|
* @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 Xt(Ye){var Ce,ke,Fe,Ve,We,Ze=Math.floor,yt=new Array(64),lt=new Array(64),kt=new Array(64),wr=new Array(64),pr=new Array(65535),_r=new Array(65535),Wt=new Array(64),un=new Array(64),ir=[],Gr=0,kr=7,yr=new Array(64),En=new Array(64),kn=new Array(64),ii=new Array(256),oi=new Array(2048),ei=[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],ci=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Pn=[0,1,2,3,4,5,6,7,8,9,10,11],xi=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],gn=[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],zr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Cn=[0,1,2,3,4,5,6,7,8,9,10,11],on=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],li=[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 ri(mn,Fr){for(var An=0,Un=0,Vn=new Array,ti=1;ti<=16;ti++){for(var di=1;di<=mn[ti];di++)Vn[Fr[Un]]=[],Vn[Fr[Un]][0]=An,Vn[Fr[Un]][1]=ti,Un++,An++;An*=2}return Vn}function wi(mn){for(var Fr=mn[0],An=mn[1]-1;An>=0;)Fr&1<<An&&(Gr|=1<<kr),An--,--kr<0&&(Gr==255?(Gn(255),Gn(0)):Gn(Gr),kr=7,Gr=0)}function Gn(mn){ir.push(mn)}function ki(mn){Gn(mn>>8&255),Gn(255&mn)}function Jn(mn,Fr,An,Un,Vn){for(var ti,di=Vn[0],fi=Vn[240],mi=function(Fi,ia){var Gt,Xr,rn,fn,Xe,_t,lr,rr,Or,Mr,Wr=0;for(Or=0;Or<8;++Or){Gt=Fi[Wr],Xr=Fi[Wr+1],rn=Fi[Wr+2],fn=Fi[Wr+3],Xe=Fi[Wr+4],_t=Fi[Wr+5],lr=Fi[Wr+6];var nn=Gt+(rr=Fi[Wr+7]),wn=Gt-rr,On=Xr+lr,Rn=Xr-lr,Nn=rn+_t,yn=rn-_t,Sn=fn+Xe,_n=fn-Xe,Hn=nn+Sn,Yn=nn-Sn,Zn=On+Nn,yi=On-Nn;Fi[Wr]=Hn+Zn,Fi[Wr+4]=Hn-Zn;var gi=.707106781*(yi+Yn);Fi[Wr+2]=Yn+gi,Fi[Wr+6]=Yn-gi;var Di=.382683433*((Hn=_n+yn)-(yi=Rn+wn)),Ui=.5411961*Hn+Di,Ei=1.306562965*yi+Di,_i=.707106781*(Zn=yn+Rn),Ni=wn+_i,jn=wn-_i;Fi[Wr+5]=jn+Ui,Fi[Wr+3]=jn-Ui,Fi[Wr+1]=Ni+Ei,Fi[Wr+7]=Ni-Ei,Wr+=8}for(Wr=0,Or=0;Or<8;++Or){Gt=Fi[Wr],Xr=Fi[Wr+8],rn=Fi[Wr+16],fn=Fi[Wr+24],Xe=Fi[Wr+32],_t=Fi[Wr+40],lr=Fi[Wr+48];var Ii=Gt+(rr=Fi[Wr+56]),Hi=Gt-rr,fr=Xr+lr,Dr=Xr-lr,Qr=rn+_t,Nr=rn-_t,Yt=fn+Xe,xr=fn-Xe,tr=Ii+Yt,jr=Ii-Yt,Ur=fr+Qr,dn=fr-Qr;Fi[Wr]=tr+Ur,Fi[Wr+32]=tr-Ur;var sn=.707106781*(dn+jr);Fi[Wr+16]=jr+sn,Fi[Wr+48]=jr-sn;var bn=.382683433*((tr=xr+Nr)-(dn=Dr+Hi)),Bn=.5411961*tr+bn,Xn=1.306562965*dn+bn,$n=.707106781*(Ur=Nr+Dr),Ti=Hi+$n,Xi=Hi-$n;Fi[Wr+40]=Xi+Bn,Fi[Wr+24]=Xi-Bn,Fi[Wr+8]=Ti+Xn,Fi[Wr+56]=Ti-Xn,Wr++}for(Or=0;Or<64;++Or)Mr=Fi[Or]*ia[Or],Wt[Or]=Mr>0?Mr+.5|0:Mr-.5|0;return Wt}(mn,Fr),Wi=0;Wi<64;++Wi)un[ei[Wi]]=mi[Wi];var na=un[0]-An;An=un[0],na==0?wi(Un[0]):(wi(Un[_r[ti=32767+na]]),wi(pr[ti]));for(var ea=63;ea>0&&un[ea]==0;)ea--;if(ea==0)return wi(di),An;for(var Fa,pi=1;pi<=ea;){for(var ln=pi;un[pi]==0&&pi<=ea;)++pi;var Li=pi-ln;if(Li>=16){Fa=Li>>4;for(var Zi=1;Zi<=Fa;++Zi)wi(fi);Li&=15}ti=32767+un[pi],wi(Vn[(Li<<4)+_r[ti]]),wi(pr[ti]),pi++}return ea!=63&&wi(di),An}function Pi(mn){(mn=Math.min(Math.max(mn,1),100),We!=mn)&&(!function(Fr){for(var An=[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],Un=0;Un<64;Un++){var Vn=Ze((An[Un]*Fr+50)/100);Vn=Math.min(Math.max(Vn,1),255),yt[ei[Un]]=Vn}for(var ti=[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],di=0;di<64;di++){var fi=Ze((ti[di]*Fr+50)/100);fi=Math.min(Math.max(fi,1),255),lt[ei[di]]=fi}for(var mi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Wi=0,na=0;na<8;na++)for(var ea=0;ea<8;ea++)kt[Wi]=1/(yt[ei[Wi]]*mi[na]*mi[ea]*8),wr[Wi]=1/(lt[ei[Wi]]*mi[na]*mi[ea]*8),Wi++}(mn<50?Math.floor(5e3/mn):Math.floor(200-2*mn)),We=mn)}this.encode=function(mn,Fr){Fr&&Pi(Fr),ir=new Array,Gr=0,kr=7,ki(65496),ki(65504),ki(16),Gn(74),Gn(70),Gn(73),Gn(70),Gn(0),Gn(1),Gn(1),Gn(0),ki(1),ki(1),Gn(0),Gn(0),function(){ki(65499),ki(132),Gn(0);for(var Xr=0;Xr<64;Xr++)Gn(yt[Xr]);Gn(1);for(var rn=0;rn<64;rn++)Gn(lt[rn])}(),function(Xr,rn){ki(65472),ki(17),Gn(8),ki(rn),ki(Xr),Gn(3),Gn(1),Gn(17),Gn(0),Gn(2),Gn(17),Gn(1),Gn(3),Gn(17),Gn(1)}(mn.width,mn.height),function(){ki(65476),ki(418),Gn(0);for(var Xr=0;Xr<16;Xr++)Gn(ci[Xr+1]);for(var rn=0;rn<=11;rn++)Gn(Pn[rn]);Gn(16);for(var fn=0;fn<16;fn++)Gn(xi[fn+1]);for(var Xe=0;Xe<=161;Xe++)Gn(gn[Xe]);Gn(1);for(var _t=0;_t<16;_t++)Gn(zr[_t+1]);for(var lr=0;lr<=11;lr++)Gn(Cn[lr]);Gn(17);for(var rr=0;rr<16;rr++)Gn(on[rr+1]);for(var Or=0;Or<=161;Or++)Gn(li[Or])}(),ki(65498),ki(12),Gn(3),Gn(1),Gn(0),Gn(2),Gn(17),Gn(3),Gn(17),Gn(0),Gn(63),Gn(0);var An=0,Un=0,Vn=0;Gr=0,kr=7,this.encode.displayName="_encode_";for(var ti,di,fi,mi,Wi,na,ea,Fa,pi,ln=mn.data,Li=mn.width,Zi=mn.height,Fi=4*Li,ia=0;ia<Zi;){for(ti=0;ti<Fi;){for(Wi=Fi*ia+ti,ea=-1,Fa=0,pi=0;pi<64;pi++)na=Wi+(Fa=pi>>3)*Fi+(ea=4*(7&pi)),ia+Fa>=Zi&&(na-=Fi*(ia+1+Fa-Zi)),ti+ea>=Fi&&(na-=ti+ea-Fi+4),di=ln[na++],fi=ln[na++],mi=ln[na++],yr[pi]=(oi[di]+oi[fi+256>>0]+oi[mi+512>>0]>>16)-128,En[pi]=(oi[di+768>>0]+oi[fi+1024>>0]+oi[mi+1280>>0]>>16)-128,kn[pi]=(oi[di+1280>>0]+oi[fi+1536>>0]+oi[mi+1792>>0]>>16)-128;An=Jn(yr,kt,An,Ce,Fe),Un=Jn(En,wr,Un,ke,Ve),Vn=Jn(kn,wr,Vn,ke,Ve),ti+=32}ia+=8}if(kr>=0){var Gt=[];Gt[1]=kr+1,Gt[0]=(1<<kr+1)-1,wi(Gt)}return ki(65497),new Uint8Array(ir)},Ye=Ye||50,function(){for(var mn=String.fromCharCode,Fr=0;Fr<256;Fr++)ii[Fr]=mn(Fr)}(),Ce=ri(ci,Pn),ke=ri(zr,Cn),Fe=ri(xi,gn),Ve=ri(on,li),function(){for(var mn=1,Fr=2,An=1;An<=15;An++){for(var Un=mn;Un<Fr;Un++)_r[32767+Un]=An,pr[32767+Un]=[],pr[32767+Un][1]=An,pr[32767+Un][0]=Un;for(var Vn=-(Fr-1);Vn<=-mn;Vn++)_r[32767+Vn]=An,pr[32767+Vn]=[],pr[32767+Vn][1]=An,pr[32767+Vn][0]=Fr-1+Vn;mn<<=1,Fr<<=1}}(),function(){for(var mn=0;mn<256;mn++)oi[mn]=19595*mn,oi[mn+256>>0]=38470*mn,oi[mn+512>>0]=7471*mn+32768,oi[mn+768>>0]=-11059*mn,oi[mn+1024>>0]=-21709*mn,oi[mn+1280>>0]=32768*mn+8421375,oi[mn+1536>>0]=-27439*mn,oi[mn+1792>>0]=-5329*mn}(),Pi(Ye)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function Rr(Ye,Ce){if(this.pos=0,this.buffer=Ye,this.datav=new DataView(Ye.buffer),this.is_with_alpha=!!Ce,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 Br(Ye){function Ce(ci){if(!ci)throw Error("assert :P")}function ke(ci,Pn,xi){for(var gn=0;4>gn;gn++)if(ci[Pn+gn]!=xi.charCodeAt(gn))return!0;return!1}function Fe(ci,Pn,xi,gn,zr){for(var Cn=0;Cn<zr;Cn++)ci[Pn+Cn]=xi[gn+Cn]}function Ve(ci,Pn,xi,gn){for(var zr=0;zr<gn;zr++)ci[Pn+zr]=xi}function We(ci){return new Int32Array(ci)}function Ze(ci,Pn){for(var xi=[],gn=0;gn<ci;gn++)xi.push(new Pn);return xi}function yt(ci,Pn){var xi=[];return function gn(zr,Cn,on){for(var li=on[Cn],ri=0;ri<li&&(zr.push(on.length>Cn+1?[]:new Pn),!(on.length<Cn+1));ri++)gn(zr[ri],Cn+1,on)}(xi,0,ci),xi}var lt=function(){var Pn=this;function xi(be,Ue){for(var ht=1<<Ue-1>>>0;be&ht;)ht>>>=1;return ht?(be&ht-1)+ht:be}function gn(be,Ue,ht,Kt,dr){Ce(!(Kt%ht));do be[Ue+(Kt-=ht)]=dr;while(0<Kt)}function zr(be,Ue,ht,Kt,dr){if(Ce(2328>=dr),512>=dr)var Tr=We(512);else if((Tr=We(dr))==null)return 0;return function(De,te,Se,He,at,Et){var It,Nt,vr=te,Ir=1<<Se,mr=We(16),cr=We(16);for(Ce(at!=0),Ce(He!=null),Ce(De!=null),Ce(0<Se),Nt=0;Nt<at;++Nt){if(15<He[Nt])return 0;++mr[He[Nt]]}if(mr[0]==at)return 0;for(cr[1]=0,It=1;15>It;++It){if(mr[It]>1<<It)return 0;cr[It+1]=cr[It]+mr[It]}for(Nt=0;Nt<at;++Nt)It=He[Nt],0<He[Nt]&&(Et[cr[It]++]=Nt);if(cr[15]==1)return(He=new Cn).g=0,He.value=Et[0],gn(De,vr,1,Ir,He),Ir;var Cr,Pr=-1,an=Ir-1,Kn=0,ni=1,Oi=1,hi=1<<Se;for(Nt=0,It=1,at=2;It<=Se;++It,at<<=1){if(ni+=Oi<<=1,0>(Oi-=mr[It]))return 0;for(;0<mr[It];--mr[It])(He=new Cn).g=It,He.value=Et[Nt++],gn(De,vr+Kn,at,hi,He),Kn=xi(Kn,It)}for(It=Se+1,at=2;15>=It;++It,at<<=1){if(ni+=Oi<<=1,0>(Oi-=mr[It]))return 0;for(;0<mr[It];--mr[It]){if(He=new Cn,(Kn&an)!=Pr){for(vr+=hi,Cr=1<<(Pr=It)-Se;15>Pr&&!(0>=(Cr-=mr[Pr]));)++Pr,Cr<<=1;Ir+=hi=1<<(Cr=Pr-Se),De[te+(Pr=Kn&an)].g=Cr+Se,De[te+Pr].value=vr-te-Pr}He.g=It-Se,He.value=Et[Nt++],gn(De,vr+(Kn>>Se),at,hi,He),Kn=xi(Kn,It)}}return ni!=2*cr[15]-1?0:Ir}(be,Ue,ht,Kt,dr,Tr)}function Cn(){this.value=this.g=0}function on(){this.value=this.g=0}function li(){this.G=Ze(5,Cn),this.H=We(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Ze(So,on)}function ri(be,Ue,ht,Kt){Ce(be!=null),Ce(Ue!=null),Ce(2147483648>Kt),be.Ca=254,be.I=0,be.b=-8,be.Ka=0,be.oa=Ue,be.pa=ht,be.Jd=Ue,be.Yc=ht+Kt,be.Zc=4<=Kt?ht+Kt-4+1:ht,di(be)}function wi(be,Ue){for(var ht=0;0<Ue--;)ht|=mi(be,128)<<Ue;return ht}function Gn(be,Ue){var ht=wi(be,Ue);return fi(be)?-ht:ht}function ki(be,Ue,ht,Kt){var dr,Tr=0;for(Ce(be!=null),Ce(Ue!=null),Ce(4294967288>Kt),be.Sb=Kt,be.Ra=0,be.u=0,be.h=0,4<Kt&&(Kt=4),dr=0;dr<Kt;++dr)Tr+=Ue[ht+dr]<<8*dr;be.Ra=Tr,be.bb=Kt,be.oa=Ue,be.pa=ht}function Jn(be){for(;8<=be.u&&be.bb<be.Sb;)be.Ra>>>=8,be.Ra+=be.oa[be.pa+be.bb]<<Io-8>>>0,++be.bb,be.u-=8;Un(be)&&(be.h=1,be.u=0)}function Pi(be,Ue){if(Ce(0<=Ue),!be.h&&Ue<=ns){var ht=An(be)&os[Ue];return be.u+=Ue,Jn(be),ht}return be.h=1,be.u=0}function mn(){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 An(be){return be.Ra>>>(be.u&Io-1)>>>0}function Un(be){return Ce(be.bb<=be.Sb),be.h||be.bb==be.Sb&&be.u>Io}function Vn(be,Ue){be.u=Ue,be.h=Un(be)}function ti(be){be.u>=Xo&&(Ce(be.u>=Xo),Jn(be))}function di(be){Ce(be!=null&&be.oa!=null),be.pa<be.Zc?(be.I=(be.oa[be.pa++]|be.I<<8)>>>0,be.b+=8):(Ce(be!=null&&be.oa!=null),be.pa<be.Yc?(be.b+=8,be.I=be.oa[be.pa++]|be.I<<8):be.Ka?be.b=0:(be.I<<=8,be.b+=8,be.Ka=1))}function fi(be){return wi(be,1)}function mi(be,Ue){var ht=be.Ca;0>be.b&&di(be);var Kt=be.b,dr=ht*Ue>>>8,Tr=(be.I>>>Kt>dr)+0;for(Tr?(ht-=dr,be.I-=dr+1<<Kt>>>0):ht=dr+1,Kt=ht,dr=0;256<=Kt;)dr+=8,Kt>>=8;return Kt=7^dr+Ds[Kt],be.b-=Kt,be.Ca=(ht<<Kt)-1,Tr}function Wi(be,Ue,ht){be[Ue+0]=ht>>24&255,be[Ue+1]=ht>>16&255,be[Ue+2]=ht>>8&255,be[Ue+3]=ht>>0&255}function na(be,Ue){return be[Ue+0]<<0|be[Ue+1]<<8}function ea(be,Ue){return na(be,Ue)|be[Ue+2]<<16}function Fa(be,Ue){return na(be,Ue)|na(be,Ue+2)<<16}function pi(be,Ue){var ht=1<<Ue;return Ce(be!=null),Ce(0<Ue),be.X=We(ht),be.X==null?0:(be.Mb=32-Ue,be.Xa=Ue,1)}function ln(be,Ue){Ce(be!=null),Ce(Ue!=null),Ce(be.Xa==Ue.Xa),Fe(Ue.X,0,be.X,0,1<<Ue.Xa)}function Li(){this.X=[],this.Xa=this.Mb=0}function Zi(be,Ue,ht,Kt){Ce(ht!=null),Ce(Kt!=null);var dr=ht[0],Tr=Kt[0];return dr==0&&(dr=(be*Tr+Ue/2)/Ue),Tr==0&&(Tr=(Ue*dr+be/2)/be),0>=dr||0>=Tr?0:(ht[0]=dr,Kt[0]=Tr,1)}function Fi(be,Ue){return be+(1<<Ue)-1>>>Ue}function ia(be,Ue){return((4278255360&be)+(4278255360&Ue)>>>0&4278255360)+((16711935&be)+(16711935&Ue)>>>0&16711935)>>>0}function Gt(be,Ue){Pn[Ue]=function(ht,Kt,dr,Tr,De,te,Se){var He;for(He=0;He<De;++He){var at=Pn[be](te[Se+He-1],dr,Tr+He);te[Se+He]=ia(ht[Kt+He],at)}}}function Xr(){this.ud=this.hd=this.jd=0}function rn(be,Ue){return((4278124286&(be^Ue))>>>1)+(be&Ue)>>>0}function fn(be){return 0<=be&&256>be?be:0>be?0:255<be?255:void 0}function Xe(be,Ue){return fn(be+(be-Ue+.5>>1))}function _t(be,Ue,ht){return Math.abs(Ue-ht)-Math.abs(be-ht)}function lr(be,Ue,ht,Kt,dr,Tr,De){for(Kt=Tr[De-1],ht=0;ht<dr;++ht)Tr[De+ht]=Kt=ia(be[Ue+ht],Kt)}function rr(be,Ue,ht,Kt,dr){var Tr;for(Tr=0;Tr<ht;++Tr){var De=be[Ue+Tr],te=De>>8&255,Se=16711935&(Se=(Se=16711935&De)+((te<<16)+te));Kt[dr+Tr]=(4278255360&De)+Se>>>0}}function Or(be,Ue){Ue.jd=be>>0&255,Ue.hd=be>>8&255,Ue.ud=be>>16&255}function Mr(be,Ue,ht,Kt,dr,Tr){var De;for(De=0;De<Kt;++De){var te=Ue[ht+De],Se=te>>>8,He=te,at=255&(at=(at=te>>>16)+((be.jd<<24>>24)*(Se<<24>>24)>>>5));He=255&(He=(He=He+((be.hd<<24>>24)*(Se<<24>>24)>>>5))+((be.ud<<24>>24)*(at<<24>>24)>>>5)),dr[Tr+De]=(4278255360&te)+(at<<16)+He}}function Wr(be,Ue,ht,Kt,dr){Pn[Ue]=function(Tr,De,te,Se,He,at,Et,It,Nt){for(Se=Et;Se<It;++Se)for(Et=0;Et<Nt;++Et)He[at++]=dr(te[Kt(Tr[De++])])},Pn[be]=function(Tr,De,te,Se,He,at,Et){var It=8>>Tr.b,Nt=Tr.Ea,vr=Tr.K[0],Ir=Tr.w;if(8>It)for(Tr=(1<<Tr.b)-1,Ir=(1<<It)-1;De<te;++De){var mr,cr=0;for(mr=0;mr<Nt;++mr)mr&Tr||(cr=Kt(Se[He++])),at[Et++]=dr(vr[cr&Ir]),cr>>=It}else Pn["VP8LMapColor"+ht](Se,He,vr,Ir,at,Et,De,te,Nt)}}function nn(be,Ue,ht,Kt,dr){for(ht=Ue+ht;Ue<ht;){var Tr=be[Ue++];Kt[dr++]=Tr>>16&255,Kt[dr++]=Tr>>8&255,Kt[dr++]=Tr>>0&255}}function wn(be,Ue,ht,Kt,dr){for(ht=Ue+ht;Ue<ht;){var Tr=be[Ue++];Kt[dr++]=Tr>>16&255,Kt[dr++]=Tr>>8&255,Kt[dr++]=Tr>>0&255,Kt[dr++]=Tr>>24&255}}function On(be,Ue,ht,Kt,dr){for(ht=Ue+ht;Ue<ht;){var Tr=(De=be[Ue++])>>16&240|De>>12&15,De=De>>0&240|De>>28&15;Kt[dr++]=Tr,Kt[dr++]=De}}function Rn(be,Ue,ht,Kt,dr){for(ht=Ue+ht;Ue<ht;){var Tr=(De=be[Ue++])>>16&248|De>>13&7,De=De>>5&224|De>>3&31;Kt[dr++]=Tr,Kt[dr++]=De}}function Nn(be,Ue,ht,Kt,dr){for(ht=Ue+ht;Ue<ht;){var Tr=be[Ue++];Kt[dr++]=Tr>>0&255,Kt[dr++]=Tr>>8&255,Kt[dr++]=Tr>>16&255}}function yn(be,Ue,ht,Kt,dr,Tr){if(Tr==0)for(ht=Ue+ht;Ue<ht;)Wi(Kt,((Tr=be[Ue++])[0]>>24|Tr[1]>>8&65280|Tr[2]<<8&16711680|Tr[3]<<24)>>>0),dr+=32;else Fe(Kt,dr,be,Ue,ht)}function Sn(be,Ue){Pn[Ue][0]=Pn[be+"0"],Pn[Ue][1]=Pn[be+"1"],Pn[Ue][2]=Pn[be+"2"],Pn[Ue][3]=Pn[be+"3"],Pn[Ue][4]=Pn[be+"4"],Pn[Ue][5]=Pn[be+"5"],Pn[Ue][6]=Pn[be+"6"],Pn[Ue][7]=Pn[be+"7"],Pn[Ue][8]=Pn[be+"8"],Pn[Ue][9]=Pn[be+"9"],Pn[Ue][10]=Pn[be+"10"],Pn[Ue][11]=Pn[be+"11"],Pn[Ue][12]=Pn[be+"12"],Pn[Ue][13]=Pn[be+"13"],Pn[Ue][14]=Pn[be+"0"],Pn[Ue][15]=Pn[be+"0"]}function _n(be){return be==cu||be==gl||be==Sl||be==Dl}function Hn(){this.eb=[],this.size=this.A=this.fb=0}function Yn(){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 Zn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Hn,this.f.kb=new Yn,this.sd=null}function yi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function gi(){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 Di(be){return alert("todo:WebPSamplerProcessPlane"),be.T}function Ui(be,Ue){var ht=be.T,Kt=Ue.ba.f.RGBA,dr=Kt.eb,Tr=Kt.fb+be.ka*Kt.A,De=pl[Ue.ba.S],te=be.y,Se=be.O,He=be.f,at=be.N,Et=be.ea,It=be.W,Nt=Ue.cc,vr=Ue.dc,Ir=Ue.Mc,mr=Ue.Nc,cr=be.ka,Cr=be.ka+be.T,Pr=be.U,an=Pr+1>>1;for(cr==0?De(te,Se,null,null,He,at,Et,It,He,at,Et,It,dr,Tr,null,null,Pr):(De(Ue.ec,Ue.fc,te,Se,Nt,vr,Ir,mr,He,at,Et,It,dr,Tr-Kt.A,dr,Tr,Pr),++ht);cr+2<Cr;cr+=2)Nt=He,vr=at,Ir=Et,mr=It,at+=be.Rc,It+=be.Rc,Tr+=2*Kt.A,De(te,(Se+=2*be.fa)-be.fa,te,Se,Nt,vr,Ir,mr,He,at,Et,It,dr,Tr-Kt.A,dr,Tr,Pr);return Se+=be.fa,be.j+Cr<be.o?(Fe(Ue.ec,Ue.fc,te,Se,Pr),Fe(Ue.cc,Ue.dc,He,at,an),Fe(Ue.Mc,Ue.Nc,Et,It,an),ht--):1&Cr||De(te,Se,null,null,He,at,Et,It,He,at,Et,It,dr,Tr+Kt.A,null,null,Pr),ht}function Ei(be,Ue,ht){var Kt=be.F,dr=[be.J];if(Kt!=null){var Tr=be.U,De=Ue.ba.S,te=De==Nl||De==Sl;Ue=Ue.ba.f.RGBA;var Se=[0],He=be.ka;Se[0]=be.T,be.Kb&&(He==0?--Se[0]:(--He,dr[0]-=be.width),be.j+be.ka+be.T==be.o&&(Se[0]=be.o-be.j-He));var at=Ue.eb;He=Ue.fb+He*Ue.A,be=cl(Kt,dr[0],be.width,Tr,Se,at,He+(te?0:3),Ue.A),Ce(ht==Se),be&&_n(De)&&wl(at,He,te,Tr,Se,Ue.A)}return 0}function _i(be){var Ue=be.ma,ht=Ue.ba.S,Kt=11>ht,dr=ht==$l||ht==Vl||ht==Nl||ht==uu||ht==12||_n(ht);if(Ue.memory=null,Ue.Ib=null,Ue.Jb=null,Ue.Nd=null,!yo(Ue.Oa,be,dr?11:12))return 0;if(dr&&_n(ht)&&Be(),be.da)alert("todo:use_scaling");else{if(Kt){if(Ue.Ib=Di,be.Kb){if(ht=be.U+1>>1,Ue.memory=We(be.U+2*ht),Ue.memory==null)return 0;Ue.ec=Ue.memory,Ue.fc=0,Ue.cc=Ue.ec,Ue.dc=Ue.fc+be.U,Ue.Mc=Ue.cc,Ue.Nc=Ue.dc+ht,Ue.Ib=Ui,Be()}}else alert("todo:EmitYUV");dr&&(Ue.Jb=Ei,Kt&&Ae())}if(Kt&&!zu){for(be=0;256>be;++be)qu[be]=89858*(be-128)+Il>>Tl,ec[be]=-22014*(be-128)+Il,mu[be]=-45773*(be-128),Xl[be]=113618*(be-128)+Il>>Tl;for(be=Gl;be<jl;++be)Ue=76283*(be-16)+Il>>Tl,Ou[be-Gl]=Yi(Ue,255),au[be-Gl]=Yi(Ue+8>>4,15);zu=1}return 1}function Ni(be){var Ue=be.ma,ht=be.U,Kt=be.T;return Ce(!(1&be.ka)),0>=ht||0>=Kt?0:(ht=Ue.Ib(be,Ue),Ue.Jb!=null&&Ue.Jb(be,Ue,ht),Ue.Dc+=ht,1)}function jn(be){be.ma.memory=null}function Ii(be,Ue,ht,Kt){return Pi(be,8)!=47?0:(Ue[0]=Pi(be,14)+1,ht[0]=Pi(be,14)+1,Kt[0]=Pi(be,1),Pi(be,3)!=0?0:!be.h)}function Hi(be,Ue){if(4>be)return be+1;var ht=be-2>>1;return(2+(1&be)<<ht)+Pi(Ue,ht)+1}function fr(be,Ue){return 120<Ue?Ue-120:1<=(ht=((ht=tu[Ue-1])>>4)*be+(8-(15&ht)))?ht:1;var ht}function Dr(be,Ue,ht){var Kt=An(ht),dr=be[Ue+=255&Kt].g-8;return 0<dr&&(Vn(ht,ht.u+8),Kt=An(ht),Ue+=be[Ue].value,Ue+=Kt&(1<<dr)-1),Vn(ht,ht.u+be[Ue].g),be[Ue].value}function Qr(be,Ue,ht){return ht.g+=be.g,ht.value+=be.value<<Ue>>>0,Ce(8>=ht.g),be.g}function Nr(be,Ue,ht){var Kt=be.xc;return Ce((Ue=Kt==0?0:be.vc[be.md*(ht>>Kt)+(Ue>>Kt)])<be.Wb),be.Ya[Ue]}function Yt(be,Ue,ht,Kt){var dr=be.ab,Tr=be.c*Ue,De=be.C;Ue=De+Ue;var te=ht,Se=Kt;for(Kt=be.Ta,ht=be.Ua;0<dr--;){var He=be.gc[dr],at=De,Et=Ue,It=te,Nt=Se,vr=(Se=Kt,te=ht,He.Ea);switch(Ce(at<Et),Ce(Et<=He.nc),He.hc){case 2:ws(It,Nt,(Et-at)*vr,Se,te);break;case 0:var Ir=at,mr=Et,cr=Se,Cr=te,Pr=(hi=He).Ea;Ir==0&&(Es(It,Nt,null,null,1,cr,Cr),lr(It,Nt+1,0,0,Pr-1,cr,Cr+1),Nt+=Pr,Cr+=Pr,++Ir);for(var an=1<<hi.b,Kn=an-1,ni=Fi(Pr,hi.b),Oi=hi.K,hi=hi.w+(Ir>>hi.b)*ni;Ir<mr;){var va=Oi,Ki=hi,La=1;for(Wo(It,Nt,cr,Cr-Pr,1,cr,Cr);La<Pr;){var ba=(La&~Kn)+an;ba>Pr&&(ba=Pr),(0,Lo[va[Ki++]>>8&15])(It,Nt+ +La,cr,Cr+La-Pr,ba-La,cr,Cr+La),La=ba}Nt+=Pr,Cr+=Pr,++Ir&Kn||(hi+=ni)}Et!=He.nc&&Fe(Se,te-vr,Se,te+(Et-at-1)*vr,vr);break;case 1:for(vr=It,mr=Nt,Pr=(It=He.Ea)-(Cr=It&~(cr=(Nt=1<<He.b)-1)),Ir=Fi(It,He.b),an=He.K,He=He.w+(at>>He.b)*Ir;at<Et;){for(Kn=an,ni=He,Oi=new Xr,hi=mr+Cr,va=mr+It;mr<hi;)Or(Kn[ni++],Oi),ra(Oi,vr,mr,Nt,Se,te),mr+=Nt,te+=Nt;mr<va&&(Or(Kn[ni++],Oi),ra(Oi,vr,mr,Pr,Se,te),mr+=Pr,te+=Pr),++at&cr||(He+=Ir)}break;case 3:if(It==Se&&Nt==te&&0<He.b){for(mr=Se,It=vr=te+(Et-at)*vr-(Cr=(Et-at)*Fi(He.Ea,He.b)),Nt=Se,cr=te,Ir=[],Cr=(Pr=Cr)-1;0<=Cr;--Cr)Ir[Cr]=Nt[cr+Cr];for(Cr=Pr-1;0<=Cr;--Cr)mr[It+Cr]=Ir[Cr];ds(He,at,Et,Se,vr,Se,te)}else ds(He,at,Et,It,Nt,Se,te)}te=Kt,Se=ht}Se!=ht&&Fe(Kt,ht,te,Se,Tr)}function xr(be,Ue){var ht=be.V,Kt=be.Ba+be.c*be.C,dr=Ue-be.C;if(Ce(Ue<=be.l.o),Ce(16>=dr),0<dr){var Tr=be.l,De=be.Ta,te=be.Ua,Se=Tr.width;if(Yt(be,dr,ht,Kt),dr=te=[te],Ce((ht=be.C)<(Kt=Ue)),Ce(Tr.v<Tr.va),Kt>Tr.o&&(Kt=Tr.o),ht<Tr.j){var He=Tr.j-ht;ht=Tr.j,dr[0]+=He*Se}if(ht>=Kt?ht=0:(dr[0]+=4*Tr.v,Tr.ka=ht-Tr.j,Tr.U=Tr.va-Tr.v,Tr.T=Kt-ht,ht=1),ht){if(te=te[0],11>(ht=be.ca).S){var at=ht.f.RGBA,Et=(Kt=ht.S,dr=Tr.U,Tr=Tr.T,He=at.eb,at.A),It=Tr;for(at=at.fb+be.Ma*at.A;0<It--;){var Nt=De,vr=te,Ir=dr,mr=He,cr=at;switch(Kt){case zl:tl(Nt,vr,Ir,mr,cr);break;case $l:Ks(Nt,vr,Ir,mr,cr);break;case cu:Ks(Nt,vr,Ir,mr,cr),wl(mr,cr,0,Ir,1,0);break;case lu:ks(Nt,vr,Ir,mr,cr);break;case Vl:yn(Nt,vr,Ir,mr,cr,1);break;case gl:yn(Nt,vr,Ir,mr,cr,1),wl(mr,cr,0,Ir,1,0);break;case Nl:yn(Nt,vr,Ir,mr,cr,0);break;case Sl:yn(Nt,vr,Ir,mr,cr,0),wl(mr,cr,1,Ir,1,0);break;case uu:Ws(Nt,vr,Ir,mr,cr);break;case Dl:Ws(Nt,vr,Ir,mr,cr),Zl(mr,cr,Ir,1,0);break;case ql:hs(Nt,vr,Ir,mr,cr);break;default:Ce(0)}te+=Se,at+=Et}be.Ma+=Tr}else alert("todo:EmitRescaledRowsYUVA");Ce(be.Ma<=ht.height)}}be.C=Ue,Ce(be.C<=be.i)}function tr(be){var Ue;if(0<be.ua)return 0;for(Ue=0;Ue<be.Wb;++Ue){var ht=be.Ya[Ue].G,Kt=be.Ya[Ue].H;if(0<ht[1][Kt[1]+0].g||0<ht[2][Kt[2]+0].g||0<ht[3][Kt[3]+0].g)return 0}return 1}function jr(be,Ue,ht,Kt,dr,Tr){if(be.Z!=0){var De=be.qd,te=be.rd;for(Ce(Cl[be.Z]!=null);Ue<ht;++Ue)Cl[be.Z](De,te,Kt,dr,Kt,dr,Tr),De=Kt,te=dr,dr+=Tr;be.qd=De,be.rd=te}}function Ur(be,Ue){var ht=be.l.ma,Kt=ht.Z==0||ht.Z==1?be.l.j:be.C;if(Kt=be.C<Kt?Kt:be.C,Ce(Ue<=be.l.o),Ue>Kt){var dr=be.l.width,Tr=ht.ca,De=ht.tb+dr*Kt,te=be.V,Se=be.Ba+be.c*Kt,He=be.gc;Ce(be.ab==1),Ce(He[0].hc==3),bl(He[0],Kt,Ue,te,Se,Tr,De),jr(ht,Kt,Ue,Tr,De,dr)}be.C=be.Ma=Ue}function dn(be,Ue,ht,Kt,dr,Tr,De){var te=be.$/Kt,Se=be.$%Kt,He=be.m,at=be.s,Et=ht+be.$,It=Et;dr=ht+Kt*dr;var Nt=ht+Kt*Tr,vr=280+at.ua,Ir=be.Pb?te:16777216,mr=0<at.ua?at.Wa:null,cr=at.wc,Cr=Et<Nt?Nr(at,Se,te):null;Ce(be.C<Tr),Ce(Nt<=dr);var Pr=!1;e:for(;;){for(;Pr||Et<Nt;){var an=0;if(te>=Ir){var Kn=Et-ht;Ce((Ir=be).Pb),Ir.wd=Ir.m,Ir.xd=Kn,0<Ir.s.ua&&ln(Ir.s.Wa,Ir.s.vb),Ir=te+du}if(Se&cr||(Cr=Nr(at,Se,te)),Ce(Cr!=null),Cr.Qb&&(Ue[Et]=Cr.qb,Pr=!0),!Pr)if(ti(He),Cr.jc){an=He,Kn=Ue;var ni=Et,Oi=Cr.pd[An(an)&So-1];Ce(Cr.jc),256>Oi.g?(Vn(an,an.u+Oi.g),Kn[ni]=Oi.value,an=0):(Vn(an,an.u+Oi.g-256),Ce(256<=Oi.value),an=Oi.value),an==0&&(Pr=!0)}else an=Dr(Cr.G[0],Cr.H[0],He);if(He.h)break;if(Pr||256>an){if(!Pr)if(Cr.nd)Ue[Et]=(Cr.qb|an<<8)>>>0;else{if(ti(He),Pr=Dr(Cr.G[1],Cr.H[1],He),ti(He),Kn=Dr(Cr.G[2],Cr.H[2],He),ni=Dr(Cr.G[3],Cr.H[3],He),He.h)break;Ue[Et]=(ni<<24|Pr<<16|an<<8|Kn)>>>0}if(Pr=!1,++Et,++Se>=Kt&&(Se=0,++te,De!=null&&te<=Tr&&!(te%16)&&De(be,te),mr!=null))for(;It<Et;)an=Ue[It++],mr.X[(506832829*an&4294967295)>>>mr.Mb]=an}else if(280>an){if(an=Hi(an-256,He),Kn=Dr(Cr.G[4],Cr.H[4],He),ti(He),Kn=fr(Kt,Kn=Hi(Kn,He)),He.h)break;if(Et-ht<Kn||dr-Et<an)break e;for(ni=0;ni<an;++ni)Ue[Et+ni]=Ue[Et+ni-Kn];for(Et+=an,Se+=an;Se>=Kt;)Se-=Kt,++te,De!=null&&te<=Tr&&!(te%16)&&De(be,te);if(Ce(Et<=dr),Se&cr&&(Cr=Nr(at,Se,te)),mr!=null)for(;It<Et;)an=Ue[It++],mr.X[(506832829*an&4294967295)>>>mr.Mb]=an}else{if(!(an<vr))break e;for(Pr=an-280,Ce(mr!=null);It<Et;)an=Ue[It++],mr.X[(506832829*an&4294967295)>>>mr.Mb]=an;an=Et,Ce(!(Pr>>>(Kn=mr).Xa)),Ue[an]=Kn.X[Pr],Pr=!0}Pr||Ce(He.h==Un(He))}if(be.Pb&&He.h&&Et<dr)Ce(be.m.h),be.a=5,be.m=be.wd,be.$=be.xd,0<be.s.ua&&ln(be.s.vb,be.s.Wa);else{if(He.h)break e;De!=null&&De(be,te>Tr?Tr:te),be.a=0,be.$=Et-ht}return 1}return be.a=3,0}function sn(be){Ce(be!=null),be.vc=null,be.yc=null,be.Ya=null;var Ue=be.Wa;Ue!=null&&(Ue.X=null),be.vb=null,Ce(be!=null)}function bn(){var be=new Js;return be==null?null:(be.a=0,be.xb=iu,Sn("Predictor","VP8LPredictors"),Sn("Predictor","VP8LPredictors_C"),Sn("PredictorAdd","VP8LPredictorsAdd"),Sn("PredictorAdd","VP8LPredictorsAdd_C"),ws=rr,ra=Mr,tl=nn,Ks=wn,Ws=On,hs=Rn,ks=Nn,Pn.VP8LMapColor32b=yl,Pn.VP8LMapColor8b=Cs,be)}function Bn(be,Ue,ht,Kt,dr){var Tr=1,De=[be],te=[Ue],Se=Kt.m,He=Kt.s,at=null,Et=0;e:for(;;){if(ht)for(;Tr&&Pi(Se,1);){var It=De,Nt=te,vr=Kt,Ir=1,mr=vr.m,cr=vr.gc[vr.ab],Cr=Pi(mr,2);if(vr.Oc&1<<Cr)Tr=0;else{switch(vr.Oc|=1<<Cr,cr.hc=Cr,cr.Ea=It[0],cr.nc=Nt[0],cr.K=[null],++vr.ab,Ce(4>=vr.ab),Cr){case 0:case 1:cr.b=Pi(mr,3)+2,Ir=Bn(Fi(cr.Ea,cr.b),Fi(cr.nc,cr.b),0,vr,cr.K),cr.K=cr.K[0];break;case 3:var Pr,an=Pi(mr,8)+1,Kn=16<an?0:4<an?1:2<an?2:3;if(It[0]=Fi(cr.Ea,Kn),cr.b=Kn,Pr=Ir=Bn(an,1,0,vr,cr.K)){var ni,Oi=an,hi=cr,va=1<<(8>>hi.b),Ki=We(va);if(Ki==null)Pr=0;else{var La=hi.K[0],ba=hi.w;for(Ki[0]=hi.K[0][0],ni=1;ni<1*Oi;++ni)Ki[ni]=ia(La[ba+ni],Ki[ni-1]);for(;ni<4*va;++ni)Ki[ni]=0;hi.K[0]=null,hi.K[0]=Ki,Pr=1}}Ir=Pr;break;case 2:break;default:Ce(0)}Tr=Ir}}if(De=De[0],te=te[0],Tr&&Pi(Se,1)&&!(Tr=1<=(Et=Pi(Se,4))&&11>=Et)){Kt.a=3;break e}var Ia;if(Ia=Tr)t:{var lo,P,W,q=Kt,re=De,le=te,Pe=Et,ft=ht,Tt=q.m,Qt=q.s,$t=[null],en=1,pn=0,Mn=ju[Pe];r:for(;;){if(ft&&Pi(Tt,1)){var Fn=Pi(Tt,3)+2,vi=Fi(re,Fn),ji=Fi(le,Fn),Ji=vi*ji;if(!Bn(vi,ji,0,q,$t))break r;for($t=$t[0],Qt.xc=Fn,lo=0;lo<Ji;++lo){var Qi=$t[lo]>>8&65535;$t[lo]=Qi,Qi>=en&&(en=Qi+1)}}if(Tt.h)break r;for(P=0;5>P;++P){var Gi=Uu[P];!P&&0<Pe&&(Gi+=1<<Pe),pn<Gi&&(pn=Gi)}var ga=Ze(en*Mn,Cn),Ea=en,ro=Ze(Ea,li);if(ro==null)var Va=null;else Ce(65536>=Ea),Va=ro;var xo=We(pn);if(Va==null||xo==null||ga==null){q.a=1;break r}var Po=ga;for(lo=W=0;lo<en;++lo){var is=Va[lo],qo=is.G,Fs=is.H,sl=0,Ss=1,ll=0;for(P=0;5>P;++P){Gi=Uu[P],qo[P]=Po,Fs[P]=W,!P&&0<Pe&&(Gi+=1<<Pe);i:{var Us,Rs=Gi,Is=q,ps=xo,nl=Po,vu=W,Al=0,_s=Is.m,ml=Pi(_s,1);if(Ve(ps,0,0,Rs),ml){var Gs=Pi(_s,1)+1,tc=Pi(_s,1),wa=Pi(_s,tc==0?1:8);ps[wa]=1,Gs==2&&(ps[wa=Pi(_s,8)]=1);var hl=1}else{var _l=We(19),ls=Pi(_s,4)+4;if(19<ls){Is.a=3;var Hl=0;break i}for(Us=0;Us<ls;++Us)_l[vl[Us]]=Pi(_s,3);var $o=void 0,As=void 0,rc=Is,xc=_l,Nu=Rs,wc=ps,Vu=0,Au=rc.m,Sc=8,fc=Ze(128,Cn);n:for(;zr(fc,0,7,xc,19);){if(Pi(Au,1)){var Ec=2+2*Pi(Au,3);if(($o=2+Pi(Au,Ec))>Nu)break n}else $o=Nu;for(As=0;As<Nu&&$o--;){ti(Au);var pc=fc[0+(127&An(Au))];Vn(Au,Au.u+pc.g);var Du=pc.value;if(16>Du)wc[As++]=Du,Du!=0&&(Sc=Du);else{var Cc=Du==16,mc=Du-16,Tc=xl[mc],gc=Pi(Au,eu[mc])+Tc;if(As+gc>Nu)break n;for(var Ic=Cc?Sc:0;0<gc--;)wc[As++]=Ic}}Vu=1;break n}Vu||(rc.a=3),hl=Vu}(hl=hl&&!_s.h)&&(Al=zr(nl,vu,8,ps,Rs)),hl&&Al!=0?Hl=Al:(Is.a=3,Hl=0)}if(Hl==0)break r;if(Ss&&dl[P]==1&&(Ss=Po[W].g==0),sl+=Po[W].g,W+=Hl,3>=P){var nc,vc=xo[0];for(nc=1;nc<Gi;++nc)xo[nc]>vc&&(vc=xo[nc]);ll+=vc}}if(is.nd=Ss,is.Qb=0,Ss&&(is.qb=(qo[3][Fs[3]+0].value<<24|qo[1][Fs[1]+0].value<<16|qo[2][Fs[2]+0].value)>>>0,sl==0&&256>qo[0][Fs[0]+0].value&&(is.Qb=1,is.qb+=qo[0][Fs[0]+0].value<<8)),is.jc=!is.Qb&&6>ll,is.jc){var Ru,el=is;for(Ru=0;Ru<So;++Ru){var su=Ru,Kl=el.pd[su],uc=el.G[0][el.H[0]+su];256<=uc.value?(Kl.g=uc.g+256,Kl.value=uc.value):(Kl.g=0,Kl.value=0,su>>=Qr(uc,8,Kl),su>>=Qr(el.G[1][el.H[1]+su],16,Kl),su>>=Qr(el.G[2][el.H[2]+su],0,Kl),Qr(el.G[3][el.H[3]+su],24,Kl))}}}Qt.vc=$t,Qt.Wb=en,Qt.Ya=Va,Qt.yc=ga,Ia=1;break t}Ia=0}if(!(Tr=Ia)){Kt.a=3;break e}if(0<Et){if(He.ua=1<<Et,!pi(He.Wa,Et)){Kt.a=1,Tr=0;break e}}else He.ua=0;var Ac=Kt,cc=De,Gu=te,Xu=Ac.s,yc=Xu.xc;if(Ac.c=cc,Ac.i=Gu,Xu.md=Fi(cc,yc),Xu.wc=yc==0?-1:(1<<yc)-1,ht){Kt.xb=nu;break e}if((at=We(De*te))==null){Kt.a=1,Tr=0;break e}Tr=(Tr=dn(Kt,at,0,De,te,te,null))&&!Se.h;break e}return Tr?(dr!=null?dr[0]=at:(Ce(at==null),Ce(ht)),Kt.$=0,ht||sn(He)):sn(He),Tr}function Xn(be,Ue){var ht=be.c*be.i,Kt=ht+Ue+16*Ue;return Ce(be.c<=Ue),be.V=We(Kt),be.V==null?(be.Ta=null,be.Ua=0,be.a=1,0):(be.Ta=be.V,be.Ua=be.Ba+ht+Ue,1)}function $n(be,Ue){var ht=be.C,Kt=Ue-ht,dr=be.V,Tr=be.Ba+be.c*ht;for(Ce(Ue<=be.l.o);0<Kt;){var De=16<Kt?16:Kt,te=be.l.ma,Se=be.l.width,He=Se*De,at=te.ca,Et=te.tb+Se*ht,It=be.Ta,Nt=be.Ua;Yt(be,De,dr,Tr),Ol(It,Nt,at,Et,He),jr(te,ht,ht+De,at,Et,Se),Kt-=De,dr+=De*be.c,ht+=De}Ce(ht==Ue),be.C=be.Ma=Ue}function Ti(){this.ub=this.yd=this.td=this.Rb=0}function Xi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ua(){this.Fb=this.Bb=this.Cb=0,this.Zb=We(4),this.Lb=We(4)}function da(){this.Yb=function(){var be=[];return function Ue(ht,Kt,dr){for(var Tr=dr[Kt],De=0;De<Tr&&(ht.push(dr.length>Kt+1?[]:0),!(dr.length<Kt+1));De++)Ue(ht[De],Kt+1,dr)}(be,0,[3,11]),be}()}function sa(){this.jb=We(3),this.Wc=yt([4,8],da),this.Xc=yt([4,17],da)}function ca(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new We(4),this.od=new We(4)}function zi(){this.ld=this.La=this.dd=this.tc=0}function Ri(){this.Na=this.la=0}function ta(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function $i(){this.ad=We(384),this.Za=0,this.Ob=We(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ca(){this.uc=this.M=this.Nb=0,this.wa=Array(new zi),this.Y=0,this.ya=Array(new $i),this.aa=0,this.l=new Pa}function Ma(){this.y=We(16),this.f=We(8),this.ea=We(8)}function qi(){this.cb=this.a=0,this.sc="",this.m=new mn,this.Od=new Ti,this.Kc=new Xi,this.ed=new ca,this.Qa=new ua,this.Ic=this.$c=this.Aa=0,this.D=new Ca,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Ze(8,mn),this.ia=0,this.pb=Ze(4,ta),this.Pa=new sa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ma),this.Hd=0,this.rb=Array(new Ri),this.sb=0,this.wa=Array(new zi),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 $i),this.L=this.aa=0,this.gd=yt([4,2],zi),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 Yi(be,Ue){return 0>be?0:be>Ue?Ue:be}function Pa(){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 ya(){var be=new qi;return be!=null&&(be.a=0,be.sc="OK",be.cb=0,be.Xb=0,Fl||(Fl=ka)),be}function Ci(be,Ue,ht){return be.a==0&&(be.a=Ue,be.sc=ht,be.cb=0),0}function la(be,Ue,ht){return 3<=ht&&be[Ue+0]==157&&be[Ue+1]==1&&be[Ue+2]==42}function Ha(be,Ue){if(be==null)return 0;if(be.a=0,be.sc="OK",Ue==null)return Ci(be,2,"null VP8Io passed to VP8GetHeaders()");var ht=Ue.data,Kt=Ue.w,dr=Ue.ha;if(4>dr)return Ci(be,7,"Truncated header.");var Tr=ht[Kt+0]|ht[Kt+1]<<8|ht[Kt+2]<<16,De=be.Od;if(De.Rb=!(1&Tr),De.td=Tr>>1&7,De.yd=Tr>>4&1,De.ub=Tr>>5,3<De.td)return Ci(be,3,"Incorrect keyframe parameters.");if(!De.yd)return Ci(be,4,"Frame not displayable.");Kt+=3,dr-=3;var te=be.Kc;if(De.Rb){if(7>dr)return Ci(be,7,"cannot parse picture header");if(!la(ht,Kt,dr))return Ci(be,3,"Bad code word");te.c=16383&(ht[Kt+4]<<8|ht[Kt+3]),te.Td=ht[Kt+4]>>6,te.i=16383&(ht[Kt+6]<<8|ht[Kt+5]),te.Ud=ht[Kt+6]>>6,Kt+=7,dr-=7,be.za=te.c+15>>4,be.Ub=te.i+15>>4,Ue.width=te.c,Ue.height=te.i,Ue.Da=0,Ue.j=0,Ue.v=0,Ue.va=Ue.width,Ue.o=Ue.height,Ue.da=0,Ue.ib=Ue.width,Ue.hb=Ue.height,Ue.U=Ue.width,Ue.T=Ue.height,Ve((Tr=be.Pa).jb,0,255,Tr.jb.length),Ce((Tr=be.Qa)!=null),Tr.Cb=0,Tr.Bb=0,Tr.Fb=1,Ve(Tr.Zb,0,0,Tr.Zb.length),Ve(Tr.Lb,0,0,Tr.Lb)}if(De.ub>dr)return Ci(be,7,"bad partition length");ri(Tr=be.m,ht,Kt,De.ub),Kt+=De.ub,dr-=De.ub,De.Rb&&(te.Ld=fi(Tr),te.Kd=fi(Tr)),te=be.Qa;var Se,He=be.Pa;if(Ce(Tr!=null),Ce(te!=null),te.Cb=fi(Tr),te.Cb){if(te.Bb=fi(Tr),fi(Tr)){for(te.Fb=fi(Tr),Se=0;4>Se;++Se)te.Zb[Se]=fi(Tr)?Gn(Tr,7):0;for(Se=0;4>Se;++Se)te.Lb[Se]=fi(Tr)?Gn(Tr,6):0}if(te.Bb)for(Se=0;3>Se;++Se)He.jb[Se]=fi(Tr)?wi(Tr,8):255}else te.Bb=0;if(Tr.Ka)return Ci(be,3,"cannot parse segment header");if((te=be.ed).zd=fi(Tr),te.Tb=wi(Tr,6),te.wb=wi(Tr,3),te.Pc=fi(Tr),te.Pc&&fi(Tr)){for(He=0;4>He;++He)fi(Tr)&&(te.vd[He]=Gn(Tr,6));for(He=0;4>He;++He)fi(Tr)&&(te.od[He]=Gn(Tr,6))}if(be.L=te.Tb==0?0:te.zd?1:2,Tr.Ka)return Ci(be,3,"cannot parse filter header");var at=dr;if(dr=Se=Kt,Kt=Se+at,te=at,be.Xb=(1<<wi(be.m,2))-1,at<3*(He=be.Xb))ht=7;else{for(Se+=3*He,te-=3*He,at=0;at<He;++at){var Et=ht[dr+0]|ht[dr+1]<<8|ht[dr+2]<<16;Et>te&&(Et=te),ri(be.Jc[+at],ht,Se,Et),Se+=Et,te-=Et,dr+=3}ri(be.Jc[+He],ht,Se,te),ht=Se<Kt?0:5}if(ht!=0)return Ci(be,ht,"cannot parse partitions");for(ht=wi(Se=be.m,7),dr=fi(Se)?Gn(Se,4):0,Kt=fi(Se)?Gn(Se,4):0,te=fi(Se)?Gn(Se,4):0,He=fi(Se)?Gn(Se,4):0,Se=fi(Se)?Gn(Se,4):0,at=be.Qa,Et=0;4>Et;++Et){if(at.Cb){var It=at.Zb[Et];at.Fb||(It+=ht)}else{if(0<Et){be.pb[Et]=be.pb[0];continue}It=ht}var Nt=be.pb[Et];Nt.Sc[0]=Rl[Yi(It+dr,127)],Nt.Sc[1]=Ml[Yi(It+0,127)],Nt.Eb[0]=2*Rl[Yi(It+Kt,127)],Nt.Eb[1]=101581*Ml[Yi(It+te,127)]>>16,8>Nt.Eb[1]&&(Nt.Eb[1]=8),Nt.Qc[0]=Rl[Yi(It+He,117)],Nt.Qc[1]=Ml[Yi(It+Se,127)],Nt.lc=It+Se}if(!De.Rb)return Ci(be,4,"Not a key frame.");for(fi(Tr),De=be.Pa,ht=0;4>ht;++ht){for(dr=0;8>dr;++dr)for(Kt=0;3>Kt;++Kt)for(te=0;11>te;++te)He=mi(Tr,ru[ht][dr][Kt][te])?wi(Tr,8):Ul[ht][dr][Kt][te],De.Wc[ht][dr].Yb[Kt][te]=He;for(dr=0;17>dr;++dr)De.Xc[ht][dr]=De.Wc[ht][Eu[dr]]}return be.kc=fi(Tr),be.kc&&(be.Bd=wi(Tr,8)),be.cb=1}function ka(be,Ue,ht,Kt,dr,Tr,De){var te=Ue[dr].Yb[ht];for(ht=0;16>dr;++dr){if(!mi(be,te[ht+0]))return dr;for(;!mi(be,te[ht+1]);)if(te=Ue[++dr].Yb[0],ht=0,dr==16)return 16;var Se=Ue[dr+1].Yb;if(mi(be,te[ht+2])){var He=be,at=0;if(mi(He,(It=te)[(Et=ht)+3]))if(mi(He,It[Et+6])){for(te=0,Et=2*(at=mi(He,It[Et+8]))+(It=mi(He,It[Et+9+at])),at=0,It=Su[Et];It[te];++te)at+=at+mi(He,It[te]);at+=3+(8<<Et)}else mi(He,It[Et+7])?(at=7+2*mi(He,165),at+=mi(He,145)):at=5+mi(He,159);else at=mi(He,It[Et+4])?3+mi(He,It[Et+5]):2;te=Se[2]}else at=1,te=Se[1];Se=De+xu[dr],0>(He=be).b&&di(He);var Et,It=He.b,Nt=(Et=He.Ca>>1)-(He.I>>It)>>31;--He.b,He.Ca+=Nt,He.Ca|=1,He.I-=(Et+1&Nt)<<It,Tr[Se]=((at^Nt)-Nt)*Kt[(0<dr)+0]}return 16}function Aa(be){var Ue=be.rb[be.sb-1];Ue.la=0,Ue.Na=0,Ve(be.zc,0,0,be.zc.length),be.ja=0}function Sa(be,Ue){if(be==null)return 0;if(Ue==null)return Ci(be,2,"NULL VP8Io parameter in VP8Decode().");if(!be.cb&&!Ha(be,Ue))return 0;if(Ce(be.cb),Ue.ac==null||Ue.ac(Ue)){Ue.ob&&(be.L=0);var ht=Yl[be.L];if(be.L==2?(be.yb=0,be.zb=0):(be.yb=Ue.v-ht>>4,be.zb=Ue.j-ht>>4,0>be.yb&&(be.yb=0),0>be.zb&&(be.zb=0)),be.Va=Ue.o+15+ht>>4,be.Hb=Ue.va+15+ht>>4,be.Hb>be.za&&(be.Hb=be.za),be.Va>be.Ub&&(be.Va=be.Ub),0<be.L){var Kt=be.ed;for(ht=0;4>ht;++ht){var dr;if(be.Qa.Cb){var Tr=be.Qa.Lb[ht];be.Qa.Fb||(Tr+=Kt.Tb)}else Tr=Kt.Tb;for(dr=0;1>=dr;++dr){var De=be.gd[ht][dr],te=Tr;if(Kt.Pc&&(te+=Kt.vd[0],dr&&(te+=Kt.od[0])),0<(te=0>te?0:63<te?63:te)){var Se=te;0<Kt.wb&&(Se=4<Kt.wb?Se>>2:Se>>1)>9-Kt.wb&&(Se=9-Kt.wb),1>Se&&(Se=1),De.dd=Se,De.tc=2*te+Se,De.ld=40<=te?2:15<=te?1:0}else De.tc=0;De.La=dr}}}ht=0}else Ci(be,6,"Frame setup failed"),ht=be.a;if(ht=ht==0){if(ht){be.$c=0,0<be.Aa||(be.Ic=Ql);e:{ht=be.Ic,Kt=4*(Se=be.za);var He=32*Se,at=Se+1,Et=0<be.L?Se*(0<be.Aa?2:1):0,It=(be.Aa==2?2:1)*Se;if((De=Kt+832+(dr=3*(16*ht+Yl[be.L])/2*He)+(Tr=be.Fa!=null&&0<be.Fa.length?be.Kc.c*be.Kc.i:0))!=De)ht=0;else{if(De>be.Vb){if(be.Vb=0,be.Ec=We(De),be.Fc=0,be.Ec==null){ht=Ci(be,1,"no memory during frame initialization.");break e}be.Vb=De}De=be.Ec,te=be.Fc,be.Ac=De,be.Bc=te,te+=Kt,be.Gd=Ze(He,Ma),be.Hd=0,be.rb=Ze(at+1,Ri),be.sb=1,be.wa=Et?Ze(Et,zi):null,be.Y=0,be.D.Nb=0,be.D.wa=be.wa,be.D.Y=be.Y,0<be.Aa&&(be.D.Y+=Se),Ce(!0),be.oc=De,be.pc=te,te+=832,be.ya=Ze(It,$i),be.aa=0,be.D.ya=be.ya,be.D.aa=be.aa,be.Aa==2&&(be.D.aa+=Se),be.R=16*Se,be.B=8*Se,Se=(He=Yl[be.L])*be.R,He=He/2*be.B,be.sa=De,be.ta=te+Se,be.qa=be.sa,be.ra=be.ta+16*ht*be.R+He,be.Ha=be.qa,be.Ia=be.ra+8*ht*be.B+He,be.$c=0,te+=dr,be.mb=Tr?De:null,be.nb=Tr?te:null,Ce(te+Tr<=be.Fc+be.Vb),Aa(be),Ve(be.Ac,be.Bc,0,Kt),ht=1}}if(ht){if(Ue.ka=0,Ue.y=be.sa,Ue.O=be.ta,Ue.f=be.qa,Ue.N=be.ra,Ue.ea=be.Ha,Ue.Vd=be.Ia,Ue.fa=be.R,Ue.Rc=be.B,Ue.F=null,Ue.J=0,!Fu){for(ht=-255;255>=ht;++ht)Bl[255+ht]=0>ht?-ht:ht;for(ht=-1020;1020>=ht;++ht)ku[1020+ht]=-128>ht?-128:127<ht?127:ht;for(ht=-112;112>=ht;++ht)wu[112+ht]=-16>ht?-16:15<ht?15:ht;for(ht=-255;510>=ht;++ht)Bu[255+ht]=0>ht?0:255<ht?255:ht;Fu=1}al=Ra,Bs=ho,zs=Ua,Ja=Na,ma=$a,Xs=aa,Ba=Qs,ao=Ns,Zo=Ao,Vs=Jo,vs=js,Ts=so,No=Uo,To=bs,ts=vo,Eo=es,Ys=Ko,Wl=Ro,rl[0]=jo,rl[1]=bo,rl[2]=pa,rl[3]=Do,rl[4]=Vo,rl[5]=wo,rl[6]=Yo,rl[7]=Da,rl[8]=cs,rl[9]=Fo,fs[0]=qa,fs[1]=Co,fs[2]=fo,fs[3]=po,fs[4]=Oa,fs[5]=oo,fs[6]=go,El[0]=Qo,El[1]=no,El[2]=mo,El[3]=_o,El[4]=Os,El[5]=il,El[6]=as,ht=1}else ht=0}ht&&(ht=function(Nt,vr){for(Nt.M=0;Nt.M<Nt.Va;++Nt.M){var Ir,mr=Nt.Jc[Nt.M&Nt.Xb],cr=Nt.m,Cr=Nt;for(Ir=0;Ir<Cr.za;++Ir){var Pr=cr,an=Cr,Kn=an.Ac,ni=an.Bc+4*Ir,Oi=an.zc,hi=an.ya[an.aa+Ir];if(an.Qa.Bb?hi.$b=mi(Pr,an.Pa.jb[0])?2+mi(Pr,an.Pa.jb[2]):mi(Pr,an.Pa.jb[1]):hi.$b=0,an.kc&&(hi.Ad=mi(Pr,an.Bd)),hi.Za=!mi(Pr,145)+0,hi.Za){var va=hi.Ob,Ki=0;for(an=0;4>an;++an){var La,ba=Oi[0+an];for(La=0;4>La;++La){ba=fu[Kn[ni+La]][ba];for(var Ia=hu[mi(Pr,ba[0])];0<Ia;)Ia=hu[2*Ia+mi(Pr,ba[Ia])];ba=-Ia,Kn[ni+La]=ba}Fe(va,Ki,Kn,ni,4),Ki+=4,Oi[0+an]=ba}}else ba=mi(Pr,156)?mi(Pr,128)?1:3:mi(Pr,163)?2:0,hi.Ob[0]=ba,Ve(Kn,ni,ba,4),Ve(Oi,0,ba,4);hi.Dd=mi(Pr,142)?mi(Pr,114)?mi(Pr,183)?1:3:2:0}if(Cr.m.Ka)return Ci(Nt,7,"Premature end-of-partition0 encountered.");for(;Nt.ja<Nt.za;++Nt.ja){if(Cr=mr,Pr=(cr=Nt).rb[cr.sb-1],Kn=cr.rb[cr.sb+cr.ja],Ir=cr.ya[cr.aa+cr.ja],ni=cr.kc?Ir.Ad:0)Pr.la=Kn.la=0,Ir.Za||(Pr.Na=Kn.Na=0),Ir.Hc=0,Ir.Gc=0,Ir.ia=0;else{var lo,P;if(Pr=Kn,Kn=Cr,ni=cr.Pa.Xc,Oi=cr.ya[cr.aa+cr.ja],hi=cr.pb[Oi.$b],an=Oi.ad,va=0,Ki=cr.rb[cr.sb-1],ba=La=0,Ve(an,va,0,384),Oi.Za)var W=0,q=ni[3];else{Ia=We(16);var re=Pr.Na+Ki.Na;if(re=Fl(Kn,ni[1],re,hi.Eb,0,Ia,0),Pr.Na=Ki.Na=(0<re)+0,1<re)al(Ia,0,an,va);else{var le=Ia[0]+3>>3;for(Ia=0;256>Ia;Ia+=16)an[va+Ia]=le}W=1,q=ni[0]}var Pe=15&Pr.la,ft=15&Ki.la;for(Ia=0;4>Ia;++Ia){var Tt=1&ft;for(le=P=0;4>le;++le)Pe=Pe>>1|(Tt=(re=Fl(Kn,q,re=Tt+(1&Pe),hi.Sc,W,an,va))>W)<<7,P=P<<2|(3<re?3:1<re?2:an[va+0]!=0),va+=16;Pe>>=4,ft=ft>>1|Tt<<7,La=(La<<8|P)>>>0}for(q=Pe,W=ft>>4,lo=0;4>lo;lo+=2){for(P=0,Pe=Pr.la>>4+lo,ft=Ki.la>>4+lo,Ia=0;2>Ia;++Ia){for(Tt=1&ft,le=0;2>le;++le)re=Tt+(1&Pe),Pe=Pe>>1|(Tt=0<(re=Fl(Kn,ni[2],re,hi.Qc,0,an,va)))<<3,P=P<<2|(3<re?3:1<re?2:an[va+0]!=0),va+=16;Pe>>=2,ft=ft>>1|Tt<<5}ba|=P<<4*lo,q|=Pe<<4<<lo,W|=(240&ft)<<lo}Pr.la=q,Ki.la=W,Oi.Hc=La,Oi.Gc=ba,Oi.ia=43690&ba?0:hi.ia,ni=!(La|ba)}if(0<cr.L&&(cr.wa[cr.Y+cr.ja]=cr.gd[Ir.$b][Ir.Za],cr.wa[cr.Y+cr.ja].La|=!ni),Cr.Ka)return Ci(Nt,7,"Premature end-of-file encountered.")}if(Aa(Nt),cr=vr,Cr=1,Ir=(mr=Nt).D,Pr=0<mr.L&&mr.M>=mr.zb&&mr.M<=mr.Va,mr.Aa==0)e:{if(Ir.M=mr.M,Ir.uc=Pr,io(mr,Ir),Cr=1,Ir=(P=mr.D).Nb,Pr=(ba=Yl[mr.L])*mr.R,Kn=ba/2*mr.B,Ia=16*Ir*mr.R,le=8*Ir*mr.B,ni=mr.sa,Oi=mr.ta-Pr+Ia,hi=mr.qa,an=mr.ra-Kn+le,va=mr.Ha,Ki=mr.Ia-Kn+le,ft=(Pe=P.M)==0,La=Pe>=mr.Va-1,mr.Aa==2&&io(mr,P),P.uc)for(Tt=(re=mr).D.M,Ce(re.D.uc),P=re.yb;P<re.Hb;++P){W=P,q=Tt;var Qt=($t=(Gi=re).D).Nb;lo=Gi.R;var $t=$t.wa[$t.Y+W],en=Gi.sa,pn=Gi.ta+16*Qt*lo+16*W,Mn=$t.dd,Fn=$t.tc;if(Fn!=0)if(Ce(3<=Fn),Gi.L==1)0<W&&Eo(en,pn,lo,Fn+4),$t.La&&Wl(en,pn,lo,Fn),0<q&&ts(en,pn,lo,Fn+4),$t.La&&Ys(en,pn,lo,Fn);else{var vi=Gi.B,ji=Gi.qa,Ji=Gi.ra+8*Qt*vi+8*W,Qi=Gi.Ha,Gi=Gi.Ia+8*Qt*vi+8*W;Qt=$t.ld,0<W&&(ao(en,pn,lo,Fn+4,Mn,Qt),Vs(ji,Ji,Qi,Gi,vi,Fn+4,Mn,Qt)),$t.La&&(Ts(en,pn,lo,Fn,Mn,Qt),To(ji,Ji,Qi,Gi,vi,Fn,Mn,Qt)),0<q&&(Ba(en,pn,lo,Fn+4,Mn,Qt),Zo(ji,Ji,Qi,Gi,vi,Fn+4,Mn,Qt)),$t.La&&(vs(en,pn,lo,Fn,Mn,Qt),No(ji,Ji,Qi,Gi,vi,Fn,Mn,Qt))}}if(mr.ia&&alert("todo:DitherRow"),cr.put!=null){if(P=16*Pe,Pe=16*(Pe+1),ft?(cr.y=mr.sa,cr.O=mr.ta+Ia,cr.f=mr.qa,cr.N=mr.ra+le,cr.ea=mr.Ha,cr.W=mr.Ia+le):(P-=ba,cr.y=ni,cr.O=Oi,cr.f=hi,cr.N=an,cr.ea=va,cr.W=Ki),La||(Pe-=ba),Pe>cr.o&&(Pe=cr.o),cr.F=null,cr.J=null,mr.Fa!=null&&0<mr.Fa.length&&P<Pe&&(cr.J=Mt(mr,cr,P,Pe-P),cr.F=mr.mb,cr.F==null&&cr.F.length==0)){Cr=Ci(mr,3,"Could not decode alpha data.");break e}P<cr.j&&(ba=cr.j-P,P=cr.j,Ce(!(1&ba)),cr.O+=mr.R*ba,cr.N+=mr.B*(ba>>1),cr.W+=mr.B*(ba>>1),cr.F!=null&&(cr.J+=cr.width*ba)),P<Pe&&(cr.O+=cr.v,cr.N+=cr.v>>1,cr.W+=cr.v>>1,cr.F!=null&&(cr.J+=cr.v),cr.ka=P-cr.j,cr.U=cr.va-cr.v,cr.T=Pe-P,Cr=cr.put(cr))}Ir+1!=mr.Ic||La||(Fe(mr.sa,mr.ta-Pr,ni,Oi+16*mr.R,Pr),Fe(mr.qa,mr.ra-Kn,hi,an+8*mr.B,Kn),Fe(mr.Ha,mr.Ia-Kn,va,Ki+8*mr.B,Kn))}if(!Cr)return Ci(Nt,6,"Output aborted.")}return 1}(be,Ue)),Ue.bc!=null&&Ue.bc(Ue),ht&=1}return ht?(be.cb=0,ht):0}function Ya(be,Ue,ht,Kt,dr){dr=be[Ue+ht+32*Kt]+(dr>>3),be[Ue+ht+32*Kt]=-256&dr?0>dr?0:255:dr}function Ta(be,Ue,ht,Kt,dr,Tr){Ya(be,Ue,0,ht,Kt+dr),Ya(be,Ue,1,ht,Kt+Tr),Ya(be,Ue,2,ht,Kt-Tr),Ya(be,Ue,3,ht,Kt-dr)}function Ga(be){return(20091*be>>16)+be}function uo(be,Ue,ht,Kt){var dr,Tr=0,De=We(16);for(dr=0;4>dr;++dr){var te=be[Ue+0]+be[Ue+8],Se=be[Ue+0]-be[Ue+8],He=(35468*be[Ue+4]>>16)-Ga(be[Ue+12]),at=Ga(be[Ue+4])+(35468*be[Ue+12]>>16);De[Tr+0]=te+at,De[Tr+1]=Se+He,De[Tr+2]=Se-He,De[Tr+3]=te-at,Tr+=4,Ue++}for(dr=Tr=0;4>dr;++dr)te=(be=De[Tr+0]+4)+De[Tr+8],Se=be-De[Tr+8],He=(35468*De[Tr+4]>>16)-Ga(De[Tr+12]),Ya(ht,Kt,0,0,te+(at=Ga(De[Tr+4])+(35468*De[Tr+12]>>16))),Ya(ht,Kt,1,0,Se+He),Ya(ht,Kt,2,0,Se-He),Ya(ht,Kt,3,0,te-at),Tr++,Kt+=32}function aa(be,Ue,ht,Kt){var dr=be[Ue+0]+4,Tr=35468*be[Ue+4]>>16,De=Ga(be[Ue+4]),te=35468*be[Ue+1]>>16;Ta(ht,Kt,0,dr+De,be=Ga(be[Ue+1]),te),Ta(ht,Kt,1,dr+Tr,be,te),Ta(ht,Kt,2,dr-Tr,be,te),Ta(ht,Kt,3,dr-De,be,te)}function ho(be,Ue,ht,Kt,dr){uo(be,Ue,ht,Kt),dr&&uo(be,Ue+16,ht,Kt+4)}function Ua(be,Ue,ht,Kt){Bs(be,Ue+0,ht,Kt,1),Bs(be,Ue+32,ht,Kt+128,1)}function Na(be,Ue,ht,Kt){var dr;for(be=be[Ue+0]+4,dr=0;4>dr;++dr)for(Ue=0;4>Ue;++Ue)Ya(ht,Kt,Ue,dr,be)}function $a(be,Ue,ht,Kt){be[Ue+0]&&Ja(be,Ue+0,ht,Kt),be[Ue+16]&&Ja(be,Ue+16,ht,Kt+4),be[Ue+32]&&Ja(be,Ue+32,ht,Kt+128),be[Ue+48]&&Ja(be,Ue+48,ht,Kt+128+4)}function Ra(be,Ue,ht,Kt){var dr,Tr=We(16);for(dr=0;4>dr;++dr){var De=be[Ue+0+dr]+be[Ue+12+dr],te=be[Ue+4+dr]+be[Ue+8+dr],Se=be[Ue+4+dr]-be[Ue+8+dr],He=be[Ue+0+dr]-be[Ue+12+dr];Tr[0+dr]=De+te,Tr[8+dr]=De-te,Tr[4+dr]=He+Se,Tr[12+dr]=He-Se}for(dr=0;4>dr;++dr)De=(be=Tr[0+4*dr]+3)+Tr[3+4*dr],te=Tr[1+4*dr]+Tr[2+4*dr],Se=Tr[1+4*dr]-Tr[2+4*dr],He=be-Tr[3+4*dr],ht[Kt+0]=De+te>>3,ht[Kt+16]=He+Se>>3,ht[Kt+32]=De-te>>3,ht[Kt+48]=He-Se>>3,Kt+=64}function Ka(be,Ue,ht){var Kt,dr=Ue-32,Tr=$s,De=255-be[dr-1];for(Kt=0;Kt<ht;++Kt){var te,Se=Tr,He=De+be[Ue-1];for(te=0;te<ht;++te)be[Ue+te]=Se[He+be[dr+te]];Ue+=32}}function bo(be,Ue){Ka(be,Ue,4)}function no(be,Ue){Ka(be,Ue,8)}function Co(be,Ue){Ka(be,Ue,16)}function fo(be,Ue){var ht;for(ht=0;16>ht;++ht)Fe(be,Ue+32*ht,be,Ue-32,16)}function po(be,Ue){var ht;for(ht=16;0<ht;--ht)Ve(be,Ue,be[Ue-1],16),Ue+=32}function Za(be,Ue,ht){var Kt;for(Kt=0;16>Kt;++Kt)Ve(Ue,ht+32*Kt,be,16)}function qa(be,Ue){var ht,Kt=16;for(ht=0;16>ht;++ht)Kt+=be[Ue-1+32*ht]+be[Ue+ht-32];Za(Kt>>5,be,Ue)}function Oa(be,Ue){var ht,Kt=8;for(ht=0;16>ht;++ht)Kt+=be[Ue-1+32*ht];Za(Kt>>4,be,Ue)}function oo(be,Ue){var ht,Kt=8;for(ht=0;16>ht;++ht)Kt+=be[Ue+ht-32];Za(Kt>>4,be,Ue)}function go(be,Ue){Za(128,be,Ue)}function Bi(be,Ue,ht){return be+2*Ue+ht+2>>2}function pa(be,Ue){var ht,Kt=Ue-32;for(Kt=new Uint8Array([Bi(be[Kt-1],be[Kt+0],be[Kt+1]),Bi(be[Kt+0],be[Kt+1],be[Kt+2]),Bi(be[Kt+1],be[Kt+2],be[Kt+3]),Bi(be[Kt+2],be[Kt+3],be[Kt+4])]),ht=0;4>ht;++ht)Fe(be,Ue+32*ht,Kt,0,Kt.length)}function Do(be,Ue){var ht=be[Ue-1],Kt=be[Ue-1+32],dr=be[Ue-1+64],Tr=be[Ue-1+96];Wi(be,Ue+0,16843009*Bi(be[Ue-1-32],ht,Kt)),Wi(be,Ue+32,16843009*Bi(ht,Kt,dr)),Wi(be,Ue+64,16843009*Bi(Kt,dr,Tr)),Wi(be,Ue+96,16843009*Bi(dr,Tr,Tr))}function jo(be,Ue){var ht,Kt=4;for(ht=0;4>ht;++ht)Kt+=be[Ue+ht-32]+be[Ue-1+32*ht];for(Kt>>=3,ht=0;4>ht;++ht)Ve(be,Ue+32*ht,Kt,4)}function Vo(be,Ue){var ht=be[Ue-1+0],Kt=be[Ue-1+32],dr=be[Ue-1+64],Tr=be[Ue-1-32],De=be[Ue+0-32],te=be[Ue+1-32],Se=be[Ue+2-32],He=be[Ue+3-32];be[Ue+0+96]=Bi(Kt,dr,be[Ue-1+96]),be[Ue+1+96]=be[Ue+0+64]=Bi(ht,Kt,dr),be[Ue+2+96]=be[Ue+1+64]=be[Ue+0+32]=Bi(Tr,ht,Kt),be[Ue+3+96]=be[Ue+2+64]=be[Ue+1+32]=be[Ue+0+0]=Bi(De,Tr,ht),be[Ue+3+64]=be[Ue+2+32]=be[Ue+1+0]=Bi(te,De,Tr),be[Ue+3+32]=be[Ue+2+0]=Bi(Se,te,De),be[Ue+3+0]=Bi(He,Se,te)}function Yo(be,Ue){var ht=be[Ue+1-32],Kt=be[Ue+2-32],dr=be[Ue+3-32],Tr=be[Ue+4-32],De=be[Ue+5-32],te=be[Ue+6-32],Se=be[Ue+7-32];be[Ue+0+0]=Bi(be[Ue+0-32],ht,Kt),be[Ue+1+0]=be[Ue+0+32]=Bi(ht,Kt,dr),be[Ue+2+0]=be[Ue+1+32]=be[Ue+0+64]=Bi(Kt,dr,Tr),be[Ue+3+0]=be[Ue+2+32]=be[Ue+1+64]=be[Ue+0+96]=Bi(dr,Tr,De),be[Ue+3+32]=be[Ue+2+64]=be[Ue+1+96]=Bi(Tr,De,te),be[Ue+3+64]=be[Ue+2+96]=Bi(De,te,Se),be[Ue+3+96]=Bi(te,Se,Se)}function wo(be,Ue){var ht=be[Ue-1+0],Kt=be[Ue-1+32],dr=be[Ue-1+64],Tr=be[Ue-1-32],De=be[Ue+0-32],te=be[Ue+1-32],Se=be[Ue+2-32],He=be[Ue+3-32];be[Ue+0+0]=be[Ue+1+64]=Tr+De+1>>1,be[Ue+1+0]=be[Ue+2+64]=De+te+1>>1,be[Ue+2+0]=be[Ue+3+64]=te+Se+1>>1,be[Ue+3+0]=Se+He+1>>1,be[Ue+0+96]=Bi(dr,Kt,ht),be[Ue+0+64]=Bi(Kt,ht,Tr),be[Ue+0+32]=be[Ue+1+96]=Bi(ht,Tr,De),be[Ue+1+32]=be[Ue+2+96]=Bi(Tr,De,te),be[Ue+2+32]=be[Ue+3+96]=Bi(De,te,Se),be[Ue+3+32]=Bi(te,Se,He)}function Da(be,Ue){var ht=be[Ue+0-32],Kt=be[Ue+1-32],dr=be[Ue+2-32],Tr=be[Ue+3-32],De=be[Ue+4-32],te=be[Ue+5-32],Se=be[Ue+6-32],He=be[Ue+7-32];be[Ue+0+0]=ht+Kt+1>>1,be[Ue+1+0]=be[Ue+0+64]=Kt+dr+1>>1,be[Ue+2+0]=be[Ue+1+64]=dr+Tr+1>>1,be[Ue+3+0]=be[Ue+2+64]=Tr+De+1>>1,be[Ue+0+32]=Bi(ht,Kt,dr),be[Ue+1+32]=be[Ue+0+96]=Bi(Kt,dr,Tr),be[Ue+2+32]=be[Ue+1+96]=Bi(dr,Tr,De),be[Ue+3+32]=be[Ue+2+96]=Bi(Tr,De,te),be[Ue+3+64]=Bi(De,te,Se),be[Ue+3+96]=Bi(te,Se,He)}function Fo(be,Ue){var ht=be[Ue-1+0],Kt=be[Ue-1+32],dr=be[Ue-1+64],Tr=be[Ue-1+96];be[Ue+0+0]=ht+Kt+1>>1,be[Ue+2+0]=be[Ue+0+32]=Kt+dr+1>>1,be[Ue+2+32]=be[Ue+0+64]=dr+Tr+1>>1,be[Ue+1+0]=Bi(ht,Kt,dr),be[Ue+3+0]=be[Ue+1+32]=Bi(Kt,dr,Tr),be[Ue+3+32]=be[Ue+1+64]=Bi(dr,Tr,Tr),be[Ue+3+64]=be[Ue+2+64]=be[Ue+0+96]=be[Ue+1+96]=be[Ue+2+96]=be[Ue+3+96]=Tr}function cs(be,Ue){var ht=be[Ue-1+0],Kt=be[Ue-1+32],dr=be[Ue-1+64],Tr=be[Ue-1+96],De=be[Ue-1-32],te=be[Ue+0-32],Se=be[Ue+1-32],He=be[Ue+2-32];be[Ue+0+0]=be[Ue+2+32]=ht+De+1>>1,be[Ue+0+32]=be[Ue+2+64]=Kt+ht+1>>1,be[Ue+0+64]=be[Ue+2+96]=dr+Kt+1>>1,be[Ue+0+96]=Tr+dr+1>>1,be[Ue+3+0]=Bi(te,Se,He),be[Ue+2+0]=Bi(De,te,Se),be[Ue+1+0]=be[Ue+3+32]=Bi(ht,De,te),be[Ue+1+32]=be[Ue+3+64]=Bi(Kt,ht,De),be[Ue+1+64]=be[Ue+3+96]=Bi(dr,Kt,ht),be[Ue+1+96]=Bi(Tr,dr,Kt)}function mo(be,Ue){var ht;for(ht=0;8>ht;++ht)Fe(be,Ue+32*ht,be,Ue-32,8)}function _o(be,Ue){var ht;for(ht=0;8>ht;++ht)Ve(be,Ue,be[Ue-1],8),Ue+=32}function Xa(be,Ue,ht){var Kt;for(Kt=0;8>Kt;++Kt)Ve(Ue,ht+32*Kt,be,8)}function Qo(be,Ue){var ht,Kt=8;for(ht=0;8>ht;++ht)Kt+=be[Ue+ht-32]+be[Ue-1+32*ht];Xa(Kt>>4,be,Ue)}function il(be,Ue){var ht,Kt=4;for(ht=0;8>ht;++ht)Kt+=be[Ue+ht-32];Xa(Kt>>3,be,Ue)}function Os(be,Ue){var ht,Kt=4;for(ht=0;8>ht;++ht)Kt+=be[Ue-1+32*ht];Xa(Kt>>3,be,Ue)}function as(be,Ue){Xa(128,be,Ue)}function xs(be,Ue,ht){var Kt=be[Ue-ht],dr=be[Ue+0],Tr=3*(dr-Kt)+Ll[1020+be[Ue-2*ht]-be[Ue+ht]],De=Zs[112+(Tr+4>>3)];be[Ue-ht]=$s[255+Kt+Zs[112+(Tr+3>>3)]],be[Ue+0]=$s[255+dr-De]}function Ls(be,Ue,ht,Kt){var dr=be[Ue+0],Tr=be[Ue+ht];return ol[255+be[Ue-2*ht]-be[Ue-ht]]>Kt||ol[255+Tr-dr]>Kt}function ys(be,Ue,ht,Kt){return 4*ol[255+be[Ue-ht]-be[Ue+0]]+ol[255+be[Ue-2*ht]-be[Ue+ht]]<=Kt}function Ho(be,Ue,ht,Kt,dr){var Tr=be[Ue-3*ht],De=be[Ue-2*ht],te=be[Ue-ht],Se=be[Ue+0],He=be[Ue+ht],at=be[Ue+2*ht],Et=be[Ue+3*ht];return 4*ol[255+te-Se]+ol[255+De-He]>Kt?0:ol[255+be[Ue-4*ht]-Tr]<=dr&&ol[255+Tr-De]<=dr&&ol[255+De-te]<=dr&&ol[255+Et-at]<=dr&&ol[255+at-He]<=dr&&ol[255+He-Se]<=dr}function vo(be,Ue,ht,Kt){var dr=2*Kt+1;for(Kt=0;16>Kt;++Kt)ys(be,Ue+Kt,ht,dr)&&xs(be,Ue+Kt,ht)}function es(be,Ue,ht,Kt){var dr=2*Kt+1;for(Kt=0;16>Kt;++Kt)ys(be,Ue+Kt*ht,1,dr)&&xs(be,Ue+Kt*ht,1)}function Ko(be,Ue,ht,Kt){var dr;for(dr=3;0<dr;--dr)vo(be,Ue+=4*ht,ht,Kt)}function Ro(be,Ue,ht,Kt){var dr;for(dr=3;0<dr;--dr)es(be,Ue+=4,ht,Kt)}function Vr(be,Ue,ht,Kt,dr,Tr,De,te){for(Tr=2*Tr+1;0<dr--;){if(Ho(be,Ue,ht,Tr,De))if(Ls(be,Ue,ht,te))xs(be,Ue,ht);else{var Se=be,He=Ue,at=ht,Et=Se[He-2*at],It=Se[He-at],Nt=Se[He+0],vr=Se[He+at],Ir=Se[He+2*at],mr=27*(Cr=Ll[1020+3*(Nt-It)+Ll[1020+Et-vr]])+63>>7,cr=18*Cr+63>>7,Cr=9*Cr+63>>7;Se[He-3*at]=$s[255+Se[He-3*at]+Cr],Se[He-2*at]=$s[255+Et+cr],Se[He-at]=$s[255+It+mr],Se[He+0]=$s[255+Nt-mr],Se[He+at]=$s[255+vr-cr],Se[He+2*at]=$s[255+Ir-Cr]}Ue+=Kt}}function bi(be,Ue,ht,Kt,dr,Tr,De,te){for(Tr=2*Tr+1;0<dr--;){if(Ho(be,Ue,ht,Tr,De))if(Ls(be,Ue,ht,te))xs(be,Ue,ht);else{var Se=be,He=Ue,at=ht,Et=Se[He-at],It=Se[He+0],Nt=Se[He+at],vr=Zs[112+((Ir=3*(It-Et))+4>>3)],Ir=Zs[112+(Ir+3>>3)],mr=vr+1>>1;Se[He-2*at]=$s[255+Se[He-2*at]+mr],Se[He-at]=$s[255+Et+Ir],Se[He+0]=$s[255+It-vr],Se[He+at]=$s[255+Nt-mr]}Ue+=Kt}}function Qs(be,Ue,ht,Kt,dr,Tr){Vr(be,Ue,ht,1,16,Kt,dr,Tr)}function Ns(be,Ue,ht,Kt,dr,Tr){Vr(be,Ue,1,ht,16,Kt,dr,Tr)}function js(be,Ue,ht,Kt,dr,Tr){var De;for(De=3;0<De;--De)bi(be,Ue+=4*ht,ht,1,16,Kt,dr,Tr)}function so(be,Ue,ht,Kt,dr,Tr){var De;for(De=3;0<De;--De)bi(be,Ue+=4,1,ht,16,Kt,dr,Tr)}function Ao(be,Ue,ht,Kt,dr,Tr,De,te){Vr(be,Ue,dr,1,8,Tr,De,te),Vr(ht,Kt,dr,1,8,Tr,De,te)}function Jo(be,Ue,ht,Kt,dr,Tr,De,te){Vr(be,Ue,1,dr,8,Tr,De,te),Vr(ht,Kt,1,dr,8,Tr,De,te)}function Uo(be,Ue,ht,Kt,dr,Tr,De,te){bi(be,Ue+4*dr,dr,1,8,Tr,De,te),bi(ht,Kt+4*dr,dr,1,8,Tr,De,te)}function bs(be,Ue,ht,Kt,dr,Tr,De,te){bi(be,Ue+4,1,dr,8,Tr,De,te),bi(ht,Kt+4,1,dr,8,Tr,De,te)}function ms(){this.ba=new Zn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new gi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function gs(){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 ul(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ms(){this.ua=0,this.Wa=new Li,this.vb=new Li,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new li,this.yc=new Cn}function Js(){this.xb=this.a=0,this.l=new Pa,this.ca=new Zn,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 Ms,this.ab=0,this.gc=Ze(4,ul),this.Oc=0}function Hs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Pa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Go(be,Ue,ht,Kt,dr,Tr,De){for(be=be==null?0:be[Ue+0],Ue=0;Ue<De;++Ue)dr[Tr+Ue]=be+ht[Kt+Ue]&255,be=dr[Tr+Ue]}function Ps(be,Ue,ht,Kt,dr,Tr,De){var te;if(be==null)Go(null,null,ht,Kt,dr,Tr,De);else for(te=0;te<De;++te)dr[Tr+te]=be[Ue+te]+ht[Kt+te]&255}function St(be,Ue,ht,Kt,dr,Tr,De){if(be==null)Go(null,null,ht,Kt,dr,Tr,De);else{var te,Se=be[Ue+0],He=Se,at=Se;for(te=0;te<De;++te)He=at+(Se=be[Ue+te])-He,at=ht[Kt+te]+(-256&He?0>He?0:255:He)&255,He=Se,dr[Tr+te]=at}}function Mt(be,Ue,ht,Kt){var dr=Ue.width,Tr=Ue.o;if(Ce(be!=null&&Ue!=null),0>ht||0>=Kt||ht+Kt>Tr)return null;if(!be.Cc){if(be.ga==null){var De;if(be.ga=new Hs,(De=be.ga==null)||(De=Ue.width*Ue.o,Ce(be.Gb.length==0),be.Gb=We(De),be.Uc=0,be.Gb==null?De=0:(be.mb=be.Gb,be.nb=be.Uc,be.rc=null,De=1),De=!De),!De){De=be.ga;var te=be.Fa,Se=be.P,He=be.qc,at=be.mb,Et=be.nb,It=Se+1,Nt=He-1,vr=De.l;if(Ce(te!=null&&at!=null&&Ue!=null),Cl[0]=null,Cl[1]=Go,Cl[2]=Ps,Cl[3]=St,De.ca=at,De.tb=Et,De.c=Ue.width,De.i=Ue.height,Ce(0<De.c&&0<De.i),1>=He)Ue=0;else if(De.$a=te[Se+0]>>0&3,De.Z=te[Se+0]>>2&3,De.Lc=te[Se+0]>>4&3,Se=te[Se+0]>>6&3,0>De.$a||1<De.$a||4<=De.Z||1<De.Lc||Se)Ue=0;else if(vr.put=Ni,vr.ac=_i,vr.bc=jn,vr.ma=De,vr.width=Ue.width,vr.height=Ue.height,vr.Da=Ue.Da,vr.v=Ue.v,vr.va=Ue.va,vr.j=Ue.j,vr.o=Ue.o,De.$a)e:{Ce(De.$a==1),Ue=bn();t:for(;;){if(Ue==null){Ue=0;break e}if(Ce(De!=null),De.mc=Ue,Ue.c=De.c,Ue.i=De.i,Ue.l=De.l,Ue.l.ma=De,Ue.l.width=De.c,Ue.l.height=De.i,Ue.a=0,ki(Ue.m,te,It,Nt),!Bn(De.c,De.i,1,Ue,null))break t;if(Ue.ab==1&&Ue.gc[0].hc==3&&tr(Ue.s)?(De.ic=1,te=Ue.c*Ue.i,Ue.Ta=null,Ue.Ua=0,Ue.V=We(te),Ue.Ba=0,Ue.V==null?(Ue.a=1,Ue=0):Ue=1):(De.ic=0,Ue=Xn(Ue,De.c)),!Ue)break t;Ue=1;break e}De.mc=null,Ue=0}else Ue=Nt>=De.c*De.i;De=!Ue}if(De)return null;be.ga.Lc!=1?be.Ga=0:Kt=Tr-ht}Ce(be.ga!=null),Ce(ht+Kt<=Tr);e:{if(Ue=(te=be.ga).c,Tr=te.l.o,te.$a==0){if(It=be.rc,Nt=be.Vc,vr=be.Fa,Se=be.P+1+ht*Ue,He=be.mb,at=be.nb+ht*Ue,Ce(Se<=be.P+be.qc),te.Z!=0)for(Ce(Cl[te.Z]!=null),De=0;De<Kt;++De)Cl[te.Z](It,Nt,vr,Se,He,at,Ue),It=He,Nt=at,at+=Ue,Se+=Ue;else for(De=0;De<Kt;++De)Fe(He,at,vr,Se,Ue),It=He,Nt=at,at+=Ue,Se+=Ue;be.rc=It,be.Vc=Nt}else{if(Ce(te.mc!=null),Ue=ht+Kt,Ce((De=te.mc)!=null),Ce(Ue<=De.i),De.C>=Ue)Ue=1;else if(te.ic||Ae(),te.ic){te=De.V,It=De.Ba,Nt=De.c;var Ir=De.i,mr=(vr=1,Se=De.$/Nt,He=De.$%Nt,at=De.m,Et=De.s,De.$),cr=Nt*Ir,Cr=Nt*Ue,Pr=Et.wc,an=mr<Cr?Nr(Et,He,Se):null;Ce(mr<=cr),Ce(Ue<=Ir),Ce(tr(Et));t:for(;;){for(;!at.h&&mr<Cr;){if(He&Pr||(an=Nr(Et,He,Se)),Ce(an!=null),ti(at),256>(Ir=Dr(an.G[0],an.H[0],at)))te[It+mr]=Ir,++mr,++He>=Nt&&(He=0,++Se<=Ue&&!(Se%16)&&Ur(De,Se));else{if(!(280>Ir)){vr=0;break t}Ir=Hi(Ir-256,at);var Kn,ni=Dr(an.G[4],an.H[4],at);if(ti(at),!(mr>=(ni=fr(Nt,ni=Hi(ni,at)))&&cr-mr>=Ir)){vr=0;break t}for(Kn=0;Kn<Ir;++Kn)te[It+mr+Kn]=te[It+mr+Kn-ni];for(mr+=Ir,He+=Ir;He>=Nt;)He-=Nt,++Se<=Ue&&!(Se%16)&&Ur(De,Se);mr<Cr&&He&Pr&&(an=Nr(Et,He,Se))}Ce(at.h==Un(at))}Ur(De,Se>Ue?Ue:Se);break t}!vr||at.h&&mr<cr?(vr=0,De.a=at.h?5:3):De.$=mr,Ue=vr}else Ue=dn(De,De.V,De.Ba,De.c,De.i,Ue,$n);if(!Ue){Kt=0;break e}}ht+Kt>=Tr&&(be.Cc=1),Kt=1}if(!Kt)return null;if(be.Cc&&((Kt=be.ga)!=null&&(Kt.mc=null),be.ga=null,0<be.Ga))return alert("todo:WebPDequantizeLevels"),null}return be.nb+ht*dr}function tn(be,Ue,ht,Kt,dr,Tr){for(;0<dr--;){var De,te=be,Se=Ue+(ht?1:0),He=be,at=Ue+(ht?0:3);for(De=0;De<Kt;++De){var Et=He[at+4*De];Et!=255&&(Et*=32897,te[Se+4*De+0]=te[Se+4*De+0]*Et>>23,te[Se+4*De+1]=te[Se+4*De+1]*Et>>23,te[Se+4*De+2]=te[Se+4*De+2]*Et>>23)}Ue+=Tr}}function In(be,Ue,ht,Kt,dr){for(;0<Kt--;){var Tr;for(Tr=0;Tr<ht;++Tr){var De=be[Ue+2*Tr+0],te=15&(He=be[Ue+2*Tr+1]),Se=4369*te,He=(240&He|He>>4)*Se>>16;be[Ue+2*Tr+0]=(240&De|De>>4)*Se>>16&240|(15&De|De<<4)*Se>>16>>4&15,be[Ue+2*Tr+1]=240&He|te}Ue+=dr}}function mt(be,Ue,ht,Kt,dr,Tr,De,te){var Se,He,at=255;for(He=0;He<dr;++He){for(Se=0;Se<Kt;++Se){var Et=be[Ue+Se];Tr[De+4*Se]=Et,at&=Et}Ue+=ht,De+=te}return at!=255}function ne(be,Ue,ht,Kt,dr){var Tr;for(Tr=0;Tr<dr;++Tr)ht[Kt+Tr]=be[Ue+Tr]>>8}function Ae(){wl=tn,Zl=In,cl=mt,Ol=ne}function we(be,Ue,ht){Pn[be]=function(Kt,dr,Tr,De,te,Se,He,at,Et,It,Nt,vr,Ir,mr,cr,Cr,Pr){var an,Kn=Pr-1>>1,ni=te[Se+0]|He[at+0]<<16,Oi=Et[It+0]|Nt[vr+0]<<16;Ce(Kt!=null);var hi=3*ni+Oi+131074>>2;for(Ue(Kt[dr+0],255&hi,hi>>16,Ir,mr),Tr!=null&&(hi=3*Oi+ni+131074>>2,Ue(Tr[De+0],255&hi,hi>>16,cr,Cr)),an=1;an<=Kn;++an){var va=te[Se+an]|He[at+an]<<16,Ki=Et[It+an]|Nt[vr+an]<<16,La=ni+va+Oi+Ki+524296,ba=La+2*(va+Oi)>>3;hi=ba+ni>>1,ni=(La=La+2*(ni+Ki)>>3)+va>>1,Ue(Kt[dr+2*an-1],255&hi,hi>>16,Ir,mr+(2*an-1)*ht),Ue(Kt[dr+2*an-0],255&ni,ni>>16,Ir,mr+(2*an-0)*ht),Tr!=null&&(hi=La+Oi>>1,ni=ba+Ki>>1,Ue(Tr[De+2*an-1],255&hi,hi>>16,cr,Cr+(2*an-1)*ht),Ue(Tr[De+2*an+0],255&ni,ni>>16,cr,Cr+(2*an+0)*ht)),ni=va,Oi=Ki}1&Pr||(hi=3*ni+Oi+131074>>2,Ue(Kt[dr+Pr-1],255&hi,hi>>16,Ir,mr+(Pr-1)*ht),Tr!=null&&(hi=3*Oi+ni+131074>>2,Ue(Tr[De+Pr-1],255&hi,hi>>16,cr,Cr+(Pr-1)*ht)))}}function Be(){pl[zl]=Cu,pl[$l]=Ku,pl[lu]=Hu,pl[Vl]=Tu,pl[Nl]=Iu,pl[uu]=Wu,pl[ql]=pu,pl[cu]=Ku,pl[gl]=Tu,pl[Sl]=Iu,pl[Dl]=Wu}function dt(be){return be&~$u?0>be?0:255:be>>_u}function Ot(be,Ue){return dt((19077*be>>8)+(26149*Ue>>8)-14234)}function br(be,Ue,ht){return dt((19077*be>>8)-(6419*Ue>>8)-(13320*ht>>8)+8708)}function Lr(be,Ue){return dt((19077*be>>8)+(33050*Ue>>8)-17685)}function $r(be,Ue,ht,Kt,dr){Kt[dr+0]=Ot(be,ht),Kt[dr+1]=br(be,Ue,ht),Kt[dr+2]=Lr(be,Ue)}function xn(be,Ue,ht,Kt,dr){Kt[dr+0]=Lr(be,Ue),Kt[dr+1]=br(be,Ue,ht),Kt[dr+2]=Ot(be,ht)}function Wn(be,Ue,ht,Kt,dr){var Tr=br(be,Ue,ht);Ue=Tr<<3&224|Lr(be,Ue)>>3,Kt[dr+0]=248&Ot(be,ht)|Tr>>5,Kt[dr+1]=Ue}function si(be,Ue,ht,Kt,dr){var Tr=240&Lr(be,Ue)|15;Kt[dr+0]=240&Ot(be,ht)|br(be,Ue,ht)>>4,Kt[dr+1]=Tr}function Si(be,Ue,ht,Kt,dr){Kt[dr+0]=255,$r(be,Ue,ht,Kt,dr+1)}function Vi(be,Ue,ht,Kt,dr){xn(be,Ue,ht,Kt,dr),Kt[dr+3]=255}function oa(be,Ue,ht,Kt,dr){$r(be,Ue,ht,Kt,dr),Kt[dr+3]=255}function Yi(be,Ue){return 0>be?0:be>Ue?Ue:be}function xa(be,Ue,ht){Pn[be]=function(Kt,dr,Tr,De,te,Se,He,at,Et){for(var It=at+(-2&Et)*ht;at!=It;)Ue(Kt[dr+0],Tr[De+0],te[Se+0],He,at),Ue(Kt[dr+1],Tr[De+0],te[Se+0],He,at+ht),dr+=2,++De,++Se,at+=2*ht;1&Et&&Ue(Kt[dr+0],Tr[De+0],te[Se+0],He,at)}}function eo(be,Ue,ht){return ht==0?be==0?Ue==0?6:5:Ue==0?4:0:ht}function to(be,Ue,ht,Kt,dr){switch(be>>>30){case 3:Bs(Ue,ht,Kt,dr,0);break;case 2:Xs(Ue,ht,Kt,dr);break;case 1:Ja(Ue,ht,Kt,dr)}}function io(be,Ue){var ht,Kt,dr=Ue.M,Tr=Ue.Nb,De=be.oc,te=be.pc+40,Se=be.oc,He=be.pc+584,at=be.oc,Et=be.pc+600;for(ht=0;16>ht;++ht)De[te+32*ht-1]=129;for(ht=0;8>ht;++ht)Se[He+32*ht-1]=129,at[Et+32*ht-1]=129;for(0<dr?De[te-1-32]=Se[He-1-32]=at[Et-1-32]=129:(Ve(De,te-32-1,127,21),Ve(Se,He-32-1,127,9),Ve(at,Et-32-1,127,9)),Kt=0;Kt<be.za;++Kt){var It=Ue.ya[Ue.aa+Kt];if(0<Kt){for(ht=-1;16>ht;++ht)Fe(De,te+32*ht-4,De,te+32*ht+12,4);for(ht=-1;8>ht;++ht)Fe(Se,He+32*ht-4,Se,He+32*ht+4,4),Fe(at,Et+32*ht-4,at,Et+32*ht+4,4)}var Nt=be.Gd,vr=be.Hd+Kt,Ir=It.ad,mr=It.Hc;if(0<dr&&(Fe(De,te-32,Nt[vr].y,0,16),Fe(Se,He-32,Nt[vr].f,0,8),Fe(at,Et-32,Nt[vr].ea,0,8)),It.Za){var cr=De,Cr=te-32+16;for(0<dr&&(Kt>=be.za-1?Ve(cr,Cr,Nt[vr].y[15],4):Fe(cr,Cr,Nt[vr+1].y,0,4)),ht=0;4>ht;ht++)cr[Cr+128+ht]=cr[Cr+256+ht]=cr[Cr+384+ht]=cr[Cr+0+ht];for(ht=0;16>ht;++ht,mr<<=2)cr=De,Cr=te+gu[ht],rl[It.Ob[ht]](cr,Cr),to(mr,Ir,16*+ht,cr,Cr)}else if(cr=eo(Kt,dr,It.Ob[0]),fs[cr](De,te),mr!=0)for(ht=0;16>ht;++ht,mr<<=2)to(mr,Ir,16*+ht,De,te+gu[ht]);for(ht=It.Gc,cr=eo(Kt,dr,It.Dd),El[cr](Se,He),El[cr](at,Et),mr=Ir,cr=Se,Cr=He,255&(It=ht>>0)&&(170&It?zs(mr,256,cr,Cr):ma(mr,256,cr,Cr)),It=at,mr=Et,255&(ht>>=8)&&(170&ht?zs(Ir,320,It,mr):ma(Ir,320,It,mr)),dr<be.Ub-1&&(Fe(Nt[vr].y,0,De,te+480,16),Fe(Nt[vr].f,0,Se,He+224,8),Fe(Nt[vr].ea,0,at,Et+224,8)),ht=8*Tr*be.B,Nt=be.sa,vr=be.ta+16*Kt+16*Tr*be.R,Ir=be.qa,It=be.ra+8*Kt+ht,mr=be.Ha,cr=be.Ia+8*Kt+ht,ht=0;16>ht;++ht)Fe(Nt,vr+ht*be.R,De,te+32*ht,16);for(ht=0;8>ht;++ht)Fe(Ir,It+ht*be.B,Se,He+32*ht,8),Fe(mr,cr+ht*be.B,at,Et+32*ht,8)}}function Oo(be,Ue,ht,Kt,dr,Tr,De,te,Se){var He=[0],at=[0],Et=0,It=Se!=null?Se.kd:0,Nt=Se!=null?Se:new gs;if(be==null||12>ht)return 7;Nt.data=be,Nt.w=Ue,Nt.ha=ht,Ue=[Ue],ht=[ht],Nt.gb=[Nt.gb];e:{var vr=Ue,Ir=ht,mr=Nt.gb;if(Ce(be!=null),Ce(Ir!=null),Ce(mr!=null),mr[0]=0,12<=Ir[0]&&!ke(be,vr[0],"RIFF")){if(ke(be,vr[0]+8,"WEBP")){mr=3;break e}var cr=Fa(be,vr[0]+4);if(12>cr||4294967286<cr){mr=3;break e}if(It&&cr>Ir[0]-8){mr=7;break e}mr[0]=cr,vr[0]+=12,Ir[0]-=12}mr=0}if(mr!=0)return mr;for(cr=0<Nt.gb[0],ht=ht[0];;){e:{var Cr=be;Ir=Ue,mr=ht;var Pr=He,an=at,Kn=vr=[0];if((hi=Et=[Et])[0]=0,8>mr[0])mr=7;else{if(!ke(Cr,Ir[0],"VP8X")){if(Fa(Cr,Ir[0]+4)!=10){mr=3;break e}if(18>mr[0]){mr=7;break e}var ni=Fa(Cr,Ir[0]+8),Oi=1+ea(Cr,Ir[0]+12);if(2147483648<=Oi*(Cr=1+ea(Cr,Ir[0]+15))){mr=3;break e}Kn!=null&&(Kn[0]=ni),Pr!=null&&(Pr[0]=Oi),an!=null&&(an[0]=Cr),Ir[0]+=18,mr[0]-=18,hi[0]=1}mr=0}}if(Et=Et[0],vr=vr[0],mr!=0)return mr;if(Ir=!!(2&vr),!cr&&Et)return 3;if(Tr!=null&&(Tr[0]=!!(16&vr)),De!=null&&(De[0]=Ir),te!=null&&(te[0]=0),De=He[0],vr=at[0],Et&&Ir&&Se==null){mr=0;break}if(4>ht){mr=7;break}if(cr&&Et||!cr&&!Et&&!ke(be,Ue[0],"ALPH")){ht=[ht],Nt.na=[Nt.na],Nt.P=[Nt.P],Nt.Sa=[Nt.Sa];e:{ni=be,mr=Ue,cr=ht;var hi=Nt.gb;Pr=Nt.na,an=Nt.P,Kn=Nt.Sa,Oi=22,Ce(ni!=null),Ce(cr!=null),Cr=mr[0];var va=cr[0];for(Ce(Pr!=null),Ce(Kn!=null),Pr[0]=null,an[0]=null,Kn[0]=0;;){if(mr[0]=Cr,cr[0]=va,8>va){mr=7;break e}var Ki=Fa(ni,Cr+4);if(4294967286<Ki){mr=3;break e}var La=8+Ki+1&-2;if(Oi+=La,0<hi&&Oi>hi){mr=3;break e}if(!ke(ni,Cr,"VP8 ")||!ke(ni,Cr,"VP8L")){mr=0;break e}if(va[0]<La){mr=7;break e}ke(ni,Cr,"ALPH")||(Pr[0]=ni,an[0]=Cr+8,Kn[0]=Ki),Cr+=La,va-=La}}if(ht=ht[0],Nt.na=Nt.na[0],Nt.P=Nt.P[0],Nt.Sa=Nt.Sa[0],mr!=0)break}ht=[ht],Nt.Ja=[Nt.Ja],Nt.xa=[Nt.xa];e:if(hi=be,mr=Ue,cr=ht,Pr=Nt.gb[0],an=Nt.Ja,Kn=Nt.xa,ni=mr[0],Cr=!ke(hi,ni,"VP8 "),Oi=!ke(hi,ni,"VP8L"),Ce(hi!=null),Ce(cr!=null),Ce(an!=null),Ce(Kn!=null),8>cr[0])mr=7;else{if(Cr||Oi){if(hi=Fa(hi,ni+4),12<=Pr&&hi>Pr-12){mr=3;break e}if(It&&hi>cr[0]-8){mr=7;break e}an[0]=hi,mr[0]+=8,cr[0]-=8,Kn[0]=Oi}else Kn[0]=5<=cr[0]&&hi[ni+0]==47&&!(hi[ni+4]>>5),an[0]=cr[0];mr=0}if(ht=ht[0],Nt.Ja=Nt.Ja[0],Nt.xa=Nt.xa[0],Ue=Ue[0],mr!=0)break;if(4294967286<Nt.Ja)return 3;if(te==null||Ir||(te[0]=Nt.xa?2:1),De=[De],vr=[vr],Nt.xa){if(5>ht){mr=7;break}te=De,It=vr,Ir=Tr,be==null||5>ht?be=0:5<=ht&&be[Ue+0]==47&&!(be[Ue+4]>>5)?(cr=[0],hi=[0],Pr=[0],ki(an=new Fr,be,Ue,ht),Ii(an,cr,hi,Pr)?(te!=null&&(te[0]=cr[0]),It!=null&&(It[0]=hi[0]),Ir!=null&&(Ir[0]=Pr[0]),be=1):be=0):be=0}else{if(10>ht){mr=7;break}te=vr,be==null||10>ht||!la(be,Ue+3,ht-3)?be=0:(It=be[Ue+0]|be[Ue+1]<<8|be[Ue+2]<<16,Ir=16383&(be[Ue+7]<<8|be[Ue+6]),be=16383&(be[Ue+9]<<8|be[Ue+8]),1&It||3<(It>>1&7)||!(It>>4&1)||It>>5>=Nt.Ja||!Ir||!be?be=0:(De&&(De[0]=Ir),te&&(te[0]=be),be=1))}if(!be)return 3;if(De=De[0],vr=vr[0],Et&&(He[0]!=De||at[0]!=vr))return 3;Se!=null&&(Se[0]=Nt,Se.offset=Ue-Se.w,Ce(4294967286>Ue-Se.w),Ce(Se.offset==Se.ha-ht));break}return mr==0||mr==7&&Et&&Se==null?(Tr!=null&&(Tr[0]|=Nt.na!=null&&0<Nt.na.length),Kt!=null&&(Kt[0]=De),dr!=null&&(dr[0]=vr),0):mr}function yo(be,Ue,ht){var Kt=Ue.width,dr=Ue.height,Tr=0,De=0,te=Kt,Se=dr;if(Ue.Da=be!=null&&0<be.Da,Ue.Da&&(te=be.cd,Se=be.bd,Tr=be.v,De=be.j,11>ht||(Tr&=-2,De&=-2),0>Tr||0>De||0>=te||0>=Se||Tr+te>Kt||De+Se>dr))return 0;if(Ue.v=Tr,Ue.j=De,Ue.va=Tr+te,Ue.o=De+Se,Ue.U=te,Ue.T=Se,Ue.da=be!=null&&0<be.da,Ue.da){if(!Zi(te,Se,ht=[be.ib],Tr=[be.hb]))return 0;Ue.ib=ht[0],Ue.hb=Tr[0]}return Ue.ob=be!=null&&be.ob,Ue.Kb=be==null||!be.Sd,Ue.da&&(Ue.ob=Ue.ib<3*Kt/4&&Ue.hb<3*dr/4,Ue.Kb=0),1}function Mo(be){if(be==null)return 2;if(11>be.S){var Ue=be.f.RGBA;Ue.fb+=(be.height-1)*Ue.A,Ue.A=-Ue.A}else Ue=be.f.kb,be=be.height,Ue.O+=(be-1)*Ue.fa,Ue.fa=-Ue.fa,Ue.N+=(be-1>>1)*Ue.Ab,Ue.Ab=-Ue.Ab,Ue.W+=(be-1>>1)*Ue.Db,Ue.Db=-Ue.Db,Ue.F!=null&&(Ue.J+=(be-1)*Ue.lb,Ue.lb=-Ue.lb);return 0}function za(be,Ue,ht,Kt){if(Kt==null||0>=be||0>=Ue)return 2;if(ht!=null){if(ht.Da){var dr=ht.cd,Tr=ht.bd,De=-2&ht.v,te=-2&ht.j;if(0>De||0>te||0>=dr||0>=Tr||De+dr>be||te+Tr>Ue)return 2;be=dr,Ue=Tr}if(ht.da){if(!Zi(be,Ue,dr=[ht.ib],Tr=[ht.hb]))return 2;be=dr[0],Ue=Tr[0]}}Kt.width=be,Kt.height=Ue;e:{var Se=Kt.width,He=Kt.height;if(be=Kt.S,0>=Se||0>=He||!(be>=zl&&13>be))be=2;else{if(0>=Kt.Rd&&Kt.sd==null){De=Tr=dr=Ue=0;var at=(te=Se*ou[be])*He;if(11>be||(Tr=(He+1)/2*(Ue=(Se+1)/2),be==12&&(De=(dr=Se)*He)),(He=We(at+2*Tr+De))==null){be=1;break e}Kt.sd=He,11>be?((Se=Kt.f.RGBA).eb=He,Se.fb=0,Se.A=te,Se.size=at):((Se=Kt.f.kb).y=He,Se.O=0,Se.fa=te,Se.Fd=at,Se.f=He,Se.N=0+at,Se.Ab=Ue,Se.Cd=Tr,Se.ea=He,Se.W=0+at+Tr,Se.Db=Ue,Se.Ed=Tr,be==12&&(Se.F=He,Se.J=0+at+2*Tr),Se.Tc=De,Se.lb=dr)}if(Ue=1,dr=Kt.S,Tr=Kt.width,De=Kt.height,dr>=zl&&13>dr)if(11>dr)be=Kt.f.RGBA,Ue&=(te=Math.abs(be.A))*(De-1)+Tr<=be.size,Ue&=te>=Tr*ou[dr],Ue&=be.eb!=null;else{be=Kt.f.kb,te=(Tr+1)/2,at=(De+1)/2,Se=Math.abs(be.fa),He=Math.abs(be.Ab);var Et=Math.abs(be.Db),It=Math.abs(be.lb),Nt=It*(De-1)+Tr;Ue&=Se*(De-1)+Tr<=be.Fd,Ue&=He*(at-1)+te<=be.Cd,Ue=(Ue&=Et*(at-1)+te<=be.Ed)&Se>=Tr&He>=te&Et>=te,Ue&=be.y!=null,Ue&=be.f!=null,Ue&=be.ea!=null,dr==12&&(Ue&=It>=Tr,Ue&=Nt<=be.Tc,Ue&=be.F!=null)}else Ue=0;be=Ue?0:2}}return be!=0||ht!=null&&ht.fd&&(be=Mo(Kt)),be}var So=64,os=[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],ns=24,Io=32,Xo=8,Ds=[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];Gt("Predictor0","PredictorAdd0"),Pn.Predictor0=function(){return 4278190080},Pn.Predictor1=function(be){return be},Pn.Predictor2=function(be,Ue,ht){return Ue[ht+0]},Pn.Predictor3=function(be,Ue,ht){return Ue[ht+1]},Pn.Predictor4=function(be,Ue,ht){return Ue[ht-1]},Pn.Predictor5=function(be,Ue,ht){return rn(rn(be,Ue[ht+1]),Ue[ht+0])},Pn.Predictor6=function(be,Ue,ht){return rn(be,Ue[ht-1])},Pn.Predictor7=function(be,Ue,ht){return rn(be,Ue[ht+0])},Pn.Predictor8=function(be,Ue,ht){return rn(Ue[ht-1],Ue[ht+0])},Pn.Predictor9=function(be,Ue,ht){return rn(Ue[ht+0],Ue[ht+1])},Pn.Predictor10=function(be,Ue,ht){return rn(rn(be,Ue[ht-1]),rn(Ue[ht+0],Ue[ht+1]))},Pn.Predictor11=function(be,Ue,ht){var Kt=Ue[ht+0];return 0>=_t(Kt>>24&255,be>>24&255,(Ue=Ue[ht-1])>>24&255)+_t(Kt>>16&255,be>>16&255,Ue>>16&255)+_t(Kt>>8&255,be>>8&255,Ue>>8&255)+_t(255&Kt,255&be,255&Ue)?Kt:be},Pn.Predictor12=function(be,Ue,ht){var Kt=Ue[ht+0];return(fn((be>>24&255)+(Kt>>24&255)-((Ue=Ue[ht-1])>>24&255))<<24|fn((be>>16&255)+(Kt>>16&255)-(Ue>>16&255))<<16|fn((be>>8&255)+(Kt>>8&255)-(Ue>>8&255))<<8|fn((255&be)+(255&Kt)-(255&Ue)))>>>0},Pn.Predictor13=function(be,Ue,ht){var Kt=Ue[ht-1];return(Xe((be=rn(be,Ue[ht+0]))>>24&255,Kt>>24&255)<<24|Xe(be>>16&255,Kt>>16&255)<<16|Xe(be>>8&255,Kt>>8&255)<<8|Xe(be>>0&255,Kt>>0&255))>>>0};var Es=Pn.PredictorAdd0;Pn.PredictorAdd1=lr,Gt("Predictor2","PredictorAdd2"),Gt("Predictor3","PredictorAdd3"),Gt("Predictor4","PredictorAdd4"),Gt("Predictor5","PredictorAdd5"),Gt("Predictor6","PredictorAdd6"),Gt("Predictor7","PredictorAdd7"),Gt("Predictor8","PredictorAdd8"),Gt("Predictor9","PredictorAdd9"),Gt("Predictor10","PredictorAdd10"),Gt("Predictor11","PredictorAdd11"),Gt("Predictor12","PredictorAdd12"),Gt("Predictor13","PredictorAdd13");var Wo=Pn.PredictorAdd2;Wr("ColorIndexInverseTransform","MapARGB","32b",function(be){return be>>8&255},function(be){return be}),Wr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(be){return be},function(be){return be>>8&255});var ws,ds=Pn.ColorIndexInverseTransform,yl=Pn.MapARGB,bl=Pn.VP8LColorIndexInverseTransformAlpha,Cs=Pn.MapAlpha,Lo=Pn.VP8LPredictorsAdd=[];Lo.length=16,(Pn.VP8LPredictors=[]).length=16,(Pn.VP8LPredictorsAdd_C=[]).length=16,(Pn.VP8LPredictors_C=[]).length=16;var ra,tl,Ks,Ws,hs,ks,al,Bs,Xs,zs,Ja,ma,Ba,ao,Zo,Vs,vs,Ts,No,To,ts,Eo,Ys,Wl,wl,Zl,cl,Ol,Bl=We(511),ku=We(2041),wu=We(225),Bu=We(767),Fu=0,Ll=ku,Zs=wu,$s=Bu,ol=Bl,zl=0,$l=1,lu=2,Vl=3,Nl=4,uu=5,ql=6,cu=7,gl=8,Sl=9,Dl=10,eu=[2,3,7],xl=[3,3,11],Uu=[280,256,256,256,40],dl=[0,1,1,1,0],vl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],tu=[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],ju=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],du=8,Rl=[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],Ml=[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],Fl=null,Su=[[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]],xu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],hu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Ul=[[[[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]]]],fu=[[[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]]],ru=[[[[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]]]],Eu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],fs=[],rl=[],El=[],nu=1,iu=2,Cl=[],pl=[];we("UpsampleRgbLinePair",$r,3),we("UpsampleBgrLinePair",xn,3),we("UpsampleRgbaLinePair",oa,4),we("UpsampleBgraLinePair",Vi,4),we("UpsampleArgbLinePair",Si,4),we("UpsampleRgba4444LinePair",si,2),we("UpsampleRgb565LinePair",Wn,2);var Cu=Pn.UpsampleRgbLinePair,Hu=Pn.UpsampleBgrLinePair,Ku=Pn.UpsampleRgbaLinePair,Tu=Pn.UpsampleBgraLinePair,Iu=Pn.UpsampleArgbLinePair,Wu=Pn.UpsampleRgba4444LinePair,pu=Pn.UpsampleRgb565LinePair,Tl=16,Il=1<<Tl-1,Gl=-227,jl=482,_u=6,$u=(256<<_u)-1,zu=0,qu=We(256),Xl=We(256),mu=We(256),ec=We(256),Ou=We(jl-Gl),au=We(jl-Gl);xa("YuvToRgbRow",$r,3),xa("YuvToBgrRow",xn,3),xa("YuvToRgbaRow",oa,4),xa("YuvToBgraRow",Vi,4),xa("YuvToArgbRow",Si,4),xa("YuvToRgba4444Row",si,2),xa("YuvToRgb565Row",Wn,2);var gu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Yl=[0,2,8],Lu=[8,7,6,4,4,2,2,2,1,1,1,1],Ql=1;this.WebPDecodeRGBA=function(be,Ue,ht,Kt,dr){var Tr=$l,De=new ms,te=new Zn;De.ba=te,te.S=Tr,te.width=[te.width],te.height=[te.height];var Se=te.width,He=te.height,at=new yi;if(at==null||be==null)var Et=2;else Ce(at!=null),Et=Oo(be,Ue,ht,at.width,at.height,at.Pd,at.Qd,at.format,null);if(Et!=0?Se=0:(Se!=null&&(Se[0]=at.width[0]),He!=null&&(He[0]=at.height[0]),Se=1),Se){te.width=te.width[0],te.height=te.height[0],Kt!=null&&(Kt[0]=te.width),dr!=null&&(dr[0]=te.height);e:{if(Kt=new Pa,(dr=new gs).data=be,dr.w=Ue,dr.ha=ht,dr.kd=1,Ue=[0],Ce(dr!=null),((be=Oo(dr.data,dr.w,dr.ha,null,null,null,Ue,null,dr))==0||be==7)&&Ue[0]&&(be=4),(Ue=be)==0){if(Ce(De!=null),Kt.data=dr.data,Kt.w=dr.w+dr.offset,Kt.ha=dr.ha-dr.offset,Kt.put=Ni,Kt.ac=_i,Kt.bc=jn,Kt.ma=De,dr.xa){if((be=bn())==null){De=1;break e}if(function(It,Nt){var vr=[0],Ir=[0],mr=[0];t:for(;;){if(It==null)return 0;if(Nt==null)return It.a=2,0;if(It.l=Nt,It.a=0,ki(It.m,Nt.data,Nt.w,Nt.ha),!Ii(It.m,vr,Ir,mr)){It.a=3;break t}if(It.xb=iu,Nt.width=vr[0],Nt.height=Ir[0],!Bn(vr[0],Ir[0],1,It,null))break t;return 1}return Ce(It.a!=0),0}(be,Kt)){if(Kt=(Ue=za(Kt.width,Kt.height,De.Oa,De.ba))==0){t:{Kt=be;r:for(;;){if(Kt==null){Kt=0;break t}if(Ce(Kt.s.yc!=null),Ce(Kt.s.Ya!=null),Ce(0<Kt.s.Wb),Ce((ht=Kt.l)!=null),Ce((dr=ht.ma)!=null),Kt.xb!=0){if(Kt.ca=dr.ba,Kt.tb=dr.tb,Ce(Kt.ca!=null),!yo(dr.Oa,ht,Vl)){Kt.a=2;break r}if(!Xn(Kt,ht.width))break r;if(ht.da)break r;if((ht.da||_n(Kt.ca.S))&&Ae(),11>Kt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Kt.ca.f.kb.F!=null&&Ae()),Kt.Pb&&0<Kt.s.ua&&Kt.s.vb.X==null&&!pi(Kt.s.vb,Kt.s.Wa.Xa)){Kt.a=1;break r}Kt.xb=0}if(!dn(Kt,Kt.V,Kt.Ba,Kt.c,Kt.i,ht.o,xr))break r;dr.Dc=Kt.Ma,Kt=1;break t}Ce(Kt.a!=0),Kt=0}Kt=!Kt}Kt&&(Ue=be.a)}else Ue=be.a}else{if((be=new ya)==null){De=1;break e}if(be.Fa=dr.na,be.P=dr.P,be.qc=dr.Sa,Ha(be,Kt)){if((Ue=za(Kt.width,Kt.height,De.Oa,De.ba))==0){if(be.Aa=0,ht=De.Oa,Ce((dr=be)!=null),ht!=null){if(0<(Se=0>(Se=ht.Md)?0:100<Se?255:255*Se/100)){for(He=at=0;4>He;++He)12>(Et=dr.pb[He]).lc&&(Et.ia=Se*Lu[0>Et.lc?0:Et.lc]>>3),at|=Et.ia;at&&(alert("todo:VP8InitRandom"),dr.ia=1)}dr.Ga=ht.Id,100<dr.Ga?dr.Ga=100:0>dr.Ga&&(dr.Ga=0)}Sa(be,Kt)||(Ue=be.a)}}else Ue=be.a}Ue==0&&De.Oa!=null&&De.Oa.fd&&(Ue=Mo(De.ba))}De=Ue}Tr=De!=0?null:11>Tr?te.f.RGBA.eb:te.f.kb.y}else Tr=null;return Tr};var ou=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function kt(ci,Pn){for(var xi="",gn=0;gn<4;gn++)xi+=String.fromCharCode(ci[Pn++]);return xi}function wr(ci,Pn){return(ci[Pn+0]<<0|ci[Pn+1]<<8|ci[Pn+2]<<16)>>>0}function pr(ci,Pn){return(ci[Pn+0]<<0|ci[Pn+1]<<8|ci[Pn+2]<<16|ci[Pn+3]<<24)>>>0}new lt;var _r=[0],Wt=[0],un=[],ir=new lt,Gr=Ye,kr=function(ci,Pn){var xi={},gn=0,zr=!1,Cn=0,on=0;if(xi.frames=[],!function(Fr,An,Un,Vn){for(var ti=0;ti<Vn;ti++)if(Fr[An+ti]!=Un.charCodeAt(ti))return!0;return!1}(ci,Pn,"RIFF",4)){var li,ri;for(pr(ci,Pn+=4),Pn+=8;Pn<ci.length;){var wi=kt(ci,Pn),Gn=pr(ci,Pn+=4);Pn+=4;var ki=Gn+(1&Gn);switch(wi){case"VP8 ":case"VP8L":xi.frames[gn]===void 0&&(xi.frames[gn]={}),(mn=xi.frames[gn]).src_off=zr?on:Pn-8,mn.src_size=Cn+Gn+8,gn++,zr&&(zr=!1,Cn=0,on=0);break;case"VP8X":(mn=xi.header={}).feature_flags=ci[Pn];var Jn=Pn+4;mn.canvas_width=1+wr(ci,Jn),Jn+=3,mn.canvas_height=1+wr(ci,Jn),Jn+=3;break;case"ALPH":zr=!0,Cn=ki+8,on=Pn-8;break;case"ANIM":(mn=xi.header).bgcolor=pr(ci,Pn),Jn=Pn+4,mn.loop_count=(li=ci)[(ri=Jn)+0]<<0|li[ri+1]<<8,Jn+=2;break;case"ANMF":var Pi,mn;(mn=xi.frames[gn]={}).offset_x=2*wr(ci,Pn),Pn+=3,mn.offset_y=2*wr(ci,Pn),Pn+=3,mn.width=1+wr(ci,Pn),Pn+=3,mn.height=1+wr(ci,Pn),Pn+=3,mn.duration=wr(ci,Pn),Pn+=3,Pi=ci[Pn++],mn.dispose=1&Pi,mn.blend=Pi>>1&1}wi!="ANMF"&&(Pn+=ki)}return xi}}(Gr,0);kr.response=Gr,kr.rgbaoutput=!0,kr.dataurl=!1;var yr=kr.header?kr.header:null,En=kr.frames?kr.frames:null;if(yr){yr.loop_counter=yr.loop_count,_r=[yr.canvas_height],Wt=[yr.canvas_width];for(var kn=0;kn<En.length&&En[kn].blend!=0;kn++);}var ii=En[0],oi=ir.WebPDecodeRGBA(Gr,ii.src_off,ii.src_size,Wt,_r);ii.rgba=oi,ii.imgwidth=Wt[0],ii.imgheight=_r[0];for(var ei=0;ei<Wt[0]*_r[0]*4;ei++)un[ei]=oi[ei];return this.width=Wt,this.height=_r,this.data=un,this}!function(Ye){var Ce=function(){return typeof g.b=="function"},ke=function(Wt,un,ir,Gr){var kr=4,yr=Ze;switch(Gr){case Ye.image_compression.FAST:kr=1,yr=We;break;case Ye.image_compression.MEDIUM:kr=6,yr=yt;break;case Ye.image_compression.SLOW:kr=9,yr=lt}Wt=Fe(Wt,un,ir,yr);var En=Object(g.b)(Wt,{level:kr});return Ye.__addimage__.arrayBufferToBinaryString(En)},Fe=function(Wt,un,ir,Gr){for(var kr,yr,En,kn=Wt.length/un,ii=new Uint8Array(Wt.length+kn),oi=wr(),ei=0;ei<kn;ei+=1){if(En=ei*un,kr=Wt.subarray(En,En+un),Gr)ii.set(Gr(kr,ir,yr),En+ei);else{for(var ci,Pn=oi.length,xi=[];ci<Pn;ci+=1)xi[ci]=oi[ci](kr,ir,yr);var gn=pr(xi.concat());ii.set(xi[gn],En+ei)}yr=kr}return ii},Ve=function(Wt){var un=Array.apply([],Wt);return un.unshift(0),un},We=function(Wt,un){var ir,Gr=[],kr=Wt.length;Gr[0]=1;for(var yr=0;yr<kr;yr+=1)ir=Wt[yr-un]||0,Gr[yr+1]=Wt[yr]-ir+256&255;return Gr},Ze=function(Wt,un,ir){var Gr,kr=[],yr=Wt.length;kr[0]=2;for(var En=0;En<yr;En+=1)Gr=ir&&ir[En]||0,kr[En+1]=Wt[En]-Gr+256&255;return kr},yt=function(Wt,un,ir){var Gr,kr,yr=[],En=Wt.length;yr[0]=3;for(var kn=0;kn<En;kn+=1)Gr=Wt[kn-un]||0,kr=ir&&ir[kn]||0,yr[kn+1]=Wt[kn]+256-(Gr+kr>>>1)&255;return yr},lt=function(Wt,un,ir){var Gr,kr,yr,En,kn=[],ii=Wt.length;kn[0]=4;for(var oi=0;oi<ii;oi+=1)Gr=Wt[oi-un]||0,kr=ir&&ir[oi]||0,yr=ir&&ir[oi-un]||0,En=kt(Gr,kr,yr),kn[oi+1]=Wt[oi]-En+256&255;return kn},kt=function(Wt,un,ir){if(Wt===un&&un===ir)return Wt;var Gr=Math.abs(un-ir),kr=Math.abs(Wt-ir),yr=Math.abs(Wt+un-ir-ir);return Gr<=kr&&Gr<=yr?Wt:kr<=yr?un:ir},wr=function(){return[Ve,We,Ze,yt,lt]},pr=function(Wt){var un=Wt.map(function(ir){return ir.reduce(function(Gr,kr){return Gr+Math.abs(kr)},0)});return un.indexOf(Math.min.apply(null,un))};Ye.processPNG=function(_r,Wt,un,ir){var Gr,kr,yr,En,kn,ii,oi,ei,ci,Pn,xi,gn,zr,Cn,on,li=this.decode.FLATE_DECODE,ri="";if(this.__addimage__.isArrayBuffer(_r)&&(_r=new Uint8Array(_r)),this.__addimage__.isArrayBufferView(_r)){if(_r=(yr=new nt(_r)).imgData,kr=yr.bits,Gr=yr.colorSpace,kn=yr.colors,[4,6].indexOf(yr.colorType)!==-1){if(yr.bits===8){ci=(ei=yr.pixelBitlength==32?new Uint32Array(yr.decodePixels().buffer):yr.pixelBitlength==16?new Uint16Array(yr.decodePixels().buffer):new Uint8Array(yr.decodePixels().buffer)).length,xi=new Uint8Array(ci*yr.colors),Pn=new Uint8Array(ci);var wi,Gn=yr.pixelBitlength-yr.bits;for(Cn=0,on=0;Cn<ci;Cn++){for(zr=ei[Cn],wi=0;wi<Gn;)xi[on++]=zr>>>wi&255,wi+=yr.bits;Pn[Cn]=zr>>>wi&255}}if(yr.bits===16){ci=(ei=new Uint32Array(yr.decodePixels().buffer)).length,xi=new Uint8Array(ci*(32/yr.pixelBitlength)*yr.colors),Pn=new Uint8Array(ci*(32/yr.pixelBitlength)),gn=yr.colors>1,Cn=0,on=0;for(var ki=0;Cn<ci;)zr=ei[Cn++],xi[on++]=zr>>>0&255,gn&&(xi[on++]=zr>>>16&255,zr=ei[Cn++],xi[on++]=zr>>>0&255),Pn[ki++]=zr>>>16&255;kr=8}ir!==Ye.image_compression.NONE&&Ce()?(_r=ke(xi,yr.width*yr.colors,yr.colors,ir),oi=ke(Pn,yr.width,1,ir)):(_r=xi,oi=Pn,li=void 0)}if(yr.colorType===3&&(Gr=this.color_spaces.INDEXED,ii=yr.palette,yr.transparency.indexed)){var Jn=yr.transparency.indexed,Pi=0;for(Cn=0,ci=Jn.length;Cn<ci;++Cn)Pi+=Jn[Cn];if((Pi/=255)===ci-1&&Jn.indexOf(0)!==-1)En=[Jn.indexOf(0)];else if(Pi!==ci){for(ei=yr.decodePixels(),Pn=new Uint8Array(ei.length),Cn=0,ci=ei.length;Cn<ci;Cn++)Pn[Cn]=Jn[ei[Cn]];oi=ke(Pn,yr.width,1)}}var mn=function(Fr){var An;switch(Fr){case Ye.image_compression.FAST:An=11;break;case Ye.image_compression.MEDIUM:An=13;break;case Ye.image_compression.SLOW:An=14;break;default:An=12}return An}(ir);return li===this.decode.FLATE_DECODE&&(ri="/Predictor "+mn+" "),ri+="/Colors "+kn+" /BitsPerComponent "+kr+" /Columns "+yr.width,(this.__addimage__.isArrayBuffer(_r)||this.__addimage__.isArrayBufferView(_r))&&(_r=this.__addimage__.arrayBufferToBinaryString(_r)),(oi&&this.__addimage__.isArrayBuffer(oi)||this.__addimage__.isArrayBufferView(oi))&&(oi=this.__addimage__.arrayBufferToBinaryString(oi)),{alias:un,data:_r,index:Wt,filter:li,decodeParameters:ri,transparency:En,palette:ii,sMask:oi,predictor:mn,width:yr.width,height:yr.height,bitsPerComponent:kr,colorSpace:Gr}}}}(K.API),function(Ye){Ye.processGIF89A=function(Ce,ke,Fe,Ve){var We=new Vt(Ce),Ze=We.width,yt=We.height,lt=[];We.decodeAndBlitFrameRGBA(0,lt);var kt={data:lt,width:Ze,height:yt},wr=new Xt(100).encode(kt,100);return Ye.processJPEG.call(this,wr,ke,Fe,Ve)},Ye.processGIF87A=Ye.processGIF89A}(K.API),Rr.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 Ye=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Ye);for(var Ce=0;Ce<Ye;Ce++){var ke=this.datav.getUint8(this.pos++,!0),Fe=this.datav.getUint8(this.pos++,!0),Ve=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0);this.palette[Ce]={red:Ve,green:Fe,blue:ke,quad:We}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Rr.prototype.parseBGR=function(){this.pos=this.offset;try{var Ye="bit"+this.bitPP,Ce=this.width*this.height*4;this.data=new Uint8Array(Ce),this[Ye]()}catch(ke){h.log("bit decode error:"+ke)}},Rr.prototype.bit1=function(){var Ye,Ce=Math.ceil(this.width/8),ke=Ce%4;for(Ye=this.height-1;Ye>=0;Ye--){for(var Fe=this.bottom_up?Ye:this.height-1-Ye,Ve=0;Ve<Ce;Ve++)for(var We=this.datav.getUint8(this.pos++,!0),Ze=Fe*this.width*4+8*Ve*4,yt=0;yt<8&&8*Ve+yt<this.width;yt++){var lt=this.palette[We>>7-yt&1];this.data[Ze+4*yt]=lt.blue,this.data[Ze+4*yt+1]=lt.green,this.data[Ze+4*yt+2]=lt.red,this.data[Ze+4*yt+3]=255}ke!==0&&(this.pos+=4-ke)}},Rr.prototype.bit4=function(){for(var Ye=Math.ceil(this.width/2),Ce=Ye%4,ke=this.height-1;ke>=0;ke--){for(var Fe=this.bottom_up?ke:this.height-1-ke,Ve=0;Ve<Ye;Ve++){var We=this.datav.getUint8(this.pos++,!0),Ze=Fe*this.width*4+2*Ve*4,yt=We>>4,lt=15&We,kt=this.palette[yt];if(this.data[Ze]=kt.blue,this.data[Ze+1]=kt.green,this.data[Ze+2]=kt.red,this.data[Ze+3]=255,2*Ve+1>=this.width)break;kt=this.palette[lt],this.data[Ze+4]=kt.blue,this.data[Ze+4+1]=kt.green,this.data[Ze+4+2]=kt.red,this.data[Ze+4+3]=255}Ce!==0&&(this.pos+=4-Ce)}},Rr.prototype.bit8=function(){for(var Ye=this.width%4,Ce=this.height-1;Ce>=0;Ce--){for(var ke=this.bottom_up?Ce:this.height-1-Ce,Fe=0;Fe<this.width;Fe++){var Ve=this.datav.getUint8(this.pos++,!0),We=ke*this.width*4+4*Fe;if(Ve<this.palette.length){var Ze=this.palette[Ve];this.data[We]=Ze.red,this.data[We+1]=Ze.green,this.data[We+2]=Ze.blue,this.data[We+3]=255}else this.data[We]=255,this.data[We+1]=255,this.data[We+2]=255,this.data[We+3]=255}Ye!==0&&(this.pos+=4-Ye)}},Rr.prototype.bit15=function(){for(var Ye=this.width%3,Ce=parseInt("11111",2),ke=this.height-1;ke>=0;ke--){for(var Fe=this.bottom_up?ke:this.height-1-ke,Ve=0;Ve<this.width;Ve++){var We=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ze=(We&Ce)/Ce*255|0,yt=(We>>5&Ce)/Ce*255|0,lt=(We>>10&Ce)/Ce*255|0,kt=We>>15?255:0,wr=Fe*this.width*4+4*Ve;this.data[wr]=lt,this.data[wr+1]=yt,this.data[wr+2]=Ze,this.data[wr+3]=kt}this.pos+=Ye}},Rr.prototype.bit16=function(){for(var Ye=this.width%3,Ce=parseInt("11111",2),ke=parseInt("111111",2),Fe=this.height-1;Fe>=0;Fe--){for(var Ve=this.bottom_up?Fe:this.height-1-Fe,We=0;We<this.width;We++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var yt=(Ze&Ce)/Ce*255|0,lt=(Ze>>5&ke)/ke*255|0,kt=(Ze>>11)/Ce*255|0,wr=Ve*this.width*4+4*We;this.data[wr]=kt,this.data[wr+1]=lt,this.data[wr+2]=yt,this.data[wr+3]=255}this.pos+=Ye}},Rr.prototype.bit24=function(){for(var Ye=this.height-1;Ye>=0;Ye--){for(var Ce=this.bottom_up?Ye:this.height-1-Ye,ke=0;ke<this.width;ke++){var Fe=this.datav.getUint8(this.pos++,!0),Ve=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0),Ze=Ce*this.width*4+4*ke;this.data[Ze]=We,this.data[Ze+1]=Ve,this.data[Ze+2]=Fe,this.data[Ze+3]=255}this.pos+=this.width%4}},Rr.prototype.bit32=function(){for(var Ye=this.height-1;Ye>=0;Ye--)for(var Ce=this.bottom_up?Ye:this.height-1-Ye,ke=0;ke<this.width;ke++){var Fe=this.datav.getUint8(this.pos++,!0),Ve=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),yt=Ce*this.width*4+4*ke;this.data[yt]=We,this.data[yt+1]=Ve,this.data[yt+2]=Fe,this.data[yt+3]=Ze}},Rr.prototype.getData=function(){return this.data},function(Ye){Ye.processBMP=function(Ce,ke,Fe,Ve){var We=new Rr(Ce,!1),Ze=We.width,yt=We.height,lt={data:We.getData(),width:Ze,height:yt},kt=new Xt(100).encode(lt,100);return Ye.processJPEG.call(this,kt,ke,Fe,Ve)}}(K.API),Br.prototype.getData=function(){return this.data},function(Ye){Ye.processWEBP=function(Ce,ke,Fe,Ve){var We=new Br(Ce,!1),Ze=We.width,yt=We.height,lt={data:We.getData(),width:Ze,height:yt},kt=new Xt(100).encode(lt,100);return Ye.processJPEG.call(this,kt,ke,Fe,Ve)}}(K.API),K.API.processRGBA=function(Ye,Ce,ke){for(var Fe=Ye.data,Ve=Fe.length,We=new Uint8Array(Ve/4*3),Ze=new Uint8Array(Ve/4),yt=0,lt=0,kt=0;kt<Ve;kt+=4){var wr=Fe[kt],pr=Fe[kt+1],_r=Fe[kt+2],Wt=Fe[kt+3];We[yt++]=wr,We[yt++]=pr,We[yt++]=_r,Ze[lt++]=Wt}var un=this.__addimage__.arrayBufferToBinaryString(We);return{alpha:this.__addimage__.arrayBufferToBinaryString(Ze),data:un,index:Ce,alias:ke,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Ye.width,height:Ye.height}},K.API.setLanguage=function(Ye){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"}[Ye]!==void 0&&(this.internal.languageSettings.languageCode=Ye,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},$e=K.API,tt=$e.getCharWidthsArray=function(Ye,Ce){var ke,Fe,Ve=(Ce=Ce||{}).font||this.internal.getFont(),We=Ce.fontSize||this.internal.getFontSize(),Ze=Ce.charSpace||this.internal.getCharSpace(),yt=Ce.widths?Ce.widths:Ve.metadata.Unicode.widths,lt=yt.fof?yt.fof:1,kt=Ce.kerning?Ce.kerning:Ve.metadata.Unicode.kerning,wr=kt.fof?kt.fof:1,pr=Ce.doKerning!==!1,_r=0,Wt=Ye.length,un=0,ir=yt[0]||lt,Gr=[];for(ke=0;ke<Wt;ke++)Fe=Ye.charCodeAt(ke),typeof Ve.metadata.widthOfString=="function"?Gr.push((Ve.metadata.widthOfGlyph(Ve.metadata.characterToGlyph(Fe))+Ze*(1e3/We)||0)/1e3):(_r=pr&&T()(kt[Fe])==="object"&&!isNaN(parseInt(kt[Fe][un],10))?kt[Fe][un]/wr:0,Gr.push((yt[Fe]||ir)/lt+_r)),un=Fe;return Gr},Ee=$e.getStringUnitWidth=function(Ye,Ce){var ke=(Ce=Ce||{}).fontSize||this.internal.getFontSize(),Fe=Ce.font||this.internal.getFont(),Ve=Ce.charSpace||this.internal.getCharSpace();return $e.processArabic&&(Ye=$e.processArabic(Ye)),typeof Fe.metadata.widthOfString=="function"?Fe.metadata.widthOfString(Ye,ke,Ve)/ke:tt.apply(this,arguments).reduce(function(We,Ze){return We+Ze},0)},Re=function(Ce,ke,Fe,Ve){for(var We=[],Ze=0,yt=Ce.length,lt=0;Ze!==yt&<+ke[Ze]<Fe;)lt+=ke[Ze],Ze++;We.push(Ce.slice(0,Ze));var kt=Ze;for(lt=0;Ze!==yt;)lt+ke[Ze]>Ve&&(We.push(Ce.slice(kt,Ze)),lt=0,kt=Ze),lt+=ke[Ze],Ze++;return kt!==Ze&&We.push(Ce.slice(kt,Ze)),We},je=function(Ce,ke,Fe){Fe||(Fe={});var Ve,We,Ze,yt,lt,kt,wr,pr=[],_r=[pr],Wt=Fe.textIndent||0,un=0,ir=0,Gr=Ce.split(" "),kr=tt.apply(this,[" ",Fe])[0];if(kt=Fe.lineIndent===-1?Gr[0].length+2:Fe.lineIndent||0){var yr=Array(kt).join(" "),En=[];Gr.map(function(ii){(ii=ii.split(/\s*\n/)).length>1?En=En.concat(ii.map(function(oi,ei){return(ei&&oi.length?`
|
|
|
`:"")+oi})):En.push(ii[0])}),Gr=En,kt=Ee.apply(this,[yr,Fe])}for(Ze=0,yt=Gr.length;Ze<yt;Ze++){var kn=0;if(Ve=Gr[Ze],kt&&Ve[0]==`
|
|
|
`&&(Ve=Ve.substr(1),kn=1),Wt+un+(ir=(We=tt.apply(this,[Ve,Fe])).reduce(function(ii,oi){return ii+oi},0))>ke||kn){if(ir>ke){for(lt=Re.apply(this,[Ve,We,ke-(Wt+un),ke]),pr.push(lt.shift()),pr=[lt.pop()];lt.length;)_r.push([lt.shift()]);ir=We.slice(Ve.length-(pr[0]?pr[0].length:0)).reduce(function(ii,oi){return ii+oi},0)}else pr=[Ve];_r.push(pr),Wt=ir+kt,un=kr}else pr.push(Ve),Wt+=un+ir,un=kr}return wr=kt?function(ii,oi){return(oi?yr:"")+ii.join(" ")}:function(ii){return ii.join(" ")},_r.map(wr)},$e.splitTextToSize=function(Ye,Ce,ke){var Fe,Ve=(ke=ke||{}).fontSize||this.internal.getFontSize(),We=function(wr){if(wr.widths&&wr.kerning)return{widths:wr.widths,kerning:wr.kerning};var pr=this.internal.getFont(wr.fontName,wr.fontStyle);return pr.metadata.Unicode?{widths:pr.metadata.Unicode.widths||{0:1},kerning:pr.metadata.Unicode.kerning||{}}:{font:pr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,ke);Fe=Array.isArray(Ye)?Ye:String(Ye).split(/\r?\n/);var Ze=1*this.internal.scaleFactor*Ce/Ve;We.textIndent=ke.textIndent?1*ke.textIndent*this.internal.scaleFactor/Ve:0,We.lineIndent=ke.lineIndent;var yt,lt,kt=[];for(yt=0,lt=Fe.length;yt<lt;yt++)kt=kt.concat(je.apply(this,[Fe[yt],Ze,We]));return kt},function(Ye){Ye.__fontmetrics__=Ye.__fontmetrics__||{};for(var Ce="klmnopqrstuvwxyz",ke={},Fe={},Ve=0;Ve<Ce.length;Ve++)ke[Ce[Ve]]="0123456789abcdef"[Ve],Fe["0123456789abcdef"[Ve]]=Ce[Ve];var We=function(_r){return"0x"+parseInt(_r,10).toString(16)},Ze=Ye.__fontmetrics__.compress=function(pr){var _r,Wt,un,ir,Gr=["{"];for(var kr in pr){if(_r=pr[kr],isNaN(parseInt(kr,10))?Wt="'"+kr+"'":(kr=parseInt(kr,10),Wt=(Wt=We(kr).slice(2)).slice(0,-1)+Fe[Wt.slice(-1)]),typeof _r=="number")_r<0?(un=We(_r).slice(3),ir="-"):(un=We(_r).slice(2),ir=""),un=ir+un.slice(0,-1)+Fe[un.slice(-1)];else{if(T()(_r)!=="object")throw new Error("Don't know what to do with value type "+T()(_r)+".");un=Ze(_r)}Gr.push(Wt+un)}return Gr.push("}"),Gr.join("")},yt=Ye.__fontmetrics__.uncompress=function(pr){if(typeof pr!="string")throw new Error("Invalid argument passed to uncompress.");for(var _r,Wt,un,ir,Gr={},kr=1,yr=Gr,En=[],kn="",ii="",oi=pr.length-1,ei=1;ei<oi;ei+=1)(ir=pr[ei])=="'"?_r?(un=_r.join(""),_r=void 0):_r=[]:_r?_r.push(ir):ir=="{"?(En.push([yr,un]),yr={},un=void 0):ir=="}"?((Wt=En.pop())[0][Wt[1]]=yr,un=void 0,yr=Wt[0]):ir=="-"?kr=-1:un===void 0?ke.hasOwnProperty(ir)?(kn+=ke[ir],un=parseInt(kn,16)*kr,kr=1,kn=""):kn+=ir:ke.hasOwnProperty(ir)?(ii+=ke[ir],yr[un]=parseInt(ii,16)*kr,kr=1,un=void 0,ii=""):ii+=ir;return Gr},lt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:yt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},kt={Unicode:{Courier:lt,"Courier-Bold":lt,"Courier-BoldOblique":lt,"Courier-Oblique":lt,Helvetica:lt,"Helvetica-Bold":lt,"Helvetica-BoldOblique":lt,"Helvetica-Oblique":lt,"Times-Roman":lt,"Times-Bold":lt,"Times-BoldItalic":lt,"Times-Italic":lt}},wr={Unicode:{"Courier-Oblique":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":yt("{'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":yt("{'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:yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":yt("{'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:yt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:yt("{'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":yt("{'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:yt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":yt("{'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":yt("{'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":yt("{'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}}}")}};Ye.events.push(["addFont",function(pr){var _r=pr.font,Wt=wr.Unicode[_r.postScriptName];Wt&&(_r.metadata.Unicode={},_r.metadata.Unicode.widths=Wt.widths,_r.metadata.Unicode.kerning=Wt.kerning);var un=kt.Unicode[_r.postScriptName];un&&(_r.metadata.Unicode.encoding=un,_r.encoding=un.codePages[0])}])}(K.API),function(Ye){var Ce=function(Fe){for(var Ve=Fe.length,We=new Uint8Array(Ve),Ze=0;Ze<Ve;Ze++)We[Ze]=Fe.charCodeAt(Ze);return We};Ye.API.events.push(["addFont",function(ke){var Fe=void 0,Ve=ke.font,We=ke.instance;if(!Ve.isStandardFont){if(We===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ve.postScriptName+"').");if(typeof(Fe=We.existsFileInVFS(Ve.postScriptName)===!1?We.loadFile(Ve.postScriptName):We.getFileFromVFS(Ve.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ve.postScriptName+"').");!function(Ze,yt){yt=/^\x00\x01\x00\x00/.test(yt)?Ce(yt):Ce(i(yt)),Ze.metadata=Ye.API.TTFFont.open(yt),Ze.metadata.Unicode=Ze.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Ze.metadata.glyIdsUsed=[0]}(Ve,Fe)}}])}(K),function(Ye){function Ce(){return(S.canvg?Promise.resolve(S.canvg):Promise.all([d.e(0),d.e(235)]).then(d.bind(null,"DXPr"))).catch(function(ke){return Promise.reject(new Error("Could not load canvg: "+ke))}).then(function(ke){return ke.default?ke.default:ke})}K.API.addSvgAsImage=function(ke,Fe,Ve,We,Ze,yt,lt,kt){if(isNaN(Fe)||isNaN(Ve))throw h.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(We)||isNaN(Ze))throw h.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var wr=document.createElement("canvas");wr.width=We,wr.height=Ze;var pr=wr.getContext("2d");pr.fillStyle="#fff",pr.fillRect(0,0,wr.width,wr.height);var _r={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Wt=this;return Ce().then(function(un){return un.fromString(pr,ke,_r)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(un){return un.render(_r)}).then(function(){Wt.addImage(wr.toDataURL("image/jpeg",1),Fe,Ve,We,Ze,lt,kt)})}}(),K.API.putTotalPages=function(Ye){var Ce,ke=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Ce=new RegExp(Ye,"g"),ke=this.internal.getNumberOfPages()):(Ce=new RegExp(this.pdfEscape16(Ye,this.internal.getFont()),"g"),ke=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Fe=1;Fe<=this.internal.getNumberOfPages();Fe++)for(var Ve=0;Ve<this.internal.pages[Fe].length;Ve++)this.internal.pages[Fe][Ve]=this.internal.pages[Fe][Ve].replace(Ce,ke);return this},K.API.viewerPreferences=function(Ye,Ce){var ke;Ye=Ye||{},Ce=Ce||!1;var Fe,Ve,We,Ze={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}},yt=Object.keys(Ze),lt=[],kt=0,wr=0,pr=0;function _r(un,ir){var Gr,kr=!1;for(Gr=0;Gr<un.length;Gr+=1)un[Gr]===ir&&(kr=!0);return kr}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Ze)),this.internal.viewerpreferences.isSubscribed=!1),ke=this.internal.viewerpreferences.configuration,Ye==="reset"||Ce===!0){var Wt=yt.length;for(pr=0;pr<Wt;pr+=1)ke[yt[pr]].value=ke[yt[pr]].defaultValue,ke[yt[pr]].explicitSet=!1}if(T()(Ye)==="object"){for(Ve in Ye)if(We=Ye[Ve],_r(yt,Ve)&&We!==void 0){if(ke[Ve].type==="boolean"&&typeof We=="boolean")ke[Ve].value=We;else if(ke[Ve].type==="name"&&_r(ke[Ve].valueSet,We))ke[Ve].value=We;else if(ke[Ve].type==="integer"&&Number.isInteger(We))ke[Ve].value=We;else if(ke[Ve].type==="array"){for(kt=0;kt<We.length;kt+=1)if(Fe=!0,We[kt].length===1&&typeof We[kt][0]=="number")lt.push(String(We[kt]-1));else if(We[kt].length>1){for(wr=0;wr<We[kt].length;wr+=1)typeof We[kt][wr]!="number"&&(Fe=!1);Fe===!0&<.push([We[kt][0]-1,We[kt][1]-1].join(" "))}ke[Ve].value="["+lt.join(" ")+"]"}else ke[Ve].value=ke[Ve].defaultValue;ke[Ve].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var un,ir=[];for(un in ke)ke[un].explicitSet===!0&&(ke[un].type==="name"?ir.push("/"+un+" /"+ke[un].value):ir.push("/"+un+" "+ke[un].value));ir.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+ir.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=ke,this},function(Ye){var Ce=function(){var Ve='<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>',We=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Ze=unescape(encodeURIComponent(Ve)),yt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),lt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),kt=unescape(encodeURIComponent("</x:xmpmeta>")),wr=Ze.length+yt.length+lt.length+We.length+kt.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+wr+" >>"),this.internal.write("stream"),this.internal.write(We+Ze+yt+lt+kt),this.internal.write("endstream"),this.internal.write("endobj")},ke=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Ye.addMetadata=function(Fe,Ve){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Fe,namespaceuri:Ve||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",ke),this.internal.events.subscribe("postPutResources",Ce)),this}}(K.API),function(Ye){var Ce=Ye.API,ke=Ce.pdfEscape16=function(We,Ze){for(var yt,lt=Ze.metadata.Unicode.widths,kt=["","0","00","000","0000"],wr=[""],pr=0,_r=We.length;pr<_r;++pr){if(yt=Ze.metadata.characterToGlyph(We.charCodeAt(pr)),Ze.metadata.glyIdsUsed.push(yt),Ze.metadata.toUnicode[yt]=We.charCodeAt(pr),lt.indexOf(yt)==-1&&(lt.push(yt),lt.push([parseInt(Ze.metadata.widthOfGlyph(yt),10)])),yt=="0")return wr.join("");yt=yt.toString(16),wr.push(kt[4-yt.length],yt)}return wr.join("")},Fe=function(Ze){var yt,lt,kt,wr,pr,_r,Wt;for(pr=`/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`,kt=[],_r=0,Wt=(lt=Object.keys(Ze).sort(function(un,ir){return un-ir})).length;_r<Wt;_r++)yt=lt[_r],kt.length>=100&&(pr+=`
|
|
|
`+kt.length+` beginbfchar
|
|
|
`+kt.join(`
|
|
|
`)+`
|
|
|
endbfchar`,kt=[]),Ze[yt]!==void 0&&Ze[yt]!==null&&typeof Ze[yt].toString=="function"&&(wr=("0000"+Ze[yt].toString(16)).slice(-4),yt=("0000"+(+yt).toString(16)).slice(-4),kt.push("<"+yt+"><"+wr+">"));return kt.length&&(pr+=`
|
|
|
`+kt.length+` beginbfchar
|
|
|
`+kt.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),pr+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};Ce.events.push(["putFont",function(We){!function(Ze){var yt=Ze.font,lt=Ze.out,kt=Ze.newObject,wr=Ze.putStream;if(yt.metadata instanceof Ye.API.TTFFont&&yt.encoding==="Identity-H"){for(var pr=yt.metadata.Unicode.widths,_r=yt.metadata.subset.encode(yt.metadata.glyIdsUsed,1),Wt="",un=0;un<_r.length;un++)Wt+=String.fromCharCode(_r[un]);var ir=kt();wr({data:Wt,addLength1:!0,objectId:ir}),lt("endobj");var Gr=kt();wr({data:Fe(yt.metadata.toUnicode),addLength1:!0,objectId:Gr}),lt("endobj");var kr=kt();lt("<<"),lt("/Type /FontDescriptor"),lt("/FontName /"+N(yt.fontName)),lt("/FontFile2 "+ir+" 0 R"),lt("/FontBBox "+Ye.API.PDFObject.convert(yt.metadata.bbox)),lt("/Flags "+yt.metadata.flags),lt("/StemV "+yt.metadata.stemV),lt("/ItalicAngle "+yt.metadata.italicAngle),lt("/Ascent "+yt.metadata.ascender),lt("/Descent "+yt.metadata.decender),lt("/CapHeight "+yt.metadata.capHeight),lt(">>"),lt("endobj");var yr=kt();lt("<<"),lt("/Type /Font"),lt("/BaseFont /"+N(yt.fontName)),lt("/FontDescriptor "+kr+" 0 R"),lt("/W "+Ye.API.PDFObject.convert(pr)),lt("/CIDToGIDMap /Identity"),lt("/DW 1000"),lt("/Subtype /CIDFontType2"),lt("/CIDSystemInfo"),lt("<<"),lt("/Supplement 0"),lt("/Registry (Adobe)"),lt("/Ordering ("+yt.encoding+")"),lt(">>"),lt(">>"),lt("endobj"),yt.objectNumber=kt(),lt("<<"),lt("/Type /Font"),lt("/Subtype /Type0"),lt("/ToUnicode "+Gr+" 0 R"),lt("/BaseFont /"+N(yt.fontName)),lt("/Encoding /"+yt.encoding),lt("/DescendantFonts ["+yr+" 0 R]"),lt(">>"),lt("endobj"),yt.isAlreadyPutted=!0}}(We)}]),Ce.events.push(["putFont",function(We){!function(Ze){var yt=Ze.font,lt=Ze.out,kt=Ze.newObject,wr=Ze.putStream;if(yt.metadata instanceof Ye.API.TTFFont&&yt.encoding==="WinAnsiEncoding"){for(var pr=yt.metadata.rawData,_r="",Wt=0;Wt<pr.length;Wt++)_r+=String.fromCharCode(pr[Wt]);var un=kt();wr({data:_r,addLength1:!0,objectId:un}),lt("endobj");var ir=kt();wr({data:Fe(yt.metadata.toUnicode),addLength1:!0,objectId:ir}),lt("endobj");var Gr=kt();lt("<<"),lt("/Descent "+yt.metadata.decender),lt("/CapHeight "+yt.metadata.capHeight),lt("/StemV "+yt.metadata.stemV),lt("/Type /FontDescriptor"),lt("/FontFile2 "+un+" 0 R"),lt("/Flags 96"),lt("/FontBBox "+Ye.API.PDFObject.convert(yt.metadata.bbox)),lt("/FontName /"+N(yt.fontName)),lt("/ItalicAngle "+yt.metadata.italicAngle),lt("/Ascent "+yt.metadata.ascender),lt(">>"),lt("endobj"),yt.objectNumber=kt();for(var kr=0;kr<yt.metadata.hmtx.widths.length;kr++)yt.metadata.hmtx.widths[kr]=parseInt(yt.metadata.hmtx.widths[kr]*(1e3/yt.metadata.head.unitsPerEm));lt("<</Subtype/TrueType/Type/Font/ToUnicode "+ir+" 0 R/BaseFont/"+N(yt.fontName)+"/FontDescriptor "+Gr+" 0 R/Encoding/"+yt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Ye.API.PDFObject.convert(yt.metadata.hmtx.widths)+">>"),lt("endobj"),yt.isAlreadyPutted=!0}}(We)}]);var Ve=function(Ze){var yt,lt=Ze.text||"",kt=Ze.x,wr=Ze.y,pr=Ze.options||{},_r=Ze.mutex||{},Wt=_r.pdfEscape,un=_r.activeFontKey,ir=_r.fonts,Gr=un,kr="",yr=0,En="",kn=ir[Gr].encoding;if(ir[Gr].encoding!=="Identity-H")return{text:lt,x:kt,y:wr,options:pr,mutex:_r};for(En=lt,Gr=un,Array.isArray(lt)&&(En=lt[0]),yr=0;yr<En.length;yr+=1)ir[Gr].metadata.hasOwnProperty("cmap")&&(yt=ir[Gr].metadata.cmap.unicode.codeMap[En[yr].charCodeAt(0)]),yt||En[yr].charCodeAt(0)<256&&ir[Gr].metadata.hasOwnProperty("Unicode")?kr+=En[yr]:kr+="";var ii="";return parseInt(Gr.slice(1))<14||kn==="WinAnsiEncoding"?ii=Wt(kr,Gr).split("").map(function(oi){return oi.charCodeAt(0).toString(16)}).join(""):kn==="Identity-H"&&(ii=ke(kr,ir[Gr])),_r.isHex=!0,{text:ii,x:kt,y:wr,options:pr,mutex:_r}};Ce.events.push(["postProcessText",function(We){var Ze=We.text||"",yt=[],lt={text:Ze,x:We.x,y:We.y,options:We.options,mutex:We.mutex};if(Array.isArray(Ze)){var kt=0;for(kt=0;kt<Ze.length;kt+=1)Array.isArray(Ze[kt])&&Ze[kt].length===3?yt.push([Ve(Object.assign({},lt,{text:Ze[kt][0]})).text,Ze[kt][1],Ze[kt][2]]):yt.push(Ve(Object.assign({},lt,{text:Ze[kt]})).text);We.text=yt}else We.text=Ve(Object.assign({},lt,{text:Ze})).text}])}(K),function(Ye){var Ce=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Ye.existsFileInVFS=function(ke){return Ce.call(this),this.internal.vFS[ke]!==void 0},Ye.addFileToVFS=function(ke,Fe){return Ce.call(this),this.internal.vFS[ke]=Fe,this},Ye.getFileFromVFS=function(ke){return Ce.call(this),this.internal.vFS[ke]!==void 0?this.internal.vFS[ke]:null}}(K.API),function(Ye){Ye.__bidiEngine__=Ye.prototype.__bidiEngine__=function(Fe){var Ve,We,Ze,yt,lt,kt,wr,pr=Ce,_r=[[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]],Wt=[[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]],un={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ir={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Gr=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],kr=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)$/),yr=!1,En=0;this.__bidiEngine__={};var kn=function(zr){var Cn=zr.charCodeAt(),on=Cn>>8,li=ir[on];return li!==void 0?pr[256*li+(255&Cn)]:on===252||on===253?"AL":kr.test(on)?"L":on===8?"R":"N"},ii=function(zr){for(var Cn,on=0;on<zr.length;on++){if((Cn=kn(zr.charAt(on)))==="L")return!1;if(Cn==="R")return!0}return!1},oi=function(zr,Cn,on,li){var ri,wi,Gn,ki,Jn=Cn[li];switch(Jn){case"L":case"R":yr=!1;break;case"N":case"AN":break;case"EN":yr&&(Jn="AN");break;case"AL":yr=!0,Jn="R";break;case"WS":Jn="N";break;case"CS":li<1||li+1>=Cn.length||(ri=on[li-1])!=="EN"&&ri!=="AN"||(wi=Cn[li+1])!=="EN"&&wi!=="AN"?Jn="N":yr&&(wi="AN"),Jn=wi===ri?wi:"N";break;case"ES":Jn=(ri=li>0?on[li-1]:"B")==="EN"&&li+1<Cn.length&&Cn[li+1]==="EN"?"EN":"N";break;case"ET":if(li>0&&on[li-1]==="EN"){Jn="EN";break}if(yr){Jn="N";break}for(Gn=li+1,ki=Cn.length;Gn<ki&&Cn[Gn]==="ET";)Gn++;Jn=Gn<ki&&Cn[Gn]==="EN"?"EN":"N";break;case"NSM":if(Ze&&!yt){for(ki=Cn.length,Gn=li+1;Gn<ki&&Cn[Gn]==="NSM";)Gn++;if(Gn<ki){var Pi=zr[li],mn=Pi>=1425&&Pi<=2303||Pi===64286;if(ri=Cn[Gn],mn&&(ri==="R"||ri==="AL")){Jn="R";break}}}Jn=li<1||(ri=Cn[li-1])==="B"?"N":on[li-1];break;case"B":yr=!1,Ve=!0,Jn=En;break;case"S":We=!0,Jn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":yr=!1;break;case"BN":Jn="N"}return Jn},ei=function(zr,Cn,on){var li=zr.split("");return on&&ci(li,on,{hiLevel:En}),li.reverse(),Cn&&Cn.reverse(),li.join("")},ci=function(zr,Cn,on){var li,ri,wi,Gn,ki,Jn=-1,Pi=zr.length,mn=0,Fr=[],An=En?Wt:_r,Un=[];for(yr=!1,Ve=!1,We=!1,ri=0;ri<Pi;ri++)Un[ri]=kn(zr[ri]);for(wi=0;wi<Pi;wi++){if(ki=mn,Fr[wi]=oi(zr,Un,Fr,wi),li=240&(mn=An[ki][un[Fr[wi]]]),mn&=15,Cn[wi]=Gn=An[mn][5],li>0)if(li===16){for(ri=Jn;ri<wi;ri++)Cn[ri]=1;Jn=-1}else Jn=-1;if(An[mn][6])Jn===-1&&(Jn=wi);else if(Jn>-1){for(ri=Jn;ri<wi;ri++)Cn[ri]=Gn;Jn=-1}Un[wi]==="B"&&(Cn[wi]=0),on.hiLevel|=Gn}We&&function(Vn,ti,di){for(var fi=0;fi<di;fi++)if(Vn[fi]==="S"){ti[fi]=En;for(var mi=fi-1;mi>=0&&Vn[mi]==="WS";mi--)ti[mi]=En}}(Un,Cn,Pi)},Pn=function(zr,Cn,on,li,ri){if(!(ri.hiLevel<zr)){if(zr===1&&En===1&&!Ve)return Cn.reverse(),void(on&&on.reverse());for(var wi,Gn,ki,Jn,Pi=Cn.length,mn=0;mn<Pi;){if(li[mn]>=zr){for(ki=mn+1;ki<Pi&&li[ki]>=zr;)ki++;for(Jn=mn,Gn=ki-1;Jn<Gn;Jn++,Gn--)wi=Cn[Jn],Cn[Jn]=Cn[Gn],Cn[Gn]=wi,on&&(wi=on[Jn],on[Jn]=on[Gn],on[Gn]=wi);mn=ki}mn++}}},xi=function(zr,Cn,on){var li=zr.split(""),ri={hiLevel:En};return on||(on=[]),ci(li,on,ri),function(wi,Gn,ki){if(ki.hiLevel!==0&&wr)for(var Jn,Pi=0;Pi<wi.length;Pi++)Gn[Pi]===1&&(Jn=Gr.indexOf(wi[Pi]))>=0&&(wi[Pi]=Gr[Jn+1])}(li,on,ri),Pn(2,li,Cn,on,ri),Pn(1,li,Cn,on,ri),li.join("")};return this.__bidiEngine__.doBidiReorder=function(gn,zr,Cn){if(function(li,ri){if(ri)for(var wi=0;wi<li.length;wi++)ri[wi]=wi;yt===void 0&&(yt=ii(li)),kt===void 0&&(kt=ii(li))}(gn,zr),Ze||!lt||kt)if(Ze&<&&yt^kt)En=yt?1:0,gn=ei(gn,zr,Cn);else if(!Ze&<&&kt)En=yt?1:0,gn=xi(gn,zr,Cn),gn=ei(gn,zr);else if(!Ze||yt||lt||kt){if(Ze&&!lt&&yt^kt)gn=ei(gn,zr),yt?(En=0,gn=xi(gn,zr,Cn)):(En=1,gn=xi(gn,zr,Cn),gn=ei(gn,zr));else if(Ze&&yt&&!lt&&kt)En=1,gn=xi(gn,zr,Cn),gn=ei(gn,zr);else if(!Ze&&!lt&&yt^kt){var on=wr;yt?(En=1,gn=xi(gn,zr,Cn),En=0,wr=!1,gn=xi(gn,zr,Cn),wr=on):(En=0,gn=xi(gn,zr,Cn),gn=ei(gn,zr),En=1,wr=!1,gn=xi(gn,zr,Cn),wr=on,gn=ei(gn,zr))}}else En=0,gn=xi(gn,zr,Cn);else En=yt?1:0,gn=xi(gn,zr,Cn);return gn},this.__bidiEngine__.setOptions=function(gn){gn&&(Ze=gn.isInputVisual,lt=gn.isOutputVisual,yt=gn.isInputRtl,kt=gn.isOutputRtl,wr=gn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Fe),this.__bidiEngine__};var Ce=["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"],ke=new Ye.__bidiEngine__({isInputVisual:!0});Ye.API.events.push(["postProcessText",function(Fe){var Ve=Fe.text,We=(Fe.x,Fe.y,Fe.options||{}),Ze=(Fe.mutex,We.lang,[]);if(We.isInputVisual=typeof We.isInputVisual!="boolean"||We.isInputVisual,ke.setOptions(We),Object.prototype.toString.call(Ve)==="[object Array]"){var yt=0;for(Ze=[],yt=0;yt<Ve.length;yt+=1)Object.prototype.toString.call(Ve[yt])==="[object Array]"?Ze.push([ke.doBidiReorder(Ve[yt][0]),Ve[yt][1],Ve[yt][2]]):Ze.push([ke.doBidiReorder(Ve[yt])]);Fe.text=Ze}else Fe.text=ke.doBidiReorder(Ve);ke.setOptions({isInputVisual:!0})}])}(K),K.API.TTFFont=function(){function Ye(Ce){var ke;if(this.rawData=Ce,ke=this.contents=new Ut(Ce),this.contents.pos=4,ke.readString(4)==="ttcf")throw new Error("TTCF not supported.");ke.pos=0,this.parse(),this.subset=new Mi(this),this.registerTTF()}return Ye.open=function(Ce){return new Ye(Ce)},Ye.prototype.parse=function(){return this.directory=new pt(this.contents),this.head=new Zt(this),this.name=new ur(this),this.cmap=new Pt(this),this.toUnicode={},this.hhea=new vt(this),this.maxp=new Yr(this),this.hmtx=new Jr(this),this.post=new gr(this),this.os2=new Ft(this),this.loca=new Ai(this),this.glyf=new Dn(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]},Ye.prototype.registerTTF=function(){var Ce,ke,Fe,Ve,We;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Ze,yt,lt,kt;for(kt=[],Ze=0,yt=(lt=this.bbox).length;Ze<yt;Ze++)Ce=lt[Ze],kt.push(Math.round(Ce*this.scaleFactor));return kt}.call(this),this.stemV=0,this.post.exists?(Fe=255&(Ve=this.post.italic_angle),(32768&(ke=Ve>>16))!=0&&(ke=-(1+(65535^ke))),this.italicAngle=+(ke+"."+Fe)):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=(We=this.familyClass)===1||We===2||We===3||We===4||We===5||We===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")},Ye.prototype.characterToGlyph=function(Ce){var ke;return((ke=this.cmap.unicode)!=null?ke.codeMap[Ce]:void 0)||0},Ye.prototype.widthOfGlyph=function(Ce){var ke;return ke=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Ce).advance*ke},Ye.prototype.widthOfString=function(Ce,ke,Fe){var Ve,We,Ze,yt;for(Ze=0,We=0,yt=(Ce=""+Ce).length;0<=yt?We<yt:We>yt;We=0<=yt?++We:--We)Ve=Ce.charCodeAt(We),Ze+=this.widthOfGlyph(this.characterToGlyph(Ve))+Fe*(1e3/ke)||0;return Ze*(ke/1e3)},Ye.prototype.lineHeight=function(Ce,ke){var Fe;return ke==null&&(ke=!1),Fe=ke?this.lineGap:0,(this.ascender+Fe-this.decender)/1e3*Ce},Ye}();var cn,Ut=function(){function Ye(Ce){this.data=Ce!=null?Ce:[],this.pos=0,this.length=this.data.length}return Ye.prototype.readByte=function(){return this.data[this.pos++]},Ye.prototype.writeByte=function(Ce){return this.data[this.pos++]=Ce},Ye.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Ye.prototype.writeUInt32=function(Ce){return this.writeByte(Ce>>>24&255),this.writeByte(Ce>>16&255),this.writeByte(Ce>>8&255),this.writeByte(255&Ce)},Ye.prototype.readInt32=function(){var Ce;return(Ce=this.readUInt32())>=2147483648?Ce-4294967296:Ce},Ye.prototype.writeInt32=function(Ce){return Ce<0&&(Ce+=4294967296),this.writeUInt32(Ce)},Ye.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Ye.prototype.writeUInt16=function(Ce){return this.writeByte(Ce>>8&255),this.writeByte(255&Ce)},Ye.prototype.readInt16=function(){var Ce;return(Ce=this.readUInt16())>=32768?Ce-65536:Ce},Ye.prototype.writeInt16=function(Ce){return Ce<0&&(Ce+=65536),this.writeUInt16(Ce)},Ye.prototype.readString=function(Ce){var ke,Fe;for(Fe=[],ke=0;0<=Ce?ke<Ce:ke>Ce;ke=0<=Ce?++ke:--ke)Fe[ke]=String.fromCharCode(this.readByte());return Fe.join("")},Ye.prototype.writeString=function(Ce){var ke,Fe,Ve;for(Ve=[],ke=0,Fe=Ce.length;0<=Fe?ke<Fe:ke>Fe;ke=0<=Fe?++ke:--ke)Ve.push(this.writeByte(Ce.charCodeAt(ke)));return Ve},Ye.prototype.readShort=function(){return this.readInt16()},Ye.prototype.writeShort=function(Ce){return this.writeInt16(Ce)},Ye.prototype.readLongLong=function(){var Ce,ke,Fe,Ve,We,Ze,yt,lt;return Ce=this.readByte(),ke=this.readByte(),Fe=this.readByte(),Ve=this.readByte(),We=this.readByte(),Ze=this.readByte(),yt=this.readByte(),lt=this.readByte(),128&Ce?-1*(72057594037927940*(255^Ce)+281474976710656*(255^ke)+1099511627776*(255^Fe)+4294967296*(255^Ve)+16777216*(255^We)+65536*(255^Ze)+256*(255^yt)+(255^lt)+1):72057594037927940*Ce+281474976710656*ke+1099511627776*Fe+4294967296*Ve+16777216*We+65536*Ze+256*yt+lt},Ye.prototype.writeLongLong=function(Ce){var ke,Fe;return ke=Math.floor(Ce/4294967296),Fe=4294967295&Ce,this.writeByte(ke>>24&255),this.writeByte(ke>>16&255),this.writeByte(ke>>8&255),this.writeByte(255&ke),this.writeByte(Fe>>24&255),this.writeByte(Fe>>16&255),this.writeByte(Fe>>8&255),this.writeByte(255&Fe)},Ye.prototype.readInt=function(){return this.readInt32()},Ye.prototype.writeInt=function(Ce){return this.writeInt32(Ce)},Ye.prototype.read=function(Ce){var ke,Fe;for(ke=[],Fe=0;0<=Ce?Fe<Ce:Fe>Ce;Fe=0<=Ce?++Fe:--Fe)ke.push(this.readByte());return ke},Ye.prototype.write=function(Ce){var ke,Fe,Ve,We;for(We=[],Fe=0,Ve=Ce.length;Fe<Ve;Fe++)ke=Ce[Fe],We.push(this.writeByte(ke));return We},Ye}(),pt=function(){var Ye;function Ce(ke){var Fe,Ve,We;for(this.scalarType=ke.readInt(),this.tableCount=ke.readShort(),this.searchRange=ke.readShort(),this.entrySelector=ke.readShort(),this.rangeShift=ke.readShort(),this.tables={},Ve=0,We=this.tableCount;0<=We?Ve<We:Ve>We;Ve=0<=We?++Ve:--Ve)Fe={tag:ke.readString(4),checksum:ke.readInt(),offset:ke.readInt(),length:ke.readInt()},this.tables[Fe.tag]=Fe}return Ce.prototype.encode=function(ke){var Fe,Ve,We,Ze,yt,lt,kt,wr,pr,_r,Wt,un,ir;for(ir in Wt=Object.keys(ke).length,lt=Math.log(2),pr=16*Math.floor(Math.log(Wt)/lt),Ze=Math.floor(pr/lt),wr=16*Wt-pr,(Ve=new Ut).writeInt(this.scalarType),Ve.writeShort(Wt),Ve.writeShort(pr),Ve.writeShort(Ze),Ve.writeShort(wr),We=16*Wt,kt=Ve.pos+We,yt=null,un=[],ke)for(_r=ke[ir],Ve.writeString(ir),Ve.writeInt(Ye(_r)),Ve.writeInt(kt),Ve.writeInt(_r.length),un=un.concat(_r),ir==="head"&&(yt=kt),kt+=_r.length;kt%4;)un.push(0),kt++;return Ve.write(un),Fe=2981146554-Ye(Ve.data),Ve.pos=yt+8,Ve.writeUInt32(Fe),Ve.data},Ye=function(Fe){var Ve,We,Ze,yt;for(Fe=Tn.call(Fe);Fe.length%4;)Fe.push(0);for(Ze=new Ut(Fe),We=0,Ve=0,yt=Fe.length;Ve<yt;Ve=Ve+=4)We+=Ze.readUInt32();return 4294967295&We},Ce}(),ut={}.hasOwnProperty,Jt=function(Ce,ke){for(var Fe in ke)ut.call(ke,Fe)&&(Ce[Fe]=ke[Fe]);function Ve(){this.constructor=Ce}return Ve.prototype=ke.prototype,Ce.prototype=new Ve,Ce.__super__=ke.prototype,Ce};cn=function(){function Ye(Ce){var ke;this.file=Ce,ke=this.file.directory.tables[this.tag],this.exists=!!ke,ke&&(this.offset=ke.offset,this.length=ke.length,this.parse(this.file.contents))}return Ye.prototype.parse=function(){},Ye.prototype.encode=function(){},Ye.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Ye}();var Zt=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="head",Ce.prototype.parse=function(ke){return ke.pos=this.offset,this.version=ke.readInt(),this.revision=ke.readInt(),this.checkSumAdjustment=ke.readInt(),this.magicNumber=ke.readInt(),this.flags=ke.readShort(),this.unitsPerEm=ke.readShort(),this.created=ke.readLongLong(),this.modified=ke.readLongLong(),this.xMin=ke.readShort(),this.yMin=ke.readShort(),this.xMax=ke.readShort(),this.yMax=ke.readShort(),this.macStyle=ke.readShort(),this.lowestRecPPEM=ke.readShort(),this.fontDirectionHint=ke.readShort(),this.indexToLocFormat=ke.readShort(),this.glyphDataFormat=ke.readShort()},Ce.prototype.encode=function(ke){var Fe;return(Fe=new Ut).writeInt(this.version),Fe.writeInt(this.revision),Fe.writeInt(this.checkSumAdjustment),Fe.writeInt(this.magicNumber),Fe.writeShort(this.flags),Fe.writeShort(this.unitsPerEm),Fe.writeLongLong(this.created),Fe.writeLongLong(this.modified),Fe.writeShort(this.xMin),Fe.writeShort(this.yMin),Fe.writeShort(this.xMax),Fe.writeShort(this.yMax),Fe.writeShort(this.macStyle),Fe.writeShort(this.lowestRecPPEM),Fe.writeShort(this.fontDirectionHint),Fe.writeShort(ke),Fe.writeShort(this.glyphDataFormat),Fe.data},Ce}(),At=function(){function Ye(Ce,ke){var Fe,Ve,We,Ze,yt,lt,kt,wr,pr,_r,Wt,un,ir,Gr,kr,yr,En;switch(this.platformID=Ce.readUInt16(),this.encodingID=Ce.readShort(),this.offset=ke+Ce.readInt(),pr=Ce.pos,Ce.pos=this.offset,this.format=Ce.readUInt16(),this.length=Ce.readUInt16(),this.language=Ce.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(lt=0;lt<256;++lt)this.codeMap[lt]=Ce.readByte();break;case 4:for(Wt=Ce.readUInt16(),_r=Wt/2,Ce.pos+=6,We=function(){var kn,ii;for(ii=[],lt=kn=0;0<=_r?kn<_r:kn>_r;lt=0<=_r?++kn:--kn)ii.push(Ce.readUInt16());return ii}(),Ce.pos+=2,ir=function(){var kn,ii;for(ii=[],lt=kn=0;0<=_r?kn<_r:kn>_r;lt=0<=_r?++kn:--kn)ii.push(Ce.readUInt16());return ii}(),kt=function(){var kn,ii;for(ii=[],lt=kn=0;0<=_r?kn<_r:kn>_r;lt=0<=_r?++kn:--kn)ii.push(Ce.readUInt16());return ii}(),wr=function(){var kn,ii;for(ii=[],lt=kn=0;0<=_r?kn<_r:kn>_r;lt=0<=_r?++kn:--kn)ii.push(Ce.readUInt16());return ii}(),Ve=(this.length-Ce.pos+this.offset)/2,yt=function(){var kn,ii;for(ii=[],lt=kn=0;0<=Ve?kn<Ve:kn>Ve;lt=0<=Ve?++kn:--kn)ii.push(Ce.readUInt16());return ii}(),lt=kr=0,En=We.length;kr<En;lt=++kr)for(Gr=We[lt],Fe=yr=un=ir[lt];un<=Gr?yr<=Gr:yr>=Gr;Fe=un<=Gr?++yr:--yr)wr[lt]===0?Ze=Fe+kt[lt]:(Ze=yt[wr[lt]/2+(Fe-un)-(_r-lt)]||0)!==0&&(Ze+=kt[lt]),this.codeMap[Fe]=65535&Ze}Ce.pos=pr}return Ye.encode=function(Ce,ke){var Fe,Ve,We,Ze,yt,lt,kt,wr,pr,_r,Wt,un,ir,Gr,kr,yr,En,kn,ii,oi,ei,ci,Pn,xi,gn,zr,Cn,on,li,ri,wi,Gn,ki,Jn,Pi,mn,Fr,An,Un,Vn,ti,di,fi,mi,Wi,na;switch(on=new Ut,Ze=Object.keys(Ce).sort(function(ea,Fa){return ea-Fa}),ke){case"macroman":for(ir=0,Gr=function(){var ea=[];for(un=0;un<256;++un)ea.push(0);return ea}(),yr={0:0},We={},li=0,ki=Ze.length;li<ki;li++)yr[fi=Ce[Ve=Ze[li]]]==null&&(yr[fi]=++ir),We[Ve]={old:Ce[Ve],new:yr[Ce[Ve]]},Gr[Ve]=yr[Ce[Ve]];return on.writeUInt16(1),on.writeUInt16(0),on.writeUInt32(12),on.writeUInt16(0),on.writeUInt16(262),on.writeUInt16(0),on.write(Gr),{charMap:We,subtable:on.data,maxGlyphID:ir+1};case"unicode":for(zr=[],pr=[],En=0,yr={},Fe={},kr=kt=null,ri=0,Jn=Ze.length;ri<Jn;ri++)yr[ii=Ce[Ve=Ze[ri]]]==null&&(yr[ii]=++En),Fe[Ve]={old:ii,new:yr[ii]},yt=yr[ii]-Ve,kr!=null&&yt===kt||(kr&&pr.push(kr),zr.push(Ve),kt=yt),kr=Ve;for(kr&&pr.push(kr),pr.push(65535),zr.push(65535),xi=2*(Pn=zr.length),ci=2*Math.pow(Math.log(Pn)/Math.LN2,2),_r=Math.log(ci/2)/Math.LN2,ei=2*Pn-ci,lt=[],oi=[],Wt=[],un=wi=0,Pi=zr.length;wi<Pi;un=++wi){if(gn=zr[un],wr=pr[un],gn===65535){lt.push(0),oi.push(0);break}if(gn-(Cn=Fe[gn].new)>=32768)for(lt.push(0),oi.push(2*(Wt.length+Pn-un)),Ve=Gn=gn;gn<=wr?Gn<=wr:Gn>=wr;Ve=gn<=wr?++Gn:--Gn)Wt.push(Fe[Ve].new);else lt.push(Cn-gn),oi.push(0)}for(on.writeUInt16(3),on.writeUInt16(1),on.writeUInt32(12),on.writeUInt16(4),on.writeUInt16(16+8*Pn+2*Wt.length),on.writeUInt16(0),on.writeUInt16(xi),on.writeUInt16(ci),on.writeUInt16(_r),on.writeUInt16(ei),ti=0,mn=pr.length;ti<mn;ti++)Ve=pr[ti],on.writeUInt16(Ve);for(on.writeUInt16(0),di=0,Fr=zr.length;di<Fr;di++)Ve=zr[di],on.writeUInt16(Ve);for(mi=0,An=lt.length;mi<An;mi++)yt=lt[mi],on.writeUInt16(yt);for(Wi=0,Un=oi.length;Wi<Un;Wi++)kn=oi[Wi],on.writeUInt16(kn);for(na=0,Vn=Wt.length;na<Vn;na++)ir=Wt[na],on.writeUInt16(ir);return{charMap:Fe,subtable:on.data,maxGlyphID:En+1}}},Ye}(),Pt=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="cmap",Ce.prototype.parse=function(ke){var Fe,Ve,We;for(ke.pos=this.offset,this.version=ke.readUInt16(),We=ke.readUInt16(),this.tables=[],this.unicode=null,Ve=0;0<=We?Ve<We:Ve>We;Ve=0<=We?++Ve:--Ve)Fe=new At(ke,this.offset),this.tables.push(Fe),Fe.isUnicode&&this.unicode==null&&(this.unicode=Fe);return!0},Ce.encode=function(ke,Fe){var Ve,We;return Fe==null&&(Fe="macroman"),Ve=At.encode(ke,Fe),(We=new Ut).writeUInt16(0),We.writeUInt16(1),Ve.table=We.data.concat(Ve.subtable),Ve},Ce}(),vt=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="hhea",Ce.prototype.parse=function(ke){return ke.pos=this.offset,this.version=ke.readInt(),this.ascender=ke.readShort(),this.decender=ke.readShort(),this.lineGap=ke.readShort(),this.advanceWidthMax=ke.readShort(),this.minLeftSideBearing=ke.readShort(),this.minRightSideBearing=ke.readShort(),this.xMaxExtent=ke.readShort(),this.caretSlopeRise=ke.readShort(),this.caretSlopeRun=ke.readShort(),this.caretOffset=ke.readShort(),ke.pos+=8,this.metricDataFormat=ke.readShort(),this.numberOfMetrics=ke.readUInt16()},Ce}(),Ft=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="OS/2",Ce.prototype.parse=function(ke){if(ke.pos=this.offset,this.version=ke.readUInt16(),this.averageCharWidth=ke.readShort(),this.weightClass=ke.readUInt16(),this.widthClass=ke.readUInt16(),this.type=ke.readShort(),this.ySubscriptXSize=ke.readShort(),this.ySubscriptYSize=ke.readShort(),this.ySubscriptXOffset=ke.readShort(),this.ySubscriptYOffset=ke.readShort(),this.ySuperscriptXSize=ke.readShort(),this.ySuperscriptYSize=ke.readShort(),this.ySuperscriptXOffset=ke.readShort(),this.ySuperscriptYOffset=ke.readShort(),this.yStrikeoutSize=ke.readShort(),this.yStrikeoutPosition=ke.readShort(),this.familyClass=ke.readShort(),this.panose=function(){var Fe,Ve;for(Ve=[],Fe=0;Fe<10;++Fe)Ve.push(ke.readByte());return Ve}(),this.charRange=function(){var Fe,Ve;for(Ve=[],Fe=0;Fe<4;++Fe)Ve.push(ke.readInt());return Ve}(),this.vendorID=ke.readString(4),this.selection=ke.readShort(),this.firstCharIndex=ke.readShort(),this.lastCharIndex=ke.readShort(),this.version>0&&(this.ascent=ke.readShort(),this.descent=ke.readShort(),this.lineGap=ke.readShort(),this.winAscent=ke.readShort(),this.winDescent=ke.readShort(),this.codePageRange=function(){var Fe,Ve;for(Ve=[],Fe=0;Fe<2;Fe=++Fe)Ve.push(ke.readInt());return Ve}(),this.version>1))return this.xHeight=ke.readShort(),this.capHeight=ke.readShort(),this.defaultChar=ke.readShort(),this.breakChar=ke.readShort(),this.maxContext=ke.readShort()},Ce}(),gr=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="post",Ce.prototype.parse=function(ke){var Fe,Ve,We;switch(ke.pos=this.offset,this.format=ke.readInt(),this.italicAngle=ke.readInt(),this.underlinePosition=ke.readShort(),this.underlineThickness=ke.readShort(),this.isFixedPitch=ke.readInt(),this.minMemType42=ke.readInt(),this.maxMemType42=ke.readInt(),this.minMemType1=ke.readInt(),this.maxMemType1=ke.readInt(),this.format){case 65536:break;case 131072:var Ze;for(Ve=ke.readUInt16(),this.glyphNameIndex=[],Ze=0;0<=Ve?Ze<Ve:Ze>Ve;Ze=0<=Ve?++Ze:--Ze)this.glyphNameIndex.push(ke.readUInt16());for(this.names=[],We=[];ke.pos<this.offset+this.length;)Fe=ke.readByte(),We.push(this.names.push(ke.readString(Fe)));return We;case 151552:return Ve=ke.readUInt16(),this.offsets=ke.read(Ve);case 196608:break;case 262144:return this.map=function(){var yt,lt,kt;for(kt=[],Ze=yt=0,lt=this.file.maxp.numGlyphs;0<=lt?yt<lt:yt>lt;Ze=0<=lt?++yt:--yt)kt.push(ke.readUInt32());return kt}.call(this)}},Ce}(),or=function(Ce,ke){this.raw=Ce,this.length=Ce.length,this.platformID=ke.platformID,this.encodingID=ke.encodingID,this.languageID=ke.languageID},ur=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="name",Ce.prototype.parse=function(ke){var Fe,Ve,We,Ze,yt,lt,kt,wr,pr,_r,Wt;for(ke.pos=this.offset,ke.readShort(),Fe=ke.readShort(),lt=ke.readShort(),Ve=[],Ze=0;0<=Fe?Ze<Fe:Ze>Fe;Ze=0<=Fe?++Ze:--Ze)Ve.push({platformID:ke.readShort(),encodingID:ke.readShort(),languageID:ke.readShort(),nameID:ke.readShort(),length:ke.readShort(),offset:this.offset+lt+ke.readShort()});for(kt={},Ze=pr=0,_r=Ve.length;pr<_r;Ze=++pr)We=Ve[Ze],ke.pos=We.offset,wr=ke.readString(We.length),yt=new or(wr,We),kt[Wt=We.nameID]==null&&(kt[Wt]=[]),kt[We.nameID].push(yt);this.strings=kt,this.copyright=kt[0],this.fontFamily=kt[1],this.fontSubfamily=kt[2],this.uniqueSubfamily=kt[3],this.fontName=kt[4],this.version=kt[5];try{this.postscriptName=kt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(un){this.postscriptName=kt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=kt[7],this.manufacturer=kt[8],this.designer=kt[9],this.description=kt[10],this.vendorUrl=kt[11],this.designerUrl=kt[12],this.license=kt[13],this.licenseUrl=kt[14],this.preferredFamily=kt[15],this.preferredSubfamily=kt[17],this.compatibleFull=kt[18],this.sampleText=kt[19]},Ce}(),Yr=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="maxp",Ce.prototype.parse=function(ke){return ke.pos=this.offset,this.version=ke.readInt(),this.numGlyphs=ke.readUInt16(),this.maxPoints=ke.readUInt16(),this.maxContours=ke.readUInt16(),this.maxCompositePoints=ke.readUInt16(),this.maxComponentContours=ke.readUInt16(),this.maxZones=ke.readUInt16(),this.maxTwilightPoints=ke.readUInt16(),this.maxStorage=ke.readUInt16(),this.maxFunctionDefs=ke.readUInt16(),this.maxInstructionDefs=ke.readUInt16(),this.maxStackElements=ke.readUInt16(),this.maxSizeOfInstructions=ke.readUInt16(),this.maxComponentElements=ke.readUInt16(),this.maxComponentDepth=ke.readUInt16()},Ce}(),Jr=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="hmtx",Ce.prototype.parse=function(ke){var Fe,Ve,We,Ze,yt,lt,kt;for(ke.pos=this.offset,this.metrics=[],Fe=0,lt=this.file.hhea.numberOfMetrics;0<=lt?Fe<lt:Fe>lt;Fe=0<=lt?++Fe:--Fe)this.metrics.push({advance:ke.readUInt16(),lsb:ke.readInt16()});for(We=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var wr,pr;for(pr=[],Fe=wr=0;0<=We?wr<We:wr>We;Fe=0<=We?++wr:--wr)pr.push(ke.readInt16());return pr}(),this.widths=function(){var wr,pr,_r,Wt;for(Wt=[],wr=0,pr=(_r=this.metrics).length;wr<pr;wr++)Ze=_r[wr],Wt.push(Ze.advance);return Wt}.call(this),Ve=this.widths[this.widths.length-1],kt=[],Fe=yt=0;0<=We?yt<We:yt>We;Fe=0<=We?++yt:--yt)kt.push(this.widths.push(Ve));return kt},Ce.prototype.forGlyph=function(ke){return ke in this.metrics?this.metrics[ke]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[ke-this.metrics.length]}},Ce}(),Tn=[].slice,Dn=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="glyf",Ce.prototype.parse=function(){return this.cache={}},Ce.prototype.glyphFor=function(ke){var Fe,Ve,We,Ze,yt,lt,kt,wr,pr,_r;return ke in this.cache?this.cache[ke]:(Ze=this.file.loca,Fe=this.file.contents,Ve=Ze.indexOf(ke),(We=Ze.lengthOf(ke))===0?this.cache[ke]=null:(Fe.pos=this.offset+Ve,yt=(lt=new Ut(Fe.read(We))).readShort(),wr=lt.readShort(),_r=lt.readShort(),kt=lt.readShort(),pr=lt.readShort(),this.cache[ke]=yt===-1?new qn(lt,wr,_r,kt,pr):new zn(lt,yt,wr,_r,kt,pr),this.cache[ke]))},Ce.prototype.encode=function(ke,Fe,Ve){var We,Ze,yt,lt,kt;for(yt=[],Ze=[],lt=0,kt=Fe.length;lt<kt;lt++)We=ke[Fe[lt]],Ze.push(yt.length),We&&(yt=yt.concat(We.encode(Ve)));return Ze.push(yt.length),{table:yt,offsets:Ze}},Ce}(),zn=function(){function Ye(Ce,ke,Fe,Ve,We,Ze){this.raw=Ce,this.numberOfContours=ke,this.xMin=Fe,this.yMin=Ve,this.xMax=We,this.yMax=Ze,this.compound=!1}return Ye.prototype.encode=function(){return this.raw.data},Ye}(),qn=function(){function Ye(Ce,ke,Fe,Ve,We){var Ze,yt;for(this.raw=Ce,this.xMin=ke,this.yMin=Fe,this.xMax=Ve,this.yMax=We,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Ze=this.raw;yt=Ze.readShort(),this.glyphOffsets.push(Ze.pos),this.glyphIDs.push(Ze.readUInt16()),32&yt;)Ze.pos+=1&yt?4:2,128&yt?Ze.pos+=8:64&yt?Ze.pos+=4:8&yt&&(Ze.pos+=2)}return Ye.prototype.encode=function(){var Ce,ke,Fe;for(ke=new Ut(Tn.call(this.raw.data)),Ce=0,Fe=this.glyphIDs.length;Ce<Fe;++Ce)ke.pos=this.glyphOffsets[Ce];return ke.data},Ye}(),Ai=function(Ye){function Ce(){return Ce.__super__.constructor.apply(this,arguments)}return Jt(Ce,cn),Ce.prototype.tag="loca",Ce.prototype.parse=function(ke){var Fe,Ve;return ke.pos=this.offset,Fe=this.file.head.indexToLocFormat,this.offsets=Fe===0?function(){var We,Ze;for(Ze=[],Ve=0,We=this.length;Ve<We;Ve+=2)Ze.push(2*ke.readUInt16());return Ze}.call(this):function(){var We,Ze;for(Ze=[],Ve=0,We=this.length;Ve<We;Ve+=4)Ze.push(ke.readUInt32());return Ze}.call(this)},Ce.prototype.indexOf=function(ke){return this.offsets[ke]},Ce.prototype.lengthOf=function(ke){return this.offsets[ke+1]-this.offsets[ke]},Ce.prototype.encode=function(ke,Fe){for(var Ve=new Uint32Array(this.offsets.length),We=0,Ze=0,yt=0;yt<Ve.length;++yt)if(Ve[yt]=We,Ze<Fe.length&&Fe[Ze]==yt){++Ze,Ve[yt]=We;var lt=this.offsets[yt],kt=this.offsets[yt+1]-lt;kt>0&&(We+=kt)}for(var wr=new Array(4*Ve.length),pr=0;pr<Ve.length;++pr)wr[4*pr+3]=255&Ve[pr],wr[4*pr+2]=(65280&Ve[pr])>>8,wr[4*pr+1]=(16711680&Ve[pr])>>16,wr[4*pr]=(4278190080&Ve[pr])>>24;return wr},Ce}(),Mi=function(){function Ye(Ce){this.font=Ce,this.subset={},this.unicodes={},this.next=33}return Ye.prototype.generateCmap=function(){var Ce,ke,Fe,Ve,We;for(ke in Ve=this.font.cmap.tables[0].codeMap,Ce={},We=this.subset)Fe=We[ke],Ce[ke]=Ve[Fe];return Ce},Ye.prototype.glyphsFor=function(Ce){var ke,Fe,Ve,We,Ze,yt,lt;for(Ve={},Ze=0,yt=Ce.length;Ze<yt;Ze++)Ve[We=Ce[Ze]]=this.font.glyf.glyphFor(We);for(We in ke=[],Ve)((Fe=Ve[We])!=null?Fe.compound:void 0)&&ke.push.apply(ke,Fe.glyphIDs);if(ke.length>0)for(We in lt=this.glyphsFor(ke))Fe=lt[We],Ve[We]=Fe;return Ve},Ye.prototype.encode=function(Ce,ke){var Fe,Ve,We,Ze,yt,lt,kt,wr,pr,_r,Wt,un,ir,Gr,kr;for(Ve in Fe=Pt.encode(this.generateCmap(),"unicode"),Ze=this.glyphsFor(Ce),Wt={0:0},kr=Fe.charMap)Wt[(lt=kr[Ve]).old]=lt.new;for(un in _r=Fe.maxGlyphID,Ze)un in Wt||(Wt[un]=_r++);return wr=function(yr){var En,kn;for(En in kn={},yr)kn[yr[En]]=En;return kn}(Wt),pr=Object.keys(wr).sort(function(yr,En){return yr-En}),ir=function(){var yr,En,kn;for(kn=[],yr=0,En=pr.length;yr<En;yr++)yt=pr[yr],kn.push(wr[yt]);return kn}(),We=this.font.glyf.encode(Ze,ir,Wt),kt=this.font.loca.encode(We.offsets,ir),Gr={cmap:this.font.cmap.raw(),glyf:We.table,loca:kt,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(ke)},this.font.os2.exists&&(Gr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Gr)},Ye}();K.API.PDFObject=function(){var Ye;function Ce(){}return Ye=function(Fe,Ve){return(Array(Ve+1).join("0")+Fe).slice(-Ve)},Ce.convert=function(ke){var Fe,Ve,We,Ze;if(Array.isArray(ke))return"["+function(){var yt,lt,kt;for(kt=[],yt=0,lt=ke.length;yt<lt;yt++)Fe=ke[yt],kt.push(Ce.convert(Fe));return kt}().join(" ")+"]";if(typeof ke=="string")return"/"+ke;if(ke!=null?ke.isString:void 0)return"("+ke+")";if(ke instanceof Date)return"(D:"+Ye(ke.getUTCFullYear(),4)+Ye(ke.getUTCMonth(),2)+Ye(ke.getUTCDate(),2)+Ye(ke.getUTCHours(),2)+Ye(ke.getUTCMinutes(),2)+Ye(ke.getUTCSeconds(),2)+"Z)";if({}.toString.call(ke)==="[object Object]"){for(Ve in We=["<<"],ke)Ze=ke[Ve],We.push("/"+Ve+" "+Ce.convert(Ze));return We.push(">>"),We.join(`
|
|
|
`)}return""+ke},Ce}(),k.default=K}.call(this,d("yLpj"))},e5VY:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("YNAk"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},e7zE:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.Base,S=T.WordArray,m=E.algo,h=m.SHA1,c=m.HMAC,a=m.PBKDF2=g.extend({cfg:g.extend({keySize:128/32,hasher:h,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,n){for(var t=this.cfg,s=c.create(t.hasher,i),e=S.create(),o=S.create([1]),l=e.words,u=o.words,f=t.keySize,p=t.iterations;l.length<f;){var v=s.update(n).finalize(o);s.reset();for(var A=v.words,y=A.length,x=v,C=1;C<p;C++){x=s.finalize(x),s.reset();for(var w=x.words,b=0;b<y;b++)A[b]^=w[b]}e.concat(v),u[0]++}return e.sigBytes=f*4,e}});E.PBKDF2=function(r,i,n){return a.create(n).compute(r,i)}}(),I.PBKDF2})},eIcI:function(H,k,d){var I=d("bYtY"),E=d("hM6l");function T(S,m,h){E.call(this,S,m,h),this.type="value",this.angle=0,this.name="",this.model}I.inherits(T,E);var g=T;H.exports=g},eJH7:function(H,k,d){var I=d("bYtY");function E(T){var g=T.polar;if(g){I.isArray(g)||(g=[g]);var S=[];I.each(g,function(m,h){m.indicator?(m.type&&!m.shape&&(m.shape=m.type),T.radar=T.radar||[],I.isArray(T.radar)||(T.radar=[T.radar]),T.radar.push(m)):S.push(m)}),T.polar=S}I.each(T.series,function(m){m&&m.type==="radar"&&m.polarIndex&&(m.radarIndex=m.polarIndex)})}H.exports=E},eP3c:function(H,k,d){"use strict";function I(Je){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(ie){return typeof ie}:I=function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},I(Je)}Object.defineProperty(k,"__esModule",{value:!0}),k.inflateReset=oe,k.inflateReset2=fe,k.inflateResetKeep=xe,k.inflateInit=ze,k.inflateInit2=Te,k.inflate=wt,k.inflateEnd=xt,k.inflateGetHeader=Ct,k.inflateSetDictionary=Dt,k.inflateInfo=k.Z_DEFLATED=k.Z_BUF_ERROR=k.Z_MEM_ERROR=k.Z_DATA_ERROR=k.Z_STREAM_ERROR=k.Z_NEED_DICT=k.Z_STREAM_END=k.Z_OK=k.Z_TREES=k.Z_BLOCK=k.Z_FINISH=void 0;var E=a(d("6BzB")),T=h(d("xlC8")),g=h(d("QV2g")),S=h(d("sjKO")),m=h(d("JSwD"));function h(Je){return Je&&Je.__esModule?Je:{default:Je}}function c(){if(typeof WeakMap!="function")return null;var Je=new WeakMap;return c=function(){return Je},Je}function a(Je){if(Je&&Je.__esModule)return Je;if(Je===null||I(Je)!=="object"&&typeof Je!="function")return{default:Je};var ye=c();if(ye&&ye.has(Je))return ye.get(Je);var ie={},bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in Je)if(Object.prototype.hasOwnProperty.call(Je,qe)){var me=bt?Object.getOwnPropertyDescriptor(Je,qe):null;me&&(me.get||me.set)?Object.defineProperty(ie,qe,me):ie[qe]=Je[qe]}return ie.default=Je,ye&&ye.set(Je,ie),ie}var r=0,i=1,n=2,t=4;k.Z_FINISH=t;var s=5;k.Z_BLOCK=s;var e=6;k.Z_TREES=e;var o=0;k.Z_OK=o;var l=1;k.Z_STREAM_END=l;var u=2;k.Z_NEED_DICT=u;var f=-2;k.Z_STREAM_ERROR=f;var p=-3;k.Z_DATA_ERROR=p;var v=-4;k.Z_MEM_ERROR=v;var A=-5;k.Z_BUF_ERROR=A;var y=8;k.Z_DEFLATED=y;var x=1,C=2,w=3,b=4,_=5,O=6,L=7,D=8,N=9,M=10,F=11,R=12,j=13,B=14,K=15,U=16,z=17,V=18,Y=19,J=20,se=21,$=22,ae=23,ge=24,pe=25,Ne=26,de=27,Le=28,Q=29,ce=30,Ke=31,ee=32,X=852,G=592,Z=15,ve=Z;function ue(Je){return(Je>>>24&255)+(Je>>>8&65280)+((Je&65280)<<8)+((Je&255)<<24)}function _e(){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 E.Buf16(320),this.work=new E.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function xe(Je){var ye;return!Je||!Je.state?f:(ye=Je.state,Je.total_in=Je.total_out=ye.total=0,Je.msg="",ye.wrap&&(Je.adler=ye.wrap&1),ye.mode=x,ye.last=0,ye.havedict=0,ye.dmax=32768,ye.head=null,ye.hold=0,ye.bits=0,ye.lencode=ye.lendyn=new E.Buf32(X),ye.distcode=ye.distdyn=new E.Buf32(G),ye.sane=1,ye.back=-1,o)}function oe(Je){var ye;return!Je||!Je.state?f:(ye=Je.state,ye.wsize=0,ye.whave=0,ye.wnext=0,xe(Je))}function fe(Je,ye){var ie,bt;return!Je||!Je.state?f:(bt=Je.state,ye<0?(ie=0,ye=-ye):(ie=(ye>>4)+1,ye<48&&(ye&=15)),ye&&(ye<8||ye>15)?f:(bt.window!==null&&bt.wbits!==ye&&(bt.window=null),bt.wrap=ie,bt.wbits=ye,oe(Je)))}function Te(Je,ye){var ie,bt;return Je?(bt=new _e,Je.state=bt,bt.window=null,ie=fe(Je,ye),ie!==o&&(Je.state=null),ie):f}function ze(Je){return Te(Je,ve)}var it=!0,et,Oe;function gt(Je){if(it){var ye;for(et=new E.Buf32(512),Oe=new E.Buf32(32),ye=0;ye<144;)Je.lens[ye++]=8;for(;ye<256;)Je.lens[ye++]=9;for(;ye<280;)Je.lens[ye++]=7;for(;ye<288;)Je.lens[ye++]=8;for((0,m.default)(i,Je.lens,0,288,et,0,Je.work,{bits:9}),ye=0;ye<32;)Je.lens[ye++]=5;(0,m.default)(n,Je.lens,0,32,Oe,0,Je.work,{bits:5}),it=!1}Je.lencode=et,Je.lenbits=9,Je.distcode=Oe,Je.distbits=5}function Ge(Je,ye,ie,bt){var qe,me=Je.state;return me.window===null&&(me.wsize=1<<me.wbits,me.wnext=0,me.whave=0,me.window=new E.Buf8(me.wsize)),bt>=me.wsize?(E.arraySet(me.window,ye,ie-me.wsize,me.wsize,0),me.wnext=0,me.whave=me.wsize):(qe=me.wsize-me.wnext,qe>bt&&(qe=bt),E.arraySet(me.window,ye,ie-bt,qe,me.wnext),bt-=qe,bt?(E.arraySet(me.window,ye,ie-bt,bt,0),me.wnext=bt,me.whave=me.wsize):(me.wnext+=qe,me.wnext===me.wsize&&(me.wnext=0),me.whave<me.wsize&&(me.whave+=qe))),0}function wt(Je,ye){var ie,bt,qe,me,Rt,er,ct,zt,sr,Kr,ar,nr,Lt,st,Qe=0,qt,Sr,Ar,hr,vn,Zr,Ln,$e,tt=new E.Buf8(4),Ee,Re,je=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Je||!Je.state||!Je.output||!Je.input&&Je.avail_in!==0)return f;ie=Je.state,ie.mode===R&&(ie.mode=j),Rt=Je.next_out,qe=Je.output,ct=Je.avail_out,me=Je.next_in,bt=Je.input,er=Je.avail_in,zt=ie.hold,sr=ie.bits,Kr=er,ar=ct,$e=o;e:for(;;)switch(ie.mode){case x:if(ie.wrap===0){ie.mode=j;break}for(;sr<16;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(ie.wrap&2&&zt===35615){ie.check=0,tt[0]=zt&255,tt[1]=zt>>>8&255,ie.check=(0,g.default)(ie.check,tt,2,0),zt=0,sr=0,ie.mode=C;break}if(ie.flags=0,ie.head&&(ie.head.done=!1),!(ie.wrap&1)||(((zt&255)<<8)+(zt>>8))%31){Je.msg="incorrect header check",ie.mode=ce;break}if((zt&15)!==y){Je.msg="unknown compression method",ie.mode=ce;break}if(zt>>>=4,sr-=4,Ln=(zt&15)+8,ie.wbits===0)ie.wbits=Ln;else if(Ln>ie.wbits){Je.msg="invalid window size",ie.mode=ce;break}ie.dmax=1<<Ln,Je.adler=ie.check=1,ie.mode=zt&512?M:R,zt=0,sr=0;break;case C:for(;sr<16;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(ie.flags=zt,(ie.flags&255)!==y){Je.msg="unknown compression method",ie.mode=ce;break}if(ie.flags&57344){Je.msg="unknown header flags set",ie.mode=ce;break}ie.head&&(ie.head.text=zt>>8&1),ie.flags&512&&(tt[0]=zt&255,tt[1]=zt>>>8&255,ie.check=(0,g.default)(ie.check,tt,2,0)),zt=0,sr=0,ie.mode=w;case w:for(;sr<32;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.head&&(ie.head.time=zt),ie.flags&512&&(tt[0]=zt&255,tt[1]=zt>>>8&255,tt[2]=zt>>>16&255,tt[3]=zt>>>24&255,ie.check=(0,g.default)(ie.check,tt,4,0)),zt=0,sr=0,ie.mode=b;case b:for(;sr<16;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.head&&(ie.head.xflags=zt&255,ie.head.os=zt>>8),ie.flags&512&&(tt[0]=zt&255,tt[1]=zt>>>8&255,ie.check=(0,g.default)(ie.check,tt,2,0)),zt=0,sr=0,ie.mode=_;case _:if(ie.flags&1024){for(;sr<16;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.length=zt,ie.head&&(ie.head.extra_len=zt),ie.flags&512&&(tt[0]=zt&255,tt[1]=zt>>>8&255,ie.check=(0,g.default)(ie.check,tt,2,0)),zt=0,sr=0}else ie.head&&(ie.head.extra=null);ie.mode=O;case O:if(ie.flags&1024&&(nr=ie.length,nr>er&&(nr=er),nr&&(ie.head&&(Ln=ie.head.extra_len-ie.length,ie.head.extra||(ie.head.extra=new Array(ie.head.extra_len)),E.arraySet(ie.head.extra,bt,me,nr,Ln)),ie.flags&512&&(ie.check=(0,g.default)(ie.check,bt,nr,me)),er-=nr,me+=nr,ie.length-=nr),ie.length))break e;ie.length=0,ie.mode=L;case L:if(ie.flags&2048){if(er===0)break e;nr=0;do Ln=bt[me+nr++],ie.head&&Ln&&ie.length<65536&&(ie.head.name+=String.fromCharCode(Ln));while(Ln&&nr<er);if(ie.flags&512&&(ie.check=(0,g.default)(ie.check,bt,nr,me)),er-=nr,me+=nr,Ln)break e}else ie.head&&(ie.head.name=null);ie.length=0,ie.mode=D;case D:if(ie.flags&4096){if(er===0)break e;nr=0;do Ln=bt[me+nr++],ie.head&&Ln&&ie.length<65536&&(ie.head.comment+=String.fromCharCode(Ln));while(Ln&&nr<er);if(ie.flags&512&&(ie.check=(0,g.default)(ie.check,bt,nr,me)),er-=nr,me+=nr,Ln)break e}else ie.head&&(ie.head.comment=null);ie.mode=N;case N:if(ie.flags&512){for(;sr<16;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(zt!==(ie.check&65535)){Je.msg="header crc mismatch",ie.mode=ce;break}zt=0,sr=0}ie.head&&(ie.head.hcrc=ie.flags>>9&1,ie.head.done=!0),Je.adler=ie.check=0,ie.mode=R;break;case M:for(;sr<32;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}Je.adler=ie.check=ue(zt),zt=0,sr=0,ie.mode=F;case F:if(ie.havedict===0)return Je.next_out=Rt,Je.avail_out=ct,Je.next_in=me,Je.avail_in=er,ie.hold=zt,ie.bits=sr,u;Je.adler=ie.check=1,ie.mode=R;case R:if(ye===s||ye===e)break e;case j:if(ie.last){zt>>>=sr&7,sr-=sr&7,ie.mode=de;break}for(;sr<3;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.last=zt&1,zt>>>=1,sr-=1;switch(zt&3){case 0:ie.mode=B;break;case 1:if(gt(ie),ie.mode=J,ye===e){zt>>>=2,sr-=2;break e}break;case 2:ie.mode=z;break;case 3:Je.msg="invalid block type",ie.mode=ce}zt>>>=2,sr-=2;break;case B:for(zt>>>=sr&7,sr-=sr&7;sr<32;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if((zt&65535)!==(zt>>>16^65535)){Je.msg="invalid stored block lengths",ie.mode=ce;break}if(ie.length=zt&65535,zt=0,sr=0,ie.mode=K,ye===e)break e;case K:ie.mode=U;case U:if(nr=ie.length,nr){if(nr>er&&(nr=er),nr>ct&&(nr=ct),nr===0)break e;E.arraySet(qe,bt,me,nr,Rt),er-=nr,me+=nr,ct-=nr,Rt+=nr,ie.length-=nr;break}ie.mode=R;break;case z:for(;sr<14;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(ie.nlen=(zt&31)+257,zt>>>=5,sr-=5,ie.ndist=(zt&31)+1,zt>>>=5,sr-=5,ie.ncode=(zt&15)+4,zt>>>=4,sr-=4,ie.nlen>286||ie.ndist>30){Je.msg="too many length or distance symbols",ie.mode=ce;break}ie.have=0,ie.mode=V;case V:for(;ie.have<ie.ncode;){for(;sr<3;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.lens[je[ie.have++]]=zt&7,zt>>>=3,sr-=3}for(;ie.have<19;)ie.lens[je[ie.have++]]=0;if(ie.lencode=ie.lendyn,ie.lenbits=7,Ee={bits:ie.lenbits},$e=(0,m.default)(r,ie.lens,0,19,ie.lencode,0,ie.work,Ee),ie.lenbits=Ee.bits,$e){Je.msg="invalid code lengths set",ie.mode=ce;break}ie.have=0,ie.mode=Y;case Y:for(;ie.have<ie.nlen+ie.ndist;){for(;!(Qe=ie.lencode[zt&(1<<ie.lenbits)-1],qt=Qe>>>24,Sr=Qe>>>16&255,Ar=Qe&65535,qt<=sr);){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(Ar<16)zt>>>=qt,sr-=qt,ie.lens[ie.have++]=Ar;else{if(Ar===16){for(Re=qt+2;sr<Re;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(zt>>>=qt,sr-=qt,ie.have===0){Je.msg="invalid bit length repeat",ie.mode=ce;break}Ln=ie.lens[ie.have-1],nr=3+(zt&3),zt>>>=2,sr-=2}else if(Ar===17){for(Re=qt+3;sr<Re;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}zt>>>=qt,sr-=qt,Ln=0,nr=3+(zt&7),zt>>>=3,sr-=3}else{for(Re=qt+7;sr<Re;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}zt>>>=qt,sr-=qt,Ln=0,nr=11+(zt&127),zt>>>=7,sr-=7}if(ie.have+nr>ie.nlen+ie.ndist){Je.msg="invalid bit length repeat",ie.mode=ce;break}for(;nr--;)ie.lens[ie.have++]=Ln}}if(ie.mode===ce)break;if(ie.lens[256]===0){Je.msg="invalid code -- missing end-of-block",ie.mode=ce;break}if(ie.lenbits=9,Ee={bits:ie.lenbits},$e=(0,m.default)(i,ie.lens,0,ie.nlen,ie.lencode,0,ie.work,Ee),ie.lenbits=Ee.bits,$e){Je.msg="invalid literal/lengths set",ie.mode=ce;break}if(ie.distbits=6,ie.distcode=ie.distdyn,Ee={bits:ie.distbits},$e=(0,m.default)(n,ie.lens,ie.nlen,ie.ndist,ie.distcode,0,ie.work,Ee),ie.distbits=Ee.bits,$e){Je.msg="invalid distances set",ie.mode=ce;break}if(ie.mode=J,ye===e)break e;case J:ie.mode=se;case se:if(er>=6&&ct>=258){Je.next_out=Rt,Je.avail_out=ct,Je.next_in=me,Je.avail_in=er,ie.hold=zt,ie.bits=sr,(0,S.default)(Je,ar),Rt=Je.next_out,qe=Je.output,ct=Je.avail_out,me=Je.next_in,bt=Je.input,er=Je.avail_in,zt=ie.hold,sr=ie.bits,ie.mode===R&&(ie.back=-1);break}for(ie.back=0;!(Qe=ie.lencode[zt&(1<<ie.lenbits)-1],qt=Qe>>>24,Sr=Qe>>>16&255,Ar=Qe&65535,qt<=sr);){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(Sr&&(Sr&240)===0){for(hr=qt,vn=Sr,Zr=Ar;!(Qe=ie.lencode[Zr+((zt&(1<<hr+vn)-1)>>hr)],qt=Qe>>>24,Sr=Qe>>>16&255,Ar=Qe&65535,hr+qt<=sr);){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}zt>>>=hr,sr-=hr,ie.back+=hr}if(zt>>>=qt,sr-=qt,ie.back+=qt,ie.length=Ar,Sr===0){ie.mode=Ne;break}if(Sr&32){ie.back=-1,ie.mode=R;break}if(Sr&64){Je.msg="invalid literal/length code",ie.mode=ce;break}ie.extra=Sr&15,ie.mode=$;case $:if(ie.extra){for(Re=ie.extra;sr<Re;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.length+=zt&(1<<ie.extra)-1,zt>>>=ie.extra,sr-=ie.extra,ie.back+=ie.extra}ie.was=ie.length,ie.mode=ae;case ae:for(;!(Qe=ie.distcode[zt&(1<<ie.distbits)-1],qt=Qe>>>24,Sr=Qe>>>16&255,Ar=Qe&65535,qt<=sr);){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if((Sr&240)===0){for(hr=qt,vn=Sr,Zr=Ar;!(Qe=ie.distcode[Zr+((zt&(1<<hr+vn)-1)>>hr)],qt=Qe>>>24,Sr=Qe>>>16&255,Ar=Qe&65535,hr+qt<=sr);){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}zt>>>=hr,sr-=hr,ie.back+=hr}if(zt>>>=qt,sr-=qt,ie.back+=qt,Sr&64){Je.msg="invalid distance code",ie.mode=ce;break}ie.offset=Ar,ie.extra=Sr&15,ie.mode=ge;case ge:if(ie.extra){for(Re=ie.extra;sr<Re;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}ie.offset+=zt&(1<<ie.extra)-1,zt>>>=ie.extra,sr-=ie.extra,ie.back+=ie.extra}if(ie.offset>ie.dmax){Je.msg="invalid distance too far back",ie.mode=ce;break}ie.mode=pe;case pe:if(ct===0)break e;if(nr=ar-ct,ie.offset>nr){if(nr=ie.offset-nr,nr>ie.whave&&ie.sane){Je.msg="invalid distance too far back",ie.mode=ce;break}nr>ie.wnext?(nr-=ie.wnext,Lt=ie.wsize-nr):Lt=ie.wnext-nr,nr>ie.length&&(nr=ie.length),st=ie.window}else st=qe,Lt=Rt-ie.offset,nr=ie.length;nr>ct&&(nr=ct),ct-=nr,ie.length-=nr;do qe[Rt++]=st[Lt++];while(--nr);ie.length===0&&(ie.mode=se);break;case Ne:if(ct===0)break e;qe[Rt++]=ie.length,ct--,ie.mode=se;break;case de:if(ie.wrap){for(;sr<32;){if(er===0)break e;er--,zt|=bt[me++]<<sr,sr+=8}if(ar-=ct,Je.total_out+=ar,ie.total+=ar,ar&&(Je.adler=ie.check=ie.flags?(0,g.default)(ie.check,qe,ar,Rt-ar):(0,T.default)(ie.check,qe,ar,Rt-ar)),ar=ct,(ie.flags?zt:ue(zt))!==ie.check){Je.msg="incorrect data check",ie.mode=ce;break}zt=0,sr=0}ie.mode=Le;case Le:if(ie.wrap&&ie.flags){for(;sr<32;){if(er===0)break e;er--,zt+=bt[me++]<<sr,sr+=8}if(zt!==(ie.total&4294967295)){Je.msg="incorrect length check",ie.mode=ce;break}zt=0,sr=0}ie.mode=Q;case Q:$e=l;break e;case ce:$e=p;break e;case Ke:return v;case ee:default:return f}return Je.next_out=Rt,Je.avail_out=ct,Je.next_in=me,Je.avail_in=er,ie.hold=zt,ie.bits=sr,(ie.wsize||ar!==Je.avail_out&&ie.mode<ce&&(ie.mode<de||ye!==t))&&Ge(Je,Je.output,Je.next_out,ar-Je.avail_out)?(ie.mode=Ke,v):(Kr-=Je.avail_in,ar-=Je.avail_out,Je.total_in+=Kr,Je.total_out+=ar,ie.total+=ar,ie.wrap&&ar&&(Je.adler=ie.check=ie.flags?(0,g.default)(ie.check,qe,ar,Je.next_out-ar):(0,T.default)(ie.check,qe,ar,Je.next_out-ar)),Je.data_type=ie.bits+(ie.last?64:0)+(ie.mode===R?128:0)+(ie.mode===J||ie.mode===K?256:0),(Kr===0&&ar===0||ye===t)&&$e===o&&($e=A),$e)}function xt(Je){if(!Je||!Je.state)return f;var ye=Je.state;return ye.window&&(ye.window=null),Je.state=null,o}function Ct(Je,ye){var ie;return!Je||!Je.state?f:(ie=Je.state,(ie.wrap&2)===0?f:(ie.head=ye,ye.done=!1,o))}function Dt(Je,ye){var ie=ye.length,bt,qe,me;return!Je||!Je.state?f:(bt=Je.state,bt.wrap!==0&&bt.mode!==F?f:bt.mode===F&&(qe=1,qe=(0,T.default)(qe,ye,ie,0),qe!==bt.check)?p:(me=Ge(Je,ye,ie,ie),me?(bt.mode=Ke,v):(bt.havedict=1,o)))}var Ht="pako inflate (from Nodeca project)";k.inflateInfo=Ht},ePAk:function(H,k,d){var I=d("ProS");d("2fGM");var E=I.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(T){var g,S=this.ecModel;return S.eachComponent(T,function(m){m.getCoordSysModel()===this&&(g=m)},this),g},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});H.exports=E},eRkO:function(H,k,d){var I=d("+TT/"),E=I.getLayoutRect,T=I.box,g=I.positionElement,S=d("7aKB"),m=d("IwbS");function h(a,r,i){var n=r.getBoxLayoutParams(),t=r.get("padding"),s={width:i.getWidth(),height:i.getHeight()},e=E(n,s,t);T(r.get("orient"),a,r.get("itemGap"),e.width,e.height),g(a,n,s,t)}function c(a,r){var i=S.normalizeCssArray(r.get("padding")),n=r.getItemStyle(["color","opacity"]);n.fill=r.get("backgroundColor");var a=new m.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a.height+i[0]+i[2],r:r.get("borderRadius")},style:n,silent:!0,z2:-1});return a}k.layout=h,k.makeBackground=c},eS4l:function(H,k,d){d("HM/N"),d("FNN5")},eUgh:function(H,k){function d(I,E){for(var T=-1,g=I==null?0:I.length,S=Array(g);++T<g;)S[T]=E(I[T],T,I);return S}H.exports=d},ewwo:function(H,k,d){var I=d("bMXI"),E=d("+TT/"),T=E.getLayoutRect,g=d("4mN7");function S(h,c,a){var r=h.getBoxLayoutParams();return r.aspect=a,T(r,{width:c.getWidth(),height:c.getHeight()})}function m(h,c){var a=[];return h.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var n=r.getData(),t=n.mapArray(function(y){var x=n.getItemModel(y);return[+x.get("x"),+x.get("y")]}),s=[],e=[];g.fromPoints(t,s,e),e[0]-s[0]===0&&(e[0]+=1,s[0]-=1),e[1]-s[1]===0&&(e[1]+=1,s[1]-=1);var o=(e[0]-s[0])/(e[1]-s[1]),l=S(r,c,o);isNaN(o)&&(s=[l.x,l.y],e=[l.x+l.width,l.y+l.height]);var u=e[0]-s[0],f=e[1]-s[1],p=l.width,v=l.height,A=r.coordinateSystem=new I;A.zoomLimit=r.get("scaleLimit"),A.setBoundingRect(s[0],s[1],u,f),A.setViewRect(l.x,l.y,p,v),A.setCenter(r.get("center")),A.setZoom(r.get("zoom")),a.push(A)}}),a}H.exports=m},f1nB:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("bYtY"),S=d("4NO4"),m=d("IwbS"),h=d("+TT/"),c=d("OELB"),a=c.parsePercent,r={path:null,compoundPath:null,group:m.Group,image:m.Image,text:m.Text};T.registerPreprocessor(function(p){var v=p.graphic;g.isArray(v)?!v[0]||!v[0].elements?p.graphic=[{elements:v}]:p.graphic=[p.graphic[0]]:v&&!v.elements&&(p.graphic=[{elements:[v]}])});var i=T.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(p){var v=this.option.elements;this.option.elements=null,i.superApply(this,"mergeOption",arguments),this.option.elements=v},optionUpdated:function(p,v){var A=this.option,y=(v?A:p).elements,x=A.elements=v?[]:A.elements,C=[];this._flatten(y,C);var w=S.mappingToExists(x,C);S.makeIdAndName(w);var b=this._elOptionsToUpdate=[];g.each(w,function(O,L){var D=O.option;if(!D)return;b.push(D),o(O,D),l(x,L,D),u(x[L],D)},this);for(var _=x.length-1;_>=0;_--)x[_]==null?x.splice(_,1):delete x[_].$action},_flatten:function(p,v,A){g.each(p,function(y){if(!y)return;A&&(y.parentOption=A),v.push(y);var x=y.children;y.type==="group"&&x&&this._flatten(x,v,y),delete y.children},this)},useElOptionsToUpdate:function(){var p=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,p}});T.extendComponentView({type:"graphic",init:function(p,v){this._elMap=g.createHashMap(),this._lastGraphicModel},render:function(p,v,A){p!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=p,this._updateElements(p),this._relocate(p,A)},_updateElements:function(p){var v=p.useElOptionsToUpdate();if(!v)return;var A=this._elMap,y=this.group;g.each(v,function(x){var C=x.$action,w=x.id,b=A.get(w),_=x.parentId,O=_!=null?A.get(_):y,L=x.style;x.type==="text"&&L&&(x.hv&&x.hv[1]&&(L.textVerticalAlign=L.textBaseline=null),!L.hasOwnProperty("textFill")&&L.fill&&(L.textFill=L.fill),!L.hasOwnProperty("textStroke")&&L.stroke&&(L.textStroke=L.stroke));var D=s(x);!C||C==="merge"?b?b.attr(D):n(w,O,D,A):C==="replace"?(t(b,A),n(w,O,D,A)):C==="remove"&&t(b,A);var N=A.get(w);N&&(N.__ecGraphicWidthOption=x.width,N.__ecGraphicHeightOption=x.height,f(N,p,x))})},_relocate:function(p,v){for(var A=p.option.elements,y=this.group,x=this._elMap,C=v.getWidth(),w=v.getHeight(),b=0;b<A.length;b++){var _=A[b],O=x.get(_.id);if(!O||!O.isGroup)continue;var L=O.parent,D=L===y;O.__ecGraphicWidth=a(O.__ecGraphicWidthOption,D?C:L.__ecGraphicWidth)||0,O.__ecGraphicHeight=a(O.__ecGraphicHeightOption,D?w:L.__ecGraphicHeight)||0}for(var b=A.length-1;b>=0;b--){var _=A[b],O=x.get(_.id);if(!O)continue;var L=O.parent,N=L===y?{width:C,height:w}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};h.positionElement(O,_,N,null,{hv:_.hv,boundingMode:_.bounding})}},_clear:function(){var p=this._elMap;p.each(function(v){t(v,p)}),this._elMap=g.createHashMap()},dispose:function(){this._clear()}});function n(p,v,A,y){var x=A.type,C=r.hasOwnProperty(x)?r[x]:m.getShapeClass(x),w=new C(A);v.add(w),y.set(p,w),w.__ecGraphicId=p}function t(p,v){var A=p&&p.parent;A&&(p.type==="group"&&p.traverse(function(y){t(y,v)}),v.removeKey(p.__ecGraphicId),A.remove(p))}function s(p){return p=g.extend({},p),g.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),function(v){delete p[v]}),p}function e(p,v){var A;return g.each(v,function(y){p[y]!=null&&p[y]!=="auto"&&(A=!0)}),A}function o(p,v){var A=p.exist;if(v.id=p.keyInfo.id,!v.type&&A&&(v.type=A.type),v.parentId==null){var y=v.parentOption;y?v.parentId=y.id:A&&(v.parentId=A.parentId)}v.parentOption=null}function l(p,v,A){var y=g.extend({},A),x=p[v],C=A.$action||"merge";C==="merge"?x?(g.merge(x,y,!0),h.mergeLayoutParam(x,y,{ignoreSize:!0}),h.copyLayoutParams(A,x)):p[v]=y:C==="replace"?p[v]=y:C==="remove"&&(x&&(p[v]=null))}function u(p,v){if(!p)return;p.hv=v.hv=[e(v,["left","right"]),e(v,["top","bottom"])],p.type==="group"&&(p.width==null&&(p.width=v.width=0),p.height==null&&(p.height=v.height=0))}function f(p,v,A){var y=p.eventData;!p.silent&&!p.ignore&&!y&&(y=p.eventData={componentType:"graphic",componentIndex:v.componentIndex,name:p.name}),y&&(y.info=p.info)}},f3JH:function(H,k,d){d("aTJb"),d("OlYY"),d("fc+c"),d("oY9F"),d("MqEG"),d("LBfv"),d("noeP")},f5HG:function(H,k,d){var I=d("IwbS"),E=d("QBsz"),T=I.Line.prototype,g=I.BezierCurve.prototype;function S(h){return isNaN(+h.cpx1)||isNaN(+h.cpy1)}var m=I.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,c){this[S(c)?"_buildPathLine":"_buildPathCurve"](h,c)},_buildPathLine:T.buildPath,_buildPathCurve:g.buildPath,pointAt:function(h){return this[S(this.shape)?"_pointAtLine":"_pointAtCurve"](h)},_pointAtLine:T.pointAt,_pointAtCurve:g.pointAt,tangentAt:function(h){var c=this.shape,a=S(c)?[c.x2-c.x1,c.y2-c.y1]:this._tangentAtCurve(h);return E.normalize(a,a)},_tangentAtCurve:g.tangentAt});H.exports=m},f5Yq:function(H,k,d){var I=d("bYtY"),E=I.isFunction;function T(g,S,m){return{seriesType:g,performRawSeries:!0,reset:function(h,c,a){var r=h.getData(),i=h.get("symbol"),n=h.get("symbolSize"),t=h.get("symbolKeepAspect"),s=h.get("symbolRotate"),e=E(i),o=E(n),l=E(s),u=e||o||l,f=!e&&i?i:S,p=o?null:n,v=l?null:v;if(r.setVisual({legendSymbol:m||f,symbol:f,symbolSize:p,symbolKeepAspect:t,symbolRotate:s}),c.isSeriesFiltered(h))return;function A(y,x){if(u){var C=h.getRawValue(x),w=h.getDataParams(x);e&&y.setItemVisual(x,"symbol",i(C,w)),o&&y.setItemVisual(x,"symbolSize",n(C,w)),l&&y.setItemVisual(x,"symbolRotate",s(C,w))}if(y.hasItemOption){var b=y.getItemModel(x),_=b.getShallow("symbol",!0),O=b.getShallow("symbolSize",!0),L=b.getShallow("symbolRotate",!0),D=b.getShallow("symbolKeepAspect",!0);_!=null&&y.setItemVisual(x,"symbol",_),O!=null&&y.setItemVisual(x,"symbolSize",O),L!=null&&y.setItemVisual(x,"symbolRotate",L),D!=null&&y.setItemVisual(x,"symbolKeepAspect",D)}}return{dataEach:r.hasItemOption||u?A:null}}}}H.exports=T},fAei:function(H,k,d){"use strict";d.d(k,"a",function(){return p.a});var I=d("rePB"),E=d("VTBJ"),T=d("KQm4"),g=d("1OyB"),S=d("vuIU"),m=d("Ji7U"),h=d("LK+K"),c=d("q1tI"),a=d("4IlW"),r=d("Kwbf"),i=d("TSYQ"),n=d.n(i),t=d("sboe"),s=d("OZM5"),e=d("815F"),o=d("ODXe"),l=d("Ff2n"),u=d("+nKL"),f=d("8XRh"),p=d("WaYH"),v=function(J,se){var $=J.className,ae=J.style,ge=J.motion,pe=J.motionNodes,Ne=J.motionType,de=J.onMotionStart,Le=J.onMotionEnd,Q=J.active,ce=J.treeNodeRequiredProps,Ke=Object(l.a)(J,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ee=c.useState(!0),X=Object(o.a)(ee,2),G=X[0],Z=X[1],ve=c.useContext(t.a),ue=ve.prefixCls,_e=c.useRef(!1),xe=function(){_e.current||Le(),_e.current=!0};return Object(c.useEffect)(function(){pe&&Ne==="hide"&&G&&Z(!1)},[pe]),Object(c.useEffect)(function(){return pe&&de(),function(){pe&&xe()}},[]),pe?c.createElement(f.default,Object.assign({ref:se,visible:G},ge,{motionAppear:Ne==="show",onAppearEnd:xe,onLeaveEnd:xe}),function(oe,fe){var Te=oe.className,ze=oe.style;return c.createElement("div",{ref:fe,className:n()("".concat(ue,"-treenode-motion"),Te),style:ze},pe.map(function(it){var et=it.data,Oe=et.key,gt=Object(l.a)(et,["key"]),Ge=it.isStart,wt=it.isEnd;delete gt.children;var xt=Object(e.f)(Oe,ce);return c.createElement(p.a,Object.assign({},gt,xt,{active:Q,data:it.data,key:Oe,isStart:Ge,isEnd:wt}))}))}):c.createElement(p.a,Object.assign({domRef:se,className:$,style:ae},Ke,{active:Q}))};v.displayName="MotionTreeNode";var A=c.forwardRef(v),y=A;function x(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=Y.length,$=J.length;if(Math.abs(se-$)!==1)return{add:!1,key:null};function ae(ge,pe){var Ne=new Map;ge.forEach(function(Le){Ne.set(Le,!0)});var de=pe.filter(function(Le){return!Ne.has(Le)});return de.length===1?de[0]:null}return se<$?{add:!0,key:ae(Y,J)}:{add:!1,key:ae(J,Y)}}function C(Y,J,se){var $=Y.findIndex(function(Ne){var de=Ne.data;return de.key===se}),ae=Y[$+1],ge=J.findIndex(function(Ne){var de=Ne.data;return de.key===se});if(ae){var pe=J.findIndex(function(Ne){var de=Ne.data;return de.key===ae.data.key});return J.slice(ge+1,pe)}return J.slice(ge+1)}var w={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},b=function(){},_="RC_TREE_MOTION_".concat(Math.random()),O={key:_},L={key:_,level:0,index:0,pos:"0",node:O},D={parent:null,children:[],pos:L.pos,data:O,isStart:[],isEnd:[]};function N(Y,J,se,$){return J===!1||!se?Y:Y.slice(0,Math.ceil(se/$)+1)}function M(Y){var J=Y.data.key,se=Y.pos;return Object(e.e)(J,se)}function F(Y){for(var J=String(Y.data.key),se=Y;se.parent;)se=se.parent,J="".concat(se.data.key," > ").concat(J);return J}var R=function(J,se){var $=J.prefixCls,ae=J.data,ge=J.selectable,pe=J.checkable,Ne=J.expandedKeys,de=J.selectedKeys,Le=J.checkedKeys,Q=J.loadedKeys,ce=J.loadingKeys,Ke=J.halfCheckedKeys,ee=J.keyEntities,X=J.disabled,G=J.dragging,Z=J.dragOverNodeKey,ve=J.dropPosition,ue=J.motion,_e=J.height,xe=J.itemHeight,oe=J.virtual,fe=J.focusable,Te=J.activeItem,ze=J.focused,it=J.tabIndex,et=J.onKeyDown,Oe=J.onFocus,gt=J.onBlur,Ge=J.onActiveChange,wt=J.onListChangeStart,xt=J.onListChangeEnd,Ct=Object(l.a)(J,["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"]),Dt=c.useRef(null);c.useImperativeHandle(se,function(){return{scrollTo:function(Ln){Dt.current.scrollTo(Ln)}}});var Ht=c.useState(Ne),Je=Object(o.a)(Ht,2),ye=Je[0],ie=Je[1],bt=c.useState(ae),qe=Object(o.a)(bt,2),me=qe[0],Rt=qe[1],er=c.useState(ae),ct=Object(o.a)(er,2),zt=ct[0],sr=ct[1],Kr=c.useState([]),ar=Object(o.a)(Kr,2),nr=ar[0],Lt=ar[1],st=c.useState(null),Qe=Object(o.a)(st,2),qt=Qe[0],Sr=Qe[1];function Ar(){Rt(ae),sr(ae),Lt([]),Sr(null),xt()}c.useEffect(function(){ie(Ne);var Zr=x(ye,Ne);if(Zr.key!==null)if(Zr.add){var Ln=me.findIndex(function(nt){var Vt=nt.data.key;return Vt===Zr.key}),$e=N(C(me,ae,Zr.key),oe,_e,xe),tt=me.slice();tt.splice(Ln+1,0,D),sr(tt),Lt($e),Sr("show")}else{var Ee=ae.findIndex(function(nt){var Vt=nt.data.key;return Vt===Zr.key}),Re=N(C(ae,me,Zr.key),oe,_e,xe),je=ae.slice();je.splice(Ee+1,0,D),sr(je),Lt(Re),Sr("hide")}else me!==ae&&(Rt(ae),sr(ae))},[Ne,ae]),c.useEffect(function(){G||Ar()},[G]);var hr=ue?zt:ae,vn={expandedKeys:Ne,selectedKeys:de,loadedKeys:Q,loadingKeys:ce,checkedKeys:Le,halfCheckedKeys:Ke,dragOverNodeKey:Z,dropPosition:ve,keyEntities:ee};return c.createElement(c.Fragment,null,ze&&Te&&c.createElement("span",{style:w,"aria-live":"assertive"},F(Te)),c.createElement("div",{role:"tree"},c.createElement("input",{style:w,disabled:fe===!1||X,tabIndex:fe!==!1?it:null,onKeyDown:et,onFocus:Oe,onBlur:gt,value:"",onChange:b})),c.createElement(u.a,Object.assign({},Ct,{data:hr,itemKey:M,height:_e,fullHeight:!1,virtual:oe,itemHeight:xe,prefixCls:"".concat($,"-list"),ref:Dt}),function(Zr){var Ln=Zr.pos,$e=Zr.data,tt=$e.key,Ee=Object(l.a)($e,["key"]),Re=Zr.isStart,je=Zr.isEnd,nt=Object(e.e)(tt,Ln);delete Ee.children;var Vt=Object(e.f)(nt,vn);return c.createElement(y,Object.assign({},Ee,Vt,{active:Te&&tt===Te.data.key,pos:Ln,data:Zr.data,isStart:Re,isEnd:je,motion:ue,motionNodes:tt===_?nr:null,motionType:qt,onMotionStart:wt,onMotionEnd:Ar,treeNodeRequiredProps:vn,onMouseMove:function(){Ge(null)}}))}))},j=c.forwardRef(R);j.displayName="NodeList";var B=j,K=d("NvD2"),U=function(Y){Object(m.a)(se,Y);var J=Object(h.a)(se);function se(){var $;return Object(g.a)(this,se),$=J.apply(this,arguments),$.destroyed=!1,$.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},$.listRef=c.createRef(),$.onNodeDragStart=function(ae,ge){var pe=$.state,Ne=pe.expandedKeys,de=pe.keyEntities,Le=$.props.onDragStart,Q=ge.props.eventKey;$.dragNode=ge;var ce=Object(s.b)(Ne,Q);$.setState({dragging:!0,dragNodesKeys:Object(s.g)(Q,de)}),$.setExpandedKeys(ce),Le&&Le({event:ae,node:Object(e.b)(ge.props)})},$.onNodeDragEnter=function(ae,ge){var pe=$.state,Ne=pe.expandedKeys,de=pe.keyEntities,Le=pe.dragNodesKeys,Q=$.props.onDragEnter,ce=ge.props,Ke=ce.pos,ee=ce.eventKey;if(!$.dragNode||Le.indexOf(ee)!==-1)return;var X=Object(s.c)(ae,ge);if($.dragNode.props.eventKey===ee&&X===0){$.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){$.setState({dragOverNodeKey:ee,dropPosition:X}),$.delayedDragEnterLogic||($.delayedDragEnterLogic={}),Object.keys($.delayedDragEnterLogic).forEach(function(G){clearTimeout($.delayedDragEnterLogic[G])}),$.delayedDragEnterLogic[Ke]=window.setTimeout(function(){if(!$.state.dragging)return;var G=Object(T.a)(Ne),Z=de[ee];Z&&(Z.children||[]).length&&(G=Object(s.a)(Ne,ee)),"expandedKeys"in $.props||$.setExpandedKeys(G),Q&&Q({event:ae,node:Object(e.b)(ge.props),expandedKeys:G})},400)},0)},$.onNodeDragOver=function(ae,ge){var pe=$.state.dragNodesKeys,Ne=$.props.onDragOver,de=ge.props.eventKey;if(pe.indexOf(de)!==-1)return;if($.dragNode&&de===$.state.dragOverNodeKey){var Le=Object(s.c)(ae,ge);if(Le===$.state.dropPosition)return;$.setState({dropPosition:Le})}Ne&&Ne({event:ae,node:Object(e.b)(ge.props)})},$.onNodeDragLeave=function(ae,ge){var pe=$.props.onDragLeave;$.setState({dragOverNodeKey:""}),pe&&pe({event:ae,node:Object(e.b)(ge.props)})},$.onNodeDragEnd=function(ae,ge){var pe=$.props.onDragEnd;$.setState({dragOverNodeKey:""}),$.cleanDragState(),pe&&pe({event:ae,node:Object(e.b)(ge.props)}),$.dragNode=null},$.onNodeDrop=function(ae,ge){var pe=$.state,Ne=pe.dragNodesKeys,de=Ne===void 0?[]:Ne,Le=pe.dropPosition,Q=$.props.onDrop,ce=ge.props,Ke=ce.eventKey,ee=ce.pos;if($.setState({dragOverNodeKey:""}),$.cleanDragState(),de.indexOf(Ke)!==-1){Object(r.a)(!1,"Can not drop to dragNode(include it's children node)");return}var X=Object(s.k)(ee),G={event:ae,node:Object(e.b)(ge.props),dragNode:$.dragNode?Object(e.b)($.dragNode.props):null,dragNodesKeys:de.slice(),dropPosition:Le+Number(X[X.length-1]),dropToGap:!1};Le!==0&&(G.dropToGap=!0),Q&&Q(G),$.dragNode=null},$.cleanDragState=function(){var ae=$.state.dragging;ae&&$.setState({dragging:!1})},$.onNodeClick=function(ae,ge){var pe=$.props.onClick;pe&&pe(ae,ge)},$.onNodeDoubleClick=function(ae,ge){var pe=$.props.onDoubleClick;pe&&pe(ae,ge)},$.onNodeSelect=function(ae,ge){var pe=$.state.selectedKeys,Ne=$.state.keyEntities,de=$.props,Le=de.onSelect,Q=de.multiple,ce=ge.selected,Ke=ge.key,ee=!ce;ee?Q?pe=Object(s.a)(pe,Ke):pe=[Ke]:pe=Object(s.b)(pe,Ke);var X=pe.map(function(G){var Z=Ne[G];return Z?Z.node:null}).filter(function(G){return G});$.setUncontrolledState({selectedKeys:pe}),Le&&Le(pe,{event:"select",selected:ee,node:ge,selectedNodes:X,nativeEvent:ae.nativeEvent})},$.onNodeCheck=function(ae,ge,pe){var Ne=$.state,de=Ne.keyEntities,Le=Ne.checkedKeys,Q=Ne.halfCheckedKeys,ce=$.props,Ke=ce.checkStrictly,ee=ce.onCheck,X=ge.key,G,Z={event:"check",node:ge,checked:pe,nativeEvent:ae.nativeEvent};if(Ke){var ve=pe?Object(s.a)(Le,X):Object(s.b)(Le,X),ue=Object(s.b)(Q,X);G={checked:ve,halfChecked:ue},Z.checkedNodes=ve.map(function(ze){return de[ze]}).filter(function(ze){return ze}).map(function(ze){return ze.node}),$.setUncontrolledState({checkedKeys:ve})}else{var _e=Object(K.a)([].concat(Object(T.a)(Le),[X]),!0,de),xe=_e.checkedKeys,oe=_e.halfCheckedKeys;if(!pe){var fe=new Set(xe);fe.delete(X);var Te=Object(K.a)(Array.from(fe),{checked:!1,halfCheckedKeys:oe},de);xe=Te.checkedKeys,oe=Te.halfCheckedKeys}G=xe,Z.checkedNodes=[],Z.checkedNodesPositions=[],Z.halfCheckedKeys=oe,xe.forEach(function(ze){var it=de[ze];if(!it)return;var et=it.node,Oe=it.pos;Z.checkedNodes.push(et),Z.checkedNodesPositions.push({node:et,pos:Oe})}),$.setUncontrolledState({checkedKeys:xe},!1,{halfCheckedKeys:oe})}ee&&ee(G,Z)},$.onNodeLoad=function(ae){return new Promise(function(ge){$.setState(function(pe){var Ne=pe.loadedKeys,de=Ne===void 0?[]:Ne,Le=pe.loadingKeys,Q=Le===void 0?[]:Le,ce=$.props,Ke=ce.loadData,ee=ce.onLoad,X=ae.key;if(!Ke||de.indexOf(X)!==-1||Q.indexOf(X)!==-1)return{};var G=Ke(ae);return G.then(function(){var Z=$.state,ve=Z.loadedKeys,ue=Z.loadingKeys,_e=Object(s.a)(ve,X),xe=Object(s.b)(ue,X);ee&&ee(_e,{event:"load",node:ae}),$.setUncontrolledState({loadedKeys:_e}),$.setState({loadingKeys:xe}),ge()}),{loadingKeys:Object(s.a)(Q,X)}})})},$.onNodeMouseEnter=function(ae,ge){var pe=$.props.onMouseEnter;pe&&pe({event:ae,node:ge})},$.onNodeMouseLeave=function(ae,ge){var pe=$.props.onMouseLeave;pe&&pe({event:ae,node:ge})},$.onNodeContextMenu=function(ae,ge){var pe=$.props.onRightClick;pe&&(ae.preventDefault(),pe({event:ae,node:ge}))},$.onFocus=function(){var ae=$.props.onFocus;$.setState({focused:!0}),ae&&ae.apply(void 0,arguments)},$.onBlur=function(){var ae=$.props.onBlur;$.setState({focused:!1}),$.onActiveChange(null),ae&&ae.apply(void 0,arguments)},$.getTreeNodeRequiredProps=function(){var ae=$.state,ge=ae.expandedKeys,pe=ae.selectedKeys,Ne=ae.loadedKeys,de=ae.loadingKeys,Le=ae.checkedKeys,Q=ae.halfCheckedKeys,ce=ae.dragOverNodeKey,Ke=ae.dropPosition,ee=ae.keyEntities;return{expandedKeys:ge||[],selectedKeys:pe||[],loadedKeys:Ne||[],loadingKeys:de||[],checkedKeys:Le||[],halfCheckedKeys:Q||[],dragOverNodeKey:ce,dropPosition:Ke,keyEntities:ee}},$.setExpandedKeys=function(ae){var ge=$.state.treeData,pe=Object(e.d)(ge,ae);$.setUncontrolledState({expandedKeys:ae,flattenNodes:pe},!0)},$.onNodeExpand=function(ae,ge){var pe=$.state.expandedKeys,Ne=$.state.listChanging,de=$.props,Le=de.onExpand,Q=de.loadData,ce=ge.key,Ke=ge.expanded;if(Ne)return;var ee=pe.indexOf(ce),X=!Ke;if(Object(r.a)(Ke&&ee!==-1||!Ke&&ee===-1,"Expand state not sync with index check"),X?pe=Object(s.a)(pe,ce):pe=Object(s.b)(pe,ce),$.setExpandedKeys(pe),Le&&Le(pe,{node:ge,expanded:X,nativeEvent:ae.nativeEvent}),X&&Q){var G=$.onNodeLoad(ge);G&&G.then(function(){var Z=Object(e.d)($.state.treeData,pe);$.setUncontrolledState({flattenNodes:Z})})}},$.onListChangeStart=function(){$.setUncontrolledState({listChanging:!0})},$.onListChangeEnd=function(){setTimeout(function(){$.setUncontrolledState({listChanging:!1})})},$.onActiveChange=function(ae){var ge=$.state.activeKey,pe=$.props.onActiveChange;if(ge===ae)return;$.setState({activeKey:ae}),ae!==null&&$.scrollTo({key:ae}),pe&&pe(ae)},$.getActiveItem=function(){var ae=$.state,ge=ae.activeKey,pe=ae.flattenNodes;return ge===null?null:pe.find(function(Ne){var de=Ne.data.key;return de===ge})||null},$.offsetActiveKey=function(ae){var ge=$.state,pe=ge.flattenNodes,Ne=ge.activeKey,de=pe.findIndex(function(ce){var Ke=ce.data.key;return Ke===Ne});de===-1&&ae<0&&(de=pe.length),de=(de+ae+pe.length)%pe.length;var Le=pe[de];if(Le){var Q=Le.data.key;$.onActiveChange(Q)}else $.onActiveChange(null)},$.onKeyDown=function(ae){var ge=$.state,pe=ge.activeKey,Ne=ge.expandedKeys,de=ge.checkedKeys,Le=$.props,Q=Le.onKeyDown,ce=Le.checkable,Ke=Le.selectable;switch(ae.which){case a.a.UP:{$.offsetActiveKey(-1),ae.preventDefault();break}case a.a.DOWN:{$.offsetActiveKey(1),ae.preventDefault();break}}var ee=$.getActiveItem();if(ee&&ee.data){var X=$.getTreeNodeRequiredProps(),G=ee.data.isLeaf===!1||!!(ee.data.children||[]).length,Z=Object(e.b)(Object(E.a)(Object(E.a)({},Object(e.f)(pe,X)),{},{data:ee.data,active:!0}));switch(ae.which){case a.a.LEFT:{G&&Ne.includes(pe)?$.onNodeExpand({},Z):ee.parent&&$.onActiveChange(ee.parent.data.key),ae.preventDefault();break}case a.a.RIGHT:{G&&!Ne.includes(pe)?$.onNodeExpand({},Z):ee.children&&ee.children.length&&$.onActiveChange(ee.children[0].data.key),ae.preventDefault();break}case a.a.ENTER:case a.a.SPACE:{ce&&!Z.disabled&&Z.checkable!==!1&&!Z.disableCheckbox?$.onNodeCheck({},Z,!de.includes(pe)):!ce&&Ke&&!Z.disabled&&Z.selectable!==!1&&$.onNodeSelect({},Z);break}}}Q&&Q(ae)},$.setUncontrolledState=function(ae){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if($.destroyed)return;var Ne=!1,de=!0,Le={};Object.keys(ae).forEach(function(Q){if(Q in $.props){de=!1;return}Ne=!0,Le[Q]=ae[Q]}),Ne&&(!ge||de)&&$.setState(Object(E.a)(Object(E.a)({},Le),pe))},$.scrollTo=function(ae){$.listRef.current.scrollTo(ae)},$}return Object(S.a)(se,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ae,ge=this.state,pe=ge.focused,Ne=ge.flattenNodes,de=ge.keyEntities,Le=ge.dragging,Q=ge.activeKey,ce=this.props,Ke=ce.prefixCls,ee=ce.className,X=ce.style,G=ce.showLine,Z=ce.focusable,ve=ce.tabIndex,ue=ve===void 0?0:ve,_e=ce.selectable,xe=ce.showIcon,oe=ce.icon,fe=ce.switcherIcon,Te=ce.draggable,ze=ce.checkable,it=ce.checkStrictly,et=ce.disabled,Oe=ce.motion,gt=ce.loadData,Ge=ce.filterTreeNode,wt=ce.height,xt=ce.itemHeight,Ct=ce.virtual,Dt=ce.titleRender,Ht=ce.onContextMenu,Je=Object(s.f)(this.props);return c.createElement(t.a.Provider,{value:{prefixCls:Ke,selectable:_e,showIcon:xe,icon:oe,switcherIcon:fe,draggable:Te,checkable:ze,checkStrictly:it,disabled:et,keyEntities:de,loadData:gt,filterTreeNode:Ge,titleRender:Dt,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}},c.createElement("div",{className:n()(Ke,ee,(ae={},Object(I.a)(ae,"".concat(Ke,"-show-line"),G),Object(I.a)(ae,"".concat(Ke,"-focused"),pe),Object(I.a)(ae,"".concat(Ke,"-active-focused"),Q!==null),ae))},c.createElement(B,Object.assign({ref:this.listRef,prefixCls:Ke,style:X,data:Ne,disabled:et,selectable:_e,checkable:!!ze,motion:Oe,dragging:Le,height:wt,itemHeight:xt,virtual:Ct,focusable:Z,focused:pe,tabIndex:ue,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ht},this.getTreeNodeRequiredProps(),Je))))}}],[{key:"getDerivedStateFromProps",value:function(ae,ge){var pe=ge.prevProps,Ne={prevProps:ae};function de(oe){return!pe&&oe in ae||pe&&pe[oe]!==ae[oe]}var Le;if(de("treeData")?Le=ae.treeData:de("children")&&(Object(r.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Le=Object(e.c)(ae.children)),Le){Ne.treeData=Le;var Q=Object(e.a)(Le);Ne.keyEntities=Object(E.a)(Object(I.a)({},_,L),Q.keyEntities)}var ce=Ne.keyEntities||ge.keyEntities;if(de("expandedKeys")||pe&&de("autoExpandParent"))Ne.expandedKeys=ae.autoExpandParent||!pe&&ae.defaultExpandParent?Object(s.e)(ae.expandedKeys,ce):ae.expandedKeys;else if(!pe&&ae.defaultExpandAll){var Ke=Object(E.a)({},ce);delete Ke[_],Ne.expandedKeys=Object.keys(Ke).map(function(oe){return Ke[oe].key})}else!pe&&ae.defaultExpandedKeys&&(Ne.expandedKeys=ae.autoExpandParent||ae.defaultExpandParent?Object(s.e)(ae.defaultExpandedKeys,ce):ae.defaultExpandedKeys);if(Ne.expandedKeys||delete Ne.expandedKeys,Le||Ne.expandedKeys){var ee=Object(e.d)(Le||ge.treeData,Ne.expandedKeys||ge.expandedKeys);Ne.flattenNodes=ee}if(ae.selectable&&(de("selectedKeys")?Ne.selectedKeys=Object(s.d)(ae.selectedKeys,ae):!pe&&ae.defaultSelectedKeys&&(Ne.selectedKeys=Object(s.d)(ae.defaultSelectedKeys,ae))),ae.checkable){var X;if(de("checkedKeys")?X=Object(s.j)(ae.checkedKeys)||{}:!pe&&ae.defaultCheckedKeys?X=Object(s.j)(ae.defaultCheckedKeys)||{}:Le&&(X=Object(s.j)(ae.checkedKeys)||{checkedKeys:ge.checkedKeys,halfCheckedKeys:ge.halfCheckedKeys}),X){var G=X,Z=G.checkedKeys,ve=Z===void 0?[]:Z,ue=G.halfCheckedKeys,_e=ue===void 0?[]:ue;if(!ae.checkStrictly){var xe=Object(K.a)(ve,!0,ce);ve=xe.checkedKeys,_e=xe.halfCheckedKeys}Ne.checkedKeys=ve,Ne.halfCheckedKeys=_e}}return de("loadedKeys")&&(Ne.loadedKeys=ae.loadedKeys),Ne}}]),se}(c.Component);U.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:[]},U.TreeNode=p.a;var z=U,V=k.b=z},fE02:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("/IIm"),g=d("vZ6x"),S=d("b9oc"),m=d("72pK"),h=d("Kagy"),c=d("IUWy");d("3TkU");var a=h.toolbox.dataZoom,r=E.each,i="\0_ec_\0toolbox-dataZoom_";function n(f,p,v){(this._brushController=new T(v.getZr())).on("brush",E.bind(this._onBrush,this)).mount(),this._isZoomActive}n.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:E.clone(a.title)};var t=n.prototype;t.render=function(f,p,v,A){this.model=f,this.ecModel=p,this.api=v,l(f,p,this,A,v),o(f,p)},t.onclick=function(f,p,v){s[v].call(this)},t.remove=function(f,p){this._brushController.unmount()},t.dispose=function(f,p){this._brushController.dispose()};var s={zoom:function(){var f=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:f})},back:function(){this._dispatchZoomAction(S.pop(this.ecModel))}};t._onBrush=function(f,p){if(!p.isEnd||!f.length)return;var v={},A=this.ecModel;this._brushController.updateCovers([]);var y=new g(e(this.model.option),A,{include:["grid"]});y.matchOutputRanges(f,A,function(w,b,_){if(_.type!=="cartesian2d")return;var O=w.brushType;O==="rect"?(x("x",_,b[0]),x("y",_,b[1])):x({lineX:"x",lineY:"y"}[O],_,b)}),S.push(A,v),this._dispatchZoomAction(v);function x(w,b,_){var O=b.getAxis(w),L=O.model,D=C(w,L,A),N=D.findRepresentativeAxisProxy(L).getMinMaxSpan();(N.minValueSpan!=null||N.maxValueSpan!=null)&&(_=m(0,_.slice(),O.scale.getExtent(),0,N.minValueSpan,N.maxValueSpan)),D&&(v[D.id]={dataZoomId:D.id,startValue:_[0],endValue:_[1]})}function C(w,b,_){var O;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(L){var D=L.getAxisModel(w,b.componentIndex);D&&(O=L)}),O}},t._dispatchZoomAction=function(f){var p=[];r(f,function(v,A){p.push(E.clone(v))}),p.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:p})};function e(f){var p={};return E.each(["xAxisIndex","yAxisIndex"],function(v){p[v]=f[v],p[v]==null&&(p[v]="all"),(p[v]===!1||p[v]==="none")&&(p[v]=[])}),p}function o(f,p){f.setIconStatus("back",S.count(p)>1?"emphasis":"normal")}function l(f,p,v,A,y){var x=v._isZoomActive;A&&A.type==="takeGlobalCursor"&&(x=A.key==="dataZoomSelect"?A.dataZoomSelectActive:!1),v._isZoomActive=x,f.setIconStatus("zoom",x?"emphasis":"normal");var C=new g(e(f.option),p,{include:["grid"]});v._brushController.setPanels(C.makePanelOpts(y,function(w){return w.xAxisDeclared&&!w.yAxisDeclared?"lineX":!w.xAxisDeclared&&w.yAxisDeclared?"lineY":"rect"})).enableBrush(x?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}c.register("dataZoom",n),I.registerPreprocessor(function(f){if(!f)return;var p=f.dataZoom||(f.dataZoom=[]);E.isArray(p)||(f.dataZoom=p=[p]);var v=f.toolbox;if(v&&(E.isArray(v)&&(v=v[0]),v&&v.feature)){var A=v.feature.dataZoom;y("xAxis",A),y("yAxis",A)}function y(C,w){if(!w)return;var b=C+"Index",_=w[b];_!=null&&_!=="all"&&!E.isArray(_)&&(_=_===!1||_==="none"?[]:[_]),x(C,function(O,L){if(_!=null&&_!=="all"&&E.indexOf(_,L)===-1)return;var D={type:"select",$fromToolbox:!0,filterMode:w.filterMode||"filter",id:i+C+L};D[b]=L,p.push(D)})}function x(C,w){var b=f[C];E.isArray(b)||(b=b?[b]:[]),r(b,w)}});var u=n;H.exports=u},fNCr:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("tSko"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},fUL4:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("r+aA"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},fW2E:function(H,k){var d={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function I(E,T,g){return d.hasOwnProperty(T)?g*=E.dpr:g}H.exports=I},"fc+c":function(H,k,d){var I=d("sS/r"),E=I.extend({type:"dataZoom",render:function(T,g,S,m){this.dataZoomModel=T,this.ecModel=g,this.api=S},getTargetCoordInfo:function(){var T=this.dataZoomModel,g=this.ecModel,S={};T.eachTargetAxis(function(h,c){var a=g.getComponent(h.axis,c);if(a){var r=a.getCoordSysModel();r&&m(r,a,S[r.mainType]||(S[r.mainType]=[]),r.componentIndex)}},this);function m(h,c,a,r){for(var i,n=0;n<a.length;n++)if(a[n].model===h){i=a[n];break}i||a.push(i={model:h,axisModels:[],coordIndex:r}),i.axisModels.push(c)}return S}});H.exports=E},fjKi:function(H,k,d){var I=d("ProS");d("Q7if"),d("jndi"),I.registerPreprocessor(function(E){E.markArea=E.markArea||{}})},fls0:function(H,k,d){var I=d("bYtY"),E=d("QBsz"),T=d("oVpE"),g=d("f5HG"),S=d("IwbS"),m=d("OELB"),h=m.round,c=["fromSymbol","toSymbol"];function a(l){return"_"+l+"Type"}function r(l,u,f){var p=u.getItemVisual(f,"color"),v=u.getItemVisual(f,l),A=u.getItemVisual(f,l+"Size");if(!v||v==="none")return;I.isArray(A)||(A=[A,A]);var y=T.createSymbol(v,-A[0]/2,-A[1]/2,A[0],A[1],p);return y.name=l,y}function i(l){var u=new g({name:"line",subPixelOptimize:!0});return n(u.shape,l),u}function n(l,u){l.x1=u[0][0],l.y1=u[0][1],l.x2=u[1][0],l.y2=u[1][1],l.percent=1;var f=u[2];f?(l.cpx1=f[0],l.cpy1=f[1]):(l.cpx1=NaN,l.cpy1=NaN)}function t(){var l=this,u=l.childOfName("fromSymbol"),f=l.childOfName("toSymbol"),p=l.childOfName("label");if(!u&&!f&&p.ignore)return;for(var v=1,A=this.parent;A;)A.scale&&(v/=A.scale[0]),A=A.parent;var y=l.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var x=y.shape.percent,C=y.pointAt(0),w=y.pointAt(x),b=E.sub([],w,C);if(E.normalize(b,b),u){u.attr("position",C);var _=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(_[1],_[0])),u.attr("scale",[v*x,v*x])}if(f){f.attr("position",w);var _=y.tangentAt(1);f.attr("rotation",-Math.PI/2-Math.atan2(_[1],_[0])),f.attr("scale",[v*x,v*x])}if(!p.ignore){p.attr("position",w);var O,L,D,N,M=p.__labelDistance,F=M[0]*v,R=M[1]*v,j=x/2,_=y.tangentAt(j),B=[_[1],-_[0]],K=y.pointAt(j);B[1]>0&&(B[0]=-B[0],B[1]=-B[1]);var U=_[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var z=-Math.atan2(_[1],_[0]);w[0]<C[0]&&(z=Math.PI+z),p.attr("rotation",z)}var V;switch(p.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":V=-R,D="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":V=R,D="top";break;default:V=0,D="middle"}switch(p.__position){case"end":O=[b[0]*F+w[0],b[1]*R+w[1]],L=b[0]>.8?"left":b[0]<-.8?"right":"center",D=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":O=[-b[0]*F+C[0],-b[1]*R+C[1]],L=b[0]>.8?"right":b[0]<-.8?"left":"center",D=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":O=[F*U+C[0],C[1]+V],L=_[0]<0?"right":"left",N=[-F*U,-V];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":O=[K[0],K[1]+V],L="center",N=[0,-V];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":O=[-F*U+w[0],w[1]+V],L=_[0]>=0?"right":"left",N=[F*U,-V];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||D,textAlign:p.__textAlign||L},position:O,scale:[v,v],origin:N})}}function s(l,u,f){S.Group.call(this),this._createLine(l,u,f)}var e=s.prototype;e.beforeUpdate=t,e._createLine=function(l,u,f){var p=l.hostModel,v=l.getItemLayout(u),A=i(v);A.shape.percent=0,S.initProps(A,{shape:{percent:1}},p,u),this.add(A);var y=new S.Text({name:"label",lineLabelOriginalOpacity:1});this.add(y),I.each(c,function(x){var C=r(x,l,u);this.add(C),this[a(x)]=l.getItemVisual(u,x)},this),this._updateCommonStl(l,u,f)},e.updateData=function(l,u,f){var p=l.hostModel,v=this.childOfName("line"),A=l.getItemLayout(u),y={shape:{}};n(y.shape,A),S.updateProps(v,y,p,u),I.each(c,function(x){var C=l.getItemVisual(u,x),w=a(x);if(this[w]!==C){this.remove(this.childOfName(x));var b=r(x,l,u);this.add(b)}this[w]=C},this),this._updateCommonStl(l,u,f)},e._updateCommonStl=function(l,u,f){var p=l.hostModel,v=this.childOfName("line"),A=f&&f.lineStyle,y=f&&f.hoverLineStyle,x=f&&f.labelModel,C=f&&f.hoverLabelModel;if(!f||l.hasItemOption){var w=l.getItemModel(u);A=w.getModel("lineStyle").getLineStyle(),y=w.getModel("emphasis.lineStyle").getLineStyle(),x=w.getModel("label"),C=w.getModel("emphasis.label")}var b=l.getItemVisual(u,"color"),_=I.retrieve3(l.getItemVisual(u,"opacity"),A.opacity,1);v.useStyle(I.defaults({strokeNoScale:!0,fill:"none",stroke:b,opacity:_},A)),v.hoverStyle=y,I.each(c,function(U){var z=this.childOfName(U);z&&(z.setColor(b),z.setStyle({opacity:_}))},this);var O=x.getShallow("show"),L=C.getShallow("show"),D=this.childOfName("label"),N,M;if((O||L)&&(N=b||"#000",M=p.getFormattedLabel(u,"normal",l.dataType),M==null)){var F=p.getRawValue(u);M=F==null?l.getName(u):isFinite(F)?h(F):F}var R=O?M:null,j=L?I.retrieve2(p.getFormattedLabel(u,"emphasis",l.dataType),M):null,B=D.style;if(R!=null||j!=null){S.setTextStyle(D.style,x,{text:R},{autoColor:N}),D.__textAlign=B.textAlign,D.__verticalAlign=B.textVerticalAlign,D.__position=x.get("position")||"middle";var K=x.get("distance");I.isArray(K)||(K=[K,K]),D.__labelDistance=K}j!=null?D.hoverStyle={text:j,textFill:C.getTextColor(!0),fontStyle:C.getShallow("fontStyle"),fontWeight:C.getShallow("fontWeight"),fontSize:C.getShallow("fontSize"),fontFamily:C.getShallow("fontFamily")}:D.hoverStyle={text:null},D.ignore=!O&&!L,S.setHoverStyle(this)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateLayout=function(l,u){this.setLinePoints(l.getItemLayout(u))},e.setLinePoints=function(l){var u=this.childOfName("line");n(u.shape,l),u.dirty()},I.inherits(s,S.Group);var o=s;H.exports=o},fmMI:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=T.each,S=T.filter,m=T.map,h=T.isArray,c=T.indexOf,a=T.isObject,r=T.isString,i=T.createHashMap,n=T.assert,t=T.clone,s=T.merge,e=T.extend,o=T.mixin,l=d("4NO4"),u=d("Qxkt"),f=d("bLfw"),p=d("iXHM"),v=d("5Hur"),A=d("D5nY"),y=A.resetSourceDefaulter,x="\0_ec_inner",C=u.extend({init:function(R,j,B,K){B=B||{},this.option=null,this._theme=new u(B),this._optionManager=K},setOption:function(R,j){n(!(x in R),"please use chart.getOption()"),this._optionManager.setOption(R,j),this.resetOption(null)},resetOption:function(R){var j=!1,B=this._optionManager;if(!R||R==="recreate"){var K=B.mountOption(R==="recreate");!this.option||R==="recreate"?_.call(this,K):(this.restoreData(),this.mergeOption(K)),j=!0}if((R==="timeline"||R==="media")&&this.restoreData(),!R||R==="recreate"||R==="timeline"){var U=B.getTimelineOption(this);U&&(this.mergeOption(U),j=!0)}if(!R||R==="recreate"||R==="media"){var z=B.getMediaOption(this,this._api);z.length&&g(z,function(V){this.mergeOption(V,j=!0)},this)}return j},mergeOption:function(R){var j=this.option,B=this._componentsMap,K=[];y(this),g(R,function(z,V){if(z==null)return;f.hasClass(V)?V&&K.push(V):j[V]=j[V]==null?t(z):s(j[V],z,!0)}),f.topologicalTravel(K,f.getAllClassMainTypes(),U,this);function U(z,V){var Y=l.normalizeToArray(R[z]),J=l.mappingToExists(B.get(z),Y);l.makeIdAndName(J),g(J,function($,ae){var ge=$.option;a(ge)&&($.keyInfo.mainType=z,$.keyInfo.subType=L(z,ge,$.exist))});var se=O(B,V);j[z]=[],B.set(z,[]),g(J,function($,ae){var ge=$.exist,pe=$.option;if(n(a(pe)||ge,"Empty component definition"),!pe)ge.mergeOption({},this),ge.optionUpdated({},!1);else{var Ne=f.getClass(z,$.keyInfo.subType,!0);if(ge&&ge.constructor===Ne)ge.name=$.keyInfo.name,ge.mergeOption(pe,this),ge.optionUpdated(pe,!1);else{var de=e({dependentModels:se,componentIndex:ae},$.keyInfo);ge=new Ne(pe,this,this,de),e(ge,de),ge.init(pe,this,this,de),ge.optionUpdated(null,!0)}}B.get(z)[ae]=ge,j[z][ae]=ge.option},this),z==="series"&&D(this,B.get("series"))}this._seriesIndicesMap=i(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var R=t(this.option);return g(R,function(j,B){if(f.hasClass(B)){for(var j=l.normalizeToArray(j),K=j.length-1;K>=0;K--)l.isIdInner(j[K])&&j.splice(K,1);R[B]=j}}),delete R[x],R},getTheme:function(){return this._theme},getComponent:function(R,j){var B=this._componentsMap.get(R);if(B)return B[j||0]},queryComponents:function(R){var j=R.mainType;if(!j)return[];var B=R.index,K=R.id,U=R.name,z=this._componentsMap.get(j);if(!z||!z.length)return[];var V;if(B!=null)h(B)||(B=[B]),V=S(m(B,function(se){return z[se]}),function(se){return!!se});else if(K!=null){var Y=h(K);V=S(z,function(se){return Y&&c(K,se.id)>=0||!Y&&se.id===K})}else if(U!=null){var J=h(U);V=S(z,function(se){return J&&c(U,se.name)>=0||!J&&se.name===U})}else V=z.slice();return N(V,R)},findComponents:function(R){var j=R.query,B=R.mainType,K=z(j),U=K?this.queryComponents(K):this._componentsMap.get(B);return V(N(U,R));function z(Y){var J=B+"Index",se=B+"Id",$=B+"Name";return Y&&(Y[J]!=null||Y[se]!=null||Y[$]!=null)?{mainType:B,index:Y[J],id:Y[se],name:Y[$]}:null}function V(Y){return R.filter?S(Y,R.filter):Y}},eachComponent:function(R,j,B){var K=this._componentsMap;if(typeof R=="function")B=j,j=R,K.each(function(z,V){g(z,function(Y,J){j.call(B,V,Y,J)})});else if(r(R))g(K.get(R),j,B);else if(a(R)){var U=this.findComponents(R);g(U,j,B)}},getSeriesByName:function(R){var j=this._componentsMap.get("series");return S(j,function(B){return B.name===R})},getSeriesByIndex:function(R){return this._componentsMap.get("series")[R]},getSeriesByType:function(R){var j=this._componentsMap.get("series");return S(j,function(B){return B.subType===R})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(R,j){M(this),g(this._seriesIndices,function(B){var K=this._componentsMap.get("series")[B];R.call(j,K,B)},this)},eachRawSeries:function(R,j){g(this._componentsMap.get("series"),R,j)},eachSeriesByType:function(R,j,B){M(this),g(this._seriesIndices,function(K){var U=this._componentsMap.get("series")[K];U.subType===R&&j.call(B,U,K)},this)},eachRawSeriesByType:function(R,j,B){return g(this.getSeriesByType(R),j,B)},isSeriesFiltered:function(R){return M(this),this._seriesIndicesMap.get(R.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(R,j){M(this);var B=S(this._componentsMap.get("series"),R,j);D(this,B)},restoreData:function(R){var j=this._componentsMap;D(this,j.get("series"));var B=[];j.each(function(K,U){B.push(U)}),f.topologicalTravel(B,f.getAllClassMainTypes(),function(K,U){g(j.get(K),function(z){(K!=="series"||!w(z,R))&&z.restoreData()})})}});function w(R,j){if(j){var B=j.seiresIndex,K=j.seriesId,U=j.seriesName;return B!=null&&R.componentIndex!==B||K!=null&&R.id!==K||U!=null&&R.name!==U}}function b(R,j){var B=R.color&&!R.colorLayer;g(j,function(K,U){if(U==="colorLayer"&&B)return;f.hasClass(U)||(typeof K=="object"?R[U]=R[U]?s(R[U],K,!1):t(K):R[U]==null&&(R[U]=K))})}function _(R){R=R,this.option={},this.option[x]=1,this._componentsMap=i({series:[]}),this._seriesIndices,this._seriesIndicesMap,b(R,this._theme.option),s(R,p,!1),this.mergeOption(R)}function O(R,j){h(j)||(j=j?[j]:[]);var B={};return g(j,function(K){B[K]=(R.get(K)||[]).slice()}),B}function L(R,j,B){var K=j.type?j.type:B?B.subType:f.determineSubType(R,j);return K}function D(R,j){R._seriesIndicesMap=i(R._seriesIndices=m(j,function(B){return B.componentIndex})||[])}function N(R,j){return j.hasOwnProperty("subType")?S(R,function(B){return B.subType===j.subType}):R}function M(R){}o(C,v);var F=C;H.exports=F},fyUT:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("q1tI"),m=d.n(S),h=d("TSYQ"),c=d.n(h),a=d("Ff2n"),r=d("rePB"),i=d("1OyB"),n=d("vuIU"),t=d("Ji7U"),s=d("md7G"),e=d("foSv"),o=d("4IlW");function l(V,Y){var J=Object.keys(V);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(V);Y&&(se=se.filter(function($){return Object.getOwnPropertyDescriptor(V,$).enumerable})),J.push.apply(J,se)}return J}function u(V){for(var Y=1;Y<arguments.length;Y++){var J=arguments[Y]!=null?arguments[Y]:{};Y%2?l(Object(J),!0).forEach(function(se){Object(r.a)(V,se,J[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(J)):l(Object(J)).forEach(function(se){Object.defineProperty(V,se,Object.getOwnPropertyDescriptor(J,se))})}return V}function f(V){var Y=p();return function(){var se=Object(e.a)(V),$;if(Y){var ae=Object(e.a)(this).constructor;$=Reflect.construct(se,arguments,ae)}else $=se.apply(this,arguments);return Object(s.a)(this,$)}}function p(){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(V){return!1}}function v(){}function A(V){V.preventDefault()}var y=function(Y){return Y.replace(/[^\w.-]+/g,"")},x=200,C=600,w=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(Y){return Y!=null},_=function(Y,J){return J===Y||typeof J=="number"&&typeof Y=="number"&&isNaN(J)&&isNaN(Y)},O=function(V){Object(t.a)(J,V);var Y=f(J);function J(se){var $;Object(i.a)(this,J),$=Y.call(this,se),$.onKeyDown=function(pe){var Ne=$.props,de=Ne.onKeyDown,Le=Ne.onPressEnter;if(pe.keyCode===o.a.UP){var Q=$.getRatio(pe);$.up(pe,Q,null),$.stop()}else if(pe.keyCode===o.a.DOWN){var ce=$.getRatio(pe);$.down(pe,ce,null),$.stop()}else pe.keyCode===o.a.ENTER&&Le&&Le(pe);if($.recordCursorPosition(),$.lastKeyCode=pe.keyCode,de){for(var Ke=arguments.length,ee=new Array(Ke>1?Ke-1:0),X=1;X<Ke;X++)ee[X-1]=arguments[X];de.apply(void 0,[pe].concat(ee))}},$.onKeyUp=function(pe){var Ne=$.props.onKeyUp;if($.stop(),$.recordCursorPosition(),Ne){for(var de=arguments.length,Le=new Array(de>1?de-1:0),Q=1;Q<de;Q++)Le[Q-1]=arguments[Q];Ne.apply(void 0,[pe].concat(Le))}},$.onChange=function(pe){var Ne=$.props.onChange;$.state.focused&&($.inputting=!0),$.rawInput=$.props.parser($.getValueFromEvent(pe)),$.setState({inputValue:$.rawInput}),Ne($.toNumber($.rawInput))},$.onMouseUp=function(){var pe=$.props.onMouseUp;$.recordCursorPosition(),pe&&pe.apply(void 0,arguments)},$.onFocus=function(){var pe;$.setState({focused:!0}),(pe=$.props).onFocus.apply(pe,arguments)},$.onBlur=function(){var pe=$.props.onBlur;$.inputting=!1,$.setState({focused:!1});var Ne=$.getCurrentValidValue($.state.inputValue),de=$.setValue(Ne,v);if(pe){var Le=$.input.value,Q=$.getInputDisplayValue({focus:!1,value:de});$.input.value=Q&&Number(Q),pe.apply(void 0,arguments),$.input.value=Le}},$.getRatio=function(pe){var Ne=1;return pe.metaKey||pe.ctrlKey?Ne=.1:pe.shiftKey&&(Ne=10),Ne},$.getFullNum=function(pe){return isNaN(pe)?pe:/e/i.test(String(pe))?Number(pe).toFixed(18).replace(/\.?0+$/,""):pe},$.getPrecision=function(pe){if(b($.props.precision))return $.props.precision;var Ne=String(pe);if(Ne.indexOf("e-")>=0)return parseInt(Ne.slice(Ne.indexOf("e-")+2),10);var de=0;return Ne.indexOf(".")>=0&&(de=Ne.length-Ne.indexOf(".")-1),de},$.getInputDisplayValue=function(pe){var Ne=pe||$.state,de=Ne.focused,Le=Ne.inputValue,Q=Ne.value,ce;de?ce=Le:ce=$.toPrecisionAsStep(Q),ce==null&&(ce="");var Ke=$.formatWrapper(ce);return b($.props.decimalSeparator)&&(Ke=Ke.toString().replace(".",$.props.decimalSeparator)),Ke},$.recordCursorPosition=function(){try{$.cursorStart=$.input.selectionStart,$.cursorEnd=$.input.selectionEnd,$.currentValue=$.input.value,$.cursorBefore=$.input.value.substring(0,$.cursorStart),$.cursorAfter=$.input.value.substring($.cursorEnd)}catch(pe){}},$.restoreByAfter=function(pe){if(pe===void 0)return!1;var Ne=$.input.value,de=Ne.lastIndexOf(pe);if(de===-1)return!1;var Le=$.cursorBefore.length;return $.lastKeyCode===o.a.DELETE&&$.cursorBefore.charAt(Le-1)===pe[0]?($.fixCaret(Le,Le),!0):de+pe.length===Ne.length?($.fixCaret(de,de),!0):!1},$.partRestoreByAfter=function(pe){return pe===void 0?!1:Array.prototype.some.call(pe,function(Ne,de){var Le=pe.substring(de);return $.restoreByAfter(Le)})},$.isNotCompleteNumber=function(pe){return isNaN(pe)||pe===""||pe===null||pe&&pe.toString().indexOf(".")===pe.toString().length-1},$.stop=function(){$.autoStepTimer&&clearTimeout($.autoStepTimer)},$.down=function(pe,Ne,de){$.pressingUpOrDown=!0,$.step("down",pe,Ne,de)},$.up=function(pe,Ne,de){$.pressingUpOrDown=!0,$.step("up",pe,Ne,de)},$.saveInput=function(pe){$.input=pe};var ae=se.value;ae===void 0&&(ae=se.defaultValue),$.state={focused:se.autoFocus};var ge=$.getValidValue($.toNumber(ae));return $.state=u(u({},$.state),{},{inputValue:$.toPrecisionAsStep(ge),value:ge}),$}return Object(n.a)(J,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function($){var ae=this.props,ge=ae.value,pe=ae.onChange,Ne=ae.max,de=ae.min,Le=this.state.focused;if($){if(!_($.value,ge)||!_($.max,Ne)||!_($.min,de)){var Q=Le?ge:this.getValidValue(ge),ce;this.pressingUpOrDown?ce=Q:this.inputting?ce=this.rawInput:ce=this.toPrecisionAsStep(Q),this.setState({value:Q,inputValue:ce})}var Ke="value"in this.props?ge:this.state.value;"max"in this.props&&$.max!==Ne&&typeof Ke=="number"&&Ke>Ne&&pe&&pe(Ne),"min"in this.props&&$.min!==de&&typeof Ke=="number"&&Ke<de&&pe&&pe(de)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ee=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===o.a.BACKSPACE?ee=this.cursorStart-1:this.lastKeyCode===o.a.DELETE&&(ee=this.cursorStart):ee=this.input.value.length,this.fixCaret(ee,ee)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case o.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case o.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(X){}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($){var ae=$;return ae===""?ae="":this.isNotCompleteNumber(parseFloat(ae))?ae=this.state.value:ae=this.getValidValue(ae),this.toNumber(ae)}},{key:"getValueFromEvent",value:function($){var ae=$.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(ae=ae.replace(this.props.decimalSeparator,".")),ae}},{key:"getValidValue",value:function($){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,pe=parseFloat($);return isNaN(pe)?$:(pe<ae&&(pe=ae),pe>ge&&(pe=ge),pe)}},{key:"setValue",value:function($,ae){var ge=this.props.precision,pe=this.isNotCompleteNumber(parseFloat($))?null:parseFloat($),Ne=this.state.value,de=Ne===void 0?null:Ne,Le=this.state.inputValue,Q=Le===void 0?null:Le,ce=typeof pe=="number"?pe.toFixed(ge):"".concat(pe),Ke=pe!==de||ce!=="".concat(Q);return"value"in this.props?(Q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Q},ae)):this.setState({value:pe,inputValue:this.toPrecisionAsStep($)},ae),Ke&&this.props.onChange(pe),pe}},{key:"getMaxPrecision",value:function($){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ge=this.props,pe=ge.precision,Ne=ge.step;if(b(pe))return pe;var de=this.getPrecision(ae),Le=this.getPrecision(Ne),Q=this.getPrecision($);return $?Math.max(Q,de+Le):de+Le}},{key:"getPrecisionFactor",value:function($){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ge=this.getMaxPrecision($,ae);return Math.pow(10,ge)}},{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($){return this.props.formatter?this.props.formatter($):$}},{key:"toPrecisionAsStep",value:function($){if(this.isNotCompleteNumber($)||$==="")return $;var ae=Math.abs(this.getMaxPrecision($));return isNaN(ae)?$.toString():Number($).toFixed(ae)}},{key:"toNumber",value:function($){var ae=this.props.precision,ge=this.state.focused,pe=$&&$.length>16&≥return this.isNotCompleteNumber($)||pe?$:b(ae)?Math.round($*Math.pow(10,ae))/Math.pow(10,ae):Number($)}},{key:"upStep",value:function($,ae){var ge=this.props.step,pe=this.getPrecisionFactor($,ae),Ne=Math.abs(this.getMaxPrecision($,ae)),de=((pe*$+pe*ge*ae)/pe).toFixed(Ne);return this.toNumber(de)}},{key:"downStep",value:function($,ae){var ge=this.props.step,pe=this.getPrecisionFactor($,ae),Ne=Math.abs(this.getMaxPrecision($,ae)),de=((pe*$-pe*ge*ae)/pe).toFixed(Ne);return this.toNumber(de)}},{key:"step",value:function($,ae){var ge=this,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ne=arguments.length>3?arguments[3]:void 0;this.stop(),ae&&(ae.persist(),ae.preventDefault());var de=this.props;if(de.disabled)return;var Le=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(Le))return;var Q=this["".concat($,"Step")](Le,pe),ce=Q>de.max||Q<de.min;if(Q>de.max?Q=de.max:Q<de.min&&(Q=de.min),this.setValue(Q,null),this.setState({focused:!0},function(){ge.pressingUpOrDown=!1}),ce)return;this.autoStepTimer=setTimeout(function(){ge[$](ae,pe,!0)},Ne?x:C)}},{key:"fixCaret",value:function($,ae){if($===void 0||ae===void 0||!this.input||!this.input.value)return;try{var ge=this.input.selectionStart,pe=this.input.selectionEnd;($!==ge||ae!==pe)&&this.input.setSelectionRange($,ae)}catch(Ne){}}},{key:"render",value:function(){var $,ae=this.props,ge=ae.prefixCls,pe=ae.disabled,Ne=ae.readOnly,de=ae.useTouch,Le=ae.autoComplete,Q=ae.upHandler,ce=ae.downHandler,Ke=ae.className,ee=ae.max,X=ae.min,G=ae.style,Z=ae.title,ve=ae.onMouseEnter,ue=ae.onMouseLeave,_e=ae.onMouseOver,xe=ae.onMouseOut,oe=ae.required,fe=ae.onClick,Te=ae.tabIndex,ze=ae.type,it=ae.placeholder,et=ae.id,Oe=ae.inputMode,gt=ae.pattern,Ge=ae.step,wt=ae.maxLength,xt=ae.autoFocus,Ct=ae.name,Dt=ae.onPaste,Ht=ae.onInput,Je=Object(a.a)(ae,["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"]),ye=this.state,ie=ye.value,bt=ye.focused,qe=c()(ge,($={},Object(r.a)($,Ke,!!Ke),Object(r.a)($,"".concat(ge,"-disabled"),pe),Object(r.a)($,"".concat(ge,"-focused"),bt),$)),me={};Object.keys(Je).forEach(function(Qe){(Qe.substr(0,5)==="data-"||Qe.substr(0,5)==="aria-"||Qe==="role")&&(me[Qe]=Je[Qe])});var Rt=!Ne&&!pe,er=this.getInputDisplayValue(null),ct=(ie||ie===0)&&(isNaN(ie)||Number(ie)>=ee),zt=(ie||ie===0)&&(isNaN(ie)||Number(ie)<=X),sr=ct||pe||Ne,Kr=zt||pe||Ne,ar=c()("".concat(ge,"-handler"),"".concat(ge,"-handler-up"),Object(r.a)({},"".concat(ge,"-handler-up-disabled"),sr)),nr=c()("".concat(ge,"-handler"),"".concat(ge,"-handler-down"),Object(r.a)({},"".concat(ge,"-handler-down-disabled"),Kr)),Lt=de?{onTouchStart:sr?v:this.up,onTouchEnd:this.stop}:{onMouseDown:sr?v:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},st=de?{onTouchStart:Kr?v:this.down,onTouchEnd:this.stop}:{onMouseDown:Kr?v:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return m.a.createElement("div",{className:qe,style:G,title:Z,onMouseEnter:ve,onMouseLeave:ue,onMouseOver:_e,onMouseOut:xe,onFocus:function(){return null},onBlur:function(){return null}},m.a.createElement("div",{className:"".concat(ge,"-handler-wrap")},m.a.createElement("span",Object.assign({unselectable:"on"},Lt,{role:"button","aria-label":"Increase Value","aria-disabled":sr,className:ar}),Q||m.a.createElement("span",{unselectable:"on",className:"".concat(ge,"-handler-up-inner"),onClick:A})),m.a.createElement("span",Object.assign({unselectable:"on"},st,{role:"button","aria-label":"Decrease Value","aria-disabled":Kr,className:nr}),ce||m.a.createElement("span",{unselectable:"on",className:"".concat(ge,"-handler-down-inner"),onClick:A}))),m.a.createElement("div",{className:"".concat(ge,"-input-wrap")},m.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":X,"aria-valuemax":ee,"aria-valuenow":ie,required:oe,type:ze,placeholder:it,onPaste:Dt,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(ge,"-input"),tabIndex:Te,autoComplete:Le,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Rt?this.onKeyDown:v,onKeyUp:Rt?this.onKeyUp:v,autoFocus:xt,maxLength:wt,readOnly:Ne,disabled:pe,max:ee,min:X,step:Ge,name:Ct,title:Z,id:et,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(er),pattern:gt,inputMode:Oe,onInput:Ht},me))))}}]),J}(m.a.Component);O.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:w,min:-w,step:1,style:{},onChange:v,onKeyDown:v,onPressEnter:v,onFocus:v,onBlur:v,parser:y,required:!1,autoComplete:"off"};var L=O,D=L,N=d("FH2Y"),M=d.n(N),F=d("HQEm"),R=d.n(F),j=d("H84U"),B=d("3Nzz"),K=function(V,Y){var J={};for(var se in V)Object.prototype.hasOwnProperty.call(V,se)&&Y.indexOf(se)<0&&(J[se]=V[se]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,se=Object.getOwnPropertySymbols(V);$<se.length;$++)Y.indexOf(se[$])<0&&Object.prototype.propertyIsEnumerable.call(V,se[$])&&(J[se[$]]=V[se[$]]);return J},U=S.forwardRef(function(V,Y){var J=function($){var ae=$.getPrefixCls,ge=$.direction,pe=V.className,Ne=V.size,de=V.prefixCls,Le=V.readOnly,Q=K(V,["className","size","prefixCls","readOnly"]),ce=ae("input-number",de),Ke=S.createElement(M.a,{className:"".concat(ce,"-handler-up-inner")}),ee=S.createElement(R.a,{className:"".concat(ce,"-handler-down-inner")});return S.createElement(B.b.Consumer,null,function(X){var G,Z=Ne||X,ve=c()((G={},g()(G,"".concat(ce,"-lg"),Z==="large"),g()(G,"".concat(ce,"-sm"),Z==="small"),g()(G,"".concat(ce,"-rtl"),ge==="rtl"),g()(G,"".concat(ce,"-readonly"),Le),G),pe);return S.createElement(D,E()({ref:Y,className:ve,upHandler:Ke,downHandler:ee,prefixCls:ce,readOnly:Le},Q))})};return S.createElement(j.a,null,J)});U.defaultProps={step:1};var z=k.a=U},g0SD:function(H,k,d){var I=d("bYtY"),E=d("9wZj"),T=d("OELB"),g=d("YXkt"),S=d("kj2x"),m=d("iPDy");function h(r,i,n){var t=i.coordinateSystem;r.each(function(s){var e=r.getItemModel(s),o,l=T.parsePercent(e.get("x"),n.getWidth()),u=T.parsePercent(e.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))o=[l,u];else if(i.getMarkerPosition)o=i.getMarkerPosition(r.getValues(r.dimensions,s));else if(t){var f=r.get(t.dimensions[0],s),p=r.get(t.dimensions[1],s);o=t.dataToPoint([f,p])}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),r.setItemLayout(s,o)})}var c=m.extend({type:"markPoint",updateTransform:function(r,i,n){i.eachSeries(function(t){var s=t.markPointModel;s&&(h(s.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout(s))},this)},renderSeries:function(r,i,n,t){var s=r.coordinateSystem,e=r.id,o=r.getData(),l=this.markerGroupMap,u=l.get(e)||l.set(e,new E),f=a(s,r,i);i.setData(f),h(i.getData(),r,t),f.each(function(p){var v=f.getItemModel(p),A=v.getShallow("symbol"),y=v.getShallow("symbolSize"),x=I.isFunction(A),C=I.isFunction(y);if(x||C){var w=i.getRawValue(p),b=i.getDataParams(p);x&&(A=A(w,b)),C&&(y=y(w,b))}f.setItemVisual(p,{symbol:A,symbolSize:y,color:v.get("itemStyle.color")||o.getVisual("color")})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(p){p.traverse(function(v){v.dataModel=i})}),u.__keep=!0,u.group.silent=i.get("silent")||r.get("silent")}});function a(r,i,n){var t;r?t=I.map(r&&r.dimensions,function(o){var l=i.getData().getDimensionInfo(i.getData().mapDimension(o))||{};return I.defaults({name:o},l)}):t=[{name:"value",type:"float"}];var s=new g(t,n),e=I.map(n.get("data"),I.curry(S.dataTransform,i));return r&&(e=I.filter(e,I.curry(S.dataFilter,r))),s.initData(e,null,r?S.dimValueGetter:function(o){return o.value}),s}H.exports=c},g7p0:function(H,k,d){var I=d("bYtY"),E=d("bLfw"),T=d("+TT/"),g=T.getLayoutParams,S=T.sizeCalculable,m=T.mergeLayoutParam,h=E.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(r,i,n,t){var s=g(r);h.superApply(this,"init",arguments),c(r,s)},mergeOption:function(r,i){h.superApply(this,"mergeOption",arguments),c(this.option,r)}});function c(r,i){var n=r.cellSize;I.isArray(n)?n.length===1&&(n[1]=n[0]):n=r.cellSize=[n,n];var t=I.map([0,1],function(s){return S(i,s)&&(n[s]="auto"),n[s]!=null&&n[s]!=="auto"});m(r,i,{type:"box",ignoreSize:t})}var a=h;H.exports=a},g9YV:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("pED+"),g=d.n(T),S=d("+L6B"),m=d("R9oj"),h=d("7Kak"),c=d("sRBo"),a=d("qVdP"),r=d("T2oS"),i=d("DjyN"),n=d("5Dmo")},gIYZ:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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"};k.default=I},gKaM:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},gPAo:function(H,k){function d(g){return g}function I(g,S,m,h,c){this._old=g,this._new=S,this._oldKeyGetter=m||d,this._newKeyGetter=h||d,this.context=c}I.prototype={constructor:I,add:function(g){return this._add=g,this},update:function(g){return this._update=g,this},remove:function(g){return this._remove=g,this},execute:function(){var g=this._old,S=this._new,m={},h={},c=[],a=[],r;for(E(g,m,c,"_oldKeyGetter",this),E(S,h,a,"_newKeyGetter",this),r=0;r<g.length;r++){var i=c[r],n=h[i];if(n!=null){var t=n.length;t?(t===1&&(h[i]=null),n=n.shift()):h[i]=null,this._update&&this._update(n,r)}else this._remove&&this._remove(r)}for(var r=0;r<a.length;r++){var i=a[r];if(h.hasOwnProperty(i)){var n=h[i];if(n==null)continue;if(!n.length)this._add&&this._add(n);else for(var s=0,t=n.length;s<t;s++)this._add&&this._add(n[s])}}}};function E(g,S,m,h,c){for(var a=0;a<g.length;a++){var r="_ec_"+c[h](g[a],a),i=S[r];i==null?(m.push(r),S[r]=a):(i.length||(S[r]=i=[i]),i.push(a))}}var T=I;H.exports=T},gRFJ:function(H,k,d){H.exports=[d("rdUC"),d("ynwM"),d("RELg"),d("DlR+"),d("CrYA"),d("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(H){return H<10?"0"+H:H}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(H){return rx_escapable.lastIndex=0,rx_escapable.test(H)?'"'+H.replace(rx_escapable,function(k){var d=meta[k];return typeof d=="string"?d:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+H+'"'}function str(H,k){var d,I,E,T,g=gap,S,m=k[H];m&&typeof m=="object"&&typeof m.toJSON=="function"&&(m=m.toJSON(H)),typeof rep=="function"&&(m=rep.call(k,H,m));switch(typeof m){case"string":return quote(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(gap+=indent,S=[],Object.prototype.toString.apply(m)==="[object Array]"){for(T=m.length,d=0;d<T;d+=1)S[d]=str(d,m)||"null";return E=S.length===0?"[]":gap?`[
|
|
|
`+gap+S.join(`,
|
|
|
`+gap)+`
|
|
|
`+g+"]":"["+S.join(",")+"]",gap=g,E}if(rep&&typeof rep=="object")for(T=rep.length,d=0;d<T;d+=1)typeof rep[d]=="string"&&(I=rep[d],E=str(I,m),E&&S.push(quote(I)+(gap?": ":":")+E));else for(I in m)Object.prototype.hasOwnProperty.call(m,I)&&(E=str(I,m),E&&S.push(quote(I)+(gap?": ":":")+E));return E=S.length===0?"{}":gap?`{
|
|
|
`+gap+S.join(`,
|
|
|
`+gap)+`
|
|
|
`+g+"}":"{"+S.join(",")+"}",gap=g,E}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(H,k,d){var I;if(gap="",indent="",typeof d=="number")for(I=0;I<d;I+=1)indent+=" ";else typeof d=="string"&&(indent=d);if(rep=k,k&&typeof k!="function"&&(typeof k!="object"||typeof k.length!="number"))throw new Error("JSON.stringify");return str("",{"":H})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(H,k){var d,I,E=H[k];if(E&&typeof E=="object")for(d in E)Object.prototype.hasOwnProperty.call(E,d)&&(I=walk(E,d),I!==void 0?E[d]=I:delete E[d]);return reviver.call(H,k,E)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(H){return"\\u"+("0000"+H.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(H,k,d){var I=d("+TT/"),E=d("bYtY"),T=d("4NO4"),g=T.groupData;function S(_,O,L){_.eachSeriesByType("sankey",function(D){var N=D.get("nodeWidth"),M=D.get("nodeGap"),F=m(D,O);D.layoutInfo=F;var R=F.width,j=F.height,B=D.getGraph(),K=B.nodes,U=B.edges;c(K);var z=E.filter(K,function(se){return se.getLayout().value===0}),V=z.length!==0?0:D.get("layoutIterations"),Y=D.get("orient"),J=D.get("nodeAlign");h(K,U,N,M,R,j,V,Y,J)})}function m(_,O){return I.getLayoutRect(_.getBoxLayoutParams(),{width:O.getWidth(),height:O.getHeight()})}function h(_,O,L,D,N,M,F,R,j){a(_,O,L,N,M,R,j),s(_,O,M,N,D,F,R),b(_,R)}function c(_){E.each(_,function(O){var L=C(O.outEdges,x),D=C(O.inEdges,x),N=O.getValue()||0,M=Math.max(L,D,N);O.setLayout({value:M},!0)})}function a(_,O,L,D,N,M,F){for(var R=[],j=[],B=[],K=[],U=0,z=0,V=0;V<O.length;V++)R[V]=1;for(V=0;V<_.length;V++)j[V]=_[V].inEdges.length,j[V]===0&&B.push(_[V]);for(var Y=-1;B.length;){for(var J=0;J<B.length;J++){var se=B[J],$=se.hostGraph.data.getRawDataItem(se.dataIndex),ae=$.depth!=null&&$.depth>=0;ae&&$.depth>Y&&(Y=$.depth),se.setLayout({depth:ae?$.depth:U},!0),M==="vertical"?se.setLayout({dy:L},!0):se.setLayout({dx:L},!0);for(var ge=0;ge<se.outEdges.length;ge++){var pe=se.outEdges[ge],Ne=O.indexOf(pe);R[Ne]=0;var de=pe.node2,Le=_.indexOf(de);--j[Le]===0&&K.indexOf(de)<0&&K.push(de)}}++U,B=K,K=[]}for(V=0;V<R.length;V++)if(R[V]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Q=Y>U-1?Y:U-1;F&&F!=="left"&&i(_,F,M,Q);var z=M==="vertical"?(N-L)/Q:(D-L)/Q;t(_,z,M)}function r(_){var O=_.hostGraph.data.getRawDataItem(_.dataIndex);return O.depth!=null&&O.depth>=0}function i(_,O,L,D){if(O==="right"){for(var N=[],M=_,F=0;M.length;){for(var R=0;R<M.length;R++){var j=M[R];j.setLayout({skNodeHeight:F},!0);for(var B=0;B<j.inEdges.length;B++){var K=j.inEdges[B];N.indexOf(K.node1)<0&&N.push(K.node1)}}M=N,N=[],++F}E.each(_,function(U){r(U)||U.setLayout({depth:Math.max(0,D-U.getLayout().skNodeHeight)},!0)})}else O==="justify"&&n(_,D)}function n(_,O){E.each(_,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:O},!0)})}function t(_,O,L){E.each(_,function(D){var N=D.getLayout().depth*O;L==="vertical"?D.setLayout({y:N},!0):D.setLayout({x:N},!0)})}function s(_,O,L,D,N,M,F){var R=e(_,F);o(R,O,L,D,N,F),l(R,N,L,D,F);for(var j=1;M>0;M--)j*=.99,u(R,j,F),l(R,N,L,D,F),w(R,j,F),l(R,N,L,D,F)}function e(_,O){var L=[],D=O==="vertical"?"y":"x",N=g(_,function(M){return M.getLayout()[D]});return N.keys.sort(function(M,F){return M-F}),E.each(N.keys,function(M){L.push(N.buckets.get(M))}),L}function o(_,O,L,D,N,M){var F=Infinity;E.each(_,function(R){var j=R.length,B=0;E.each(R,function(U){B+=U.getLayout().value});var K=M==="vertical"?(D-(j-1)*N)/B:(L-(j-1)*N)/B;K<F&&(F=K)}),E.each(_,function(R){E.each(R,function(j,B){var K=j.getLayout().value*F;M==="vertical"?(j.setLayout({x:B},!0),j.setLayout({dx:K},!0)):(j.setLayout({y:B},!0),j.setLayout({dy:K},!0))})}),E.each(O,function(R){var j=+R.getValue()*F;R.setLayout({dy:j},!0)})}function l(_,O,L,D,N){var M=N==="vertical"?"x":"y";E.each(_,function(F){F.sort(function(J,se){return J.getLayout()[M]-se.getLayout()[M]});for(var R,j,B,K=0,U=F.length,z=N==="vertical"?"dx":"dy",V=0;V<U;V++)j=F[V],B=K-j.getLayout()[M],B>0&&(R=j.getLayout()[M]+B,N==="vertical"?j.setLayout({x:R},!0):j.setLayout({y:R},!0)),K=j.getLayout()[M]+j.getLayout()[z]+O;var Y=N==="vertical"?D:L;if(B=K-O-Y,B>0)for(R=j.getLayout()[M]-B,N==="vertical"?j.setLayout({x:R},!0):j.setLayout({y:R},!0),K=R,V=U-2;V>=0;--V)j=F[V],B=j.getLayout()[M]+j.getLayout()[z]+O-K,B>0&&(R=j.getLayout()[M]-B,N==="vertical"?j.setLayout({x:R},!0):j.setLayout({y:R},!0)),K=j.getLayout()[M]})}function u(_,O,L){E.each(_.slice().reverse(),function(D){E.each(D,function(N){if(N.outEdges.length){var M=C(N.outEdges,f,L)/C(N.outEdges,x,L);if(isNaN(M)){var F=N.outEdges.length;M=F?C(N.outEdges,p,L)/F:0}if(L==="vertical"){var R=N.getLayout().x+(M-y(N,L))*O;N.setLayout({x:R},!0)}else{var j=N.getLayout().y+(M-y(N,L))*O;N.setLayout({y:j},!0)}}})})}function f(_,O){return y(_.node2,O)*_.getValue()}function p(_,O){return y(_.node2,O)}function v(_,O){return y(_.node1,O)*_.getValue()}function A(_,O){return y(_.node1,O)}function y(_,O){return O==="vertical"?_.getLayout().x+_.getLayout().dx/2:_.getLayout().y+_.getLayout().dy/2}function x(_){return _.getValue()}function C(_,O,L){for(var D=0,N=_.length,M=-1;++M<N;){var F=+O.call(_,_[M],L);isNaN(F)||(D+=F)}return D}function w(_,O,L){E.each(_,function(D){E.each(D,function(N){if(N.inEdges.length){var M=C(N.inEdges,v,L)/C(N.inEdges,x,L);if(isNaN(M)){var F=N.inEdges.length;M=F?C(N.inEdges,A,L)/F:0}if(L==="vertical"){var R=N.getLayout().x+(M-y(N,L))*O;N.setLayout({x:R},!0)}else{var j=N.getLayout().y+(M-y(N,L))*O;N.setLayout({y:j},!0)}}})})}function b(_,O){var L=O==="vertical"?"x":"y";E.each(_,function(D){D.outEdges.sort(function(N,M){return N.node2.getLayout()[L]-M.node2.getLayout()[L]}),D.inEdges.sort(function(N,M){return N.node1.getLayout()[L]-M.node1.getLayout()[L]})}),E.each(_,function(D){var N=0,M=0;E.each(D.outEdges,function(F){F.setLayout({sy:N},!0),N+=F.getLayout().dy}),E.each(D.inEdges,function(F){F.setLayout({ty:M},!0),M+=F.getLayout().dy})})}H.exports=S},"gb/T":function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.mode.ECB=function(){var E=I.lib.BlockCipherMode.extend();return E.Encryptor=E.extend({processBlock:function(g,S){this._cipher.encryptBlock(g,S)}}),E.Decryptor=E.extend({processBlock:function(g,S){this._cipher.decryptBlock(g,S)}}),E}(),I.mode.ECB})},"giR+":function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("QbM5"),g=d.n(T)},gut8:function(H,k){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},I=9;k.ContextCachedBy=d,k.WILL_BE_RESTORED=I},gvm7:function(H,k,d){var I=d("bYtY"),E=d("dqUG");function T(S){this._zr=S.getZr(),this._show=!1,this._hideTimeout}T.prototype={constructor:T,_enterable:!0,update:function(){},show:function(S){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(S,m,h){this.el&&this._zr.remove(this.el);for(var c={},a=S,r="{marker",i="|}",n=a.indexOf(r);n>=0;){var t=a.indexOf(i),s=a.substr(n+r.length,t-n-r.length);s.indexOf("sub")>-1?c["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:m[s],textOffset:[3,0]}:c["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:m[s]},a=a.substr(t+1),n=a.indexOf("{marker")}this.el=new E({style:{rich:c,text:S,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 e=this;this.el.on("mouseover",function(){e._enterable&&(clearTimeout(e._hideTimeout),e._show=!0),e._inContent=!0}),this.el.on("mouseout",function(){e._enterable&&(e._show&&e.hideLater(e._hideDelay)),e._inContent=!1})},setEnterable:function(S){this._enterable=S},getSize:function(){var S=this.el.getBoundingRect();return[S.width,S.height]},moveTo:function(S,m){this.el&&this.el.attr("position",[S,m])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(S){this._show&&!(this._inContent&&this._enterable)&&(S?(this._hideDelay=S,this._show=!1,this._hideTimeout=setTimeout(I.bind(this.hide,this),S)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var S=this.getSize();return{width:S[0],height:S[1]}}};var g=T;H.exports=g},gwTy:function(H,k,d){},h54F:function(H,k,d){var I=d("ProS"),E=d("YXkt"),T=d("bYtY"),g=d("4NO4"),S=g.defaultEmphasis,m=d("Qxkt"),h=d("7aKB"),c=h.encodeHTML,a=d("I3/A"),r=d("xKMd"),i=I.extendSeriesModel({type:"series.graph",init:function(t){i.superApply(this,"init",arguments);var s=this;function e(){return s._categoriesData}this.legendVisualProvider=new r(e,e),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){i.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){i.superApply(this,"mergeDefaultAndTheme",arguments),S(t,["edgeLabel"],["show"])},getInitialData:function(t,s){var e=t.edges||t.links||[],o=t.data||t.nodes||[],l=this;if(o&&e)return a(o,e,this,!0,u).data;function u(f,p){f.wrapMethod("getItemModel",function(w){var b=l._categoriesModels,_=w.getShallow("category"),O=b[_];return O&&(O.parentModel=w.parentModel,w.parentModel=O),w});var v=l.getModel("edgeLabel"),A=new m({label:v.option},v.parentModel,s),y=l.getModel("emphasis.edgeLabel"),x=new m({emphasis:{label:y.option}},y.parentModel,s);p.wrapMethod("getItemModel",function(w){return w.customizeGetParent(C),w});function C(w){return w=this.parsePath(w),w&&w[0]==="label"?A:w&&w[0]==="emphasis"&&w[1]==="label"?x:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,s,e){if(e==="edge"){var o=this.getData(),l=this.getDataParams(t,e),u=o.graph.getEdgeByIndex(t),f=o.getName(u.node1.dataIndex),p=o.getName(u.node2.dataIndex),v=[];return f!=null&&v.push(f),p!=null&&v.push(p),v=c(v.join(" > ")),l.value&&(v+=" : "+c(l.value)),v}else return i.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=T.map(this.option.categories||[],function(e){return e.value!=null?e:T.extend({value:0},e)}),s=new E(["value"],this);s.initData(t),this._categoriesData=s,this._categoriesModels=s.mapArray(function(e){return s.getItemModel(e,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return i.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}}}}),n=i;H.exports=n},h7HQ:function(H,k,d){var I=d("y+Vt"),E=d("T6xi"),T=I.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(S,m){E.buildPath(S,m,!0)}});H.exports=T},h8O9:function(H,k,d){var I=d("bYtY"),E=I.map,T=d("zM3Q"),g=d("7hqr"),S=g.isDimensionStacked;function m(h){return{seriesType:h,plan:T(),reset:function(c){var a=c.getData(),r=c.coordinateSystem,i=c.pipelineContext,n=i.large;if(!r)return;var t=E(r.dimensions,function(l){return a.mapDimension(l)}).slice(0,2),s=t.length,e=a.getCalculationInfo("stackResultDimension");S(a,t[0])&&(t[0]=e),S(a,t[1])&&(t[1]=e);function o(l,u){for(var f=l.end-l.start,p=n&&new Float32Array(f*s),v=l.start,A=0,y=[],x=[];v<l.end;v++){var C;if(s===1){var w=u.get(t[0],v);C=!isNaN(w)&&r.dataToPoint(w,null,x)}else{var w=y[0]=u.get(t[0],v),b=y[1]=u.get(t[1],v);C=!isNaN(w)&&!isNaN(b)&&r.dataToPoint(y,null,x)}n?(p[A++]=C?C[0]:NaN,p[A++]=C?C[1]:NaN):u.setItemLayout(v,C&&C.slice()||[NaN,NaN])}n&&u.setLayout("symbolPoints",p)}return s&&{progress:o}}}}H.exports=m},hD7B:function(H,k,d){var I=d("bYtY"),E=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function T(S){I.each(E,function(m){this[m]=I.bind(S[m],S)},this)}var g=T;H.exports=g},hFmY:function(H,k,d){var I=d("ProS"),E={type:"axisAreaSelect",event:"axisAreaSelected"};I.registerAction(E,function(T,g){g.eachComponent({mainType:"parallelAxis",query:T},function(S){S.axis.model.setActiveIntervals(T.intervals)})}),I.registerAction("parallelAxisExpand",function(T,g){g.eachComponent({mainType:"parallel",query:T},function(S){S.setAxisExpand(T)})})},hJvP:function(H,k,d){var I=d("2dDv"),E=d("IDmD");function T(g,S){var m=[];return g.eachComponent("parallel",function(h,c){var a=new I(h,g,S);a.name="parallel_"+c,a.resize(h,S),h.coordinateSystem=a,a.model=h,m.push(a)}),g.eachSeries(function(h){if(h.get("coordinateSystem")==="parallel"){var c=g.queryComponents({mainType:"parallel",index:h.get("parallelIndex"),id:h.get("parallelId")})[0];h.coordinateSystem=c.coordinateSystem}}),m}E.register("parallel",{create:T})},hM6l:function(H,k,d){var I=d("bYtY"),E=I.each,T=I.map,g=d("OELB"),S=g.linearMap,m=g.getPixelPrecision,h=g.round,c=d("4HMb"),a=c.createAxisTicks,r=c.createAxisLabels,i=c.calculateCategoryInterval,n=[0,1],t=function(l,u,f){this.dim=l,this.scale=u,this._extent=f||[0,0],this.inverse=!1,this.onBand=!1};t.prototype={constructor:t,contain:function(l){var u=this._extent,f=Math.min(u[0],u[1]),p=Math.max(u[0],u[1]);return l>=f&&l<=p},containData:function(l){return this.scale.contain(l)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(l){return m(l||this.scale.getExtent(),this._extent)},setExtent:function(l,u){var f=this._extent;f[0]=l,f[1]=u},dataToCoord:function(l,u){var f=this._extent,p=this.scale;return l=p.normalize(l),this.onBand&&p.type==="ordinal"&&(f=f.slice(),s(f,p.count())),S(l,n,f,u)},coordToData:function(l,u){var f=this._extent,p=this.scale;this.onBand&&p.type==="ordinal"&&(f=f.slice(),s(f,p.count()));var v=S(l,f,n,u);return this.scale.scale(v)},pointToData:function(l,u){},getTicksCoords:function(l){l=l||{};var u=l.tickModel||this.getTickModel(),f=a(this,u),p=f.ticks,v=T(p,function(y){return{coord:this.dataToCoord(y),tickValue:y}},this),A=u.get("alignWithLabel");return e(this,v,A,l.clamp),v},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var l=this.model.getModel("minorTick"),u=l.get("splitNumber");u>0&&u<100||(u=5);var f=this.scale.getMinorTicks(u),p=T(f,function(v){return T(v,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return p},getViewLabels:function(){return r(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var l=this._extent,u=this.scale.getExtent(),f=u[1]-u[0]+(this.onBand?1:0);f===0&&(f=1);var p=Math.abs(l[1]-l[0]);return Math.abs(p)/f},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return i(this)}};function s(l,u){var f=l[1]-l[0],p=u,v=f/p/2;l[0]+=v,l[1]-=v}function e(l,u,f,p){var v=u.length;if(!l.onBand||f||!v)return;var A=l.getExtent(),y,x;if(v===1)u[0].coord=A[0],y=u[1]={coord:A[0]};else{var C=u[v-1].tickValue-u[0].tickValue,w=(u[v-1].coord-u[0].coord)/C;E(u,function(L){L.coord-=w/2});var b=l.scale.getExtent();x=1+b[1]-u[v-1].tickValue,y={coord:u[v-1].coord+w*x},u.push(y)}var _=A[0]>A[1];O(u[0].coord,A[0])&&(p?u[0].coord=A[0]:u.shift()),p&&O(A[0],u[0].coord)&&u.unshift({coord:A[0]}),O(A[1],y.coord)&&(p?y.coord=A[1]:u.pop()),p&&O(y.coord,A[1])&&u.push({coord:A[1]});function O(L,D){return L=h(L),D=h(D),_?L>D:L<D}}var o=t;H.exports=o},hNWo:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("Qxkt"),g=d("4NO4"),S=g.isNameSpecified,m=d("Kagy"),h=m.legend.selector,c={all:{type:"all",title:E.clone(h.all)},inverse:{type:"inverse",title:E.clone(h.inverse)}},a=I.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(i,n,t){this.mergeDefaultAndTheme(i,t),i.selected=i.selected||{},this._updateSelector(i)},mergeOption:function(i){a.superCall(this,"mergeOption",i),this._updateSelector(i)},_updateSelector:function(i){var n=i.selector;n===!0&&(n=i.selector=["all","inverse"]),E.isArray(n)&&E.each(n,function(t,s){E.isString(t)&&(t={type:t}),n[s]=E.merge(t,c[t.type])})},optionUpdated:function(){this._updateData(this.ecModel);var i=this._data;if(i[0]&&this.get("selectedMode")==="single"){for(var n=!1,t=0;t<i.length;t++){var s=i[t].get("name");if(this.isSelected(s)){this.select(s),n=!0;break}}!n&&this.select(i[0].get("name"))}},_updateData:function(i){var n=[],t=[];i.eachRawSeries(function(o){var l=o.name;t.push(l);var u;if(o.legendVisualProvider){var f=o.legendVisualProvider,p=f.getAllNames();i.isSeriesFiltered(o)||(t=t.concat(p)),p.length?n=n.concat(p):u=!0}else u=!0;u&&S(o)&&n.push(o.name)}),this._availableNames=t;var s=this.get("data")||n,e=E.map(s,function(o){return(typeof o=="string"||typeof o=="number")&&(o={name:o}),new T(o,this,this.ecModel)},this);this._data=e},getData:function(){return this._data},select:function(i){var n=this.option.selected,t=this.get("selectedMode");if(t==="single"){var s=this._data;E.each(s,function(e){n[e.get("name")]=!1})}n[i]=!0},unSelect:function(i){this.get("selectedMode")!=="single"&&(this.option.selected[i]=!1)},toggleSelected:function(i){var n=this.option.selected;n.hasOwnProperty(i)||(n[i]=!0),this[n[i]?"unSelect":"select"](i)},allSelect:function(){var i=this._data,n=this.option.selected;E.each(i,function(t){n[t.get("name",!0)]=!0})},inverseSelect:function(){var i=this._data,n=this.option.selected;E.each(i,function(t){var s=t.get("name",!0);n.hasOwnProperty(s)||(n[s]=!0),n[s]=!n[s]})},isSelected:function(i){var n=this.option.selected;return!(n.hasOwnProperty(i)&&!n[i])&&E.indexOf(this._availableNames,i)>=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}}}),r=a;H.exports=r},hOwI:function(H,k){var d=Math.log(2);function I(T,g,S,m,h,c){var a=m+"-"+h,r=T.length;if(c.hasOwnProperty(a))return c[a];if(g===1){var i=Math.round(Math.log((1<<r)-1&~h)/d);return T[S][i]}for(var n=m|1<<S,t=S+1;m&1<<t;)t++;for(var s=0,e=0,o=0;e<r;e++){var l=1<<e;l&h||(s+=(o%2?-1:1)*T[S][e]*I(T,g-1,t,n,h|l,c),o++)}return c[a]=s,s}function E(T,g){var S=[[T[0],T[1],1,0,0,0,-g[0]*T[0],-g[0]*T[1]],[0,0,0,T[0],T[1],1,-g[1]*T[0],-g[1]*T[1]],[T[2],T[3],1,0,0,0,-g[2]*T[2],-g[2]*T[3]],[0,0,0,T[2],T[3],1,-g[3]*T[2],-g[3]*T[3]],[T[4],T[5],1,0,0,0,-g[4]*T[4],-g[4]*T[5]],[0,0,0,T[4],T[5],1,-g[5]*T[4],-g[5]*T[5]],[T[6],T[7],1,0,0,0,-g[6]*T[6],-g[6]*T[7]],[0,0,0,T[6],T[7],1,-g[7]*T[6],-g[7]*T[7]]],m={},h=I(S,8,0,0,0,m);if(h===0)return;for(var c=[],a=0;a<8;a++)for(var r=0;r<8;r++)c[r]==null&&(c[r]=0),c[r]+=((a+r)%2?-1:1)*I(S,7,a===0?1:0,1<<a,1<<r,m)/h*g[a];return function(i,n,t){var s=n*c[6]+t*c[7]+1;i[0]=(n*c[0]+t*c[1]+c[2])/s,i[1]=(n*c[3]+t*c[4]+c[5])/s}}k.buildTransformer=E},hX1E:function(H,k){var d=Math.PI*2;function I(E){return E%=d,E<0&&(E+=d),E}k.normalizeRadian=I},hXwI:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function I(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function E(S,m){for(var h=0;h<m.length;h++){var c=m[h];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,h){return m&&E(S.prototype,m),h&&E(S,h),S}var g=function(){function S(){I(this,S)}return T(S,[{key:"decodeRect",value:function(h,c,a,r,i,n,t){if(i.rQwait("COPYRECT",4))return!1;var s=i.rQshift16(),e=i.rQshift16();return n.copyImage(s,e,h,c,a,r),!0}}]),S}();k.default=g},hi0g:function(H,k,d){var I=d("bYtY"),E=I.createHashMap,T=I.each,g=I.isString,S=I.defaults,m=I.extend,h=I.isObject,c=I.clone,a=d("4NO4"),r=a.normalizeToArray,i=d("D5nY"),n=i.guessOrdinal,t=i.BE_ORDINAL,s=d("7G+c"),e=d("L0Ub"),o=e.OTHER_DIMENSIONS,l=d("Vi4m");function u(A,y,x){s.isInstance(y)||(y=s.seriesDataToSource(y)),x=x||{},A=(A||[]).slice();for(var C=(x.dimsDef||[]).slice(),w=E(),b=E(),_=[],O=f(y,A,C,x.dimCount),L=0;L<O;L++){var D=C[L]=m({},h(C[L])?C[L]:{name:C[L]}),N=D.name,M=_[L]=new l;N!=null&&w.get(N)==null&&(M.name=M.displayName=N,w.set(N,L)),D.type!=null&&(M.type=D.type),D.displayName!=null&&(M.displayName=D.displayName)}var F=x.encodeDef;!F&&x.encodeDefaulter&&(F=x.encodeDefaulter(y,O)),F=E(F),F.each(function(J,se){if(J=r(J).slice(),J.length===1&&!g(J[0])&&J[0]<0){F.set(se,!1);return}var $=F.set(se,[]);T(J,function(ae,ge){g(ae)&&(ae=w.get(ae)),ae!=null&&ae<O&&($[ge]=ae,j(_[ae],se,ge))})});var R=0;T(A,function(J,se){var $,J,ae,ge;if(g(J))$=J,J={};else{$=J.name;var pe=J.ordinalMeta;J.ordinalMeta=null,J=c(J),J.ordinalMeta=pe,ae=J.dimsDef,ge=J.otherDims,J.name=J.coordDim=J.coordDimIndex=J.dimsDef=J.otherDims=null}var Ne=F.get($);if(Ne===!1)return;var Ne=r(Ne);if(!Ne.length)for(var de=0;de<(ae&&ae.length||1);de++){for(;R<_.length&&_[R].coordDim!=null;)R++;R<_.length&&Ne.push(R++)}T(Ne,function(Le,Q){var ce=_[Le];if(j(S(ce,J),$,Q),ce.name==null&&ae){var Ke=ae[Q];!h(Ke)&&(Ke={name:Ke}),ce.name=ce.displayName=Ke.name,ce.defaultTooltip=Ke.defaultTooltip}ge&&S(ce.otherDims,ge)})});function j(J,se,$){o.get(se)!=null?J.otherDims[se]=$:(J.coordDim=se,J.coordDimIndex=$,b.set(se,!0))}var B=x.generateCoord,K=x.generateCoordCount,U=K!=null;K=B?K||1:0;for(var z=B||"value",V=0;V<O;V++){var M=_[V]=_[V]||new l,Y=M.coordDim;Y==null&&(M.coordDim=p(z,b,U),M.coordDimIndex=0,(!B||K<=0)&&(M.isExtraCoord=!0),K--),M.name==null&&(M.name=p(M.coordDim,w)),M.type==null&&(n(y,V,M.name)===t.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return _}function f(A,y,x,C){var w=Math.max(A.dimensionsDetectCount||1,y.length,x.length,C||0);return T(y,function(b){var _=b.dimsDef;_&&(w=Math.max(w,_.length))}),w}function p(A,y,x){if(x||y.get(A)!=null){for(var C=0;y.get(A+C)!=null;)C++;A+=C}return y.set(A,!0),A}var v=u;H.exports=v},hkKa:function(H,k,d){"use strict";d.d(k,"a",function(){return S});var I=d("J4zp"),E=d.n(I),T=d("q1tI"),g=d.n(T);function S(){var m=T.useReducer(function(a){return a+1},0),h=E()(m,2),c=h[1];return c}},hw6D:function(H,k,d){var I=d("bYtY");function E(S){S.eachSeriesByType("radar",function(m){var h=m.getData(),c=[],a=m.coordinateSystem;if(!a)return;var r=a.getIndicatorAxes();I.each(r,function(i,n){h.each(h.mapDimension(r[n].dim),function(t,s){c[s]=c[s]||[];var e=a.dataToPoint(t,n);c[s][n]=T(e)?e:g(a)})}),h.each(function(i){var n=I.find(c[i],function(t){return T(t)})||g(a);c[i].push(n.slice()),h.setItemLayout(i,c[i])})})}function T(S){return!isNaN(S[0])&&!isNaN(S[1])}function g(S){return[S.cx,S.cy]}H.exports=E},hwYd:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("Nu4q")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="PictureTwoTone";var c=g.forwardRef(h);k.default=c},hydK:function(H,k){var d="http://www.w3.org/2000/svg";function I(E){return document.createElementNS(d,E)}k.createElement=I},hyiK:function(H,k){function d(I,E,T,g,S,m){if(m>E&&m>g||m<E&&m<g)return 0;if(g===E)return 0;var h=g<E?1:-1,c=(m-E)/(g-E);(c===1||c===0)&&(h=g<E?.5:-.5);var a=c*(T-I)+I;return a===S?Infinity:a>S?h:0}H.exports=d},i38C:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=T.createHashMap,S=T.retrieve,m=T.each;function h(i){this.coordSysName=i,this.coordSysDims=[],this.axisMap=g(),this.categoryAxisMap=g(),this.firstCategoryDimIndex=null}function c(i){var n=i.get("coordinateSystem"),t=new h(n),s=a[n];if(s)return s(i,t,t.axisMap,t.categoryAxisMap),t}var a={cartesian2d:function(i,n,t,s){var e=i.getReferringComponents("xAxis")[0],o=i.getReferringComponents("yAxis")[0];n.coordSysDims=["x","y"],t.set("x",e),t.set("y",o),r(e)&&(s.set("x",e),n.firstCategoryDimIndex=0),r(o)&&(s.set("y",o),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(i,n,t,s){var e=i.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],t.set("single",e),r(e)&&(s.set("single",e),n.firstCategoryDimIndex=0)},polar:function(i,n,t,s){var e=i.getReferringComponents("polar")[0],o=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],t.set("radius",o),t.set("angle",l),r(o)&&(s.set("radius",o),n.firstCategoryDimIndex=0),r(l)&&(s.set("angle",l),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(i,n,t,s){n.coordSysDims=["lng","lat"]},parallel:function(i,n,t,s){var e=i.ecModel,o=e.getComponent("parallel",i.get("parallelIndex")),l=n.coordSysDims=o.dimensions.slice();m(o.parallelAxisIndex,function(u,f){var p=e.getComponent("parallelAxis",u),v=l[f];t.set(v,p),r(p)&&n.firstCategoryDimIndex==null&&(s.set(v,p),n.firstCategoryDimIndex=f)})}};function r(i){return i.get("type")==="category"}k.getCoordSysInfoBySeries=c},i6bk:function(H,k,d){"use strict";d.d(k,"b",function(){return I}),d.d(k,"a",function(){return E});function I(T){return T!=null&&T===T.window}function E(T,g){if(typeof window=="undefined")return 0;var S=g?"scrollTop":"scrollLeft",m=0;return I(T)?m=T[g?"pageYOffset":"pageXOffset"]:T instanceof Document?m=T.documentElement[S]:T&&(m=T[S]),T&&!I(T)&&typeof m!="number"&&(m=(T.ownerDocument||T).documentElement[S]),m}},i8CU:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("Fm1+"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},iLNv:function(H,k){var d="\0__throttleOriginMethod",I="\0__throttleRate",E="\0__throttleType";function T(m,h,c){var a,r=0,i=0,n=null,t,s,e,o;h=h||0;function l(){i=new Date().getTime(),n=null,m.apply(s,e||[])}var u=function(){a=new Date().getTime(),s=this,e=arguments;var f=o||h,p=o||c;o=null,t=a-(p?r:i)-f,clearTimeout(n),p?n=setTimeout(l,f):t>=0?l():n=setTimeout(l,-t),r=a};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(f){o=f},u}function g(m,h,c,a){var r=m[h];if(!r)return;var i=r[d]||r,n=r[E],t=r[I];if(t!==c||n!==a){if(c==null||!a)return m[h]=i;r=m[h]=T(i,c,a==="debounce"),r[d]=i,r[E]=a,r[I]=c}return r}function S(m,h){var c=m[h];c&&c[d]&&(m[h]=c[d])}k.throttle=T,k.createOrUpdate=g,k.clear=S},iPDy:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=I.extendComponentView({type:"marker",init:function(){this.markerGroupMap=E.createHashMap()},render:function(g,S,m){var h=this.markerGroupMap;h.each(function(a){a.__keep=!1});var c=this.type+"Model";S.eachSeries(function(a){var r=a[c];r&&this.renderSeries(a,r,S,m)},this),h.each(function(a){!a.__keep&&this.group.remove(a.group)},this)},renderSeries:function(){}});H.exports=T},iQDF:function(H,k,d){"use strict";var I=d("ZTW2"),E=d.n(I),T=d("+BJd"),g=d("+L6B")},iRjW:function(H,k,d){var I=d("bYtY"),E=d("Yl7c"),T=E.parseClassType,g=0;function S(c){return[c||"",g++,Math.random().toFixed(5)].join("_")}function m(c){var a={};return c.registerSubTypeDefaulter=function(r,i){r=T(r),a[r.main]=i},c.determineSubType=function(r,i){var n=i.type;if(!n){var t=T(r).main;c.hasSubTypes(r)&&a[t]&&(n=a[t](i))}return n},c}function h(c,a){c.topologicalTravel=function(t,s,e,o){if(!t.length)return;var l=r(s),u=l.graph,f=l.noEntryList,p={};for(I.each(t,function(w){p[w]=!0});f.length;){var v=f.pop(),A=u[v],y=!!p[v];y&&(e.call(o,v,A.originalDeps.slice()),delete p[v]),I.each(A.successor,y?C:x)}I.each(p,function(){throw new Error("Circle dependency may exists")});function x(w){u[w].entryCount--,u[w].entryCount===0&&f.push(w)}function C(w){p[w]=!0,x(w)}};function r(t){var s={},e=[];return I.each(t,function(o){var l=i(s,o),u=l.originalDeps=a(o),f=n(u,t);l.entryCount=f.length,l.entryCount===0&&e.push(o),I.each(f,function(p){I.indexOf(l.predecessor,p)<0&&l.predecessor.push(p);var v=i(s,p);I.indexOf(v.successor,p)<0&&v.successor.push(o)})}),{graph:s,noEntryList:e}}function i(t,s){return t[s]||(t[s]={predecessor:[],successor:[]}),t[s]}function n(t,s){var e=[];return I.each(t,function(o){I.indexOf(s,o)>=0&&e.push(o)}),e}}k.getUID=S,k.enableSubTypeDefaulter=m,k.enableTopologicalTravel=h},iUHT:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function I(A,y){if(!(A instanceof y))throw new TypeError("Cannot call a class as a function")}function E(A,y){for(var x=0;x<y.length;x++){var C=y[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}function T(A,y,x){return y&&E(A.prototype,y),x&&E(A,x),A}var g=[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],S=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=0,h,c,a,r,i,n;h=1<<16,c=1<<24,a=h|c,r=1<<2,i=1<<10,n=r|i;var t=[a|i,m|m,h|m,a|n,a|r,h|n,m|r,h|m,m|i,a|i,a|n,m|i,c|n,a|r,c|m,m|r,m|n,c|i,c|i,h|i,h|i,a|m,a|m,c|n,h|r,c|r,c|r,h|r,m|m,m|n,h|n,c|m,h|m,a|n,m|r,a|m,a|i,c|m,c|m,m|i,a|r,h|m,h|i,c|r,m|i,m|r,c|n,h|n,a|n,h|r,a|m,c|n,c|r,m|n,h|n,a|i,m|n,c|i,c|i,m|m,h|r,h|i,m|m,a|r];h=1<<20,c=1<<31,a=h|c,r=1<<5,i=1<<15,n=r|i;var s=[a|n,c|i,m|i,h|n,h|m,m|r,a|r,c|n,c|r,a|n,a|i,c|m,c|i,h|m,m|r,a|r,h|i,h|r,c|n,m|m,c|m,m|i,h|n,a|m,h|r,c|r,m|m,h|i,m|n,a|i,a|m,m|n,m|m,h|n,a|r,h|m,c|n,a|m,a|i,m|i,a|m,c|i,m|r,a|n,h|n,m|r,m|i,c|m,m|n,a|i,h|m,c|r,h|r,c|n,c|r,h|r,h|i,m|m,c|i,m|n,c|m,a|r,a|n,h|i];h=1<<17,c=1<<27,a=h|c,r=1<<3,i=1<<9,n=r|i;var e=[m|n,a|i,m|m,a|r,c|i,m|m,h|n,c|i,h|r,c|r,c|r,h|m,a|n,h|r,a|m,m|n,c|m,m|r,a|i,m|i,h|i,a|m,a|r,h|n,c|n,h|i,h|m,c|n,m|r,a|n,m|i,c|m,a|i,c|m,h|r,m|n,h|m,a|i,c|i,m|m,m|i,h|r,a|n,c|i,c|r,m|i,m|m,a|r,c|n,h|m,c|m,a|n,m|r,h|n,h|i,c|r,a|m,c|n,m|n,a|m,h|n,m|r,a|r,h|i];h=1<<13,c=1<<23,a=h|c,r=1<<0,i=1<<7,n=r|i;var o=[a|r,h|n,h|n,m|i,a|i,c|n,c|r,h|r,m|m,a|m,a|m,a|n,m|n,m|m,c|i,c|r,m|r,h|m,c|m,a|r,m|i,c|m,h|r,h|i,c|n,m|r,h|i,c|i,h|m,a|i,a|n,m|n,c|i,c|r,a|m,a|n,m|n,m|m,m|m,a|m,h|i,c|i,c|n,m|r,a|r,h|n,h|n,m|i,a|n,m|n,m|r,h|m,c|r,h|r,a|i,c|n,h|r,h|i,c|m,a|r,m|i,c|m,h|m,a|i];h=1<<25,c=1<<30,a=h|c,r=1<<8,i=1<<19,n=r|i;var l=[m|r,h|n,h|i,a|r,m|i,m|r,c|m,h|i,c|n,m|i,h|r,c|n,a|r,a|i,m|n,c|m,h|m,c|i,c|i,m|m,c|r,a|n,a|n,h|r,a|i,c|r,m|m,a|m,h|n,h|m,a|m,m|n,m|i,a|r,m|r,h|m,c|m,h|i,a|r,c|n,h|r,c|m,a|i,h|n,c|n,m|r,h|m,a|i,a|n,m|n,a|m,a|n,h|i,m|m,c|i,a|m,m|n,h|r,c|r,m|i,m|m,c|i,h|n,c|r];h=1<<22,c=1<<29,a=h|c,r=1<<4,i=1<<14,n=r|i;var u=[c|r,a|m,m|i,a|n,a|m,m|r,a|n,h|m,c|i,h|n,h|m,c|r,h|r,c|i,c|m,m|n,m|m,h|r,c|n,m|i,h|i,c|n,m|r,a|r,a|r,m|m,h|n,a|i,m|n,h|i,a|i,c|m,c|i,m|r,a|r,h|i,a|n,h|m,m|n,c|r,h|m,c|i,c|m,m|n,c|r,a|n,h|i,a|m,h|n,a|i,m|m,a|r,m|r,m|i,a|m,h|n,m|i,h|r,c|n,m|m,a|i,c|m,h|r,c|n];h=1<<21,c=1<<26,a=h|c,r=1<<1,i=1<<11,n=r|i;var f=[h|m,a|r,c|n,m|m,m|i,c|n,h|n,a|i,a|n,h|m,m|m,c|r,m|r,c|m,a|r,m|n,c|i,h|n,h|r,c|i,c|r,a|m,a|i,h|r,a|m,m|i,m|n,a|n,h|i,m|r,c|m,h|i,c|m,h|i,h|m,c|n,c|n,a|r,a|r,m|r,h|r,c|m,c|i,h|m,a|i,m|n,h|n,a|i,m|n,c|r,a|n,a|m,h|i,m|m,m|r,a|n,m|m,h|n,a|m,m|i,c|r,c|i,m|i,h|r];h=1<<18,c=1<<28,a=h|c,r=1<<6,i=1<<12,n=r|i;var p=[c|n,m|i,h|m,a|n,c|m,c|n,m|r,c|m,h|r,a|m,a|n,h|i,a|i,h|n,m|i,m|r,a|m,c|r,c|i,m|n,h|i,h|r,a|r,a|i,m|n,m|m,m|m,a|r,c|r,c|i,h|n,h|m,h|n,h|m,a|i,m|i,m|r,a|r,m|i,h|n,c|i,m|r,c|r,a|m,a|r,c|m,h|m,c|n,m|m,a|n,h|r,c|r,a|m,c|i,c|n,m|m,a|n,h|i,h|i,m|n,m|n,h|r,c|m,a|i],v=function(){function A(y){I(this,A),this.keys=[];for(var x=[],C=[],w=[],b=0,_=56;b<56;++b,_-=8){_+=_<-5?65:_<-3?31:_<-1?63:_===27?35:0;var O=_&7;x[b]=(y[_>>>3]&1<<O)!==0?1:0}for(var L=0;L<16;++L){var D=L<<1,N=D+1;w[D]=w[N]=0;for(var M=28;M<59;M+=28)for(var F=M-28;F<M;++F){var R=F+S[L];C[F]=R<M?x[R]:x[R-28]}for(var j=0;j<24;++j)C[g[j]]!==0&&(w[D]|=1<<23-j),C[g[j+24]]!==0&&(w[N]|=1<<23-j)}for(var B=0,K=0,U=0;B<16;++B){var z=w[K++],V=w[K++];this.keys[U]=(z&16515072)<<6,this.keys[U]|=(z&4032)<<10,this.keys[U]|=(V&16515072)>>>10,this.keys[U]|=(V&4032)>>>6,++U,this.keys[U]=(z&258048)<<12,this.keys[U]|=(z&63)<<16,this.keys[U]|=(V&258048)>>>4,this.keys[U]|=V&63,++U}}return T(A,[{key:"enc8",value:function(x){var C=x.slice(),w=0,b,_,O;b=C[w++]<<24|C[w++]<<16|C[w++]<<8|C[w++],_=C[w++]<<24|C[w++]<<16|C[w++]<<8|C[w++],O=(b>>>4^_)&252645135,_^=O,b^=O<<4,O=(b>>>16^_)&65535,_^=O,b^=O<<16,O=(_>>>2^b)&858993459,b^=O,_^=O<<2,O=(_>>>8^b)&16711935,b^=O,_^=O<<8,_=_<<1|_>>>31&1,O=(b^_)&2863311530,b^=O,_^=O,b=b<<1|b>>>31&1;for(var L=0,D=0;L<8;++L){O=_<<28|_>>>4,O^=this.keys[D++];var N=f[O&63];N|=l[O>>>8&63],N|=e[O>>>16&63],N|=t[O>>>24&63],O=_^this.keys[D++],N|=p[O&63],N|=u[O>>>8&63],N|=o[O>>>16&63],N|=s[O>>>24&63],b^=N,O=b<<28|b>>>4,O^=this.keys[D++],N=f[O&63],N|=l[O>>>8&63],N|=e[O>>>16&63],N|=t[O>>>24&63],O=b^this.keys[D++],N|=p[O&63],N|=u[O>>>8&63],N|=o[O>>>16&63],N|=s[O>>>24&63],_^=N}for(_=_<<31|_>>>1,O=(b^_)&2863311530,b^=O,_^=O,b=b<<31|b>>>1,O=(b>>>8^_)&16711935,_^=O,b^=O<<8,O=(b>>>2^_)&858993459,_^=O,b^=O<<2,O=(_>>>16^b)&65535,b^=O,_^=O<<16,O=(_>>>4^b)&252645135,b^=O,_^=O<<4,O=[_,b],w=0;w<8;w++)C[w]=(O[w>>>2]>>>8*(3-w%4))%256,C[w]<0&&(C[w]+=256);return C}},{key:"encrypt",value:function(x){return this.enc8(x.slice(0,8)).concat(this.enc8(x.slice(8,16)))}}]),A}();k.default=v},iXHM:function(H,k){var d="";typeof navigator!="undefined"&&(d=navigator.platform||"");var I={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:d.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};H.exports=I},iXp4:function(H,k,d){var I=d("ItGF"),E=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function T(g){return I.browser.ie&&I.browser.version>=11?function(){var S=this.__clipPaths,m=this.style,h;if(S)for(var c=0;c<S.length;c++){var a=S[c],r=a&&a.shape,i=a&&a.type;if(r&&(i==="sector"&&r.startAngle===r.endAngle||i==="rect"&&(!r.width||!r.height))){for(var n=0;n<E.length;n++)E[n][2]=m[E[n][0]],m[E[n][0]]=E[n][1];h=!0;break}}if(g.apply(this,arguments),h)for(var n=0;n<E.length;n++)m[E[n][0]]=E[n][2]}:g}H.exports=T},iYpf:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("ZLWo")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="FolderOpenOutlined";var c=g.forwardRef(h);k.default=c},ieMj:function(H,k,d){var I=d("OELB"),E=d("7aKB"),T=d("4NgU"),g=d("lE7J"),S=I.round,m=T.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(c,a){var r=this._extent;isNaN(c)||(r[0]=parseFloat(c)),isNaN(a)||(r[1]=parseFloat(a))},unionExtent:function(c){var a=this._extent;c[0]<a[0]&&(a[0]=c[0]),c[1]>a[1]&&(a[1]=c[1]),m.prototype.setExtent.call(this,a[0],a[1])},getInterval:function(){return this._interval},setInterval:function(c){this._interval=c,this._niceExtent=this._extent.slice(),this._intervalPrecision=g.getIntervalPrecision(c)},getTicks:function(c){var a=this._interval,r=this._extent,i=this._niceExtent,n=this._intervalPrecision,t=[];if(!a)return t;var s=1e4;r[0]<i[0]&&(c?t.push(S(i[0]-a,n)):t.push(r[0]));for(var e=i[0];e<=i[1]&&!(t.push(e),e=S(e+a,n),e===t[t.length-1]);)if(t.length>s)return[];var o=t.length?t[t.length-1]:i[1];return r[1]>o&&(c?t.push(S(o+a,n)):t.push(r[1])),t},getMinorTicks:function(c){for(var a=this.getTicks(!0),r=[],i=this.getExtent(),n=1;n<a.length;n++){for(var t=a[n],s=a[n-1],e=0,o=[],l=t-s,u=l/c;e<c-1;){var f=I.round(s+(e+1)*u);f>i[0]&&f<i[1]&&o.push(f),e++}r.push(o)}return r},getLabel:function(c,a){if(c==null)return"";var r=a&&a.precision;return r==null?r=I.getPrecisionSafe(c)||0:r==="auto"&&(r=this._intervalPrecision),c=S(c,r,!0),E.addCommas(c)},niceTicks:function(c,a,r){c=c||5;var i=this._extent,n=i[1]-i[0];if(!isFinite(n))return;n<0&&(n=-n,i.reverse());var t=g.intervalScaleNiceTicks(i,c,a,r);this._intervalPrecision=t.intervalPrecision,this._interval=t.interval,this._niceExtent=t.niceTickExtent},niceExtent:function(c){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var r=a[0];c.fixMax||(a[1]+=r/2),a[0]-=r/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var n=this._interval;c.fixMin||(a[0]=S(Math.floor(a[0]/n)*n)),c.fixMax||(a[1]=S(Math.ceil(a[1]/n)*n))}});m.create=function(){return new m};var h=m;H.exports=h},j5sG:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.createSensor=void 0;var I=E(d("NohK"));function E(g){return g&&g.__esModule?g:{default:g}}var T=function(S){var m=void 0,h=[],c=(0,I.default)(function(){h.forEach(function(t){t(S)})}),a=function(){var s=new ResizeObserver(c);return s.observe(S),c(),s},r=function(s){m||(m=a()),h.indexOf(s)===-1&&h.push(s)},i=function(){m.disconnect(),h=[],m=void 0},n=function(s){var e=h.indexOf(s);e!==-1&&h.splice(e,1),h.length===0&&m&&i()};return{element:S,bind:r,destroy:i,unbind:n}};k.createSensor=T},jCoz:function(H,k,d){var I=d("bYtY"),E=d("4NgU"),T=d("OELB"),g=d("ieMj"),S=E.prototype,m=g.prototype,h=T.getPrecisionSafe,c=T.round,a=Math.floor,r=Math.ceil,i=Math.pow,n=Math.log,t=E.extend({type:"log",base:10,$constructor:function(){E.apply(this,arguments),this._originalScale=new g},getTicks:function(o){var l=this._originalScale,u=this._extent,f=l.getExtent();return I.map(m.getTicks.call(this,o),function(p){var v=T.round(i(this.base,p));return v=p===u[0]&&l.__fixMin?s(v,f[0]):v,v=p===u[1]&&l.__fixMax?s(v,f[1]):v,v},this)},getMinorTicks:m.getMinorTicks,getLabel:m.getLabel,scale:function(o){return o=S.scale.call(this,o),i(this.base,o)},setExtent:function(o,l){var u=this.base;o=n(o)/n(u),l=n(l)/n(u),m.setExtent.call(this,o,l)},getExtent:function(){var o=this.base,l=S.getExtent.call(this);l[0]=i(o,l[0]),l[1]=i(o,l[1]);var u=this._originalScale,f=u.getExtent();return u.__fixMin&&(l[0]=s(l[0],f[0])),u.__fixMax&&(l[1]=s(l[1],f[1])),l},unionExtent:function(o){this._originalScale.unionExtent(o);var l=this.base;o[0]=n(o[0])/n(l),o[1]=n(o[1])/n(l),S.unionExtent.call(this,o)},unionExtentFromData:function(o,l){this.unionExtent(o.getApproximateExtent(l))},niceTicks:function(o){o=o||10;var l=this._extent,u=l[1]-l[0];if(u===Infinity||u<=0)return;var f=T.quantity(u),p=o/u*f;for(p<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var v=[T.round(r(l[0]/f)*f),T.round(a(l[1]/f)*f)];this._interval=f,this._niceExtent=v},niceExtent:function(o){m.niceExtent.call(this,o);var l=this._originalScale;l.__fixMin=o.fixMin,l.__fixMax=o.fixMax}});I.each(["contain","normalize"],function(o){t.prototype[o]=function(l){return l=n(l)/n(this.base),S[o].call(this,l)}}),t.create=function(){return new t};function s(o,l){return c(o,h(l))}var e=t;H.exports=e},jN4g:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="CloseCircleFilled";var h=k.a=E.forwardRef(m)},jO45:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="CheckCircleFilled";var h=k.a=E.forwardRef(m)},jO9C:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.pad.Iso97971={pad:function(T,g){T.concat(I.lib.WordArray.create([2147483648],1)),I.pad.ZeroPadding.pad(T,g)},unpad:function(T){I.pad.ZeroPadding.unpad(T),T.sigBytes--}},I.pad.Iso97971})},jTL6:function(H,k,d){var I=d("y+Vt"),E=I.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(g,S){var m=S.cx,h=S.cy,c=Math.max(S.r,0),a=S.startAngle,r=S.endAngle,i=S.clockwise,n=Math.cos(a),t=Math.sin(a);g.moveTo(n*c+m,t*c+h),g.arc(m,h,c,a,r,!i)}});H.exports=E},je13:function(H,k,d){var I=d("5nXd"),E=d("gRFJ"),T=[d("uQRt")];H.exports=I.createStore(E,T)},jett:function(H,k,d){var I=d("ProS");d("VSLf"),d("oBaM"),d("FGaS");var E=d("mOdp"),T=d("f5Yq"),g=d("hw6D"),S=d("0/Rx"),m=d("eJH7");I.registerVisual(E("radar")),I.registerVisual(T("radar","circle")),I.registerLayout(g),I.registerProcessor(S("radar")),I.registerPreprocessor(m)},jhfD:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="ArrowLeftOutlined";var h=k.a=E.forwardRef(m)},jkPA:function(H,k,d){var I=d("bYtY"),E=I.createHashMap,T=I.isObject,g=I.map;function S(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}S.createByAxisModel=function(r){var i=r.option,n=i.data,t=n&&g(n,c);return new S({categories:t,needCollect:!t,deduplication:i.dedplication!==!1})};var m=S.prototype;m.getOrdinal=function(r){return h(this).get(r)},m.parseAndCollect=function(r){var i,n=this._needCollect;if(typeof r!="string"&&!n)return r;if(n&&!this._deduplication)return i=this.categories.length,this.categories[i]=r,i;var t=h(this);return i=t.get(r),i==null&&(n?(i=this.categories.length,this.categories[i]=r,t.set(r,i)):i=NaN),i};function h(r){return r._map||(r._map=E(r.categories))}function c(r){return T(r)&&r.value!=null?r.value:r+""}var a=S;H.exports=a},jndi:function(H,k,d){var I=d("bYtY"),E=d("Qe9p"),T=d("YXkt"),g=d("OELB"),S=d("IwbS"),m=d("kj2x"),h=d("iPDy"),c=function(e,o,l,u){var f=m.dataTransform(e,u[0]),p=m.dataTransform(e,u[1]),v=I.retrieve,A=f.coord,y=p.coord;A[0]=v(A[0],-Infinity),A[1]=v(A[1],-Infinity),y[0]=v(y[0],Infinity),y[1]=v(y[1],Infinity);var x=I.mergeAll([{},f,p]);return x.coord=[f.coord,p.coord],x.x0=f.x,x.y0=f.y,x.x1=p.x,x.y1=p.y,x};function a(e){return!isNaN(e)&&!isFinite(e)}function r(e,o,l,u){var f=1-e;return a(o[f])&&a(l[f])}function i(e,o){var l=o.coord[0],u=o.coord[1];return e.type==="cartesian2d"&&(l&&u&&(r(1,l,u,e)||r(0,l,u,e)))?!0:m.dataFilter(e,{coord:l,x:o.x0,y:o.y0})||m.dataFilter(e,{coord:u,x:o.x1,y:o.y1})}function n(e,o,l,u,f){var p=u.coordinateSystem,v=e.getItemModel(o),A,y=g.parsePercent(v.get(l[0]),f.getWidth()),x=g.parsePercent(v.get(l[1]),f.getHeight());if(!isNaN(y)&&!isNaN(x))A=[y,x];else{if(u.getMarkerPosition)A=u.getMarkerPosition(e.getValues(l,o));else{var C=e.get(l[0],o),w=e.get(l[1],o),b=[C,w];p.clampData&&p.clampData(b,b),A=p.dataToPoint(b,!0)}if(p.type==="cartesian2d"){var _=p.getAxis("x"),O=p.getAxis("y"),C=e.get(l[0],o),w=e.get(l[1],o);a(C)?A[0]=_.toGlobalCoord(_.getExtent()[l[0]==="x0"?0:1]):a(w)&&(A[1]=O.toGlobalCoord(O.getExtent()[l[1]==="y0"?0:1]))}isNaN(y)||(A[0]=y),isNaN(x)||(A[1]=x)}return A}var t=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];h.extend({type:"markArea",updateTransform:function(e,o,l){o.eachSeries(function(u){var f=u.markAreaModel;if(f){var p=f.getData();p.each(function(v){var A=I.map(t,function(x){return n(p,v,x,u,l)});p.setItemLayout(v,A);var y=p.getItemGraphicEl(v);y.setShape("points",A)})}},this)},renderSeries:function(e,o,l,u){var f=e.coordinateSystem,p=e.id,v=e.getData(),A=this.markerGroupMap,y=A.get(p)||A.set(p,{group:new S.Group});this.group.add(y.group),y.__keep=!0;var x=s(f,e,o);o.setData(x),x.each(function(C){x.setItemLayout(C,I.map(t,function(w){return n(x,C,w,e,u)})),x.setItemVisual(C,{color:v.getVisual("color")})}),x.diff(y.__data).add(function(C){var w=new S.Polygon({shape:{points:x.getItemLayout(C)}});x.setItemGraphicEl(C,w),y.group.add(w)}).update(function(C,w){var b=y.__data.getItemGraphicEl(w);S.updateProps(b,{shape:{points:x.getItemLayout(C)}},o,C),y.group.add(b),x.setItemGraphicEl(C,b)}).remove(function(C){var w=y.__data.getItemGraphicEl(C);y.group.remove(w)}).execute(),x.eachItemGraphicEl(function(C,w){var b=x.getItemModel(w),_=b.getModel("label"),O=b.getModel("emphasis.label"),L=x.getItemVisual(w,"color");C.useStyle(I.defaults(b.getModel("itemStyle").getItemStyle(),{fill:E.modifyAlpha(L,.4),stroke:L})),C.hoverStyle=b.getModel("emphasis.itemStyle").getItemStyle(),S.setLabelStyle(C.style,C.hoverStyle,_,O,{labelFetcher:o,labelDataIndex:w,defaultText:x.getName(w)||"",isRectText:!0,autoColor:L}),S.setHoverStyle(C,{}),C.dataModel=o}),y.__data=x,y.group.silent=o.get("silent")||e.get("silent")}});function s(e,o,l){var u,f,p=["x0","y0","x1","y1"];e?(u=I.map(e&&e.dimensions,function(y){var x=o.getData(),C=x.getDimensionInfo(x.mapDimension(y))||{};return I.defaults({name:y},C)}),f=new T(I.map(p,function(y,x){return{name:y,type:u[x%2].type}}),l)):(u=[{name:"value",type:"float"}],f=new T(u,l));var v=I.map(l.get("data"),I.curry(c,o,e,l));e&&(v=I.filter(v,I.curry(i,e)));var A=e?function(y,x,C,w){return y.coord[Math.floor(w/2)][w%2]}:function(y){return y.value};return f.initData(v,null,A),f.hasItemOption=!0,f}},"jsU+":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IUWy"),g=I.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){g.superApply(this,"optionUpdated",arguments),E.each(this.option.feature,function(m,h){var c=T.get(h);c&&E.merge(m,c.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}}}),S=g;H.exports=S},jtI2:function(H,k,d){d("SMc4");var I=d("bLfw"),E=I.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"}});H.exports=E},juDX:function(H,k,d){d("P47w");var I=d("aX58"),E=I.registerPainter,T=d("3CBa");E("svg",T)},k5C7:function(H,k,d){d("0JAE"),d("g7p0"),d("7mYs")},k9D9:function(H,k){var d="original",I="arrayRows",E="objectRows",T="keyedColumns",g="unknown",S="typedArray",m="column",h="row";k.SOURCE_FORMAT_ORIGINAL=d,k.SOURCE_FORMAT_ARRAY_ROWS=I,k.SOURCE_FORMAT_OBJECT_ROWS=E,k.SOURCE_FORMAT_KEYED_COLUMNS=T,k.SOURCE_FORMAT_UNKNOWN=g,k.SOURCE_FORMAT_TYPED_ARRAY=S,k.SERIES_LAYOUT_BY_COLUMN=m,k.SERIES_LAYOUT_BY_ROW=h},kDyi:function(H,k){function d(I){var E=I.findComponents({mainType:"legend"});E&&E.length&&I.filterSeries(function(T){for(var g=0;g<E.length;g++)if(!E[g].isSelected(T.name))return!1;return!0})}H.exports=d},kGiB:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("ABKa"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},kMLO:function(H,k,d){var I=d("XxSj"),E=d("Qe9p"),T=d("bYtY"),g=T.isArray,S="itemStyle",m={seriesType:"treemap",reset:function(e,o,l,u){var f=e.getData().tree,p=f.root,v=e.getModel(S);if(p.isRemoved())return;var A=T.map(f.levelModels,function(y){return y?y.get(S):null});h(p,{},A,v,e.getViewRoot().getAncestors(),e)}};function h(e,o,l,u,f,p){var v=e.getModel(),A=e.getLayout();if(!A||A.invisible||!A.isInView)return;var y=e.getModel(S),x=l[e.depth],C=c(y,o,x,u),w=y.get("borderColor"),b=y.get("borderColorSaturation"),_;b!=null&&(_=a(C,e),w=r(b,_)),e.setVisual("borderColor",w);var O=e.viewChildren;if(!O||!O.length)_=a(C,e),e.setVisual("color",_);else{var L=n(e,v,A,y,C,O);T.each(O,function(D,N){if(D.depth>=f.length||D===f[D.depth]){var M=s(v,C,D,N,L,p);h(D,M,l,u,f,p)}})}}function c(e,o,l,u){var f=T.extend({},o);return T.each(["color","colorAlpha","colorSaturation"],function(p){var v=e.get(p,!0);v==null&&l&&(v=l[p]),v==null&&(v=o[p]),v==null&&(v=u.get(p)),v!=null&&(f[p]=v)}),f}function a(e){var o=i(e,"color");if(o){var l=i(e,"colorAlpha"),u=i(e,"colorSaturation");return u&&(o=E.modifyHSL(o,null,null,u)),l&&(o=E.modifyAlpha(o,l)),o}}function r(e,o){return o!=null?E.modifyHSL(o,null,null,e):null}function i(e,o){var l=e[o];if(l!=null&&l!=="none")return l}function n(e,o,l,u,f,p){if(!p||!p.length)return;var v=t(o,"color")||f.color!=null&&f.color!=="none"&&(t(o,"colorAlpha")||t(o,"colorSaturation"));if(!v)return;var A=o.get("visualMin"),y=o.get("visualMax"),x=l.dataExtent.slice();A!=null&&A<x[0]&&(x[0]=A),y!=null&&y>x[1]&&(x[1]=y);var C=o.get("colorMappingBy"),w={type:v.name,dataExtent:x,visual:v.range};w.type==="color"&&(C==="index"||C==="id")?(w.mappingMethod="category",w.loop=!0):w.mappingMethod="linear";var b=new I(w);return b.__drColorMappingBy=C,b}function t(e,o){var l=e.get(o);return g(l)&&l.length?{name:o,range:l}:null}function s(e,o,l,u,f,p){var v=T.extend({},o);if(f){var A=f.type,y=A==="color"&&f.__drColorMappingBy,x=y==="index"?u:y==="id"?p.mapIdToIndex(l.getId()):l.getValue(e.get("visualDimension"));v[A]=f.mapValueToVisual(x)}return v}H.exports=m},"kVK+":function(H,k){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */k.read=function(d,I,E,T,g){var S,m,h=g*8-T-1,c=(1<<h)-1,a=c>>1,r=-7,i=E?g-1:0,n=E?-1:1,t=d[I+i];for(i+=n,S=t&(1<<-r)-1,t>>=-r,r+=h;r>0;S=S*256+d[I+i],i+=n,r-=8);for(m=S&(1<<-r)-1,S>>=-r,r+=T;r>0;m=m*256+d[I+i],i+=n,r-=8);if(S===0)S=1-a;else{if(S===c)return m?NaN:(t?-1:1)*Infinity;m=m+Math.pow(2,T),S=S-a}return(t?-1:1)*m*Math.pow(2,S-T)},k.write=function(d,I,E,T,g,S){var m,h,c,a=S*8-g-1,r=(1<<a)-1,i=r>>1,n=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=T?0:S-1,s=T?1:-1,e=I<0||I===0&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===Infinity?(h=isNaN(I)?1:0,m=r):(m=Math.floor(Math.log(I)/Math.LN2),I*(c=Math.pow(2,-m))<1&&(m--,c*=2),m+i>=1?I+=n/c:I+=n*Math.pow(2,1-i),I*c>=2&&(m++,c/=2),m+i>=r?(h=0,m=r):m+i>=1?(h=(I*c-1)*Math.pow(2,g),m=m+i):(h=I*Math.pow(2,i-1)*Math.pow(2,g),m=0));g>=8;d[E+t]=h&255,t+=s,h/=256,g-=8);for(m=m<<g|h,a+=g;a>0;d[E+t]=m&255,t+=s,m/=256,a-=8);d[E+t-s]|=e*128}},kj2x:function(H,k,d){var I=d("bYtY"),E=d("OELB"),T=d("7hqr"),g=T.isDimensionStacked,S=I.indexOf;function m(l){return!(isNaN(parseFloat(l.x))&&isNaN(parseFloat(l.y)))}function h(l){return!isNaN(parseFloat(l.x))&&!isNaN(parseFloat(l.y))}function c(l,u,f,p,v,A){var y=[],x=g(u,p),C=x?u.getCalculationInfo("stackResultDimension"):p,w=o(u,C,l),b=u.indicesOfNearest(C,w)[0];y[v]=u.get(f,b),y[A]=u.get(C,b);var _=u.get(p,b),O=E.getPrecision(u.get(p,b));return O=Math.min(O,20),O>=0&&(y[A]=+y[A].toFixed(O)),[y,_]}var a=I.curry,r={min:a(c,"min"),max:a(c,"max"),average:a(c,"average")};function i(l,u){var f=l.getData(),p=l.coordinateSystem;if(u&&!h(u)&&!I.isArray(u.coord)&&p){var v=p.dimensions,A=n(u,f,p,l);if(u=I.clone(u),u.type&&r[u.type]&&A.baseAxis&&A.valueAxis){var y=S(v,A.baseAxis.dim),x=S(v,A.valueAxis.dim),C=r[u.type](f,A.baseDataDim,A.valueDataDim,y,x);u.coord=C[0],u.value=C[1]}else{for(var w=[u.xAxis!=null?u.xAxis:u.radiusAxis,u.yAxis!=null?u.yAxis:u.angleAxis],b=0;b<2;b++)r[w[b]]&&(w[b]=o(f,f.mapDimension(v[b]),w[b]));u.coord=w}}return u}function n(l,u,f,p){var v={};return l.valueIndex!=null||l.valueDim!=null?(v.valueDataDim=l.valueIndex!=null?u.getDimension(l.valueIndex):l.valueDim,v.valueAxis=f.getAxis(t(p,v.valueDataDim)),v.baseAxis=f.getOtherAxis(v.valueAxis),v.baseDataDim=u.mapDimension(v.baseAxis.dim)):(v.baseAxis=p.getBaseAxis(),v.valueAxis=f.getOtherAxis(v.baseAxis),v.baseDataDim=u.mapDimension(v.baseAxis.dim),v.valueDataDim=u.mapDimension(v.valueAxis.dim)),v}function t(l,u){var f=l.getData(),p=f.dimensions;u=f.getDimension(u);for(var v=0;v<p.length;v++){var A=f.getDimensionInfo(p[v]);if(A.name===u)return A.coordDim}}function s(l,u){return l&&l.containData&&u.coord&&!m(u)?l.containData(u.coord):!0}function e(l,u,f,p){return p<2?l.coord&&l.coord[p]:l.value}function o(l,u,f){if(f==="average"){var p=0,v=0;return l.each(u,function(A,y){isNaN(A)||(p+=A,v++)}),p/v}else return f==="median"?l.getMedian(u):l.getDataExtent(u,!0)[f==="max"?1:0]}k.dataTransform=i,k.getAxisInfo=n,k.dataFilter=s,k.dimValueGetter=e,k.numCalculate=o},knOB:function(H,k,d){var I=d("bYtY"),E=d("hM6l");function T(S,m){E.call(this,"radius",S,m),this.type="category"}T.prototype={constructor:T,pointToData:function(S,m){return this.polar.pointToData(S,m)[this.dim==="radius"?0:1]},dataToRadius:E.prototype.dataToCoord,radiusToData:E.prototype.coordToData},I.inherits(T,E);var g=T;H.exports=g},ko1b:function(H,k,d){var I=d("bYtY"),E=d("T4UG"),T=d("Bsck"),g=d("Qxkt"),S=d("7aKB"),m=S.encodeHTML,h=S.addCommas,c=d("VaxA"),a=c.wrapTreePathInfo,r=E.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(t,s){var e={name:t.name,children:t.data};i(e);var o=t.levels||[];o=t.levels=n(o,s);var l=I.map(o||[],function(p){return new g(p,this,s)},this),u=T.createTree(e,this,null,f);function f(p){p.wrapMethod("getItemModel",function(v,A){var y=u.getNodeByDataIndex(A),x=l[y.depth];return x&&(v.parentModel=x),v})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var s=this.getData(),e=this.getRawValue(t),o=I.isArray(e)?h(e[0]):h(e),l=s.getName(t);return m(l+": "+o)},getDataParams:function(t){var s=E.prototype.getDataParams.apply(this,arguments),e=this.getData().tree.getNodeByDataIndex(t);return s.treePathInfo=a(e,this),s},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},I.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var s=this._idIndexMap;s||(s=this._idIndexMap=I.createHashMap(),this._idIndexMapCount=0);var e=s.get(t);return e==null&&s.set(t,e=this._idIndexMapCount++),e},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var s=this.getRawData().tree.root;(!t||t!==s&&!s.contains(t))&&(this._viewRoot=s)}});function i(t){var s=0;I.each(t.children,function(o){i(o);var l=o.value;I.isArray(l)&&(l=l[0]),s+=l});var e=t.value;I.isArray(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=s),e<0&&(e=0),I.isArray(t.value)?t.value[0]=e:t.value=e}function n(t,s){var e=s.get("color");if(!e)return;t=t||[];var o;if(I.each(t,function(u){var f=new g(u),p=f.get("color");(f.get("itemStyle.color")||p&&p!=="none")&&(o=!0)}),!o){var l=t[0]||(t[0]={});l.color=e.slice()}return t}H.exports=r},kzFp:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I=k.pick=function(T,g){var S={};return g.forEach(function(m){S[m]=T[m]}),S}},kzvK:function(H,k,d){var I=d("sS/r"),E=I.extend({type:"timeline"});H.exports=E},"l+S1":function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="SearchOutlined";var h=k.a=E.forwardRef(m)},lE7J:function(H,k,d){var I=d("OELB"),E=I.round;function T(h,c,a,r){var i={},n=h[1]-h[0],t=i.interval=I.nice(n/c,!0);a!=null&&t<a&&(t=i.interval=a),r!=null&&t>r&&(t=i.interval=r);var s=i.intervalPrecision=g(t),e=i.niceTickExtent=[E(Math.ceil(h[0]/t)*t,s),E(Math.floor(h[1]/t)*t,s)];return m(e,h),i}function g(h){return I.getPrecisionSafe(h)+2}function S(h,c,a){h[c]=Math.max(Math.min(h[c],a[1]),a[0])}function m(h,c){!isFinite(h[0])&&(h[0]=c[0]),!isFinite(h[1])&&(h[1]=c[1]),S(h,0,c),S(h,1,c),h[0]>h[1]&&(h[0]=h[1])}k.intervalScaleNiceTicks=T,k.getIntervalPrecision=g,k.fixExtent=m},lELe:function(H,k,d){var I=d("bYtY");function E(T){var g=[];I.each(T.series,function(S){S&&S.type==="map"&&(g.push(S),S.map=S.map||S.mapType,I.defaults(S,S.mapLocation))})}H.exports=E},lLGD:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("nVfU"),g=T.layout,S=T.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),I.registerLayout(I.PRIORITY.VISUAL.LAYOUT,E.curry(g,"bar")),I.registerLayout(I.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,S),I.registerVisual({seriesType:"bar",reset:function(m){m.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(H,k,d){"use strict";function I(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(er){return typeof er}:I=function(er){return er&&typeof Symbol=="function"&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er},I(me)}Object.defineProperty(k,"__esModule",{value:!0}),k.deflateInit=Je,k.deflateInit2=Ht,k.deflateReset=Ct,k.deflateResetKeep=xt,k.deflateSetHeader=Dt,k.deflate=ye,k.deflateEnd=ie,k.deflateSetDictionary=bt,k.deflateInfo=k.Z_DEFLATED=k.Z_UNKNOWN=k.Z_DEFAULT_STRATEGY=k.Z_FIXED=k.Z_RLE=k.Z_HUFFMAN_ONLY=k.Z_FILTERED=k.Z_DEFAULT_COMPRESSION=k.Z_BUF_ERROR=k.Z_DATA_ERROR=k.Z_STREAM_ERROR=k.Z_STREAM_END=k.Z_OK=k.Z_BLOCK=k.Z_FINISH=k.Z_FULL_FLUSH=k.Z_PARTIAL_FLUSH=k.Z_NO_FLUSH=void 0;var E=a(d("6BzB")),T=a(d("c5fP")),g=h(d("xlC8")),S=h(d("QV2g")),m=h(d("xSIq"));function h(me){return me&&me.__esModule?me:{default:me}}function c(){if(typeof WeakMap!="function")return null;var me=new WeakMap;return c=function(){return me},me}function a(me){if(me&&me.__esModule)return me;if(me===null||I(me)!=="object"&&typeof me!="function")return{default:me};var Rt=c();if(Rt&&Rt.has(me))return Rt.get(me);var er={},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var zt in me)if(Object.prototype.hasOwnProperty.call(me,zt)){var sr=ct?Object.getOwnPropertyDescriptor(me,zt):null;sr&&(sr.get||sr.set)?Object.defineProperty(er,zt,sr):er[zt]=me[zt]}return er.default=me,Rt&&Rt.set(me,er),er}var r=0;k.Z_NO_FLUSH=r;var i=1;k.Z_PARTIAL_FLUSH=i;var n=3;k.Z_FULL_FLUSH=n;var t=4;k.Z_FINISH=t;var s=5;k.Z_BLOCK=s;var e=0;k.Z_OK=e;var o=1;k.Z_STREAM_END=o;var l=-2;k.Z_STREAM_ERROR=l;var u=-3;k.Z_DATA_ERROR=u;var f=-5;k.Z_BUF_ERROR=f;var p=-1;k.Z_DEFAULT_COMPRESSION=p;var v=1;k.Z_FILTERED=v;var A=2;k.Z_HUFFMAN_ONLY=A;var y=3;k.Z_RLE=y;var x=4;k.Z_FIXED=x;var C=0;k.Z_DEFAULT_STRATEGY=C;var w=2;k.Z_UNKNOWN=w;var b=8;k.Z_DEFLATED=b;var _=9,O=15,L=8,D=29,N=256,M=N+1+D,F=30,R=19,j=2*M+1,B=15,K=3,U=258,z=U+K+1,V=32,Y=42,J=69,se=73,$=91,ae=103,ge=113,pe=666,Ne=1,de=2,Le=3,Q=4,ce=3;function Ke(me,Rt){return me.msg=m.default[Rt],Rt}function ee(me){return(me<<1)-(me>4?9:0)}function X(me){for(var Rt=me.length;--Rt>=0;)me[Rt]=0}function G(me){var Rt=me.state,er=Rt.pending;if(er>me.avail_out&&(er=me.avail_out),er===0)return;E.arraySet(me.output,Rt.pending_buf,Rt.pending_out,er,me.next_out),me.next_out+=er,Rt.pending_out+=er,me.total_out+=er,me.avail_out-=er,Rt.pending-=er,Rt.pending===0&&(Rt.pending_out=0)}function Z(me,Rt){T._tr_flush_block(me,me.block_start>=0?me.block_start:-1,me.strstart-me.block_start,Rt),me.block_start=me.strstart,G(me.strm)}function ve(me,Rt){me.pending_buf[me.pending++]=Rt}function ue(me,Rt){me.pending_buf[me.pending++]=Rt>>>8&255,me.pending_buf[me.pending++]=Rt&255}function _e(me,Rt,er,ct){var zt=me.avail_in;return zt>ct&&(zt=ct),zt===0?0:(me.avail_in-=zt,E.arraySet(Rt,me.input,me.next_in,zt,er),me.state.wrap===1?me.adler=(0,g.default)(me.adler,Rt,zt,er):me.state.wrap===2&&(me.adler=(0,S.default)(me.adler,Rt,zt,er)),me.next_in+=zt,me.total_in+=zt,zt)}function xe(me,Rt){var er=me.max_chain_length,ct=me.strstart,zt,sr,Kr=me.prev_length,ar=me.nice_match,nr=me.strstart>me.w_size-z?me.strstart-(me.w_size-z):0,Lt=me.window,st=me.w_mask,Qe=me.prev,qt=me.strstart+U,Sr=Lt[ct+Kr-1],Ar=Lt[ct+Kr];me.prev_length>=me.good_match&&(er>>=2),ar>me.lookahead&&(ar=me.lookahead);do{if(zt=Rt,Lt[zt+Kr]!==Ar||Lt[zt+Kr-1]!==Sr||Lt[zt]!==Lt[ct]||Lt[++zt]!==Lt[ct+1])continue;ct+=2,zt++;do;while(Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&Lt[++ct]===Lt[++zt]&&ct<qt);if(sr=U-(qt-ct),ct=qt-U,sr>Kr){if(me.match_start=Rt,Kr=sr,sr>=ar)break;Sr=Lt[ct+Kr-1],Ar=Lt[ct+Kr]}}while((Rt=Qe[Rt&st])>nr&&--er!==0);return Kr<=me.lookahead?Kr:me.lookahead}function oe(me){var Rt=me.w_size,er,ct,zt,sr,Kr;do{if(sr=me.window_size-me.lookahead-me.strstart,me.strstart>=Rt+(Rt-z)){E.arraySet(me.window,me.window,Rt,Rt,0),me.match_start-=Rt,me.strstart-=Rt,me.block_start-=Rt,ct=me.hash_size,er=ct;do zt=me.head[--er],me.head[er]=zt>=Rt?zt-Rt:0;while(--ct);ct=Rt,er=ct;do zt=me.prev[--er],me.prev[er]=zt>=Rt?zt-Rt:0;while(--ct);sr+=Rt}if(me.strm.avail_in===0)break;if(ct=_e(me.strm,me.window,me.strstart+me.lookahead,sr),me.lookahead+=ct,me.lookahead+me.insert>=K)for(Kr=me.strstart-me.insert,me.ins_h=me.window[Kr],me.ins_h=(me.ins_h<<me.hash_shift^me.window[Kr+1])&me.hash_mask;me.insert&&!(me.ins_h=(me.ins_h<<me.hash_shift^me.window[Kr+K-1])&me.hash_mask,me.prev[Kr&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=Kr,Kr++,me.insert--,me.lookahead+me.insert<K););}while(me.lookahead<z&&me.strm.avail_in!==0)}function fe(me,Rt){var er=65535;for(er>me.pending_buf_size-5&&(er=me.pending_buf_size-5);;){if(me.lookahead<=1){if(oe(me),me.lookahead===0&&Rt===r)return Ne;if(me.lookahead===0)break}me.strstart+=me.lookahead,me.lookahead=0;var ct=me.block_start+er;if((me.strstart===0||me.strstart>=ct)&&(me.lookahead=me.strstart-ct,me.strstart=ct,Z(me,!1),me.strm.avail_out===0))return Ne;if(me.strstart-me.block_start>=me.w_size-z&&(Z(me,!1),me.strm.avail_out===0))return Ne}return me.insert=0,Rt===t?(Z(me,!0),me.strm.avail_out===0?Le:Q):(me.strstart>me.block_start&&(Z(me,!1),me.strm.avail_out===0),Ne)}function Te(me,Rt){for(var er,ct;;){if(me.lookahead<z){if(oe(me),me.lookahead<z&&Rt===r)return Ne;if(me.lookahead===0)break}if(er=0,me.lookahead>=K&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+K-1])&me.hash_mask,er=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),er!==0&&me.strstart-er<=me.w_size-z&&(me.match_length=xe(me,er)),me.match_length>=K)if(ct=T._tr_tally(me,me.strstart-me.match_start,me.match_length-K),me.lookahead-=me.match_length,me.match_length<=me.max_lazy_match&&me.lookahead>=K){me.match_length--;do me.strstart++,me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+K-1])&me.hash_mask,er=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart;while(--me.match_length!==0);me.strstart++}else me.strstart+=me.match_length,me.match_length=0,me.ins_h=me.window[me.strstart],me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+1])&me.hash_mask;else ct=T._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++;if(ct&&(Z(me,!1),me.strm.avail_out===0))return Ne}return me.insert=me.strstart<K-1?me.strstart:K-1,Rt===t?(Z(me,!0),me.strm.avail_out===0?Le:Q):me.last_lit&&(Z(me,!1),me.strm.avail_out===0)?Ne:de}function ze(me,Rt){for(var er,ct,zt;;){if(me.lookahead<z){if(oe(me),me.lookahead<z&&Rt===r)return Ne;if(me.lookahead===0)break}if(er=0,me.lookahead>=K&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+K-1])&me.hash_mask,er=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart),me.prev_length=me.match_length,me.prev_match=me.match_start,me.match_length=K-1,er!==0&&me.prev_length<me.max_lazy_match&&me.strstart-er<=me.w_size-z&&(me.match_length=xe(me,er),me.match_length<=5&&(me.strategy===v||me.match_length===K&&me.strstart-me.match_start>4096)&&(me.match_length=K-1)),me.prev_length>=K&&me.match_length<=me.prev_length){zt=me.strstart+me.lookahead-K,ct=T._tr_tally(me,me.strstart-1-me.prev_match,me.prev_length-K),me.lookahead-=me.prev_length-1,me.prev_length-=2;do++me.strstart<=zt&&(me.ins_h=(me.ins_h<<me.hash_shift^me.window[me.strstart+K-1])&me.hash_mask,er=me.prev[me.strstart&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=me.strstart);while(--me.prev_length!==0);if(me.match_available=0,me.match_length=K-1,me.strstart++,ct&&(Z(me,!1),me.strm.avail_out===0))return Ne}else if(me.match_available){if(ct=T._tr_tally(me,0,me.window[me.strstart-1]),ct&&Z(me,!1),me.strstart++,me.lookahead--,me.strm.avail_out===0)return Ne}else me.match_available=1,me.strstart++,me.lookahead--}return me.match_available&&(ct=T._tr_tally(me,0,me.window[me.strstart-1]),me.match_available=0),me.insert=me.strstart<K-1?me.strstart:K-1,Rt===t?(Z(me,!0),me.strm.avail_out===0?Le:Q):me.last_lit&&(Z(me,!1),me.strm.avail_out===0)?Ne:de}function it(me,Rt){for(var er,ct,zt,sr,Kr=me.window;;){if(me.lookahead<=U){if(oe(me),me.lookahead<=U&&Rt===r)return Ne;if(me.lookahead===0)break}if(me.match_length=0,me.lookahead>=K&&me.strstart>0&&(zt=me.strstart-1,ct=Kr[zt],ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt])){sr=me.strstart+U;do;while(ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt]&&ct===Kr[++zt]&&zt<sr);me.match_length=U-(sr-zt),me.match_length>me.lookahead&&(me.match_length=me.lookahead)}if(me.match_length>=K?(er=T._tr_tally(me,1,me.match_length-K),me.lookahead-=me.match_length,me.strstart+=me.match_length,me.match_length=0):(er=T._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++),er&&(Z(me,!1),me.strm.avail_out===0))return Ne}return me.insert=0,Rt===t?(Z(me,!0),me.strm.avail_out===0?Le:Q):me.last_lit&&(Z(me,!1),me.strm.avail_out===0)?Ne:de}function et(me,Rt){for(var er;;){if(me.lookahead===0&&(oe(me),me.lookahead===0)){if(Rt===r)return Ne;break}if(me.match_length=0,er=T._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++,er&&(Z(me,!1),me.strm.avail_out===0))return Ne}return me.insert=0,Rt===t?(Z(me,!0),me.strm.avail_out===0?Le:Q):me.last_lit&&(Z(me,!1),me.strm.avail_out===0)?Ne:de}function Oe(me,Rt,er,ct,zt){this.good_length=me,this.max_lazy=Rt,this.nice_length=er,this.max_chain=ct,this.func=zt}var gt;gt=[new Oe(0,0,0,0,fe),new Oe(4,4,8,4,Te),new Oe(4,5,16,8,Te),new Oe(4,6,32,32,Te),new Oe(4,4,16,16,ze),new Oe(8,16,32,32,ze),new Oe(8,16,128,128,ze),new Oe(8,32,128,256,ze),new Oe(32,128,258,1024,ze),new Oe(32,258,258,4096,ze)];function Ge(me){me.window_size=2*me.w_size,X(me.head),me.max_lazy_match=gt[me.level].max_lazy,me.good_match=gt[me.level].good_length,me.nice_match=gt[me.level].nice_length,me.max_chain_length=gt[me.level].max_chain,me.strstart=0,me.block_start=0,me.lookahead=0,me.insert=0,me.match_length=me.prev_length=K-1,me.match_available=0,me.ins_h=0}function wt(){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 E.Buf16(j*2),this.dyn_dtree=new E.Buf16((2*F+1)*2),this.bl_tree=new E.Buf16((2*R+1)*2),X(this.dyn_ltree),X(this.dyn_dtree),X(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(B+1),this.heap=new E.Buf16(2*M+1),X(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(2*M+1),X(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 xt(me){var Rt;return!me||!me.state?Ke(me,l):(me.total_in=me.total_out=0,me.data_type=w,Rt=me.state,Rt.pending=0,Rt.pending_out=0,Rt.wrap<0&&(Rt.wrap=-Rt.wrap),Rt.status=Rt.wrap?Y:ge,me.adler=Rt.wrap===2?0:1,Rt.last_flush=r,T._tr_init(Rt),e)}function Ct(me){var Rt=xt(me);return Rt===e&&Ge(me.state),Rt}function Dt(me,Rt){return!me||!me.state||me.state.wrap!==2?l:(me.state.gzhead=Rt,e)}function Ht(me,Rt,er,ct,zt,sr){if(!me)return l;var Kr=1;if(Rt===p&&(Rt=6),ct<0?(Kr=0,ct=-ct):ct>15&&(Kr=2,ct-=16),zt<1||zt>_||er!==b||ct<8||ct>15||Rt<0||Rt>9||sr<0||sr>x)return Ke(me,l);ct===8&&(ct=9);var ar=new wt;return me.state=ar,ar.strm=me,ar.wrap=Kr,ar.gzhead=null,ar.w_bits=ct,ar.w_size=1<<ar.w_bits,ar.w_mask=ar.w_size-1,ar.hash_bits=zt+7,ar.hash_size=1<<ar.hash_bits,ar.hash_mask=ar.hash_size-1,ar.hash_shift=~~((ar.hash_bits+K-1)/K),ar.window=new E.Buf8(ar.w_size*2),ar.head=new E.Buf16(ar.hash_size),ar.prev=new E.Buf16(ar.w_size),ar.lit_bufsize=1<<zt+6,ar.pending_buf_size=ar.lit_bufsize*4,ar.pending_buf=new E.Buf8(ar.pending_buf_size),ar.d_buf=1*ar.lit_bufsize,ar.l_buf=(1+2)*ar.lit_bufsize,ar.level=Rt,ar.strategy=sr,ar.method=er,Ct(me)}function Je(me,Rt){return Ht(me,Rt,b,O,L,C)}function ye(me,Rt){var er,ct,zt,sr;if(!me||!me.state||Rt>s||Rt<0)return me?Ke(me,l):l;if(ct=me.state,!me.output||!me.input&&me.avail_in!==0||ct.status===pe&&Rt!==t)return Ke(me,me.avail_out===0?f:l);if(ct.strm=me,er=ct.last_flush,ct.last_flush=Rt,ct.status===Y)if(ct.wrap===2)me.adler=0,ve(ct,31),ve(ct,139),ve(ct,8),ct.gzhead?(ve(ct,(ct.gzhead.text?1:0)+(ct.gzhead.hcrc?2:0)+(ct.gzhead.extra?4:0)+(ct.gzhead.name?8:0)+(ct.gzhead.comment?16:0)),ve(ct,ct.gzhead.time&255),ve(ct,ct.gzhead.time>>8&255),ve(ct,ct.gzhead.time>>16&255),ve(ct,ct.gzhead.time>>24&255),ve(ct,ct.level===9?2:ct.strategy>=A||ct.level<2?4:0),ve(ct,ct.gzhead.os&255),ct.gzhead.extra&&ct.gzhead.extra.length&&(ve(ct,ct.gzhead.extra.length&255),ve(ct,ct.gzhead.extra.length>>8&255)),ct.gzhead.hcrc&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending,0)),ct.gzindex=0,ct.status=J):(ve(ct,0),ve(ct,0),ve(ct,0),ve(ct,0),ve(ct,0),ve(ct,ct.level===9?2:ct.strategy>=A||ct.level<2?4:0),ve(ct,ce),ct.status=ge);else{var Kr=b+(ct.w_bits-8<<4)<<8,ar=-1;ct.strategy>=A||ct.level<2?ar=0:ct.level<6?ar=1:ct.level===6?ar=2:ar=3,Kr|=ar<<6,ct.strstart!==0&&(Kr|=V),Kr+=31-Kr%31,ct.status=ge,ue(ct,Kr),ct.strstart!==0&&(ue(ct,me.adler>>>16),ue(ct,me.adler&65535)),me.adler=1}if(ct.status===J)if(ct.gzhead.extra){for(zt=ct.pending;ct.gzindex<(ct.gzhead.extra.length&65535)&&!(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>zt&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending-zt,zt)),G(me),zt=ct.pending,ct.pending===ct.pending_buf_size));)ve(ct,ct.gzhead.extra[ct.gzindex]&255),ct.gzindex++;ct.gzhead.hcrc&&ct.pending>zt&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending-zt,zt)),ct.gzindex===ct.gzhead.extra.length&&(ct.gzindex=0,ct.status=se)}else ct.status=se;if(ct.status===se)if(ct.gzhead.name){zt=ct.pending;do{if(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>zt&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending-zt,zt)),G(me),zt=ct.pending,ct.pending===ct.pending_buf_size)){sr=1;break}ct.gzindex<ct.gzhead.name.length?sr=ct.gzhead.name.charCodeAt(ct.gzindex++)&255:sr=0,ve(ct,sr)}while(sr!==0);ct.gzhead.hcrc&&ct.pending>zt&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending-zt,zt)),sr===0&&(ct.gzindex=0,ct.status=$)}else ct.status=$;if(ct.status===$)if(ct.gzhead.comment){zt=ct.pending;do{if(ct.pending===ct.pending_buf_size&&(ct.gzhead.hcrc&&ct.pending>zt&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending-zt,zt)),G(me),zt=ct.pending,ct.pending===ct.pending_buf_size)){sr=1;break}ct.gzindex<ct.gzhead.comment.length?sr=ct.gzhead.comment.charCodeAt(ct.gzindex++)&255:sr=0,ve(ct,sr)}while(sr!==0);ct.gzhead.hcrc&&ct.pending>zt&&(me.adler=(0,S.default)(me.adler,ct.pending_buf,ct.pending-zt,zt)),sr===0&&(ct.status=ae)}else ct.status=ae;if(ct.status===ae&&(ct.gzhead.hcrc?(ct.pending+2>ct.pending_buf_size&&G(me),ct.pending+2<=ct.pending_buf_size&&(ve(ct,me.adler&255),ve(ct,me.adler>>8&255),me.adler=0,ct.status=ge)):ct.status=ge),ct.pending!==0){if(G(me),me.avail_out===0)return ct.last_flush=-1,e}else if(me.avail_in===0&&ee(Rt)<=ee(er)&&Rt!==t)return Ke(me,f);if(ct.status===pe&&me.avail_in!==0)return Ke(me,f);if(me.avail_in!==0||ct.lookahead!==0||Rt!==r&&ct.status!==pe){var nr=ct.strategy===A?et(ct,Rt):ct.strategy===y?it(ct,Rt):gt[ct.level].func(ct,Rt);if((nr===Le||nr===Q)&&(ct.status=pe),nr===Ne||nr===Le)return me.avail_out===0&&(ct.last_flush=-1),e;if(nr===de&&(Rt===i?T._tr_align(ct):Rt!==s&&(T._tr_stored_block(ct,0,0,!1),Rt===n&&(X(ct.head),ct.lookahead===0&&(ct.strstart=0,ct.block_start=0,ct.insert=0))),G(me),me.avail_out===0))return ct.last_flush=-1,e}return Rt!==t?e:ct.wrap<=0?o:(ct.wrap===2?(ve(ct,me.adler&255),ve(ct,me.adler>>8&255),ve(ct,me.adler>>16&255),ve(ct,me.adler>>24&255),ve(ct,me.total_in&255),ve(ct,me.total_in>>8&255),ve(ct,me.total_in>>16&255),ve(ct,me.total_in>>24&255)):(ue(ct,me.adler>>>16),ue(ct,me.adler&65535)),G(me),ct.wrap>0&&(ct.wrap=-ct.wrap),ct.pending!==0?e:o)}function ie(me){var Rt;return!me||!me.state?l:(Rt=me.state.status,Rt!==Y&&Rt!==J&&Rt!==se&&Rt!==$&&Rt!==ae&&Rt!==ge&&Rt!==pe?Ke(me,l):(me.state=null,Rt===ge?Ke(me,u):e))}function bt(me,Rt){var er=Rt.length,ct,zt,sr,Kr,ar,nr,Lt,st;if(!me||!me.state)return l;if(ct=me.state,Kr=ct.wrap,Kr===2||Kr===1&&ct.status!==Y||ct.lookahead)return l;for(Kr===1&&(me.adler=(0,g.default)(me.adler,Rt,er,0)),ct.wrap=0,er>=ct.w_size&&(Kr===0&&(X(ct.head),ct.strstart=0,ct.block_start=0,ct.insert=0),st=new E.Buf8(ct.w_size),E.arraySet(st,Rt,er-ct.w_size,ct.w_size,0),Rt=st,er=ct.w_size),ar=me.avail_in,nr=me.next_in,Lt=me.input,me.avail_in=er,me.next_in=0,me.input=Rt,oe(ct);ct.lookahead>=K;){zt=ct.strstart,sr=ct.lookahead-(K-1);do ct.ins_h=(ct.ins_h<<ct.hash_shift^ct.window[zt+K-1])&ct.hash_mask,ct.prev[zt&ct.w_mask]=ct.head[ct.ins_h],ct.head[ct.ins_h]=zt,zt++;while(--sr);ct.strstart=zt,ct.lookahead=K-1,oe(ct)}return ct.strstart+=ct.lookahead,ct.block_start=ct.strstart,ct.insert=ct.lookahead,ct.lookahead=0,ct.match_length=ct.prev_length=K-1,ct.match_available=0,me.next_in=nr,me.input=Lt,me.avail_in=ar,ct.wrap=Kr,e}var qe="pako deflate (from Nodeca project)";k.deflateInfo=qe},lOQZ:function(H,k,d){var I=d("QBsz"),E=d("U/Mo"),T=E.getSymbolSize,g=E.getNodeGlobalScale,S=Math.PI,m=[];function h(a,r){var i=a.coordinateSystem;if(i&&i.type!=="view")return;var n=i.getBoundingRect(),t=a.getData(),s=t.graph,e=n.width/2+n.x,o=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=t.count();if(t.setLayout({cx:e,cy:o}),!u)return;c[r](a,i,s,t,l,e,o,u),s.eachEdge(function(f){var p=f.getModel().get("lineStyle.curveness")||0,v=I.clone(f.node1.getLayout()),A=I.clone(f.node2.getLayout()),y,x=(v[0]+A[0])/2,C=(v[1]+A[1])/2;+p&&(p*=3,y=[e*p+x*(1-p),o*p+C*(1-p)]),f.setLayout([v,A,y])})}var c={value:function(a,r,i,n,t,s,e,o){var l=0,u=n.getSum("value"),f=Math.PI*2/(u||o);i.eachNode(function(p){var v=p.getValue("value"),A=f*(u?v:1)/2;l+=A,p.setLayout([t*Math.cos(l)+s,t*Math.sin(l)+e]),l+=A})},symbolSize:function(a,r,i,n,t,s,e,o){var l=0;m.length=o;var u=g(a);i.eachNode(function(v){var A=T(v);isNaN(A)&&(A=2),A<0&&(A=0),A*=u;var y=Math.asin(A/2/t);isNaN(y)&&(y=S/2),m[v.dataIndex]=y,l+=y*2});var f=(2*S-l)/o/2,p=0;i.eachNode(function(v){var A=f+m[v.dataIndex];p+=A,v.setLayout([t*Math.cos(p)+s,t*Math.sin(p)+e]),p+=A})}};k.circularLayout=h},lPiR:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(E){var T=I,g=T.lib,S=g.WordArray,m=g.Hasher,h=T.algo,c=[],a=[];(function(){function n(o){for(var l=E.sqrt(o),u=2;u<=l;u++)if(!(o%u))return!1;return!0}function t(o){return(o-(o|0))*4294967296|0}for(var s=2,e=0;e<64;)n(s)&&(e<8&&(c[e]=t(E.pow(s,1/2))),a[e]=t(E.pow(s,1/3)),e++),s++})();var r=[],i=h.SHA256=m.extend({_doReset:function(){this._hash=new S.init(c.slice(0))},_doProcessBlock:function(t,s){for(var e=this._hash.words,o=e[0],l=e[1],u=e[2],f=e[3],p=e[4],v=e[5],A=e[6],y=e[7],x=0;x<64;x++){if(x<16)r[x]=t[s+x]|0;else{var C=r[x-15],w=(C<<25|C>>>7)^(C<<14|C>>>18)^C>>>3,b=r[x-2],_=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;r[x]=w+r[x-7]+_+r[x-16]}var O=p&v^~p&A,L=o&l^o&u^l&u,D=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),N=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),M=y+N+O+a[x]+r[x],F=D+L;y=A,A=v,v=p,p=f+M|0,f=u,u=l,l=o,o=M+F|0}e[0]=e[0]+o|0,e[1]=e[1]+l|0,e[2]=e[2]+u|0,e[3]=e[3]+f|0,e[4]=e[4]+p|0,e[5]=e[5]+v|0,e[6]=e[6]+A|0,e[7]=e[7]+y|0},_doFinalize:function(){var t=this._data,s=t.words,e=this._nDataBytes*8,o=t.sigBytes*8;return s[o>>>5]|=128<<24-o%32,s[(o+64>>>9<<4)+14]=E.floor(e/4294967296),s[(o+64>>>9<<4)+15]=e,t.sigBytes=s.length*4,this._process(),this._hash},clone:function(){var t=m.clone.call(this);return t._hash=this._hash.clone(),t}});T.SHA256=m._createHelper(i),T.HmacSHA256=m._createHmacHelper(i)}(Math),I.SHA256})},lUTK:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("x54q"),g=d.n(T),S=d("5Dmo")},lZu9:function(H,k,d){(function(I){I(d("VrN/"),d("1eCo"),d("8EBN"))})(function(I){"use strict";I.defineMode("markdown",function(E,T){var g=I.getMode(E,"text/html"),S=g.name=="null";function m(B){if(I.findModeByName){var K=I.findModeByName(B);K&&(B=K.mime||K.mimes[0])}var U=I.getMode(E,B);return U.name=="null"?null:U}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.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 c in h)h.hasOwnProperty(c)&&T.tokenTypeOverrides[c]&&(h[c]=T.tokenTypeOverrides[c]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,i=/^\[(x| )\](?=\s)/i,n=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,t=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,o=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,u=" ";function f(B,K,U){return K.f=K.inline=U,U(B,K)}function p(B,K,U){return K.f=K.block=U,U(B,K)}function v(B){return!B||!/\S/.test(B.string)}function A(B){if(B.linkTitle=!1,B.linkHref=!1,B.linkText=!1,B.em=!1,B.strong=!1,B.strikethrough=!1,B.quote=0,B.indentedCode=!1,B.f==x){var K=S;if(!K){var U=I.innerMode(g,B.htmlState);K=U.mode.name=="xml"&&U.state.tagStart===null&&!U.state.context&&U.state.tokenize.isInText}K&&(B.f=_,B.block=y,B.htmlState=null)}return B.trailingSpace=0,B.trailingSpaceNewLine=!1,B.prevLine=B.thisLine,B.thisLine={stream:null},null}function y(B,K){var U=B.column()===K.indentation,z=v(K.prevLine.stream),V=K.indentedCode,Y=K.prevLine.hr,J=K.list!==!1,se=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var $=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,J)){for(K.list=null;$<K.listStack[K.listStack.length-1];)K.listStack.pop(),K.listStack.length?K.indentation=K.listStack[K.listStack.length-1]:K.list=!1;K.list!==!1&&(K.indentationDiff=$-K.listStack[K.listStack.length-1])}var ae=!z&&!Y&&!K.prevLine.header&&(!J||!V)&&!K.prevLine.fencedCodeEnd,ge=(K.list===!1||Y||z)&&K.indentation<=se&&B.match(a),pe=null;if(K.indentationDiff>=4&&(V||K.prevLine.fencedCodeEnd||K.prevLine.header||z))return B.skipToEnd(),K.indentedCode=!0,h.code;if(B.eatSpace())return null;if(U&&K.indentation<=se&&(pe=B.match(n))&&pe[1].length<=6)return K.quote=0,K.header=pe[1].length,K.thisLine.header=!0,T.highlightFormatting&&(K.formatting="header"),K.f=K.inline,w(K);if(K.indentation<=se&&B.eat(">"))return K.quote=U?1:K.quote+1,T.highlightFormatting&&(K.formatting="quote"),B.eatSpace(),w(K);if(!ge&&!K.setext&&U&&K.indentation<=se&&(pe=B.match(r))){var Ne=pe[1]?"ol":"ul";return K.indentation=$+B.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,T.taskLists&&B.match(i,!1)&&(K.taskList=!0),K.f=K.inline,T.highlightFormatting&&(K.formatting=["list","list-"+Ne]),w(K)}else{if(U&&K.indentation<=se&&(pe=B.match(e,!0)))return K.quote=0,K.fencedEndRE=new RegExp(pe[1]+"+ *$"),K.localMode=T.fencedCodeBlockHighlighting&&m(pe[2]||T.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=I.startState(K.localMode)),K.f=K.block=C,T.highlightFormatting&&(K.formatting="code-block"),K.code=-1,w(K);if(K.setext||(!ae||!J)&&!K.quote&&K.list===!1&&!K.code&&!ge&&!o.test(B.string)&&(pe=B.lookAhead(1))&&(pe=pe.match(t)))return K.setext?(K.header=K.setext,K.setext=0,B.skipToEnd(),T.highlightFormatting&&(K.formatting="header")):(K.header=pe[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,w(K);if(ge)return B.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,h.hr;if(B.peek()==="[")return f(B,K,M)}return f(B,K,K.inline)}function x(B,K){var U=g.token(B,K.htmlState);if(!S){var z=I.innerMode(g,K.htmlState);(z.mode.name=="xml"&&z.state.tagStart===null&&!z.state.context&&z.state.tokenize.isInText||K.md_inside&&B.current().indexOf(">")>-1)&&(K.f=_,K.block=y,K.htmlState=null)}return U}function C(B,K){var U=K.listStack[K.listStack.length-1]||0,z=K.indentation<U,V=U+3;if(K.fencedEndRE&&K.indentation<=V&&(z||B.match(K.fencedEndRE))){T.highlightFormatting&&(K.formatting="code-block");var Y;return z||(Y=w(K)),K.localMode=K.localState=null,K.block=y,K.f=_,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,z?p(B,K,K.block):Y}else return K.localMode?K.localMode.token(B,K.localState):(B.skipToEnd(),h.code)}function w(B){var K=[];if(B.formatting){K.push(h.formatting),typeof B.formatting=="string"&&(B.formatting=[B.formatting]);for(var U=0;U<B.formatting.length;U++)K.push(h.formatting+"-"+B.formatting[U]),B.formatting[U]==="header"&&K.push(h.formatting+"-"+B.formatting[U]+"-"+B.header),B.formatting[U]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=B.quote?K.push(h.formatting+"-"+B.formatting[U]+"-"+B.quote):K.push("error"))}if(B.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(B.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(B.linkHref?K.push(h.linkHref,"url"):(B.strong&&K.push(h.strong),B.em&&K.push(h.em),B.strikethrough&&K.push(h.strikethrough),B.emoji&&K.push(h.emoji),B.linkText&&K.push(h.linkText),B.code&&K.push(h.code),B.image&&K.push(h.image),B.imageAltText&&K.push(h.imageAltText,"link"),B.imageMarker&&K.push(h.imageMarker)),B.header&&K.push(h.header,h.header+"-"+B.header),B.quote&&(K.push(h.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=B.quote?K.push(h.quote+"-"+B.quote):K.push(h.quote+"-"+T.maxBlockquoteDepth)),B.list!==!1){var z=(B.listStack.length-1)%3;z?z===1?K.push(h.list2):K.push(h.list3):K.push(h.list1)}return B.trailingSpaceNewLine?K.push("trailing-space-new-line"):B.trailingSpace&&K.push("trailing-space-"+(B.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function b(B,K){return B.match(s,!0)?w(K):void 0}function _(B,K){var U=K.text(B,K);if(typeof U!="undefined")return U;if(K.list)return K.list=null,w(K);if(K.taskList){var z=B.match(i,!0)[1]===" ";return z?K.taskOpen=!0:K.taskClosed=!0,T.highlightFormatting&&(K.formatting="task"),K.taskList=!1,w(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&B.match(/^#+$/,!0))return T.highlightFormatting&&(K.formatting="header"),w(K);var V=B.next();if(K.linkTitle){K.linkTitle=!1;var Y=V;V==="("&&(Y=")"),Y=(Y+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var J="^\\s*(?:[^"+Y+"\\\\]+|\\\\\\\\|\\\\.)"+Y;if(B.match(new RegExp(J),!0))return h.linkHref}if(V==="`"){var se=K.formatting;T.highlightFormatting&&(K.formatting="code"),B.eatWhile("`");var $=B.current().length;if(K.code==0&&(!K.quote||$==1))return K.code=$,w(K);if($==K.code){var ae=w(K);return K.code=0,ae}else return K.formatting=se,w(K)}else if(K.code)return w(K);if(V==="\\"&&(B.next(),T.highlightFormatting)){var ge=w(K),pe=h.formatting+"-escape";return ge?ge+" "+pe:pe}if(V==="!"&&B.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,T.highlightFormatting&&(K.formatting="image"),w(K);if(V==="["&&K.imageMarker&&B.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,T.highlightFormatting&&(K.formatting="image"),w(K);if(V==="]"&&K.imageAltText){T.highlightFormatting&&(K.formatting="image");var ge=w(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=L,ge}if(V==="["&&!K.image)return K.linkText&&B.match(/^.*?\]/)||(K.linkText=!0,T.highlightFormatting&&(K.formatting="link")),w(K);if(V==="]"&&K.linkText){T.highlightFormatting&&(K.formatting="link");var ge=w(K);return K.linkText=!1,K.inline=K.f=B.match(/\(.*?\)| ?\[.*?\]/,!1)?L:_,ge}if(V==="<"&&B.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=O,T.highlightFormatting&&(K.formatting="link");var ge=w(K);return ge?ge+=" ":ge="",ge+h.linkInline}if(V==="<"&&B.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=O,T.highlightFormatting&&(K.formatting="link");var ge=w(K);return ge?ge+=" ":ge="",ge+h.linkEmail}if(T.xml&&V==="<"&&B.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ne=B.string.indexOf(">",B.pos);if(Ne!=-1){var de=B.string.substring(B.start,Ne);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(de)&&(K.md_inside=!0)}return B.backUp(1),K.htmlState=I.startState(g),p(B,K,x)}if(T.xml&&V==="<"&&B.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(V==="*"||V==="_"){for(var Le=1,Q=B.pos==1?" ":B.string.charAt(B.pos-2);Le<3&&B.eat(V);)Le++;var ce=B.peek()||" ",Ke=!/\s/.test(ce)&&(!l.test(ce)||/\s/.test(Q)||l.test(Q)),ee=!/\s/.test(Q)&&(!l.test(Q)||/\s/.test(ce)||l.test(ce)),X=null,G=null;if(Le%2&&(!K.em&&Ke&&(V==="*"||!ee||l.test(Q))?X=!0:K.em==V&&ee&&(V==="*"||!Ke||l.test(ce))&&(X=!1)),Le>1&&(!K.strong&&Ke&&(V==="*"||!ee||l.test(Q))?G=!0:K.strong==V&&ee&&(V==="*"||!Ke||l.test(ce))&&(G=!1)),G!=null||X!=null){T.highlightFormatting&&(K.formatting=X==null?"strong":G==null?"em":"strong em"),X===!0&&(K.em=V),G===!0&&(K.strong=V);var ae=w(K);return X===!1&&(K.em=!1),G===!1&&(K.strong=!1),ae}}else if(V===" "&&(B.eat("*")||B.eat("_"))){if(B.peek()===" ")return w(K);B.backUp(1)}if(T.strikethrough){if(V==="~"&&B.eatWhile(V)){if(K.strikethrough){T.highlightFormatting&&(K.formatting="strikethrough");var ae=w(K);return K.strikethrough=!1,ae}else if(B.match(/^[^\s]/,!1))return K.strikethrough=!0,T.highlightFormatting&&(K.formatting="strikethrough"),w(K)}else if(V===" "&&B.match(/^~~/,!0)){if(B.peek()===" ")return w(K);B.backUp(2)}}if(T.emoji&&V===":"&&B.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,T.highlightFormatting&&(K.formatting="emoji");var Z=w(K);return K.emoji=!1,Z}return V===" "&&(B.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),w(K)}function O(B,K){var U=B.next();if(U===">"){K.f=K.inline=_,T.highlightFormatting&&(K.formatting="link");var z=w(K);return z?z+=" ":z="",z+h.linkInline}return B.match(/^[^>]+/,!0),h.linkInline}function L(B,K){if(B.eatSpace())return null;var U=B.next();return U==="("||U==="["?(K.f=K.inline=N(U==="("?")":"]"),T.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,w(K)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(B){return function(K,U){var z=K.next();if(z===B){U.f=U.inline=_,T.highlightFormatting&&(U.formatting="link-string");var V=w(U);return U.linkHref=!1,V}return K.match(D[B]),U.linkHref=!0,w(U)}}function M(B,K){return B.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=F,B.next(),T.highlightFormatting&&(K.formatting="link"),K.linkText=!0,w(K)):f(B,K,_)}function F(B,K){if(B.match(/^\]:/,!0)){K.f=K.inline=R,T.highlightFormatting&&(K.formatting="link");var U=w(K);return K.linkText=!1,U}return B.match(/^([^\]\\]|\\.)+/,!0),h.linkText}function R(B,K){return B.eatSpace()?null:(B.match(/^[^\s]+/,!0),B.peek()===void 0?K.linkTitle=!0:B.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=_,h.linkHref+" url")}var j={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:_,text:b,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(K){return{f:K.f,prevLine:K.prevLine,thisLine:K.thisLine,block:K.block,htmlState:K.htmlState&&I.copyState(g,K.htmlState),indentation:K.indentation,localMode:K.localMode,localState:K.localMode?I.copyState(K.localMode,K.localState):null,inline:K.inline,text:K.text,formatting:!1,linkText:K.linkText,linkTitle:K.linkTitle,linkHref:K.linkHref,code:K.code,em:K.em,strong:K.strong,strikethrough:K.strikethrough,emoji:K.emoji,header:K.header,setext:K.setext,hr:K.hr,taskList:K.taskList,list:K.list,listStack:K.listStack.slice(0),quote:K.quote,indentedCode:K.indentedCode,trailingSpace:K.trailingSpace,trailingSpaceNewLine:K.trailingSpaceNewLine,md_inside:K.md_inside,fencedEndRE:K.fencedEndRE}},token:function(K,U){if(U.formatting=!1,K!=U.thisLine.stream){if(U.header=0,U.hr=!1,K.match(/^\s*$/,!0))return A(U),null;if(U.prevLine=U.thisLine,U.thisLine={stream:K},U.taskList=!1,U.trailingSpace=0,U.trailingSpaceNewLine=!1,!U.localState&&(U.f=U.block,U.f!=x)){var z=K.match(/^\s*/,!0)[0].replace(/\t/g,u).length;if(U.indentation=z,U.indentationDiff=null,z>0)return null}}return U.f(K,U)},innerMode:function(K){return K.block==x?{state:K.htmlState,mode:g}:K.localState?{state:K.localState,mode:K.localMode}:{state:K,mode:j}},indent:function(K,U,z){return K.block==x&&g.indent?g.indent(K.htmlState,U,z):K.localState&&K.localMode.indent?K.localMode.indent(K.localState,U,z):I.Pass},blankLine:A,getType:w,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),I.defineMIME("text/markdown","markdown"),I.defineMIME("text/x-markdown","markdown")})},laiN:function(H,k,d){var I=d("ProS");d("GVMX"),d("MH26"),I.registerPreprocessor(function(E){E.markLine=E.markLine||{}})},lnY3:function(H,k,d){},loD1:function(H,k){function d(I,E,T,g,S,m,h){if(S===0)return!1;var c=S,a=0,r=I;if(h>E+c&&h>g+c||h<E-c&&h<g-c||m>I+c&&m>T+c||m<I-c&&m<T-c)return!1;if(I!==T)a=(E-g)/(I-T),r=(I*g-T*E)/(I-T);else return Math.abs(m-I)<=c/2;var i=a*m-h+r,n=i*i/(a*a+1);return n<=c/2*c/2}k.containStroke=d},lrIw:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("cDf5"),g=d.n(T),S=d("J4zp"),m=d.n(S),h=d("q1tI"),c=d.n(h),a=d("Zm9Q"),r=d("TSYQ"),i=d.n(r),n=d("BGR+"),t=d("2fM7"),s=d("H84U"),e=d("uaoM"),o=d("0n0R"),l=t.a.Option,u=t.a;function f(A){return A&&A.type&&(A.type.isSelectOption||A.type.isSelectOptGroup)}var p=function(y,x){var C=y.prefixCls,w=y.className,b=y.children,_=y.dataSource,O=Object(a.a)(b),L=h.useRef();h.useImperativeHandle(x,function(){return L.current});var D;if(O.length===1&&Object(o.b)(O[0])&&!f(O[0])){var N=m()(O,1);D=N[0]}var M=function(){return D},F;return O.length&&f(O[0])?F=b:F=_?_.map(function(R){if(Object(o.b)(R))return R;switch(g()(R)){case"string":return h.createElement(l,{key:R,value:R},R);case"object":{var j=R.value;return h.createElement(l,{key:j,value:j},R.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],h.useEffect(function(){Object(e.a)(!("dataSource"in y),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(e.a)(!D||!("size"in y),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),h.createElement(s.a,null,function(R){var j=R.getPrefixCls,B=j("select",C);return h.createElement(u,E()({ref:L},Object(n.default)(y,["dataSource"]),{prefixCls:B,className:i()(w,"".concat(B,"-auto-complete")),mode:t.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:M}),F)})},v=h.forwardRef(p);v.Option=l,k.a=v},lwQL:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("9wZj"),g=d("c8qY"),S=d("SgGq"),m=d("Ae+d"),h=d("xSat"),c=h.onIrrelevantElement,a=d("IwbS"),r=d("SA8n"),i=d("U/Mo"),n=i.getNodeGlobalScale,t="__focusNodeAdjacency",s="__unfocusNodeAdjacency",e=["itemStyle","opacity"],o=["lineStyle","opacity"];function l(v,A){var y=v.getVisual("opacity");return y!=null?y:v.getModel().get(A)}function u(v,A,y){var x=v.getGraphicEl(),C=l(v,A);y!=null&&(C==null&&(C=1),C*=y),x.downplay&&x.downplay(),x.traverse(function(w){if(!w.isGroup){var b=w.lineLabelOriginalOpacity;(b==null||y!=null)&&(b=C),w.setStyle("opacity",b)}})}function f(v,A){var y=l(v,A),x=v.getGraphicEl();x.traverse(function(C){!C.isGroup&&C.setStyle("opacity",y)}),x.highlight&&x.highlight()}var p=I.extendChartView({type:"graph",init:function(v,A){var y=new T,x=new g,C=this.group;this._controller=new S(A.getZr()),this._controllerHost={target:C},C.add(y.group),C.add(x.group),this._symbolDraw=y,this._lineDraw=x,this._firstRender=!0},render:function(v,A,y){var x=this,C=v.coordinateSystem;this._model=v;var w=this._symbolDraw,b=this._lineDraw,_=this.group;if(C.type==="view"){var O={position:C.position,scale:C.scale};this._firstRender?_.attr(O):a.updateProps(_,O,v)}r(v.getGraph(),n(v));var L=v.getData();w.updateData(L);var D=v.getEdgeData();b.updateData(D),this._updateNodeAndLinkScale(),this._updateController(v,A,y),clearTimeout(this._layoutTimeout);var N=v.forceLayout,M=v.get("force.layoutAnimation");N&&this._startForceLayoutIteration(N,M),L.eachItemGraphicEl(function(B,K){var U=L.getItemModel(K);B.off("drag").off("dragend");var z=U.get("draggable");z&&B.on("drag",function(){N&&(N.warmUp(),!this._layouting&&this._startForceLayoutIteration(N,M),N.setFixed(K),L.setItemLayout(K,B.position))},this).on("dragend",function(){N&&N.setUnfixed(K)},this),B.setDraggable(z&&N),B[t]&&B.off("mouseover",B[t]),B[s]&&B.off("mouseout",B[s]),U.get("focusNodeAdjacency")&&(B.on("mouseover",B[t]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:v.id,dataIndex:B.dataIndex})}),B.on("mouseout",B[s]=function(){x._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(B){var K=B.getGraphicEl();K[t]&&K.off("mouseover",K[t]),K[s]&&K.off("mouseout",K[s]),B.getModel().get("focusNodeAdjacency")&&(K.on("mouseover",K[t]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:v.id,edgeDataIndex:B.dataIndex})}),K.on("mouseout",K[s]=function(){x._dispatchUnfocus(y)}))});var F=v.get("layout")==="circular"&&v.get("circular.rotateLabel"),R=L.getLayout("cx"),j=L.getLayout("cy");L.eachItemGraphicEl(function(B,K){var U=L.getItemModel(K),z=U.get("label.rotate")||0,V=B.getSymbolPath();if(F){var Y=L.getItemLayout(K),J=Math.atan2(Y[1]-j,Y[0]-R);J<0&&(J=Math.PI*2+J);var se=Y[0]<R;se&&(J=J-Math.PI);var $=se?"left":"right";a.modifyLabelStyle(V,{textRotation:-J,textPosition:$,textOrigin:"center"},{textPosition:$})}else a.modifyLabelStyle(V,{textRotation:z*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(v,A){var y=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){y._unfocusDelayTimer=null,v.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(v,A,y,x){var C=v.getData(),w=C.graph,b=x.dataIndex,_=x.edgeDataIndex,O=w.getNodeByIndex(b),L=w.getEdgeByIndex(_);if(!O&&!L)return;w.eachNode(function(D){u(D,e,.1)}),w.eachEdge(function(D){u(D,o,.1)}),O&&(f(O,e),E.each(O.edges,function(D){if(D.dataIndex<0)return;f(D,o),f(D.node1,e),f(D.node2,e)})),L&&(f(L,o),f(L.node1,e),f(L.node2,e))},unfocusNodeAdjacency:function(v,A,y,x){var C=v.getData().graph;C.eachNode(function(w){u(w,e)}),C.eachEdge(function(w){u(w,o)})},_startForceLayoutIteration:function(v,A){var y=this;(function x(){v.step(function(C){y.updateLayout(y._model),(y._layouting=!C)&&(A?y._layoutTimeout=setTimeout(x,16):x())})})()},_updateController:function(v,A,y){var x=this._controller,C=this._controllerHost,w=this.group;if(x.setPointerChecker(function(b,_,O){var L=w.getBoundingRect();return L.applyTransform(w.transform),L.contain(_,O)&&!c(b,y,v)}),v.coordinateSystem.type!=="view"){x.disable();return}x.enable(v.get("roam")),C.zoomLimit=v.get("scaleLimit"),C.zoom=v.coordinateSystem.getZoom(),x.off("pan").off("zoom").on("pan",function(b){m.updateViewOnPan(C,b.dx,b.dy),y.dispatchAction({seriesId:v.id,type:"graphRoam",dx:b.dx,dy:b.dy})}).on("zoom",function(b){m.updateViewOnZoom(C,b.scale,b.originX,b.originY),y.dispatchAction({seriesId:v.id,type:"graphRoam",zoom:b.scale,originX:b.originX,originY:b.originY}),this._updateNodeAndLinkScale(),r(v.getGraph(),n(v)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var v=this._model,A=v.getData(),y=n(v),x=[y,y];A.eachItemGraphicEl(function(C,w){C.attr("scale",x)})},updateLayout:function(v){r(v.getGraph(),n(v)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(v,A){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});H.exports=p},m9t5:function(H,k,d){var I=d("KCsZ"),E=I([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),T={getAreaStyle:function(g,S){return E(this,g,S)}};H.exports=T},mFDi:function(H,k,d){var I=d("QBsz"),E=d("Fofx"),T=I.applyTransform,g=Math.min,S=Math.max;function m(c,a,r,i){r<0&&(c=c+r,r=-r),i<0&&(a=a+i,i=-i),this.x=c,this.y=a,this.width=r,this.height=i}m.prototype={constructor:m,union:function(a){var r=g(a.x,this.x),i=g(a.y,this.y);this.width=S(a.x+a.width,this.x+this.width)-r,this.height=S(a.y+a.height,this.y+this.height)-i,this.x=r,this.y=i},applyTransform:function(){var c=[],a=[],r=[],i=[];return function(n){if(!n)return;c[0]=r[0]=this.x,c[1]=i[1]=this.y,a[0]=i[0]=this.x+this.width,a[1]=r[1]=this.y+this.height,T(c,c,n),T(a,a,n),T(r,r,n),T(i,i,n),this.x=g(c[0],a[0],r[0],i[0]),this.y=g(c[1],a[1],r[1],i[1]);var t=S(c[0],a[0],r[0],i[0]),s=S(c[1],a[1],r[1],i[1]);this.width=t-this.x,this.height=s-this.y}}(),calculateTransform:function(a){var r=this,i=a.width/r.width,n=a.height/r.height,t=E.create();return E.translate(t,t,[-r.x,-r.y]),E.scale(t,t,[i,n]),E.translate(t,t,[a.x,a.y]),t},intersect:function(a){if(!a)return!1;a instanceof m||(a=m.create(a));var r=this,i=r.x,n=r.x+r.width,t=r.y,s=r.y+r.height,e=a.x,o=a.x+a.width,l=a.y,u=a.y+a.height;return!(n<e||o<i||s<l||u<t)},contain:function(a,r){var i=this;return a>=i.x&&a<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},clone:function(){return new m(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}}},m.create=function(c){return new m(c.x,c.y,c.width,c.height)};var h=m;H.exports=h},mHUz:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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};k.default=I},mLcG:function(H,k){var d=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(I){setTimeout(I,16)};H.exports=d},"mO/d":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("I9Y+"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},mOdp:function(H,k,d){var I=d("bYtY"),E=I.createHashMap;function T(g){return{getTargetSeries:function(S){var m={},h=E();return S.eachSeriesByType(g,function(c){c.__paletteScope=m,h.set(c.uid,c)}),h},reset:function(S,m){var h=S.getRawData(),c={},a=S.getData();a.each(function(r){var i=a.getRawIndex(r);c[i]=r}),h.each(function(r){var i=c[r],n=i!=null&&a.getItemVisual(i,"color",!0),t=i!=null&&a.getItemVisual(i,"borderColor",!0),s;if((!n||!t)&&(s=h.getItemModel(r)),!n){var e=s.get("itemStyle.color")||S.getColorFromPalette(h.getName(r)||r+"",S.__paletteScope,h.count());i!=null&&a.setItemVisual(i,"color",e)}if(!t){var o=s.get("itemStyle.borderColor");i!=null&&a.setItemVisual(i,"borderColor",o)}})}}}H.exports=T},mTgk:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("mHUz"));function E(c){return c&&c.__esModule?c:{default:c}}var T={};function g(c,a){if(a===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in T)throw new Error('Duplicate entry for key "'+c+'"');T[c]=[a,a,a,a]}function S(c,a,r){if(a===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(r===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in T)throw new Error('Duplicate entry for key "'+c+'"');T[c]=[a,a,r,a]}function m(c,a,r){if(a===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(r===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in T)throw new Error('Duplicate entry for key "'+c+'"');T[c]=[a,a,a,r]}S("Alt",I.default.XK_Alt_L,I.default.XK_Alt_R),g("AltGraph",I.default.XK_ISO_Level3_Shift),g("CapsLock",I.default.XK_Caps_Lock),S("Control",I.default.XK_Control_L,I.default.XK_Control_R),S("Meta",I.default.XK_Super_L,I.default.XK_Super_R),g("NumLock",I.default.XK_Num_Lock),g("ScrollLock",I.default.XK_Scroll_Lock),S("Shift",I.default.XK_Shift_L,I.default.XK_Shift_R),m("Enter",I.default.XK_Return,I.default.XK_KP_Enter),g("Tab",I.default.XK_Tab),m(" ",I.default.XK_space,I.default.XK_KP_Space),m("ArrowDown",I.default.XK_Down,I.default.XK_KP_Down),m("ArrowUp",I.default.XK_Up,I.default.XK_KP_Up),m("ArrowLeft",I.default.XK_Left,I.default.XK_KP_Left),m("ArrowRight",I.default.XK_Right,I.default.XK_KP_Right),m("End",I.default.XK_End,I.default.XK_KP_End),m("Home",I.default.XK_Home,I.default.XK_KP_Home),m("PageDown",I.default.XK_Next,I.default.XK_KP_Next),m("PageUp",I.default.XK_Prior,I.default.XK_KP_Prior),g("Backspace",I.default.XK_BackSpace),m("Clear",I.default.XK_Clear,I.default.XK_KP_Begin),g("Copy",I.default.XF86XK_Copy),g("Cut",I.default.XF86XK_Cut),m("Delete",I.default.XK_Delete,I.default.XK_KP_Delete),m("Insert",I.default.XK_Insert,I.default.XK_KP_Insert),g("Paste",I.default.XF86XK_Paste),g("Redo",I.default.XK_Redo),g("Undo",I.default.XK_Undo),g("Cancel",I.default.XK_Cancel),g("ContextMenu",I.default.XK_Menu),g("Escape",I.default.XK_Escape),g("Execute",I.default.XK_Execute),g("Find",I.default.XK_Find),g("Help",I.default.XK_Help),g("Pause",I.default.XK_Pause),g("Select",I.default.XK_Select),g("ZoomIn",I.default.XF86XK_ZoomIn),g("ZoomOut",I.default.XF86XK_ZoomOut),g("BrightnessDown",I.default.XF86XK_MonBrightnessDown),g("BrightnessUp",I.default.XF86XK_MonBrightnessUp),g("Eject",I.default.XF86XK_Eject),g("LogOff",I.default.XF86XK_LogOff),g("Power",I.default.XF86XK_PowerOff),g("PowerOff",I.default.XF86XK_PowerDown),g("PrintScreen",I.default.XK_Print),g("Hibernate",I.default.XF86XK_Hibernate),g("Standby",I.default.XF86XK_Standby),g("WakeUp",I.default.XF86XK_WakeUp),g("AllCandidates",I.default.XK_MultipleCandidate),g("Alphanumeric",I.default.XK_Eisu_Shift),g("CodeInput",I.default.XK_Codeinput),g("Compose",I.default.XK_Multi_key),g("Convert",I.default.XK_Henkan),g("GroupFirst",I.default.XK_ISO_First_Group),g("GroupLast",I.default.XK_ISO_Last_Group),g("GroupNext",I.default.XK_ISO_Next_Group),g("GroupPrevious",I.default.XK_ISO_Prev_Group),g("NonConvert",I.default.XK_Muhenkan),g("PreviousCandidate",I.default.XK_PreviousCandidate),g("SingleCandidate",I.default.XK_SingleCandidate),g("HangulMode",I.default.XK_Hangul),g("HanjaMode",I.default.XK_Hangul_Hanja),g("JunjuaMode",I.default.XK_Hangul_Jeonja),g("Eisu",I.default.XK_Eisu_toggle),g("Hankaku",I.default.XK_Hankaku),g("Hiragana",I.default.XK_Hiragana),g("HiraganaKatakana",I.default.XK_Hiragana_Katakana),g("KanaMode",I.default.XK_Kana_Shift),g("KanjiMode",I.default.XK_Kanji),g("Katakana",I.default.XK_Katakana),g("Romaji",I.default.XK_Romaji),g("Zenkaku",I.default.XK_Zenkaku),g("ZenkakuHanaku",I.default.XK_Zenkaku_Hankaku),g("F1",I.default.XK_F1),g("F2",I.default.XK_F2),g("F3",I.default.XK_F3),g("F4",I.default.XK_F4),g("F5",I.default.XK_F5),g("F6",I.default.XK_F6),g("F7",I.default.XK_F7),g("F8",I.default.XK_F8),g("F9",I.default.XK_F9),g("F10",I.default.XK_F10),g("F11",I.default.XK_F11),g("F12",I.default.XK_F12),g("F13",I.default.XK_F13),g("F14",I.default.XK_F14),g("F15",I.default.XK_F15),g("F16",I.default.XK_F16),g("F17",I.default.XK_F17),g("F18",I.default.XK_F18),g("F19",I.default.XK_F19),g("F20",I.default.XK_F20),g("F21",I.default.XK_F21),g("F22",I.default.XK_F22),g("F23",I.default.XK_F23),g("F24",I.default.XK_F24),g("F25",I.default.XK_F25),g("F26",I.default.XK_F26),g("F27",I.default.XK_F27),g("F28",I.default.XK_F28),g("F29",I.default.XK_F29),g("F30",I.default.XK_F30),g("F31",I.default.XK_F31),g("F32",I.default.XK_F32),g("F33",I.default.XK_F33),g("F34",I.default.XK_F34),g("F35",I.default.XK_F35),g("Close",I.default.XF86XK_Close),g("MailForward",I.default.XF86XK_MailForward),g("MailReply",I.default.XF86XK_Reply),g("MailSend",I.default.XF86XK_Send),g("MediaFastForward",I.default.XF86XK_AudioForward),g("MediaPause",I.default.XF86XK_AudioPause),g("MediaPlay",I.default.XF86XK_AudioPlay),g("MediaRecord",I.default.XF86XK_AudioRecord),g("MediaRewind",I.default.XF86XK_AudioRewind),g("MediaStop",I.default.XF86XK_AudioStop),g("MediaTrackNext",I.default.XF86XK_AudioNext),g("MediaTrackPrevious",I.default.XF86XK_AudioPrev),g("New",I.default.XF86XK_New),g("Open",I.default.XF86XK_Open),g("Print",I.default.XK_Print),g("Save",I.default.XF86XK_Save),g("SpellCheck",I.default.XF86XK_Spell),g("AudioVolumeDown",I.default.XF86XK_AudioLowerVolume),g("AudioVolumeUp",I.default.XF86XK_AudioRaiseVolume),g("AudioVolumeMute",I.default.XF86XK_AudioMute),g("MicrophoneVolumeMute",I.default.XF86XK_AudioMicMute),g("LaunchApplication1",I.default.XF86XK_MyComputer),g("LaunchApplication2",I.default.XF86XK_Calculator),g("LaunchCalendar",I.default.XF86XK_Calendar),g("LaunchMail",I.default.XF86XK_Mail),g("LaunchMediaPlayer",I.default.XF86XK_AudioMedia),g("LaunchMusicPlayer",I.default.XF86XK_Music),g("LaunchPhone",I.default.XF86XK_Phone),g("LaunchScreenSaver",I.default.XF86XK_ScreenSaver),g("LaunchSpreadsheet",I.default.XF86XK_Excel),g("LaunchWebBrowser",I.default.XF86XK_WWW),g("LaunchWebCam",I.default.XF86XK_WebCam),g("LaunchWordProcessor",I.default.XF86XK_Word),g("BrowserBack",I.default.XF86XK_Back),g("BrowserFavorites",I.default.XF86XK_Favorites),g("BrowserForward",I.default.XF86XK_Forward),g("BrowserHome",I.default.XF86XK_HomePage),g("BrowserRefresh",I.default.XF86XK_Refresh),g("BrowserSearch",I.default.XF86XK_Search),g("BrowserStop",I.default.XF86XK_Stop),g("Dimmer",I.default.XF86XK_BrightnessAdjust),g("MediaAudioTrack",I.default.XF86XK_AudioCycleTrack),g("RandomToggle",I.default.XF86XK_AudioRandomPlay),g("SplitScreenToggle",I.default.XF86XK_SplitScreen),g("Subtitle",I.default.XF86XK_Subtitle),g("VideoModeNext",I.default.XF86XK_Next_VMode),m("=",I.default.XK_equal,I.default.XK_KP_Equal),m("+",I.default.XK_plus,I.default.XK_KP_Add),m("-",I.default.XK_minus,I.default.XK_KP_Subtract),m("*",I.default.XK_asterisk,I.default.XK_KP_Multiply),m("/",I.default.XK_slash,I.default.XK_KP_Divide),m(".",I.default.XK_period,I.default.XK_KP_Decimal),m(",",I.default.XK_comma,I.default.XK_KP_Separator),m("0",I.default.XK_0,I.default.XK_KP_0),m("1",I.default.XK_1,I.default.XK_KP_1),m("2",I.default.XK_2,I.default.XK_KP_2),m("3",I.default.XK_3,I.default.XK_KP_3),m("4",I.default.XK_4,I.default.XK_KP_4),m("5",I.default.XK_5,I.default.XK_KP_5),m("6",I.default.XK_6,I.default.XK_KP_6),m("7",I.default.XK_7,I.default.XK_KP_7),m("8",I.default.XK_8,I.default.XK_KP_8),m("9",I.default.XK_9,I.default.XK_KP_9);var h=T;k.default=h},mYwL:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("6GrX"),g=Math.PI;function S(m,h){h=h||{},I.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 c=new E.Group,a=new E.Rect({style:{fill:h.maskColor},zlevel:h.zlevel,z:1e4});c.add(a);var r=h.fontSize+" sans-serif",i=new E.Rect({style:{fill:"none",text:h.text,font:r,textPosition:"right",textDistance:10,textFill:h.textColor},zlevel:h.zlevel,z:10001});if(c.add(i),h.showSpinner){var n=new E.Arc({shape:{startAngle:-g/2,endAngle:-g/2+.1,r:h.spinnerRadius},style:{stroke:h.color,lineCap:"round",lineWidth:h.lineWidth},zlevel:h.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:g*3/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:g*3/2}).delay(300).start("circularInOut"),c.add(n)}return c.resize=function(){var t=T.getWidth(h.text,r),s=h.showSpinner?h.spinnerRadius:0,e=(m.getWidth()-s*2-(h.showSpinner&&t?10:0)-t)/2-(h.showSpinner?0:t/2),o=m.getHeight()/2;h.showSpinner&&n.setShape({cx:e,cy:o}),i.setShape({x:e-s,y:o-s,width:s*2,height:s*2}),a.setShape({x:0,y:0,width:m.getWidth(),height:m.getHeight()})},c.resize(),c}H.exports=S},mdZa:function(H,k,d){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(E,T){"use strict";if(E==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(E),S=1;S<arguments.length;S++){var m=arguments[S];if(m!=null)for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(g[h]=m[h])}return g},writable:!0,configurable:!0}),function(){function I(E,T){T=T||{bubbles:!1,cancelable:!1,detail:void 0};var g=document.createEvent("CustomEvent");return g.initCustomEvent(E,T.bubbles,T.cancelable,T.detail),g}I.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=I)}(),Number.isInteger=Number.isInteger||function(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}},mr32:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("J4zp"),m=d.n(S),h=d("q1tI"),c=d("TSYQ"),a=d.n(c),r=d("BGR+"),i=d("V/uB"),n=d.n(i),t=d("H84U"),s=function(C,w){var b={};for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&w.indexOf(_)<0&&(b[_]=C[_]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,_=Object.getOwnPropertySymbols(C);O<_.length;O++)w.indexOf(_[O])<0&&Object.prototype.propertyIsEnumerable.call(C,_[O])&&(b[_[O]]=C[_[O]]);return b},e=function(w){var b,_=h.useContext(t.b),O=_.getPrefixCls,L=function(K){var U=w.checked,z=w.onChange,V=w.onClick;z&&z(!U),V&&V(K)},D=w.prefixCls,N=w.className,M=w.checked,F=s(w,["prefixCls","className","checked"]),R=O("tag",D),j=a()(R,(b={},E()(b,"".concat(R,"-checkable"),!0),E()(b,"".concat(R,"-checkable-checked"),M),b),N);return delete F.onChange,h.createElement("span",g()({},F,{className:j,onClick:L}))},o=e,l=d("09Wf"),u=d("g0mS"),f=function(C,w){var b={};for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&w.indexOf(_)<0&&(b[_]=C[_]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,_=Object.getOwnPropertySymbols(C);O<_.length;O++)w.indexOf(_[O])<0&&Object.prototype.propertyIsEnumerable.call(C,_[O])&&(b[_[O]]=C[_[O]]);return b},p=new RegExp("^(".concat(l.a.join("|"),")(-inverse)?$")),v=new RegExp("^(".concat(l.b.join("|"),")$")),A=function(w,b){var _,O=w.prefixCls,L=w.className,D=w.style,N=w.children,M=w.icon,F=w.color,R=w.onClose,j=w.closeIcon,B=w.closable,K=B===void 0?!1:B,U=f(w,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),z=h.useContext(t.b),V=z.getPrefixCls,Y=z.direction,J=h.useState(!0),se=m()(J,2),$=se[0],ae=se[1];h.useEffect(function(){"visible"in U&&ae(U.visible)},[U.visible]);var ge=function(){return F?p.test(F)||v.test(F):!1},pe=g()({backgroundColor:F&&!ge()?F:void 0},D),Ne=ge(),de=V("tag",O),Le=a()(de,(_={},E()(_,"".concat(de,"-").concat(F),Ne),E()(_,"".concat(de,"-has-color"),F&&!Ne),E()(_,"".concat(de,"-hidden"),!$),E()(_,"".concat(de,"-rtl"),Y==="rtl"),_),L),Q=function(ue){if(ue.stopPropagation(),R&&R(ue),ue.defaultPrevented)return;"visible"in U||ae(!1)},ce=function(){return K?j?h.createElement("div",{className:"".concat(de,"-close-icon"),onClick:Q},j):h.createElement(n.a,{className:"".concat(de,"-close-icon"),onClick:Q}):null},Ke="onClick"in U||N&&N.type==="a",ee=Object(r.default)(U,["visible"]),X=M||null,G=X?h.createElement(h.Fragment,null,X,h.createElement("span",null,N)):N,Z=h.createElement("span",g()({},ee,{ref:b,className:Le,style:pe}),G,ce());return Ke?h.createElement(u.a,null,Z):Z},y=h.forwardRef(A);y.displayName="Tag",y.CheckableTag=o;var x=k.a=y},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(H){if(!0)module.exports=H();else var k})(function(){var define,module,exports;return function(){function H(k,d,I){function E(S,m){if(!d[S]){if(!k[S]){var h=typeof require=="function"&&require;if(!m&&h)return require(S,!0);if(T)return T(S,!0);var c=new Error("Cannot find module '"+S+"'");throw c.code="MODULE_NOT_FOUND",c}var a=d[S]={exports:{}};k[S][0].call(a.exports,function(r){var i=k[S][1][r];return E(i||r)},a,a.exports,H,k,d,I)}return d[S].exports}for(var T=typeof require=="function"&&require,g=0;g<I.length;g++)E(I[g]);return E}return H}()({1:[function(H,k,d){"use strict";var I=H("./browser/client");I.Buffer=H("buffer").Buffer,I.urllib=H("../shims/xhr"),I.version=H("./browser/version").version,k.exports=I},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(H,k,d){(function(I,E){"use strict";var T=H("babel-runtime/core-js/promise"),g=a(T),S=H("babel-runtime/regenerator"),m=a(S),h=H("babel-runtime/core-js/object/assign"),c=a(h);function a(M){return M&&M.__esModule?M:{default:M}}var r=H("debug")("ali-oss"),i=H("copy-to"),n=H("xml2js"),t=H("agentkeepalive"),s=H("merge-descriptors"),e=H("url"),o=H("is-type-of"),l=H("platform"),u=H("utility"),f=H("urllib"),p=H("./version"),v=H("bowser"),A=H("../common/signUtils"),y=H("../common/utils/isIP"),x=y.isIP,C=H("../common/client/initOptions"),w=H("../common/utils/createRequest"),b=w.createRequest,_=new t;function O(){var M=l.name,F=l.version;M&&M.toLowerCase&&M.toLowerCase()==="ie"&&F.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function D(M,F){if(O(),!(this instanceof D))return new D(M,F);M&&M.inited?this.options=M:this.options=D.initOptions(M),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=f,this.agent=this.options.agent||_),this.ctx=F,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}k.exports=D,D.initOptions=function(F){F.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var R=(0,c.default)({secure:L(),useFetch:!1},F);return C(R)};var N=D.prototype;N.debug=r,s(N,H("./object")),s(N,H("../common/bucket/getBucketWebsite")),s(N,H("../common/bucket/putBucketWebsite")),s(N,H("../common/bucket/deleteBucketWebsite")),s(N,H("../common/bucket/getBucketLifecycle")),s(N,H("../common/bucket/putBucketLifecycle")),s(N,H("../common/bucket/deleteBucketLifecycle")),s(N,H("../common/bucket/putBucketVersioning")),s(N,H("../common/bucket/getBucketVersioning")),s(N,H("./managed-upload")),s(N,H("../common/multipart")),s(N,H("../common/parallel")),N.signature=function(F){return this.debug("authorization stringToSign: %s",F,"info"),A.computeSignature(this.options.accessKeySecret,F)},N.authorization=function(F,R,j,B){var K=A.buildCanonicalString(F.toUpperCase(),R,{headers:B,parameters:j});return A.authorization(this.options.accessKeyId,this.options.accessKeySecret,K)},N.request=function(F){var R,j,B,K,U,z;return m.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return R=b.call(this,F),this.options.useFetch||(R.params.mode="disable-fetch"),j=void 0,B=void 0,K=!!F.stream,Y.prev=5,Y.next=8,m.default.awrap(this.urllib.request(R.url,R.params));case 8:j=Y.sent,this.debug("response %s %s, got %s, headers: %j",F.method,R.url,j.status,j.headers,"info"),Y.next=15;break;case 12:Y.prev=12,Y.t0=Y.catch(5),B=Y.t0;case 15:if(U=void 0,!(j&&F.successStatuses&&F.successStatuses.indexOf(j.status)===-1)){Y.next=28;break}return Y.next=19,m.default.awrap(this.requestError(j));case 19:if(U=Y.sent,!(U.code==="RequestTimeTooSkewed"&&!K)){Y.next=25;break}return this.options.amendTimeSkewed=+new Date(U.serverTime)-new Date,Y.next=24,m.default.awrap(this.request(F));case 24:return Y.abrupt("return",Y.sent);case 25:U.params=F,Y.next=32;break;case 28:if(!B){Y.next=32;break}return Y.next=31,m.default.awrap(this.requestError(B));case 31:U=Y.sent;case 32:if(!U){Y.next=34;break}throw U;case 34:if(!F.xmlResponse){Y.next=39;break}return Y.next=37,m.default.awrap(this.parseXML(j.data));case 37:z=Y.sent,j.data=z;case 39:return Y.abrupt("return",j);case 40:case"end":return Y.stop()}},null,this,[[5,12]])},N._getResource=function(F){var R="/";return F.bucket&&(R+=F.bucket+"/"),F.object&&(R+=F.object),R},N._isIP=x,N._escape=function(F){return u.encodeURIComponent(F).replace(/%2F/g,"/")},N._getReqUrl=function(F){var R={};i(this.options.endpoint).to(R);var j=this._isIP(R.hostname),B=this.options.cname;F.bucket&&!B&&!j&&(R.host=F.bucket+"."+R.host);var K="/";F.bucket&&j&&(K+=F.bucket+"/"),F.object&&(K+=this._escape(F.object).replace(/\+/g,"%2B")),R.pathname=K;var U={};if(F.query&&s(U,F.query),F.subres){var z={};o.string(F.subres)?z[F.subres]="":o.array(F.subres)?F.subres.forEach(function(V){z[V]=""}):z=F.subres,s(U,z)}return R.query=U,e.format(R)},N._getUserAgent=function(){var F=E&&E.browser?"js":"nodejs",R="aliyun-sdk-"+F+"/"+p.version,j=l.description;return!j&&E&&(j="Node.js "+E.version.slice(1)+" on "+E.platform+" "+E.arch),this._checkUserAgent(R+" "+j)},N._checkUserAgent=function(F){var R=F.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return R},N.checkBrowserAndVersion=function(F,R){return v.name===F&&v.version.split(".")[0]===R},N.parseXML=function(F){return new g.default(function(R,j){I.isBuffer(F)&&(F=F.toString()),n.parseString(F,{explicitRoot:!1,explicitArray:!1},function(B,K){B?j(B):R(K)})})},N.requestError=function(F){var R,j,B,K;return m.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(R=null,!(!F.data||!F.data.length)){z.next=5;break}F.status===-1||F.status===-2?(R=new Error(F.message),R.name=F.name,R.status=F.status,R.code=F.name):(F.status===404?(R=new Error("Object not exists"),R.name="NoSuchKeyError",R.status=404,R.code="NoSuchKey"):F.status===412?(R=new Error("Pre condition failed"),R.name="PreconditionFailedError",R.status=412,R.code="PreconditionFailed"):(R=new Error("Unknow error, status: "+F.status),R.name="UnknowError",R.status=F.status),R.requestId=F.headers["x-oss-request-id"],R.host=""),z.next=33;break;case 5:return j=String(F.data),this.debug("request response error data: %s",j,"error"),B=void 0,z.prev=8,z.next=11,m.default.awrap(this.parseXML(j));case 11:if(z.t0=z.sent,z.t0){z.next=14;break}z.t0={};case 14:B=z.t0,z.next=24;break;case 17:return z.prev=17,z.t1=z.catch(8),this.debug(j,"error"),z.t1.message+=`
|
|
|
raw xml: `+j,z.t1.status=F.status,z.t1.requestId=F.headers["x-oss-request-id"],z.abrupt("return",z.t1);case 24:K=B.Message||"unknow request error, status: "+F.status,B.Condition&&(K+=" (condition: "+B.Condition+")"),R=new Error(K),R.name=B.Code?B.Code+"Error":"UnknowError",R.status=F.status,R.code=B.Code,R.requestId=B.RequestId,R.hostId=B.HostId,R.serverTime=B.ServerTime;case 33:return this.debug("generate error %j",R,"error"),z.abrupt("return",R);case 35:case"end":return z.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:H("../../node_modules/is-buffer/index.js")},H("_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(H,k,d){(function(I){"use strict";var E=H("babel-runtime/core-js/array/from"),T=c(E),g=H("babel-runtime/core-js/promise"),S=c(g),m=H("babel-runtime/regenerator"),h=c(m);function c(A){return A&&A.__esModule?A:{default:A}}var a=H("is-type-of"),r=H("util"),i=H("path"),n=H("mime"),t=H("copy-to"),s=H("../common/utils/isBlob"),e=s.isBlob,o=H("../common/utils/isFile"),l=o.isFile,u=d;u.multipartUpload=function(y,x,C){var w,b,_,O,L,D,N,M,F;return h.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),C=C||{},!(C.checkpoint&&C.checkpoint.uploadId)){j.next=6;break}return j.next=5,h.default.awrap(this._resumeMultipart(C.checkpoint,C));case 5:return j.abrupt("return",j.sent);case 6:return w=100*1024,C.mime||(l(x)?C.mime=n.getType(i.extname(x.name)):e(x)?C.mime=x.type:C.mime=n.getType(i.extname(x))),C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),j.next=12,h.default.awrap(this._getFileSize(x));case 12:if(b=j.sent,!(b<w)){j.next=25;break}return _=this._createStream(x,0,b),C.contentLength=b,j.next=18,h.default.awrap(this.putStream(y,_,C));case 18:if(O=j.sent,!(C&&C.progress)){j.next=22;break}return j.next=22,h.default.awrap(C.progress(1));case 22:return L={res:O.res,bucket:this.options.bucket,name:y,etag:O.res.headers.etag},(C.headers&&C.headers["x-oss-callback"]||C.callback)&&(L.data=O.data),j.abrupt("return",L);case 25:if(!(C.partSize&&!(parseInt(C.partSize,10)===C.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(C.partSize&&C.partSize<w)){j.next=29;break}throw new Error("partSize must not be smaller than "+w);case 29:return j.next=31,h.default.awrap(this.initMultipartUpload(y,C));case 31:if(D=j.sent,N=D.uploadId,M=this._getPartSize(b,C.partSize),F={file:x,name:y,fileSize:b,partSize:M,uploadId:N,doneParts:[]},!(C&&C.progress)){j.next=38;break}return j.next=38,h.default.awrap(C.progress(0,F,D.res));case 38:return j.next=40,h.default.awrap(this._resumeMultipart(F,C));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},u._resumeMultipart=function(y,x){var C,w,b,_,O,L,D,N,M,F,R,j,B,K,U,z,V,Y;return h.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:if(C=this,!this.isCancel()){se.next=3;break}throw this._makeCancelEvent();case 3:return w=y.file,b=y.fileSize,_=y.partSize,O=y.uploadId,L=y.doneParts,D=y.name,N=[],L.length>0&&t(L).to(N),M=this._divideParts(b,_),F=M.length,R=!1,j=function(ae,ge){var pe=this;return new S.default(function(de,Le){var Q,ce,Ke,ee;return h.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,ae.isCancel()){G.next=18;break}return Q=M[ge-1],ce={stream:ae._createStream(w,Q.start,Q.end),size:Q.end-Q.start},G.next=6,h.default.awrap(ae._uploadPart(D,O,ge,ce));case 6:if(Ke=G.sent,!(!ae.isCancel()&&!R)){G.next=15;break}if(y.doneParts.push({number:ge,etag:Ke.res.headers.etag}),!x.progress){G.next=12;break}return G.next=12,h.default.awrap(x.progress(L.length/F,y,Ke.res));case 12:de({number:ge,etag:Ke.res.headers.etag}),G.next=16;break;case 15:de();case 16:G.next=19;break;case 18:de();case 19:G.next=30;break;case 21:G.prev=21,G.t0=G.catch(0),ee=new Error,ee.name=G.t0.name,ee.message=G.t0.message,ee.stack=G.t0.stack,ee.partNum=ge,t(G.t0).to(ee),Le(ee);case 30:case"end":return G.stop()}},null,pe,[[0,21]])})},B=(0,T.default)(new Array(F),function($,ae){return ae+1}),K=N.map(function($){return $.number}),U=B.filter(function($){return K.indexOf($)<0}),z=5,V=x.parallel||z,se.next=17,h.default.awrap(this._parallel(U,V,function($){return new S.default(function(ae,ge){j(C,$).then(function(pe){pe&&N.push(pe),ae()}).catch(function(pe){ge(pe)})})}));case 17:if(Y=se.sent,R=!0,!this.isCancel()){se.next=22;break}throw j=null,this._makeCancelEvent();case 22:if(!(Y&&Y.length>0)){se.next=25;break}throw Y[0].message="Failed to upload some parts with error: "+Y[0].toString()+" part_num: "+Y[0].partNum,Y[0];case 25:return se.next=27,h.default.awrap(this.completeMultipartUpload(D,O,N,x));case 27:return se.abrupt("return",se.sent);case 28:case"end":return se.stop()}},null,this)},u._getFileSize=function(y){return h.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!a.buffer(y)){C.next=4;break}return C.abrupt("return",y.length);case 4:if(!(e(y)||l(y))){C.next=6;break}return C.abrupt("return",y.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return C.stop()}},null,this)};var f=H("stream"),p=f.Readable;function v(A,y){if(!(this instanceof v))return new v(A,y);p.call(this,y),this.file=A,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(v,p),v.prototype.readFileAndPush=function(y){if(this.fileBuffer)for(var x=!0;x&&this.fileBuffer&&this.start<this.fileBuffer.length;){var C=this.start,w=C+y;w=w>this.fileBuffer.length?this.fileBuffer.length:w,this.start=w,x=this.push(this.fileBuffer.slice(C,w))}},v.prototype._read=function(y){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 x=16*1024;y=y||x;var C=this;this.reader.onload=function(b){C.fileBuffer=I.from(new Uint8Array(b.target.result)),C.file=null,C.readFileAndPush(y)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(y)},u._createStream=function(y,x,C){if(e(y)||l(y))return new v(y.slice(x,C));throw new Error("_createStream requires File/Blob.")},u._getPartSize=function(y,x){var C=10*1e3,w=1024*1024;return x?Math.max(Math.ceil(y/C),x):w},u._divideParts=function(y,x){for(var C=Math.ceil(y/x),w=[],b=0;b<C;b++){var _=x*b,O=Math.min(_+x,y);w.push({start:_,end:O})}return w}}).call(this,H("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(H,k,d){"use strict";var I=H("babel-runtime/core-js/promise"),E=a(I),T=H("babel-runtime/core-js/object/keys"),g=a(T),S=H("babel-runtime/core-js/object/assign"),m=a(S),h=H("babel-runtime/regenerator"),c=a(h);function a(C){return C&&C.__esModule?C:{default:C}}var r=H("utility"),i=H("fs"),n=H("is-type-of"),t=H("url"),s=H("copy-to"),e=H("path"),o=H("mime"),l=H("../common/callback"),u=H("../common/signUtils"),f=H("merge-descriptors"),p=H("../common/utils/isBlob"),v=p.isBlob,A=H("../common/utils/isFile"),y=A.isFile,x=d;x.append=function(w,b,_){var O;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return _=_||{},_.position===void 0&&(_.position="0"),_.subres={append:"",position:_.position},_.method="POST",D.next=6,c.default.awrap(this.put(w,b,_));case 6:return O=D.sent,O.nextAppendPosition=O.res.headers["x-oss-next-append-position"],D.abrupt("return",O);case 9:case"end":return D.stop()}},null,this)},x.put=function(w,b,_){var O,L,D,N,M,F,R;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(O=void 0,_=_||{},w=this._objectName(w),!n.buffer(b)){B.next=7;break}O=b,B.next=33;break;case 7:if(!(v(b)||y(b))){B.next=32;break}return _.mime||(y(b)?_.mime=o.getType(e.extname(b.name)):_.mime=b.type),L=this._createStream(b,0,b.size),B.next=12,c.default.awrap(this._getFileSize(b));case 12:return _.contentLength=B.sent,B.prev=13,B.next=16,c.default.awrap(this.putStream(w,L,_));case 16:return D=B.sent,B.abrupt("return",D);case 20:if(B.prev=20,B.t0=B.catch(13),!(B.t0.code==="RequestTimeTooSkewed")){B.next=29;break}return this.options.amendTimeSkewed=+new Date(B.t0.serverTime)-new Date,B.next=26,c.default.awrap(this.put(w,b,_));case 26:return B.abrupt("return",B.sent);case 29:throw B.t0;case 30:B.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return _.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),N=_.method||"PUT",M=this._objectRequestParams(N,w,_),l.encodeCallback(M,_),M.mime=_.mime,M.content=O,M.successStatuses=[200],B.next=43,c.default.awrap(this.request(M));case 43:return F=B.sent,R={name:w,url:this._objectUrl(w),res:F.res},M.headers&&M.headers["x-oss-callback"]&&(R.data=JSON.parse(F.data.toString())),B.abrupt("return",R);case 47:case"end":return B.stop()}},null,this,[[13,20]])},x.putStream=function(w,b,_){var O,L,D,N;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return _=_||{},_.headers=_.headers||{},w=this._objectName(w),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),O=_.method||"PUT",L=this._objectRequestParams(O,w,_),l.encodeCallback(L,_),L.mime=_.mime,L.stream=b,L.successStatuses=[200],F.next=13,c.default.awrap(this.request(L));case 13:return D=F.sent,N={name:w,url:this._objectUrl(w),res:D.res},L.headers&&L.headers["x-oss-callback"]&&(N.data=JSON.parse(D.data.toString())),F.abrupt("return",N);case 17:case"end":return F.stop()}},null,this)},f(x,H("../common/object/copyObject")),f(x,H("../common/object/getObjectTagging")),f(x,H("../common/object/putObjectTagging")),f(x,H("../common/object/deleteObjectTagging")),f(x,H("../common/image")),f(x,H("../common/object/getBucketVersions")),f(x,H("../common/object/getACL")),f(x,H("../common/object/putACL")),f(x,H("../common/object/head")),f(x,H("../common/object/delete")),f(x,H("../common/object/get")),f(x,H("../common/object/putSymlink")),f(x,H("../common/object/getSymlink")),f(x,H("../common/object/deleteMulti")),f(x,H("../common/object/getObjectMeta")),x.putMeta=function(w,b,_){var O;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,c.default.awrap(this.copy(w,w,{meta:b||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return O=D.sent,D.abrupt("return",O);case 4:case"end":return D.stop()}},null,this)},x.list=function(w,b){var _,O,L,D,N;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return _=this._objectRequestParams("GET","",b),_.query=w,_.xmlResponse=!0,_.successStatuses=[200],F.next=6,c.default.awrap(this.request(_));case 6:return O=F.sent,L=O.data.Contents,D=this,L&&(Array.isArray(L)||(L=[L]),L=L.map(function(R){return{name:R.Key,url:D._objectUrl(R.Key),lastModified:R.LastModified,etag:R.ETag,type:R.Type,size:Number(R.Size),storageClass:R.StorageClass,owner:{id:R.Owner.ID,displayName:R.Owner.DisplayName}}})),N=O.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(R){return R.Prefix})),F.abrupt("return",{res:O.res,objects:L,prefixes:N,nextMarker:O.data.NextMarker||null,isTruncated:O.data.IsTruncated==="true"});case 13:case"end":return F.stop()}},null,this)},x.restore=function(w,b){var _,O;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return b=b||{},b.subres=(0,m.default)({restore:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),_=this._objectRequestParams("POST",w,b),_.successStatuses=[202],D.next=7,c.default.awrap(this.request(_));case 7:return O=D.sent,D.abrupt("return",{res:O.res});case 9:case"end":return D.stop()}},null,this)},x.signatureUrl=function(w,b){b=b||{},w=this._objectName(w),b.method=b.method||"GET";var _=r.timestamp()+(b.expires||1800),O={bucket:this.options.bucket,object:w},L=this._getResource(O);this.options.stsToken&&(b["security-token"]=this.options.stsToken);var D=u._signatureForURL(this.options.accessKeySecret,b,L,_),N=t.parse(this._getReqUrl(O));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:D.Signature},s(D.subResource).to(N.query),N.format()},x.getObjectUrl=function(w,b){return b?b[b.length-1]!=="/"&&(b+="/"):b=this.options.endpoint.format(),b+this._escape(this._objectName(w))},x._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},x.generateObjectUrl=function(C,w){if(w)w[w.length-1]!=="/"&&(w+="/");else{w=this.options.endpoint.format();var b=t.parse(w),_=this.options.bucket;b.hostname=_+"."+b.hostname,b.host=_+"."+b.host,w=b.format()}return w+this._escape(this._objectName(C))},x._objectRequestParams=function(w,b,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},b=this._objectName(b);var O={object:b,bucket:this.options.bucket,method:w,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(O.headers={},s(_.headers).to(O.headers)),O},x._objectName=function(w){return w.replace(/^\/+/,"")},x._convertMetaToHeaders=function(w,b){if(!w)return;(0,g.default)(w).forEach(function(_){b["x-oss-meta-"+_]=w[_]})},x._deleteFileSafe=function(w){var b=this;return new E.default(function(_){i.exists(w,function(O){O?i.unlink(w,function(L){L&&b.debug("unlink %j error: %s",w,L,"error"),_()}):_()})})}},{"../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(H,k,d){"use strict";d.version="6.10.0"},{}],6:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(h){return h&&h.__esModule?h:{default:h}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=d;m.deleteBucketLifecycle=function(c,a){var r,i;return E.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return S(c),r=this._bucketRequestParams("DELETE",c,"lifecycle",a),r.successStatuses=[204],t.next=5,E.default.awrap(this.request(r));case 5:return i=t.sent,t.abrupt("return",{res:i.res});case 7:case"end":return t.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(h){return h&&h.__esModule?h:{default:h}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=d;m.deleteBucketWebsite=function(c,a){var r,i;return E.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return S(c),r=this._bucketRequestParams("DELETE",c,"website",a),r.successStatuses=[204],t.next=5,E.default.awrap(this.request(r));case 5:return i=t.sent,t.abrupt("return",{res:i.res});case 7:case"end":return t.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(i){return i&&i.__esModule?i:{default:i}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=H("../utils/isArray"),h=m.isArray,c=H("../utils/formatObjKey"),a=c.formatObjKey,r=d;r.getBucketLifecycle=function(n,t){var s,e,o;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return S(n),s=this._bucketRequestParams("GET",n,"lifecycle",t),s.successStatuses=[200],s.xmlResponse=!0,u.next=6,E.default.awrap(this.request(s));case 6:return e=u.sent,o=e.data.Rule||null,o&&(h(o)||(o=[o]),o=o.map(function(f){return f.ID&&(f.id=f.ID,delete f.ID),f.Tag&&!h(f.Tag)&&(f.Tag=[f.Tag]),a(f,"firstLowerCase")})),u.abrupt("return",{rules:o,res:e.res});case 10:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(h){return h&&h.__esModule?h:{default:h}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=d;m.getBucketVersioning=function(c,a){var r,i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return S(c),r=this._bucketRequestParams("GET",c,"versioning",a),r.xmlResponse=!0,r.successStatuses=[200],s.next=6,E.default.awrap(this.request(r));case 6:return i=s.sent,n=i.data.Status,s.abrupt("return",{status:i.status,versionStatus:n,res:i.res});case 9:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(a){return a&&a.__esModule?a:{default:a}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=H("../utils/isObject"),h=m.isObject,c=d;c.getBucketWebsite=function(r,i){var n,t,s;return E.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return S(r),n=this._bucketRequestParams("GET",r,"website",i),n.successStatuses=[200],n.xmlResponse=!0,o.next=6,E.default.awrap(this.request(n));case 6:return t=o.sent,s=[],t.data.RoutingRules&&t.data.RoutingRules.RoutingRule&&(h(t.data.RoutingRules.RoutingRule)?s=[t.data.RoutingRules.RoutingRule]:s=t.data.RoutingRules.RoutingRule),o.abrupt("return",{index:t.data.IndexDocument&&t.data.IndexDocument.Suffix||"",supportSubDir:t.data.IndexDocument&&t.data.IndexDocument.SupportSubDir||"false",type:t.data.IndexDocument&&t.data.IndexDocument.Type,routingRules:s,error:t.data.ErrorDocument&&t.data.ErrorDocument.Key||null,res:t.res});case 10:case"end":return o.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(y){return y&&y.__esModule?y:{default:y}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=H("../utils/isArray"),h=m.isArray,c=H("../utils/deepCopy"),a=c.deepCopy,r=H("../utils/isObject"),i=r.isObject,n=H("../utils/obj2xml"),t=n.obj2xml,s=H("../utils/checkObjectTag"),e=s.checkObjectTag,o=H("../utils/getStrBytesCount"),l=o.getStrBytesCount,u=d;u.putBucketLifecycle=function(x,C,w){var b,_,O,L,D;return E.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(S(x),h(C)){M.next=3;break}throw new Error("rules must be Array");case 3:return b=this._bucketRequestParams("PUT",x,"lifecycle",w),_=[],O={LifecycleConfiguration:{Rule:_}},C.forEach(function(F){f(F),A(F),F.id&&(F.ID=F.id,delete F.id),_.push(F)}),L=t(O,{headers:!0,firstUpperCase:!0}),b.content=L,b.mime="xml",b.successStatuses=[200],M.next=13,E.default.awrap(this.request(b));case 13:return D=M.sent,M.abrupt("return",{res:D.res});case 15:case"end":return M.stop()}},null,this)};function f(y){y.days&&(y.expiration={days:y.days}),y.date&&(y.expiration={createdBeforeDate:y.date})}function p(y,x){var C=y.days,w=y.createdBeforeDate;if(!C&&!w)throw new Error(x+" must includes days or createdBeforeDate");if(C&&!/^[1-9][0-9]*$/.test(C))throw new Error("days must be a positive integer");if(w&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(w))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function v(y){if(!h(y)&&!i(y))throw new Error("tag must be Object or Array");y=i(y)?[y]:y;var x={},C=a(y);C.forEach(function(w){x[w.key]=w.value}),e(x)}function A(y){if(y.id&&l(y.id)>255)throw new Error("ID is composed of 255 bytes at most");if(y.prefix===""||y.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(y.status))throw new Error("Status must be Enabled or Disabled");if(y.transition){if(!["IA","Archive"].includes(y.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(y.transition,"Transition")}if(y.expiration){if(!y.expiration.expiredObjectDeleteMarker)p(y.expiration,"Expiration");else if(y.expiration.days||y.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(y.abortMultipartUpload&&p(y.abortMultipartUpload,"AbortMultipartUpload"),!y.expiration&&!y.abortMultipartUpload&&!y.transition&&!y.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(y.tag){if(y.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");v(y.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(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(a){return a&&a.__esModule?a:{default:a}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=H("../utils/obj2xml"),h=m.obj2xml,c=d;c.putBucketVersioning=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t,s,e;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(S(r),["Enabled","Suspended"].includes(i)){l.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return t=this._bucketRequestParams("PUT",r,"versioning",n),s={VersioningConfiguration:{Status:i}},t.mime="xml",t.content=h(s,{headers:!0}),l.next=9,E.default.awrap(this.request(t));case 9:return e=l.sent,l.abrupt("return",{res:e.res,status:e.status});case 11:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(i){return i&&i.__esModule?i:{default:i}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=H("../utils/obj2xml"),h=m.obj2xml,c=H("../utils/isArray"),a=c.isArray,r=d;r.putBucketWebsite=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2],e,o,l,u,f;return E.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:if(S(n),e=this._bucketRequestParams("PUT",n,"website",s),o={Suffix:t.index||"index.html"},l={IndexDocument:o},u={WebsiteConfiguration:l},t.supportSubDir&&(o.SupportSubDir=t.supportSubDir),t.type&&(o.Type=t.type),t.error&&(l.ErrorDocument={Key:t.error}),!(t.routingRules!==void 0)){v.next=12;break}if(a(t.routingRules)){v.next=11;break}throw new Error("RoutingRules must be Array");case 11:l.RoutingRules={RoutingRule:t.routingRules};case 12:return u=h(u),e.content=u,e.mime="xml",e.successStatuses=[200],v.next=18,E.default.awrap(this.request(e));case 18:return f=v.sent,v.abrupt("return",{res:f.res});case 20:case"end":return v.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(H,k,d){(function(I){"use strict";var E=H("babel-runtime/core-js/object/keys"),T=m(E),g=H("babel-runtime/core-js/json/stringify"),S=m(g);function m(h){return h&&h.__esModule?h:{default:h}}d.encodeCallback=function(c,a){if(c.headers=c.headers||{},!Object.prototype.hasOwnProperty.call(c.headers,"x-oss-callback")&&a.callback){var r={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(r.callbackHost=a.callback.host),a.callback.contentType&&(r.callbackBodyType=a.callback.contentType);var i=I.from((0,S.default)(r)).toString("base64");if(c.headers["x-oss-callback"]=i,a.callback.customValue){var n={};(0,T.default)(a.callback.customValue).forEach(function(t){n["x:"+t]=a.callback.customValue[t]}),c.headers["x-oss-callback-var"]=I.from((0,S.default)(n)).toString("base64")}}}}).call(this,H("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/assign"),E=T(I);function T(r){return r&&r.__esModule?r:{default:r}}var g=H("humanize-ms"),S=H("url"),m=H("../utils/checkBucketName"),h=m.checkBucketName;function c(r,i){var n=S.parse(r);if(n.protocol||(n=S.parse("http"+(i?"s":"")+"://"+r)),n.protocol!=="http:"&&n.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return n}function a(r,i,n){var t=n?"https://":"http://",s=i?"-internal.aliyuncs.com":".aliyuncs.com",e="vpc100-oss-cn-";return r.substr(0,e.length)===e&&(s=".aliyuncs.com"),S.parse(t+r+s)}k.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&h(r.bucket);var i=(0,E.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},r);if(i.accessKeyId=i.accessKeyId.trim(),i.accessKeySecret=i.accessKeySecret.trim(),i.timeout&&(i.timeout=g(i.timeout)),i.endpoint)i.endpoint=c(i.endpoint,i.secure);else if(i.region)i.endpoint=a(i.region,i.internal,i.secure);else throw new Error("require options.endpoint or options.region");return i.inited=!0,i}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(H,k,d){"use strict";var I=H("merge-descriptors"),E=d;I(E,H("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(i){return i&&i.__esModule?i:{default:i}}var g=H("../utils/checkBucketName"),S=g.checkBucketName,m=H("querystring"),h=H("js-base64"),c=h.Base64.encode,a=d;a.processObjectSave=function(n,t,s,e){var o,l,u,f;return E.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return r(n,"sourceObject"),r(t,"targetObject"),r(s,"process"),t=this._objectName(t),e&&S(e),o=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),l=e?",b_"+c(e):"",t=c(t),u={"x-oss-process":s+"|sys/saveas,o_"+t+l},o.content=m.stringify(u),v.next=12,E.default.awrap(this.request(o));case 12:return f=v.sent,v.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return v.stop()}},null,this)};function r(i,n){if(!i)throw new Error(n+" is required");if(typeof i!="string")throw new Error(n+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=T(I);function T(a){return a&&a.__esModule?a:{default:a}}var g=H("copy-to"),S=H("./callback"),m=H("./utils/deepCopy"),h=m.deepCopy,c=d;c.listUploads=function(r,i){var n,t,s,e;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},n={},g(i).to(n),n.subres="uploads",t=this._objectRequestParams("GET","",n),t.query=r,t.xmlResponse=!0,t.successStatuses=[200],l.next=10,E.default.awrap(this.request(t));case 10:return s=l.sent,e=s.data.Upload||[],Array.isArray(e)||(e=[e]),e=e.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),l.abrupt("return",{res:s.res,uploads:e,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:s.data.IsTruncated==="true"});case 15:case"end":return l.stop()}},null,this)},c.listParts=function(r,i,n,t){var s,e,o;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=t||{},s={},g(t).to(s),s.subres={uploadId:i},e=this._objectRequestParams("GET",r,s),e.query=n,e.xmlResponse=!0,e.successStatuses=[200],u.next=10,E.default.awrap(this.request(e));case 10:return o=u.sent,u.abrupt("return",{res:o.res,uploadId:o.data.UploadId,bucket:o.data.Bucket,name:o.data.Key,partNumberMarker:o.data.PartNumberMarker,nextPartNumberMarker:o.data.NextPartNumberMarker,maxParts:o.data.MaxParts,isTruncated:o.data.IsTruncated,parts:o.data.Part||[]});case 12:case"end":return u.stop()}},null,this)},c.abortMultipartUpload=function(r,i,n){var t,s,e;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return this._stop(),n=n||{},t={},g(n).to(t),t.subres={uploadId:i},s=this._objectRequestParams("DELETE",r,t),s.successStatuses=[204],l.next=9,E.default.awrap(this.request(s));case 9:return e=l.sent,l.abrupt("return",{res:e.res});case 11:case"end":return l.stop()}},null,this)},c.initMultipartUpload=function(r,i){var n,t,s;return E.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return i=i||{},n={},g(i).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(i.meta,n.headers),n.subres="uploads",t=this._objectRequestParams("POST",r,n),t.mime=i.mime,t.xmlResponse=!0,t.successStatuses=[200],o.next=12,E.default.awrap(this.request(t));case 12:return s=o.sent,o.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return o.stop()}},null,this)},c.uploadPart=function(r,i,n,t,s,e,o){var l;return E.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return l={stream:this._createStream(t,s,e),size:e-s},f.next=3,E.default.awrap(this._uploadPart(r,i,n,l,o));case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},null,this)},c.completeMultipartUpload=function(r,i,n,t){var s,e,o,l,u,f,p,v;return E.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(s=n.concat().sort(function(x,C){return x.number-C.number}).filter(function(x,C,w){return!C||x.number!==w[C-1].number}),e=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,o=0;o<s.length;o++)l=s[o],e+=`<Part>
|
|
|
`,e+="<PartNumber>"+l.number+`</PartNumber>
|
|
|
`,e+="<ETag>"+l.etag+`</ETag>
|
|
|
`,e+=`</Part>
|
|
|
`;return e+="</CompleteMultipartUpload>",t=t||{},u={},u=h(t),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:i},f=this._objectRequestParams("POST",r,u),S.encodeCallback(f,u),f.mime="xml",f.content=e,f.headers&&f.headers["x-oss-callback"]||(f.xmlResponse=!0),f.successStatuses=[200],y.next=17,E.default.awrap(this.request(f));case 17:return p=y.sent,v={res:p.res,bucket:f.bucket,name:r,etag:p.res.headers.etag},f.headers&&f.headers["x-oss-callback"]&&(v.data=JSON.parse(p.data.toString())),y.abrupt("return",v);case 21:case"end":return y.stop()}},null,this)},c._uploadPart=function(r,i,n,t,s){var e,o,l;return E.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return s=s||{},e={},g(s).to(e),e.headers={"Content-Length":t.size},e.subres={partNumber:n,uploadId:i},o=this._objectRequestParams("PUT",r,e),o.mime=e.mime,o.stream=t.stream,o.successStatuses=[200],f.next=11,E.default.awrap(this.request(o));case 11:if(l=f.sent,l.res.headers.etag){f.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 t.stream=null,o.stream=null,f.abrupt("return",{name:r,etag:l.res.headers.etag,res:l.res});case 17:case"end":return f.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=h(I),T=H("babel-runtime/core-js/object/keys"),g=h(T),S=H("babel-runtime/helpers/typeof"),m=h(S);function h(i){return i&&i.__esModule?i:{default:i}}var c=H("../utils/checkBucketName"),a=c.checkBucketName,r=d;r.copy=function(n,t,s,e){var o,l,u;return E.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof s=="undefined"?"undefined":(0,m.default)(s))==="object"&&(e=s),e=e||{},e.headers=e.headers||{},(0,g.default)(e.headers).forEach(function(v){e.headers["x-oss-copy-source-"+v.toLowerCase()]=e.headers[v]}),e.meta&&(e.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(e.meta,e.headers),t=this._getSourceName(t,s),e.versionId&&(t=t+"?versionId="+e.versionId),e.headers["x-oss-copy-source"]=t,o=this._objectRequestParams("PUT",n,e),o.xmlResponse=!0,o.successStatuses=[200,304],p.next=14,E.default.awrap(this.request(o));case 14:return l=p.sent,u=l.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),p.abrupt("return",{data:u,res:l.res});case 18:case"end":return p.stop()}},null,this)},r._getSourceName=function(n,t){return typeof t=="string"?n=this._objectName(n):n[0]!=="/"?t=this.options.bucket:(t=n.replace(/\/(.+?)(\/.*)/,"$1"),n=n.replace(/(\/.+?\/)(.*)/,"$2")),a(t),n=encodeURI(n),n="/"+t+"/"+n,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.delete=function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return E.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return a.subres=(0,g.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),r=this._objectRequestParams("DELETE",c,a),r.successStatuses=[204],t.next=6,E.default.awrap(this.request(r));case 6:return i=t.sent,t.abrupt("return",{res:i.res});case 8:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(r){return r&&r.__esModule?r:{default:r}}var m=H("utility"),h=H("../utils/obj2xml"),c=h.obj2xml,a=d;a.deleteMulti=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t,s,e,o,l,u,f,p,v,A,y,x;return E.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(t=[],!(!i||!i.length)){w.next=3;break}throw new Error("names is required");case 3:for(s=0;s<i.length;s++)e={},typeof i[s]=="string"?e.Key=m.escape(this._objectName(i[s])):(o=i[s],l=o.key,u=o.versionId,e.Key=m.escape(this._objectName(l)),e.VersionId=u),t.push(e);return f={Delete:{Quiet:!!n.quiet,Object:t}},p=c(f,{headers:!0}),n.subres=(0,g.default)({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),v=this._objectRequestParams("POST","",n),v.mime="xml",v.content=p,v.xmlResponse=!0,v.successStatuses=[200],w.next=15,E.default.awrap(this.request(v));case 15:return A=w.sent,y=A.data,x=y&&y.Deleted||null,x&&(Array.isArray(x)||(x=[x])),w.abrupt("return",{res:A.res,deleted:x||[]});case 20:case"end":return w.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.deleteObjectTagging=function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return E.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return a.subres=(0,g.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),c=this._objectName(c),r=this._objectRequestParams("DELETE",c,a),r.successStatuses=[204],t.next=7,E.default.awrap(this.request(r));case 7:return i=t.sent,t.abrupt("return",{status:i.status,res:i.res});case 9:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(a){return a&&a.__esModule?a:{default:a}}var m=H("fs"),h=H("is-type-of"),c=d;c.get=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t,s,e,o;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=null,s=!1,h.writableStream(i)?t=i:h.string(i)?(t=m.createWriteStream(i),s=!0):n=i,n=n||{},n.subres=(0,g.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),e=void 0,u.prev=8,o=this._objectRequestParams("GET",r,n),o.writeStream=t,o.successStatuses=[200,206,304],u.next=14,E.default.awrap(this.request(o));case 14:e=u.sent,s&&t.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!s){u.next=24;break}return t.destroy(),u.next=24,E.default.awrap(this._deleteFileSafe(i));case 24:throw u.t0;case 25:return u.abrupt("return",{res:e.res,content:e.data});case 26:case"end":return u.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.getACL=function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return E.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return a.subres=(0,g.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,a),r.successStatuses=[200],r.xmlResponse=!0,t.next=8,E.default.awrap(this.request(r));case 8:return i=t.sent,t.abrupt("return",{acl:i.data.AccessControlList.Grant,owner:{id:i.data.Owner.ID,displayName:i.data.Owner.DisplayName},res:i.res});case 10:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/keys"),E=h(I),T=H("babel-runtime/regenerator"),g=h(T),S=H("babel-runtime/core-js/object/assign"),m=h(S);function h(o){return o&&o.__esModule?o:{default:o}}var c=d,a=H("../utils/isObject"),r=a.isObject,i=H("../utils/isArray"),n=i.isArray;c.getBucketVersions=t,c.listObjectVersions=t;function t(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,f,p,v,A,y;return g.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(o.versionIdMarker&&o.keyMarker===void 0)){C.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return l.subres=(0,m.default)({versions:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),u=this._objectRequestParams("GET","",l),u.xmlResponse=!0,u.successStatuses=[200],u.query=e(o),C.next=10,g.default.awrap(this.request(u));case 10:return f=C.sent,p=f.data.Version||[],v=f.data.DeleteMarker||[],A=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(w){return{name:w.Key,url:A._objectUrl(w.Key),lastModified:w.LastModified,isLatest:w.IsLatest==="true",versionId:w.VersionId,etag:w.ETag,type:w.Type,size:Number(w.Size),storageClass:w.StorageClass,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),v&&(n(v)||(v=[v]),v=v.map(function(w){return{name:w.Key,lastModified:w.LastModified,versionId:w.VersionId,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),y=f.data.CommonPrefixes||null,y&&(n(y)||(y=[y]),y=y.map(function(w){return w.Prefix})),C.abrupt("return",{res:f.res,objects:p,deleteMarker:v,prefixes:y,nextMarker:f.data.NextMarker||null,NextVersionIdMarker:f.data.NextVersionIdMarker||null,isTruncated:f.data.IsTruncated==="true"});case 19:case"end":return C.stop()}},null,this)}function s(o){return o.replace(/([A-Z])/g,"-$1").toLowerCase()}function e(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l={};return r(o)&&(0,E.default)(o).forEach(function(u){l[s(u)]=o[u]}),l}},{"../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(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.getObjectMeta=function(c,a){var r,i;return E.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return a=a||{},c=this._objectName(c),a.subres=(0,g.default)({objectMeta:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),r=this._objectRequestParams("HEAD",c,a),r.successStatuses=[200],t.next=8,E.default.awrap(this.request(r));case 8:return i=t.sent,t.abrupt("return",{status:i.status,res:i.res});case 10:case"end":return t.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(a){return a&&a.__esModule?a:{default:a}}var m=d,h=H("../utils/isObject"),c=h.isObject;m.getObjectTagging=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t,s,e,o;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return i.subres=(0,g.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectName(r),n=this._objectRequestParams("GET",r,i),n.successStatuses=[200],u.next=7,E.default.awrap(this.request(n));case 7:return t=u.sent,u.next=10,E.default.awrap(this.parseXML(t.data));case 10:return s=u.sent,e=s.TagSet.Tag,e=e&&c(e)?[e]:e||[],o={},e.forEach(function(f){o[f.Key]=f.Value}),u.abrupt("return",{status:t.status,res:t.res,tag:o});case 16:case"end":return u.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.getSymlink=function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return a.subres=(0,g.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,a),r.successStatuses=[200],s.next=7,E.default.awrap(this.request(r));case 7:return i=s.sent,n=i.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(n),res:i.res});case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=h(I),T=H("babel-runtime/core-js/object/keys"),g=h(T),S=H("babel-runtime/core-js/object/assign"),m=h(S);function h(a){return a&&a.__esModule?a:{default:a}}var c=d;c.head=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t,s;return E.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return i.subres=(0,m.default)({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectRequestParams("HEAD",r,i),n.successStatuses=[200,304],o.next=6,E.default.awrap(this.request(n));case 6:return t=o.sent,s={meta:null,res:t.res,status:t.status},t.status===200&&(0,g.default)(t.headers).forEach(function(l){l.indexOf("x-oss-meta-")===0&&(s.meta||(s.meta={}),s.meta[l.substring(11)]=t.headers[l])}),o.abrupt("return",s);case 10:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.putACL=function(c,a,r){var i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.subres=(0,g.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=a,c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],s.next=10,E.default.awrap(this.request(i));case 10:return n=s.sent,s.abrupt("return",{res:n.res});case 12:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=h(I),T=H("babel-runtime/core-js/object/keys"),g=h(T),S=H("babel-runtime/core-js/object/assign"),m=h(S);function h(t){return t&&t.__esModule?t:{default:t}}var c=H("../utils/obj2xml"),a=c.obj2xml,r=H("../utils/checkObjectTag"),i=r.checkObjectTag,n=d;n.putObjectTagging=function(s,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,u,f;return E.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return i(e),o.subres=(0,m.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),s=this._objectName(s),l=this._objectRequestParams("PUT",s,o),l.successStatuses=[200],e=(0,g.default)(e).map(function(A){return{Key:A,Value:e[A]}}),u={Tagging:{TagSet:{Tag:e}}},l.mime="xml",l.content=a(u),v.next=12,E.default.awrap(this.request(l));case 12:return f=v.sent,v.abrupt("return",{res:f.res,status:f.status});case 14:case"end":return v.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(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/object/assign"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m.putSymlink=function(c,a,r){var i,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.headers=r.headers||{},a=this._escape(this._objectName(a)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=a,r.subres=(0,g.default)({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],s.next=13,E.default.awrap(this.request(i));case 13:return n=s.sent,s.abrupt("return",{res:n.res});case 15:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(H,k,d){"use strict";var I=H("babel-runtime/regenerator"),E=S(I),T=H("babel-runtime/core-js/promise"),g=S(T);function S(h){return h&&h.__esModule?h:{default:h}}var m=d;m._parallelNode=function(c,a,r,i){var n,t,s,e,o,l,u,f;return E.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:n=this,t=[],s=[],e=c.length/a,o=c.length%a,l=o===0?e:(c.length-o)/a+1,u=1,f=0;case 8:if(!(f<c.length)){v.next=26;break}if(!n.isCancel()){v.next=11;break}return v.abrupt("break",26);case 11:if(i?s.push(r(n,c[f],i)):s.push(r(n,c[f])),!(s.length===a||u===l&&f===c.length-1)){v.next=23;break}return v.prev=13,u+=1,v.next=17,E.default.awrap(g.default.all(s));case 17:v.next=22;break;case 19:v.prev=19,v.t0=v.catch(13),t.push(v.t0);case 22:s=[];case 23:f++,v.next=8;break;case 26:return v.abrupt("return",t);case 27:case"end":return v.stop()}},null,this,[[13,19]])},m._parallel=function(c,a,r){var i=this;return new g.default(function(n){var t=[];if(a<=0||!c){n(t);return}function s(y){return function(){if(y===null)throw new Error("Callback was already called.");var x=y;y=null;for(var C=arguments.length,w=Array(C),b=0;b<C;b++)w[b]=arguments[b];x.apply(this,w)}}function e(y){var x=-1,C=y.length;return function(){return++x<C&&!i.isCancel()?{value:y[x],key:x}:null}}var o=e(c),l=!1,u=0,f=!1;function p(y,x){u-=1,y?(l=!0,t.push(y),n(t)):x==={}||l&&u<=0?(l=!0,n(t)):f||(i.isCancel()?n(t):A())}function v(y,x){r(y).then(function(C){x(null,C)}).catch(function(C){x(C)})}function A(){for(f=!0;u<a&&!l&&!i.isCancel();){var y=o();if(y===null||t.length>0){l=!0,u<=0&&n(t);return}u+=1,v(y.value,s(p))}f=!1}A()})},m.cancel=function(c){this.options.cancelFlag=!0,c&&this.abortMultipartUpload(c.name,c.uploadId,c.options)},m.isCancel=function(){return this.options.cancelFlag},m.resetCancelFlag=function(){this.options.cancelFlag=!1},m._stop=function(){this.options.cancelFlag=!0},m._makeCancelEvent=function(){var c={status:0,name:"cancel"};return c}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(H,k,d){(function(I){"use strict";var E=H("babel-runtime/core-js/json/stringify"),T=m(E),g=H("babel-runtime/core-js/object/keys"),S=m(g);function m(a){return a&&a.__esModule?a:{default:a}}var h=H("./../../shims/crypto/crypto.js"),c=H("is-type-of");d.buildCanonicalizedResource=function(r,i){var n=""+r,t="?";if(c.string(i)&&i.trim()!=="")n+=t+i;else if(c.array(i))i.sort(),n+=t+i.join("&");else if(i){var s=function(l,u){return l[0]>u[0]?1:l[0]<u[0]?-1:0},e=function(l){n+=t+l,i[l]&&(n+="="+i[l]),t="&"};(0,S.default)(i).sort(s).forEach(e)}return n},d.buildCanonicalString=function(r,i,n,t){n=n||{};var s=n.headers||{},e="x-oss-",o=[],l={},u=[r.toUpperCase(),s["Content-Md5"]||"",s["Content-Type"]||s["Content-Type".toLowerCase()],t||s["x-oss-date"]];return(0,S.default)(s).forEach(function(f){var p=f.toLowerCase();p.indexOf(e)===0&&(l[p]=String(s[f]).trim())}),(0,S.default)(l).sort().forEach(function(f){o.push(f+":"+l[f])}),u=u.concat(o),u.push(this.buildCanonicalizedResource(i,n.parameters)),u.join(`
|
|
|
`)},d.computeSignature=function(r,i){var n=h.createHmac("sha1",r);return n.update(I.from(i,"utf8")).digest("base64")},d.authorization=function(r,i,n){return"OSS "+r+":"+this.computeSignature(i,n)},d._signatureForURL=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments[2],t=arguments[3],s={},e=i.subResource,o=e===void 0?{}:e;if(i.process){var l="x-oss-process";o[l]=i.process}if(i.trafficLimit){var u="x-oss-traffic-limit";o[u]=i.trafficLimit}if(i.response&&(0,S.default)(i.response).forEach(function(A){var y="response-"+A.toLowerCase();o[y]=i.response[A]}),(0,S.default)(i).forEach(function(A){var y=A.toLowerCase(),x=i[A];y.indexOf("x-oss-")===0?s[y]=x:(y.indexOf("content-md5")===0||y.indexOf("content-type")===0)&&(s[A]=x)}),Object.prototype.hasOwnProperty.call(i,"security-token")&&(o["security-token"]=i["security-token"]),Object.prototype.hasOwnProperty.call(i,"callback")){var f={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};if(i.callback.host&&(f.callbackHost=i.callback.host),i.callback.contentType&&(f.callbackBodyType=i.callback.contentType),o.callback=I.from((0,T.default)(f)).toString("base64"),i.callback.customValue){var p={};(0,S.default)(i.callback.customValue).forEach(function(A){p["x:"+A]=i.callback.customValue[A]}),o["callback-var"]=I.from((0,T.default)(p)).toString("base64")}}var v=this.buildCanonicalString(i.method,n,{headers:s,parameters:o},t.toString());return{Signature:this.computeSignature(r,v),subResource:o}}}).call(this,H("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(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(I,E){var T=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(I))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/entries"),E=T(I);function T(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(d,"__esModule",{value:!0}),d.checkObjectTag=void 0;var g=H("./checkValid"),S=g.checkValid,m=H("./isObject"),h=m.isObject,c=[{validator:function(n){if(typeof n!="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(c,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(c,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function r(i){if(!h(i))throw new Error("tag must be Object");var n=(0,E.default)(i);if(n.length>10)throw new Error("maximum of 10 tags for a object");var t=["key","value"];n.forEach(function(s){s.forEach(function(e,o){S(e,a[t[o]])})})}d.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function I(E,T){T.forEach(function(g){if(g.validator)g.validator(E);else if(g.pattern&&!g.pattern.test(E))throw new Error(g.msg)})}d.checkValid=I},{}],38:[function(H,k,d){(function(I){"use strict";var E=H("babel-runtime/core-js/object/assign"),T=g(E);function g(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var S=H("./../../../shims/crypto/crypto.js"),m=H("debug")("ali-oss"),h=H("mime"),c=H("dateformat"),a=H("copy-to"),r=H("path");function i(s,e){return s[e]||s[e.toLowerCase()]}function n(s,e){delete s[e],delete s[e.toLowerCase()]}function t(s){var e=new Date;this.options.amendTimeSkewed&&(e=+new Date+this.options.amendTimeSkewed);var o={"x-oss-date":c(e,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(o["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(o,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(o["x-oss-security-token"]=this.options.stsToken),a(s.headers).to(o),i(o,"Content-Type")||(s.mime&&s.mime.indexOf("/")>0?o["Content-Type"]=s.mime:o["Content-Type"]=h.getType(s.mime||r.extname(s.object||""))),i(o,"Content-Type")||n(o,"Content-Type"),s.content&&(o["Content-Md5"]=S.createHash("md5").update(I.from(s.content,"utf8")).digest("base64"),o["Content-Length"]||(o["Content-Length"]=s.content.length));var l=this._getResource(s);o.authorization=this.authorization(s.method,l,s.subres,o);var u=this._getReqUrl(s);m("request %s %s, with headers %j, !!stream: %s",s.method,u,o,!!s.stream);var f=s.timeout||this.options.timeout,p={method:s.method,content:s.content,stream:s.stream,headers:o,timeout:f,writeStream:s.writeStream,customResponse:s.customResponse,ctx:s.ctx||this.ctx};return this.agent&&(p.agent=this.agent),this.httpsAgent&&(p.httpsAgent=this.httpsAgent),{url:u,params:p}}d.createRequest=t}).call(this,H("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(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/keys"),E=S(I),T=H("babel-runtime/helpers/typeof"),g=S(T);function S(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(d,"__esModule",{value:!0}),d.deepCopy=void 0,d.deepCopy=function(m){if(m===null||(typeof m=="undefined"?"undefined":(0,g.default)(m))!=="object")return m;var h=Array.isArray(m)?[]:{};return(0,E.default)(m).forEach(function(c){h[c]=d.deepCopy(m[c])}),h}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/keys"),E=S(I),T=H("babel-runtime/helpers/typeof"),g=S(T);function S(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function m(c,a){if(c===null||(typeof c=="undefined"?"undefined":(0,g.default)(c))!=="object")return c;var r=void 0;if(Array.isArray(c)){r=[];for(var i=0;i<c.length;i++)r.push(m(c[i],a))}else r={},(0,E.default)(c).forEach(function(n){r[h(n,a)]=m(c[n],a)});return r}d.formatObjKey=m;function h(c,a){return a==="firstUpperCase"?c=c.replace(/^./,function(r){return r.toUpperCase()}):a==="firstLowerCase"&&(c=c.replace(/^./,function(r){return r.toLowerCase()})),c}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function I(E){for(var T=0,g=0;g<E.length;g++){var S=E.charAt(g);/^[\u00-\uff]$/.test(S)?T+=1:T+=2}return T}d.getStrBytesCount=I},{}],42:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isArray=void 0,d.isArray=function(I){return Object.prototype.toString.call(I)==="[object Array]"}},{}],43:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function I(E){return typeof Blob!="undefined"&&E instanceof Blob}d.isBlob=I},{}],44:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isFile=void 0,d.isFile=function(I){return typeof File!="undefined"&&I instanceof File}},{}],45:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(I){var E=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,T=/^\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 E.test(I)||T.test(I)}},{}],46:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isObject=void 0,d.isObject=function(I){return Object.prototype.toString.call(I)==="[object Object]"}},{}],47:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/keys"),E=T(I);function T(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(d,"__esModule",{value:!0}),d.obj2xml=void 0;var g=H("./formatObjKey");function S(h){return Object.prototype.toString.call(h).replace(/(.*? |])/g,"").toLowerCase()}function m(h,c){var a="";return c&&c.headers&&(a=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),c&&c.firstUpperCase&&(h=g.formatObjKey(h,"firstUpperCase")),S(h)==="object"?(0,E.default)(h).forEach(function(r){S(h[r])==="string"||S(h[r])==="number"?a+="<"+r+">"+h[r]+"</"+r+">":S(h[r])==="object"?a+="<"+r+">"+m(h[r])+"</"+r+">":S(h[r])==="array"?a+=h[r].map(function(i){return"<"+r+">"+m(i)+"</"+r+">"}).join(""):a+="<"+r+">"+h[r].toString()+"</"+r+">"}):a+=h.toString(),a}d.obj2xml=m},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(H,k,d){k.exports=I,k.exports.HttpsAgent=I;function I(){}},{}],49:[function(H,k,d){k.exports=H("./register")().Promise},{"./register":51}],50:[function(H,k,d){"use strict";var I="@@any-promise/REGISTRATION",E=null;k.exports=function(T,g){return function(m,h){m=m||null,h=h||{};var c=h.global!==!1;if(E===null&&c&&(E=T[I]||null),E!==null&&m!==null&&E.implementation!==m)throw new Error('any-promise already defined as "'+E.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return E===null&&(m!==null&&typeof h.Promise!="undefined"?E={Promise:h.Promise,implementation:m}:E=g(m),c&&(T[I]=E)),E}}},{}],51:[function(H,k,d){"use strict";k.exports=H("./loader")(window,I);function I(){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(H,k,d){k.exports={default:H("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(H,k,d){k.exports={default:H("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(H,k,d){k.exports={default:H("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(H,k,d){k.exports={default:H("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(H,k,d){k.exports={default:H("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(H,k,d){k.exports={default:H("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(H,k,d){k.exports={default:H("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(H,k,d){k.exports={default:H("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(H,k,d){"use strict";d.__esModule=!0;var I=H("../core-js/symbol/iterator"),E=m(I),T=H("../core-js/symbol"),g=m(T),S=typeof g.default=="function"&&typeof E.default=="symbol"?function(h){return typeof h}:function(h){return h&&typeof g.default=="function"&&h.constructor===g.default&&h!==g.default.prototype?"symbol":typeof h};function m(h){return h&&h.__esModule?h:{default:h}}d.default=typeof g.default=="function"&&S(E.default)==="symbol"?function(h){return typeof h=="undefined"?"undefined":S(h)}:function(h){return h&&typeof g.default=="function"&&h.constructor===g.default&&h!==g.default.prototype?"symbol":typeof h=="undefined"?"undefined":S(h)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(H,k,d){k.exports=H("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(H,k,d){"use strict";d.byteLength=c,d.toByteArray=r,d.fromByteArray=t;for(var I=[],E=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,m=g.length;S<m;++S)I[S]=g[S],E[g.charCodeAt(S)]=S;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function h(s){var e=s.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=s.indexOf("=");o===-1&&(o=e);var l=o===e?0:4-o%4;return[o,l]}function c(s){var e=h(s),o=e[0],l=e[1];return(o+l)*3/4-l}function a(s,e,o){return(e+o)*3/4-o}function r(s){var e,o=h(s),l=o[0],u=o[1],f=new T(a(s,l,u)),p=0,v=u>0?l-4:l,A;for(A=0;A<v;A+=4)e=E[s.charCodeAt(A)]<<18|E[s.charCodeAt(A+1)]<<12|E[s.charCodeAt(A+2)]<<6|E[s.charCodeAt(A+3)],f[p++]=e>>16&255,f[p++]=e>>8&255,f[p++]=e&255;return u===2&&(e=E[s.charCodeAt(A)]<<2|E[s.charCodeAt(A+1)]>>4,f[p++]=e&255),u===1&&(e=E[s.charCodeAt(A)]<<10|E[s.charCodeAt(A+1)]<<4|E[s.charCodeAt(A+2)]>>2,f[p++]=e>>8&255,f[p++]=e&255),f}function i(s){return I[s>>18&63]+I[s>>12&63]+I[s>>6&63]+I[s&63]}function n(s,e,o){for(var l,u=[],f=e;f<o;f+=3)l=(s[f]<<16&16711680)+(s[f+1]<<8&65280)+(s[f+2]&255),u.push(i(l));return u.join("")}function t(s){for(var e,o=s.length,l=o%3,u=[],f=16383,p=0,v=o-l;p<v;p+=f)u.push(n(s,p,p+f>v?v:p+f));return l===1?(e=s[o-1],u.push(I[e>>2]+I[e<<4&63]+"==")):l===2&&(e=(s[o-2]<<8)+s[o-1],u.push(I[e>>10]+I[e>>4&63]+I[e<<2&63]+"=")),u.join("")}},{}],70:[function(H,k,d){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(I,E,T){typeof k!="undefined"&&k.exports?k.exports=T():typeof define=="function"&&define.amd?define(E,T):I[E]=T()}(this,"bowser",function(){var I=!0;function E(a){function r(j){var B=a.match(j);return B&&B.length>1&&B[1]||""}function i(j){var B=a.match(j);return B&&B.length>1&&B[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),t=/like android/i.test(a),s=!t&&/android/i.test(a),e=/nexus\s*[0-6]\s*/i.test(a),o=!e&&/nexus\s*[0-9]+/i.test(a),l=/CrOS/.test(a),u=/silk/i.test(a),f=/sailfish/i.test(a),p=/tizen/i.test(a),v=/(web|hpw)(o|0)s/i.test(a),A=/windows phone/i.test(a),y=/SamsungBrowser/i.test(a),x=!A&&/windows/i.test(a),C=!n&&!u&&/macintosh/i.test(a),w=!s&&!f&&!p&&!v&&/linux/i.test(a),b=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=r(/version\/(\d+(\.\d+)?)/i),O=/tablet/i.test(a)&&!/tablet pc/i.test(a),L=!O&&/[^-]mobi/i.test(a),D=/xbox/i.test(a),N;/opera/i.test(a)?N={name:"Opera",opera:I,version:_||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?N={name:"Opera",opera:I,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(a)?N={name:"Samsung Internet for Android",samsungBrowser:I,version:_||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(a)?N={name:"NAVER Whale browser",whale:I,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(a)?N={name:"MZ Browser",mzbrowser:I,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(a)?N={name:"Opera Coast",coast:I,version:_||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(a)?N={name:"Focus",focus:I,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(a)?N={name:"Yandex Browser",yandexbrowser:I,version:_||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?N={name:"UC Browser",ucbrowser:I,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?N={name:"Maxthon",maxthon:I,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?N={name:"Epiphany",epiphany:I,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?N={name:"Puffin",puffin:I,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?N={name:"Sleipnir",sleipnir:I,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?N={name:"K-Meleon",kMeleon:I,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:A?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:I},b?(N.msedge=I,N.version=b):(N.msie=I,N.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?N={name:"Internet Explorer",msie:I,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?N={name:"Chrome",osname:"Chrome OS",chromeos:I,chromeBook:I,chrome:I,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?N={name:"Microsoft Edge",msedge:I,version:b}:/vivaldi/i.test(a)?N={name:"Vivaldi",vivaldi:I,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||_}:f?N={name:"Sailfish",osname:"Sailfish OS",sailfish:I,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?N={name:"SeaMonkey",seamonkey:I,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(N={name:"Firefox",firefox:I,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(N.firefoxos=I,N.osname="Firefox OS")):u?N={name:"Amazon Silk",silk:I,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?N={name:"PhantomJS",phantom:I,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?N={name:"SlimerJS",slimer:I,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:I,version:_||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:v?(N={name:"WebOS",osname:"WebOS",webos:I,version:_||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(N.touchpad=I)):/bada/i.test(a)?N={name:"Bada",osname:"Bada",bada:I,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?N={name:"Tizen",osname:"Tizen",tizen:I,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(a)?N={name:"QupZilla",qupzilla:I,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(a)?N={name:"Chromium",chromium:I,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(a)?N={name:"Chrome",chrome:I,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?N={name:"Android",version:_}:/safari|applewebkit/i.test(a)?(N={name:"Safari",safari:I},_&&(N.version=_)):n?(N={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},_&&(N.version=_)):/googlebot/i.test(a)?N={name:"Googlebot",googlebot:I,version:r(/googlebot\/(\d+(\.\d+))/i)||_}:N={name:r(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(N.name=N.name||"Blink",N.blink=I):(N.name=N.name||"Webkit",N.webkit=I),!N.version&&_&&(N.version=_)):!N.opera&&/gecko\//i.test(a)&&(N.name=N.name||"Gecko",N.gecko=I,N.version=N.version||r(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(s||N.silk)?(N.android=I,N.osname="Android"):!N.windowsphone&&n?(N[n]=I,N.ios=I,N.osname="iOS"):C?(N.mac=I,N.osname="macOS"):D?(N.xbox=I,N.osname="Xbox"):x?(N.windows=I,N.osname="Windows"):w&&(N.linux=I,N.osname="Linux");function M(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 F="";N.windows?F=M(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?F=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(F=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),F=F.replace(/[_\s]/g,".")):n?(F=r(/os (\d+([_\s]\d+)*) like mac os x/i),F=F.replace(/[_\s]/g,".")):s?F=r(/android[ \/-](\d+(\.\d+)*)/i):N.webos?F=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?F=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?F=r(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(F=r(/tizen[\/\s](\d+(\.\d+)*)/i)),F&&(N.osversion=F);var R=!N.windows&&F.split(".")[0];return O||o||n=="ipad"||s&&(R==3||R>=4&&!L)||N.silk?N.tablet=I:(L||n=="iphone"||n=="ipod"||s||e||N.blackberry||N.webos||N.bada)&&(N.mobile=I),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&m([N.version,"1.0"])===1||N.mzbrowser&&m([N.version,"6.0"])===1||N.focus&&m([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=I:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=I:N.x=I,N}var T=E(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(a){for(var r=0;r<a.length;++r){var i=a[r];if(typeof i=="string"&&i in T)return!0}return!1};function g(a){return a.split(".").length}function S(a,r){var i=[],n;if(Array.prototype.map)return Array.prototype.map.call(a,r);for(n=0;n<a.length;n++)i.push(r(a[n]));return i}function m(a){for(var r=Math.max(g(a[0]),g(a[1])),i=S(a,function(n){var t=r-g(n);return n=n+new Array(t+1).join(".0"),S(n.split("."),function(s){return new Array(20-s.length).join("0")+s}).reverse()});--r>=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]===i[1][r]){if(r===0)return 0}else return-1}}function h(a,r,i){var n=T;typeof r=="string"&&(i=r,r=void 0),r===void 0&&(r=!1),i&&(n=E(i));var t=""+n.version;for(var s in a)if(a.hasOwnProperty(s)&&n[s]){if(typeof a[s]!="string")throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(a));return m([t,a[s]])<0}return r}function c(a,r,i){return!h(a,r,i)}return T.isUnsupportedBrowser=h,T.compareVersions=m,T.check=c,T._detect=E,T.detect=E,T})},{}],71:[function(H,k,d){},{}],72:[function(H,k,d){var I=H("buffer").Buffer,E=I.isEncoding||function(c){switch(c&&c.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 T(c){if(c&&!E(c))throw new Error("Unknown encoding: "+c)}var g=d.StringDecoder=function(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,""),T(c);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=m;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=h;break;default:this.write=S;return}this.charBuffer=new I(6),this.charReceived=0,this.charLength=0};g.prototype.write=function(c){for(var a="";this.charLength;){var r=c.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:c.length;if(c.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";c=c.slice(r,c.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=a.charCodeAt(a.length-1);if(n>=55296&&n<=56319){this.charLength+=this.surrogateSize,a="";continue}if(this.charReceived=this.charLength=0,c.length===0)return a;break}this.detectIncompleteChar(c);var i=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,i),i-=this.charReceived),a+=c.toString(this.encoding,0,i);var i=a.length-1,n=a.charCodeAt(i);if(n>=55296&&n<=56319){var t=this.surrogateSize;return this.charLength+=t,this.charReceived+=t,this.charBuffer.copy(this.charBuffer,t,0,t),c.copy(this.charBuffer,0,0,t),a.substring(0,i)}return a},g.prototype.detectIncompleteChar=function(c){for(var a=c.length>=3?3:c.length;a>0;a--){var r=c[c.length-a];if(a==1&&r>>5==6){this.charLength=2;break}if(a<=2&&r>>4==14){this.charLength=3;break}if(a<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=a},g.prototype.end=function(c){var a="";if(c&&c.length&&(a=this.write(c)),this.charReceived){var r=this.charReceived,i=this.charBuffer,n=this.encoding;a+=i.slice(0,r).toString(n)}return a};function S(c){return c.toString(this.encoding)}function m(c){this.charReceived=c.length%2,this.charLength=this.charReceived?2:0}function h(c){this.charReceived=c.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(H,k,d){(function(I,E){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var T=H("base64-js"),g=H("ieee754"),S=H("isarray");d.Buffer=E,d.SlowBuffer=u,d.INSPECT_MAX_BYTES=50,E.TYPED_ARRAY_SUPPORT=I.TYPED_ARRAY_SUPPORT!==void 0?I.TYPED_ARRAY_SUPPORT:m(),d.kMaxLength=h();function m(){try{var ee=new Uint8Array(1);return ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ee.foo()===42&&typeof ee.subarray=="function"&&ee.subarray(1,1).byteLength===0}catch(X){return!1}}function h(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(ee,X){if(h()<X)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(ee=new Uint8Array(X),ee.__proto__=E.prototype):(ee===null&&(ee=new E(X)),ee.length=X),ee}function E(ee,X,G){if(!E.TYPED_ARRAY_SUPPORT&&!(this instanceof E))return new E(ee,X,G);if(typeof ee=="number"){if(typeof X=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,ee)}return a(this,ee,X,G)}E.poolSize=8192,E._augment=function(ee){return ee.__proto__=E.prototype,ee};function a(ee,X,G,Z){if(typeof X=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&X instanceof ArrayBuffer?e(ee,X,G,Z):typeof X=="string"?t(ee,X,G):o(ee,X)}E.from=function(ee,X,G){return a(null,ee,X,G)},E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0}));function r(ee){if(typeof ee!="number")throw new TypeError('"size" argument must be a number');if(ee<0)throw new RangeError('"size" argument must not be negative')}function i(ee,X,G,Z){return r(X),X<=0?c(ee,X):G!==void 0?typeof Z=="string"?c(ee,X).fill(G,Z):c(ee,X).fill(G):c(ee,X)}E.alloc=function(ee,X,G){return i(null,ee,X,G)};function n(ee,X){if(r(X),ee=c(ee,X<0?0:l(X)|0),!E.TYPED_ARRAY_SUPPORT)for(var G=0;G<X;++G)ee[G]=0;return ee}E.allocUnsafe=function(ee){return n(null,ee)},E.allocUnsafeSlow=function(ee){return n(null,ee)};function t(ee,X,G){if((typeof G!="string"||G==="")&&(G="utf8"),!E.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var Z=f(X,G)|0;ee=c(ee,Z);var ve=ee.write(X,G);return ve!==Z&&(ee=ee.slice(0,ve)),ee}function s(ee,X){var G=X.length<0?0:l(X.length)|0;ee=c(ee,G);for(var Z=0;Z<G;Z+=1)ee[Z]=X[Z]&255;return ee}function e(ee,X,G,Z){if(X.byteLength,G<0||X.byteLength<G)throw new RangeError("'offset' is out of bounds");if(X.byteLength<G+(Z||0))throw new RangeError("'length' is out of bounds");return G===void 0&&Z===void 0?X=new Uint8Array(X):Z===void 0?X=new Uint8Array(X,G):X=new Uint8Array(X,G,Z),E.TYPED_ARRAY_SUPPORT?(ee=X,ee.__proto__=E.prototype):ee=s(ee,X),ee}function o(ee,X){if(E.isBuffer(X)){var G=l(X.length)|0;return ee=c(ee,G),ee.length===0||X.copy(ee,0,0,G),ee}if(X){if(typeof ArrayBuffer!="undefined"&&X.buffer instanceof ArrayBuffer||"length"in X)return typeof X.length!="number"||Ke(X.length)?c(ee,0):s(ee,X);if(X.type==="Buffer"&&S(X.data))return s(ee,X.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(ee){if(ee>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return ee|0}function u(ee){return+ee!=ee&&(ee=0),E.alloc(+ee)}E.isBuffer=function(X){return!!(X!=null&&X._isBuffer)},E.compare=function(X,G){if(!E.isBuffer(X)||!E.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(X===G)return 0;for(var Z=X.length,ve=G.length,ue=0,_e=Math.min(Z,ve);ue<_e;++ue)if(X[ue]!==G[ue]){Z=X[ue],ve=G[ue];break}return Z<ve?-1:ve<Z?1:0},E.isEncoding=function(X){switch(String(X).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}},E.concat=function(X,G){if(!S(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return E.alloc(0);var Z;if(G===void 0)for(G=0,Z=0;Z<X.length;++Z)G+=X[Z].length;var ve=E.allocUnsafe(G),ue=0;for(Z=0;Z<X.length;++Z){var _e=X[Z];if(!E.isBuffer(_e))throw new TypeError('"list" argument must be an Array of Buffers');_e.copy(ve,ue),ue+=_e.length}return ve};function f(ee,X){if(E.isBuffer(ee))return ee.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ee)||ee instanceof ArrayBuffer))return ee.byteLength;typeof ee!="string"&&(ee=""+ee);var G=ee.length;if(G===0)return 0;for(var Z=!1;;)switch(X){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return Ne(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Q(ee).length;default:if(Z)return Ne(ee).length;X=(""+X).toLowerCase(),Z=!0}}E.byteLength=f;function p(ee,X,G){var Z=!1;if((X===void 0||X<0)&&(X=0),X>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,X>>>=0,G<=X)return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return j(this,X,G);case"utf8":case"utf-8":return D(this,X,G);case"ascii":return F(this,X,G);case"latin1":case"binary":return R(this,X,G);case"base64":return L(this,X,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,X,G);default:if(Z)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),Z=!0}}E.prototype._isBuffer=!0;function v(ee,X,G){var Z=ee[X];ee[X]=ee[G],ee[G]=Z}E.prototype.swap16=function(){var X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<X;G+=2)v(this,G,G+1);return this},E.prototype.swap32=function(){var X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<X;G+=4)v(this,G,G+3),v(this,G+1,G+2);return this},E.prototype.swap64=function(){var X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<X;G+=8)v(this,G,G+7),v(this,G+1,G+6),v(this,G+2,G+5),v(this,G+3,G+4);return this},E.prototype.toString=function(){var X=this.length|0;return X===0?"":arguments.length===0?D(this,0,X):p.apply(this,arguments)},E.prototype.equals=function(X){if(!E.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:E.compare(this,X)===0},E.prototype.inspect=function(){var X="",G=d.INSPECT_MAX_BYTES;return this.length>0&&(X=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(X+=" ... ")),"<Buffer "+X+">"},E.prototype.compare=function(X,G,Z,ve,ue){if(!E.isBuffer(X))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),Z===void 0&&(Z=X?X.length:0),ve===void 0&&(ve=0),ue===void 0&&(ue=this.length),G<0||Z>X.length||ve<0||ue>this.length)throw new RangeError("out of range index");if(ve>=ue&&G>=Z)return 0;if(ve>=ue)return-1;if(G>=Z)return 1;if(G>>>=0,Z>>>=0,ve>>>=0,ue>>>=0,this===X)return 0;for(var _e=ue-ve,xe=Z-G,oe=Math.min(_e,xe),fe=this.slice(ve,ue),Te=X.slice(G,Z),ze=0;ze<oe;++ze)if(fe[ze]!==Te[ze]){_e=fe[ze],xe=Te[ze];break}return _e<xe?-1:xe<_e?1:0};function A(ee,X,G,Z,ve){if(ee.length===0)return-1;if(typeof G=="string"?(Z=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=ve?0:ee.length-1),G<0&&(G=ee.length+G),G>=ee.length){if(ve)return-1;G=ee.length-1}else if(G<0)if(ve)G=0;else return-1;if(typeof X=="string"&&(X=E.from(X,Z)),E.isBuffer(X))return X.length===0?-1:y(ee,X,G,Z,ve);if(typeof X=="number")return X=X&255,E.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(ee,X,G):Uint8Array.prototype.lastIndexOf.call(ee,X,G):y(ee,[X],G,Z,ve);throw new TypeError("val must be string, number or Buffer")}function y(ee,X,G,Z,ve){var ue=1,_e=ee.length,xe=X.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(ee.length<2||X.length<2)return-1;ue=2,_e/=2,xe/=2,G/=2}function oe(et,Oe){return ue===1?et[Oe]:et.readUInt16BE(Oe*ue)}var fe;if(ve){var Te=-1;for(fe=G;fe<_e;fe++)if(oe(ee,fe)===oe(X,Te===-1?0:fe-Te)){if(Te===-1&&(Te=fe),fe-Te+1===xe)return Te*ue}else Te!==-1&&(fe-=fe-Te),Te=-1}else for(G+xe>_e&&(G=_e-xe),fe=G;fe>=0;fe--){for(var ze=!0,it=0;it<xe;it++)if(oe(ee,fe+it)!==oe(X,it)){ze=!1;break}if(ze)return fe}return-1}E.prototype.includes=function(X,G,Z){return this.indexOf(X,G,Z)!==-1},E.prototype.indexOf=function(X,G,Z){return A(this,X,G,Z,!0)},E.prototype.lastIndexOf=function(X,G,Z){return A(this,X,G,Z,!1)};function x(ee,X,G,Z){G=Number(G)||0;var ve=ee.length-G;Z?(Z=Number(Z),Z>ve&&(Z=ve)):Z=ve;var ue=X.length;if(ue%2!==0)throw new TypeError("Invalid hex string");Z>ue/2&&(Z=ue/2);for(var _e=0;_e<Z;++_e){var xe=parseInt(X.substr(_e*2,2),16);if(isNaN(xe))return _e;ee[G+_e]=xe}return _e}function C(ee,X,G,Z){return ce(Ne(X,ee.length-G),ee,G,Z)}function w(ee,X,G,Z){return ce(de(X),ee,G,Z)}function b(ee,X,G,Z){return w(ee,X,G,Z)}function _(ee,X,G,Z){return ce(Q(X),ee,G,Z)}function O(ee,X,G,Z){return ce(Le(X,ee.length-G),ee,G,Z)}E.prototype.write=function(X,G,Z,ve){if(G===void 0)ve="utf8",Z=this.length,G=0;else if(Z===void 0&&typeof G=="string")ve=G,Z=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(Z)?(Z=Z|0,ve===void 0&&(ve="utf8")):(ve=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-G;if((Z===void 0||Z>ue)&&(Z=ue),X.length>0&&(Z<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var _e=!1;;)switch(ve){case"hex":return x(this,X,G,Z);case"utf8":case"utf-8":return C(this,X,G,Z);case"ascii":return w(this,X,G,Z);case"latin1":case"binary":return b(this,X,G,Z);case"base64":return _(this,X,G,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,X,G,Z);default:if(_e)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),_e=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(ee,X,G){return X===0&&G===ee.length?T.fromByteArray(ee):T.fromByteArray(ee.slice(X,G))}function D(ee,X,G){G=Math.min(ee.length,G);for(var Z=[],ve=X;ve<G;){var ue=ee[ve],_e=null,xe=ue>239?4:ue>223?3:ue>191?2:1;if(ve+xe<=G){var oe,fe,Te,ze;switch(xe){case 1:ue<128&&(_e=ue);break;case 2:oe=ee[ve+1],(oe&192)===128&&(ze=(ue&31)<<6|oe&63,ze>127&&(_e=ze));break;case 3:oe=ee[ve+1],fe=ee[ve+2],(oe&192)===128&&(fe&192)===128&&(ze=(ue&15)<<12|(oe&63)<<6|fe&63,ze>2047&&(ze<55296||ze>57343)&&(_e=ze));break;case 4:oe=ee[ve+1],fe=ee[ve+2],Te=ee[ve+3],(oe&192)===128&&(fe&192)===128&&(Te&192)===128&&(ze=(ue&15)<<18|(oe&63)<<12|(fe&63)<<6|Te&63,ze>65535&&ze<1114112&&(_e=ze))}}_e===null?(_e=65533,xe=1):_e>65535&&(_e-=65536,Z.push(_e>>>10&1023|55296),_e=56320|_e&1023),Z.push(_e),ve+=xe}return M(Z)}var N=4096;function M(ee){var X=ee.length;if(X<=N)return String.fromCharCode.apply(String,ee);for(var G="",Z=0;Z<X;)G+=String.fromCharCode.apply(String,ee.slice(Z,Z+=N));return G}function F(ee,X,G){var Z="";G=Math.min(ee.length,G);for(var ve=X;ve<G;++ve)Z+=String.fromCharCode(ee[ve]&127);return Z}function R(ee,X,G){var Z="";G=Math.min(ee.length,G);for(var ve=X;ve<G;++ve)Z+=String.fromCharCode(ee[ve]);return Z}function j(ee,X,G){var Z=ee.length;(!X||X<0)&&(X=0),(!G||G<0||G>Z)&&(G=Z);for(var ve="",ue=X;ue<G;++ue)ve+=pe(ee[ue]);return ve}function B(ee,X,G){for(var Z=ee.slice(X,G),ve="",ue=0;ue<Z.length;ue+=2)ve+=String.fromCharCode(Z[ue]+Z[ue+1]*256);return ve}E.prototype.slice=function(X,G){var Z=this.length;X=~~X,G=G===void 0?Z:~~G,X<0?(X+=Z,X<0&&(X=0)):X>Z&&(X=Z),G<0?(G+=Z,G<0&&(G=0)):G>Z&&(G=Z),G<X&&(G=X);var ve;if(E.TYPED_ARRAY_SUPPORT)ve=this.subarray(X,G),ve.__proto__=E.prototype;else{var ue=G-X;ve=new E(ue,void 0);for(var _e=0;_e<ue;++_e)ve[_e]=this[_e+X]}return ve};function K(ee,X,G){if(ee%1!==0||ee<0)throw new RangeError("offset is not uint");if(ee+X>G)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=this[X],ue=1,_e=0;++_e<G&&(ue*=256);)ve+=this[X+_e]*ue;return ve},E.prototype.readUIntBE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=this[X+--G],ue=1;G>0&&(ue*=256);)ve+=this[X+--G]*ue;return ve},E.prototype.readUInt8=function(X,G){return G||K(X,1,this.length),this[X]},E.prototype.readUInt16LE=function(X,G){return G||K(X,2,this.length),this[X]|this[X+1]<<8},E.prototype.readUInt16BE=function(X,G){return G||K(X,2,this.length),this[X]<<8|this[X+1]},E.prototype.readUInt32LE=function(X,G){return G||K(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},E.prototype.readUInt32BE=function(X,G){return G||K(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},E.prototype.readIntLE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=this[X],ue=1,_e=0;++_e<G&&(ue*=256);)ve+=this[X+_e]*ue;return ue*=128,ve>=ue&&(ve-=Math.pow(2,8*G)),ve},E.prototype.readIntBE=function(X,G,Z){X=X|0,G=G|0,Z||K(X,G,this.length);for(var ve=G,ue=1,_e=this[X+--ve];ve>0&&(ue*=256);)_e+=this[X+--ve]*ue;return ue*=128,_e>=ue&&(_e-=Math.pow(2,8*G)),_e},E.prototype.readInt8=function(X,G){return G||K(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},E.prototype.readInt16LE=function(X,G){G||K(X,2,this.length);var Z=this[X]|this[X+1]<<8;return Z&32768?Z|4294901760:Z},E.prototype.readInt16BE=function(X,G){G||K(X,2,this.length);var Z=this[X+1]|this[X]<<8;return Z&32768?Z|4294901760:Z},E.prototype.readInt32LE=function(X,G){return G||K(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},E.prototype.readInt32BE=function(X,G){return G||K(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},E.prototype.readFloatLE=function(X,G){return G||K(X,4,this.length),g.read(this,X,!0,23,4)},E.prototype.readFloatBE=function(X,G){return G||K(X,4,this.length),g.read(this,X,!1,23,4)},E.prototype.readDoubleLE=function(X,G){return G||K(X,8,this.length),g.read(this,X,!0,52,8)},E.prototype.readDoubleBE=function(X,G){return G||K(X,8,this.length),g.read(this,X,!1,52,8)};function U(ee,X,G,Z,ve,ue){if(!E.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>ve||X<ue)throw new RangeError('"value" argument is out of bounds');if(G+Z>ee.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(X,G,Z,ve){if(X=+X,G=G|0,Z=Z|0,!ve){var ue=Math.pow(2,8*Z)-1;U(this,X,G,Z,ue,0)}var _e=1,xe=0;for(this[G]=X&255;++xe<Z&&(_e*=256);)this[G+xe]=X/_e&255;return G+Z},E.prototype.writeUIntBE=function(X,G,Z,ve){if(X=+X,G=G|0,Z=Z|0,!ve){var ue=Math.pow(2,8*Z)-1;U(this,X,G,Z,ue,0)}var _e=Z-1,xe=1;for(this[G+_e]=X&255;--_e>=0&&(xe*=256);)this[G+_e]=X/xe&255;return G+Z},E.prototype.writeUInt8=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,1,255,0),E.TYPED_ARRAY_SUPPORT||(X=Math.floor(X)),this[G]=X&255,G+1};function z(ee,X,G,Z){X<0&&(X=65535+X+1);for(var ve=0,ue=Math.min(ee.length-G,2);ve<ue;++ve)ee[G+ve]=(X&255<<8*(Z?ve:1-ve))>>>(Z?ve:1-ve)*8}E.prototype.writeUInt16LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):z(this,X,G,!0),G+2},E.prototype.writeUInt16BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):z(this,X,G,!1),G+2};function V(ee,X,G,Z){X<0&&(X=4294967295+X+1);for(var ve=0,ue=Math.min(ee.length-G,4);ve<ue;++ve)ee[G+ve]=X>>>(Z?ve:3-ve)*8&255}E.prototype.writeUInt32LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[G+3]=X>>>24,this[G+2]=X>>>16,this[G+1]=X>>>8,this[G]=X&255):V(this,X,G,!0),G+4},E.prototype.writeUInt32BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[G]=X>>>24,this[G+1]=X>>>16,this[G+2]=X>>>8,this[G+3]=X&255):V(this,X,G,!1),G+4},E.prototype.writeIntLE=function(X,G,Z,ve){if(X=+X,G=G|0,!ve){var ue=Math.pow(2,8*Z-1);U(this,X,G,Z,ue-1,-ue)}var _e=0,xe=1,oe=0;for(this[G]=X&255;++_e<Z&&(xe*=256);)X<0&&oe===0&&this[G+_e-1]!==0&&(oe=1),this[G+_e]=(X/xe>>0)-oe&255;return G+Z},E.prototype.writeIntBE=function(X,G,Z,ve){if(X=+X,G=G|0,!ve){var ue=Math.pow(2,8*Z-1);U(this,X,G,Z,ue-1,-ue)}var _e=Z-1,xe=1,oe=0;for(this[G+_e]=X&255;--_e>=0&&(xe*=256);)X<0&&oe===0&&this[G+_e+1]!==0&&(oe=1),this[G+_e]=(X/xe>>0)-oe&255;return G+Z},E.prototype.writeInt8=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,1,127,-128),E.TYPED_ARRAY_SUPPORT||(X=Math.floor(X)),X<0&&(X=255+X+1),this[G]=X&255,G+1},E.prototype.writeInt16LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):z(this,X,G,!0),G+2},E.prototype.writeInt16BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):z(this,X,G,!1),G+2},E.prototype.writeInt32LE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8,this[G+2]=X>>>16,this[G+3]=X>>>24):V(this,X,G,!0),G+4},E.prototype.writeInt32BE=function(X,G,Z){return X=+X,G=G|0,Z||U(this,X,G,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),E.TYPED_ARRAY_SUPPORT?(this[G]=X>>>24,this[G+1]=X>>>16,this[G+2]=X>>>8,this[G+3]=X&255):V(this,X,G,!1),G+4};function Y(ee,X,G,Z,ve,ue){if(G+Z>ee.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function J(ee,X,G,Z,ve){return ve||Y(ee,X,G,4,34028234663852886e22,-34028234663852886e22),g.write(ee,X,G,Z,23,4),G+4}E.prototype.writeFloatLE=function(X,G,Z){return J(this,X,G,!0,Z)},E.prototype.writeFloatBE=function(X,G,Z){return J(this,X,G,!1,Z)};function se(ee,X,G,Z,ve){return ve||Y(ee,X,G,8,17976931348623157e292,-17976931348623157e292),g.write(ee,X,G,Z,52,8),G+8}E.prototype.writeDoubleLE=function(X,G,Z){return se(this,X,G,!0,Z)},E.prototype.writeDoubleBE=function(X,G,Z){return se(this,X,G,!1,Z)},E.prototype.copy=function(X,G,Z,ve){if(Z||(Z=0),!ve&&ve!==0&&(ve=this.length),G>=X.length&&(G=X.length),G||(G=0),ve>0&&ve<Z&&(ve=Z),ve===Z)return 0;if(X.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),X.length-G<ve-Z&&(ve=X.length-G+Z);var ue=ve-Z,_e;if(this===X&&Z<G&&G<ve)for(_e=ue-1;_e>=0;--_e)X[_e+G]=this[_e+Z];else if(ue<1e3||!E.TYPED_ARRAY_SUPPORT)for(_e=0;_e<ue;++_e)X[_e+G]=this[_e+Z];else Uint8Array.prototype.set.call(X,this.subarray(Z,Z+ue),G);return ue},E.prototype.fill=function(X,G,Z,ve){if(typeof X=="string"){if(typeof G=="string"?(ve=G,G=0,Z=this.length):typeof Z=="string"&&(ve=Z,Z=this.length),X.length===1){var ue=X.charCodeAt(0);ue<256&&(X=ue)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!E.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof X=="number"&&(X=X&255);if(G<0||this.length<G||this.length<Z)throw new RangeError("Out of range index");if(Z<=G)return this;G=G>>>0,Z=Z===void 0?this.length:Z>>>0,X||(X=0);var _e;if(typeof X=="number")for(_e=G;_e<Z;++_e)this[_e]=X;else{var xe=E.isBuffer(X)?X:Ne(new E(X,ve).toString()),oe=xe.length;for(_e=0;_e<Z-G;++_e)this[_e+G]=xe[_e%oe]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function ae(ee){if(ee=ge(ee).replace($,""),ee.length<2)return"";for(;ee.length%4!==0;)ee=ee+"=";return ee}function ge(ee){return ee.trim?ee.trim():ee.replace(/^\s+|\s+$/g,"")}function pe(ee){return ee<16?"0"+ee.toString(16):ee.toString(16)}function Ne(ee,X){X=X||Infinity;for(var G,Z=ee.length,ve=null,ue=[],_e=0;_e<Z;++_e){if(G=ee.charCodeAt(_e),G>55295&&G<57344){if(!ve){if(G>56319){(X-=3)>-1&&ue.push(239,191,189);continue}else if(_e+1===Z){(X-=3)>-1&&ue.push(239,191,189);continue}ve=G;continue}if(G<56320){(X-=3)>-1&&ue.push(239,191,189),ve=G;continue}G=(ve-55296<<10|G-56320)+65536}else ve&&((X-=3)>-1&&ue.push(239,191,189));if(ve=null,G<128){if((X-=1)<0)break;ue.push(G)}else if(G<2048){if((X-=2)<0)break;ue.push(G>>6|192,G&63|128)}else if(G<65536){if((X-=3)<0)break;ue.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((X-=4)<0)break;ue.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ue}function de(ee){for(var X=[],G=0;G<ee.length;++G)X.push(ee.charCodeAt(G)&255);return X}function Le(ee,X){for(var G,Z,ve,ue=[],_e=0;_e<ee.length&&!((X-=2)<0);++_e)G=ee.charCodeAt(_e),Z=G>>8,ve=G%256,ue.push(ve),ue.push(Z);return ue}function Q(ee){return T.toByteArray(ae(ee))}function ce(ee,X,G,Z){for(var ve=0;ve<Z&&!(ve+G>=X.length||ve>=ee.length);++ve)X[ve+G]=ee[ve];return ve}function Ke(ee){return ee!==ee}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(H,k,d){k.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(H,k,d){k.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(H,k,d){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var I=Array.prototype.slice;k.exports=E;function E(g,S){if(!(this instanceof E))return new E(g,S);this.src=g,this._withAccess=S}E.prototype.withAccess=function(g){return this._withAccess=g!==!1,this},E.prototype.pick=function(g){return Array.isArray(g)||(g=I.call(arguments)),g.length&&(this.keys=g),this},E.prototype.to=function(g){if(g=g||{},!this.src)return g;var S=this.keys||Object.keys(this.src);if(!this._withAccess){for(var m=0;m<S.length;m++){if(h=S[m],g[h]!==void 0)continue;g[h]=this.src[h]}return g}for(var m=0;m<S.length;m++){var h=S[m];if(!T(g,h))continue;var c=this.src.__lookupGetter__(h),a=this.src.__lookupSetter__(h);c&&g.__defineGetter__(h,c),a&&g.__defineSetter__(h,a),!c&&!a&&(g[h]=this.src[h])}return g},E.prototype.toCover=function(g){for(var S=this.keys||Object.keys(this.src),m=0;m<S.length;m++){var h=S[m];delete g[h];var c=this.src.__lookupGetter__(h),a=this.src.__lookupSetter__(h);c&&g.__defineGetter__(h,c),a&&g.__defineSetter__(h,a),!c&&!a&&(g[h]=this.src[h])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(g){var S={};return this.to(S),this.src=g,this.to(S),this.src=S,this};function T(g,S){return g[S]===void 0&&g.__lookupGetter__(S)===void 0&&g.__lookupSetter__(S)===void 0}},{}],77:[function(H,k,d){H("../../modules/es6.string.iterator"),H("../../modules/es6.array.from"),k.exports=H("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(H,k,d){var I=H("../../modules/_core"),E=I.JSON||(I.JSON={stringify:JSON.stringify});k.exports=function(g){return E.stringify.apply(E,arguments)}},{"../../modules/_core":99}],79:[function(H,k,d){H("../../modules/es6.object.assign"),k.exports=H("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(H,k,d){H("../../modules/es6.object.create");var I=H("../../modules/_core").Object;k.exports=function(T,g){return I.create(T,g)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(H,k,d){H("../../modules/es6.object.define-property");var I=H("../../modules/_core").Object;k.exports=function(T,g,S){return I.defineProperty(T,g,S)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(H,k,d){H("../../modules/es7.object.entries"),k.exports=H("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(H,k,d){H("../../modules/es6.object.get-own-property-names");var I=H("../../modules/_core").Object;k.exports=function(T){return I.getOwnPropertyNames(T)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(H,k,d){H("../../modules/es6.object.get-prototype-of"),k.exports=H("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(H,k,d){H("../../modules/es6.object.keys"),k.exports=H("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(H,k,d){H("../modules/es6.object.to-string"),H("../modules/es6.string.iterator"),H("../modules/web.dom.iterable"),H("../modules/es6.promise"),H("../modules/es7.promise.finally"),H("../modules/es7.promise.try"),k.exports=H("../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(H,k,d){H("../modules/web.immediate"),k.exports=H("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(H,k,d){H("../../modules/es6.string.from-code-point"),k.exports=H("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(H,k,d){H("../../modules/es6.function.has-instance"),k.exports=H("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(H,k,d){H("../../modules/es6.symbol"),H("../../modules/es6.object.to-string"),H("../../modules/es7.symbol.async-iterator"),H("../../modules/es7.symbol.observable"),k.exports=H("../../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(H,k,d){H("../../modules/es6.string.iterator"),H("../../modules/web.dom.iterable"),k.exports=H("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(H,k,d){k.exports=function(I){if(typeof I!="function")throw TypeError(I+" is not a function!");return I}},{}],93:[function(H,k,d){k.exports=function(){}},{}],94:[function(H,k,d){k.exports=function(I,E,T,g){if(!(I instanceof E)||g!==void 0&&g in I)throw TypeError(T+": incorrect invocation!");return I}},{}],95:[function(H,k,d){var I=H("./_is-object");k.exports=function(E){if(!I(E))throw TypeError(E+" is not an object!");return E}},{"./_is-object":119}],96:[function(H,k,d){var I=H("./_to-iobject"),E=H("./_to-length"),T=H("./_to-absolute-index");k.exports=function(g){return function(S,m,h){var c=I(S),a=E(c.length),r=T(h,a),i;if(g&&m!=m){for(;a>r;)if(i=c[r++],i!=i)return!0}else for(;a>r;r++)if((g||r in c)&&c[r]===m)return g||r||0;return!g&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(H,k,d){var I=H("./_cof"),E=H("./_wks")("toStringTag"),T=I(function(){return arguments}())=="Arguments",g=function(m,h){try{return m[h]}catch(c){}};k.exports=function(S){var m,h,c;return S===void 0?"Undefined":S===null?"Null":typeof(h=g(m=Object(S),E))=="string"?h:T?I(m):(c=I(m))=="Object"&&typeof m.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(H,k,d){var I={}.toString;k.exports=function(E){return I.call(E).slice(8,-1)}},{}],99:[function(H,k,d){var I=k.exports={version:"2.6.11"};typeof __e=="number"&&(__e=I)},{}],100:[function(H,k,d){"use strict";var I=H("./_object-dp"),E=H("./_property-desc");k.exports=function(T,g,S){g in T?I.f(T,g,E(0,S)):T[g]=S}},{"./_object-dp":132,"./_property-desc":146}],101:[function(H,k,d){var I=H("./_a-function");k.exports=function(E,T,g){if(I(E),T===void 0)return E;switch(g){case 1:return function(S){return E.call(T,S)};case 2:return function(S,m){return E.call(T,S,m)};case 3:return function(S,m,h){return E.call(T,S,m,h)}}return function(){return E.apply(T,arguments)}}},{"./_a-function":92}],102:[function(H,k,d){k.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},{}],103:[function(H,k,d){k.exports=!H("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(H,k,d){var I=H("./_is-object"),E=H("./_global").document,T=I(E)&&I(E.createElement);k.exports=function(g){return T?E.createElement(g):{}}},{"./_global":110,"./_is-object":119}],105:[function(H,k,d){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(H,k,d){var I=H("./_object-keys"),E=H("./_object-gops"),T=H("./_object-pie");k.exports=function(g){var S=I(g),m=E.f;if(m)for(var h=m(g),c=T.f,a=0,r;h.length>a;)c.call(g,r=h[a++])&&S.push(r);return S}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(H,k,d){var I=H("./_global"),E=H("./_core"),T=H("./_ctx"),g=H("./_hide"),S=H("./_has"),m="prototype",h=function c(a,r,i){var n=a&c.F,t=a&c.G,s=a&c.S,e=a&c.P,o=a&c.B,l=a&c.W,u=t?E:E[r]||(E[r]={}),f=u[m],p=t?I:s?I[r]:(I[r]||{})[m],v,A,y;t&&(i=r);for(v in i){if(A=!n&&p&&p[v]!==void 0,A&&S(u,v))continue;y=A?p[v]:i[v],u[v]=t&&typeof p[v]!="function"?i[v]:o&&A?T(y,I):l&&p[v]==y?function(x){var C=function(b,_,O){if(this instanceof x){switch(arguments.length){case 0:return new x;case 1:return new x(b);case 2:return new x(b,_)}return new x(b,_,O)}return x.apply(this,arguments)};return C[m]=x[m],C}(y):e&&typeof y=="function"?T(Function.call,y):y,e&&((u.virtual||(u.virtual={}))[v]=y,a&c.R&&f&&!f[v]&&g(f,v,y))}};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,k.exports=h},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(H,k,d){k.exports=function(I){try{return!!I()}catch(E){return!0}}},{}],109:[function(H,k,d){var I=H("./_ctx"),E=H("./_iter-call"),T=H("./_is-array-iter"),g=H("./_an-object"),S=H("./_to-length"),m=H("./core.get-iterator-method"),h={},c={},d=k.exports=function(a,r,i,n,t){var s=t?function(){return a}:m(a),e=I(i,n,r?2:1),o=0,l,u,f,p;if(typeof s!="function")throw TypeError(a+" is not iterable!");if(T(s)){for(l=S(a.length);l>o;o++)if(p=r?e(g(u=a[o])[0],u[1]):e(a[o]),p===h||p===c)return p}else for(f=s.call(a);!(u=f.next()).done;)if(p=E(f,e,u.value,r),p===h||p===c)return p};d.BREAK=h,d.RETURN=c},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(H,k,d){var I=k.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=I)},{}],111:[function(H,k,d){var I={}.hasOwnProperty;k.exports=function(E,T){return I.call(E,T)}},{}],112:[function(H,k,d){var I=H("./_object-dp"),E=H("./_property-desc");k.exports=H("./_descriptors")?function(T,g,S){return I.f(T,g,E(1,S))}:function(T,g,S){return T[g]=S,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(H,k,d){var I=H("./_global").document;k.exports=I&&I.documentElement},{"./_global":110}],114:[function(H,k,d){k.exports=!H("./_descriptors")&&!H("./_fails")(function(){return Object.defineProperty(H("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(H,k,d){k.exports=function(I,E,T){var g=T===void 0;switch(E.length){case 0:return g?I():I.call(T);case 1:return g?I(E[0]):I.call(T,E[0]);case 2:return g?I(E[0],E[1]):I.call(T,E[0],E[1]);case 3:return g?I(E[0],E[1],E[2]):I.call(T,E[0],E[1],E[2]);case 4:return g?I(E[0],E[1],E[2],E[3]):I.call(T,E[0],E[1],E[2],E[3])}return I.apply(T,E)}},{}],116:[function(H,k,d){var I=H("./_cof");k.exports=Object("z").propertyIsEnumerable(0)?Object:function(E){return I(E)=="String"?E.split(""):Object(E)}},{"./_cof":98}],117:[function(H,k,d){var I=H("./_iterators"),E=H("./_wks")("iterator"),T=Array.prototype;k.exports=function(g){return g!==void 0&&(I.Array===g||T[E]===g)}},{"./_iterators":125,"./_wks":166}],118:[function(H,k,d){var I=H("./_cof");k.exports=Array.isArray||function(T){return I(T)=="Array"}},{"./_cof":98}],119:[function(H,k,d){k.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},{}],120:[function(H,k,d){var I=H("./_an-object");k.exports=function(E,T,g,S){try{return S?T(I(g)[0],g[1]):T(g)}catch(h){var m=E.return;throw m!==void 0&&I(m.call(E)),h}}},{"./_an-object":95}],121:[function(H,k,d){"use strict";var I=H("./_object-create"),E=H("./_property-desc"),T=H("./_set-to-string-tag"),g={};H("./_hide")(g,H("./_wks")("iterator"),function(){return this}),k.exports=function(S,m,h){S.prototype=I(g,{next:E(1,h)}),T(S,m+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(H,k,d){"use strict";var I=H("./_library"),E=H("./_export"),T=H("./_redefine"),g=H("./_hide"),S=H("./_iterators"),m=H("./_iter-create"),h=H("./_set-to-string-tag"),c=H("./_object-gpo"),a=H("./_wks")("iterator"),r=!([].keys&&"next"in[].keys()),i="@@iterator",n="keys",t="values",s=function(){return this};k.exports=function(e,o,l,u,f,p,v){m(l,o,u);var A=function(R){if(!r&&R in w)return w[R];switch(R){case n:return function(){return new l(this,R)};case t:return function(){return new l(this,R)}}return function(){return new l(this,R)}},y=o+" Iterator",x=f==t,C=!1,w=e.prototype,b=w[a]||w[i]||f&&w[f],_=b||A(f),O=f?x?A("entries"):_:void 0,L=o=="Array"&&w.entries||b,D,N,M;if(L&&(M=c(L.call(new e)),M!==Object.prototype&&M.next&&(h(M,y,!0),!I&&typeof M[a]!="function"&&g(M,a,s))),x&&b&&b.name!==t&&(C=!0,_=function(){return b.call(this)}),(!I||v)&&(r||C||!w[a])&&g(w,a,_),S[o]=_,S[y]=s,f)if(D={values:x?_:A(t),keys:p?_:A(n),entries:O},v)for(N in D)N in w||T(w,N,D[N]);else E(E.P+E.F*(r||C),o,D);return D}},{"./_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(H,k,d){var I=H("./_wks")("iterator"),E=!1;try{var T=[7][I]();T.return=function(){E=!0},Array.from(T,function(){throw 2})}catch(g){}k.exports=function(g,S){if(!S&&!E)return!1;var m=!1;try{var h=[7],c=h[I]();c.next=function(){return{done:m=!0}},h[I]=function(){return c},g(h)}catch(a){}return m}},{"./_wks":166}],124:[function(H,k,d){k.exports=function(I,E){return{value:E,done:!!I}}},{}],125:[function(H,k,d){k.exports={}},{}],126:[function(H,k,d){k.exports=!0},{}],127:[function(H,k,d){var I=H("./_uid")("meta"),E=H("./_is-object"),T=H("./_has"),g=H("./_object-dp").f,S=0,m=Object.isExtensible||function(){return!0},h=!H("./_fails")(function(){return m(Object.preventExtensions({}))}),c=function(s){g(s,I,{value:{i:"O"+ ++S,w:{}}})},a=function(s,e){if(!E(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!T(s,I)){if(!m(s))return"F";if(!e)return"E";c(s)}return s[I].i},r=function(s,e){if(!T(s,I)){if(!m(s))return!0;if(!e)return!1;c(s)}return s[I].w},i=function(s){return h&&n.NEED&&m(s)&&!T(s,I)&&c(s),s},n=k.exports={KEY:I,NEED:!1,fastKey:a,getWeak:r,onFreeze:i}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(H,k,d){var I=H("./_global"),E=H("./_task").set,T=I.MutationObserver||I.WebKitMutationObserver,g=I.process,S=I.Promise,m=H("./_cof")(g)=="process";k.exports=function(){var h,c,a,r=function(){var e,o;for(m&&(e=g.domain)&&e.exit();h;){o=h.fn,h=h.next;try{o()}catch(l){throw h?a():c=void 0,l}}c=void 0,e&&e.enter()};if(m)a=function(){g.nextTick(r)};else if(T&&!(I.navigator&&I.navigator.standalone)){var i=!0,n=document.createTextNode("");new T(r).observe(n,{characterData:!0}),a=function(){n.data=i=!i}}else if(S&&S.resolve){var t=S.resolve(void 0);a=function(){t.then(r)}}else a=function(){E.call(I,r)};return function(s){var e={fn:s,next:void 0};c&&(c.next=e),h||(h=e,a()),c=e}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(H,k,d){"use strict";var I=H("./_a-function");function E(T){var g,S;this.promise=new T(function(m,h){if(g!==void 0||S!==void 0)throw TypeError("Bad Promise constructor");g=m,S=h}),this.resolve=I(g),this.reject=I(S)}k.exports.f=function(T){return new E(T)}},{"./_a-function":92}],130:[function(H,k,d){"use strict";var I=H("./_descriptors"),E=H("./_object-keys"),T=H("./_object-gops"),g=H("./_object-pie"),S=H("./_to-object"),m=H("./_iobject"),h=Object.assign;k.exports=!h||H("./_fails")(function(){var c={},a={},r=Symbol(),i="abcdefghijklmnopqrst";return c[r]=7,i.split("").forEach(function(n){a[n]=n}),h({},c)[r]!=7||Object.keys(h({},a)).join("")!=i})?function(a,r){for(var i=S(a),n=arguments.length,t=1,s=T.f,e=g.f;n>t;)for(var o=m(arguments[t++]),l=s?E(o).concat(s(o)):E(o),u=l.length,f=0,p;u>f;)p=l[f++],(!I||e.call(o,p))&&(i[p]=o[p]);return i}:h},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(H,k,d){var I=H("./_an-object"),E=H("./_object-dps"),T=H("./_enum-bug-keys"),g=H("./_shared-key")("IE_PROTO"),S=function(){},m="prototype",h=function(){var a=H("./_dom-create")("iframe"),r=T.length,i="<",n=">",t;for(a.style.display="none",H("./_html").appendChild(a),a.src="javascript:",t=a.contentWindow.document,t.open(),t.write(i+"script"+n+"document.F=Object"+i+"/script"+n),t.close(),h=t.F;r--;)delete h[m][T[r]];return h()};k.exports=Object.create||function(a,r){var i;return a!==null?(S[m]=I(a),i=new S,S[m]=null,i[g]=a):i=h(),r===void 0?i:E(i,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(H,k,d){var I=H("./_an-object"),E=H("./_ie8-dom-define"),T=H("./_to-primitive"),g=Object.defineProperty;d.f=H("./_descriptors")?Object.defineProperty:function(m,h,c){if(I(m),h=T(h,!0),I(c),E)try{return g(m,h,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(m[h]=c.value),m}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(H,k,d){var I=H("./_object-dp"),E=H("./_an-object"),T=H("./_object-keys");k.exports=H("./_descriptors")?Object.defineProperties:function(S,m){E(S);for(var h=T(m),c=h.length,a=0,r;c>a;)I.f(S,r=h[a++],m[r]);return S}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(H,k,d){var I=H("./_object-pie"),E=H("./_property-desc"),T=H("./_to-iobject"),g=H("./_to-primitive"),S=H("./_has"),m=H("./_ie8-dom-define"),h=Object.getOwnPropertyDescriptor;d.f=H("./_descriptors")?h:function(a,r){if(a=T(a),r=g(r,!0),m)try{return h(a,r)}catch(i){}if(S(a,r))return E(!I.f.call(a,r),a[r])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(H,k,d){var I=H("./_to-iobject"),E=H("./_object-gopn").f,T={}.toString,g=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(h){try{return E(h)}catch(c){return g.slice()}};k.exports.f=function(h){return g&&T.call(h)=="[object Window]"?S(h):E(I(h))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(H,k,d){var I=H("./_object-keys-internal"),E=H("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(g){return I(g,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(H,k,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(H,k,d){var I=H("./_has"),E=H("./_to-object"),T=H("./_shared-key")("IE_PROTO"),g=Object.prototype;k.exports=Object.getPrototypeOf||function(S){return S=E(S),I(S,T)?S[T]:typeof S.constructor=="function"&&S instanceof S.constructor?S.constructor.prototype:S instanceof Object?g:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(H,k,d){var I=H("./_has"),E=H("./_to-iobject"),T=H("./_array-includes")(!1),g=H("./_shared-key")("IE_PROTO");k.exports=function(S,m){var h=E(S),c=0,a=[],r;for(r in h)r!=g&&(I(h,r)&&a.push(r));for(;m.length>c;)I(h,r=m[c++])&&(~T(a,r)||a.push(r));return a}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(H,k,d){var I=H("./_object-keys-internal"),E=H("./_enum-bug-keys");k.exports=Object.keys||function(g){return I(g,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(H,k,d){d.f={}.propertyIsEnumerable},{}],142:[function(H,k,d){var I=H("./_export"),E=H("./_core"),T=H("./_fails");k.exports=function(g,S){var m=(E.Object||{})[g]||Object[g],h={};h[g]=S(m),I(I.S+I.F*T(function(){m(1)}),"Object",h)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(H,k,d){var I=H("./_descriptors"),E=H("./_object-keys"),T=H("./_to-iobject"),g=H("./_object-pie").f;k.exports=function(S){return function(m){for(var h=T(m),c=E(h),a=c.length,r=0,i=[],n;a>r;)n=c[r++],(!I||g.call(h,n))&&i.push(S?[n,h[n]]:h[n]);return i}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(H,k,d){k.exports=function(I){try{return{e:!1,v:I()}}catch(E){return{e:!0,v:E}}}},{}],145:[function(H,k,d){var I=H("./_an-object"),E=H("./_is-object"),T=H("./_new-promise-capability");k.exports=function(g,S){if(I(g),E(S)&&S.constructor===g)return S;var m=T.f(g),h=m.resolve;return h(S),m.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(H,k,d){k.exports=function(I,E){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:E}}},{}],147:[function(H,k,d){var I=H("./_hide");k.exports=function(E,T,g){for(var S in T)g&&E[S]?E[S]=T[S]:I(E,S,T[S]);return E}},{"./_hide":112}],148:[function(H,k,d){k.exports=H("./_hide")},{"./_hide":112}],149:[function(H,k,d){"use strict";var I=H("./_global"),E=H("./_core"),T=H("./_object-dp"),g=H("./_descriptors"),S=H("./_wks")("species");k.exports=function(m){var h=typeof E[m]=="function"?E[m]:I[m];g&&h&&!h[S]&&T.f(h,S,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(H,k,d){var I=H("./_object-dp").f,E=H("./_has"),T=H("./_wks")("toStringTag");k.exports=function(g,S,m){g&&!E(g=m?g:g.prototype,T)&&I(g,T,{configurable:!0,value:S})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(H,k,d){var I=H("./_shared")("keys"),E=H("./_uid");k.exports=function(T){return I[T]||(I[T]=E(T))}},{"./_shared":152,"./_uid":162}],152:[function(H,k,d){var I=H("./_core"),E=H("./_global"),T="__core-js_shared__",g=E[T]||(E[T]={});(k.exports=function(S,m){return g[S]||(g[S]=m!==void 0?m:{})})("versions",[]).push({version:I.version,mode:H("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(H,k,d){var I=H("./_an-object"),E=H("./_a-function"),T=H("./_wks")("species");k.exports=function(g,S){var m=I(g).constructor,h;return m===void 0||(h=I(m)[T])==null?S:E(h)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(H,k,d){var I=H("./_to-integer"),E=H("./_defined");k.exports=function(T){return function(g,S){var m=String(E(g)),h=I(S),c=m.length,a,r;return h<0||h>=c?T?"":void 0:(a=m.charCodeAt(h),a<55296||a>56319||h+1===c||(r=m.charCodeAt(h+1))<56320||r>57343?T?m.charAt(h):a:T?m.slice(h,h+2):(a-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(H,k,d){var I=H("./_ctx"),E=H("./_invoke"),T=H("./_html"),g=H("./_dom-create"),S=H("./_global"),m=S.process,h=S.setImmediate,c=S.clearImmediate,a=S.MessageChannel,r=S.Dispatch,i=0,n={},t="onreadystatechange",s,e,o,l=function(){var p=+this;if(n.hasOwnProperty(p)){var v=n[p];delete n[p],v()}},u=function(p){l.call(p.data)};(!h||!c)&&(h=function(p){for(var v=[],A=1;arguments.length>A;)v.push(arguments[A++]);return n[++i]=function(){E(typeof p=="function"?p:Function(p),v)},s(i),i},c=function(p){delete n[p]},H("./_cof")(m)=="process"?s=function(p){m.nextTick(I(l,p,1))}:r&&r.now?s=function(p){r.now(I(l,p,1))}:a?(e=new a,o=e.port2,e.port1.onmessage=u,s=I(o.postMessage,o,1)):S.addEventListener&&typeof postMessage=="function"&&!S.importScripts?(s=function(p){S.postMessage(p+"","*")},S.addEventListener("message",u,!1)):t in g("script")?s=function(p){T.appendChild(g("script"))[t]=function(){T.removeChild(this),l.call(p)}}:s=function(p){setTimeout(I(l,p,1),0)}),k.exports={set:h,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(H,k,d){var I=H("./_to-integer"),E=Math.max,T=Math.min;k.exports=function(g,S){return g=I(g),g<0?E(g+S,0):T(g,S)}},{"./_to-integer":157}],157:[function(H,k,d){var I=Math.ceil,E=Math.floor;k.exports=function(T){return isNaN(T=+T)?0:(T>0?E:I)(T)}},{}],158:[function(H,k,d){var I=H("./_iobject"),E=H("./_defined");k.exports=function(T){return I(E(T))}},{"./_defined":102,"./_iobject":116}],159:[function(H,k,d){var I=H("./_to-integer"),E=Math.min;k.exports=function(T){return T>0?E(I(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(H,k,d){var I=H("./_defined");k.exports=function(E){return Object(I(E))}},{"./_defined":102}],161:[function(H,k,d){var I=H("./_is-object");k.exports=function(E,T){if(!I(E))return E;var g,S;if(T&&typeof(g=E.toString)=="function"&&!I(S=g.call(E)))return S;if(typeof(g=E.valueOf)=="function"&&!I(S=g.call(E)))return S;if(!T&&typeof(g=E.toString)=="function"&&!I(S=g.call(E)))return S;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(H,k,d){var I=0,E=Math.random();k.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++I+E).toString(36))}},{}],163:[function(H,k,d){var I=H("./_global"),E=I.navigator;k.exports=E&&E.userAgent||""},{"./_global":110}],164:[function(H,k,d){var I=H("./_global"),E=H("./_core"),T=H("./_library"),g=H("./_wks-ext"),S=H("./_object-dp").f;k.exports=function(m){var h=E.Symbol||(E.Symbol=T?{}:I.Symbol||{});m.charAt(0)!="_"&&!(m in h)&&S(h,m,{value:g.f(m)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(H,k,d){d.f=H("./_wks")},{"./_wks":166}],166:[function(H,k,d){var I=H("./_shared")("wks"),E=H("./_uid"),T=H("./_global").Symbol,g=typeof T=="function",S=k.exports=function(m){return I[m]||(I[m]=g&&T[m]||(g?T:E)("Symbol."+m))};S.store=I},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(H,k,d){var I=H("./_classof"),E=H("./_wks")("iterator"),T=H("./_iterators");k.exports=H("./_core").getIteratorMethod=function(g){if(g!=null)return g[E]||g["@@iterator"]||T[I(g)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(H,k,d){"use strict";var I=H("./_ctx"),E=H("./_export"),T=H("./_to-object"),g=H("./_iter-call"),S=H("./_is-array-iter"),m=H("./_to-length"),h=H("./_create-property"),c=H("./core.get-iterator-method");E(E.S+E.F*!H("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(r){var i=T(r),n=typeof this=="function"?this:Array,t=arguments.length,s=t>1?arguments[1]:void 0,e=s!==void 0,o=0,l=c(i),u,f,p,v;if(e&&(s=I(s,t>2?arguments[2]:void 0,2)),l!=null&&!(n==Array&&S(l)))for(v=l.call(i),f=new n;!(p=v.next()).done;o++)h(f,o,e?g(v,s,[p.value,o],!0):p.value);else for(u=m(i.length),f=new n(u);u>o;o++)h(f,o,e?s(i[o],o):i[o]);return f.length=o,f}})},{"./_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(H,k,d){"use strict";var I=H("./_add-to-unscopables"),E=H("./_iter-step"),T=H("./_iterators"),g=H("./_to-iobject");k.exports=H("./_iter-define")(Array,"Array",function(S,m){this._t=g(S),this._i=0,this._k=m},function(){var S=this._t,m=this._k,h=this._i++;return!S||h>=S.length?(this._t=void 0,E(1)):m=="keys"?E(0,h):m=="values"?E(0,S[h]):E(0,[h,S[h]])},"values"),T.Arguments=T.Array,I("keys"),I("values"),I("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(H,k,d){"use strict";var I=H("./_is-object"),E=H("./_object-gpo"),T=H("./_wks")("hasInstance"),g=Function.prototype;T in g||H("./_object-dp").f(g,T,{value:function(m){if(typeof this!="function"||!I(m))return!1;if(!I(this.prototype))return m instanceof this;for(;m=E(m);)if(this.prototype===m)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(H,k,d){var I=H("./_export");I(I.S+I.F,"Object",{assign:H("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(H,k,d){var I=H("./_export");I(I.S,"Object",{create:H("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(H,k,d){var I=H("./_export");I(I.S+I.F*!H("./_descriptors"),"Object",{defineProperty:H("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(H,k,d){H("./_object-sap")("getOwnPropertyNames",function(){return H("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(H,k,d){var I=H("./_to-object"),E=H("./_object-gpo");H("./_object-sap")("getPrototypeOf",function(){return function(g){return E(I(g))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(H,k,d){var I=H("./_to-object"),E=H("./_object-keys");H("./_object-sap")("keys",function(){return function(g){return E(I(g))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(H,k,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(H,k,d){"use strict";var I=H("./_library"),E=H("./_global"),T=H("./_ctx"),g=H("./_classof"),S=H("./_export"),m=H("./_is-object"),h=H("./_a-function"),c=H("./_an-instance"),a=H("./_for-of"),r=H("./_species-constructor"),i=H("./_task").set,n=H("./_microtask")(),t=H("./_new-promise-capability"),s=H("./_perform"),e=H("./_user-agent"),o=H("./_promise-resolve"),l="Promise",u=E.TypeError,f=E.process,p=f&&f.versions,v=p&&p.v8||"",A=E[l],y=g(f)=="process",x=function(){},C,w,b,_,O=w=t.f,L=!!function(){try{var K=A.resolve(1),U=(K.constructor={})[H("./_wks")("species")]=function(z){z(x,x)};return(y||typeof PromiseRejectionEvent=="function")&&K.then(x)instanceof U&&v.indexOf("6.6")!==0&&e.indexOf("Chrome/66")===-1}catch(z){}}(),D=function(U){var z;return m(U)&&typeof(z=U.then)=="function"?z:!1},N=function(U,z){if(U._n)return;U._n=!0;var V=U._c;n(function(){for(var Y=U._v,J=U._s==1,se=0,$=function(ge){var pe=J?ge.ok:ge.fail,Ne=ge.resolve,de=ge.reject,Le=ge.domain,Q,ce,Ke;try{pe?(J||(U._h==2&&R(U),U._h=1),pe===!0?Q=Y:(Le&&Le.enter(),Q=pe(Y),Le&&(Le.exit(),Ke=!0)),Q===ge.promise?de(u("Promise-chain cycle")):(ce=D(Q))?ce.call(Q,Ne,de):Ne(Q)):de(Y)}catch(ee){Le&&!Ke&&Le.exit(),de(ee)}};V.length>se;)$(V[se++]);U._c=[],U._n=!1,z&&!U._h&&M(U)})},M=function(U){i.call(E,function(){var z=U._v,V=F(U),Y,J,se;if(V&&(Y=s(function(){y?f.emit("unhandledRejection",z,U):(J=E.onunhandledrejection)?J({promise:U,reason:z}):(se=E.console)&&se.error&&se.error("Unhandled promise rejection",z)}),U._h=y||F(U)?2:1),U._a=void 0,V&&Y.e)throw Y.v})},F=function(U){return U._h!==1&&(U._a||U._c).length===0},R=function(U){i.call(E,function(){var z;y?f.emit("rejectionHandled",U):(z=E.onrejectionhandled)&&z({promise:U,reason:U._v})})},j=function(U){var z=this;if(z._d)return;z._d=!0,z=z._w||z,z._v=U,z._s=2,z._a||(z._a=z._c.slice()),N(z,!0)},B=function K(U){var z=this,V;if(z._d)return;z._d=!0,z=z._w||z;try{if(z===U)throw u("Promise can't be resolved itself");(V=D(U))?n(function(){var Y={_w:z,_d:!1};try{V.call(U,T(K,Y,1),T(j,Y,1))}catch(J){j.call(Y,J)}}):(z._v=U,z._s=1,N(z,!1))}catch(Y){j.call({_w:z,_d:!1},Y)}};L||(A=function(U){c(this,A,l,"_h"),h(U),C.call(this);try{U(T(B,this,1),T(j,this,1))}catch(z){j.call(this,z)}},C=function(U){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=H("./_redefine-all")(A.prototype,{then:function(U,z){var V=O(r(this,A));return V.ok=typeof U=="function"?U:!0,V.fail=typeof z=="function"&&z,V.domain=y?f.domain:void 0,this._c.push(V),this._a&&this._a.push(V),this._s&&N(this,!1),V.promise},catch:function(U){return this.then(void 0,U)}}),b=function(){var U=new C;this.promise=U,this.resolve=T(B,U,1),this.reject=T(j,U,1)},t.f=O=function(U){return U===A||U===_?new b(U):w(U)}),S(S.G+S.W+S.F*!L,{Promise:A}),H("./_set-to-string-tag")(A,l),H("./_set-species")(l),_=H("./_core")[l],S(S.S+S.F*!L,l,{reject:function(U){var z=O(this),V=z.reject;return V(U),z.promise}}),S(S.S+S.F*(I||!L),l,{resolve:function(U){return o(I&&this===_?A:this,U)}}),S(S.S+S.F*!(L&&H("./_iter-detect")(function(K){A.all(K).catch(x)})),l,{all:function(U){var z=this,V=O(z),Y=V.resolve,J=V.reject,se=s(function(){var $=[],ae=0,ge=1;a(U,!1,function(pe){var Ne=ae++,de=!1;$.push(void 0),ge++,z.resolve(pe).then(function(Le){if(de)return;de=!0,$[Ne]=Le,--ge||Y($)},J)}),--ge||Y($)});return se.e&&J(se.v),V.promise},race:function(U){var z=this,V=O(z),Y=V.reject,J=s(function(){a(U,!1,function(se){z.resolve(se).then(V.resolve,Y)})});return J.e&&Y(J.v),V.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(H,k,d){var I=H("./_export"),E=H("./_to-absolute-index"),T=String.fromCharCode,g=String.fromCodePoint;I(I.S+I.F*(!!g&&g.length!=1),"String",{fromCodePoint:function(m){for(var h=[],c=arguments.length,a=0,r;c>a;){if(r=+arguments[a++],E(r,1114111)!==r)throw RangeError(r+" is not a valid code point");h.push(r<65536?T(r):T(((r-=65536)>>10)+55296,r%1024+56320))}return h.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(H,k,d){"use strict";var I=H("./_string-at")(!0);H("./_iter-define")(String,"String",function(E){this._t=String(E),this._i=0},function(){var E=this._t,T=this._i,g;return T>=E.length?{value:void 0,done:!0}:(g=I(E,T),this._i+=g.length,{value:g,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(H,k,d){"use strict";var I=H("./_global"),E=H("./_has"),T=H("./_descriptors"),g=H("./_export"),S=H("./_redefine"),m=H("./_meta").KEY,h=H("./_fails"),c=H("./_shared"),a=H("./_set-to-string-tag"),r=H("./_uid"),i=H("./_wks"),n=H("./_wks-ext"),t=H("./_wks-define"),s=H("./_enum-keys"),e=H("./_is-array"),o=H("./_an-object"),l=H("./_is-object"),u=H("./_to-object"),f=H("./_to-iobject"),p=H("./_to-primitive"),v=H("./_property-desc"),A=H("./_object-create"),y=H("./_object-gopn-ext"),x=H("./_object-gopd"),C=H("./_object-gops"),w=H("./_object-dp"),b=H("./_object-keys"),_=x.f,O=w.f,L=y.f,D=I.Symbol,N=I.JSON,M=N&&N.stringify,F="prototype",R=i("_hidden"),j=i("toPrimitive"),B={}.propertyIsEnumerable,K=c("symbol-registry"),U=c("symbols"),z=c("op-symbols"),V=Object[F],Y=typeof D=="function"&&!!C.f,J=I.QObject,se=!J||!J[F]||!J[F].findChild,$=T&&h(function(){return A(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(ue,_e,xe){var oe=_(V,_e);oe&&delete V[_e],O(ue,_e,xe),oe&&ue!==V&&O(V,_e,oe)}:O,ae=function(_e){var xe=U[_e]=A(D[F]);return xe._k=_e,xe},ge=Y&&typeof D.iterator=="symbol"?function(ue){return typeof ue=="symbol"}:function(ue){return ue instanceof D},pe=function(_e,xe,oe){return _e===V&&pe(z,xe,oe),o(_e),xe=p(xe,!0),o(oe),E(U,xe)?(oe.enumerable?(E(_e,R)&&_e[R][xe]&&(_e[R][xe]=!1),oe=A(oe,{enumerable:v(0,!1)})):(E(_e,R)||O(_e,R,v(1,{})),_e[R][xe]=!0),$(_e,xe,oe)):O(_e,xe,oe)},Ne=function(_e,xe){o(_e);for(var oe=s(xe=f(xe)),fe=0,Te=oe.length,ze;Te>fe;)pe(_e,ze=oe[fe++],xe[ze]);return _e},de=function(_e,xe){return xe===void 0?A(_e):Ne(A(_e),xe)},Le=function(_e){var xe=B.call(this,_e=p(_e,!0));return this===V&&E(U,_e)&&!E(z,_e)?!1:xe||!E(this,_e)||!E(U,_e)||E(this,R)&&this[R][_e]?xe:!0},Q=function(_e,xe){if(_e=f(_e),xe=p(xe,!0),_e===V&&E(U,xe)&&!E(z,xe))return;var oe=_(_e,xe);return oe&&E(U,xe)&&!(E(_e,R)&&_e[R][xe])&&(oe.enumerable=!0),oe},ce=function(_e){for(var xe=L(f(_e)),oe=[],fe=0,Te;xe.length>fe;)!E(U,Te=xe[fe++])&&Te!=R&&Te!=m&&oe.push(Te);return oe},Ke=function(_e){for(var xe=_e===V,oe=L(xe?z:f(_e)),fe=[],Te=0,ze;oe.length>Te;)E(U,ze=oe[Te++])&&(xe?E(V,ze):!0)&&fe.push(U[ze]);return fe};Y||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var _e=r(arguments.length>0?arguments[0]:void 0),xe=function oe(fe){this===V&&oe.call(z,fe),E(this,R)&&E(this[R],_e)&&(this[R][_e]=!1),$(this,_e,v(1,fe))};return T&&se&&$(V,_e,{configurable:!0,set:xe}),ae(_e)},S(D[F],"toString",function(){return this._k}),x.f=Q,w.f=pe,H("./_object-gopn").f=y.f=ce,H("./_object-pie").f=Le,C.f=Ke,T&&!H("./_library")&&S(V,"propertyIsEnumerable",Le,!0),n.f=function(ue){return ae(i(ue))}),g(g.G+g.W+g.F*!Y,{Symbol:D});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),X=0;ee.length>X;)i(ee[X++]);for(var G=b(i.store),Z=0;G.length>Z;)t(G[Z++]);g(g.S+g.F*!Y,"Symbol",{for:function(_e){return E(K,_e+="")?K[_e]:K[_e]=D(_e)},keyFor:function(_e){if(!ge(_e))throw TypeError(_e+" is not a symbol!");for(var xe in K)if(K[xe]===_e)return xe},useSetter:function(){se=!0},useSimple:function(){se=!1}}),g(g.S+g.F*!Y,"Object",{create:de,defineProperty:pe,defineProperties:Ne,getOwnPropertyDescriptor:Q,getOwnPropertyNames:ce,getOwnPropertySymbols:Ke});var ve=h(function(){C.f(1)});g(g.S+g.F*ve,"Object",{getOwnPropertySymbols:function(_e){return C.f(u(_e))}}),N&&g(g.S+g.F*(!Y||h(function(){var ue=D();return M([ue])!="[null]"||M({a:ue})!="{}"||M(Object(ue))!="{}"})),"JSON",{stringify:function(_e){for(var xe=[_e],oe=1,fe,Te;arguments.length>oe;)xe.push(arguments[oe++]);return Te=fe=xe[1],!l(fe)&&_e===void 0||ge(_e)?void 0:(e(fe)||(fe=function(it,et){if(typeof Te=="function"&&(et=Te.call(this,it,et)),!ge(et))return et}),xe[1]=fe,M.apply(N,xe))}}),D[F][j]||H("./_hide")(D[F],j,D[F].valueOf),a(D,"Symbol"),a(Math,"Math",!0),a(I.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(H,k,d){var I=H("./_export"),E=H("./_object-to-array")(!0);I(I.S,"Object",{entries:function(g){return E(g)}})},{"./_export":107,"./_object-to-array":143}],183:[function(H,k,d){"use strict";var I=H("./_export"),E=H("./_core"),T=H("./_global"),g=H("./_species-constructor"),S=H("./_promise-resolve");I(I.P+I.R,"Promise",{finally:function(h){var c=g(this,E.Promise||T.Promise),a=typeof h=="function";return this.then(a?function(r){return S(c,h()).then(function(){return r})}:h,a?function(r){return S(c,h()).then(function(){throw r})}:h)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(H,k,d){"use strict";var I=H("./_export"),E=H("./_new-promise-capability"),T=H("./_perform");I(I.S,"Promise",{try:function(S){var m=E.f(this),h=T(S);return(h.e?m.reject:m.resolve)(h.v),m.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(H,k,d){H("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(H,k,d){H("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(H,k,d){H("./es6.array.iterator");for(var I=H("./_global"),E=H("./_hide"),T=H("./_iterators"),g=H("./_wks")("toStringTag"),S="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(","),m=0;m<S.length;m++){var h=S[m],c=I[h],a=c&&c.prototype;a&&!a[g]&&E(a,g,h),T[h]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(H,k,d){var I=H("./_export"),E=H("./_task");I(I.G+I.B,{setImmediate:E.set,clearImmediate:E.clear})},{"./_export":107,"./_task":155}],189:[function(H,k,d){(function(I){"use strict";var E=H("babel-runtime/helpers/typeof"),T=g(E);function g(p){return p&&p.__esModule?p:{default:p}}function S(p){return Array.isArray?Array.isArray(p):f(p)==="[object Array]"}d.isArray=S;function m(p){return typeof p=="boolean"}d.isBoolean=m;function h(p){return p===null}d.isNull=h;function c(p){return p==null}d.isNullOrUndefined=c;function a(p){return typeof p=="number"}d.isNumber=a;function r(p){return typeof p=="string"}d.isString=r;function i(p){return(typeof p=="undefined"?"undefined":(0,T.default)(p))==="symbol"}d.isSymbol=i;function n(p){return p===void 0}d.isUndefined=n;function t(p){return f(p)==="[object RegExp]"}d.isRegExp=t;function s(p){return(typeof p=="undefined"?"undefined":(0,T.default)(p))==="object"&&p!==null}d.isObject=s;function e(p){return f(p)==="[object Date]"}d.isDate=e;function o(p){return f(p)==="[object Error]"||p instanceof Error}d.isError=o;function l(p){return typeof p=="function"}d.isFunction=l;function u(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"||(typeof p=="undefined"?"undefined":(0,T.default)(p))==="symbol"||typeof p=="undefined"}d.isPrimitive=u,d.isBuffer=I.isBuffer;function f(p){return Object.prototype.toString.call(p)}}).call(this,{isBuffer:H("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(H,k,d){"use strict";var I=H("babel-runtime/helpers/typeof"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(g){"use strict";var S=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(t,s,e,o){if(arguments.length===1&&a(t)==="string"&&!/\d/.test(t)&&(s=t,t=void 0),t=t||new Date,t instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");s=String(S.masks[s]||s||S.masks.default);var l=s.slice(0,4);(l==="UTC:"||l==="GMT:")&&(s=s.slice(4),e=!0,l==="GMT:"&&(o=!0));var u=e?"getUTC":"get",f=t[u+"Date"](),p=t[u+"Day"](),v=t[u+"Month"](),A=t[u+"FullYear"](),y=t[u+"Hours"](),x=t[u+"Minutes"](),C=t[u+"Seconds"](),w=t[u+"Milliseconds"](),b=e?0:t.getTimezoneOffset(),_=h(t),O=c(t),L={d:f,dd:m(f),ddd:S.i18n.dayNames[p],dddd:S.i18n.dayNames[p+7],m:v+1,mm:m(v+1),mmm:S.i18n.monthNames[v],mmmm:S.i18n.monthNames[v+12],yy:String(A).slice(2),yyyy:A,h:y%12||12,hh:m(y%12||12),H:y,HH:m(y),M:x,MM:m(x),s:C,ss:m(C),l:m(w,3),L:m(Math.round(w/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:o?"GMT":e?"UTC":(String(t).match(i)||[""]).pop().replace(n,""),o:(b>0?"-":"+")+m(Math.floor(Math.abs(b)/60)*100+Math.abs(b)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:_,N:O};return s.replace(r,function(D){return D in L?L[D]:D.slice(1,D.length-1)})}}();S.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"},S.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 m(r,i){for(r=String(r),i=i||2;r.length<i;)r="0"+r;return r}function h(r){var i=new Date(r.getFullYear(),r.getMonth(),r.getDate());i.setDate(i.getDate()-(i.getDay()+6)%7+3);var n=new Date(i.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var t=i.getTimezoneOffset()-n.getTimezoneOffset();i.setHours(i.getHours()-t);var s=(i-n)/(864e5*7);return 1+Math.floor(s)}function c(r){var i=r.getDay();return i===0&&(i=7),i}function a(r){return r===null?"null":r===void 0?"undefined":(typeof r=="undefined"?"undefined":(0,E.default)(r))!=="object"?typeof r=="undefined"?"undefined":(0,E.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return S}):(typeof d=="undefined"?"undefined":(0,E.default)(d))==="object"?k.exports=S:g.dateFormat=S})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(H,k,d){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var I=/["'&<>]/;k.exports=E;function E(T){var g=""+T,S=I.exec(g);if(!S)return g;var m,h="",c=0,a=0;for(c=S.index;c<g.length;c++){switch(g.charCodeAt(c)){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;default:continue}a!==c&&(h+=g.substring(a,c)),a=c+1,h+=m}return a!==c?h+g.substring(a,c):h}},{}],192:[function(H,k,d){function I(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}k.exports=I,I.EventEmitter=I,I.prototype._events=void 0,I.prototype._maxListeners=void 0,I.defaultMaxListeners=10,I.prototype.setMaxListeners=function(m){if(!T(m)||m<0||isNaN(m))throw TypeError("n must be a positive number");return this._maxListeners=m,this},I.prototype.emit=function(m){var h,c,a,r,i,n;if(this._events||(this._events={}),m==="error"&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(h=arguments[1],h instanceof Error)throw h;var t=new Error('Uncaught, unspecified "error" event. ('+h+")");throw t.context=h,t}if(c=this._events[m],S(c))return!1;if(E(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),c.apply(this,r)}else if(g(c))for(r=Array.prototype.slice.call(arguments,1),n=c.slice(),a=n.length,i=0;i<a;i++)n[i].apply(this,r);return!0},I.prototype.addListener=function(m,h){var c;if(!E(h))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",m,E(h.listener)?h.listener:h),this._events[m]?g(this._events[m])?this._events[m].push(h):this._events[m]=[this._events[m],h]:this._events[m]=h,g(this._events[m])&&!this._events[m].warned&&(S(this._maxListeners)?c=I.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[m].length>c&&(this._events[m].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[m].length),typeof console.trace=="function"&&console.trace())),this},I.prototype.on=I.prototype.addListener,I.prototype.once=function(m,h){if(!E(h))throw TypeError("listener must be a function");var c=!1;function a(){this.removeListener(m,a),c||(c=!0,h.apply(this,arguments))}return a.listener=h,this.on(m,a),this},I.prototype.removeListener=function(m,h){var c,a,r,i;if(!E(h))throw TypeError("listener must be a function");if(!this._events||!this._events[m])return this;if(c=this._events[m],r=c.length,a=-1,c===h||E(c.listener)&&c.listener===h)delete this._events[m],this._events.removeListener&&this.emit("removeListener",m,h);else if(g(c)){for(i=r;i-- >0;)if(c[i]===h||c[i].listener&&c[i].listener===h){a=i;break}if(a<0)return this;c.length===1?(c.length=0,delete this._events[m]):c.splice(a,1),this._events.removeListener&&this.emit("removeListener",m,h)}return this},I.prototype.removeAllListeners=function(m){var h,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[m]&&delete this._events[m],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(c=this._events[m],E(c))this.removeListener(m,c);else if(c)for(;c.length;)this.removeListener(m,c[c.length-1]);return delete this._events[m],this},I.prototype.listeners=function(m){var h;return!this._events||!this._events[m]?h=[]:E(this._events[m])?h=[this._events[m]]:h=this._events[m].slice(),h},I.prototype.listenerCount=function(m){if(this._events){var h=this._events[m];if(E(h))return 1;if(h)return h.length}return 0},I.listenerCount=function(m,h){return m.listenerCount(h)};function E(m){return typeof m=="function"}function T(m){return typeof m=="number"}function g(m){return typeof m=="object"&&m!==null}function S(m){return m===void 0}},{}],193:[function(H,k,d){var I=H("http"),E=k.exports;for(var T in I)I.hasOwnProperty(T)&&(E[T]=I[T]);E.request=function(g,S){return g||(g={}),g.scheme="https",g.protocol="https:",I.request.call(this,g,S)}},{http:231}],194:[function(H,k,d){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var I=H("util"),E=H("ms");k.exports=function(T){if(typeof T=="number")return T;var g=E(T);if(g===void 0){var S=new Error(I.format("humanize-ms(%j) result undefined",T));console.warn(S.stack)}return g}},{ms:204,util:243}],195:[function(H,k,d){d.read=function(I,E,T,g,S){var m,h,c=S*8-g-1,a=(1<<c)-1,r=a>>1,i=-7,n=T?S-1:0,t=T?-1:1,s=I[E+n];for(n+=t,m=s&(1<<-i)-1,s>>=-i,i+=c;i>0;m=m*256+I[E+n],n+=t,i-=8);for(h=m&(1<<-i)-1,m>>=-i,i+=g;i>0;h=h*256+I[E+n],n+=t,i-=8);if(m===0)m=1-r;else{if(m===a)return h?NaN:(s?-1:1)*Infinity;h=h+Math.pow(2,g),m=m-r}return(s?-1:1)*h*Math.pow(2,m-g)},d.write=function(I,E,T,g,S,m){var h,c,a,r=m*8-S-1,i=(1<<r)-1,n=i>>1,t=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=g?0:m-1,e=g?1:-1,o=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===Infinity?(c=isNaN(E)?1:0,h=i):(h=Math.floor(Math.log(E)/Math.LN2),E*(a=Math.pow(2,-h))<1&&(h--,a*=2),h+n>=1?E+=t/a:E+=t*Math.pow(2,1-n),E*a>=2&&(h++,a/=2),h+n>=i?(c=0,h=i):h+n>=1?(c=(E*a-1)*Math.pow(2,S),h=h+n):(c=E*Math.pow(2,n-1)*Math.pow(2,S),h=0));S>=8;I[T+s]=c&255,s+=e,c/=256,S-=8);for(h=h<<S|c,r+=S;r>0;I[T+s]=h&255,s+=e,h/=256,r-=8);I[T+s-e]|=o*128}},{}],196:[function(H,k,d){typeof Object.create=="function"?k.exports=function(E,T){T&&(E.super_=T,E.prototype=Object.create(T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:k.exports=function(E,T){if(T){E.super_=T;var g=function(){};g.prototype=T.prototype,E.prototype=new g,E.prototype.constructor=E}}},{}],197:[function(H,k,d){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/k.exports=function(T){return T!=null&&(I(T)||E(T)||!!T._isBuffer)};function I(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function E(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&I(T.slice(0,0))}},{}],198:[function(H,k,d){var I={}.toString;k.exports=Array.isArray||function(E){return I.call(E)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(H,k){typeof exports=="object"&&typeof module!="undefined"?module.exports=k(H):typeof define=="function"&&define.amd?define(k):k(H)})(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(H){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(H){for(var k={},d=0,I=H.length;d<I;d++)k[H.charAt(d)]=d;return k}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(k){if(k.length<2){var d=k.charCodeAt(0);return d<128?k:d<2048?fromCharCode(192|d>>>6)+fromCharCode(128|d&63):fromCharCode(224|d>>>12&15)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}else{var d=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return fromCharCode(240|d>>>18&7)+fromCharCode(128|d>>>12&63)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(k){return k.replace(re_utob,cb_utob)},cb_encode=function(k){var d=[0,2,1][k.length%3],I=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),E=[b64chars.charAt(I>>>18),b64chars.charAt(I>>>12&63),d>=2?"=":b64chars.charAt(I>>>6&63),d>=1?"=":b64chars.charAt(I&63)];return E.join("")},btoa=global.btoa?function(H){return global.btoa(H)}:function(H){return H.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(k){var d=Object.prototype.toString.call(k)==="[object Uint8Array]";return d?k.toString("base64"):btoa(utob(String(k)))},encode=function(k,d){return d?_encode(String(k)).replace(/[+\/]/g,function(I){return I=="+"?"-":"_"}).replace(/=/g,""):_encode(k)},encodeURI=function(k){return encode(k,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(k){switch(k.length){case 4:var d=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),I=d-65536;return fromCharCode((I>>>10)+55296)+fromCharCode((I&1023)+56320);case 3:return fromCharCode((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return fromCharCode((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},btou=function(k){return k.replace(re_btou,cb_btou)},cb_decode=function(k){var d=k.length,I=d%4,E=(d>0?b64tab[k.charAt(0)]<<18:0)|(d>1?b64tab[k.charAt(1)]<<12:0)|(d>2?b64tab[k.charAt(2)]<<6:0)|(d>3?b64tab[k.charAt(3)]:0),T=[fromCharCode(E>>>16),fromCharCode(E>>>8&255),fromCharCode(E&255)];return T.length-=[0,0,2,1][I],T.join("")},_atob=global.atob?function(H){return global.atob(H)}:function(H){return H.replace(/\S{1,4}/g,cb_decode)},atob=function(k){return _atob(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(H){return(H.constructor===buffer.constructor?H:buffer.from(H,"base64")).toString()}:function(H){return(H.constructor===buffer.constructor?H:new buffer(H,"base64")).toString()}:function(H){return btou(_atob(H))},decode=function(k){return _decode(String(k).replace(/[-_]/g,function(d){return d=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var k=global.Base64;return global.Base64=_Base64,k};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(k){return{value:k,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(H){return encode(this,H)})),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(H,k,d){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";k.exports=E;var I=Object.prototype.hasOwnProperty;function E(T,g,S){if(!T)throw new TypeError("argument dest is required");if(!g)throw new TypeError("argument src is required");return S===void 0&&(S=!0),Object.getOwnPropertyNames(g).forEach(function(h){if(!S&&I.call(T,h))return;var c=Object.getOwnPropertyDescriptor(g,h);Object.defineProperty(T,h,c)}),T}},{}],201:[function(H,k,d){"use strict";function I(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}I.prototype.define=function(E,T){for(var g in E){var S=E[g].map(function(c){return c.toLowerCase()});g=g.toLowerCase();for(var m=0;m<S.length;m++){var h=S[m];if(h[0]=="*")continue;if(!T&&h in this._types)throw new Error('Attempt to change mapping for "'+h+'" extension from "'+this._types[h]+'" to "'+g+'". Pass `force=true` to allow this, otherwise remove "'+h+'" from the list of extensions for "'+g+'".');this._types[h]=g}if(T||!this._extensions[g]){var h=S[0];this._extensions[g]=h[0]!="*"?h:h.substr(1)}}},I.prototype.getType=function(E){E=String(E);var T=E.replace(/^.*[/\\]/,"").toLowerCase(),g=T.replace(/^.*\./,"").toLowerCase(),S=T.length<E.length,m=g.length<T.length-1;return(m||!S)&&this._types[g]||null},I.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},k.exports=I},{}],202:[function(H,k,d){"use strict";var I=H("./Mime");k.exports=new I(H("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(H,k,d){k.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(H,k,d){var I=1e3,E=I*60,T=E*60,g=T*24,S=g*7,m=g*365.25;k.exports=function(i,n){n=n||{};var t=typeof i;if(t==="string"&&i.length>0)return h(i);if(t==="number"&&isFinite(i))return n.long?a(i):c(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function h(i){if(i=String(i),i.length>100)return;var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!n)return;var t=parseFloat(n[1]),s=(n[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return t*m;case"weeks":case"week":case"w":return t*S;case"days":case"day":case"d":return t*g;case"hours":case"hour":case"hrs":case"hr":case"h":return t*T;case"minutes":case"minute":case"mins":case"min":case"m":return t*E;case"seconds":case"second":case"secs":case"sec":case"s":return t*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}function c(i){var n=Math.abs(i);return n>=g?Math.round(i/g)+"d":n>=T?Math.round(i/T)+"h":n>=E?Math.round(i/E)+"m":n>=I?Math.round(i/I)+"s":i+"ms"}function a(i){var n=Math.abs(i);return n>=g?r(i,n,g,"day"):n>=T?r(i,n,T,"hour"):n>=E?r(i,n,E,"minute"):n>=I?r(i,n,I,"second"):i+" ms"}function r(i,n,t,s){var e=n>=t*1.5;return Math.round(i/t)+" "+s+(e?"s":"")}},{}],205:[function(H,k,d){(function(I){function E(m,h){for(var c=0,a=m.length-1;a>=0;a--){var r=m[a];r==="."?m.splice(a,1):r===".."?(m.splice(a,1),c++):c&&(m.splice(a,1),c--)}if(h)for(;c--;c)m.unshift("..");return m}d.resolve=function(){for(var m="",h=!1,c=arguments.length-1;c>=-1&&!h;c--){var a=c>=0?arguments[c]:I.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;m=a+"/"+m,h=a.charAt(0)==="/"}return m=E(g(m.split("/"),function(r){return!!r}),!h).join("/"),(h?"/":"")+m||"."},d.normalize=function(m){var h=d.isAbsolute(m),c=S(m,-1)==="/";return m=E(g(m.split("/"),function(a){return!!a}),!h).join("/"),!m&&!h&&(m="."),m&&c&&(m+="/"),(h?"/":"")+m},d.isAbsolute=function(m){return m.charAt(0)==="/"},d.join=function(){var m=Array.prototype.slice.call(arguments,0);return d.normalize(g(m,function(h,c){if(typeof h!="string")throw new TypeError("Arguments to path.join must be strings");return h}).join("/"))},d.relative=function(m,h){m=d.resolve(m).substr(1),h=d.resolve(h).substr(1);function c(e){for(var o=0;o<e.length&&!(e[o]!=="");o++);for(var l=e.length-1;l>=0&&!(e[l]!=="");l--);return o>l?[]:e.slice(o,l-o+1)}for(var a=c(m.split("/")),r=c(h.split("/")),i=Math.min(a.length,r.length),n=i,t=0;t<i;t++)if(a[t]!==r[t]){n=t;break}for(var s=[],t=n;t<a.length;t++)s.push("..");return s=s.concat(r.slice(n)),s.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(m){if(typeof m!="string"&&(m=m+""),m.length===0)return".";for(var h=m.charCodeAt(0),c=h===47,a=-1,r=!0,i=m.length-1;i>=1;--i)if(h=m.charCodeAt(i),h===47){if(!r){a=i;break}}else r=!1;return a===-1?c?"/":".":c&&a===1?"/":m.slice(0,a)};function T(m){typeof m!="string"&&(m=m+"");var h=0,c=-1,a=!0,r;for(r=m.length-1;r>=0;--r)if(m.charCodeAt(r)===47){if(!a){h=r+1;break}}else c===-1&&(a=!1,c=r+1);return c===-1?"":m.slice(h,c)}d.basename=function(m,h){var c=T(m);return h&&c.substr(-1*h.length)===h&&(c=c.substr(0,c.length-h.length)),c},d.extname=function(m){typeof m!="string"&&(m=m+"");for(var h=-1,c=0,a=-1,r=!0,i=0,n=m.length-1;n>=0;--n){var t=m.charCodeAt(n);if(t===47){if(!r){c=n+1;break}continue}a===-1&&(r=!1,a=n+1),t===46?h===-1?h=n:i!==1&&(i=1):h!==-1&&(i=-1)}return h===-1||a===-1||i===0||i===1&&h===a-1&&h===c+1?"":m.slice(h,a)};function g(m,h){if(m.filter)return m.filter(h);for(var c=[],a=0;a<m.length;a++)h(m[a],a,m)&&c.push(m[a]);return c}var S="ab".substr(-1)==="b"?function(m,h,c){return m.substr(h,c)}:function(m,h,c){return h<0&&(h=m.length+h),m.substr(h,c)}}).call(this,H("_process"))},{_process:208}],206:[function(H,k,d){(function(I){/*!
|
|
|
* 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 E={function:!0,object:!0},T=E[typeof window]&&window||this,g=T,S=E[typeof d]&&d,m=E[typeof k]&&k&&!k.nodeType&&k,h=S&&m&&typeof I=="object"&&I;h&&(h.global===h||h.window===h||h.self===h)&&(T=h);var c=Math.pow(2,53)-1,a=/\bOpera/,r=this,i=Object.prototype,n=i.hasOwnProperty,t=i.toString;function s(w){return w=String(w),w.charAt(0).toUpperCase()+w.slice(1)}function e(w,b,_){var O={"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 b&&_&&/^Win/i.test(w)&&!/^Windows Phone /i.test(w)&&(O=O[/[\d.]+$/.exec(w)])&&(w="Windows "+O),w=String(w),b&&_&&(w=w.replace(RegExp(b,"i"),_)),w=l(w.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]),w}function o(w,b){var _=-1,O=w?w.length:0;if(typeof O=="number"&&O>-1&&O<=c)for(;++_<O;)b(w[_],_,w);else u(w,b)}function l(w){return w=y(w),/^(?:webOS|i(?:OS|P))/.test(w)?w:s(w)}function u(w,b){for(var _ in w)n.call(w,_)&&b(w[_],_,w)}function f(w){return w==null?s(w):t.call(w).slice(8,-1)}function p(w,b){var _=w!=null?typeof w[b]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!w[b]:!0)}function v(w){return String(w).replace(/([ -])(?!$)/g,"$1?")}function A(w,b){var _=null;return o(w,function(O,L){_=b(_,O,L,w)}),_}function y(w){return String(w).replace(/^ +| +$/g,"")}function x(w){var b=T,_=w&&typeof w=="object"&&f(w)!="String";_&&(b=w,w=null);var O=b.navigator||{},L=O.userAgent||"";w||(w=L);var D=_||r==g,N=_?!!O.likeChrome:/\bChrome\b/.test(w)&&!/internal|\n/i.test(t.toString()),M="Object",F=_?M:"ScriptBridgingProxyObject",R=_?M:"Environment",j=_&&b.java?"JavaPackage":f(b.java),B=_?M:"RuntimeObject",K=/\bJava/.test(j)&&b.java,U=K&&f(b.environment)==R,z=K?"a":"\u03B1",V=K?"b":"\u03B2",Y=b.document||{},J=b.operamini||b.opera,se=a.test(se=_&&J?J["[[Class]]"]:f(J))?se:J=null,$,ae=w,ge=[],pe=null,Ne=w==L,de=Ne&&J&&typeof J.version=="function"&&J.version(),Le,Q=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ce=ve(["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"]),Ke=_e([{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"]),ee=Z({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}}),X=ue(["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 G(Te){return A(Te,function(ze,it){return ze||RegExp("\\b"+(it.pattern||v(it))+"\\b","i").exec(w)&&(it.label||it)})}function Z(Te){return A(Te,function(ze,it,et){return ze||(it[Ke]||it[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ke)]||RegExp("\\b"+v(et)+"(?:\\b|\\w*\\d)","i").exec(w))&&et})}function ve(Te){return A(Te,function(ze,it){return ze||RegExp("\\b"+(it.pattern||v(it))+"\\b","i").exec(w)&&(it.label||it)})}function ue(Te){return A(Te,function(ze,it){var et=it.pattern||v(it);return!ze&&(ze=RegExp("\\b"+et+"(?:/[\\d.]+|[ \\w.]*)","i").exec(w))&&(ze=e(ze,et,it.label||it)),ze})}function _e(Te){return A(Te,function(ze,it){var et=it.pattern||v(it);return!ze&&(ze=RegExp("\\b"+et+" *\\d+[.\\w_]*","i").exec(w)||RegExp("\\b"+et+" *\\w+-[\\w]*","i").exec(w)||RegExp("\\b"+et+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(w))&&((ze=String(it.label&&!RegExp(et,"i").test(it.label)?it.label:ze).split("/"))[1]&&!/[\d.]+/.test(ze[0])&&(ze[0]+=" "+ze[1]),it=it.label||it,ze=l(ze[0].replace(RegExp(et,"i"),it).replace(RegExp("; *(?:"+it+"[_-])?","i")," ").replace(RegExp("("+it+")[-_.]?(\\w)","i"),"$1 $2"))),ze})}function xe(Te){return A(Te,function(ze,it){return ze||(RegExp(it+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(w)||0)[1]||null})}function oe(){return this.description||""}if(Q&&(Q=[Q]),ee&&!Ke&&(Ke=_e([ee])),($=/\bGoogle TV\b/.exec(Ke))&&(Ke=$[0]),/\bSimulator\b/i.test(w)&&(Ke=(Ke?Ke+" ":"")+"Simulator"),ce=="Opera Mini"&&/\bOPiOS\b/.test(w)&&ge.push("running in Turbo/Uncompressed mode"),ce=="IE"&&/\blike iPhone OS\b/.test(w)?($=x(w.replace(/like iPhone OS/,"")),ee=$.manufacturer,Ke=$.product):/^iP/.test(Ke)?(ce||(ce="Safari"),X="iOS"+(($=/ OS ([\d_]+)/i.exec(w))?" "+$[1].replace(/_/g,"."):"")):ce=="Konqueror"&&!/buntu/i.test(X)?X="Kubuntu":ee&&ee!="Google"&&(/Chrome/.test(ce)&&!/\bMobile Safari\b/i.test(w)||/\bVita\b/.test(Ke))||/\bAndroid\b/.test(X)&&/^Chrome/.test(ce)&&/\bVersion\//i.test(w)?(ce="Android Browser",X=/\bAndroid\b/.test(X)?X:"Android"):ce=="Silk"?(/\bMobi/i.test(w)||(X="Android",ge.unshift("desktop mode")),/Accelerated *= *true/i.test(w)&&ge.unshift("accelerated")):ce=="PaleMoon"&&($=/\bFirefox\/([\d.]+)\b/.exec(w))?ge.push("identifying as Firefox "+$[1]):ce=="Firefox"&&($=/\b(Mobile|Tablet|TV)\b/i.exec(w))?(X||(X="Firefox OS"),Ke||(Ke=$[1])):!ce||($=!/\bMinefield\b/i.test(w)&&/\b(?:Firefox|Safari)\b/.exec(ce))?(ce&&!Ke&&/[\/,]|^[^(]+?\)/.test(w.slice(w.indexOf($+"/")+8))&&(ce=null),($=Ke||ee||X)&&(Ke||ee||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(X))&&(ce=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(X)?X:$)+" Browser")):ce=="Electron"&&($=(/\bChrome\/([\d.]+)\b/.exec(w)||0)[1])&&ge.push("Chromium "+$),de||(de=xe(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",v(ce),"(?:Firefox|Minefield|NetFront)"])),($=Q=="iCab"&&parseFloat(de)>3&&"WebKit"||/\bOpera\b/.test(ce)&&(/\bOPR\b/.test(w)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(w)&&!/^(?:Trident|EdgeHTML)$/.test(Q)&&"WebKit"||!Q&&/\bMSIE\b/i.test(w)&&(X=="Mac OS"?"Tasman":"Trident")||Q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ce)&&"NetFront")&&(Q=[$]),ce=="IE"&&($=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(w)||0)[1])?(ce+=" Mobile",X="Windows Phone "+(/\+$/.test($)?$:$+".x"),ge.unshift("desktop mode")):/\bWPDesktop\b/i.test(w)?(ce="IE Mobile",X="Windows Phone 8.x",ge.unshift("desktop mode"),de||(de=(/\brv:([\d.]+)/.exec(w)||0)[1])):ce!="IE"&&Q=="Trident"&&($=/\brv:([\d.]+)/.exec(w))&&(ce&&ge.push("identifying as "+ce+(de?" "+de:"")),ce="IE",de=$[1]),Ne){if(p(b,"global"))if(K&&($=K.lang.System,ae=$.getProperty("os.arch"),X=X||$.getProperty("os.name")+" "+$.getProperty("os.version")),U){try{de=b.require("ringo/engine").version.join("."),ce="RingoJS"}catch(Te){($=b.system)&&$.global.system==b.system&&(ce="Narwhal",X||(X=$[0].os||null))}ce||(ce="Rhino")}else typeof b.process=="object"&&!b.process.browser&&($=b.process)&&(typeof $.versions=="object"&&(typeof $.versions.electron=="string"?(ge.push("Node "+$.versions.node),ce="Electron",de=$.versions.electron):typeof $.versions.nw=="string"&&(ge.push("Chromium "+de,"Node "+$.versions.node),ce="NW.js",de=$.versions.nw)),ce||(ce="Node.js",ae=$.arch,X=$.platform,de=/[\d.]+/.exec($.version),de=de?de[0]:null));else f($=b.runtime)==F?(ce="Adobe AIR",X=$.flash.system.Capabilities.os):f($=b.phantom)==B?(ce="PhantomJS",de=($=$.version||null)&&$.major+"."+$.minor+"."+$.patch):typeof Y.documentMode=="number"&&($=/\bTrident\/(\d+)/i.exec(w))?(de=[de,Y.documentMode],($=+$[1]+4)!=de[1]&&(ge.push("IE "+de[1]+" mode"),Q&&(Q[1]=""),de[1]=$),de=ce=="IE"?String(de[1].toFixed(1)):de[0]):typeof Y.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ce)&&(ge.push("masking as "+ce+" "+de),ce="IE",de="11.0",Q=["Trident"],X="Windows");X=X&&l(X)}if(de&&($=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(de)||/(?:alpha|beta)(?: ?\d)?/i.exec(w+";"+(Ne&&O.appMinorVersion))||/\bMinefield\b/i.test(w)&&"a")&&(pe=/b/i.test($)?"beta":"alpha",de=de.replace(RegExp($+"\\+?$"),"")+(pe=="beta"?V:z)+(/\d+\+?/.exec($)||"")),ce=="Fennec"||ce=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(X))ce="Firefox Mobile";else if(ce=="Maxthon"&&de)de=de.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ke))Ke=="Xbox 360"&&(X=null),Ke=="Xbox 360"&&/\bIEMobile\b/.test(w)&&ge.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ce)||ce&&!Ke&&!/Browser|Mobi/.test(ce))&&(X=="Windows CE"||/Mobi/i.test(w)))ce+=" Mobile";else if(ce=="IE"&&Ne)try{b.external===null&&ge.unshift("platform preview")}catch(Te){ge.unshift("embedded")}else(/\bBlackBerry\b/.test(Ke)||/\bBB10\b/.test(w))&&($=(RegExp(Ke.replace(/ +/g," *")+"/([.\\d]+)","i").exec(w)||0)[1]||de)?($=[$,/BB10/.test(w)],X=($[1]?(Ke=null,ee="BlackBerry"):"Device Software")+" "+$[0],de=null):this!=u&&Ke!="Wii"&&(Ne&&J||/Opera/.test(ce)&&/\b(?:MSIE|Firefox)\b/i.test(w)||ce=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(X)||ce=="IE"&&(X&&!/^Win/.test(X)&&de>5.5||/\bWindows XP\b/.test(X)&&de>8||de==8&&!/\bTrident\b/.test(w)))&&!a.test($=x.call(u,w.replace(a,"")+";"))&&$.name&&($="ing as "+$.name+(($=$.version)?" "+$:""),a.test(ce)?(/\bIE\b/.test($)&&X=="Mac OS"&&(X=null),$="identify"+$):($="mask"+$,se?ce=l(se.replace(/([a-z])([A-Z])/g,"$1 $2")):ce="Opera",/\bIE\b/.test($)&&(X=null),Ne||(de=null)),Q=["Presto"],ge.push($));($=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(w)||0)[1])&&($=[parseFloat($.replace(/\.(\d)$/,".0$1")),$],ce=="Safari"&&$[1].slice(-1)=="+"?(ce="WebKit Nightly",pe="alpha",de=$[1].slice(0,-1)):(de==$[1]||de==($[2]=(/\bSafari\/([\d.]+\+?)/i.exec(w)||0)[1]))&&(de=null),$[1]=(/\bChrome\/([\d.]+)/i.exec(w)||0)[1],$[0]==537.36&&$[2]==537.36&&parseFloat($[1])>=28&&Q=="WebKit"&&(Q=["Blink"]),!Ne||!N&&!$[1]?(Q&&(Q[1]="like Safari"),$=($=$[0],$<400?1:$<500?2:$<526?3:$<533?4:$<534?"4+":$<535?5:$<537?6:$<538?7:$<601?8:"8")):(Q&&(Q[1]="like Chrome"),$=$[1]||($=$[0],$<530?1:$<532?2:$<532.05?3:$<533?4:$<534.03?5:$<534.07?6:$<534.1?7:$<534.13?8:$<534.16?9:$<534.24?10:$<534.3?11:$<535.01?12:$<535.02?"13+":$<535.07?15:$<535.11?16:$<535.19?17:$<536.05?18:$<536.1?19:$<537.01?20:$<537.11?"21+":$<537.13?23:$<537.18?24:$<537.24?25:$<537.36?26:Q!="Blink"?"27":"28")),Q&&(Q[1]+=" "+($+=typeof $=="number"?".x":/[.+]/.test($)?"":"+")),ce=="Safari"&&(!de||parseInt(de)>45)&&(de=$)),ce=="Opera"&&($=/\bzbov|zvav$/.exec(X))?(ce+=" ",ge.unshift("desktop mode"),$=="zvav"?(ce+="Mini",de=null):ce+="Mobile",X=X.replace(RegExp(" *"+$+"$"),"")):ce=="Safari"&&/\bChrome\b/.exec(Q&&Q[1])&&(ge.unshift("desktop mode"),ce="Chrome Mobile",de=null,/\bOS X\b/.test(X)?(ee="Apple",X="iOS 4.3+"):X=null),de&&de.indexOf($=/[\d.]+$/.exec(X))==0&&w.indexOf("/"+$+"-")>-1&&(X=y(X.replace($,""))),Q&&!/\b(?:Avant|Nook)\b/.test(ce)&&(/Browser|Lunascape|Maxthon/.test(ce)||ce!="Safari"&&/^iOS/.test(X)&&/\bSafari\b/.test(Q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ce)&&Q[1])&&(($=Q[Q.length-1])&&ge.push($)),ge.length&&(ge=["("+ge.join("; ")+")"]),ee&&Ke&&Ke.indexOf(ee)<0&&ge.push("on "+ee),Ke&&ge.push((/^on /.test(ge[ge.length-1])?"":"on ")+Ke),X&&($=/ ([\d.+]+)$/.exec(X),Le=$&&X.charAt(X.length-$[0].length-1)=="/",X={architecture:32,family:$&&!Le?X.replace($[0],""):X,version:$?$[1]:null,toString:function(){var ze=this.version;return this.family+(ze&&!Le?" "+ze:"")+(this.architecture==64?" 64-bit":"")}}),($=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ae))&&!/\bi686\b/i.test(ae)?(X&&(X.architecture=64,X.family=X.family.replace(RegExp(" *"+$),"")),ce&&(/\bWOW64\b/i.test(w)||Ne&&/\w(?:86|32)$/.test(O.cpuClass||O.platform)&&!/\bWin64; x64\b/i.test(w))&&ge.unshift("32-bit")):X&&/^OS X/.test(X.family)&&ce=="Chrome"&&parseFloat(de)>=39&&(X.architecture=64),w||(w=null);var fe={};return fe.description=w,fe.layout=Q&&Q[0],fe.manufacturer=ee,fe.name=ce,fe.prerelease=pe,fe.product=Ke,fe.ua=w,fe.version=ce&&de,fe.os=X||{architecture:null,family:null,version:null,toString:function(){return"null"}},fe.parse=x,fe.toString=oe,fe.version&&ge.unshift(de),fe.name&&ge.unshift(ce),X&&ce&&!(X==String(X).split(" ")[0]&&(X==ce.split(" ")[0]||Ke))&&ge.push(Ke?"("+X+")":"on "+X),ge.length&&(fe.description=ge.join(" ")),fe}var C=x();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=C,define(function(){return C})):S&&m?u(C,function(w,b){S[b]=w}):T.platform=C}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(H,k,d){(function(I){"use strict";typeof I=="undefined"||!I.version||I.version.indexOf("v0.")===0||I.version.indexOf("v1.")===0&&I.version.indexOf("v1.8.")!==0?k.exports={nextTick:E}:k.exports=I;function E(T,g,S,m){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var h=arguments.length,c,a;switch(h){case 0:case 1:return I.nextTick(T);case 2:return I.nextTick(function(){T.call(null,g)});case 3:return I.nextTick(function(){T.call(null,g,S)});case 4:return I.nextTick(function(){T.call(null,g,S,m)});default:for(c=new Array(h-1),a=0;a<c.length;)c[a++]=arguments[a];return I.nextTick(function(){T.apply(null,c)})}}}).call(this,H("_process"))},{_process:208}],208:[function(H,k,d){var I=k.exports={},E,T;function g(){throw new Error("setTimeout has not been defined")}function S(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=g}catch(o){E=g}try{typeof clearTimeout=="function"?T=clearTimeout:T=S}catch(o){T=S}})();function m(o){if(E===setTimeout)return setTimeout(o,0);if((E===g||!E)&&setTimeout)return E=setTimeout,setTimeout(o,0);try{return E(o,0)}catch(l){try{return E.call(null,o,0)}catch(u){return E.call(this,o,0)}}}function h(o){if(T===clearTimeout)return clearTimeout(o);if((T===S||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(o);try{return T(o)}catch(l){try{return T.call(null,o)}catch(u){return T.call(this,o)}}}var c=[],a=!1,r,i=-1;function n(){if(!a||!r)return;a=!1,r.length?c=r.concat(c):i=-1,c.length&&t()}function t(){if(a)return;var o=m(n);a=!0;for(var l=c.length;l;){for(r=c,c=[];++i<l;)r&&r[i].run();i=-1,l=c.length}r=null,a=!1,h(o)}I.nextTick=function(o){var l=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)l[u-1]=arguments[u];c.push(new s(o,l)),c.length===1&&!a&&m(t)};function s(o,l){this.fun=o,this.array=l}s.prototype.run=function(){this.fun.apply(null,this.array)},I.title="browser",I.browser=!0,I.env={},I.argv=[],I.version="",I.versions={};function e(){}I.on=e,I.addListener=e,I.once=e,I.off=e,I.removeListener=e,I.removeAllListeners=e,I.emit=e,I.prependListener=e,I.prependOnceListener=e,I.listeners=function(o){return[]},I.binding=function(o){throw new Error("process.binding is not supported")},I.cwd=function(){return"/"},I.chdir=function(o){throw new Error("process.chdir is not supported")},I.umask=function(){return 0}},{}],209:[function(H,k,d){(function(I){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(E){var T=typeof d=="object"&&d&&!d.nodeType&&d,g=typeof k=="object"&&k&&!k.nodeType&&k,S=typeof I=="object"&&I;(S.global===S||S.window===S||S.self===S)&&(E=S);var m,h=2147483647,c=36,a=1,r=26,i=38,n=700,t=72,s=128,e="-",o=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=c-a,v=Math.floor,A=String.fromCharCode,y;function x(j){throw new RangeError(f[j])}function C(j,B){for(var K=j.length,U=[];K--;)U[K]=B(j[K]);return U}function w(j,B){var K=j.split("@"),U="";K.length>1&&(U=K[0]+"@",j=K[1]),j=j.replace(u,".");var z=j.split("."),V=C(z,B).join(".");return U+V}function b(j){for(var B=[],K=0,U=j.length,z,V;K<U;)z=j.charCodeAt(K++),z>=55296&&z<=56319&&K<U?(V=j.charCodeAt(K++),(V&64512)==56320?B.push(((z&1023)<<10)+(V&1023)+65536):(B.push(z),K--)):B.push(z);return B}function _(j){return C(j,function(B){var K="";return B>65535&&(B-=65536,K+=A(B>>>10&1023|55296),B=56320|B&1023),K+=A(B),K}).join("")}function O(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:c}function L(j,B){return j+22+75*(j<26)-((B!=0)<<5)}function D(j,B,K){var U=0;for(j=K?v(j/n):j>>1,j+=v(j/B);j>p*r>>1;U+=c)j=v(j/p);return v(U+(p+1)*j/(j+i))}function N(j){var B=[],K=j.length,U,z=0,V=s,Y=t,J,se,$,ae,ge,pe,Ne,de,Le;for(J=j.lastIndexOf(e),J<0&&(J=0),se=0;se<J;++se)j.charCodeAt(se)>=128&&x("not-basic"),B.push(j.charCodeAt(se));for($=J>0?J+1:0;$<K;){for(ae=z,ge=1,pe=c;!($>=K&&x("invalid-input"),Ne=O(j.charCodeAt($++)),(Ne>=c||Ne>v((h-z)/ge))&&x("overflow"),z+=Ne*ge,de=pe<=Y?a:pe>=Y+r?r:pe-Y,Ne<de);pe+=c)Le=c-de,ge>v(h/Le)&&x("overflow"),ge*=Le;U=B.length+1,Y=D(z-ae,U,ae==0),v(z/U)>h-V&&x("overflow"),V+=v(z/U),z%=U,B.splice(z++,0,V)}return _(B)}function M(j){var B,K,U,z,V,Y,J,se,$,ae,ge,pe=[],Ne,de,Le,Q;for(j=b(j),Ne=j.length,B=s,K=0,V=t,Y=0;Y<Ne;++Y)ge=j[Y],ge<128&&pe.push(A(ge));for(U=z=pe.length,z&&pe.push(e);U<Ne;){for(J=h,Y=0;Y<Ne;++Y)ge=j[Y],ge>=B&&ge<J&&(J=ge);for(de=U+1,J-B>v((h-K)/de)&&x("overflow"),K+=(J-B)*de,B=J,Y=0;Y<Ne;++Y)if(ge=j[Y],ge<B&&++K>h&&x("overflow"),ge==B){for(se=K,$=c;!(ae=$<=V?a:$>=V+r?r:$-V,se<ae);$+=c)Q=se-ae,Le=c-ae,pe.push(A(L(ae+Q%Le,0))),se=v(Q/Le);pe.push(A(L(se,0))),V=D(K,de,U==z),K=0,++U}++K,++B}return pe.join("")}function F(j){return w(j,function(B){return o.test(B)?N(B.slice(4).toLowerCase()):B})}function R(j){return w(j,function(B){return l.test(B)?"xn--"+M(B):B})}if(m={version:"1.4.1",ucs2:{decode:b,encode:_},decode:N,encode:M,toASCII:R,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return m});else if(T&&g)if(k.exports==T)g.exports=m;else for(y in m)m.hasOwnProperty(y)&&(T[y]=m[y]);else E.punycode=m})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(H,k,d){"use strict";function I(T,g){return Object.prototype.hasOwnProperty.call(T,g)}k.exports=function(T,g,S,m){g=g||"&",S=S||"=";var h={};if(typeof T!="string"||T.length===0)return h;var c=/\+/g;T=T.split(g);var a=1e3;m&&typeof m.maxKeys=="number"&&(a=m.maxKeys);var r=T.length;a>0&&r>a&&(r=a);for(var i=0;i<r;++i){var n=T[i].replace(c,"%20"),t=n.indexOf(S),s,e,o,l;t>=0?(s=n.substr(0,t),e=n.substr(t+1)):(s=n,e=""),o=decodeURIComponent(s),l=decodeURIComponent(e),I(h,o)?E(h[o])?h[o].push(l):h[o]=[h[o],l]:h[o]=l}return h};var E=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(H,k,d){"use strict";var I=function(m){switch(typeof m){case"string":return m;case"boolean":return m?"true":"false";case"number":return isFinite(m)?m:"";default:return""}};k.exports=function(S,m,h,c){return m=m||"&",h=h||"=",S===null&&(S=void 0),typeof S=="object"?T(g(S),function(a){var r=encodeURIComponent(I(a))+h;return E(S[a])?T(S[a],function(i){return r+encodeURIComponent(I(i))}).join(m):r+encodeURIComponent(I(S[a]))}).join(m):c?encodeURIComponent(I(c))+h+encodeURIComponent(I(S)):""};var E=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"};function T(S,m){if(S.map)return S.map(m);for(var h=[],c=0;c<S.length;c++)h.push(m(S[c],c));return h}var g=Object.keys||function(S){var m=[];for(var h in S)Object.prototype.hasOwnProperty.call(S,h)&&m.push(h);return m}},{}],212:[function(H,k,d){"use strict";d.decode=d.parse=H("./decode"),d.encode=d.stringify=H("./encode")},{"./decode":210,"./encode":211}],213:[function(H,k,d){k.exports=H("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=S(I),T=H("babel-runtime/core-js/object/keys"),g=S(T);function S(l){return l&&l.__esModule?l:{default:l}}var m=H("process-nextick-args"),h=g.default||function(l){var u=[];for(var f in l)u.push(f);return u};k.exports=s;var c=(0,E.default)(H("core-util-is"));c.inherits=H("inherits");var a=H("./_stream_readable"),r=H("./_stream_writable");c.inherits(s,a);for(var i=h(r.prototype),n=0;n<i.length;n++){var t=i[n];s.prototype[t]||(s.prototype[t]=r.prototype[t])}function s(l){if(!(this instanceof s))return new s(l);a.call(this,l),r.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",e)}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(){if(this.allowHalfOpen||this._writableState.ended)return;m.nextTick(o,this)}function o(l){l.end()}Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=u,this._writableState.destroyed=u}}),s.prototype._destroy=function(l,u){this.push(null),this.end(),m.nextTick(u,l)}},{"./_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(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(h){return h&&h.__esModule?h:{default:h}}k.exports=m;var g=H("./_stream_transform"),S=(0,E.default)(H("core-util-is"));S.inherits=H("inherits"),S.inherits(m,g);function m(h){if(!(this instanceof m))return new m(h);g.call(this,h)}m.prototype._transform=function(h,c,a){a(null,h)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(H,k,d){(function(I,E){"use strict";var T=H("babel-runtime/core-js/object/get-prototype-of"),g=h(T),S=H("babel-runtime/core-js/object/create"),m=h(S);function h(Q){return Q&&Q.__esModule?Q:{default:Q}}var c=H("process-nextick-args");k.exports=b;var a=H("isarray"),r;b.ReadableState=w;var i=H("events").EventEmitter,n=function(ce,Ke){return ce.listeners(Ke).length},t=H("./internal/streams/stream"),s=H("safe-buffer").Buffer,e=E.Uint8Array||function(){};function o(Q){return s.from(Q)}function l(Q){return s.isBuffer(Q)||Q instanceof e}var u=(0,m.default)(H("core-util-is"));u.inherits=H("inherits");var f=H("util"),p=void 0;f&&f.debuglog?p=f.debuglog("stream"):p=function(){};var v=H("./internal/streams/BufferList"),A=H("./internal/streams/destroy"),y;u.inherits(b,t);var x=["error","close","destroy","pause","resume"];function C(Q,ce,Ke){if(typeof Q.prependListener=="function")return Q.prependListener(ce,Ke);!Q._events||!Q._events[ce]?Q.on(ce,Ke):a(Q._events[ce])?Q._events[ce].unshift(Ke):Q._events[ce]=[Ke,Q._events[ce]]}function w(Q,ce){r=r||H("./_stream_duplex"),Q=Q||{};var Ke=ce instanceof r;this.objectMode=!!Q.objectMode,Ke&&(this.objectMode=this.objectMode||!!Q.readableObjectMode);var ee=Q.highWaterMark,X=Q.readableHighWaterMark,G=this.objectMode?16:16*1024;ee||ee===0?this.highWaterMark=ee:Ke&&(X||X===0)?this.highWaterMark=X:this.highWaterMark=G,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,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=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&(y||(y=H("string_decoder/").StringDecoder),this.decoder=new y(Q.encoding),this.encoding=Q.encoding)}function b(Q){if(r=r||H("./_stream_duplex"),!(this instanceof b))return new b(Q);this._readableState=new w(Q,this),this.readable=!0,Q&&(typeof Q.read=="function"&&(this._read=Q.read),typeof Q.destroy=="function"&&(this._destroy=Q.destroy)),t.call(this)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ce){if(!this._readableState)return;this._readableState.destroyed=ce}}),b.prototype.destroy=A.destroy,b.prototype._undestroy=A.undestroy,b.prototype._destroy=function(Q,ce){this.push(null),ce(Q)},b.prototype.push=function(Q,ce){var Ke=this._readableState,ee;return Ke.objectMode?ee=!0:typeof Q=="string"&&(ce=ce||Ke.defaultEncoding,ce!==Ke.encoding&&(Q=s.from(Q,ce),ce=""),ee=!0),_(this,Q,ce,!1,ee)},b.prototype.unshift=function(Q){return _(this,Q,null,!0,!1)};function _(Q,ce,Ke,ee,X){var G=Q._readableState;if(ce===null)G.reading=!1,R(Q,G);else{var Z;X||(Z=L(G,ce)),Z?Q.emit("error",Z):G.objectMode||ce&&ce.length>0?(typeof ce!="string"&&!G.objectMode&&(0,g.default)(ce)!==s.prototype&&(ce=o(ce)),ee?G.endEmitted?Q.emit("error",new Error("stream.unshift() after end event")):O(Q,G,ce,!0):G.ended?Q.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Ke?(ce=G.decoder.write(ce),G.objectMode||ce.length!==0?O(Q,G,ce,!1):K(Q,G)):O(Q,G,ce,!1))):ee||(G.reading=!1)}return D(G)}function O(Q,ce,Ke,ee){ce.flowing&&ce.length===0&&!ce.sync?(Q.emit("data",Ke),Q.read(0)):(ce.length+=ce.objectMode?1:Ke.length,ee?ce.buffer.unshift(Ke):ce.buffer.push(Ke),ce.needReadable&&j(Q)),K(Q,ce)}function L(Q,ce){var Ke;return!l(ce)&&typeof ce!="string"&&ce!==void 0&&!Q.objectMode&&(Ke=new TypeError("Invalid non-string/buffer chunk")),Ke}function D(Q){return!Q.ended&&(Q.needReadable||Q.length<Q.highWaterMark||Q.length===0)}b.prototype.isPaused=function(){return this._readableState.flowing===!1},b.prototype.setEncoding=function(Q){return y||(y=H("string_decoder/").StringDecoder),this._readableState.decoder=new y(Q),this._readableState.encoding=Q,this};var N=8388608;function M(Q){return Q>=N?Q=N:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function F(Q,ce){return Q<=0||ce.length===0&&ce.ended?0:ce.objectMode?1:Q!==Q?ce.flowing&&ce.length?ce.buffer.head.data.length:ce.length:(Q>ce.highWaterMark&&(ce.highWaterMark=M(Q)),Q<=ce.length?Q:ce.ended?ce.length:(ce.needReadable=!0,0))}b.prototype.read=function(Q){p("read",Q),Q=parseInt(Q,10);var ce=this._readableState,Ke=Q;if(Q!==0&&(ce.emittedReadable=!1),Q===0&&ce.needReadable&&(ce.length>=ce.highWaterMark||ce.ended))return p("read: emitReadable",ce.length,ce.ended),ce.length===0&&ce.ended?Ne(this):j(this),null;if(Q=F(Q,ce),Q===0&&ce.ended)return ce.length===0&&Ne(this),null;var ee=ce.needReadable;p("need readable",ee),(ce.length===0||ce.length-Q<ce.highWaterMark)&&(ee=!0,p("length less than watermark",ee)),ce.ended||ce.reading?(ee=!1,p("reading or ended",ee)):ee&&(p("do read"),ce.reading=!0,ce.sync=!0,ce.length===0&&(ce.needReadable=!0),this._read(ce.highWaterMark),ce.sync=!1,ce.reading||(Q=F(Ke,ce)));var X;return Q>0?X=$(Q,ce):X=null,X===null?(ce.needReadable=!0,Q=0):ce.length-=Q,ce.length===0&&(ce.ended||(ce.needReadable=!0),Ke!==Q&&ce.ended&&Ne(this)),X!==null&&this.emit("data",X),X};function R(Q,ce){if(ce.ended)return;if(ce.decoder){var Ke=ce.decoder.end();Ke&&Ke.length&&(ce.buffer.push(Ke),ce.length+=ce.objectMode?1:Ke.length)}ce.ended=!0,j(Q)}function j(Q){var ce=Q._readableState;ce.needReadable=!1,ce.emittedReadable||(p("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?c.nextTick(B,Q):B(Q))}function B(Q){p("emit readable"),Q.emit("readable"),se(Q)}function K(Q,ce){ce.readingMore||(ce.readingMore=!0,c.nextTick(U,Q,ce))}function U(Q,ce){for(var Ke=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length<ce.highWaterMark&&!(p("maybeReadMore read 0"),Q.read(0),Ke===ce.length);)Ke=ce.length;ce.readingMore=!1}b.prototype._read=function(Q){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(Q,ce){var Ke=this,ee=this._readableState;switch(ee.pipesCount){case 0:ee.pipes=Q;break;case 1:ee.pipes=[ee.pipes,Q];break;default:ee.pipes.push(Q);break}ee.pipesCount+=1,p("pipe count=%d opts=%j",ee.pipesCount,ce);var X=(!ce||ce.end!==!1)&&Q!==I.stdout&&Q!==I.stderr,G=X?ve:et;ee.endEmitted?c.nextTick(G):Ke.once("end",G),Q.on("unpipe",Z);function Z(Oe,gt){p("onunpipe"),Oe===Ke&&(gt&>.hasUnpiped===!1&&(gt.hasUnpiped=!0,xe()))}function ve(){p("onend"),Q.end()}var ue=z(Ke);Q.on("drain",ue);var _e=!1;function xe(){p("cleanup"),Q.removeListener("close",ze),Q.removeListener("finish",it),Q.removeListener("drain",ue),Q.removeListener("error",Te),Q.removeListener("unpipe",Z),Ke.removeListener("end",ve),Ke.removeListener("end",et),Ke.removeListener("data",fe),_e=!0,ee.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&ue()}var oe=!1;Ke.on("data",fe);function fe(Oe){p("ondata"),oe=!1;var gt=Q.write(Oe);gt===!1&&!oe&&((ee.pipesCount===1&&ee.pipes===Q||ee.pipesCount>1&&Le(ee.pipes,Q)!==-1)&&!_e&&(p("false write response, pause",Ke._readableState.awaitDrain),Ke._readableState.awaitDrain++,oe=!0),Ke.pause())}function Te(Oe){p("onerror",Oe),et(),Q.removeListener("error",Te),n(Q,"error")===0&&Q.emit("error",Oe)}C(Q,"error",Te);function ze(){Q.removeListener("finish",it),et()}Q.once("close",ze);function it(){p("onfinish"),Q.removeListener("close",ze),et()}Q.once("finish",it);function et(){p("unpipe"),Ke.unpipe(Q)}return Q.emit("pipe",Ke),ee.flowing||(p("pipe resume"),Ke.resume()),Q};function z(Q){return function(){var ce=Q._readableState;p("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&n(Q,"data")&&(ce.flowing=!0,se(Q))}}b.prototype.unpipe=function(Q){var ce=this._readableState,Ke={hasUnpiped:!1};if(ce.pipesCount===0)return this;if(ce.pipesCount===1)return Q&&Q!==ce.pipes?this:(Q||(Q=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,Q&&Q.emit("unpipe",this,Ke),this);if(!Q){var ee=ce.pipes,X=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var G=0;G<X;G++)ee[G].emit("unpipe",this,Ke);return this}var Z=Le(ce.pipes,Q);return Z===-1?this:(ce.pipes.splice(Z,1),ce.pipesCount-=1,ce.pipesCount===1&&(ce.pipes=ce.pipes[0]),Q.emit("unpipe",this,Ke),this)},b.prototype.on=function(Q,ce){var Ke=t.prototype.on.call(this,Q,ce);if(Q==="data")this._readableState.flowing!==!1&&this.resume();else if(Q==="readable"){var ee=this._readableState;!ee.endEmitted&&!ee.readableListening&&(ee.readableListening=ee.needReadable=!0,ee.emittedReadable=!1,ee.reading?ee.length&&j(this):c.nextTick(V,this))}return Ke},b.prototype.addListener=b.prototype.on;function V(Q){p("readable nexttick read 0"),Q.read(0)}b.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(p("resume"),Q.flowing=!0,Y(this,Q)),this};function Y(Q,ce){ce.resumeScheduled||(ce.resumeScheduled=!0,c.nextTick(J,Q,ce))}function J(Q,ce){ce.reading||(p("resume read 0"),Q.read(0)),ce.resumeScheduled=!1,ce.awaitDrain=0,Q.emit("resume"),se(Q),ce.flowing&&!ce.reading&&Q.read(0)}b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function se(Q){var ce=Q._readableState;for(p("flow",ce.flowing);ce.flowing&&Q.read()!==null;);}b.prototype.wrap=function(Q){var ce=this,Ke=this._readableState,ee=!1;Q.on("end",function(){if(p("wrapped end"),Ke.decoder&&!Ke.ended){var Z=Ke.decoder.end();Z&&Z.length&&ce.push(Z)}ce.push(null)}),Q.on("data",function(Z){if(p("wrapped data"),Ke.decoder&&(Z=Ke.decoder.write(Z)),Ke.objectMode&&Z==null)return;if(!Ke.objectMode&&(!Z||!Z.length))return;var ve=ce.push(Z);ve||(ee=!0,Q.pause())});for(var X in Q)this[X]===void 0&&typeof Q[X]=="function"&&(this[X]=function(Z){return function(){return Q[Z].apply(Q,arguments)}}(X));for(var G=0;G<x.length;G++)Q.on(x[G],this.emit.bind(this,x[G]));return this._read=function(Z){p("wrapped _read",Z),ee&&(ee=!1,Q.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=$;function $(Q,ce){if(ce.length===0)return null;var Ke;return ce.objectMode?Ke=ce.buffer.shift():!Q||Q>=ce.length?(ce.decoder?Ke=ce.buffer.join(""):ce.buffer.length===1?Ke=ce.buffer.head.data:Ke=ce.buffer.concat(ce.length),ce.buffer.clear()):Ke=ae(Q,ce.buffer,ce.decoder),Ke}function ae(Q,ce,Ke){var ee;return Q<ce.head.data.length?(ee=ce.head.data.slice(0,Q),ce.head.data=ce.head.data.slice(Q)):Q===ce.head.data.length?ee=ce.shift():ee=Ke?ge(Q,ce):pe(Q,ce),ee}function ge(Q,ce){var Ke=ce.head,ee=1,X=Ke.data;for(Q-=X.length;Ke=Ke.next;){var G=Ke.data,Z=Q>G.length?G.length:Q;if(Z===G.length?X+=G:X+=G.slice(0,Q),Q-=Z,Q===0){Z===G.length?(++ee,Ke.next?ce.head=Ke.next:ce.head=ce.tail=null):(ce.head=Ke,Ke.data=G.slice(Z));break}++ee}return ce.length-=ee,X}function pe(Q,ce){var Ke=s.allocUnsafe(Q),ee=ce.head,X=1;for(ee.data.copy(Ke),Q-=ee.data.length;ee=ee.next;){var G=ee.data,Z=Q>G.length?G.length:Q;if(G.copy(Ke,Ke.length-Q,0,Z),Q-=Z,Q===0){Z===G.length?(++X,ee.next?ce.head=ee.next:ce.head=ce.tail=null):(ce.head=ee,ee.data=G.slice(Z));break}++X}return ce.length-=X,Ke}function Ne(Q){var ce=Q._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,c.nextTick(de,ce,Q))}function de(Q,ce){!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function Le(Q,ce){for(var Ke=0,ee=Q.length;Ke<ee;Ke++)if(Q[Ke]===ce)return Ke;return-1}}).call(this,H("_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(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(r){return r&&r.__esModule?r:{default:r}}k.exports=h;var g=H("./_stream_duplex"),S=(0,E.default)(H("core-util-is"));S.inherits=H("inherits"),S.inherits(h,g);function m(r,i){var n=this._transformState;n.transforming=!1;var t=n.writecb;if(!t)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,i!=null&&this.push(i),t(r);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function h(r){if(!(this instanceof h))return new h(r);g.call(this,r),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",c)}function c(){var r=this;typeof this._flush=="function"?this._flush(function(i,n){a(r,i,n)}):a(this,null,null)}h.prototype.push=function(r,i){return this._transformState.needTransform=!1,g.prototype.push.call(this,r,i)},h.prototype._transform=function(r,i,n){throw new Error("_transform() is not implemented")},h.prototype._write=function(r,i,n){var t=this._transformState;if(t.writecb=n,t.writechunk=r,t.writeencoding=i,!t.transforming){var s=this._readableState;(t.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},h.prototype._read=function(r){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},h.prototype._destroy=function(r,i){var n=this;g.prototype._destroy.call(this,r,function(t){i(t),n.emit("close")})};function a(r,i,n){if(i)return r.emit("error",i);if(n!=null&&r.push(n),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(H,k,d){(function(I,E){"use strict";var T=H("babel-runtime/core-js/object/define-property"),g=t(T),S=H("babel-runtime/core-js/symbol/has-instance"),m=t(S),h=H("babel-runtime/core-js/symbol"),c=t(h),a=H("babel-runtime/core-js/object/create"),r=t(a),i=H("babel-runtime/core-js/set-immediate"),n=t(i);function t(pe){return pe&&pe.__esModule?pe:{default:pe}}var s=H("process-nextick-args");k.exports=L;function e(pe,Ne,de){this.chunk=pe,this.encoding=Ne,this.callback=de,this.next=null}function o(pe){var Ne=this;this.next=null,this.entry=null,this.finish=function(){ge(Ne,pe)}}var l=!I.browser&&["v0.10","v0.9."].indexOf(I.version.slice(0,5))>-1?n.default:s.nextTick,u;L.WritableState=_;var f=(0,r.default)(H("core-util-is"));f.inherits=H("inherits");var p={deprecate:H("util-deprecate")},v=H("./internal/streams/stream"),A=H("safe-buffer").Buffer,y=E.Uint8Array||function(){};function x(pe){return A.from(pe)}function C(pe){return A.isBuffer(pe)||pe instanceof y}var w=H("./internal/streams/destroy");f.inherits(L,v);function b(){}function _(pe,Ne){u=u||H("./_stream_duplex"),pe=pe||{};var de=Ne instanceof u;this.objectMode=!!pe.objectMode,de&&(this.objectMode=this.objectMode||!!pe.writableObjectMode);var Le=pe.highWaterMark,Q=pe.writableHighWaterMark,ce=this.objectMode?16:16*1024;Le||Le===0?this.highWaterMark=Le:de&&(Q||Q===0)?this.highWaterMark=Q:this.highWaterMark=ce,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 Ke=pe.decodeStrings===!1;this.decodeStrings=!Ke,this.defaultEncoding=pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ee){K(Ne,ee)},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 o(this)}_.prototype.getBuffer=function(){for(var Ne=this.bufferedRequest,de=[];Ne;)de.push(Ne),Ne=Ne.next;return de},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(pe){}}();var O;typeof c.default=="function"&&m.default&&typeof Function.prototype[m.default]=="function"?(O=Function.prototype[m.default],(0,g.default)(L,m.default,{value:function(Ne){return O.call(this,Ne)?!0:this!==L?!1:Ne&&Ne._writableState instanceof _}})):O=function(Ne){return Ne instanceof this};function L(pe){if(u=u||H("./_stream_duplex"),!O.call(L,this)&&!(this instanceof u))return new L(pe);this._writableState=new _(pe,this),this.writable=!0,pe&&(typeof pe.write=="function"&&(this._write=pe.write),typeof pe.writev=="function"&&(this._writev=pe.writev),typeof pe.destroy=="function"&&(this._destroy=pe.destroy),typeof pe.final=="function"&&(this._final=pe.final)),v.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D(pe,Ne){var de=new Error("write after end");pe.emit("error",de),s.nextTick(Ne,de)}function N(pe,Ne,de,Le){var Q=!0,ce=!1;return de===null?ce=new TypeError("May not write null values to stream"):typeof de!="string"&&de!==void 0&&!Ne.objectMode&&(ce=new TypeError("Invalid non-string/buffer chunk")),ce&&(pe.emit("error",ce),s.nextTick(Le,ce),Q=!1),Q}L.prototype.write=function(pe,Ne,de){var Le=this._writableState,Q=!1,ce=!Le.objectMode&&C(pe);return ce&&!A.isBuffer(pe)&&(pe=x(pe)),typeof Ne=="function"&&(de=Ne,Ne=null),ce?Ne="buffer":Ne||(Ne=Le.defaultEncoding),typeof de!="function"&&(de=b),Le.ended?D(this,de):(ce||N(this,Le,pe,de))&&(Le.pendingcb++,Q=F(this,Le,ce,pe,Ne,de)),Q},L.prototype.cork=function(){var pe=this._writableState;pe.corked++},L.prototype.uncork=function(){var pe=this._writableState;pe.corked&&(pe.corked--,!pe.writing&&!pe.corked&&!pe.finished&&!pe.bufferProcessing&&pe.bufferedRequest&&V(this,pe))},L.prototype.setDefaultEncoding=function(Ne){if(typeof Ne=="string"&&(Ne=Ne.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ne+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ne);return this._writableState.defaultEncoding=Ne,this};function M(pe,Ne,de){return!pe.objectMode&&pe.decodeStrings!==!1&&typeof Ne=="string"&&(Ne=A.from(Ne,de)),Ne}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(pe,Ne,de,Le,Q,ce){if(!de){var Ke=M(Ne,Le,Q);Le!==Ke&&(de=!0,Q="buffer",Le=Ke)}var ee=Ne.objectMode?1:Le.length;Ne.length+=ee;var X=Ne.length<Ne.highWaterMark;if(X||(Ne.needDrain=!0),Ne.writing||Ne.corked){var G=Ne.lastBufferedRequest;Ne.lastBufferedRequest={chunk:Le,encoding:Q,isBuf:de,callback:ce,next:null},G?G.next=Ne.lastBufferedRequest:Ne.bufferedRequest=Ne.lastBufferedRequest,Ne.bufferedRequestCount+=1}else R(pe,Ne,!1,ee,Le,Q,ce);return X}function R(pe,Ne,de,Le,Q,ce,Ke){Ne.writelen=Le,Ne.writecb=Ke,Ne.writing=!0,Ne.sync=!0,de?pe._writev(Q,Ne.onwrite):pe._write(Q,ce,Ne.onwrite),Ne.sync=!1}function j(pe,Ne,de,Le,Q){--Ne.pendingcb,de?(s.nextTick(Q,Le),s.nextTick($,pe,Ne),pe._writableState.errorEmitted=!0,pe.emit("error",Le)):(Q(Le),pe._writableState.errorEmitted=!0,pe.emit("error",Le),$(pe,Ne))}function B(pe){pe.writing=!1,pe.writecb=null,pe.length-=pe.writelen,pe.writelen=0}function K(pe,Ne){var de=pe._writableState,Le=de.sync,Q=de.writecb;if(B(de),Ne)j(pe,de,Le,Ne,Q);else{var ce=Y(de);!ce&&!de.corked&&!de.bufferProcessing&&de.bufferedRequest&&V(pe,de),Le?l(U,pe,de,ce,Q):U(pe,de,ce,Q)}}function U(pe,Ne,de,Le){de||z(pe,Ne),Ne.pendingcb--,Le(),$(pe,Ne)}function z(pe,Ne){Ne.length===0&&Ne.needDrain&&(Ne.needDrain=!1,pe.emit("drain"))}function V(pe,Ne){Ne.bufferProcessing=!0;var de=Ne.bufferedRequest;if(pe._writev&&de&&de.next){var Le=Ne.bufferedRequestCount,Q=new Array(Le),ce=Ne.corkedRequestsFree;ce.entry=de;for(var Ke=0,ee=!0;de;)Q[Ke]=de,de.isBuf||(ee=!1),de=de.next,Ke+=1;Q.allBuffers=ee,R(pe,Ne,!0,Ne.length,Q,"",ce.finish),Ne.pendingcb++,Ne.lastBufferedRequest=null,ce.next?(Ne.corkedRequestsFree=ce.next,ce.next=null):Ne.corkedRequestsFree=new o(Ne),Ne.bufferedRequestCount=0}else{for(;de;){var X=de.chunk,G=de.encoding,Z=de.callback,ve=Ne.objectMode?1:X.length;if(R(pe,Ne,!1,ve,X,G,Z),de=de.next,Ne.bufferedRequestCount--,Ne.writing)break}de===null&&(Ne.lastBufferedRequest=null)}Ne.bufferedRequest=de,Ne.bufferProcessing=!1}L.prototype._write=function(pe,Ne,de){de(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(pe,Ne,de){var Le=this._writableState;typeof pe=="function"?(de=pe,pe=null,Ne=null):typeof Ne=="function"&&(de=Ne,Ne=null),pe!=null&&this.write(pe,Ne),Le.corked&&(Le.corked=1,this.uncork()),!Le.ending&&!Le.finished&&ae(this,Le,de)};function Y(pe){return pe.ending&&pe.length===0&&pe.bufferedRequest===null&&!pe.finished&&!pe.writing}function J(pe,Ne){pe._final(function(de){Ne.pendingcb--,de&&pe.emit("error",de),Ne.prefinished=!0,pe.emit("prefinish"),$(pe,Ne)})}function se(pe,Ne){!Ne.prefinished&&!Ne.finalCalled&&(typeof pe._final=="function"?(Ne.pendingcb++,Ne.finalCalled=!0,s.nextTick(J,pe,Ne)):(Ne.prefinished=!0,pe.emit("prefinish")))}function $(pe,Ne){var de=Y(Ne);return de&&(se(pe,Ne),Ne.pendingcb===0&&(Ne.finished=!0,pe.emit("finish"))),de}function ae(pe,Ne,de){Ne.ending=!0,$(pe,Ne),de&&(Ne.finished?s.nextTick(de):pe.once("finish",de)),Ne.ended=!0,pe.writable=!1}function ge(pe,Ne,de){var Le=pe.entry;for(pe.entry=null;Le;){var Q=Le.callback;Ne.pendingcb--,Q(de),Le=Le.next}Ne.corkedRequestsFree?Ne.corkedRequestsFree.next=pe:Ne.corkedRequestsFree=pe}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ne){if(!this._writableState)return;this._writableState.destroyed=Ne}}),L.prototype.destroy=w.destroy,L.prototype._undestroy=w.undestroy,L.prototype._destroy=function(pe,Ne){this.end(),Ne(pe)}}).call(this,H("_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(H,k,d){"use strict";function I(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}var E=H("safe-buffer").Buffer,T=H("util");function g(S,m,h){S.copy(m,h)}k.exports=function(){function S(){I(this,S),this.head=null,this.tail=null,this.length=0}return S.prototype.push=function(h){var c={data:h,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},S.prototype.unshift=function(h){var c={data:h,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},S.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},S.prototype.clear=function(){this.head=this.tail=null,this.length=0},S.prototype.join=function(h){if(this.length===0)return"";for(var c=this.head,a=""+c.data;c=c.next;)a+=h+c.data;return a},S.prototype.concat=function(h){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var c=E.allocUnsafe(h>>>0),a=this.head,r=0;a;)g(a.data,c,r),r+=a.data.length,a=a.next;return c},S}(),T&&T.inspect&&T.inspect.custom&&(k.exports.prototype[T.inspect.custom]=function(){var S=T.inspect({length:this.length});return this.constructor.name+" "+S})},{"safe-buffer":228,util:71}],220:[function(H,k,d){"use strict";var I=H("process-nextick-args");function E(S,m){var h=this,c=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return c||a?(m?m(S):S&&(!this._writableState||!this._writableState.errorEmitted)&&I.nextTick(g,this,S),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(S||null,function(r){!m&&r?(I.nextTick(g,h,r),h._writableState&&(h._writableState.errorEmitted=!0)):m&&m(r)}),this)}function T(){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 g(S,m){S.emit("error",m)}k.exports={destroy:E,undestroy:T}},{"process-nextick-args":207}],221:[function(H,k,d){"use strict";k.exports=H("events").EventEmitter},{events:192}],222:[function(H,k,d){k.exports=H("./readable").PassThrough},{"./readable":223}],223:[function(H,k,d){d=k.exports=H("./lib/_stream_readable.js"),d.Stream=d,d.Readable=d,d.Writable=H("./lib/_stream_writable.js"),d.Duplex=H("./lib/_stream_duplex.js"),d.Transform=H("./lib/_stream_transform.js"),d.PassThrough=H("./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(H,k,d){k.exports=H("./readable").Transform},{"./readable":223}],225:[function(H,k,d){k.exports=H("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(H,k,d){var I=function(){return this}()||Function("return this")(),E=I.regeneratorRuntime&&Object.getOwnPropertyNames(I).indexOf("regeneratorRuntime")>=0,T=E&&I.regeneratorRuntime;if(I.regeneratorRuntime=void 0,k.exports=H("./runtime"),E)I.regeneratorRuntime=T;else try{delete I.regeneratorRuntime}catch(g){I.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(H,k,d){!function(I){"use strict";var E=Object.prototype,T=E.hasOwnProperty,g,S=typeof Symbol=="function"?Symbol:{},m=S.iterator||"@@iterator",h=S.asyncIterator||"@@asyncIterator",c=S.toStringTag||"@@toStringTag",a=typeof k=="object",r=I.regeneratorRuntime;if(r){a&&(k.exports=r);return}r=I.regeneratorRuntime=a?k.exports:{};function i(F,R,j,B){var K=R&&R.prototype instanceof u?R:u,U=Object.create(K.prototype),z=new D(B||[]);return U._invoke=b(F,j,z),U}r.wrap=i;function n(F,R,j){try{return{type:"normal",arg:F.call(R,j)}}catch(B){return{type:"throw",arg:B}}}var t="suspendedStart",s="suspendedYield",e="executing",o="completed",l={};function u(){}function f(){}function p(){}var v={};v[m]=function(){return this};var A=Object.getPrototypeOf,y=A&&A(A(N([])));y&&y!==E&&T.call(y,m)&&(v=y);var x=p.prototype=u.prototype=Object.create(v);f.prototype=x.constructor=p,p.constructor=f,p[c]=f.displayName="GeneratorFunction";function C(F){["next","throw","return"].forEach(function(R){F[R]=function(j){return this._invoke(R,j)}})}r.isGeneratorFunction=function(F){var R=typeof F=="function"&&F.constructor;return R?R===f||(R.displayName||R.name)==="GeneratorFunction":!1},r.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,p):(F.__proto__=p,c in F||(F[c]="GeneratorFunction")),F.prototype=Object.create(x),F},r.awrap=function(F){return{__await:F}};function w(F){function R(K,U,z,V){var Y=n(F[K],F,U);if(Y.type==="throw")V(Y.arg);else{var J=Y.arg,se=J.value;return se&&typeof se=="object"&&T.call(se,"__await")?Promise.resolve(se.__await).then(function($){R("next",$,z,V)},function($){R("throw",$,z,V)}):Promise.resolve(se).then(function($){J.value=$,z(J)},V)}}var j;function B(K,U){function z(){return new Promise(function(V,Y){R(K,U,V,Y)})}return j=j?j.then(z,z):z()}this._invoke=B}C(w.prototype),w.prototype[h]=function(){return this},r.AsyncIterator=w,r.async=function(F,R,j,B){var K=new w(i(F,R,j,B));return r.isGeneratorFunction(R)?K:K.next().then(function(U){return U.done?U.value:K.next()})};function b(F,R,j){var B=t;return function(U,z){if(B===e)throw new Error("Generator is already running");if(B===o){if(U==="throw")throw z;return M()}for(j.method=U,j.arg=z;;){var V=j.delegate;if(V){var Y=_(V,j);if(Y){if(Y===l)continue;return Y}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(B===t)throw B=o,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);B=e;var J=n(F,R,j);if(J.type==="normal"){if(B=j.done?o:s,J.arg===l)continue;return{value:J.arg,done:j.done}}else J.type==="throw"&&(B=o,j.method="throw",j.arg=J.arg)}}}function _(F,R){var j=F.iterator[R.method];if(j===g){if(R.delegate=null,R.method==="throw"){if(F.iterator.return&&(R.method="return",R.arg=g,_(F,R),R.method==="throw"))return l;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var B=n(j,F.iterator,R.arg);if(B.type==="throw")return R.method="throw",R.arg=B.arg,R.delegate=null,l;var K=B.arg;if(!K)return R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,l;if(K.done)R[F.resultName]=K.value,R.next=F.nextLoc,R.method!=="return"&&(R.method="next",R.arg=g);else return K;return R.delegate=null,l}C(x),x[c]="Generator",x[m]=function(){return this},x.toString=function(){return"[object Generator]"};function O(F){var R={tryLoc:F[0]};1 in F&&(R.catchLoc=F[1]),2 in F&&(R.finallyLoc=F[2],R.afterLoc=F[3]),this.tryEntries.push(R)}function L(F){var R=F.completion||{};R.type="normal",delete R.arg,F.completion=R}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(O,this),this.reset(!0)}r.keys=function(F){var R=[];for(var j in F)R.push(j);return R.reverse(),function B(){for(;R.length;){var K=R.pop();if(K in F)return B.value=K,B.done=!1,B}return B.done=!0,B}};function N(F){if(F){var R=F[m];if(R)return R.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var j=-1,B=function K(){for(;++j<F.length;)if(T.call(F,j))return K.value=F[j],K.done=!1,K;return K.value=g,K.done=!0,K};return B.next=B}}return{next:M}}r.values=N;function M(){return{value:g,done:!0}}D.prototype={constructor:D,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(L),!R)for(var j in this)j.charAt(0)==="t"&&T.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=g)},stop:function(){this.done=!0;var R=this.tryEntries[0],j=R.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var j=this;function B(J,se){return z.type="throw",z.arg=R,j.next=J,se&&(j.method="next",j.arg=g),!!se}for(var K=this.tryEntries.length-1;K>=0;--K){var U=this.tryEntries[K],z=U.completion;if(U.tryLoc==="root")return B("end");if(U.tryLoc<=this.prev){var V=T.call(U,"catchLoc"),Y=T.call(U,"finallyLoc");if(V&&Y){if(this.prev<U.catchLoc)return B(U.catchLoc,!0);if(this.prev<U.finallyLoc)return B(U.finallyLoc)}else if(V){if(this.prev<U.catchLoc)return B(U.catchLoc,!0)}else if(Y){if(this.prev<U.finallyLoc)return B(U.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(R,j){for(var B=this.tryEntries.length-1;B>=0;--B){var K=this.tryEntries[B];if(K.tryLoc<=this.prev&&T.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var U=K;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var z=U?U.completion:{};return z.type=R,z.arg=j,U?(this.method="next",this.next=U.finallyLoc,l):this.complete(z)},complete:function(R,j){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&j&&(this.next=j),l},finish:function(R){for(var j=this.tryEntries.length-1;j>=0;--j){var B=this.tryEntries[j];if(B.finallyLoc===R)return this.complete(B.completion,B.afterLoc),L(B),l}},catch:function(R){for(var j=this.tryEntries.length-1;j>=0;--j){var B=this.tryEntries[j];if(B.tryLoc===R){var K=B.completion;if(K.type==="throw"){var U=K.arg;L(B)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(R,j,B){return this.delegate={iterator:N(R),resultName:j,nextLoc:B},this.method==="next"&&(this.arg=g),l}}}(function(){return this}()||Function("return this")())},{}],228:[function(H,k,d){var I=H("buffer"),E=I.Buffer;function T(S,m){for(var h in S)m[h]=S[h]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?k.exports=I:(T(I,d),d.Buffer=g);function g(S,m,h){return E(S,m,h)}T(E,g),g.from=function(S,m,h){if(typeof S=="number")throw new TypeError("Argument must not be a number");return E(S,m,h)},g.alloc=function(S,m,h){if(typeof S!="number")throw new TypeError("Argument must be a number");var c=E(S);return m!==void 0?typeof h=="string"?c.fill(m,h):c.fill(m):c.fill(0),c},g.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return E(S)},g.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return I.SlowBuffer(S)}},{buffer:73}],229:[function(H,k,d){(function(I){"use strict";var E=H("babel-runtime/core-js/string/from-code-point"),T=s(E),g=H("babel-runtime/core-js/json/stringify"),S=s(g),m=H("babel-runtime/helpers/typeof"),h=s(m),c=H("babel-runtime/core-js/object/define-property"),a=s(c),r=H("babel-runtime/core-js/object/keys"),i=s(r),n=H("babel-runtime/core-js/object/create"),t=s(n);function s(e){return e&&e.__esModule?e:{default:e}}(function(e){e.parser=function(G,Z){return new l(G,Z)},e.SAXParser=l,e.SAXStream=x,e.createStream=y,e.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function l(G,Z){if(!(this instanceof l))return new l(G,Z);var ve=this;f(ve),ve.q=ve.c="",ve.bufferCheckPosition=e.MAX_BUFFER_LENGTH,ve.opt=Z||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!G,ve.noscript=!!(G||ve.opt.noscript),ve.state=U.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,t.default)(e.XML_ENTITIES):(0,t.default)(e.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,t.default)(O)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),V(ve,"onready")}t.default||(Object.create=function(G){function Z(){}Z.prototype=G;var ve=new Z;return ve}),i.default||(Object.keys=function(G){var Z=[];for(var ve in G)G.hasOwnProperty(ve)&&Z.push(ve);return Z});function u(G){for(var Z=Math.max(e.MAX_BUFFER_LENGTH,10),ve=0,ue=0,_e=o.length;ue<_e;ue++){var xe=G[o[ue]].length;if(xe>Z)switch(o[ue]){case"textNode":J(G);break;case"cdata":Y(G,"oncdata",G.cdata),G.cdata="";break;case"script":Y(G,"onscript",G.script),G.script="";break;default:$(G,"Max buffer length exceeded: "+o[ue])}ve=Math.max(ve,xe)}var oe=e.MAX_BUFFER_LENGTH-ve;G.bufferCheckPosition=oe+G.position}function f(G){for(var Z=0,ve=o.length;Z<ve;Z++)G[o[Z]]=""}function p(G){J(G),G.cdata!==""&&(Y(G,"oncdata",G.cdata),G.cdata=""),G.script!==""&&(Y(G,"onscript",G.script),G.script="")}l.prototype={end:function(){ae(this)},write:X,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var v;try{v=H("stream").Stream}catch(G){v=function(){}}var A=e.EVENTS.filter(function(G){return G!=="error"&&G!=="end"});function y(G,Z){return new x(G,Z)}function x(G,Z){if(!(this instanceof x))return new x(G,Z);v.apply(this),this._parser=new l(G,Z),this.writable=!0,this.readable=!0;var ve=this;this._parser.onend=function(){ve.emit("end")},this._parser.onerror=function(ue){ve.emit("error",ue),ve._parser.error=null},this._decoder=null,A.forEach(function(ue){(0,a.default)(ve,"on"+ue,{get:function(){return ve._parser["on"+ue]},set:function(xe){if(!xe)return ve.removeAllListeners(ue),ve._parser["on"+ue]=xe,xe;ve.on(ue,xe)},enumerable:!0,configurable:!1})})}x.prototype=(0,t.default)(v.prototype,{constructor:{value:x}}),x.prototype.write=function(G){if(typeof I=="function"&&typeof I.isBuffer=="function"&&I.isBuffer(G)){if(!this._decoder){var Z=H("string_decoder").StringDecoder;this._decoder=new Z("utf8")}G=this._decoder.write(G)}return this._parser.write(G.toString()),this.emit("data",G),!0},x.prototype.end=function(G){return G&&G.length&&this.write(G),this._parser.end(),!0},x.prototype.on=function(G,Z){var ve=this;return!ve._parser["on"+G]&&A.indexOf(G)!==-1&&(ve._parser["on"+G]=function(){var ue=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ue.splice(0,0,G),ve.emit.apply(ve,ue)}),v.prototype.on.call(ve,G,Z)};var C="[CDATA[",w="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",O={xml:b,xmlns:_},L=/[:_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]/,D=/[:_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-]/,N=/[#:_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-]/;function F(G){return G===" "||G===`
|
|
|
`||G==="\r"||G===" "}function R(G){return G==='"'||G==="'"}function j(G){return G===">"||F(G)}function B(G,Z){return G.test(Z)}function K(G,Z){return!B(G,Z)}var U=0;e.STATE={BEGIN:U++,BEGIN_WHITESPACE:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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,i.default)(e.ENTITIES).forEach(function(G){var Z=e.ENTITIES[G],ve=typeof Z=="number"?String.fromCharCode(Z):Z;e.ENTITIES[G]=ve});for(var z in e.STATE)e.STATE[e.STATE[z]]=z;U=e.STATE;function V(G,Z,ve){G[Z]&&G[Z](ve)}function Y(G,Z,ve){G.textNode&&J(G),V(G,Z,ve)}function J(G){G.textNode=se(G.opt,G.textNode),G.textNode&&V(G,"ontext",G.textNode),G.textNode=""}function se(G,Z){return G.trim&&(Z=Z.trim()),G.normalize&&(Z=Z.replace(/\s+/g," ")),Z}function $(G,Z){return J(G),G.trackPosition&&(Z+=`
|
|
|
Line: `+G.line+`
|
|
|
Column: `+G.column+`
|
|
|
Char: `+G.c),Z=new Error(Z),G.error=Z,V(G,"onerror",Z),G}function ae(G){return G.sawRoot&&!G.closedRoot&&ge(G,"Unclosed root tag"),G.state!==U.BEGIN&&G.state!==U.BEGIN_WHITESPACE&&G.state!==U.TEXT&&$(G,"Unexpected end"),J(G),G.c="",G.closed=!0,V(G,"onend"),l.call(G,G.strict,G.opt),G}function ge(G,Z){if((typeof G=="undefined"?"undefined":(0,h.default)(G))!=="object"||!(G instanceof l))throw new Error("bad call to strictFail");G.strict&&$(G,Z)}function pe(G){G.strict||(G.tagName=G.tagName[G.looseCase]());var Z=G.tags[G.tags.length-1]||G,ve=G.tag={name:G.tagName,attributes:{}};G.opt.xmlns&&(ve.ns=Z.ns),G.attribList.length=0,Y(G,"onopentagstart",ve)}function Ne(G,Z){var ve=G.indexOf(":"),ue=ve<0?["",G]:G.split(":"),_e=ue[0],xe=ue[1];return Z&&G==="xmlns"&&(_e="xmlns",xe=""),{prefix:_e,local:xe}}function de(G){if(G.strict||(G.attribName=G.attribName[G.looseCase]()),G.attribList.indexOf(G.attribName)!==-1||G.tag.attributes.hasOwnProperty(G.attribName)){G.attribName=G.attribValue="";return}if(G.opt.xmlns){var Z=Ne(G.attribName,!0),ve=Z.prefix,ue=Z.local;if(ve==="xmlns")if(ue==="xml"&&G.attribValue!==b)ge(G,"xml: prefix must be bound to "+b+`
|
|
|
Actual: `+G.attribValue);else if(ue==="xmlns"&&G.attribValue!==_)ge(G,"xmlns: prefix must be bound to "+_+`
|
|
|
Actual: `+G.attribValue);else{var _e=G.tag,xe=G.tags[G.tags.length-1]||G;_e.ns===xe.ns&&(_e.ns=(0,t.default)(xe.ns)),_e.ns[ue]=G.attribValue}G.attribList.push([G.attribName,G.attribValue])}else G.tag.attributes[G.attribName]=G.attribValue,Y(G,"onattribute",{name:G.attribName,value:G.attribValue});G.attribName=G.attribValue=""}function Le(G,Z){if(G.opt.xmlns){var ve=G.tag,ue=Ne(G.tagName);ve.prefix=ue.prefix,ve.local=ue.local,ve.uri=ve.ns[ue.prefix]||"",ve.prefix&&!ve.uri&&(ge(G,"Unbound namespace prefix: "+(0,S.default)(G.tagName)),ve.uri=ue.prefix);var _e=G.tags[G.tags.length-1]||G;ve.ns&&_e.ns!==ve.ns&&(0,i.default)(ve.ns).forEach(function(wt){Y(G,"onopennamespace",{prefix:wt,uri:ve.ns[wt]})});for(var xe=0,oe=G.attribList.length;xe<oe;xe++){var fe=G.attribList[xe],Te=fe[0],ze=fe[1],it=Ne(Te,!0),et=it.prefix,Oe=it.local,gt=et===""?"":ve.ns[et]||"",Ge={name:Te,value:ze,prefix:et,local:Oe,uri:gt};et&&et!=="xmlns"&&!gt&&(ge(G,"Unbound namespace prefix: "+(0,S.default)(et)),Ge.uri=et),G.tag.attributes[Te]=Ge,Y(G,"onattribute",Ge)}G.attribList.length=0}G.tag.isSelfClosing=!!Z,G.sawRoot=!0,G.tags.push(G.tag),Y(G,"onopentag",G.tag),Z||(!G.noscript&&G.tagName.toLowerCase()==="script"?G.state=U.SCRIPT:G.state=U.TEXT,G.tag=null,G.tagName=""),G.attribName=G.attribValue="",G.attribList.length=0}function Q(G){if(!G.tagName){ge(G,"Weird empty close tag."),G.textNode+="</>",G.state=U.TEXT;return}if(G.script){if(G.tagName!=="script"){G.script+="</"+G.tagName+">",G.tagName="",G.state=U.SCRIPT;return}Y(G,"onscript",G.script),G.script=""}var Z=G.tags.length,ve=G.tagName;G.strict||(ve=ve[G.looseCase]());for(var ue=ve;Z--;){var _e=G.tags[Z];if(_e.name!==ue)ge(G,"Unexpected close tag");else break}if(Z<0){ge(G,"Unmatched closing tag: "+G.tagName),G.textNode+="</"+G.tagName+">",G.state=U.TEXT;return}G.tagName=ve;for(var xe=G.tags.length;xe-- >Z;){var oe=G.tag=G.tags.pop();G.tagName=G.tag.name,Y(G,"onclosetag",G.tagName);var fe={};for(var Te in oe.ns)fe[Te]=oe.ns[Te];var ze=G.tags[G.tags.length-1]||G;G.opt.xmlns&&oe.ns!==ze.ns&&(0,i.default)(oe.ns).forEach(function(it){var et=oe.ns[it];Y(G,"onclosenamespace",{prefix:it,uri:et})})}Z===0&&(G.closedRoot=!0),G.tagName=G.attribValue=G.attribName="",G.attribList.length=0,G.state=U.TEXT}function ce(G){var Z=G.entity,ve=Z.toLowerCase(),ue,_e="";return G.ENTITIES[Z]?G.ENTITIES[Z]:G.ENTITIES[ve]?G.ENTITIES[ve]:(Z=ve,Z.charAt(0)==="#"&&(Z.charAt(1)==="x"?(Z=Z.slice(2),ue=parseInt(Z,16),_e=ue.toString(16)):(Z=Z.slice(1),ue=parseInt(Z,10),_e=ue.toString(10))),Z=Z.replace(/^0+/,""),isNaN(ue)||_e.toLowerCase()!==Z?(ge(G,"Invalid character entity"),"&"+G.entity+";"):(0,T.default)(ue))}function Ke(G,Z){Z==="<"?(G.state=U.OPEN_WAKA,G.startTagPosition=G.position):F(Z)||(ge(G,"Non-whitespace before first tag."),G.textNode=Z,G.state=U.TEXT)}function ee(G,Z){var ve="";return Z<G.length&&(ve=G.charAt(Z)),ve}function X(G){var Z=this;if(this.error)throw this.error;if(Z.closed)return $(Z,"Cannot write after close. Assign an onready handler.");if(G===null)return ae(Z);(typeof G=="undefined"?"undefined":(0,h.default)(G))==="object"&&(G=G.toString());for(var ve=0,ue="";!(ue=ee(G,ve++),Z.c=ue,!ue);){Z.trackPosition&&(Z.position++,ue===`
|
|
|
`?(Z.line++,Z.column=0):Z.column++);switch(Z.state){case U.BEGIN:if(Z.state=U.BEGIN_WHITESPACE,ue==="\uFEFF")continue;Ke(Z,ue);continue;case U.BEGIN_WHITESPACE:Ke(Z,ue);continue;case U.TEXT:if(Z.sawRoot&&!Z.closedRoot){for(var _e=ve-1;ue&&ue!=="<"&&ue!=="&";)ue=ee(G,ve++),ue&&Z.trackPosition&&(Z.position++,ue===`
|
|
|
`?(Z.line++,Z.column=0):Z.column++);Z.textNode+=G.substring(_e,ve-1)}ue==="<"&&!(Z.sawRoot&&Z.closedRoot&&!Z.strict)?(Z.state=U.OPEN_WAKA,Z.startTagPosition=Z.position):(!F(ue)&&(!Z.sawRoot||Z.closedRoot)&&ge(Z,"Text data outside of root node."),ue==="&"?Z.state=U.TEXT_ENTITY:Z.textNode+=ue);continue;case U.SCRIPT:ue==="<"?Z.state=U.SCRIPT_ENDING:Z.script+=ue;continue;case U.SCRIPT_ENDING:ue==="/"?Z.state=U.CLOSE_TAG:(Z.script+="<"+ue,Z.state=U.SCRIPT);continue;case U.OPEN_WAKA:if(ue==="!")Z.state=U.SGML_DECL,Z.sgmlDecl="";else if(!F(ue))if(B(L,ue))Z.state=U.OPEN_TAG,Z.tagName=ue;else if(ue==="/")Z.state=U.CLOSE_TAG,Z.tagName="";else if(ue==="?")Z.state=U.PROC_INST,Z.procInstName=Z.procInstBody="";else{if(ge(Z,"Unencoded <"),Z.startTagPosition+1<Z.position){var xe=Z.position-Z.startTagPosition;ue=new Array(xe).join(" ")+ue}Z.textNode+="<"+ue,Z.state=U.TEXT}continue;case U.SGML_DECL:(Z.sgmlDecl+ue).toUpperCase()===C?(Y(Z,"onopencdata"),Z.state=U.CDATA,Z.sgmlDecl="",Z.cdata=""):Z.sgmlDecl+ue==="--"?(Z.state=U.COMMENT,Z.comment="",Z.sgmlDecl=""):(Z.sgmlDecl+ue).toUpperCase()===w?(Z.state=U.DOCTYPE,(Z.doctype||Z.sawRoot)&&ge(Z,"Inappropriately located doctype declaration"),Z.doctype="",Z.sgmlDecl=""):ue===">"?(Y(Z,"onsgmldeclaration",Z.sgmlDecl),Z.sgmlDecl="",Z.state=U.TEXT):(R(ue)&&(Z.state=U.SGML_DECL_QUOTED),Z.sgmlDecl+=ue);continue;case U.SGML_DECL_QUOTED:ue===Z.q&&(Z.state=U.SGML_DECL,Z.q=""),Z.sgmlDecl+=ue;continue;case U.DOCTYPE:ue===">"?(Z.state=U.TEXT,Y(Z,"ondoctype",Z.doctype),Z.doctype=!0):(Z.doctype+=ue,ue==="["?Z.state=U.DOCTYPE_DTD:R(ue)&&(Z.state=U.DOCTYPE_QUOTED,Z.q=ue));continue;case U.DOCTYPE_QUOTED:Z.doctype+=ue,ue===Z.q&&(Z.q="",Z.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:Z.doctype+=ue,ue==="]"?Z.state=U.DOCTYPE:R(ue)&&(Z.state=U.DOCTYPE_DTD_QUOTED,Z.q=ue);continue;case U.DOCTYPE_DTD_QUOTED:Z.doctype+=ue,ue===Z.q&&(Z.state=U.DOCTYPE_DTD,Z.q="");continue;case U.COMMENT:ue==="-"?Z.state=U.COMMENT_ENDING:Z.comment+=ue;continue;case U.COMMENT_ENDING:ue==="-"?(Z.state=U.COMMENT_ENDED,Z.comment=se(Z.opt,Z.comment),Z.comment&&Y(Z,"oncomment",Z.comment),Z.comment=""):(Z.comment+="-"+ue,Z.state=U.COMMENT);continue;case U.COMMENT_ENDED:ue!==">"?(ge(Z,"Malformed comment"),Z.comment+="--"+ue,Z.state=U.COMMENT):Z.state=U.TEXT;continue;case U.CDATA:ue==="]"?Z.state=U.CDATA_ENDING:Z.cdata+=ue;continue;case U.CDATA_ENDING:ue==="]"?Z.state=U.CDATA_ENDING_2:(Z.cdata+="]"+ue,Z.state=U.CDATA);continue;case U.CDATA_ENDING_2:ue===">"?(Z.cdata&&Y(Z,"oncdata",Z.cdata),Y(Z,"onclosecdata"),Z.cdata="",Z.state=U.TEXT):ue==="]"?Z.cdata+="]":(Z.cdata+="]]"+ue,Z.state=U.CDATA);continue;case U.PROC_INST:ue==="?"?Z.state=U.PROC_INST_ENDING:F(ue)?Z.state=U.PROC_INST_BODY:Z.procInstName+=ue;continue;case U.PROC_INST_BODY:if(!Z.procInstBody&&F(ue))continue;ue==="?"?Z.state=U.PROC_INST_ENDING:Z.procInstBody+=ue;continue;case U.PROC_INST_ENDING:ue===">"?(Y(Z,"onprocessinginstruction",{name:Z.procInstName,body:Z.procInstBody}),Z.procInstName=Z.procInstBody="",Z.state=U.TEXT):(Z.procInstBody+="?"+ue,Z.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:B(D,ue)?Z.tagName+=ue:(pe(Z),ue===">"?Le(Z):ue==="/"?Z.state=U.OPEN_TAG_SLASH:(F(ue)||ge(Z,"Invalid character in tag name"),Z.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:ue===">"?(Le(Z,!0),Q(Z)):(ge(Z,"Forward-slash in opening tag not followed by >"),Z.state=U.ATTRIB);continue;case U.ATTRIB:if(F(ue))continue;ue===">"?Le(Z):ue==="/"?Z.state=U.OPEN_TAG_SLASH:B(L,ue)?(Z.attribName=ue,Z.attribValue="",Z.state=U.ATTRIB_NAME):ge(Z,"Invalid attribute name");continue;case U.ATTRIB_NAME:ue==="="?Z.state=U.ATTRIB_VALUE:ue===">"?(ge(Z,"Attribute without value"),Z.attribValue=Z.attribName,de(Z),Le(Z)):F(ue)?Z.state=U.ATTRIB_NAME_SAW_WHITE:B(D,ue)?Z.attribName+=ue:ge(Z,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if(ue==="=")Z.state=U.ATTRIB_VALUE;else{if(F(ue))continue;ge(Z,"Attribute without value"),Z.tag.attributes[Z.attribName]="",Z.attribValue="",Y(Z,"onattribute",{name:Z.attribName,value:""}),Z.attribName="",ue===">"?Le(Z):B(L,ue)?(Z.attribName=ue,Z.state=U.ATTRIB_NAME):(ge(Z,"Invalid attribute name"),Z.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(F(ue))continue;R(ue)?(Z.q=ue,Z.state=U.ATTRIB_VALUE_QUOTED):(ge(Z,"Unquoted attribute value"),Z.state=U.ATTRIB_VALUE_UNQUOTED,Z.attribValue=ue);continue;case U.ATTRIB_VALUE_QUOTED:if(ue!==Z.q){ue==="&"?Z.state=U.ATTRIB_VALUE_ENTITY_Q:Z.attribValue+=ue;continue}de(Z),Z.q="",Z.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:F(ue)?Z.state=U.ATTRIB:ue===">"?Le(Z):ue==="/"?Z.state=U.OPEN_TAG_SLASH:B(L,ue)?(ge(Z,"No whitespace between attributes"),Z.attribName=ue,Z.attribValue="",Z.state=U.ATTRIB_NAME):ge(Z,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!j(ue)){ue==="&"?Z.state=U.ATTRIB_VALUE_ENTITY_U:Z.attribValue+=ue;continue}de(Z),ue===">"?Le(Z):Z.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(Z.tagName)ue===">"?Q(Z):B(D,ue)?Z.tagName+=ue:Z.script?(Z.script+="</"+Z.tagName,Z.tagName="",Z.state=U.SCRIPT):(F(ue)||ge(Z,"Invalid tagname in closing tag"),Z.state=U.CLOSE_TAG_SAW_WHITE);else{if(F(ue))continue;K(L,ue)?Z.script?(Z.script+="</"+ue,Z.state=U.SCRIPT):ge(Z,"Invalid tagname in closing tag."):Z.tagName=ue}continue;case U.CLOSE_TAG_SAW_WHITE:if(F(ue))continue;ue===">"?Q(Z):ge(Z,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:var oe,fe;switch(Z.state){case U.TEXT_ENTITY:oe=U.TEXT,fe="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:oe=U.ATTRIB_VALUE_QUOTED,fe="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:oe=U.ATTRIB_VALUE_UNQUOTED,fe="attribValue";break}ue===";"?(Z[fe]+=ce(Z),Z.entity="",Z.state=oe):B(Z.entity.length?M:N,ue)?Z.entity+=ue:(ge(Z,"Invalid character in entity name"),Z[fe]+="&"+Z.entity+ue,Z.entity="",Z.state=oe);continue;default:throw new Error(Z,"Unknown state: "+Z.state)}}return Z.position>=Z.bufferCheckPosition&&u(Z),Z}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var G=String.fromCharCode,Z=Math.floor,ve=function(){var _e=16384,xe=[],oe,fe,Te=-1,ze=arguments.length;if(!ze)return"";for(var it="";++Te<ze;){var et=Number(arguments[Te]);if(!isFinite(et)||et<0||et>1114111||Z(et)!==et)throw RangeError("Invalid code point: "+et);et<=65535?xe.push(et):(et-=65536,oe=(et>>10)+55296,fe=et%1024+56320,xe.push(oe,fe)),(Te+1===ze||xe.length>_e)&&(it+=G.apply(null,xe),xe.length=0)}return it};a.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,H("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(H,k,d){k.exports=T;var I=H("events").EventEmitter,E=H("inherits");E(T,I),T.Readable=H("readable-stream/readable.js"),T.Writable=H("readable-stream/writable.js"),T.Duplex=H("readable-stream/duplex.js"),T.Transform=H("readable-stream/transform.js"),T.PassThrough=H("readable-stream/passthrough.js"),T.Stream=T;function T(){I.call(this)}T.prototype.pipe=function(g,S){var m=this;function h(s){g.writable&&(g.write(s)===!1&&m.pause&&m.pause())}m.on("data",h);function c(){m.readable&&m.resume&&m.resume()}g.on("drain",c),!g._isStdio&&(!S||S.end!==!1)&&(m.on("end",r),m.on("close",i));var a=!1;function r(){if(a)return;a=!0,g.end()}function i(){if(a)return;a=!0,typeof g.destroy=="function"&&g.destroy()}function n(s){if(t(),I.listenerCount(this,"error")===0)throw s}m.on("error",n),g.on("error",n);function t(){m.removeListener("data",h),g.removeListener("drain",c),m.removeListener("end",r),m.removeListener("close",i),m.removeListener("error",n),g.removeListener("error",n),m.removeListener("end",t),m.removeListener("close",t),g.removeListener("close",t)}return m.on("end",t),m.on("close",t),g.on("close",t),g.emit("pipe",m),g}},{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(H,k,d){(function(I){var E=H("./lib/request"),T=H("./lib/response"),g=H("xtend"),S=H("builtin-status-codes"),m=H("url"),h=d;h.request=function(c,a){typeof c=="string"?c=m.parse(c):c=g(c);var r=I.location.protocol.search(/^https?:$/)===-1?"http:":"",i=c.protocol||r,n=c.hostname||c.host,t=c.port,s=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?i+"//"+n:"")+(t?":"+t:"")+s,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var e=new E(c);return a&&e.on("response",a),e},h.get=function(a,r){var i=h.request(a,r);return i.end(),i},h.ClientRequest=E,h.IncomingMessage=T.IncomingMessage,h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.globalAgent=new h.Agent,h.STATUS_CODES=S,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(H,k,d){(function(I){"use strict";d.fetch=h(I.fetch)&&h(I.ReadableStream),d.writableStream=h(I.WritableStream),d.abortController=h(I.AbortController),d.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),d.blobConstructor=!0}catch(c){}var E;function T(){if(E!==void 0)return E;if(I.XMLHttpRequest){E=new I.XMLHttpRequest;try{E.open("GET",I.XDomainRequest?"/":"https://example.com")}catch(c){E=null}}else E=null;return E}function g(c){var a=T();if(!a)return!1;try{return a.responseType=c,a.responseType===c}catch(r){}return!1}var S=typeof I.ArrayBuffer!="undefined",m=S&&h(I.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||S&&g("arraybuffer"),d.msstream=!d.fetch&&m&&g("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&S&&g("moz-chunked-arraybuffer"),d.overrideMimeType=d.fetch||(T()?h(T().overrideMimeType):!1),d.vbArray=h(I.VBArray);function h(c){return typeof c=="function"}E=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(H,k,d){(function(I,E,T){"use strict";var g=H("babel-runtime/core-js/object/keys"),S=m(g);function m(u){return u&&u.__esModule?u:{default:u}}var h=H("./capability"),c=H("inherits"),a=H("./response"),r=H("readable-stream"),i=H("to-arraybuffer"),n=a.IncomingMessage,t=a.readyStates;function s(u,f){return h.fetch&&f?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&u?"arraybuffer":h.vbArray&&u?"text:vbarray":"text"}var e=k.exports=function(u){var f=this;r.Writable.call(f),f._opts=u,f._body=[],f._headers={},u.auth&&f.setHeader("Authorization","Basic "+new T(u.auth).toString("base64")),(0,S.default)(u.headers).forEach(function(A){f.setHeader(A,u.headers[A])});var p,v=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!h.abortController)v=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!h.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");f._mode=s(p,v),f._fetchTimer=null,f.on("finish",function(){f._onFinish()})};c(e,r.Writable),e.prototype.setHeader=function(u,f){var p=this,v=u.toLowerCase();if(l.indexOf(v)!==-1)return;p._headers[v]={name:u,value:f}},e.prototype.getHeader=function(u){var f=this._headers[u.toLowerCase()];return f?f.value:null},e.prototype.removeHeader=function(u){var f=this;delete f._headers[u.toLowerCase()]},e.prototype._onFinish=function(){var u=this;if(u._destroyed)return;var f=u._opts,p=u._headers,v=null;f.method!=="GET"&&f.method!=="HEAD"&&(h.arraybuffer?v=i(T.concat(u._body)):h.blobConstructor?v=new E.Blob(u._body.map(function(b){return i(b)}),{type:(p["content-type"]||{}).value||""}):v=T.concat(u._body).toString());var A=[];if((0,S.default)(p).forEach(function(b){var _=p[b].name,O=p[b].value;Array.isArray(O)?O.forEach(function(L){A.push([_,L])}):A.push([_,O])}),u._mode==="fetch"){var y=null,x=null;if(h.abortController){var C=new AbortController;y=C.signal,u._fetchAbortController=C,"requestTimeout"in f&&f.requestTimeout!==0&&(u._fetchTimer=E.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},f.requestTimeout))}E.fetch(u._opts.url,{method:u._opts.method,headers:A,body:v||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:y}).then(function(b){u._fetchResponse=b,u._connect()},function(b){E.clearTimeout(u._fetchTimer),u._destroyed||u.emit("error",b)})}else{var w=u._xhr=new E.XMLHttpRequest;try{w.open(u._opts.method,u._opts.url,!0)}catch(b){I.nextTick(function(){u.emit("error",b)});return}"responseType"in w&&(w.responseType=u._mode.split(":")[0]),"withCredentials"in w&&(w.withCredentials=!!f.withCredentials),u._mode==="text"&&"overrideMimeType"in w&&w.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(w.timeout=f.requestTimeout,w.ontimeout=function(){u.emit("requestTimeout")}),A.forEach(function(b){w.setRequestHeader(b[0],b[1])}),u._response=null,w.onreadystatechange=function(){switch(w.readyState){case t.LOADING:case t.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(w.onprogress=function(){u._onXHRProgress()}),w.onerror=function(){if(u._destroyed)return;u.emit("error",new Error("XHR error"))};try{w.send(v)}catch(b){I.nextTick(function(){u.emit("error",b)});return}}};function o(u){try{var f=u.status;return f!==null&&f!==0}catch(p){return!1}}e.prototype._onXHRProgress=function(){var u=this;if(!o(u._xhr)||u._destroyed)return;u._response||u._connect(),u._response._onXHRProgress()},e.prototype._connect=function(){var u=this;if(u._destroyed)return;u._response=new n(u._xhr,u._fetchResponse,u._mode,u._fetchTimer),u._response.on("error",function(f){u.emit("error",f)}),u.emit("response",u._response)},e.prototype._write=function(u,f,p){var v=this;v._body.push(u),p()},e.prototype.abort=e.prototype.destroy=function(){var u=this;u._destroyed=!0,E.clearTimeout(u._fetchTimer),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort()},e.prototype.end=function(u,f,p){var v=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(v,u,f,p)},e.prototype.flushHeaders=function(){},e.prototype.setTimeout=function(){},e.prototype.setNoDelay=function(){},e.prototype.setSocketKeepAlive=function(){};var l=["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,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("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(H,k,d){(function(I,E,T){"use strict";var g=H("babel-runtime/core-js/promise"),S=m(g);function m(n){return n&&n.__esModule?n:{default:n}}var h=H("./capability"),c=H("inherits"),a=H("readable-stream"),r=d.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},i=d.IncomingMessage=function(n,t,s,e){var o=this;if(a.Readable.call(o),o._mode=s,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){I.nextTick(function(){o.emit("close")})}),s==="fetch"){var l=function y(){f.read().then(function(x){if(o._destroyed)return;if(x.done){E.clearTimeout(e),o.push(null);return}o.push(new T(x.value)),y()}).catch(function(x){E.clearTimeout(e),o._destroyed||o.emit("error",x)})};if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(y,x){o.headers[x.toLowerCase()]=y,o.rawHeaders.push(x,y)}),h.writableStream){var u=new WritableStream({write:function(x){return new S.default(function(C,w){o._destroyed?w():o.push(new T(x))?C():o._resumeFetch=C})},close:function(){E.clearTimeout(e),o._destroyed||o.push(null)},abort:function(x){o._destroyed||o.emit("error",x)}});try{t.body.pipeTo(u).catch(function(y){E.clearTimeout(e),o._destroyed||o.emit("error",y)});return}catch(y){}}var f=t.body.getReader();l()}else{o._xhr=n,o._pos=0,o.url=n.responseURL,o.statusCode=n.status,o.statusMessage=n.statusText;var p=n.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(y){var x=y.match(/^([^:]+):\s*(.*)/);if(x){var C=x[1].toLowerCase();C==="set-cookie"?(o.headers[C]===void 0&&(o.headers[C]=[]),o.headers[C].push(x[2])):o.headers[C]!==void 0?o.headers[C]+=", "+x[2]:o.headers[C]=x[2],o.rawHeaders.push(x[1],x[2])}}),o._charset="x-user-defined",!h.overrideMimeType){var v=o.rawHeaders["mime-type"];if(v){var A=v.match(/;\s*charset=([^;])(;|$)/);A&&(o._charset=A[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};c(i,a.Readable),i.prototype._read=function(){var n=this,t=n._resumeFetch;t&&(n._resumeFetch=null,t())},i.prototype._onXHRProgress=function(){var n=this,t=n._xhr,s=null;switch(n._mode){case"text:vbarray":if(t.readyState!==r.DONE)break;try{s=new E.VBArray(t.responseBody).toArray()}catch(f){}if(s!==null){n.push(new T(s));break}case"text":try{s=t.responseText}catch(f){n._mode="text:vbarray";break}if(s.length>n._pos){var e=s.substr(n._pos);if(n._charset==="x-user-defined"){for(var o=new T(e.length),l=0;l<e.length;l++)o[l]=e.charCodeAt(l)&255;n.push(o)}else n.push(e,n._charset);n._pos=s.length}break;case"arraybuffer":if(t.readyState!==r.DONE||!t.response)break;s=t.response,n.push(new T(new Uint8Array(s)));break;case"moz-chunked-arraybuffer":if(s=t.response,t.readyState!==r.LOADING||!s)break;n.push(new T(new Uint8Array(s)));break;case"ms-stream":if(s=t.response,t.readyState!==r.LOADING)break;var u=new E.MSStreamReader;u.onprogress=function(){u.result.byteLength>n._pos&&(n.push(new T(new Uint8Array(u.result.slice(n._pos)))),n._pos=u.result.byteLength)},u.onload=function(){n.push(null)},u.readAsArrayBuffer(s);break}n._xhr.readyState===r.DONE&&n._mode!=="ms-stream"&&n.push(null)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(H,k,d){"use strict";var I=H("safe-buffer").Buffer,E=I.isEncoding||function(u){u=""+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 T(u){if(!u)return"utf8";for(var f;;)switch(u){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 u;default:if(f)return;u=(""+u).toLowerCase(),f=!0}}function g(u){var f=T(u);if(typeof f!="string"&&(I.isEncoding===E||!E(u)))throw new Error("Unknown encoding: "+u);return f||u}d.StringDecoder=S;function S(u){this.encoding=g(u);var f;switch(this.encoding){case"utf16le":this.text=n,this.end=t,f=4;break;case"utf8":this.fillLast=a,f=4;break;case"base64":this.text=s,this.end=e,f=3;break;default:this.write=o,this.end=l;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(f)}S.prototype.write=function(u){if(u.length===0)return"";var f,p;if(this.lastNeed){if(f=this.fillLast(u),f===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<u.length?f?f+this.text(u,p):this.text(u,p):f||""},S.prototype.end=i,S.prototype.text=r,S.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function m(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function h(u,f,p){var v=f.length-1;if(v<p)return 0;var A=m(f[v]);return A>=0?(A>0&&(u.lastNeed=A-1),A):--v<p||A===-2?0:(A=m(f[v]),A>=0?(A>0&&(u.lastNeed=A-2),A):--v<p||A===-2?0:(A=m(f[v]),A>=0?(A>0&&(A===2?A=0:u.lastNeed=A-3),A):0))}function c(u,f,p){if((f[0]&192)!==128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return u.lastNeed=2,"\uFFFD"}}function a(u){var f=this.lastTotal-this.lastNeed,p=c(this,u,f);if(p!==void 0)return p;if(this.lastNeed<=u.length)return u.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,f,0,u.length),this.lastNeed-=u.length}function r(u,f){var p=h(this,u,f);if(!this.lastNeed)return u.toString("utf8",f);this.lastTotal=p;var v=u.length-(p-this.lastNeed);return u.copy(this.lastChar,0,v),u.toString("utf8",f,v)}function i(u){var f=u&&u.length?this.write(u):"";return this.lastNeed?f+"\uFFFD":f}function n(u,f){if((u.length-f)%2===0){var p=u.toString("utf16le",f);if(p){var v=p.charCodeAt(p.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",f,u.length-1)}function t(u){var f=u&&u.length?this.write(u):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,p)}return f}function s(u,f){var p=(u.length-f)%3;return p===0?u.toString("base64",f):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",f,u.length-p))}function e(u){var f=u&&u.length?this.write(u):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function o(u){return u.toString(this.encoding)}function l(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(H,k,d){(function(I,E){var T=H("process/browser.js").nextTick,g=Function.prototype.apply,S=Array.prototype.slice,m={},h=0;d.setTimeout=function(){return new c(g.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new c(g.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(a){a.close()};function c(a,r){this._id=a,this._clearFn=r}c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(a,r){clearTimeout(a._idleTimeoutId),a._idleTimeout=r},d.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},d._unrefActive=d.active=function(a){clearTimeout(a._idleTimeoutId);var r=a._idleTimeout;r>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},r))},d.setImmediate=typeof I=="function"?I:function(a){var r=h++,i=arguments.length<2?!1:S.call(arguments,1);return m[r]=!0,T(function(){m[r]&&(i?a.apply(null,i):a.call(null),d.clearImmediate(r))}),r},d.clearImmediate=typeof E=="function"?E:function(a){delete m[a]}}).call(this,H("timers").setImmediate,H("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(H,k,d){var I=H("buffer").Buffer;k.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(I.isBuffer(E)){for(var T=new Uint8Array(E.length),g=E.length,S=0;S<g;S++)T[S]=E[S];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(H,k,d){"use strict";var I=H("punycode"),E=H("./util");d.parse=f,d.resolve=v,d.resolveObject=A,d.format=p,d.Url=T;function T(){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 g=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(h),a=["'"].concat(c),r=["%","/","?",";","#"].concat(a),i=["/","?","#"],n=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,s=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,e={javascript:!0,"javascript:":!0},o={javascript:!0,"javascript:":!0},l={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=H("querystring");function f(y,x,C){if(y&&E.isObject(y)&&y instanceof T)return y;var w=new T;return w.parse(y,x,C),w}T.prototype.parse=function(y,x,C){if(!E.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var w=y.indexOf("?"),b=w!==-1&&w<y.indexOf("#")?"?":"#",_=y.split(b),O=/\\/g;_[0]=_[0].replace(O,"/"),y=_.join(b);var L=y;if(L=L.trim(),!C&&y.split("#").length===1){var D=m.exec(L);if(D)return this.path=L,this.href=L,this.pathname=D[1],D[2]?(this.search=D[2],x?this.query=u.parse(this.search.substr(1)):this.query=this.search.substr(1)):x&&(this.search="",this.query={}),this}var N=g.exec(L);if(N){N=N[0];var M=N.toLowerCase();this.protocol=M,L=L.substr(N.length)}if(C||N||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var F=L.substr(0,2)==="//";F&&!(N&&o[N])&&(L=L.substr(2),this.slashes=!0)}if(!o[N]&&(F||N&&!l[N])){for(var R=-1,j=0;j<i.length;j++){var B=L.indexOf(i[j]);B!==-1&&(R===-1||B<R)&&(R=B)}var K,U;R===-1?U=L.lastIndexOf("@"):U=L.lastIndexOf("@",R),U!==-1&&(K=L.slice(0,U),L=L.slice(U+1),this.auth=decodeURIComponent(K)),R=-1;for(var j=0;j<r.length;j++){var B=L.indexOf(r[j]);B!==-1&&(R===-1||B<R)&&(R=B)}R===-1&&(R=L.length),this.host=L.slice(0,R),L=L.slice(R),this.parseHost(),this.hostname=this.hostname||"";var z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!z)for(var V=this.hostname.split(/\./),j=0,Y=V.length;j<Y;j++){var J=V[j];if(!J)continue;if(!J.match(t)){for(var se="",$=0,ae=J.length;$<ae;$++)J.charCodeAt($)>127?se+="x":se+=J[$];if(!se.match(t)){var ge=V.slice(0,j),pe=V.slice(j+1),Ne=J.match(s);Ne&&(ge.push(Ne[1]),pe.unshift(Ne[2])),pe.length&&(L="/"+pe.join(".")+L),this.hostname=ge.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),z||(this.hostname=I.toASCII(this.hostname));var de=this.port?":"+this.port:"",Le=this.hostname||"";this.host=Le+de,this.href+=this.host,z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!e[M])for(var j=0,Y=a.length;j<Y;j++){var Q=a[j];if(L.indexOf(Q)===-1)continue;var ce=encodeURIComponent(Q);ce===Q&&(ce=escape(Q)),L=L.split(Q).join(ce)}var Ke=L.indexOf("#");Ke!==-1&&(this.hash=L.substr(Ke),L=L.slice(0,Ke));var ee=L.indexOf("?");if(ee!==-1?(this.search=L.substr(ee),this.query=L.substr(ee+1),x&&(this.query=u.parse(this.query)),L=L.slice(0,ee)):x&&(this.search="",this.query={}),L&&(this.pathname=L),l[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var de=this.pathname||"",X=this.search||"";this.path=de+X}return this.href=this.format(),this};function p(y){return E.isString(y)&&(y=f(y)),y instanceof T?y.format():T.prototype.format.call(y)}T.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var x=this.protocol||"",C=this.pathname||"",w=this.hash||"",b=!1,_="";this.host?b=y+this.host:this.hostname&&(b=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(b+=":"+this.port)),this.query&&E.isObject(this.query)&&Object.keys(this.query).length&&(_=u.stringify(this.query));var O=this.search||_&&"?"+_||"";return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||l[x])&&b!==!1?(b="//"+(b||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):b||(b=""),w&&w.charAt(0)!=="#"&&(w="#"+w),O&&O.charAt(0)!=="?"&&(O="?"+O),C=C.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),O=O.replace("#","%23"),x+b+C+O+w};function v(y,x){return f(y,!1,!0).resolve(x)}T.prototype.resolve=function(y){return this.resolveObject(f(y,!1,!0)).format()};function A(y,x){return y?f(y,!1,!0).resolveObject(x):x}T.prototype.resolveObject=function(y){if(E.isString(y)){var x=new T;x.parse(y,!1,!0),y=x}for(var C=new T,w=Object.keys(this),b=0;b<w.length;b++){var _=w[b];C[_]=this[_]}if(C.hash=y.hash,y.href==="")return C.href=C.format(),C;if(y.slashes&&!y.protocol){for(var O=Object.keys(y),L=0;L<O.length;L++){var D=O[L];D!=="protocol"&&(C[D]=y[D])}return l[C.protocol]&&C.hostname&&!C.pathname&&(C.path=C.pathname="/"),C.href=C.format(),C}if(y.protocol&&y.protocol!==C.protocol){if(!l[y.protocol]){for(var N=Object.keys(y),M=0;M<N.length;M++){var F=N[M];C[F]=y[F]}return C.href=C.format(),C}if(C.protocol=y.protocol,!y.host&&!o[y.protocol]){for(var Y=(y.pathname||"").split("/");Y.length&&!(y.host=Y.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),Y[0]!==""&&Y.unshift(""),Y.length<2&&Y.unshift(""),C.pathname=Y.join("/")}else C.pathname=y.pathname;if(C.search=y.search,C.query=y.query,C.host=y.host||"",C.auth=y.auth,C.hostname=y.hostname||y.host,C.port=y.port,C.pathname||C.search){var R=C.pathname||"",j=C.search||"";C.path=R+j}return C.slashes=C.slashes||y.slashes,C.href=C.format(),C}var B=C.pathname&&C.pathname.charAt(0)==="/",K=y.host||y.pathname&&y.pathname.charAt(0)==="/",U=K||B||C.host&&y.pathname,z=U,V=C.pathname&&C.pathname.split("/")||[],Y=y.pathname&&y.pathname.split("/")||[],J=C.protocol&&!l[C.protocol];if(J&&(C.hostname="",C.port=null,C.host&&(V[0]===""?V[0]=C.host:V.unshift(C.host)),C.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(Y[0]===""?Y[0]=y.host:Y.unshift(y.host)),y.host=null),U=U&&(Y[0]===""||V[0]==="")),K)C.host=y.host||y.host===""?y.host:C.host,C.hostname=y.hostname||y.hostname===""?y.hostname:C.hostname,C.search=y.search,C.query=y.query,V=Y;else if(Y.length)V||(V=[]),V.pop(),V=V.concat(Y),C.search=y.search,C.query=y.query;else if(!E.isNullOrUndefined(y.search)){if(J){C.hostname=C.host=V.shift();var se=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;se&&(C.auth=se.shift(),C.host=C.hostname=se.shift())}return C.search=y.search,C.query=y.query,(!E.isNull(C.pathname)||!E.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!V.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var $=V.slice(-1)[0],ae=(C.host||y.host||V.length>1)&&($==="."||$==="..")||$==="",ge=0,pe=V.length;pe>=0;pe--)$=V[pe],$==="."?V.splice(pe,1):$===".."?(V.splice(pe,1),ge++):ge&&(V.splice(pe,1),ge--);if(!U&&!z)for(;ge--;ge)V.unshift("..");U&&V[0]!==""&&(!V[0]||V[0].charAt(0)!=="/")&&V.unshift(""),ae&&V.join("/").substr(-1)!=="/"&&V.push("");var Ne=V[0]===""||V[0]&&V[0].charAt(0)==="/";if(J){C.hostname=C.host=Ne?"":V.length?V.shift():"";var se=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;se&&(C.auth=se.shift(),C.host=C.hostname=se.shift())}return U=U||C.host&&V.length,U&&!Ne&&V.unshift(""),V.length?C.pathname=V.join("/"):(C.pathname=null,C.path=null),(!E.isNull(C.pathname)||!E.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=y.auth||C.auth,C.slashes=C.slashes||y.slashes,C.href=C.format(),C},T.prototype.parseHost=function(){var y=this.host,x=S.exec(y);x&&(x=x[0],x!==":"&&(this.port=x.substr(1)),y=y.substr(0,y.length-x.length)),y&&(this.hostname=y)}},{"./util":239,punycode:209,querystring:212}],239:[function(H,k,d){"use strict";k.exports={isString:function(E){return typeof E=="string"},isObject:function(E){return typeof E=="object"&&E!==null},isNull:function(E){return E===null},isNullOrUndefined:function(E){return E==null}}},{}],240:[function(H,k,d){(function(I){k.exports=E;function E(g,S){if(T("noDeprecation"))return g;var m=!1;function h(){if(!m){if(T("throwDeprecation"))throw new Error(S);T("traceDeprecation")?console.trace(S):console.warn(S),m=!0}return g.apply(this,arguments)}return h}function T(g){try{if(!I.localStorage)return!1}catch(m){return!1}var S=I.localStorage[g];return S==null?!1:String(S).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(H,k,d){typeof Object.create=="function"?k.exports=function(E,T){E.super_=T,E.prototype=Object.create(T.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:k.exports=function(E,T){E.super_=T;var g=function(){};g.prototype=T.prototype,E.prototype=new g,E.prototype.constructor=E}},{}],242:[function(H,k,d){k.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],243:[function(H,k,d){(function(I,E){var T=/%[sdj%]/g;d.format=function(R){if(!v(R)){for(var j=[],B=0;B<arguments.length;B++)j.push(m(arguments[B]));return j.join(" ")}for(var B=1,K=arguments,U=K.length,z=String(R).replace(T,function(Y){if(Y==="%%")return"%";if(B>=U)return Y;switch(Y){case"%s":return String(K[B++]);case"%d":return Number(K[B++]);case"%j":try{return JSON.stringify(K[B++])}catch(J){return"[Circular]"}default:return Y}}),V=K[B];B<U;V=K[++B])u(V)||!C(V)?z+=" "+V:z+=" "+m(V);return z},d.deprecate=function(R,j){if(y(E.process))return function(){return d.deprecate(R,j).apply(this,arguments)};if(I.noDeprecation===!0)return R;var B=!1;function K(){if(!B){if(I.throwDeprecation)throw new Error(j);I.traceDeprecation?console.trace(j):console.error(j),B=!0}return R.apply(this,arguments)}return K};var g={},S;d.debuglog=function(R){if(y(S)&&(S=I.env.NODE_DEBUG||""),R=R.toUpperCase(),!g[R])if(new RegExp("\\b"+R+"\\b","i").test(S)){var j=I.pid;g[R]=function(){var B=d.format.apply(d,arguments);console.error("%s %d: %s",R,j,B)}}else g[R]=function(){};return g[R]};function m(R,j){var B={seen:[],stylize:c};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),l(j)?B.showHidden=j:j&&d._extend(B,j),y(B.showHidden)&&(B.showHidden=!1),y(B.depth)&&(B.depth=2),y(B.colors)&&(B.colors=!1),y(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=h),r(B,R,B.depth)}d.inspect=m,m.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]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(R,j){var B=m.styles[j];return B?"["+m.colors[B][0]+"m"+R+"["+m.colors[B][1]+"m":R}function c(R,j){return R}function a(R){var j={};return R.forEach(function(B,K){j[B]=!0}),j}function r(R,j,B){if(R.customInspect&&j&&_(j.inspect)&&j.inspect!==d.inspect&&!(j.constructor&&j.constructor.prototype===j)){var K=j.inspect(B,R);return v(K)||(K=r(R,K,B)),K}var U=i(R,j);if(U)return U;var z=Object.keys(j),V=a(z);if(R.showHidden&&(z=Object.getOwnPropertyNames(j)),b(j)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return n(j);if(z.length===0){if(_(j)){var Y=j.name?": "+j.name:"";return R.stylize("[Function"+Y+"]","special")}if(x(j))return R.stylize(RegExp.prototype.toString.call(j),"regexp");if(w(j))return R.stylize(Date.prototype.toString.call(j),"date");if(b(j))return n(j)}var J="",se=!1,$=["{","}"];if(o(j)&&(se=!0,$=["[","]"]),_(j)){var ae=j.name?": "+j.name:"";J=" [Function"+ae+"]"}if(x(j)&&(J=" "+RegExp.prototype.toString.call(j)),w(j)&&(J=" "+Date.prototype.toUTCString.call(j)),b(j)&&(J=" "+n(j)),z.length===0&&(!se||j.length==0))return $[0]+J+$[1];if(B<0)return x(j)?R.stylize(RegExp.prototype.toString.call(j),"regexp"):R.stylize("[Object]","special");R.seen.push(j);var ge;return se?ge=t(R,j,B,V,z):ge=z.map(function(pe){return s(R,j,B,V,pe,se)}),R.seen.pop(),e(ge,J,$)}function i(R,j){if(y(j))return R.stylize("undefined","undefined");if(v(j)){var B="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize(B,"string")}if(p(j))return R.stylize(""+j,"number");if(l(j))return R.stylize(""+j,"boolean");if(u(j))return R.stylize("null","null")}function n(R){return"["+Error.prototype.toString.call(R)+"]"}function t(R,j,B,K,U){for(var z=[],V=0,Y=j.length;V<Y;++V)F(j,String(V))?z.push(s(R,j,B,K,String(V),!0)):z.push("");return U.forEach(function(J){J.match(/^\d+$/)||z.push(s(R,j,B,K,J,!0))}),z}function s(R,j,B,K,U,z){var V,Y,J;if(J=Object.getOwnPropertyDescriptor(j,U)||{value:j[U]},J.get?J.set?Y=R.stylize("[Getter/Setter]","special"):Y=R.stylize("[Getter]","special"):J.set&&(Y=R.stylize("[Setter]","special")),F(K,U)||(V="["+U+"]"),Y||(R.seen.indexOf(J.value)<0?(u(B)?Y=r(R,J.value,null):Y=r(R,J.value,B-1),Y.indexOf(`
|
|
|
`)>-1&&(z?Y=Y.split(`
|
|
|
`).map(function(se){return" "+se}).join(`
|
|
|
`).substr(2):Y=`
|
|
|
`+Y.split(`
|
|
|
`).map(function(se){return" "+se}).join(`
|
|
|
`))):Y=R.stylize("[Circular]","special")),y(V)){if(z&&U.match(/^\d+$/))return Y;V=JSON.stringify(""+U),V.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(V=V.substr(1,V.length-2),V=R.stylize(V,"name")):(V=V.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),V=R.stylize(V,"string"))}return V+": "+Y}function e(R,j,B){var K=0,U=R.reduce(function(z,V){return K++,V.indexOf(`
|
|
|
`)>=0&&K++,z+V.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?B[0]+(j===""?"":j+`
|
|
|
`)+" "+R.join(`,
|
|
|
`)+" "+B[1]:B[0]+j+" "+R.join(", ")+" "+B[1]}function o(R){return Array.isArray(R)}d.isArray=o;function l(R){return typeof R=="boolean"}d.isBoolean=l;function u(R){return R===null}d.isNull=u;function f(R){return R==null}d.isNullOrUndefined=f;function p(R){return typeof R=="number"}d.isNumber=p;function v(R){return typeof R=="string"}d.isString=v;function A(R){return typeof R=="symbol"}d.isSymbol=A;function y(R){return R===void 0}d.isUndefined=y;function x(R){return C(R)&&L(R)==="[object RegExp]"}d.isRegExp=x;function C(R){return typeof R=="object"&&R!==null}d.isObject=C;function w(R){return C(R)&&L(R)==="[object Date]"}d.isDate=w;function b(R){return C(R)&&(L(R)==="[object Error]"||R instanceof Error)}d.isError=b;function _(R){return typeof R=="function"}d.isFunction=_;function O(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||typeof R=="undefined"}d.isPrimitive=O,d.isBuffer=H("./support/isBuffer");function L(R){return Object.prototype.toString.call(R)}function D(R){return R<10?"0"+R.toString(10):R.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var R=new Date,j=[D(R.getHours()),D(R.getMinutes()),D(R.getSeconds())].join(":");return[R.getDate(),N[R.getMonth()],j].join(" ")}d.log=function(){console.log("%s - %s",M(),d.format.apply(d,arguments))},d.inherits=H("inherits"),d._extend=function(R,j){if(!j||!C(j))return R;for(var B=Object.keys(j),K=B.length;K--;)R[B[K]]=j[B[K]];return R};function F(R,j){return Object.prototype.hasOwnProperty.call(R,j)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(H,k,d){"use strict";(function(){"use strict";d.stripBOM=function(I){return I[0]==="\uFEFF"?I.substring(1):I}}).call(void 0)},{}],245:[function(H,k,d){"use strict";var I=H("babel-runtime/helpers/typeof"),E=S(I),T=H("babel-runtime/core-js/object/keys"),g=S(T);function S(m){return m&&m.__esModule?m:{default:m}}(function(){"use strict";var m,h,c,a,r,i={}.hasOwnProperty;m=H("xmlbuilder"),h=H("./defaults").defaults,a=function(t){return typeof t=="string"&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},r=function(t){return"<![CDATA["+c(t)+"]]>"},c=function(t){return t.replace("]]>","]]]]><![CDATA[>")},d.Builder=function(){function n(t){var s,e,o;this.options={},e=h["0.2"];for(s in e){if(!i.call(e,s))continue;o=e[s],this.options[s]=o}for(s in t){if(!i.call(t,s))continue;o=t[s],this.options[s]=o}}return n.prototype.buildObject=function(t){var s,e,o,l,u;return s=this.options.attrkey,e=this.options.charkey,(0,g.default)(t).length===1&&this.options.rootName===h["0.2"].rootName?(u=(0,g.default)(t)[0],t=t[u]):u=this.options.rootName,o=function(f){return function(p,v){var A,y,x,C,w,b;if((typeof v=="undefined"?"undefined":(0,E.default)(v))!=="object")f.options.cdata&&a(v)?p.raw(r(v)):p.txt(v);else if(Array.isArray(v))for(C in v){if(!i.call(v,C))continue;y=v[C];for(w in y)x=y[w],p=o(p.ele(w),x).up()}else for(w in v){if(!i.call(v,w))continue;if(y=v[w],w===s){if((typeof y=="undefined"?"undefined":(0,E.default)(y))==="object")for(A in y)b=y[A],p=p.att(A,b)}else if(w===e)f.options.cdata&&a(y)?p=p.raw(r(y)):p=p.txt(y);else if(Array.isArray(y))for(C in y){if(!i.call(y,C))continue;x=y[C],typeof x=="string"?f.options.cdata&&a(x)?p=p.ele(w).raw(r(x)).up():p=p.ele(w,x).up():p=o(p.ele(w),x).up()}else(typeof y=="undefined"?"undefined":(0,E.default)(y))==="object"?p=o(p.ele(w),y).up():typeof y=="string"&&f.options.cdata&&a(y)?p=p.ele(w).raw(r(y)).up():(y==null&&(y=""),p=p.ele(w,y.toString()).up())}return p}}(this),l=m.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),o(l,t).end(this.options.renderOpts)},n}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(H,k,d){"use strict";(function(){d.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(H,k,d){"use strict";var I=H("babel-runtime/core-js/promise"),E=a(I),T=H("babel-runtime/core-js/object/get-own-property-names"),g=a(T),S=H("babel-runtime/core-js/object/keys"),m=a(S),h=H("babel-runtime/helpers/typeof"),c=a(h);function a(r){return r&&r.__esModule?r:{default:r}}(function(){"use strict";var r,i,n,t,s,e,o,l,u=function(A,y){return function(){return A.apply(y,arguments)}},f=function(A,y){for(var x in y)p.call(y,x)&&(A[x]=y[x]);function C(){this.constructor=A}return C.prototype=y.prototype,A.prototype=new C,A.__super__=y.prototype,A},p={}.hasOwnProperty;o=H("sax"),n=H("events"),r=H("./bom"),e=H("./processors"),l=H("timers").setImmediate,i=H("./defaults").defaults,t=function(A){return(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&A!=null&&(0,m.default)(A).length===0},s=function(A,y,x){var C,w,b;for(C=0,w=A.length;C<w;C++)b=A[C],y=b(y,x);return y},d.Parser=function(v){f(A,v);function A(y){this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var x,C,w;if(!(this instanceof d.Parser))return new d.Parser(y);this.options={},C=i["0.2"];for(x in C){if(!p.call(C,x))continue;w=C[x],this.options[x]=w}for(x in y){if(!p.call(y,x))continue;w=y[x],this.options[x]=w}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(e.normalize)),this.reset()}return A.prototype.processAsync=function(){var y,x;try{return this.remaining.length<=this.options.chunkSize?(y=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(y),this.saxParser.close()):(y=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(y),l(this.processAsync))}catch(C){if(x=C,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(x)}},A.prototype.assignOrPush=function(y,x,C){return x in y?(y[x]instanceof Array||(y[x]=[y[x]]),y[x].push(C)):this.options.explicitArray?y[x]=[C]:y[x]=C},A.prototype.reset=function(){var y,x,C,w;return this.removeAllListeners(),this.saxParser=o.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(b){return function(_){if(b.saxParser.resume(),!b.saxParser.errThrown)return b.saxParser.errThrown=!0,b.emit("error",_)}}(this),this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended)return b.saxParser.ended=!0,b.emit("end",b.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,w=[],y=this.options.attrkey,x=this.options.charkey,this.saxParser.onopentag=function(b){return function(_){var O,L,D,N,M;if(D={},D[x]="",!b.options.ignoreAttrs){M=_.attributes;for(O in M){if(!p.call(M,O))continue;!(y in D)&&!b.options.mergeAttrs&&(D[y]={}),L=b.options.attrValueProcessors?s(b.options.attrValueProcessors,_.attributes[O],O):_.attributes[O],N=b.options.attrNameProcessors?s(b.options.attrNameProcessors,O):O,b.options.mergeAttrs?b.assignOrPush(D,N,L):D[y][N]=L}}return D["#name"]=b.options.tagNameProcessors?s(b.options.tagNameProcessors,_.name):_.name,b.options.xmlns&&(D[b.options.xmlnskey]={uri:_.uri,local:_.local}),w.push(D)}}(this),this.saxParser.onclosetag=function(b){return function(){var _,O,L,D,N,M,F,R,j,B;if(M=w.pop(),N=M["#name"],(!b.options.explicitChildren||!b.options.preserveChildrenOrder)&&delete M["#name"],M.cdata===!0&&(_=M.cdata,delete M.cdata),j=w[w.length-1],M[x].match(/^\s*$/)&&!_?(O=M[x],delete M[x]):(b.options.trim&&(M[x]=M[x].trim()),b.options.normalize&&(M[x]=M[x].replace(/\s{2,}/g," ").trim()),M[x]=b.options.valueProcessors?s(b.options.valueProcessors,M[x],N):M[x],(0,m.default)(M).length===1&&x in M&&!b.EXPLICIT_CHARKEY&&(M=M[x])),t(M)&&(M=b.options.emptyTag!==""?b.options.emptyTag:O),b.options.validator!=null&&(B="/"+function(){var K,U,z;for(z=[],K=0,U=w.length;K<U;K++)D=w[K],z.push(D["#name"]);return z}().concat(N).join("/"),function(){var K;try{return M=b.options.validator(B,j&&j[N],M)}catch(U){return K=U,b.emit("error",K)}}()),b.options.explicitChildren&&!b.options.mergeAttrs&&(typeof M=="undefined"?"undefined":(0,c.default)(M))==="object"){if(!b.options.preserveChildrenOrder)D={},b.options.attrkey in M&&(D[b.options.attrkey]=M[b.options.attrkey],delete M[b.options.attrkey]),!b.options.charsAsChildren&&b.options.charkey in M&&(D[b.options.charkey]=M[b.options.charkey],delete M[b.options.charkey]),(0,g.default)(M).length>0&&(D[b.options.childkey]=M),M=D;else if(j){j[b.options.childkey]=j[b.options.childkey]||[],F={};for(L in M){if(!p.call(M,L))continue;F[L]=M[L]}j[b.options.childkey].push(F),delete M["#name"],(0,m.default)(M).length===1&&x in M&&!b.EXPLICIT_CHARKEY&&(M=M[x])}}return w.length>0?b.assignOrPush(j,N,M):(b.options.explicitRoot&&(R=M,M={},M[N]=R),b.resultObject=M,b.saxParser.ended=!0,b.emit("end",b.resultObject))}}(this),C=function(b){return function(_){var O,L;if(L=w[w.length-1],L)return L[x]+=_,b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(L[b.options.childkey]=L[b.options.childkey]||[],O={"#name":"__text__"},O[x]=_,b.options.normalize&&(O[x]=O[x].replace(/\s{2,}/g," ").trim()),L[b.options.childkey].push(O)),L}}(this),this.saxParser.ontext=C,this.saxParser.oncdata=function(b){return function(_){var O;if(O=C(_),O)return O.cdata=!0}}(this)},A.prototype.parseString=function(y,x){var C;x!=null&&typeof x=="function"&&(this.on("end",function(w){return this.reset(),x(null,w)}),this.on("error",function(w){return this.reset(),x(w)}));try{return y=y.toString(),y.trim()===""?(this.emit("end",null),!0):(y=r.stripBOM(y),this.options.async?(this.remaining=y,l(this.processAsync),this.saxParser):this.saxParser.write(y).close())}catch(w){if(C=w,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw C}else return this.emit("error",C),this.saxParser.errThrown=!0}},A.prototype.parseStringPromise=function(y){return new E.default(function(x){return function(C,w){return x.parseString(y,function(b,_){return b?w(b):C(_)})}}(this))},A}(n),d.parseString=function(v,A,y){var x,C,w;return y!=null?(typeof y=="function"&&(x=y),(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&(C=A)):(typeof A=="function"&&(x=A),C={}),w=new d.Parser(C),w.parseString(v,x)},d.parseStringPromise=function(v,A){var y,x;return(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&(y=A),x=new d.Parser(y),x.parseStringPromise(v)}}).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(H,k,d){"use strict";(function(){"use strict";var I;I=new RegExp(/(?!xmlns)^.*:/),d.normalize=function(E){return E.toLowerCase()},d.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},d.stripPrefix=function(E){return E.replace(I,"")},d.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},d.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(void 0)},{}],249:[function(H,k,d){"use strict";(function(){"use strict";var I,E,T,g,S=function(c,a){for(var r in a)m.call(a,r)&&(c[r]=a[r]);function i(){this.constructor=c}return i.prototype=a.prototype,c.prototype=new i,c.__super__=a.prototype,c},m={}.hasOwnProperty;E=H("./defaults"),I=H("./builder"),T=H("./parser"),g=H("./processors"),d.defaults=E.defaults,d.processors=g,d.ValidationError=function(h){S(c,h);function c(a){this.message=a}return c}(Error),d.Builder=I.Builder,d.Parser=T.Parser,d.parseString=T.parseString,d.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(H,k,d){"use strict";(function(){k.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(H,k,d){"use strict";(function(){k.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(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/get-prototype-of"),E=h(I),T=H("babel-runtime/helpers/typeof"),g=h(T),S=H("babel-runtime/core-js/object/assign"),m=h(S);function h(c){return c&&c.__esModule?c:{default:c}}(function(){var c,a,r,i,n,t,s,e=[].slice,o={}.hasOwnProperty;c=function(){var u,f,p,v,A,y;if(y=arguments[0],A=2<=arguments.length?e.call(arguments,1):[],n(m.default))m.default.apply(null,arguments);else for(u=0,p=A.length;u<p;u++)if(v=A[u],v!=null)for(f in v){if(!o.call(v,f))continue;y[f]=v[f]}return y},n=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},t=function(u){var f;return!!u&&((f=typeof u=="undefined"?"undefined":(0,g.default)(u))==="function"||f==="object")},r=function(u){return n(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},i=function(u){var f;if(r(u))return!u.length;for(f in u){if(!o.call(u,f))continue;return!1}return!0},s=function(u){var f,p;return t(u)&&(p=(0,E.default)(u))&&(f=p.constructor)&&typeof f=="function"&&f instanceof f&&Function.prototype.toString.call(f)===Function.prototype.toString.call(Object)},a=function(u){return n(u.valueOf)?u.valueOf():u},k.exports.assign=c,k.exports.isFunction=n,k.exports.isObject=t,k.exports.isArray=r,k.exports.isEmpty=i,k.exports.isPlainObject=s,k.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(H,k,d){"use strict";(function(){k.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m;g=H("./NodeType"),m=H("./XMLNode"),k.exports=S=function(){function h(c,a,r){if(this.parent=c,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(r),this.type=g.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,E.default)(this)},h.prototype.toString=function(c){return this.options.writer.attribute(this,this.options.writer.filterOptions(c))},h.prototype.debugInfo=function(c){return c=c||this.name,c==null?"parent: <"+this.parent.name+">":"attribute: {"+c+"}, parent: <"+this.parent.name+">"},h.prototype.isEqualNode=function(c){return c.namespaceURI!==this.namespaceURI||(c.prefix!==this.prefix||c.localName!==this.localName)?!1:!(c.value!==this.value)},h}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function t(){this.constructor=r}return t.prototype=i.prototype,r.prototype=new t,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./NodeType"),m=H("./XMLCharacterData"),k.exports=S=function(a){h(r,a);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=g.CData,this.value=this.stringify.cdata(n)}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m=function(a,r){for(var i in r)h.call(r,i)&&(a[i]=r[i]);function n(){this.constructor=a}return n.prototype=r.prototype,a.prototype=new n,a.__super__=r.prototype,a},h={}.hasOwnProperty;S=H("./XMLNode"),k.exports=g=function(c){m(a,c);function a(r){a.__super__.constructor.call(this,r),this.value=""}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),a.prototype.clone=function(){return(0,E.default)(this)},a.prototype.substringData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.insertData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.deleteData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceData=function(r,i,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(r){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.data!==this.data):!1},a}(S)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function t(){this.constructor=r}return t.prototype=i.prototype,r.prototype=new t,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./NodeType"),S=H("./XMLCharacterData"),k.exports=m=function(a){h(r,a);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=g.Comment,this.value=this.stringify.comment(n)}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/keys"),E=S(I),T=H("babel-runtime/core-js/object/create"),g=S(T);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,h,c;h=H("./XMLDOMErrorHandler"),c=H("./XMLDOMStringList"),k.exports=m=function(){function a(){var r;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=r=(0,g.default)(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new c((0,E.default)(this.defaultParams))}}),a.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},a.prototype.canSetParameter=function(r,i){return!0},a.prototype.setParameter=function(r,i){return i!=null?this.params[r]=i:delete this.params[r]},a}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(H,k,d){"use strict";(function(){var I;k.exports=I=function(){function E(){}return E.prototype.handleError=function(T){throw new Error(T)},E}()}).call(void 0)},{}],260:[function(H,k,d){"use strict";(function(){var I;k.exports=I=function(){function E(){}return E.prototype.hasFeature=function(T,g){return!0},E.prototype.createDocumentType=function(T,g,S){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(T,g,S){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(T,g){throw new Error("This DOM method is not implemented.")},E}()}).call(void 0)},{}],261:[function(H,k,d){"use strict";(function(){var I;k.exports=I=function(){function E(T){this.arr=T||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(T){return this.arr[T]||null},E.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},E}()}).call(void 0)},{}],262:[function(H,k,d){"use strict";(function(){var I,E,T,g=function(h,c){for(var a in c)S.call(c,a)&&(h[a]=c[a]);function r(){this.constructor=h}return r.prototype=c.prototype,h.prototype=new r,h.__super__=c.prototype,h},S={}.hasOwnProperty;T=H("./XMLNode"),I=H("./NodeType"),k.exports=E=function(m){g(h,m);function h(c,a,r,i,n,t){if(h.__super__.constructor.call(this,c),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(r==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!n)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(n.indexOf("#")!==0&&(n="#"+n),!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(t&&!n.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=I.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(i),t&&(this.defaultValue=this.stringify.dtdAttDefault(t)),this.defaultValueType=n}return h.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},h}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(H,k,d){"use strict";(function(){var I,E,T,g=function(h,c){for(var a in c)S.call(c,a)&&(h[a]=c[a]);function r(){this.constructor=h}return r.prototype=c.prototype,h.prototype=new r,h.__super__=c.prototype,h},S={}.hasOwnProperty;T=H("./XMLNode"),I=H("./NodeType"),k.exports=E=function(m){g(h,m);function h(c,a,r){if(h.__super__.constructor.call(this,c),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(a),this.type=I.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return h.prototype.toString=function(c){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(c))},h}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(H,k,d){"use strict";(function(){var I,E,T,g,S=function(c,a){for(var r in a)m.call(a,r)&&(c[r]=a[r]);function i(){this.constructor=c}return i.prototype=a.prototype,c.prototype=new i,c.__super__=a.prototype,c},m={}.hasOwnProperty;g=H("./Utility").isObject,T=H("./XMLNode"),I=H("./NodeType"),k.exports=E=function(h){S(c,h);function c(a,r,i,n){if(c.__super__.constructor.call(this,a),i==null)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(n==null)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.name(i),this.type=I.EntityDeclaration,!g(n))this.value=this.stringify.dtdEntityValue(n),this.internal=!0;else{if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(this.internal=!1,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID)),n.nData!=null&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},c}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(H,k,d){"use strict";(function(){var I,E,T,g=function(h,c){for(var a in c)S.call(c,a)&&(h[a]=c[a]);function r(){this.constructor=h}return r.prototype=c.prototype,h.prototype=new r,h.__super__=c.prototype,h},S={}.hasOwnProperty;T=H("./XMLNode"),I=H("./NodeType"),k.exports=E=function(m){g(h,m);function h(c,a,r){if(h.__super__.constructor.call(this,c),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!r.pubID&&!r.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=I.NotationDeclaration,r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.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(c){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(c))},h}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(H,k,d){"use strict";(function(){var I,E,T,g,S=function(c,a){for(var r in a)m.call(a,r)&&(c[r]=a[r]);function i(){this.constructor=c}return i.prototype=a.prototype,c.prototype=new i,c.__super__=a.prototype,c},m={}.hasOwnProperty;g=H("./Utility").isObject,T=H("./XMLNode"),I=H("./NodeType"),k.exports=E=function(h){S(c,h);function c(a,r,i,n){var t;c.__super__.constructor.call(this,a),g(r)&&(t=r,r=t.version,i=t.encoding,n=t.standalone),r||(r="1.0"),this.type=I.Declaration,this.version=this.stringify.xmlVersion(r),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),n!=null&&(this.standalone=this.stringify.xmlStandalone(n))}return c.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},c}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(H,k,d){"use strict";(function(){var I,E,T,g,S,m,h,c,a,r=function(t,s){for(var e in s)i.call(s,e)&&(t[e]=s[e]);function o(){this.constructor=t}return o.prototype=s.prototype,t.prototype=new o,t.__super__=s.prototype,t},i={}.hasOwnProperty;a=H("./Utility").isObject,c=H("./XMLNode"),I=H("./NodeType"),E=H("./XMLDTDAttList"),g=H("./XMLDTDEntity"),T=H("./XMLDTDElement"),S=H("./XMLDTDNotation"),h=H("./XMLNamedNodeMap"),k.exports=m=function(n){r(t,n);function t(s,e,o){var l,u,f,p,v,A;if(t.__super__.constructor.call(this,s),this.type=I.DocType,s.children){for(p=s.children,u=0,f=p.length;u<f;u++)if(l=p[u],l.type===I.Element){this.name=l.name;break}}this.documentObject=s,a(e)&&(v=e,e=v.pubID,o=v.sysID),o==null&&(A=[e,o],o=A[0],e=A[1]),e!=null&&(this.pubID=this.stringify.dtdPubID(e)),o!=null&&(this.sysID=this.stringify.dtdSysID(o))}return Object.defineProperty(t.prototype,"entities",{get:function(){var e,o,l,u,f;for(u={},f=this.children,o=0,l=f.length;o<l;o++)e=f[o],e.type===I.EntityDeclaration&&!e.pe&&(u[e.name]=e);return new h(u)}}),Object.defineProperty(t.prototype,"notations",{get:function(){var e,o,l,u,f;for(u={},f=this.children,o=0,l=f.length;o<l;o++)e=f[o],e.type===I.NotationDeclaration&&(u[e.name]=e);return new h(u)}}),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.element=function(s,e){var o;return o=new T(this,s,e),this.children.push(o),this},t.prototype.attList=function(s,e,o,l,u){var f;return f=new E(this,s,e,o,l,u),this.children.push(f),this},t.prototype.entity=function(s,e){var o;return o=new g(this,!1,s,e),this.children.push(o),this},t.prototype.pEntity=function(s,e){var o;return o=new g(this,!0,s,e),this.children.push(o),this},t.prototype.notation=function(s,e){var o;return o=new S(this,s,e),this.children.push(o),this},t.prototype.toString=function(s){return this.options.writer.docType(this,this.options.writer.filterOptions(s))},t.prototype.ele=function(s,e){return this.element(s,e)},t.prototype.att=function(s,e,o,l,u){return this.attList(s,e,o,l,u)},t.prototype.ent=function(s,e){return this.entity(s,e)},t.prototype.pent=function(s,e){return this.pEntity(s,e)},t.prototype.not=function(s,e){return this.notation(s,e)},t.prototype.up=function(){return this.root()||this.documentObject},t.prototype.isEqualNode=function(s){return t.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?s.name!==this.name||s.publicId!==this.publicId?!1:!(s.systemId!==this.systemId):!1},t}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(H,k,d){"use strict";(function(){var I,E,T,g,S,m,h,c,a=function(n,t){for(var s in t)r.call(t,s)&&(n[s]=t[s]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},r={}.hasOwnProperty;c=H("./Utility").isPlainObject,T=H("./XMLDOMImplementation"),E=H("./XMLDOMConfiguration"),S=H("./XMLNode"),I=H("./NodeType"),h=H("./XMLStringifier"),m=H("./XMLStringWriter"),k.exports=g=function(i){a(n,i);function n(t){n.__super__.constructor.call(this,null),this.name="#document",this.type=I.Document,this.documentURI=null,this.domConfig=new E,t||(t={}),t.writer||(t.writer=new m),this.options=t,this.stringify=new h(t)}return Object.defineProperty(n.prototype,"implementation",{value:new T}),Object.defineProperty(n.prototype,"doctype",{get:function(){var s,e,o,l;for(l=this.children,e=0,o=l.length;e<o;e++)if(s=l[e],s.type===I.DocType)return s;return null}}),Object.defineProperty(n.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===I.Declaration?this.children[0].encoding:null}}),Object.defineProperty(n.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===I.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===I.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(n.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(n.prototype,"origin",{get:function(){return null}}),Object.defineProperty(n.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(n.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(n.prototype,"contentType",{get:function(){return null}}),n.prototype.end=function(t){var s;return s={},t?c(t)&&(s=t,t=this.options.writer):t=this.options.writer,t.document(this,t.filterOptions(s))},n.prototype.toString=function(t){return this.options.writer.document(this,this.options.writer.filterOptions(t))},n.prototype.createElement=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTextNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createComment=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createCDATASection=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createProcessingInstruction=function(t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttribute=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEntityReference=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.importNode=function(t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementById=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.adoptNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.renameNode=function(t,s,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEvent=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createNodeIterator=function(t,s,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(t,s,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(H,k,d){"use strict";(function(){var I,E,T,g,S,m,h,c,a,r,i,n,t,s,e,o,l,u,f,p,v,A,y,x,C={}.hasOwnProperty;x=H("./Utility"),A=x.isObject,v=x.isFunction,y=x.isPlainObject,p=x.getValue,I=H("./NodeType"),n=H("./XMLDocument"),s=H("./XMLElement"),g=H("./XMLCData"),S=H("./XMLComment"),o=H("./XMLRaw"),f=H("./XMLText"),e=H("./XMLProcessingInstruction"),r=H("./XMLDeclaration"),i=H("./XMLDocType"),m=H("./XMLDTDAttList"),c=H("./XMLDTDEntity"),h=H("./XMLDTDElement"),a=H("./XMLDTDNotation"),T=H("./XMLAttribute"),u=H("./XMLStringifier"),l=H("./XMLStringWriter"),E=H("./WriterState"),k.exports=t=function(){function w(b,_,O){var L;this.name="?xml",this.type=I.Document,b||(b={}),L={},b.writer?y(b.writer)&&(L=b.writer,b.writer=new l):b.writer=new l,this.options=b,this.writer=b.writer,this.writerOptions=this.writer.filterOptions(L),this.stringify=new u(b),this.onDataCallback=_||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return w.prototype.createChildNode=function(b){var _,O,L,D,N,M,F,R;switch(b.type){case I.CData:this.cdata(b.value);break;case I.Comment:this.comment(b.value);break;case I.Element:L={},F=b.attribs;for(O in F){if(!C.call(F,O))continue;_=F[O],L[O]=_.value}this.node(b.name,L);break;case I.Dummy:this.dummy();break;case I.Raw:this.raw(b.value);break;case I.Text:this.text(b.value);break;case I.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}for(R=b.children,N=0,M=R.length;N<M;N++)D=R[N],this.createChildNode(D),D.type===I.Element&&this.up();return this},w.prototype.dummy=function(){return this},w.prototype.node=function(b,_,O){var L;if(b==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(b));return this.openCurrent(),b=p(b),_==null&&(_={}),_=p(_),A(_)||(L=[_,O],O=L[0],_=L[1]),this.currentNode=new s(this,b,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},w.prototype.element=function(b,_,O){var L,D,N,M,F,R;if(this.currentNode&&this.currentNode.type===I.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(b)||A(b)||v(b))for(M=this.options.noValidation,this.options.noValidation=!0,R=new n(this.options).element("TEMP_ROOT"),R.element(b),this.options.noValidation=M,F=R.children,D=0,N=F.length;D<N;D++)L=F[D],this.createChildNode(L),L.type===I.Element&&this.up();else this.node(b,_,O);return this},w.prototype.attribute=function(b,_){var O,L;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b));if(b!=null&&(b=p(b)),A(b))for(O in b){if(!C.call(b,O))continue;L=b[O],this.attribute(O,L)}else v(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[b]=new T(this,b,""):_!=null&&(this.currentNode.attribs[b]=new T(this,b,_));return this},w.prototype.text=function(b){var _;return this.openCurrent(),_=new f(this,b),this.onData(this.writer.text(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.cdata=function(b){var _;return this.openCurrent(),_=new g(this,b),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.comment=function(b){var _;return this.openCurrent(),_=new S(this,b),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.raw=function(b){var _;return this.openCurrent(),_=new o(this,b),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.instruction=function(b,_){var O,L,D,N,M;if(this.openCurrent(),b!=null&&(b=p(b)),_!=null&&(_=p(_)),Array.isArray(b))for(O=0,N=b.length;O<N;O++)L=b[O],this.instruction(L);else if(A(b))for(L in b){if(!C.call(b,L))continue;D=b[L],this.instruction(L,D)}else v(_)&&(_=_.apply()),M=new e(this,b,_),this.onData(this.writer.processingInstruction(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},w.prototype.declaration=function(b,_,O){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,b,_,O),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.doctype=function(b,_,O){if(this.openCurrent(),b==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 i(this,_,O),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},w.prototype.dtdElement=function(b,_){var O;return this.openCurrent(),O=new h(this,b,_),this.onData(this.writer.dtdElement(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.attList=function(b,_,O,L,D){var N;return this.openCurrent(),N=new m(this,b,_,O,L,D),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.entity=function(b,_){var O;return this.openCurrent(),O=new c(this,!1,b,_),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.pEntity=function(b,_){var O;return this.openCurrent(),O=new c(this,!0,b,_),this.onData(this.writer.dtdEntity(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.notation=function(b,_){var O;return this.openCurrent(),O=new a(this,b,_),this.onData(this.writer.dtdNotation(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.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},w.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},w.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},w.prototype.openNode=function(b){var _,O,L,D;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===I.Element&&(this.root=b),O="",b.type===I.Element){this.writerOptions.state=E.OpenTag,O=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name,D=b.attribs;for(L in D){if(!C.call(D,L))continue;_=D[L],O+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}O+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,O=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName,b.pubID&&b.sysID?O+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(O+=' SYSTEM "'+b.sysID+'"'),b.children?(O+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,O+=">"),O+=this.writer.endline(b,this.writerOptions,this.currentLevel);return this.onData(O,this.currentLevel),b.isOpen=!0}},w.prototype.closeNode=function(b){var _;if(!b.isClosed)return _="",this.writerOptions.state=E.CloseTag,b.type===I.Element?_=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel):_=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(_,this.currentLevel),b.isClosed=!0},w.prototype.onData=function(b,_){return this.documentStarted=!0,this.onDataCallback(b,_+1)},w.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},w.prototype.debugInfo=function(b){return b==null?"":"node: <"+b+">"},w.prototype.ele=function(){return this.element.apply(this,arguments)},w.prototype.nod=function(b,_,O){return this.node(b,_,O)},w.prototype.txt=function(b){return this.text(b)},w.prototype.dat=function(b){return this.cdata(b)},w.prototype.com=function(b){return this.comment(b)},w.prototype.ins=function(b,_){return this.instruction(b,_)},w.prototype.dec=function(b,_,O){return this.declaration(b,_,O)},w.prototype.dtd=function(b,_,O){return this.doctype(b,_,O)},w.prototype.e=function(b,_,O){return this.element(b,_,O)},w.prototype.n=function(b,_,O){return this.node(b,_,O)},w.prototype.t=function(b){return this.text(b)},w.prototype.d=function(b){return this.cdata(b)},w.prototype.c=function(b){return this.comment(b)},w.prototype.r=function(b){return this.raw(b)},w.prototype.i=function(b,_){return this.instruction(b,_)},w.prototype.att=function(){return this.currentNode&&this.currentNode.type===I.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.a=function(){return this.currentNode&&this.currentNode.type===I.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.ent=function(b,_){return this.entity(b,_)},w.prototype.pent=function(b,_){return this.pEntity(b,_)},w.prototype.not=function(b,_){return this.notation(b,_)},w}()}).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(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function t(){this.constructor=r}return t.prototype=i.prototype,r.prototype=new t,r.__super__=i.prototype,r},c={}.hasOwnProperty;m=H("./XMLNode"),g=H("./NodeType"),k.exports=S=function(a){h(r,a);function r(i){r.__super__.constructor.call(this,i),this.type=g.Dummy}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(i){return""},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h,c,a,r,i,n,t=function(o,l){for(var u in l)s.call(l,u)&&(o[u]=l[u]);function f(){this.constructor=o}return f.prototype=l.prototype,o.prototype=new f,o.__super__=l.prototype,o},s={}.hasOwnProperty;n=H("./Utility"),i=n.isObject,r=n.isFunction,a=n.getValue,c=H("./XMLNode"),g=H("./NodeType"),S=H("./XMLAttribute"),h=H("./XMLNamedNodeMap"),k.exports=m=function(e){t(o,e);function o(l,u,f){var p,v,A,y;if(o.__super__.constructor.call(this,l),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=g.Element,this.attribs={},this.schemaTypeInfo=null,f!=null&&this.attribute(f),l.type===g.Document&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this,l.children)){for(y=l.children,v=0,A=y.length;v<A;v++)if(p=y[v],p.type===g.DocType){p.name=this.name;break}}}return Object.defineProperty(o.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(o.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(o.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new h(this.attribs)),this.attributeMap}}),o.prototype.clone=function(){var l,u,f,p;f=(0,E.default)(this),f.isRoot&&(f.documentObject=null),f.attribs={},p=this.attribs;for(u in p){if(!s.call(p,u))continue;l=p[u],f.attribs[u]=l.clone()}return f.children=[],this.children.forEach(function(v){var A;return A=v.clone(),A.parent=f,f.children.push(A)}),f},o.prototype.attribute=function(l,u){var f,p;if(l!=null&&(l=a(l)),i(l))for(f in l){if(!s.call(l,f))continue;p=l[f],this.attribute(f,p)}else r(u)&&(u=u.apply()),this.options.keepNullAttributes&&u==null?this.attribs[l]=new S(this,l,""):u!=null&&(this.attribs[l]=new S(this,l,u));return this},o.prototype.removeAttribute=function(l){var u,f,p;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=a(l),Array.isArray(l))for(f=0,p=l.length;f<p;f++)u=l[f],delete this.attribs[u];else delete this.attribs[l];return this},o.prototype.toString=function(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))},o.prototype.att=function(l,u){return this.attribute(l,u)},o.prototype.a=function(l,u){return this.attribute(l,u)},o.prototype.getAttribute=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null},o.prototype.setAttribute=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNode=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null},o.prototype.setAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setAttributeNS=function(l,u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNodeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setAttributeNodeNS=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.hasAttribute=function(l){return this.attribs.hasOwnProperty(l)},o.prototype.hasAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setIdAttribute=function(l,u){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:u},o.prototype.setIdAttributeNS=function(l,u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setIdAttributeNode=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(l){var u,f,p;if(!o.__super__.isEqualNode.apply(this,arguments).isEqualNode(l))return!1;if(l.namespaceURI!==this.namespaceURI)return!1;if(l.prefix!==this.prefix)return!1;if(l.localName!==this.localName)return!1;if(l.attribs.length!==this.attribs.length)return!1;for(u=f=0,p=this.attribs.length-1;0<=p?f<=p:f>=p;u=0<=p?++f:--f)if(!this.attribs[u].isEqualNode(l.attribs[u]))return!1;return!0},o}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/keys"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g;k.exports=g=function(){function S(m){this.nodes=m}return Object.defineProperty(S.prototype,"length",{get:function(){return(0,E.default)(this.nodes).length||0}}),S.prototype.clone=function(){return this.nodes=null},S.prototype.getNamedItem=function(m){return this.nodes[m]},S.prototype.setNamedItem=function(m){var h;return h=this.nodes[m.nodeName],this.nodes[m.nodeName]=m,h||null},S.prototype.removeNamedItem=function(m){var h;return h=this.nodes[m],delete this.nodes[m],h||null},S.prototype.item=function(m){return this.nodes[(0,E.default)(this.nodes)[m]]||null},S.prototype.getNamedItemNS=function(m,h){throw new Error("This DOM method is not implemented.")},S.prototype.setNamedItemNS=function(m){throw new Error("This DOM method is not implemented.")},S.prototype.removeNamedItemNS=function(m,h){throw new Error("This DOM method is not implemented.")},S}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(H,k,d){"use strict";(function(){var I,E,T,g,S,m,h,c,a,r,i,n,t,s,e,o,l,u,f,p={}.hasOwnProperty;f=H("./Utility"),u=f.isObject,l=f.isFunction,o=f.isEmpty,e=f.getValue,c=null,T=null,g=null,S=null,m=null,t=null,s=null,n=null,h=null,E=null,i=null,a=null,I=null,k.exports=r=function(){function v(A){this.parent=A,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=H("./XMLElement"),T=H("./XMLCData"),g=H("./XMLComment"),S=H("./XMLDeclaration"),m=H("./XMLDocType"),t=H("./XMLRaw"),s=H("./XMLText"),n=H("./XMLProcessingInstruction"),h=H("./XMLDummy"),E=H("./NodeType"),i=H("./XMLNodeList"),a=H("./XMLNamedNodeMap"),I=H("./DocumentPosition"))}return Object.defineProperty(v.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(v.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(v.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(v.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(v.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new i(this.children)),this.childNodeList}}),Object.defineProperty(v.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(v.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(v.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(v.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(v.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(v.prototype,"textContent",{get:function(){var y,x,C,w,b;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(b="",w=this.children,x=0,C=w.length;x<C;x++)y=w[x],y.textContent&&(b+=y.textContent);return b}else return null},set:function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),v.prototype.setParent=function(A){var y,x,C,w,b;for(this.parent=A,A&&(this.options=A.options,this.stringify=A.stringify),w=this.children,b=[],x=0,C=w.length;x<C;x++)y=w[x],b.push(y.setParent(this));return b},v.prototype.element=function(A,y,x){var C,w,b,_,O,L,D,N,M,F,R;if(L=null,y===null&&x==null&&(M=[{},null],y=M[0],x=M[1]),y==null&&(y={}),y=e(y),u(y)||(F=[y,x],x=F[0],y=F[1]),A!=null&&(A=e(A)),Array.isArray(A))for(b=0,D=A.length;b<D;b++)w=A[b],L=this.element(w);else if(l(A))L=this.element(A.apply());else if(u(A))for(O in A){if(!p.call(A,O))continue;if(R=A[O],l(R)&&(R=R.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&O.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(O.substr(this.stringify.convertAttKey.length),R);else if(!this.options.separateArrayItems&&Array.isArray(R)&&o(R))L=this.dummy();else if(u(R)&&o(R))L=this.element(O);else if(!this.options.keepNullNodes&&R==null)L=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(R))for(_=0,N=R.length;_<N;_++)w=R[_],C={},C[O]=w,L=this.element(C);else u(R)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&O.indexOf(this.stringify.convertTextKey)===0?L=this.element(R):(L=this.element(O),L.element(R)):L=this.element(O,R)}else!this.options.keepNullNodes&&x===null?L=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&A.indexOf(this.stringify.convertTextKey)===0?L=this.text(x):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&A.indexOf(this.stringify.convertCDataKey)===0?L=this.cdata(x):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&A.indexOf(this.stringify.convertCommentKey)===0?L=this.comment(x):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&A.indexOf(this.stringify.convertRawKey)===0?L=this.raw(x):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&A.indexOf(this.stringify.convertPIKey)===0?L=this.instruction(A.substr(this.stringify.convertPIKey.length),x):L=this.node(A,y,x);if(L==null)throw new Error("Could not create any elements with: "+A+". "+this.debugInfo());return L},v.prototype.insertBefore=function(A,y,x){var C,w,b,_,O;if(A!=null?A.type:void 0)return b=A,_=y,b.setParent(this),_?(w=children.indexOf(_),O=children.splice(w),children.push(b),Array.prototype.push.apply(children,O)):children.push(b),b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return w=this.parent.children.indexOf(this),O=this.parent.children.splice(w),C=this.parent.element(A,y,x),Array.prototype.push.apply(this.parent.children,O),C},v.prototype.insertAfter=function(A,y,x){var C,w,b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return w=this.parent.children.indexOf(this),b=this.parent.children.splice(w+1),C=this.parent.element(A,y,x),Array.prototype.push.apply(this.parent.children,b),C},v.prototype.remove=function(){var A,y;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return A=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[A,A-A+1].concat(y=[])),this.parent},v.prototype.node=function(A,y,x){var C,w;return A!=null&&(A=e(A)),y||(y={}),y=e(y),u(y)||(w=[y,x],x=w[0],y=w[1]),C=new c(this,A,y),x!=null&&C.text(x),this.children.push(C),C},v.prototype.text=function(A){var y;return u(A)&&this.element(A),y=new s(this,A),this.children.push(y),this},v.prototype.cdata=function(A){var y;return y=new T(this,A),this.children.push(y),this},v.prototype.comment=function(A){var y;return y=new g(this,A),this.children.push(y),this},v.prototype.commentBefore=function(A){var y,x,C;return x=this.parent.children.indexOf(this),C=this.parent.children.splice(x),y=this.parent.comment(A),Array.prototype.push.apply(this.parent.children,C),this},v.prototype.commentAfter=function(A){var y,x,C;return x=this.parent.children.indexOf(this),C=this.parent.children.splice(x+1),y=this.parent.comment(A),Array.prototype.push.apply(this.parent.children,C),this},v.prototype.raw=function(A){var y;return y=new t(this,A),this.children.push(y),this},v.prototype.dummy=function(){var A;return A=new h(this),A},v.prototype.instruction=function(A,y){var x,C,w,b,_;if(A!=null&&(A=e(A)),y!=null&&(y=e(y)),Array.isArray(A))for(b=0,_=A.length;b<_;b++)x=A[b],this.instruction(x);else if(u(A))for(x in A){if(!p.call(A,x))continue;C=A[x],this.instruction(x,C)}else l(y)&&(y=y.apply()),w=new n(this,A,y),this.children.push(w);return this},v.prototype.instructionBefore=function(A,y){var x,C,w;return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C),x=this.parent.instruction(A,y),Array.prototype.push.apply(this.parent.children,w),this},v.prototype.instructionAfter=function(A,y){var x,C,w;return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C+1),x=this.parent.instruction(A,y),Array.prototype.push.apply(this.parent.children,w),this},v.prototype.declaration=function(A,y,x){var C,w;return C=this.document(),w=new S(C,A,y,x),C.children.length===0?C.children.unshift(w):C.children[0].type===E.Declaration?C.children[0]=w:C.children.unshift(w),C.root()||C},v.prototype.dtd=function(A,y){var x,C,w,b,_,O,L,D,N,M;for(C=this.document(),w=new m(C,A,y),N=C.children,b=_=0,L=N.length;_<L;b=++_)if(x=N[b],x.type===E.DocType)return C.children[b]=w,w;for(M=C.children,b=O=0,D=M.length;O<D;b=++O)if(x=M[b],x.isRoot)return C.children.splice(b,0,w),w;return C.children.push(w),w},v.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},v.prototype.root=function(){var A;for(A=this;A;){if(A.type===E.Document)return A.rootObject;if(A.isRoot)return A;A=A.parent}},v.prototype.document=function(){var A;for(A=this;A;){if(A.type===E.Document)return A;A=A.parent}},v.prototype.end=function(A){return this.document().end(A)},v.prototype.prev=function(){var A;if(A=this.parent.children.indexOf(this),A<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[A-1]},v.prototype.next=function(){var A;if(A=this.parent.children.indexOf(this),A===-1||A===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[A+1]},v.prototype.importDocument=function(A){var y;return y=A.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},v.prototype.debugInfo=function(A){var y,x;return A=A||this.name,A==null&&!((y=this.parent)!=null?y.name:void 0)?"":A==null?"parent: <"+this.parent.name+">":((x=this.parent)!=null?x.name:void 0)?"node: <"+A+">, parent: <"+this.parent.name+">":"node: <"+A+">"},v.prototype.ele=function(A,y,x){return this.element(A,y,x)},v.prototype.nod=function(A,y,x){return this.node(A,y,x)},v.prototype.txt=function(A){return this.text(A)},v.prototype.dat=function(A){return this.cdata(A)},v.prototype.com=function(A){return this.comment(A)},v.prototype.ins=function(A,y){return this.instruction(A,y)},v.prototype.doc=function(){return this.document()},v.prototype.dec=function(A,y,x){return this.declaration(A,y,x)},v.prototype.e=function(A,y,x){return this.element(A,y,x)},v.prototype.n=function(A,y,x){return this.node(A,y,x)},v.prototype.t=function(A){return this.text(A)},v.prototype.d=function(A){return this.cdata(A)},v.prototype.c=function(A){return this.comment(A)},v.prototype.r=function(A){return this.raw(A)},v.prototype.i=function(A,y){return this.instruction(A,y)},v.prototype.u=function(){return this.up()},v.prototype.importXMLBuilder=function(A){return this.importDocument(A)},v.prototype.replaceChild=function(A,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.removeChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.appendChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.hasChildNodes=function(){return this.children.length!==0},v.prototype.cloneNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.isSupported=function(A,y){return!0},v.prototype.hasAttributes=function(){return this.attribs.length!==0},v.prototype.compareDocumentPosition=function(A){var y,x;return y=this,y===A?0:this.document()!==A.document()?(x=I.Disconnected|I.ImplementationSpecific,Math.random()<.5?x|=I.Preceding:x|=I.Following,x):y.isAncestor(A)?I.Contains|I.Preceding:y.isDescendant(A)?I.Contains|I.Following:y.isPreceding(A)?I.Preceding:I.Following},v.prototype.isSameNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.lookupPrefix=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.isDefaultNamespace=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.lookupNamespaceURI=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.isEqualNode=function(A){var y,x,C;if(A.nodeType!==this.nodeType)return!1;if(A.children.length!==this.children.length)return!1;for(y=x=0,C=this.children.length-1;0<=C?x<=C:x>=C;y=0<=C?++x:--x)if(!this.children[y].isEqualNode(A.children[y]))return!1;return!0},v.prototype.getFeature=function(A,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.setUserData=function(A,y,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getUserData=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.contains=function(A){return A?A===this||this.isDescendant(A):!1},v.prototype.isDescendant=function(A){var y,x,C,w,b;for(b=this.children,C=0,w=b.length;C<w;C++){if(y=b[C],A===y)return!0;if(x=y.isDescendant(A),x)return!0}return!1},v.prototype.isAncestor=function(A){return A.isDescendant(this)},v.prototype.isPreceding=function(A){var y,x;return y=this.treePosition(A),x=this.treePosition(this),y===-1||x===-1?!1:y<x},v.prototype.isFollowing=function(A){var y,x;return y=this.treePosition(A),x=this.treePosition(this),y===-1||x===-1?!1:y>x},v.prototype.treePosition=function(A){var y,x;return x=0,y=!1,this.foreachTreeNode(this.document(),function(C){if(x++,!y&&C===A)return y=!0}),y?x:-1},v.prototype.foreachTreeNode=function(A,y){var x,C,w,b,_;for(A||(A=this.document()),b=A.children,C=0,w=b.length;C<w;C++){if(x=b[C],_=y(x))return _;if(_=this.foreachTreeNode(x,y),_)return _}},v}()}).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(H,k,d){"use strict";(function(){var I;k.exports=I=function(){function E(T){this.nodes=T}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(T){return this.nodes[T]||null},E}()}).call(void 0)},{}],275:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function t(){this.constructor=r}return t.prototype=i.prototype,r.prototype=new t,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./NodeType"),S=H("./XMLCharacterData"),k.exports=m=function(a){h(r,a);function r(i,n,t){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=g.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,t&&(this.value=this.stringify.insValue(t))}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))},r.prototype.isEqualNode=function(i){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.target!==this.target):!1},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function t(){this.constructor=r}return t.prototype=i.prototype,r.prototype=new t,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./NodeType"),S=H("./XMLNode"),k.exports=m=function(a){h(r,a);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=g.Raw,this.value=this.stringify.raw(n)}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(H,k,d){"use strict";(function(){var I,E,T,g,S=function(c,a){for(var r in a)m.call(a,r)&&(c[r]=a[r]);function i(){this.constructor=c}return i.prototype=a.prototype,c.prototype=new i,c.__super__=a.prototype,c},m={}.hasOwnProperty;I=H("./NodeType"),g=H("./XMLWriterBase"),E=H("./WriterState"),k.exports=T=function(h){S(c,h);function c(a,r){this.stream=a,c.__super__.constructor.call(this,r)}return c.prototype.endline=function(a,r,i){return a.isLastRootNode&&r.state===E.CloseTag?"":c.__super__.endline.call(this,a,r,i)},c.prototype.document=function(a,r){var i,n,t,s,e,o,l,u,f;for(l=a.children,n=t=0,e=l.length;t<e;n=++t)i=l[n],i.isLastRootNode=n===a.children.length-1;for(r=this.filterOptions(r),u=a.children,f=[],s=0,o=u.length;s<o;s++)i=u[s],f.push(this.writeChildNode(i,r,0));return f},c.prototype.attribute=function(a,r,i){return this.stream.write(c.__super__.attribute.call(this,a,r,i))},c.prototype.cdata=function(a,r,i){return this.stream.write(c.__super__.cdata.call(this,a,r,i))},c.prototype.comment=function(a,r,i){return this.stream.write(c.__super__.comment.call(this,a,r,i))},c.prototype.declaration=function(a,r,i){return this.stream.write(c.__super__.declaration.call(this,a,r,i))},c.prototype.docType=function(a,r,i){var n,t,s,e;if(i||(i=0),this.openNode(a,r,i),r.state=E.OpenTag,this.stream.write(this.indent(a,r,i)),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,r,i)),r.state=E.InsideTag,e=a.children,t=0,s=e.length;t<s;t++)n=e[t],this.writeChildNode(n,r,i+1);r.state=E.CloseTag,this.stream.write("]")}return r.state=E.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(a,r,i)),r.state=E.None,this.closeNode(a,r,i)},c.prototype.element=function(a,r,i){var n,t,s,e,o,l,u,f,p,v;i||(i=0),this.openNode(a,r,i),r.state=E.OpenTag,this.stream.write(this.indent(a,r,i)+"<"+a.name),p=a.attribs;for(u in p){if(!m.call(p,u))continue;n=p[u],this.attribute(n,r,i)}if(s=a.children.length,e=s===0?null:a.children[0],s===0||a.children.every(function(A){return(A.type===I.Text||A.type===I.Raw)&&A.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=E.CloseTag,this.stream.write("</"+a.name+">")):(r.state=E.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&s===1&&(e.type===I.Text||e.type===I.Raw)&&e.value!=null)this.stream.write(">"),r.state=E.InsideTag,r.suppressPrettyCount++,f=!0,this.writeChildNode(e,r,i+1),r.suppressPrettyCount--,f=!1,r.state=E.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,r,i)),r.state=E.InsideTag,v=a.children,o=0,l=v.length;o<l;o++)t=v[o],this.writeChildNode(t,r,i+1);r.state=E.CloseTag,this.stream.write(this.indent(a,r,i)+"</"+a.name+">")}return this.stream.write(this.endline(a,r,i)),r.state=E.None,this.closeNode(a,r,i)},c.prototype.processingInstruction=function(a,r,i){return this.stream.write(c.__super__.processingInstruction.call(this,a,r,i))},c.prototype.raw=function(a,r,i){return this.stream.write(c.__super__.raw.call(this,a,r,i))},c.prototype.text=function(a,r,i){return this.stream.write(c.__super__.text.call(this,a,r,i))},c.prototype.dtdAttList=function(a,r,i){return this.stream.write(c.__super__.dtdAttList.call(this,a,r,i))},c.prototype.dtdElement=function(a,r,i){return this.stream.write(c.__super__.dtdElement.call(this,a,r,i))},c.prototype.dtdEntity=function(a,r,i){return this.stream.write(c.__super__.dtdEntity.call(this,a,r,i))},c.prototype.dtdNotation=function(a,r,i){return this.stream.write(c.__super__.dtdNotation.call(this,a,r,i))},c}(g)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(H,k,d){"use strict";(function(){var I,E,T=function(m,h){for(var c in h)g.call(h,c)&&(m[c]=h[c]);function a(){this.constructor=m}return a.prototype=h.prototype,m.prototype=new a,m.__super__=h.prototype,m},g={}.hasOwnProperty;E=H("./XMLWriterBase"),k.exports=I=function(S){T(m,S);function m(h){m.__super__.constructor.call(this,h)}return m.prototype.document=function(h,c){var a,r,i,n,t;for(c=this.filterOptions(c),n="",t=h.children,r=0,i=t.length;r<i;r++)a=t[r],n+=this.writeChildNode(a,c,0);return c.pretty&&n.slice(-c.newline.length)===c.newline&&(n=n.slice(0,-c.newline.length)),n},m}(E)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(H,k,d){"use strict";(function(){var I,E=function(S,m){return function(){return S.apply(m,arguments)}},T={}.hasOwnProperty;k.exports=I=function(){function g(S){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var m,h,c;S||(S={}),this.options=S,this.options.version||(this.options.version="1.0"),h=S.stringify||{};for(m in h){if(!T.call(h,m))continue;c=h[m],this[m]=c}}return g.prototype.name=function(S){return this.options.noValidation?S:this.assertLegalName(""+S||"")},g.prototype.text=function(S){return this.options.noValidation?S:this.assertLegalChar(this.textEscape(""+S||""))},g.prototype.cdata=function(S){return this.options.noValidation?S:(S=""+S||"",S=S.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(S))},g.prototype.comment=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+S);return this.assertLegalChar(S)},g.prototype.raw=function(S){return this.options.noValidation?S:""+S||""},g.prototype.attValue=function(S){return this.options.noValidation?S:this.assertLegalChar(this.attEscape(S=""+S||""))},g.prototype.insTarget=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.insValue=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/\?>/))throw new Error("Invalid processing instruction value: "+S);return this.assertLegalChar(S)},g.prototype.xmlVersion=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+S);return S},g.prototype.xmlEncoding=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+S);return this.assertLegalChar(S)},g.prototype.xmlStandalone=function(S){return this.options.noValidation?S:S?"yes":"no"},g.prototype.dtdPubID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.dtdSysID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.dtdElementValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.dtdAttType=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.dtdAttDefault=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.dtdEntityValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.dtdNData=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},g.prototype.convertAttKey="@",g.prototype.convertPIKey="?",g.prototype.convertTextKey="#text",g.prototype.convertCDataKey="#cdata",g.prototype.convertCommentKey="#comment",g.prototype.convertRawKey="#raw",g.prototype.assertLegalChar=function(S){var m,h;if(this.options.noValidation)return S;if(m="",this.options.version==="1.0"){if(m=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=S.match(m))throw new Error("Invalid character in string: "+S+" at index "+h.index)}else if(this.options.version==="1.1"&&(m=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=S.match(m)))throw new Error("Invalid character in string: "+S+" at index "+h.index);return S},g.prototype.assertLegalName=function(S){var m;if(this.options.noValidation)return S;if(this.assertLegalChar(S),m=/^([: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])*$/,!S.match(m))throw new Error("Invalid character in name");return S},g.prototype.textEscape=function(S){var m;return this.options.noValidation?S:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(m,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},g.prototype.attEscape=function(S){var m;return this.options.noValidation?S:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(m,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},g}()}).call(void 0)},{}],280:[function(H,k,d){"use strict";var I=H("babel-runtime/core-js/object/create"),E=T(I);function T(g){return g&&g.__esModule?g:{default:g}}(function(){var g,S,m,h=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function t(){this.constructor=r}return t.prototype=i.prototype,r.prototype=new t,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./NodeType"),S=H("./XMLCharacterData"),k.exports=m=function(a){h(r,a);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=g.Text,this.value=this.stringify.text(n)}return Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var n,t,s;for(s="",t=this.previousSibling;t;)s=t.data+s,t=t.previousSibling;for(s+=this.data,n=this.nextSibling;n;)s=s+n.data,n=n.nextSibling;return s}}),r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(i){return this.options.writer.text(this,this.options.writer.filterOptions(i))},r.prototype.splitText=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(H,k,d){"use strict";(function(){var I,E,T,g,S,m,h,c,a,r,i,n,t,s,e,o,l,u={}.hasOwnProperty;l=H("./Utility").assign,I=H("./NodeType"),a=H("./XMLDeclaration"),r=H("./XMLDocType"),T=H("./XMLCData"),g=H("./XMLComment"),n=H("./XMLElement"),s=H("./XMLRaw"),e=H("./XMLText"),t=H("./XMLProcessingInstruction"),i=H("./XMLDummy"),S=H("./XMLDTDAttList"),m=H("./XMLDTDElement"),h=H("./XMLDTDEntity"),c=H("./XMLDTDNotation"),E=H("./WriterState"),k.exports=o=function(){function f(p){var v,A,y;p||(p={}),this.options=p,A=p.writer||{};for(v in A){if(!u.call(A,v))continue;y=A[v],this["_"+v]=this[v],this[v]=y}}return f.prototype.filterOptions=function(p){var v,A,y,x,C,w,b,_;return p||(p={}),p=l({},this.options,p),v={writer:this},v.pretty=p.pretty||!1,v.allowEmpty=p.allowEmpty||!1,v.indent=(A=p.indent)!=null?A:" ",v.newline=(y=p.newline)!=null?y:`
|
|
|
`,v.offset=(x=p.offset)!=null?x:0,v.dontPrettyTextNodes=(C=(w=p.dontPrettyTextNodes)!=null?w:p.dontprettytextnodes)!=null?C:0,v.spaceBeforeSlash=(b=(_=p.spaceBeforeSlash)!=null?_:p.spacebeforeslash)!=null?b:"",v.spaceBeforeSlash===!0&&(v.spaceBeforeSlash=" "),v.suppressPrettyCount=0,v.user={},v.state=E.None,v},f.prototype.indent=function(p,v,A){var y;return!v.pretty||v.suppressPrettyCount?"":v.pretty&&(y=(A||0)+v.offset+1,y>0)?new Array(y).join(v.indent):""},f.prototype.endline=function(p,v,A){return!v.pretty||v.suppressPrettyCount?"":v.newline},f.prototype.attribute=function(p,v,A){var y;return this.openAttribute(p,v,A),y=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,v,A),y},f.prototype.cdata=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<![CDATA[",v.state=E.InsideTag,y+=p.value,v.state=E.CloseTag,y+="]]>"+this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.comment=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<!-- ",v.state=E.InsideTag,y+=p.value,v.state=E.CloseTag,y+=" -->"+this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.declaration=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<?xml",v.state=E.InsideTag,y+=' version="'+p.version+'"',p.encoding!=null&&(y+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(y+=' standalone="'+p.standalone+'"'),v.state=E.CloseTag,y+=v.spaceBeforeSlash+"?>",y+=this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.docType=function(p,v,A){var y,x,C,w,b;if(A||(A=0),this.openNode(p,v,A),v.state=E.OpenTag,w=this.indent(p,v,A),w+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?w+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(w+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(w+=" [",w+=this.endline(p,v,A),v.state=E.InsideTag,b=p.children,x=0,C=b.length;x<C;x++)y=b[x],w+=this.writeChildNode(y,v,A+1);v.state=E.CloseTag,w+="]"}return v.state=E.CloseTag,w+=v.spaceBeforeSlash+">",w+=this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),w},f.prototype.element=function(p,v,A){var y,x,C,w,b,_,O,L,D,N,M,F,R,j;A||(A=0),N=!1,M="",this.openNode(p,v,A),v.state=E.OpenTag,M+=this.indent(p,v,A)+"<"+p.name,F=p.attribs;for(D in F){if(!u.call(F,D))continue;y=F[D],M+=this.attribute(y,v,A)}if(C=p.children.length,w=C===0?null:p.children[0],C===0||p.children.every(function(B){return(B.type===I.Text||B.type===I.Raw)&&B.value===""}))v.allowEmpty?(M+=">",v.state=E.CloseTag,M+="</"+p.name+">"+this.endline(p,v,A)):(v.state=E.CloseTag,M+=v.spaceBeforeSlash+"/>"+this.endline(p,v,A));else if(v.pretty&&C===1&&(w.type===I.Text||w.type===I.Raw)&&w.value!=null)M+=">",v.state=E.InsideTag,v.suppressPrettyCount++,N=!0,M+=this.writeChildNode(w,v,A+1),v.suppressPrettyCount--,N=!1,v.state=E.CloseTag,M+="</"+p.name+">"+this.endline(p,v,A);else{if(v.dontPrettyTextNodes){for(R=p.children,b=0,O=R.length;b<O;b++)if(x=R[b],(x.type===I.Text||x.type===I.Raw)&&x.value!=null){v.suppressPrettyCount++,N=!0;break}}for(M+=">"+this.endline(p,v,A),v.state=E.InsideTag,j=p.children,_=0,L=j.length;_<L;_++)x=j[_],M+=this.writeChildNode(x,v,A+1);v.state=E.CloseTag,M+=this.indent(p,v,A)+"</"+p.name+">",N&&v.suppressPrettyCount--,M+=this.endline(p,v,A),v.state=E.None}return this.closeNode(p,v,A),M},f.prototype.writeChildNode=function(p,v,A){switch(p.type){case I.CData:return this.cdata(p,v,A);case I.Comment:return this.comment(p,v,A);case I.Element:return this.element(p,v,A);case I.Raw:return this.raw(p,v,A);case I.Text:return this.text(p,v,A);case I.ProcessingInstruction:return this.processingInstruction(p,v,A);case I.Dummy:return"";case I.Declaration:return this.declaration(p,v,A);case I.DocType:return this.docType(p,v,A);case I.AttributeDeclaration:return this.dtdAttList(p,v,A);case I.ElementDeclaration:return this.dtdElement(p,v,A);case I.EntityDeclaration:return this.dtdEntity(p,v,A);case I.NotationDeclaration:return this.dtdNotation(p,v,A);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},f.prototype.processingInstruction=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<?",v.state=E.InsideTag,y+=p.target,p.value&&(y+=" "+p.value),v.state=E.CloseTag,y+=v.spaceBeforeSlash+"?>",y+=this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.raw=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A),v.state=E.InsideTag,y+=p.value,v.state=E.CloseTag,y+=this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.text=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A),v.state=E.InsideTag,y+=p.value,v.state=E.CloseTag,y+=this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.dtdAttList=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<!ATTLIST",v.state=E.InsideTag,y+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(y+=" "+p.defaultValueType),p.defaultValue&&(y+=' "'+p.defaultValue+'"'),v.state=E.CloseTag,y+=v.spaceBeforeSlash+">"+this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.dtdElement=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<!ELEMENT",v.state=E.InsideTag,y+=" "+p.name+" "+p.value,v.state=E.CloseTag,y+=v.spaceBeforeSlash+">"+this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.dtdEntity=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<!ENTITY",v.state=E.InsideTag,p.pe&&(y+=" %"),y+=" "+p.name,p.value?y+=' "'+p.value+'"':(p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),p.nData&&(y+=" NDATA "+p.nData)),v.state=E.CloseTag,y+=v.spaceBeforeSlash+">"+this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.dtdNotation=function(p,v,A){var y;return this.openNode(p,v,A),v.state=E.OpenTag,y=this.indent(p,v,A)+"<!NOTATION",v.state=E.InsideTag,y+=" "+p.name,p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?y+=' PUBLIC "'+p.pubID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),v.state=E.CloseTag,y+=v.spaceBeforeSlash+">"+this.endline(p,v,A),v.state=E.None,this.closeNode(p,v,A),y},f.prototype.openNode=function(p,v,A){},f.prototype.closeNode=function(p,v,A){},f.prototype.openAttribute=function(p,v,A){},f.prototype.closeAttribute=function(p,v,A){},f}()}).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(H,k,d){"use strict";(function(){var I,E,T,g,S,m,h,c,a,r;r=H("./Utility"),c=r.assign,a=r.isFunction,T=H("./XMLDOMImplementation"),g=H("./XMLDocument"),S=H("./XMLDocumentCB"),h=H("./XMLStringWriter"),m=H("./XMLStreamWriter"),I=H("./NodeType"),E=H("./WriterState"),k.exports.create=function(i,n,t,s){var e,o;if(i==null)throw new Error("Root element needs a name.");return s=c({},n,t,s),e=new g(s),o=e.element(i),s.headless||(e.declaration(s),(s.pubID!=null||s.sysID!=null)&&e.dtd(s)),o},k.exports.begin=function(i,n,t){var s;return a(i)&&(s=[i,n],n=s[0],t=s[1],i={}),n?new S(i,n,t):new g(i)},k.exports.stringWriter=function(i){return new h(i)},k.exports.streamWriter=function(i,n){return new m(i,n)},k.exports.implementation=new T,k.exports.nodeType=I,k.exports.writerState=E}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(H,k,d){k.exports=E;var I=Object.prototype.hasOwnProperty;function E(){for(var T={},g=0;g<arguments.length;g++){var S=arguments[g];for(var m in S)I.call(S,m)&&(T[m]=S[m])}return T}},{}],284:[function(H,k,d){"use strict";var I=H("buffer").Buffer,E=H("./sha"),T=H("./md5"),g={sha1:E,md5:T},S=64,m=I.alloc(S);m.fill(0);function h(r,i,n){I.isBuffer(i)||(i=I.from(i)),I.isBuffer(n)||(n=I.from(n)),i.length>S?i=r(i):i.length<S&&(i=I.concat([i,m],S));for(var t=I.alloc(S),s=I.alloc(S),e=0;e<S;e++)t[e]=i[e]^54,s[e]=i[e]^92;var o=r(I.concat([t,n]));return r(I.concat([s,o]))}function c(r,i){r=r||"sha1";var n=g[r],t=[],s=0;return n||a("algorithm:",r,"is not yet supported"),{update:function(o){return I.isBuffer(o)||(o=I.from(o)),t.push(o),s+=o.length,this},digest:function(o){var l=I.concat(t),u=i?h(n,i,l):n(l);return t=null,o?u.toString(o):u}}}function a(){var r=[].slice.call(arguments).join(" ");throw new Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}d.createHash=function(r){return c(r)},d.createHmac=function(r,i){return c(r,i)},d.createCredentials=function(){a("sorry,createCredentials is not implemented yet")},d.createCipher=function(){a("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){a("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){a("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){a("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){a("sorry,createSign is not implemented yet")},d.createVerify=function(){a("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){a("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){a("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(H,k,d){"use strict";var I=H("buffer").Buffer,E=4,T=I.alloc(E);T.fill(0);var g=8;function S(c,a){if(c.length%E!==0){var r=c.length+(E-c.length%E);c=I.concat([c,T],r)}for(var i=[],n=a?c.readInt32BE:c.readInt32LE,t=0;t<c.length;t+=E)i.push(n.call(c,t));return i}function m(c,a,r){for(var i=I.alloc(a),n=r?i.writeInt32BE:i.writeInt32LE,t=0;t<c.length;t++)n.call(i,c[t],t*4,!0);return i}function h(c,a,r,i){I.isBuffer(c)||(c=I.from(c));var n=a(S(c,i),c.length*g);return m(n,r,i)}k.exports={hash:h}},{buffer:73}],286:[function(H,k,d){"use strict";var I=H("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(i,n){i[n>>5]|=128<<n%32,i[(n+64>>>9<<4)+14]=n;for(var t=1732584193,s=-271733879,e=-1732584194,o=271733878,l=0;l<i.length;l+=16){var u=t,f=s,p=e,v=o;t=S(t,s,e,o,i[l+0],7,-680876936),o=S(o,t,s,e,i[l+1],12,-389564586),e=S(e,o,t,s,i[l+2],17,606105819),s=S(s,e,o,t,i[l+3],22,-1044525330),t=S(t,s,e,o,i[l+4],7,-176418897),o=S(o,t,s,e,i[l+5],12,1200080426),e=S(e,o,t,s,i[l+6],17,-1473231341),s=S(s,e,o,t,i[l+7],22,-45705983),t=S(t,s,e,o,i[l+8],7,1770035416),o=S(o,t,s,e,i[l+9],12,-1958414417),e=S(e,o,t,s,i[l+10],17,-42063),s=S(s,e,o,t,i[l+11],22,-1990404162),t=S(t,s,e,o,i[l+12],7,1804603682),o=S(o,t,s,e,i[l+13],12,-40341101),e=S(e,o,t,s,i[l+14],17,-1502002290),s=S(s,e,o,t,i[l+15],22,1236535329),t=m(t,s,e,o,i[l+1],5,-165796510),o=m(o,t,s,e,i[l+6],9,-1069501632),e=m(e,o,t,s,i[l+11],14,643717713),s=m(s,e,o,t,i[l+0],20,-373897302),t=m(t,s,e,o,i[l+5],5,-701558691),o=m(o,t,s,e,i[l+10],9,38016083),e=m(e,o,t,s,i[l+15],14,-660478335),s=m(s,e,o,t,i[l+4],20,-405537848),t=m(t,s,e,o,i[l+9],5,568446438),o=m(o,t,s,e,i[l+14],9,-1019803690),e=m(e,o,t,s,i[l+3],14,-187363961),s=m(s,e,o,t,i[l+8],20,1163531501),t=m(t,s,e,o,i[l+13],5,-1444681467),o=m(o,t,s,e,i[l+2],9,-51403784),e=m(e,o,t,s,i[l+7],14,1735328473),s=m(s,e,o,t,i[l+12],20,-1926607734),t=h(t,s,e,o,i[l+5],4,-378558),o=h(o,t,s,e,i[l+8],11,-2022574463),e=h(e,o,t,s,i[l+11],16,1839030562),s=h(s,e,o,t,i[l+14],23,-35309556),t=h(t,s,e,o,i[l+1],4,-1530992060),o=h(o,t,s,e,i[l+4],11,1272893353),e=h(e,o,t,s,i[l+7],16,-155497632),s=h(s,e,o,t,i[l+10],23,-1094730640),t=h(t,s,e,o,i[l+13],4,681279174),o=h(o,t,s,e,i[l+0],11,-358537222),e=h(e,o,t,s,i[l+3],16,-722521979),s=h(s,e,o,t,i[l+6],23,76029189),t=h(t,s,e,o,i[l+9],4,-640364487),o=h(o,t,s,e,i[l+12],11,-421815835),e=h(e,o,t,s,i[l+15],16,530742520),s=h(s,e,o,t,i[l+2],23,-995338651),t=c(t,s,e,o,i[l+0],6,-198630844),o=c(o,t,s,e,i[l+7],10,1126891415),e=c(e,o,t,s,i[l+14],15,-1416354905),s=c(s,e,o,t,i[l+5],21,-57434055),t=c(t,s,e,o,i[l+12],6,1700485571),o=c(o,t,s,e,i[l+3],10,-1894986606),e=c(e,o,t,s,i[l+10],15,-1051523),s=c(s,e,o,t,i[l+1],21,-2054922799),t=c(t,s,e,o,i[l+8],6,1873313359),o=c(o,t,s,e,i[l+15],10,-30611744),e=c(e,o,t,s,i[l+6],15,-1560198380),s=c(s,e,o,t,i[l+13],21,1309151649),t=c(t,s,e,o,i[l+4],6,-145523070),o=c(o,t,s,e,i[l+11],10,-1120210379),e=c(e,o,t,s,i[l+2],15,718787259),s=c(s,e,o,t,i[l+9],21,-343485551),t=a(t,u),s=a(s,f),e=a(e,p),o=a(o,v)}return Array(t,s,e,o)}function g(i,n,t,s,e,o){return a(r(a(a(n,i),a(s,o)),e),t)}function S(i,n,t,s,e,o,l){return g(n&t|~n&s,i,n,e,o,l)}function m(i,n,t,s,e,o,l){return g(n&s|t&~s,i,n,e,o,l)}function h(i,n,t,s,e,o,l){return g(n^t^s,i,n,e,o,l)}function c(i,n,t,s,e,o,l){return g(t^(n|~s),i,n,e,o,l)}function a(i,n){var t=(i&65535)+(n&65535),s=(i>>16)+(n>>16)+(t>>16);return s<<16|t&65535}function r(i,n){return i<<n|i>>>32-n}k.exports=function(n){return I.hash(n,T,16)}},{"./helpers":285}],287:[function(H,k,d){"use strict";var I=H("./helpers");function E(h,c){h[c>>5]|=128<<24-c%32,h[(c+64>>9<<4)+15]=c;for(var a=Array(80),r=1732584193,i=-271733879,n=-1732584194,t=271733878,s=-1009589776,e=0;e<h.length;e+=16){for(var o=r,l=i,u=n,f=t,p=s,v=0;v<80;v++){v<16?a[v]=h[e+v]:a[v]=m(a[v-3]^a[v-8]^a[v-14]^a[v-16],1);var A=S(S(m(r,5),T(v,i,n,t)),S(S(s,a[v]),g(v)));s=t,t=n,n=m(i,30),i=r,r=A}r=S(r,o),i=S(i,l),n=S(n,u),t=S(t,f),s=S(s,p)}return Array(r,i,n,t,s)}function T(h,c,a,r){return h<20?c&a|~c&r:h<40?c^a^r:h<60?c&a|c&r|a&r:c^a^r}function g(h){return h<20?1518500249:h<40?1859775393:h<60?-1894007588:-899497514}function S(h,c){var a=(h&65535)+(c&65535),r=(h>>16)+(c>>16)+(a>>16);return r<<16|a&65535}function m(h,c){return h<<c|h>>>32-c}k.exports=function(c){return I.hash(c,E,20,!0)}},{"./helpers":285}],288:[function(H,k,d){"use strict";k.exports=function(){return function(){}}},{}],289:[function(H,k,d){(function(I){"use strict";var E=H("babel-runtime/helpers/typeof"),T=g(E);function g(r){return r&&r.__esModule?r:{default:r}}var S=H("stream"),m=S.Stream,h=H("../lib/common/utils/isArray"),c=h.isArray;k.exports.string=function(i){return typeof i=="string"},k.exports.array=c,k.exports.buffer=I.isBuffer;function a(r){return r instanceof m}k.exports.writableStream=function(i){return a(i)&&typeof i._write=="function"&&(0,T.default)(i._writableState)==="object"}}).call(this,{isBuffer:H("../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(H,k,d){"use strict";d.encodeURIComponent=function(I){try{return encodeURIComponent(I)}catch(E){return I}},d.escape=H("escape-html"),d.timestamp=function(E){if(E){var T=E;return typeof T=="string"&&(T=Number(T)),String(E).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(H,k,d){(function(I,E){"use strict";var T=H("babel-runtime/core-js/json/stringify"),g=h(T),S=H("babel-runtime/helpers/typeof"),m=h(S);function h(v){return v&&v.__esModule?v:{default:v}}var c=H("util"),a=H("url"),r=H("http"),i=H("https"),n=H("debug")("urllib"),t=H("humanize-ms"),s,e=0,o=Math.pow(2,31)-10,l=/^https?:\/\//i;function u(v,A){return v===void 0?A:v}function f(v,A){return function(y,x,C){if(y)return A(y);v({data:x,status:C.statusCode,headers:C.headers,res:C})}}d.TIMEOUTS=[t("300s"),t("300s")];var p=["json","text"];d.request=function(A,y,x){return arguments.length===2&&typeof y=="function"&&(x=y,y=null),typeof x=="function"?d.requestWithCallback(A,y,x):(s||(s=H("any-promise")),new s(function(C,w){d.requestWithCallback(A,y,f(C,w))}))},d.requestWithCallback=function(A,y,x){if(!A||typeof A!="string"&&(typeof A=="undefined"?"undefined":(0,m.default)(A))!=="object"){var C=c.format("expect request url to be a string or a http request options, but got %j",A);throw new Error(C)}arguments.length===2&&typeof y=="function"&&(x=y,y=null),y=y||{},e>=o&&(e=0);var w=++e;y.requestUrls=y.requestUrls||[];var b={requestId:w,url:A,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",b),y.timeout=y.timeout||d.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var _=Date.now(),O;typeof A=="string"?(l.test(A)||(A="http://"+A),O=a.parse(A)):O=A;var L=(y.type||y.method||O.method||"GET").toUpperCase(),D=O.port||80,N=r,M=u(y.agent,d.agent),F=y.fixJSONCtlChars;O.protocol==="https:"&&(N=i,M=u(y.httpsAgent,d.httpsAgent),O.port||(D=443));var R={host:O.hostname||O.host||"localhost",path:O.path||"/",method:L,port:D,agent:M,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?R.requestTimeout=y.timeout[y.timeout.length-1]:typeof y.timeout!="undefined"&&(R.requestTimeout=y.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],B=0;B<j.length;B++){var K=j[B];y.hasOwnProperty(K)&&(R[K]=y[K])}R.rejectUnauthorized===!1&&!R.hasOwnProperty("secureOptions")&&(R.secureOptions=H("constants").SSL_OP_NO_TLSv1_2);var U=y.auth||O.auth;U&&(R.auth=U);var z=y.content||y.data,V=L==="GET"||L==="HEAD"||y.dataAsQueryString;if(!y.content&&(z&&!(typeof z=="string"||E.isBuffer(z))))if(V)z=y.nestedQuerystring?qs.stringify(z):querystring.stringify(z);else{var Y=R.headers["Content-Type"]||R.headers["content-type"];Y||(y.contentType==="json"?Y="application/json":Y="application/x-www-form-urlencoded",R.headers["Content-Type"]=Y),parseContentType(Y).type==="application/json"?z=(0,g.default)(z):z=y.nestedQuerystring?qs.stringify(z):querystring.stringify(z)}V&&z&&(R.path+=(O.query?"&":"?")+z,z=null);var J=0;if(z){var se=z.length;E.isBuffer(z)||(se=E.byteLength(z)),J=R.headers["Content-Length"]=se}y.dataType==="json"&&(R.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(R);var $=null,ae=null,ge=null,pe=!1,Ne=!1,de=0,Le=-1,Q=!1,ce="",Ke="",ee=null;y.timing&&(ee={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function X(){$&&(clearTimeout($),$=null)}function G(){ae&&(clearTimeout(ae),ae=null)}function Z(Oe,gt,Ge){if(G(),!x){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,I.pid,R.method,A),Oe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),w,I.pid,Oe.name,Oe.message,Oe.stack);return}var wt=x;x=null;var xt={};if(Ge&&(Le=Ge.statusCode,xt=Ge.headers),Le===401&&xt["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var Ct=xt["www-authenticate"];if(Ct.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",w,A,Ct),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(R.method,R.path,Ct,y.digestAuth),n("Request#%d %s: auth with digest header: %s",w,A,y.headers.Authorization),Ge.headers["set-cookie"]&&(y.headers.Cookie=Ge.headers["set-cookie"].join(";")),d.requestWithCallback(A,y,wt)}var Dt=Date.now()-_;ee&&(ee.contentDownload=Dt),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Dt,de,Le,R.method,R.host,R.path,Ne,ee);var Ht={status:Le,statusCode:Le,headers:xt,size:de,aborted:Q,rt:Dt,keepAliveSocket:Ne,data:gt,requestUrls:y.requestUrls,timing:ee,remoteAddress:ce,remotePort:Ke};if(Oe){var Je="";M&&typeof M.getCurrentStatus=="function"&&(Je=", agent status: "+(0,g.default)(M.getCurrentStatus())),Oe.message+=", "+R.method+" "+A+" "+Le+" (connected: "+pe+", keepalive socket: "+Ne+Je+`)
|
|
|
headers: `+(0,g.default)(xt),Oe.data=gt,Oe.path=R.path,Oe.status=Le,Oe.headers=xt,Oe.res=Ht}wt(Oe,gt,y.streaming?Ge:Ht),y.emitter&&(b.url=A,b.socket=it&&it.connection,b.options=R,b.size=J,y.emitter.emit("response",{requestId:w,error:Oe,ctx:y.ctx,req:b,res:Ht}))}function ve(Oe){var gt=null;if(y.followRedirect&&statuses.redirect[Oe.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var Ge=Oe.headers.location;if(!Ge)gt=new Error("Got statusCode "+Oe.statusCode+" but cannot resolve next location from headers"),gt.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)gt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+A),gt.name="MaxRedirectError";else{var wt=y.formatRedirectUrl?y.formatRedirectUrl(A,Ge):a.resolve(A,Ge);n("Request#%d %s: `redirected` from %s to %s",w,R.path,A,wt),G(),y.headers&&y.headers.Host&&l.test(Ge)&&(y.headers.Host=null);var xt=x;return x=null,d.requestWithCallback(wt,y,xt),{redirect:!0,error:null}}}return{redirect:!1,error:gt}}!R.headers["User-Agent"]&&!R.headers["user-agent"]&&(R.headers["User-Agent"]=navigator.userAgent),y.gzip&&(!R.headers["Accept-Encoding"]&&!R.headers["accept-encoding"]&&(R.headers["Accept-Encoding"]="gzip"));function ue(Oe,gt,Ge){var wt=Oe.headers["content-encoding"];return Ge(null,gt,wt)}var _e=y.writeStream;n("Request#%d %s %s with headers %j, options.path: %s",w,L,A,R.headers,R.path),y.requestUrls.push(A);function xe(Oe){if(ee&&(ee.waiting=Date.now()-_),n("Request#%d %s `req response` event emit: status %d, headers: %j",w,A,Oe.statusCode,Oe.headers),y.streaming){var gt=ve(Oe);if(gt.redirect){Oe.resume();return}return gt.error?(Oe.resume(),Z(gt.error,null,Oe)):Z(null,null,Oe)}if(Oe.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",w,A,de)}),Oe.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",w,A,de)}),Oe.on("aborted",function(){Q=!0,n("Request#%d %s: `res aborted` event emit, total size %d",w,A,de)}),_e){var gt=ve(Oe);if(gt.redirect){Oe.resume();return}return gt.error?(Oe.resume(),_e.end(),Z(gt.error,null,Oe)):(y.consumeWriteStream===!1?Oe.on("end",Z.bind(null,null,null,Oe)):isNode010||isNode012?first([[_e,"close"],[Oe,"aborted"]],function(xt,Ct,Dt){n("Request#%d %s: writeStream or res %s event emitted",w,A,Dt),Z(ge||null,null,Oe)}):_e.on("close",function(){n("Request#%d %s: writeStream close event emitted",w,A),Z(ge||null,null,Oe)}),Oe.pipe(_e))}var Ge=[];Oe.on("data",function(wt){n("Request#%d %s: `res data` event emit, size %d",w,A,wt.length),de+=wt.length,Ge.push(wt)}),Oe.on("end",function(){var wt=E.concat(Ge,de);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,A,de,Oe._dumped),ge)return Z(ge,wt,Oe);var xt=ve(Oe);if(xt.error)return Z(xt.error,wt,Oe);if(xt.redirect)return;ue(Oe,wt,function(Ct,Dt,Ht){if(Ct)return Z(Ct,wt,Oe);if(!Ht&&p.indexOf(y.dataType)>=0){try{Dt=decodeBodyByCharset(Dt,Oe)}catch(ye){return n("decodeBodyByCharset error: %s",ye),Z(null,Dt,Oe)}if(y.dataType==="json")if(de===0)Dt=null;else{var Je=parseJSON(Dt,F);Je.error?Ct=Je.error:Dt=Je.data}}Q&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,A),Z(Ct,Dt,Oe)})})}var oe,fe;Array.isArray(y.timeout)?(oe=t(y.timeout[0]),fe=t(y.timeout[1])):oe=fe=t(y.timeout),n("ConnectTimeout: %d, ResponseTimeout: %d",oe,fe);function Te(){n("Connect timer ticking, timeout: %d",oe),$=setTimeout(function(){$=null,Le===-1&&(Le=-2);var Oe="Connect timeout for "+oe+"ms",gt="ConnectionTimeoutError";it.socket||(gt="SocketAssignTimeoutError",Oe+=", working sockets is full"),ge=new Error(Oe),ge.name=gt,ge.requestId=w,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,A,ge.name,Oe,pe),et()},oe)}function ze(){n("Response timer ticking, timeout: %d",fe),ae=setTimeout(function(){ae=null;var Oe="Response timeout for "+fe+"ms",gt="ResponseTimeoutError";ge=new Error(Oe),ge.name=gt,ge.requestId=w,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,A,ge.name,Oe,pe),et()},fe)}var it;R.mode=y.mode?y.mode:"";try{it=N.request(R,xe)}catch(Oe){return Z(Oe)}typeof window=="undefined"?Te():it.on("requestTimeout",function(){Le===-1&&(Le=-2);var Oe="Connect timeout for "+oe+"ms",gt="ConnectionTimeoutError";ge=new Error(Oe),ge.name=gt,ge.requestId=w,et()});function et(){n("Request#%d %s abort, connected: %s",w,A,pe),it.socket||(ge.noSocket=!0,Z(ge)),it.abort()}return ee&&it.on("finish",function(){ee.requestSent=Date.now()-_}),it.once("socket",function(Oe){ee&&(ee.queuing=Date.now()-_),isNode010&&Oe.socket&&(Oe=Oe.socket);var gt=Oe.readyState;if(gt==="opening"){Oe.once("lookup",function(Ge,wt,xt){n("Request#%d %s lookup: %s, %s, %s",w,A,Ge,wt,xt),ee&&(ee.dnslookup=Date.now()-_),wt&&(ce=wt)}),Oe.once("connect",function(){ee&&(ee.connected=Date.now()-_),X(),ze(),n("Request#%d %s new socket connected",w,A),pe=!0,ce||(ce=Oe.remoteAddress),Ke=Oe.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",w,A,gt),pe=!0,Ne=!0,ce||(ce=Oe.remoteAddress),Ke=Oe.remotePort,X(),ze()}),it.on("error",function(Oe){(Oe.name==="Error"||Oe.name==="TypeError")&&(Oe.name=pe?"ResponseError":"RequestError"),Oe.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",w,A,Oe.name,Oe.message),Z(ge||Oe)}),_e&&_e.once("error",function(Oe){Oe.message+=' (writeStream "error")',ge=Oe,n("Request#%d %s `writeStream error` event emit, %s: %s",w,A,Oe.name,Oe.message),et()}),y.stream?(y.stream.pipe(it),y.stream.once("error",function(Oe){Oe.message+=' (stream "error")',ge=Oe,n("Request#%d %s `readStream error` event emit, %s: %s",w,A,Oe.name,Oe.message),et()})):it.end(z),it.requestId=w,it}}).call(this,H("_process"),H("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"))},n1HI:function(H,k,d){var I=d("hX1E"),E=I.normalizeRadian,T=Math.PI*2;function g(S,m,h,c,a,r,i,n,t){if(i===0)return!1;var s=i;n-=S,t-=m;var e=Math.sqrt(n*n+t*t);if(e-s>h||e+s<h)return!1;if(Math.abs(c-a)%T<1e-4)return!0;if(r){var o=c;c=E(a),a=E(o)}else c=E(c),a=E(a);c>a&&(a+=T);var l=Math.atan2(t,n);return l<0&&(l+=T),l>=c&&l<=a||l+T>=c&&l+T<=a}k.containStroke=g},n4Lv:function(H,k,d){var I=d("7hqr"),E=I.isDimensionStacked,T=d("bYtY"),g=T.map;function S(c,a,r){var i=c.getBaseAxis(),n=c.getOtherAxis(i),t=m(n,r),s=i.dim,e=n.dim,o=a.mapDimension(e),l=a.mapDimension(s),u=e==="x"||e==="radius"?1:0,f=g(c.dimensions,function(A){return a.mapDimension(A)}),p,v=a.getCalculationInfo("stackResultDimension");return(p|=E(a,f[0]))&&(f[0]=v),(p|=E(a,f[1]))&&(f[1]=v),{dataDimsForPoint:f,valueStart:t,valueAxisDim:e,baseAxisDim:s,stacked:!!p,valueDim:o,baseDim:l,baseDataOffset:u,stackedOverDimension:a.getCalculationInfo("stackedOverDimension")}}function m(c,a){var r=0,i=c.scale.getExtent();return a==="start"?r=i[0]:a==="end"?r=i[1]:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function h(c,a,r,i){var n=NaN;c.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=c.valueStart);var t=c.baseDataOffset,s=[];return s[t]=r.get(c.baseDim,i),s[1-t]=n,a.dataToPoint(s)}k.prepareDataCoordInfo=S,k.getStackedOnPoint=h},n6Mw:function(H,k,d){var I=d("SrGk"),E=d("bYtY"),T=d("Fofx");function g(m,h){I.call(this,m,h,"clipPath","__clippath_in_use__")}E.inherits(g,I),g.prototype.update=function(m){var h=this.getSvgElement(m);h&&this.updateDom(h,m.__clipPaths,!1);var c=this.getTextSvgElement(m);c&&this.updateDom(c,m.__clipPaths,!0),this.markUsed(m)},g.prototype.updateDom=function(m,h,c){if(h&&h.length>0){var a=this.getDefs(!0),r=h[0],i,n,t=c?"_textDom":"_dom";r[t]?(n=r[t].getAttribute("id"),i=r[t],a.contains(i)||a.appendChild(i)):(n="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",n),a.appendChild(i),r[t]=i);var s=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!c){var e=Array.prototype.slice.call(r.transform);T.mul(r.transform,r.parent.invTransform,r.transform),s.brush(r),r.transform=e}else s.brush(r);var o=this.getSvgElement(r);i.innerHTML="",i.appendChild(o.cloneNode()),m.setAttribute("clip-path","url(#"+n+")"),h.length>1&&this.updateDom(i,h.slice(1),c)}else m&&m.setAttribute("clip-path","none")},g.prototype.markUsed=function(m){var h=this;m.__clipPaths&&E.each(m.__clipPaths,function(c){c._dom&&I.prototype.markUsed.call(h,c._dom),c._textDom&&I.prototype.markUsed.call(h,c._textDom)})};var S=g;H.exports=S},nCxF:function(H,k,d){var I=d("QBsz"),E=I.min,T=I.max,g=I.scale,S=I.distance,m=I.add,h=I.clone,c=I.sub;function a(r,i,n,t){var s=[],e=[],o=[],l=[],u,f,p,v;if(t){p=[Infinity,Infinity],v=[-Infinity,-Infinity];for(var A=0,y=r.length;A<y;A++)E(p,p,r[A]),T(v,v,r[A]);E(p,p,t[0]),T(v,v,t[1])}for(var A=0,y=r.length;A<y;A++){var x=r[A];if(n)u=r[A?A-1:y-1],f=r[(A+1)%y];else if(A===0||A===y-1){s.push(h(r[A]));continue}else u=r[A-1],f=r[A+1];c(e,f,u),g(e,e,i);var C=S(x,u),w=S(x,f),b=C+w;b!==0&&(C/=b,w/=b),g(o,e,-C),g(l,e,w);var _=m([],x,o),O=m([],x,l);t&&(T(_,_,p),E(_,_,v),T(O,O,p),E(O,O,v)),s.push(_),s.push(O)}return n&&s.push(s.shift()),s}H.exports=a},nKiI:function(H,k,d){var I=d("bYtY"),E=d("mFDi"),T=d("OELB"),g=T.parsePercent,S=T.MAX_SAFE_INTEGER,m=d("+TT/"),h=d("VaxA"),c=Math.max,a=Math.min,r=I.retrieve,i=I.each,n=["itemStyle","borderWidth"],t=["itemStyle","gapWidth"],s=["upperLabel","show"],e=["upperLabel","height"],o={seriesType:"treemap",reset:function(_,O,L,D){var N=L.getWidth(),M=L.getHeight(),F=_.option,R=m.getLayoutRect(_.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),j=F.size||[],B=g(r(R.width,j[0]),N),K=g(r(R.height,j[1]),M),U=D&&D.type,z=["treemapZoomToNode","treemapRootToNode"],V=h.retrieveTargetInfo(D,z,_),Y=U==="treemapRender"||U==="treemapMove"?D.rootRect:null,J=_.getViewRoot(),se=h.getPathToRoot(J);if(U!=="treemapMove"){var $=U==="treemapZoomToNode"?x(_,V,J,B,K):Y?[Y.width,Y.height]:[B,K],ae=F.sort;ae&&ae!=="asc"&&ae!=="desc"&&(ae="desc");var ge={squareRatio:F.squareRatio,sort:ae,leafDepth:F.leafDepth};J.hostTree.clearLayouts();var pe={x:0,y:0,width:$[0],height:$[1],area:$[0]*$[1]};J.setLayout(pe),l(J,ge,!1,0);var pe=J.getLayout();i(se,function(de,Le){var Q=(se[Le+1]||J).getValue();de.setLayout(I.extend({dataExtent:[Q,Q],borderWidth:0,upperHeight:0},pe))})}var Ne=_.getData().tree.root;Ne.setLayout(C(R,Y,V),!0),_.setLayoutInfo(R),w(Ne,new E(-R.x,-R.y,N,M),se,J,0)}};function l(_,O,L,D){var N,M;if(_.isRemoved())return;var F=_.getLayout();N=F.width,M=F.height;var R=_.getModel(),j=R.get(n),B=R.get(t)/2,K=b(R),U=Math.max(j,K),z=j-B,V=U-B,R=_.getModel();_.setLayout({borderWidth:j,upperHeight:U,upperLabelHeight:K},!0),N=c(N-2*z,0),M=c(M-z-V,0);var Y=N*M,J=u(_,R,Y,O,L,D);if(!J.length)return;var se={x:z,y:V,width:N,height:M},$=a(N,M),ae=Infinity,ge=[];ge.area=0;for(var pe=0,Ne=J.length;pe<Ne;){var de=J[pe];ge.push(de),ge.area+=de.getLayout().area;var Le=A(ge,$,O.squareRatio);Le<=ae?(pe++,ae=Le):(ge.area-=ge.pop().getLayout().area,y(ge,$,se,B,!1),$=a(se.width,se.height),ge.length=ge.area=0,ae=Infinity)}if(ge.length&&y(ge,$,se,B,!0),!L){var Q=R.get("childrenVisibleMin");Q!=null&&Y<Q&&(L=!0)}for(var pe=0,Ne=J.length;pe<Ne;pe++)l(J[pe],O,L,D+1)}function u(_,O,L,D,N,M){var F=_.children||[],R=D.sort;R!=="asc"&&R!=="desc"&&(R=null);var j=D.leafDepth!=null&&D.leafDepth<=M;if(N&&!j)return _.viewChildren=[];F=I.filter(F,function(V){return!V.isRemoved()}),p(F,R);var B=v(O,F,R);if(B.sum===0)return _.viewChildren=[];if(B.sum=f(O,L,B.sum,R,F),B.sum===0)return _.viewChildren=[];for(var K=0,U=F.length;K<U;K++){var z=F[K].getValue()/B.sum*L;F[K].setLayout({area:z})}return j&&(F.length&&_.setLayout({isLeafRoot:!0},!0),F.length=0),_.viewChildren=F,_.setLayout({dataExtent:B.dataExtent},!0),F}function f(_,O,L,D,N){if(!D)return L;for(var M=_.get("visibleMin"),F=N.length,R=F,j=F-1;j>=0;j--){var B=N[D==="asc"?F-j-1:j].getValue();B/L*O<M&&(R=j,L-=B)}return D==="asc"?N.splice(0,F-R):N.splice(R,F-R),L}function p(_,O){return O&&_.sort(function(L,D){var N=O==="asc"?L.getValue()-D.getValue():D.getValue()-L.getValue();return N===0?O==="asc"?L.dataIndex-D.dataIndex:D.dataIndex-L.dataIndex:N}),_}function v(_,O,L){for(var D=0,N=0,M=O.length;N<M;N++)D+=O[N].getValue();var F=_.get("visualDimension"),R;if(!O||!O.length)R=[NaN,NaN];else if(F==="value"&&L)R=[O[O.length-1].getValue(),O[0].getValue()],L==="asc"&&R.reverse();else{var R=[Infinity,-Infinity];i(O,function(B){var K=B.getValue(F);K<R[0]&&(R[0]=K),K>R[1]&&(R[1]=K)})}return{sum:D,dataExtent:R}}function A(_,O,L){for(var D=0,N=Infinity,M=0,F,R=_.length;M<R;M++)F=_[M].getLayout().area,F&&(F<N&&(N=F),F>D&&(D=F));var j=_.area*_.area,B=O*O*L;return j?c(B*D/j,j/(B*N)):Infinity}function y(_,O,L,D,N){var M=O===L.width?0:1,F=1-M,R=["x","y"],j=["width","height"],B=L[R[M]],K=O?_.area/O:0;(N||K>L[j[F]])&&(K=L[j[F]]);for(var U=0,z=_.length;U<z;U++){var V=_[U],Y={},J=K?V.getLayout().area/K:0,se=Y[j[F]]=c(K-2*D,0),$=L[R[M]]+L[j[M]]-B,ae=U===z-1||$<J?$:J,ge=Y[j[M]]=c(ae-2*D,0);Y[R[F]]=L[R[F]]+a(D,se/2),Y[R[M]]=B+a(D,ge/2),B+=ae,V.setLayout(Y,!0)}L[R[F]]+=K,L[j[F]]-=K}function x(_,O,L,D,N){var M=(O||{}).node,F=[D,N];if(!M||M===L)return F;for(var R,j=D*N,B=j*_.option.zoomToNodeRatio;R=M.parentNode;){for(var K=0,U=R.children,z=0,V=U.length;z<V;z++)K+=U[z].getValue();var Y=M.getValue();if(Y===0)return F;B*=K/Y;var J=R.getModel(),se=J.get(n),$=Math.max(se,b(J,se));B+=4*se*se+(3*se+$)*Math.pow(B,.5),B>S&&(B=S),M=R}B<j&&(B=j);var ae=Math.pow(B/j,.5);return[D*ae,N*ae]}function C(_,O,L){if(O)return{x:O.x,y:O.y};var D={x:0,y:0};if(!L)return D;var N=L.node,M=N.getLayout();if(!M)return D;for(var F=[M.width/2,M.height/2],R=N;R;){var j=R.getLayout();F[0]+=j.x,F[1]+=j.y,R=R.parentNode}return{x:_.width/2-F[0],y:_.height/2-F[1]}}function w(_,O,L,D,N){var M=_.getLayout(),F=L[N],R=F&&F===_;if(F&&!R||N===L.length&&_!==D)return;_.setLayout({isInView:!0,invisible:!R&&!O.intersect(M),isAboveViewRoot:R},!0);var j=new E(O.x-M.x,O.y-M.y,O.width,O.height);i(_.viewChildren||[],function(B){w(B,j,L,D,N+1)})}function b(_){return _.get(s)?_.get(e):0}H.exports=o},nPnh:function(H,k){var d=Math.round;function I(g,S,m){if(!S)return;var h=S.x1,c=S.x2,a=S.y1,r=S.y2;g.x1=h,g.x2=c,g.y1=a,g.y2=r;var i=m&&m.lineWidth;if(!i)return;d(h*2)===d(c*2)&&(g.x1=g.x2=T(h,i,!0)),d(a*2)===d(r*2)&&(g.y1=g.y2=T(a,i,!0))}function E(g,S,m){if(!S)return;var h=S.x,c=S.y,a=S.width,r=S.height;g.x=h,g.y=c,g.width=a,g.height=r;var i=m&&m.lineWidth;if(!i)return;g.x=T(h,i,!0),g.y=T(c,i,!0),g.width=Math.max(T(h+a,i,!1)-g.x,a===0?0:1),g.height=Math.max(T(c+r,i,!1)-g.y,r===0?0:1)}function T(g,S,m){if(!S)return g;var h=d(g*2);return(h+d(S))%2===0?h/2:(h+(m?1:-1))/2}k.subPixelOptimizeLine=I,k.subPixelOptimizeRect=E,k.subPixelOptimize=T},nRaC:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("0fbx"),g=d.n(T),S=d("OaEy"),m=d("R9oj")},nVfU:function(H,k,d){var I=d("bYtY"),E=d("OELB"),T=E.parsePercent,g=d("7hqr"),S=g.isDimensionStacked,m=d("zM3Q"),h="__ec_stack_",c=.5,a=typeof Float32Array!="undefined"?Float32Array:Array;function r(y){return y.get("stack")||h+y.seriesIndex}function i(y){return y.dim+y.index}function n(y){var x=[],C=y.axis,w="axis0";if(C.type!=="category")return;for(var b=C.getBandWidth(),_=0;_<y.count||0;_++)x.push(I.defaults({bandWidth:b,axisKey:w,stackId:h+_},y));for(var O=o(x),L=[],_=0;_<y.count;_++){var D=O[w][h+_];D.offsetCenter=D.offset+D.width/2,L.push(D)}return L}function t(y,x){var C=[];return x.eachSeriesByType(y,function(w){p(w)&&!v(w)&&C.push(w)}),C}function s(y){var x={};I.each(y,function(D){var N=D.coordinateSystem,M=N.getBaseAxis();if(M.type!=="time"&&M.type!=="value")return;for(var F=D.getData(),R=M.dim+"_"+M.index,j=F.mapDimension(M.dim),B=0,K=F.count();B<K;++B){var U=F.get(j,B);x[R]?x[R].push(U):x[R]=[U]}});var C=[];for(var w in x)if(x.hasOwnProperty(w)){var b=x[w];if(b){b.sort(function(D,N){return D-N});for(var _=null,O=1;O<b.length;++O){var L=b[O]-b[O-1];L>0&&(_=_===null?L:Math.min(_,L))}C[w]=_}}return C}function e(y){var x=s(y),C=[];return I.each(y,function(w){var b=w.coordinateSystem,_=b.getBaseAxis(),O=_.getExtent(),L;if(_.type==="category")L=_.getBandWidth();else if(_.type==="value"||_.type==="time"){var D=_.dim+"_"+_.index,N=x[D],M=Math.abs(O[1]-O[0]),F=_.scale.getExtent(),R=Math.abs(F[1]-F[0]);L=N?M/R*N:M}else{var j=w.getData();L=Math.abs(O[1]-O[0])/j.count()}var B=T(w.get("barWidth"),L),K=T(w.get("barMaxWidth"),L),U=T(w.get("barMinWidth")||1,L),z=w.get("barGap"),V=w.get("barCategoryGap");C.push({bandWidth:L,barWidth:B,barMaxWidth:K,barMinWidth:U,barGap:z,barCategoryGap:V,axisKey:i(_),stackId:r(w)})}),o(C)}function o(y){var x={};I.each(y,function(w,b){var _=w.axisKey,O=w.bandWidth,L=x[_]||{bandWidth:O,remainedWidth:O,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},D=L.stacks;x[_]=L;var N=w.stackId;D[N]||L.autoWidthCount++,D[N]=D[N]||{width:0,maxWidth:0};var M=w.barWidth;M&&!D[N].width&&(D[N].width=M,M=Math.min(L.remainedWidth,M),L.remainedWidth-=M);var F=w.barMaxWidth;F&&(D[N].maxWidth=F);var R=w.barMinWidth;R&&(D[N].minWidth=R);var j=w.barGap;j!=null&&(L.gap=j);var B=w.barCategoryGap;B!=null&&(L.categoryGap=B)});var C={};return I.each(x,function(w,b){C[b]={};var _=w.stacks,O=w.bandWidth,L=T(w.categoryGap,O),D=T(w.gap,1),N=w.remainedWidth,M=w.autoWidthCount,F=(N-L)/(M+(M-1)*D);F=Math.max(F,0),I.each(_,function(K){var U=K.maxWidth,z=K.minWidth;if(K.width){var V=K.width;U&&(V=Math.min(V,U)),z&&(V=Math.max(V,z)),K.width=V,N-=V+D*V,M--}else{var V=F;U&&U<V&&(V=Math.min(U,N)),z&&z>V&&(V=z),V!==F&&(K.width=V,N-=V+D*V,M--)}}),F=(N-L)/(M+(M-1)*D),F=Math.max(F,0);var R=0,j;I.each(_,function(K,U){K.width||(K.width=F),j=K,R+=K.width*(1+D)}),j&&(R-=j.width*D);var B=-R/2;I.each(_,function(K,U){C[b][U]=C[b][U]||{bandWidth:O,offset:B,width:K.width},B+=K.width*(1+D)})}),C}function l(y,x,C){if(y&&x){var w=y[i(x)];return w!=null&&C!=null&&(w=w[r(C)]),w}}function u(y,x){var C=t(y,x),w=e(C),b={},_={};I.each(C,function(O){var L=O.getData(),D=O.coordinateSystem,N=D.getBaseAxis(),M=r(O),F=w[i(N)][M],R=F.offset,j=F.width,B=D.getOtherAxis(N),K=O.get("barMinHeight")||0;b[M]=b[M]||[],_[M]=_[M]||[],L.setLayout({bandWidth:F.bandWidth,offset:R,size:j});for(var U=L.mapDimension(B.dim),z=L.mapDimension(N.dim),V=S(L,U),Y=B.isHorizontal(),J=A(N,B,V),se=0,$=L.count();se<$;se++){var ae=L.get(U,se),ge=L.get(z,se),pe=ae>=0?"p":"n",Ne=J;V&&(b[M][ge]||(b[M][ge]={p:J,n:J}),Ne=b[M][ge][pe]);var de,Le,Q,ce;if(Y){var Ke=D.dataToPoint([ae,ge]);de=Ne,Le=Ke[1]+R,Q=Ke[0]-J,ce=j,Math.abs(Q)<K&&(Q=(Q<0?-1:1)*K),isNaN(Q)||V&&(b[M][ge][pe]+=Q)}else{var Ke=D.dataToPoint([ge,ae]);de=Ke[0]+R,Le=Ne,Q=j,ce=Ke[1]-J,Math.abs(ce)<K&&(ce=(ce<=0?-1:1)*K),isNaN(ce)||V&&(b[M][ge][pe]+=ce)}L.setItemLayout(se,{x:de,y:Le,width:Q,height:ce})}},this)}var f={seriesType:"bar",plan:m(),reset:function(y){if(!p(y)||!v(y))return;var x=y.getData(),C=y.coordinateSystem,w=C.grid.getRect(),b=C.getBaseAxis(),_=C.getOtherAxis(b),O=x.mapDimension(_.dim),L=x.mapDimension(b.dim),D=_.isHorizontal(),N=D?0:1,M=l(e([y]),b,y).width;return M>c||(M=c),{progress:F};function F(R,j){for(var B=R.count,K=new a(B*2),U=new a(B*2),z=new a(B),V,Y=[],J=[],se=0,$=0;(V=R.next())!=null;)J[N]=j.get(O,V),J[1-N]=j.get(L,V),Y=C.dataToPoint(J,null,Y),U[se]=D?w.x+w.width:Y[0],K[se++]=Y[0],U[se]=D?Y[1]:w.y+w.height,K[se++]=Y[1],z[$++]=V;j.setLayout({largePoints:K,largeDataIndices:z,largeBackgroundPoints:U,barWidth:M,valueAxisStart:A(b,_,!1),backgroundStart:D?w.x:w.y,valueAxisHorizontal:D})}}};function p(y){return y.coordinateSystem&&y.coordinateSystem.type==="cartesian2d"}function v(y){return y.pipelineContext&&y.pipelineContext.large}function A(y,x,C){return x.toGlobalCoord(x.dataToCoord(x.type==="log"?1:0))}k.getLayoutOnAxis=n,k.prepareLayoutBarSeries=t,k.makeColumnLayout=e,k.retrieveColumnLayout=l,k.layout=u,k.largeLayout=f},ngQI:function(H,k,d){"use strict";d.d(k,"a",function(){return Fu}),d.d(k,"b",function(){return Lu}),d.d(k,"c",function(){return Tr});var I=d("q1tI"),E=d.n(I),T=d("dI71"),g=d("wx14"),S=d("ANjH"),m=d("/MKj");function h(De,te){if(De.length!==te.length)return!1;for(var Se=0;Se<De.length;Se++)if(De[Se]!==te[Se])return!1;return!0}function c(De,te){var Se=Object(I.useState)(function(){return{inputs:te,result:De()}})[0],He=Object(I.useRef)(!0),at=Object(I.useRef)(Se),Et=He.current||Boolean(te&&at.current.inputs&&h(te,at.current.inputs)),It=Et?at.current:{inputs:te,result:De()};return Object(I.useEffect)(function(){He.current=!1,at.current=It},[It]),It.result}function a(De,te){return c(function(){return De},te)}var r=c,i=a,n=d("9R94"),t=function(te){var Se=te.top,He=te.right,at=te.bottom,Et=te.left,It=He-Et,Nt=at-Se,vr={top:Se,right:He,bottom:at,left:Et,width:It,height:Nt,x:Et,y:Se,center:{x:(He+Et)/2,y:(at+Se)/2}};return vr},s=function(te,Se){return{top:te.top-Se.top,left:te.left-Se.left,bottom:te.bottom+Se.bottom,right:te.right+Se.right}},e=function(te,Se){return{top:te.top+Se.top,left:te.left+Se.left,bottom:te.bottom-Se.bottom,right:te.right-Se.right}},o=function(te,Se){return{top:te.top+Se.y,left:te.left+Se.x,bottom:te.bottom+Se.y,right:te.right+Se.x}},l={top:0,right:0,bottom:0,left:0},u=function(te){var Se=te.borderBox,He=te.margin,at=He===void 0?l:He,Et=te.border,It=Et===void 0?l:Et,Nt=te.padding,vr=Nt===void 0?l:Nt,Ir=t(s(Se,at)),mr=t(e(Se,It)),cr=t(e(mr,vr));return{marginBox:Ir,borderBox:t(Se),paddingBox:mr,contentBox:cr,margin:at,border:It,padding:vr}},f=function(te){var Se=te.slice(0,-2),He=te.slice(-2);if(He!=="px")return 0;var at=Number(Se);return isNaN(at)&&Object(n.a)(!1),at},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},v=function(te,Se){var He=te.borderBox,at=te.border,Et=te.margin,It=te.padding,Nt=o(He,Se);return u({borderBox:Nt,border:at,margin:Et,padding:It})},A=function(te,Se){return Se===void 0&&(Se=p()),v(te,Se)},y=function(te,Se){var He={top:f(Se.marginTop),right:f(Se.marginRight),bottom:f(Se.marginBottom),left:f(Se.marginLeft)},at={top:f(Se.paddingTop),right:f(Se.paddingRight),bottom:f(Se.paddingBottom),left:f(Se.paddingLeft)},Et={top:f(Se.borderTopWidth),right:f(Se.borderRightWidth),bottom:f(Se.borderBottomWidth),left:f(Se.borderLeftWidth)};return u({borderBox:te,margin:He,padding:at,border:Et})},x=function(te){var Se=te.getBoundingClientRect(),He=window.getComputedStyle(te);return y(Se,He)},C=Number.isNaN||function(te){return typeof te=="number"&&te!==te};function w(De,te){return De===te?!0:!!(C(De)&&C(te))}function b(De,te){if(De.length!==te.length)return!1;for(var Se=0;Se<De.length;Se++)if(!w(De[Se],te[Se]))return!1;return!0}function _(De,te){te===void 0&&(te=b);var Se,He=[],at,Et=!1;function It(){for(var Nt=[],vr=0;vr<arguments.length;vr++)Nt[vr]=arguments[vr];return Et&&Se===this&&te(Nt,He)||(at=De.apply(this,Nt),Et=!0,Se=this,He=Nt),at}return It}var O=_,L=function(te){var Se=[],He=null,at=function(){for(var It=arguments.length,Nt=new Array(It),vr=0;vr<It;vr++)Nt[vr]=arguments[vr];if(Se=Nt,He)return;He=requestAnimationFrame(function(){He=null,te.apply(void 0,Se)})};return at.cancel=function(){if(!He)return;cancelAnimationFrame(He),He=null},at},D=L,N=d("i8i4"),M=d.n(N),F=!0,R=/[ \t]{2,}/g,j=/^[ \t]*/gm,B=function(te){return te.replace(R," ").replace(j,"").trim()},K=function(te){return B(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+B(te)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},U=function(te){return[K(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},z="__react-beautiful-dnd-disable-dev-warnings";function V(De,te){var Se;if(F)return;if(typeof window!="undefined"&&window[z])return;(Se=console)[De].apply(Se,U(te))}var Y=V.bind(null,"warn"),J=V.bind(null,"error");function se(){}function $(De,te){return Object(g.a)({},De,{},te)}function ae(De,te,Se){var He=te.map(function(at){var Et=$(Se,at.options);return De.addEventListener(at.eventName,at.fn,Et),function(){De.removeEventListener(at.eventName,at.fn,Et)}});return function(){He.forEach(function(Et){Et()})}}var ge=!0,pe="Invariant failed";function Ne(De){this.message=De}Ne.prototype.toString=function(){return this.message};function de(De,te){if(De)return;throw ge?new Ne(pe):new Ne(pe+": "+(te||""))}var Le=function(De){Object(T.a)(te,De);function te(){for(var He,at=arguments.length,Et=new Array(at),It=0;It<at;It++)Et[It]=arguments[It];return He=De.call.apply(De,[this].concat(Et))||this,He.callbacks=null,He.unbind=se,He.onWindowError=function(Nt){var vr=He.getCallbacks();vr.isDragging()&&vr.tryAbort();var Ir=Nt.error;Ir instanceof Ne&&Nt.preventDefault()},He.getCallbacks=function(){if(!He.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return He.callbacks},He.setCallbacks=function(Nt){He.callbacks=Nt},He}var Se=te.prototype;return Se.componentDidMount=function(){this.unbind=ae(window,[{eventName:"error",fn:this.onWindowError}])},Se.componentWillUnmount=function(){this.unbind()},Se.componentDidCatch=function(at){if(at instanceof Ne){this.setState({});return}throw at},Se.render=function(){return this.props.children(this.setCallbacks)},te}(E.a.Component),Q=`
|
|
|
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
|
|
|
`,ce=function(te){return te+1},Ke=function(te){return`
|
|
|
You have lifted an item in position `+ce(te.source.index)+`
|
|
|
`},ee=function(te,Se){var He=te.droppableId===Se.droppableId,at=ce(te.index),Et=ce(Se.index);return He?`
|
|
|
You have moved the item from position `+at+`
|
|
|
to position `+Et+`
|
|
|
`:`
|
|
|
You have moved the item from position `+at+`
|
|
|
in list `+te.droppableId+`
|
|
|
to list `+Se.droppableId+`
|
|
|
in position `+Et+`
|
|
|
`},X=function(te,Se,He){var at=Se.droppableId===He.droppableId;return at?`
|
|
|
The item `+te+`
|
|
|
has been combined with `+He.draggableId:`
|
|
|
The item `+te+`
|
|
|
in list `+Se.droppableId+`
|
|
|
has been combined with `+He.draggableId+`
|
|
|
in list `+He.droppableId+`
|
|
|
`},G=function(te){var Se=te.destination;if(Se)return ee(te.source,Se);var He=te.combine;return He?X(te.draggableId,te.source,He):"You are over an area that cannot be dropped on"},Z=function(te){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+ce(te.index)+`
|
|
|
`},ve=function(te){if(te.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Z(te.source)+`
|
|
|
`;var Se=te.destination,He=te.combine;return Se?`
|
|
|
You have dropped the item.
|
|
|
`+ee(te.source,Se)+`
|
|
|
`:He?`
|
|
|
You have dropped the item.
|
|
|
`+X(te.draggableId,te.source,He)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Z(te.source)+`
|
|
|
`},ue={dragHandleUsageInstructions:Q,onDragStart:Ke,onDragUpdate:G,onDragEnd:ve},_e={x:0,y:0},xe=function(te,Se){return{x:te.x+Se.x,y:te.y+Se.y}},oe=function(te,Se){return{x:te.x-Se.x,y:te.y-Se.y}},fe=function(te,Se){return te.x===Se.x&&te.y===Se.y},Te=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},ze=function(te,Se,He){var at;return He===void 0&&(He=0),at={},at[te]=Se,at[te==="x"?"y":"x"]=He,at},it=function(te,Se){return Math.sqrt(Math.pow(Se.x-te.x,2)+Math.pow(Se.y-te.y,2))},et=function(te,Se){return Math.min.apply(Math,Se.map(function(He){return it(te,He)}))},Oe=function(te){return function(Se){return{x:te(Se.x),y:te(Se.y)}}},gt=function(te,Se){var He=t({top:Math.max(Se.top,te.top),right:Math.min(Se.right,te.right),bottom:Math.min(Se.bottom,te.bottom),left:Math.max(Se.left,te.left)});return He.width<=0||He.height<=0?null:He},Ge=function(te,Se){return{top:te.top+Se.y,left:te.left+Se.x,bottom:te.bottom+Se.y,right:te.right+Se.x}},wt=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},xt={top:0,right:0,bottom:0,left:0},Ct=function(te,Se){return Se?Ge(te,Se.scroll.diff.displacement):te},Dt=function(te,Se,He){if(He&&He.increasedBy){var at;return Object(g.a)({},te,(at={},at[Se.end]=te[Se.end]+He.increasedBy[Se.line],at))}return te},Ht=function(te,Se){return Se&&Se.shouldClipSubject?gt(Se.pageMarginBox,te):t(te)},Je=function(te){var Se=te.page,He=te.withPlaceholder,at=te.axis,Et=te.frame,It=Ct(Se.marginBox,Et),Nt=Dt(It,at,He),vr=Ht(Nt,Et);return{page:Se,withPlaceholder:He,active:vr}},ye=function(te,Se){te.frame||de(!1);var He=te.frame,at=oe(Se,He.scroll.initial),Et=Te(at),It=Object(g.a)({},He,{scroll:{initial:He.scroll.initial,current:Se,diff:{value:at,displacement:Et},max:He.scroll.max}}),Nt=Je({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:It}),vr=Object(g.a)({},te,{frame:It,subject:Nt});return vr};function ie(De){return Number.isInteger?Number.isInteger(De):typeof De=="number"&&isFinite(De)&&Math.floor(De)===De}function bt(De){return Object.values?Object.values(De):Object.keys(De).map(function(te){return De[te]})}function qe(De,te){if(De.findIndex)return De.findIndex(te);for(var Se=0;Se<De.length;Se++)if(te(De[Se]))return Se;return-1}function me(De,te){if(De.find)return De.find(te);var Se=qe(De,te);return Se!==-1?De[Se]:void 0}function Rt(De){return Array.prototype.slice.call(De)}var er=O(function(De){return De.reduce(function(te,Se){return te[Se.descriptor.id]=Se,te},{})}),ct=O(function(De){return De.reduce(function(te,Se){return te[Se.descriptor.id]=Se,te},{})}),zt=O(function(De){return bt(De)}),sr=O(function(De){return bt(De)}),Kr=O(function(De,te){var Se=sr(te).filter(function(He){return De===He.descriptor.droppableId}).sort(function(He,at){return He.descriptor.index-at.descriptor.index});return Se});function ar(De){return De.at&&De.at.type==="REORDER"?De.at.destination:null}function nr(De){return De.at&&De.at.type==="COMBINE"?De.at.combine:null}var Lt=O(function(De,te){return te.filter(function(Se){return Se.descriptor.id!==De.descriptor.id})}),st=function(te){var Se=te.isMovingForward,He=te.draggable,at=te.destination,Et=te.insideDestination,It=te.previousImpact;if(!at.isCombineEnabled)return null;var Nt=ar(It);if(!Nt)return null;function vr(ni){var Oi={type:"COMBINE",combine:{draggableId:ni,droppableId:at.descriptor.id}};return Object(g.a)({},It,{at:Oi})}var Ir=It.displaced.all,mr=Ir.length?Ir[0]:null;if(Se)return mr?vr(mr):null;var cr=Lt(He,Et);if(!mr){if(!cr.length)return null;var Cr=cr[cr.length-1];return vr(Cr.descriptor.id)}var Pr=qe(cr,function(ni){return ni.descriptor.id===mr});Pr!==-1||de(!1);var an=Pr-1;if(an<0)return null;var Kn=cr[an];return vr(Kn.descriptor.id)},Qe=function(te,Se){return te.descriptor.droppableId===Se.descriptor.id},qt={point:_e,value:0},Sr={invisible:{},visible:{},all:[]},Ar={displaced:Sr,displacedBy:qt,at:null},hr=function(te,Se){return function(He){return te<=He&&He<=Se}},vn=function(te){var Se=hr(te.top,te.bottom),He=hr(te.left,te.right);return function(at){var Et=Se(at.top)&&Se(at.bottom)&&He(at.left)&&He(at.right);if(Et)return!0;var It=Se(at.top)||Se(at.bottom),Nt=He(at.left)||He(at.right),vr=It&&Nt;if(vr)return!0;var Ir=at.top<te.top&&at.bottom>te.bottom,mr=at.left<te.left&&at.right>te.right,cr=Ir&&mr;if(cr)return!0;var Cr=Ir&&Nt||mr&&It;return Cr}},Zr=function(te){var Se=hr(te.top,te.bottom),He=hr(te.left,te.right);return function(at){var Et=Se(at.top)&&Se(at.bottom)&&He(at.left)&&He(at.right);return Et}},Ln={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},$e={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},tt=function(te){return function(Se){var He=hr(Se.top,Se.bottom),at=hr(Se.left,Se.right);return function(Et){return te===Ln?He(Et.top)&&He(Et.bottom):at(Et.left)&&at(Et.right)}}},Ee=function(te,Se){var He=Se.frame?Se.frame.scroll.diff.displacement:_e;return Ge(te,He)},Re=function(te,Se,He){return Se.subject.active?He(Se.subject.active)(te):!1},je=function(te,Se,He){return He(Se)(te)},nt=function(te){var Se=te.target,He=te.destination,at=te.viewport,Et=te.withDroppableDisplacement,It=te.isVisibleThroughFrameFn,Nt=Et?Ee(Se,He):Se;return Re(Nt,He,It)&&je(Nt,at,It)},Vt=function(te){return nt(Object(g.a)({},te,{isVisibleThroughFrameFn:vn}))},Bt=function(te){return nt(Object(g.a)({},te,{isVisibleThroughFrameFn:Zr}))},Xt=function(te){return nt(Object(g.a)({},te,{isVisibleThroughFrameFn:tt(te.destination.axis)}))},Rr=function(te,Se,He){if(typeof He=="boolean")return He;if(!Se)return!0;var at=Se.invisible,Et=Se.visible;if(at[te])return!1;var It=Et[te];return It?It.shouldAnimate:!0};function Br(De,te){var Se=De.page.marginBox,He={top:te.point.y,right:0,bottom:0,left:te.point.x};return t(s(Se,He))}function cn(De){var te=De.afterDragging,Se=De.destination,He=De.displacedBy,at=De.viewport,Et=De.forceShouldAnimate,It=De.last;return te.reduce(function(vr,Ir){var mr=Br(Ir,He),cr=Ir.descriptor.id;vr.all.push(cr);var Cr=Vt({target:mr,destination:Se,viewport:at,withDroppableDisplacement:!0});if(!Cr)return vr.invisible[Ir.descriptor.id]=!0,vr;var Pr=Rr(cr,It,Et),an={draggableId:cr,shouldAnimate:Pr};return vr.visible[cr]=an,vr},{all:[],visible:{},invisible:{}})}function Ut(De,te){if(!De.length)return 0;var Se=De[De.length-1].descriptor.index;return te.inHomeList?Se:Se+1}function pt(De){var te=De.insideDestination,Se=De.inHomeList,He=De.displacedBy,at=De.destination,Et=Ut(te,{inHomeList:Se});return{displaced:Sr,displacedBy:He,at:{type:"REORDER",destination:{droppableId:at.descriptor.id,index:Et}}}}function ut(De){var te=De.draggable,Se=De.insideDestination,He=De.destination,at=De.viewport,Et=De.displacedBy,It=De.last,Nt=De.index,vr=De.forceShouldAnimate,Ir=Qe(te,He);if(Nt==null)return pt({insideDestination:Se,inHomeList:Ir,displacedBy:Et,destination:He});var mr=me(Se,function(Kn){return Kn.descriptor.index===Nt});if(!mr)return pt({insideDestination:Se,inHomeList:Ir,displacedBy:Et,destination:He});var cr=Lt(te,Se),Cr=Se.indexOf(mr),Pr=cr.slice(Cr),an=cn({afterDragging:Pr,destination:He,displacedBy:Et,last:It,viewport:at.frame,forceShouldAnimate:vr});return{displaced:an,displacedBy:Et,at:{type:"REORDER",destination:{droppableId:He.descriptor.id,index:Nt}}}}function Jt(De,te){return Boolean(te.effected[De])}var Zt=function(te){var Se=te.isMovingForward,He=te.destination,at=te.draggables,Et=te.combine,It=te.afterCritical;if(!He.isCombineEnabled)return null;var Nt=Et.draggableId,vr=at[Nt],Ir=vr.descriptor.index,mr=Jt(Nt,It);return mr?Se?Ir:Ir-1:Se?Ir+1:Ir},At=function(te){var Se=te.isMovingForward,He=te.isInHomeList,at=te.insideDestination,Et=te.location;if(!at.length)return null;var It=Et.index,Nt=Se?It+1:It-1,vr=at[0].descriptor.index,Ir=at[at.length-1].descriptor.index,mr=He?Ir:Ir+1;return Nt<vr||Nt>mr?null:Nt},Pt=function(te){var Se=te.isMovingForward,He=te.isInHomeList,at=te.draggable,Et=te.draggables,It=te.destination,Nt=te.insideDestination,vr=te.previousImpact,Ir=te.viewport,mr=te.afterCritical,cr=vr.at;if(cr||de(!1),cr.type==="REORDER"){var Cr=At({isMovingForward:Se,isInHomeList:He,location:cr.destination,insideDestination:Nt});return Cr==null?null:ut({draggable:at,insideDestination:Nt,destination:It,viewport:Ir,last:vr.displaced,displacedBy:vr.displacedBy,index:Cr})}var Pr=Zt({isMovingForward:Se,destination:It,displaced:vr.displaced,draggables:Et,combine:cr.combine,afterCritical:mr});return Pr==null?null:ut({draggable:at,insideDestination:Nt,destination:It,viewport:Ir,last:vr.displaced,displacedBy:vr.displacedBy,index:Pr})},vt=function(te){var Se=te.displaced,He=te.afterCritical,at=te.combineWith,Et=te.displacedBy,It=Boolean(Se.visible[at]||Se.invisible[at]);return Jt(at,He)?It?_e:Te(Et.point):It?Et.point:_e},Ft=function(te){var Se=te.afterCritical,He=te.impact,at=te.draggables,Et=nr(He);Et||de(!1);var It=Et.draggableId,Nt=at[It].page.borderBox.center,vr=vt({displaced:He.displaced,afterCritical:Se,combineWith:It,displacedBy:He.displacedBy});return xe(Nt,vr)},gr=function(te,Se){return Se.margin[te.start]+Se.borderBox[te.size]/2},or=function(te,Se){return Se.margin[te.end]+Se.borderBox[te.size]/2},ur=function(te,Se,He){return Se[te.crossAxisStart]+He.margin[te.crossAxisStart]+He.borderBox[te.crossAxisSize]/2},Yr=function(te){var Se=te.axis,He=te.moveRelativeTo,at=te.isMoving;return ze(Se.line,He.marginBox[Se.end]+gr(Se,at),ur(Se,He.marginBox,at))},Jr=function(te){var Se=te.axis,He=te.moveRelativeTo,at=te.isMoving;return ze(Se.line,He.marginBox[Se.start]-or(Se,at),ur(Se,He.marginBox,at))},Tn=function(te){var Se=te.axis,He=te.moveInto,at=te.isMoving;return ze(Se.line,He.contentBox[Se.start]+gr(Se,at),ur(Se,He.contentBox,at))},Dn=function(te){var Se=te.impact,He=te.draggable,at=te.draggables,Et=te.droppable,It=te.afterCritical,Nt=Kr(Et.descriptor.id,at),vr=He.page,Ir=Et.axis;if(!Nt.length)return Tn({axis:Ir,moveInto:Et.page,isMoving:vr});var mr=Se.displaced,cr=Se.displacedBy,Cr=mr.all[0];if(Cr){var Pr=at[Cr];if(Jt(Cr,It))return Jr({axis:Ir,moveRelativeTo:Pr.page,isMoving:vr});var an=v(Pr.page,cr.point);return Jr({axis:Ir,moveRelativeTo:an,isMoving:vr})}var Kn=Nt[Nt.length-1];if(Kn.descriptor.id===He.descriptor.id)return vr.borderBox.center;if(Jt(Kn.descriptor.id,It)){var ni=v(Kn.page,Te(It.displacedBy.point));return Yr({axis:Ir,moveRelativeTo:ni,isMoving:vr})}return Yr({axis:Ir,moveRelativeTo:Kn.page,isMoving:vr})},zn=function(te,Se){var He=te.frame;return He?xe(Se,He.scroll.diff.displacement):Se},qn=function(te){var Se=te.impact,He=te.draggable,at=te.droppable,Et=te.draggables,It=te.afterCritical,Nt=He.page.borderBox.center,vr=Se.at;return at&&vr?vr.type==="REORDER"?Dn({impact:Se,draggable:He,draggables:Et,droppable:at,afterCritical:It}):Ft({impact:Se,draggables:Et,afterCritical:It}):Nt},Ai=function(te){var Se=qn(te),He=te.droppable,at=He?zn(He,Se):Se;return at},Mi=function(te,Se){var He=oe(Se,te.scroll.initial),at=Te(He),Et=t({top:Se.y,bottom:Se.y+te.frame.height,left:Se.x,right:Se.x+te.frame.width}),It={frame:Et,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:Se,diff:{value:He,displacement:at}}};return It};function Ye(De,te){return De.map(function(Se){return te[Se]})}function Ce(De,te){for(var Se=0;Se<te.length;Se++){var He=te[Se].visible[De];if(He)return He}return null}var ke=function(te){var Se=te.impact,He=te.viewport,at=te.destination,Et=te.draggables,It=te.maxScrollChange,Nt=Mi(He,xe(He.scroll.current,It)),vr=at.frame?ye(at,xe(at.frame.scroll.current,It)):at,Ir=Se.displaced,mr=cn({afterDragging:Ye(Ir.all,Et),destination:at,displacedBy:Se.displacedBy,viewport:Nt.frame,last:Ir,forceShouldAnimate:!1}),cr=cn({afterDragging:Ye(Ir.all,Et),destination:vr,displacedBy:Se.displacedBy,viewport:He.frame,last:Ir,forceShouldAnimate:!1}),Cr={},Pr={},an=[Ir,mr,cr];Ir.all.forEach(function(ni){var Oi=Ce(ni,an);if(Oi){Pr[ni]=Oi;return}Cr[ni]=!0});var Kn=Object(g.a)({},Se,{displaced:{all:Ir.all,invisible:Cr,visible:Pr}});return Kn},Fe=function(te,Se){return xe(te.scroll.diff.displacement,Se)},Ve=function(te){var Se=te.pageBorderBoxCenter,He=te.draggable,at=te.viewport,Et=Fe(at,Se),It=oe(Et,He.page.borderBox.center);return xe(He.client.borderBox.center,It)},We=function(te){var Se=te.draggable,He=te.destination,at=te.newPageBorderBoxCenter,Et=te.viewport,It=te.withDroppableDisplacement,Nt=te.onlyOnMainAxis,vr=Nt===void 0?!1:Nt,Ir=oe(at,Se.page.borderBox.center),mr=Ge(Se.page.borderBox,Ir),cr={target:mr,destination:He,withDroppableDisplacement:It,viewport:Et};return vr?Xt(cr):Bt(cr)},Ze=function(te){var Se=te.isMovingForward,He=te.draggable,at=te.destination,Et=te.draggables,It=te.previousImpact,Nt=te.viewport,vr=te.previousPageBorderBoxCenter,Ir=te.previousClientSelection,mr=te.afterCritical;if(!at.isEnabled)return null;var cr=Kr(at.descriptor.id,Et),Cr=Qe(He,at),Pr=st({isMovingForward:Se,draggable:He,destination:at,insideDestination:cr,previousImpact:It})||Pt({isMovingForward:Se,isInHomeList:Cr,draggable:He,draggables:Et,destination:at,insideDestination:cr,previousImpact:It,viewport:Nt,afterCritical:mr});if(!Pr)return null;var an=Ai({impact:Pr,draggable:He,droppable:at,draggables:Et,afterCritical:mr}),Kn=We({draggable:He,destination:at,newPageBorderBoxCenter:an,viewport:Nt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Kn){var ni=Ve({pageBorderBoxCenter:an,draggable:He,viewport:Nt});return{clientSelection:ni,impact:Pr,scrollJumpRequest:null}}var Oi=oe(an,vr),hi=ke({impact:Pr,viewport:Nt,destination:at,draggables:Et,maxScrollChange:Oi});return{clientSelection:Ir,impact:hi,scrollJumpRequest:Oi}},yt=function(te){var Se=te.subject.active;return Se||de(!1),Se},lt=function(te){var Se=te.isMovingForward,He=te.pageBorderBoxCenter,at=te.source,Et=te.droppables,It=te.viewport,Nt=at.subject.active;if(!Nt)return null;var vr=at.axis,Ir=hr(Nt[vr.start],Nt[vr.end]),mr=zt(Et).filter(function(Cr){return Cr!==at}).filter(function(Cr){return Cr.isEnabled}).filter(function(Cr){return Boolean(Cr.subject.active)}).filter(function(Cr){return vn(It.frame)(yt(Cr))}).filter(function(Cr){var Pr=yt(Cr);return Se?Nt[vr.crossAxisEnd]<Pr[vr.crossAxisEnd]:Pr[vr.crossAxisStart]<Nt[vr.crossAxisStart]}).filter(function(Cr){var Pr=yt(Cr),an=hr(Pr[vr.start],Pr[vr.end]);return Ir(Pr[vr.start])||Ir(Pr[vr.end])||an(Nt[vr.start])||an(Nt[vr.end])}).sort(function(Cr,Pr){var an=yt(Cr)[vr.crossAxisStart],Kn=yt(Pr)[vr.crossAxisStart];return Se?an-Kn:Kn-an}).filter(function(Cr,Pr,an){return yt(Cr)[vr.crossAxisStart]===yt(an[0])[vr.crossAxisStart]});if(!mr.length)return null;if(mr.length===1)return mr[0];var cr=mr.filter(function(Cr){var Pr=hr(yt(Cr)[vr.start],yt(Cr)[vr.end]);return Pr(He[vr.line])});return cr.length===1?cr[0]:cr.length>1?cr.sort(function(Cr,Pr){return yt(Cr)[vr.start]-yt(Pr)[vr.start]})[0]:mr.sort(function(Cr,Pr){var an=et(He,wt(yt(Cr))),Kn=et(He,wt(yt(Pr)));return an!==Kn?an-Kn:yt(Cr)[vr.start]-yt(Pr)[vr.start]})[0]},kt=function(te,Se){var He=te.page.borderBox.center;return Jt(te.descriptor.id,Se)?oe(He,Se.displacedBy.point):He},wr=function(te,Se){var He=te.page.borderBox;return Jt(te.descriptor.id,Se)?Ge(He,Te(Se.displacedBy.point)):He},pr=function(te){var Se=te.pageBorderBoxCenter,He=te.viewport,at=te.destination,Et=te.insideDestination,It=te.afterCritical,Nt=Et.filter(function(vr){return Bt({target:wr(vr,It),destination:at,viewport:He.frame,withDroppableDisplacement:!0})}).sort(function(vr,Ir){var mr=it(Se,zn(at,kt(vr,It))),cr=it(Se,zn(at,kt(Ir,It)));return mr<cr?-1:cr<mr?1:vr.descriptor.index-Ir.descriptor.index});return Nt[0]||null},_r=O(function(te,Se){var He=Se[te.line];return{value:He,point:ze(te.line,He)}}),Wt=function(te,Se,He){var at=te.axis;if(te.descriptor.mode==="virtual")return ze(at.line,Se[at.line]);var Et=te.subject.page.contentBox[at.size],It=Kr(te.descriptor.id,He),Nt=It.reduce(function(mr,cr){return mr+cr.client.marginBox[at.size]},0),vr=Nt+Se[at.line],Ir=vr-Et;return Ir<=0?null:ze(at.line,Ir)},un=function(te,Se){return Object(g.a)({},te,{scroll:Object(g.a)({},te.scroll,{max:Se})})},ir=function(te,Se,He){var at=te.frame;Qe(Se,te)&&de(!1),te.subject.withPlaceholder&&de(!1);var Et=_r(te.axis,Se.displaceBy).point,It=Wt(te,Et,He),Nt={placeholderSize:Et,increasedBy:It,oldFrameMaxScroll:te.frame?te.frame.scroll.max:null};if(!at){var vr=Je({page:te.subject.page,withPlaceholder:Nt,axis:te.axis,frame:te.frame});return Object(g.a)({},te,{subject:vr})}var Ir=It?xe(at.scroll.max,It):at.scroll.max,mr=un(at,Ir),cr=Je({page:te.subject.page,withPlaceholder:Nt,axis:te.axis,frame:mr});return Object(g.a)({},te,{subject:cr,frame:mr})},Gr=function(te){var Se=te.subject.withPlaceholder;Se||de(!1);var He=te.frame;if(!He){var at=Je({page:te.subject.page,axis:te.axis,frame:null,withPlaceholder:null});return Object(g.a)({},te,{subject:at})}var Et=Se.oldFrameMaxScroll;Et||de(!1);var It=un(He,Et),Nt=Je({page:te.subject.page,axis:te.axis,frame:It,withPlaceholder:null});return Object(g.a)({},te,{subject:Nt,frame:It})},kr=function(te){var Se=te.previousPageBorderBoxCenter,He=te.moveRelativeTo,at=te.insideDestination,Et=te.draggable,It=te.draggables,Nt=te.destination,vr=te.viewport,Ir=te.afterCritical;if(!He){if(at.length)return null;var mr={displaced:Sr,displacedBy:qt,at:{type:"REORDER",destination:{droppableId:Nt.descriptor.id,index:0}}},cr=Ai({impact:mr,draggable:Et,droppable:Nt,draggables:It,afterCritical:Ir}),Cr=Qe(Et,Nt)?Nt:ir(Nt,Et,It),Pr=We({draggable:Et,destination:Cr,newPageBorderBoxCenter:cr,viewport:vr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Pr?mr:null}var an=Boolean(Se[Nt.axis.line]<=He.page.borderBox.center[Nt.axis.line]),Kn=function(){var Oi=He.descriptor.index;return He.descriptor.id===Et.descriptor.id||an?Oi:Oi+1}(),ni=_r(Nt.axis,Et.displaceBy);return ut({draggable:Et,insideDestination:at,destination:Nt,viewport:vr,displacedBy:ni,last:Sr,index:Kn})},yr=function(te){var Se=te.isMovingForward,He=te.previousPageBorderBoxCenter,at=te.draggable,Et=te.isOver,It=te.draggables,Nt=te.droppables,vr=te.viewport,Ir=te.afterCritical,mr=lt({isMovingForward:Se,pageBorderBoxCenter:He,source:Et,droppables:Nt,viewport:vr});if(!mr)return null;var cr=Kr(mr.descriptor.id,It),Cr=pr({pageBorderBoxCenter:He,viewport:vr,destination:mr,insideDestination:cr,afterCritical:Ir}),Pr=kr({previousPageBorderBoxCenter:He,destination:mr,draggable:at,draggables:It,moveRelativeTo:Cr,insideDestination:cr,viewport:vr,afterCritical:Ir});if(!Pr)return null;var an=Ai({impact:Pr,draggable:at,droppable:mr,draggables:It,afterCritical:Ir}),Kn=Ve({pageBorderBoxCenter:an,draggable:at,viewport:vr});return{clientSelection:Kn,impact:Pr,scrollJumpRequest:null}},En=function(te){var Se=te.at;return Se?Se.type==="REORDER"?Se.destination.droppableId:Se.combine.droppableId:null},kn=function(te,Se){var He=En(te);return He?Se[He]:null},ii=function(te){var Se=te.state,He=te.type,at=kn(Se.impact,Se.dimensions.droppables),Et=Boolean(at),It=Se.dimensions.droppables[Se.critical.droppable.id],Nt=at||It,vr=Nt.axis.direction,Ir=vr==="vertical"&&(He==="MOVE_UP"||He==="MOVE_DOWN")||vr==="horizontal"&&(He==="MOVE_LEFT"||He==="MOVE_RIGHT");if(Ir&&!Et)return null;var mr=He==="MOVE_DOWN"||He==="MOVE_RIGHT",cr=Se.dimensions.draggables[Se.critical.draggable.id],Cr=Se.current.page.borderBoxCenter,Pr=Se.dimensions,an=Pr.draggables,Kn=Pr.droppables;return Ir?Ze({isMovingForward:mr,previousPageBorderBoxCenter:Cr,draggable:cr,destination:Nt,draggables:an,viewport:Se.viewport,previousClientSelection:Se.current.client.selection,previousImpact:Se.impact,afterCritical:Se.afterCritical}):yr({isMovingForward:mr,previousPageBorderBoxCenter:Cr,draggable:cr,isOver:Nt,draggables:an,droppables:Kn,viewport:Se.viewport,afterCritical:Se.afterCritical})};function oi(De){return De.phase==="DRAGGING"||De.phase==="COLLECTING"}function ei(De){var te=hr(De.top,De.bottom),Se=hr(De.left,De.right);return function(at){return te(at.y)&&Se(at.x)}}function ci(De,te){return De.left<te.right&&De.right>te.left&&De.top<te.bottom&&De.bottom>te.top}function Pn(De){var te=De.pageBorderBox,Se=De.draggable,He=De.candidates,at=Se.page.borderBox.center,Et=He.map(function(It){var Nt=It.axis,vr=ze(It.axis.line,te.center[Nt.line],It.page.borderBox.center[Nt.crossAxisLine]);return{id:It.descriptor.id,distance:it(at,vr)}}).sort(function(It,Nt){return Nt.distance-It.distance});return Et[0]?Et[0].id:null}function xi(De){var te=De.pageBorderBox,Se=De.draggable,He=De.droppables,at=zt(He).filter(function(Et){if(!Et.isEnabled)return!1;var It=Et.subject.active;if(!It)return!1;if(!ci(te,It))return!1;if(ei(It)(te.center))return!0;var Nt=Et.axis,vr=It.center[Nt.crossAxisLine],Ir=te[Nt.crossAxisStart],mr=te[Nt.crossAxisEnd],cr=hr(It[Nt.crossAxisStart],It[Nt.crossAxisEnd]),Cr=cr(Ir),Pr=cr(mr);return!Cr&&!Pr?!0:Cr?Ir<vr:mr>vr});return at.length?at.length===1?at[0].descriptor.id:Pn({pageBorderBox:te,draggable:Se,candidates:at}):null}var gn=function(te,Se){return t(Ge(te,Se))},zr=function(te,Se){var He=te.frame;return He?gn(Se,He.scroll.diff.value):Se};function Cn(De){var te=De.displaced,Se=De.id;return Boolean(te.visible[Se]||te.invisible[Se])}function on(De){var te=De.draggable,Se=De.closest,He=De.inHomeList;return Se?He&&Se.descriptor.index>te.descriptor.index?Se.descriptor.index-1:Se.descriptor.index:null}var li=function(te){var Se=te.pageBorderBoxWithDroppableScroll,He=te.draggable,at=te.destination,Et=te.insideDestination,It=te.last,Nt=te.viewport,vr=te.afterCritical,Ir=at.axis,mr=_r(at.axis,He.displaceBy),cr=mr.value,Cr=Se[Ir.start],Pr=Se[Ir.end],an=Lt(He,Et),Kn=me(an,function(Oi){var hi=Oi.descriptor.id,va=Oi.page.borderBox.center[Ir.line],Ki=Jt(hi,vr),La=Cn({displaced:It,id:hi});return Ki?La?Pr<=va:Cr<va-cr:La?Pr<=va+cr:Cr<va}),ni=on({draggable:He,closest:Kn,inHomeList:Qe(He,at)});return ut({draggable:He,insideDestination:Et,destination:at,viewport:Nt,last:It,displacedBy:mr,index:ni})},ri=4,wi=function(te){var Se=te.draggable,He=te.pageBorderBoxWithDroppableScroll,at=te.previousImpact,Et=te.destination,It=te.insideDestination,Nt=te.afterCritical;if(!Et.isCombineEnabled)return null;var vr=Et.axis,Ir=_r(Et.axis,Se.displaceBy),mr=Ir.value,cr=He[vr.start],Cr=He[vr.end],Pr=Lt(Se,It),an=me(Pr,function(ni){var Oi=ni.descriptor.id,hi=ni.page.borderBox,va=hi[vr.size],Ki=va/ri,La=Jt(Oi,Nt),ba=Cn({displaced:at.displaced,id:Oi});return La?ba?Cr>hi[vr.start]+Ki&&Cr<hi[vr.end]-Ki:cr>hi[vr.start]-mr+Ki&&cr<hi[vr.end]-mr-Ki:ba?Cr>hi[vr.start]+mr+Ki&&Cr<hi[vr.end]+mr-Ki:cr>hi[vr.start]+Ki&&cr<hi[vr.end]-Ki});if(!an)return null;var Kn={displacedBy:Ir,displaced:at.displaced,at:{type:"COMBINE",combine:{draggableId:an.descriptor.id,droppableId:Et.descriptor.id}}};return Kn},Gn=function(te){var Se=te.pageOffset,He=te.draggable,at=te.draggables,Et=te.droppables,It=te.previousImpact,Nt=te.viewport,vr=te.afterCritical,Ir=gn(He.page.borderBox,Se),mr=xi({pageBorderBox:Ir,draggable:He,droppables:Et});if(!mr)return Ar;var cr=Et[mr],Cr=Kr(cr.descriptor.id,at),Pr=zr(cr,Ir);return wi({pageBorderBoxWithDroppableScroll:Pr,draggable:He,previousImpact:It,destination:cr,insideDestination:Cr,afterCritical:vr})||li({pageBorderBoxWithDroppableScroll:Pr,draggable:He,destination:cr,insideDestination:Cr,last:It.displaced,viewport:Nt,afterCritical:vr})},ki=function(te,Se){var He;return Object(g.a)({},te,(He={},He[Se.descriptor.id]=Se,He))},Jn=function(te){var Se=te.previousImpact,He=te.impact,at=te.droppables,Et=En(Se),It=En(He);if(!Et)return at;if(Et===It)return at;var Nt=at[Et];if(!Nt.subject.withPlaceholder)return at;var vr=Gr(Nt);return ki(at,vr)},Pi=function(te){var Se=te.draggable,He=te.draggables,at=te.droppables,Et=te.previousImpact,It=te.impact,Nt=Jn({previousImpact:Et,impact:It,droppables:at}),vr=En(It);if(!vr)return Nt;var Ir=at[vr];if(Qe(Se,Ir))return Nt;if(Ir.subject.withPlaceholder)return Nt;var mr=ir(Ir,Se,He);return ki(Nt,mr)},mn=function(te){var Se=te.state,He=te.clientSelection,at=te.dimensions,Et=te.viewport,It=te.impact,Nt=te.scrollJumpRequest,vr=Et||Se.viewport,Ir=at||Se.dimensions,mr=He||Se.current.client.selection,cr=oe(mr,Se.initial.client.selection),Cr={offset:cr,selection:mr,borderBoxCenter:xe(Se.initial.client.borderBoxCenter,cr)},Pr={selection:xe(Cr.selection,vr.scroll.current),borderBoxCenter:xe(Cr.borderBoxCenter,vr.scroll.current),offset:xe(Cr.offset,vr.scroll.diff.value)},an={client:Cr,page:Pr};if(Se.phase==="COLLECTING")return Object(g.a)({phase:"COLLECTING"},Se,{dimensions:Ir,viewport:vr,current:an});var Kn=Ir.draggables[Se.critical.draggable.id],ni=It||Gn({pageOffset:Pr.offset,draggable:Kn,draggables:Ir.draggables,droppables:Ir.droppables,previousImpact:Se.impact,viewport:vr,afterCritical:Se.afterCritical}),Oi=Pi({draggable:Kn,impact:ni,previousImpact:Se.impact,draggables:Ir.draggables,droppables:Ir.droppables}),hi=Object(g.a)({},Se,{current:an,dimensions:{draggables:Ir.draggables,droppables:Oi},impact:ni,viewport:vr,scrollJumpRequest:Nt||null,forceShouldAnimate:Nt?!1:null});return hi};function Fr(De,te){return De.map(function(Se){return te[Se]})}var An=function(te){var Se=te.impact,He=te.viewport,at=te.draggables,Et=te.destination,It=te.forceShouldAnimate,Nt=Se.displaced,vr=Fr(Nt.all,at),Ir=cn({afterDragging:vr,destination:Et,displacedBy:Se.displacedBy,viewport:He.frame,forceShouldAnimate:It,last:Nt});return Object(g.a)({},Se,{displaced:Ir})},Un=function(te){var Se=te.impact,He=te.draggable,at=te.droppable,Et=te.draggables,It=te.viewport,Nt=te.afterCritical,vr=Ai({impact:Se,draggable:He,draggables:Et,droppable:at,afterCritical:Nt});return Ve({pageBorderBoxCenter:vr,draggable:He,viewport:It})},Vn=function(te){var Se=te.state,He=te.dimensions,at=te.viewport;Se.movementMode==="SNAP"||de(!1);var Et=Se.impact,It=at||Se.viewport,Nt=He||Se.dimensions,vr=Nt.draggables,Ir=Nt.droppables,mr=vr[Se.critical.draggable.id],cr=En(Et);cr||de(!1);var Cr=Ir[cr],Pr=An({impact:Et,viewport:It,destination:Cr,draggables:vr}),an=Un({impact:Pr,draggable:mr,droppable:Cr,draggables:vr,viewport:It,afterCritical:Se.afterCritical});return mn({impact:Pr,clientSelection:an,state:Se,dimensions:Nt,viewport:It})},ti=function(te){return{index:te.index,droppableId:te.droppableId}},di=function(te){var Se=te.draggable,He=te.home,at=te.draggables,Et=te.viewport,It=_r(He.axis,Se.displaceBy),Nt=Kr(He.descriptor.id,at),vr=Nt.indexOf(Se);vr!==-1||de(!1);var Ir=Nt.slice(vr+1),mr=Ir.reduce(function(an,Kn){return an[Kn.descriptor.id]=!0,an},{}),cr={inVirtualList:He.descriptor.mode==="virtual",displacedBy:It,effected:mr},Cr=cn({afterDragging:Ir,destination:He,displacedBy:It,last:null,viewport:Et.frame,forceShouldAnimate:!1}),Pr={displaced:Cr,displacedBy:It,at:{type:"REORDER",destination:ti(Se.descriptor)}};return{impact:Pr,afterCritical:cr}},fi=function(te,Se){return{draggables:te.draggables,droppables:ki(te.droppables,Se)}},mi=function(te){},Wi=function(te){},na=function(te){var Se=te.draggable,He=te.offset,at=te.initialWindowScroll,Et=v(Se.client,He),It=A(Et,at),Nt=Object(g.a)({},Se,{placeholder:Object(g.a)({},Se.placeholder,{client:Et}),client:Et,page:It});return Nt},ea=function(te){var Se=te.frame;return Se||de(!1),Se},Fa=function(te){var Se=te.additions,He=te.updatedDroppables,at=te.viewport,Et=at.scroll.diff.value;return Se.map(function(It){var Nt=It.descriptor.droppableId,vr=He[Nt],Ir=ea(vr),mr=Ir.scroll.diff.value,cr=xe(Et,mr),Cr=na({draggable:It,offset:cr,initialWindowScroll:at.scroll.initial});return Cr})},pi=function(te){var Se=te.state,He=te.published;mi();var at=He.modified.map(function(Ki){var La=Se.dimensions.droppables[Ki.droppableId],ba=ye(La,Ki.scroll);return ba}),Et=Object(g.a)({},Se.dimensions.droppables,{},er(at)),It=ct(Fa({additions:He.additions,updatedDroppables:Et,viewport:Se.viewport})),Nt=Object(g.a)({},Se.dimensions.draggables,{},It);He.removals.forEach(function(Ki){delete Nt[Ki]});var vr={droppables:Et,draggables:Nt},Ir=En(Se.impact),mr=Ir?vr.droppables[Ir]:null,cr=vr.draggables[Se.critical.draggable.id],Cr=vr.droppables[Se.critical.droppable.id],Pr=di({draggable:cr,home:Cr,draggables:Nt,viewport:Se.viewport}),an=Pr.impact,Kn=Pr.afterCritical,ni=mr&&mr.isCombineEnabled?Se.impact:an,Oi=Gn({pageOffset:Se.current.page.offset,draggable:vr.draggables[Se.critical.draggable.id],draggables:vr.draggables,droppables:vr.droppables,previousImpact:ni,viewport:Se.viewport,afterCritical:Kn});Wi();var hi=Object(g.a)({phase:"DRAGGING"},Se,{phase:"DRAGGING",impact:Oi,onLiftImpact:an,dimensions:vr,afterCritical:Kn,forceShouldAnimate:!1});if(Se.phase==="COLLECTING")return hi;var va=Object(g.a)({phase:"DROP_PENDING"},hi,{phase:"DROP_PENDING",reason:Se.reason,isWaiting:!1});return va},ln=function(te){return te.movementMode==="SNAP"},Li=function(te,Se,He){var at=fi(te.dimensions,Se);return!ln(te)||He?mn({state:te,dimensions:at}):Vn({state:te,dimensions:at})};function Zi(De){return De.isDragging&&De.movementMode==="SNAP"?Object(g.a)({phase:"DRAGGING"},De,{scrollJumpRequest:null}):De}var Fi={phase:"IDLE",completed:null,shouldFlush:!1},ia=function(te,Se){if(te===void 0&&(te=Fi),Se.type==="FLUSH")return Object(g.a)({},Fi,{shouldFlush:!0});if(Se.type==="INITIAL_PUBLISH"){te.phase==="IDLE"||de(!1);var He=Se.payload,at=He.critical,Et=He.clientSelection,It=He.viewport,Nt=He.dimensions,vr=He.movementMode,Ir=Nt.draggables[at.draggable.id],mr=Nt.droppables[at.droppable.id],cr={selection:Et,borderBoxCenter:Ir.client.borderBox.center,offset:_e},Cr={client:cr,page:{selection:xe(cr.selection,It.scroll.initial),borderBoxCenter:xe(cr.selection,It.scroll.initial),offset:xe(cr.selection,It.scroll.diff.value)}},Pr=zt(Nt.droppables).every(function(xo){return!xo.isFixedOnPage}),an=di({draggable:Ir,home:mr,draggables:Nt.draggables,viewport:It}),Kn=an.impact,ni=an.afterCritical,Oi={phase:"DRAGGING",isDragging:!0,critical:at,movementMode:vr,dimensions:Nt,initial:Cr,current:Cr,isWindowScrollAllowed:Pr,impact:Kn,afterCritical:ni,onLiftImpact:Kn,viewport:It,scrollJumpRequest:null,forceShouldAnimate:null};return Oi}if(Se.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase==="DRAGGING"||de(!1);var hi=Object(g.a)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return hi}if(Se.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||de(!1),pi({state:te,published:Se.payload});if(Se.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;oi(te)||de(!1);var va=Se.payload.client;return fe(va,te.current.client.selection)?te:mn({state:te,clientSelection:va,impact:ln(te)?te.impact:null})}if(Se.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING")return Zi(te);if(te.phase==="COLLECTING")return Zi(te);oi(te)||de(!1);var Ki=Se.payload,La=Ki.id,ba=Ki.newScroll,Ia=te.dimensions.droppables[La];if(!Ia)return te;var lo=ye(Ia,ba);return Li(te,lo,!1)}if(Se.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;oi(te)||de(!1);var P=Se.payload,W=P.id,q=P.isEnabled,re=te.dimensions.droppables[W];re||de(!1),re.isEnabled!==q||de(!1);var le=Object(g.a)({},re,{isEnabled:q});return Li(te,le,!0)}if(Se.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;oi(te)||de(!1);var Pe=Se.payload,ft=Pe.id,Tt=Pe.isCombineEnabled,Qt=te.dimensions.droppables[ft];Qt||de(!1),Qt.isCombineEnabled!==Tt||de(!1);var $t=Object(g.a)({},Qt,{isCombineEnabled:Tt});return Li(te,$t,!0)}if(Se.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;oi(te)||de(!1),te.isWindowScrollAllowed||de(!1);var en=Se.payload.newScroll;if(fe(te.viewport.scroll.current,en))return Zi(te);var pn=Mi(te.viewport,en);return ln(te)?Vn({state:te,viewport:pn}):mn({state:te,viewport:pn})}if(Se.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!oi(te))return te;var Mn=Se.payload.maxScroll;if(fe(Mn,te.viewport.scroll.max))return te;var Fn=Object(g.a)({},te.viewport,{scroll:Object(g.a)({},te.viewport.scroll,{max:Mn})});return Object(g.a)({phase:"DRAGGING"},te,{viewport:Fn})}if(Se.type==="MOVE_UP"||Se.type==="MOVE_DOWN"||Se.type==="MOVE_LEFT"||Se.type==="MOVE_RIGHT"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase==="DRAGGING"||de(!1);var vi=ii({state:te,type:Se.type});return vi?mn({state:te,impact:vi.impact,clientSelection:vi.clientSelection,scrollJumpRequest:vi.scrollJumpRequest}):te}if(Se.type==="DROP_PENDING"){var ji=Se.payload.reason;te.phase==="COLLECTING"||de(!1);var Ji=Object(g.a)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:ji});return Ji}if(Se.type==="DROP_ANIMATE"){var Qi=Se.payload,Gi=Qi.completed,ga=Qi.dropDuration,Ea=Qi.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||de(!1);var ro={phase:"DROP_ANIMATING",completed:Gi,dropDuration:ga,newHomeClientOffset:Ea,dimensions:te.dimensions};return ro}if(Se.type==="DROP_COMPLETE"){var Va=Se.payload.completed;return{phase:"IDLE",completed:Va,shouldFlush:!1}}return te},Gt=function(te){return{type:"BEFORE_INITIAL_CAPTURE",payload:te}},Xr=function(te){return{type:"LIFT",payload:te}},rn=function(te){return{type:"INITIAL_PUBLISH",payload:te}},fn=function(te){return{type:"PUBLISH_WHILE_DRAGGING",payload:te}},Xe=function(){return{type:"COLLECTION_STARTING",payload:null}},_t=function(te){return{type:"UPDATE_DROPPABLE_SCROLL",payload:te}},lr=function(te){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:te}},rr=function(te){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:te}},Or=function(te){return{type:"MOVE",payload:te}},Mr=function(te){return{type:"MOVE_BY_WINDOW_SCROLL",payload:te}},Wr=function(te){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:te}},nn=function(){return{type:"MOVE_UP",payload:null}},wn=function(){return{type:"MOVE_DOWN",payload:null}},On=function(){return{type:"MOVE_RIGHT",payload:null}},Rn=function(){return{type:"MOVE_LEFT",payload:null}},Nn=function(){return{type:"FLUSH",payload:null}},yn=function(te){return{type:"DROP_ANIMATE",payload:te}},Sn=function(te){return{type:"DROP_COMPLETE",payload:te}},_n=function(te){return{type:"DROP",payload:te}},Hn=function(te){return{type:"DROP_PENDING",payload:te}},Yn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Zn(De){if(De.length<=1)return;for(var te=De.map(function(Nt){return Nt.descriptor.index}),Se={},He=1;He<te.length;He++){var at=te[He],Et=te[He-1];at!==Et+1&&(Se[at]=!0)}if(!Object.keys(Se).length)return;var It=te.map(function(Nt){var vr=Boolean(Se[Nt]);return vr?"[\u{1F525}"+Nt+"]":""+Nt}).join(", ")}function yi(De,te){if(!1)var Se}var gi=function(te){return function(Se){var He=Se.getState,at=Se.dispatch;return function(Et){return function(It){if(It.type!=="LIFT"){Et(It);return}var Nt=It.payload,vr=Nt.id,Ir=Nt.clientSelection,mr=Nt.movementMode,cr=He();cr.phase==="DROP_ANIMATING"&&at(Sn({completed:cr.completed})),He().phase==="IDLE"||de(!1),at(Nn()),at(Gt({draggableId:vr,movementMode:mr}));var Cr={shouldPublishImmediately:mr==="SNAP"},Pr={draggableId:vr,scrollOptions:Cr},an=te.startPublishing(Pr),Kn=an.critical,ni=an.dimensions,Oi=an.viewport;yi(Kn,ni),at(rn({critical:Kn,dimensions:ni,clientSelection:Ir,movementMode:mr,viewport:Oi}))}}}},Di=function(te){return function(){return function(Se){return function(He){He.type==="INITIAL_PUBLISH"&&te.dragging(),He.type==="DROP_ANIMATE"&&te.dropping(He.payload.completed.result.reason),(He.type==="FLUSH"||He.type==="DROP_COMPLETE")&&te.resting(),Se(He)}}}},Ui={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ei={opacity:{drop:0,combining:.7},scale:{drop:.75}},_i={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ni=_i.outOfTheWay+"s "+Ui.outOfTheWay,jn={fluid:"opacity "+Ni,snap:"transform "+Ni+", opacity "+Ni,drop:function(te){var Se=te+"s "+Ui.drop;return"transform "+Se+", opacity "+Se},outOfTheWay:"transform "+Ni,placeholder:"height "+Ni+", width "+Ni+", margin "+Ni},Ii=function(te){return fe(te,_e)?null:"translate("+te.x+"px, "+te.y+"px)"},Hi={moveTo:Ii,drop:function(te,Se){var He=Ii(te);return He?Se?He+" scale("+Ei.scale.drop+")":He:null}},fr=_i.minDropTime,Dr=_i.maxDropTime,Qr=Dr-fr,Nr=1500,Yt=.6,xr=function(te){var Se=te.current,He=te.destination,at=te.reason,Et=it(Se,He);if(Et<=0)return fr;if(Et>=Nr)return Dr;var It=Et/Nr,Nt=fr+Qr*It,vr=at==="CANCEL"?Nt*Yt:Nt;return Number(vr.toFixed(2))},tr=function(te){var Se=te.impact,He=te.draggable,at=te.dimensions,Et=te.viewport,It=te.afterCritical,Nt=at.draggables,vr=at.droppables,Ir=En(Se),mr=Ir?vr[Ir]:null,cr=vr[He.descriptor.droppableId],Cr=Un({impact:Se,draggable:He,draggables:Nt,afterCritical:It,droppable:mr||cr,viewport:Et}),Pr=oe(Cr,He.client.borderBox.center);return Pr},jr=function(te){var Se=te.draggables,He=te.reason,at=te.lastImpact,Et=te.home,It=te.viewport,Nt=te.onLiftImpact;if(!at.at||He!=="DROP"){var vr=An({draggables:Se,impact:Nt,destination:Et,viewport:It,forceShouldAnimate:!0});return{impact:vr,didDropInsideDroppable:!1}}if(at.at.type==="REORDER")return{impact:at,didDropInsideDroppable:!0};var Ir=Object(g.a)({},at,{displaced:Sr});return{impact:Ir,didDropInsideDroppable:!0}},Ur=function(te){var Se=te.getState,He=te.dispatch;return function(at){return function(Et){if(Et.type!=="DROP"){at(Et);return}var It=Se(),Nt=Et.payload.reason;if(It.phase==="COLLECTING"){He(Hn({reason:Nt}));return}if(It.phase==="IDLE")return;var vr=It.phase==="DROP_PENDING"&&It.isWaiting;vr&&de(!1),It.phase==="DRAGGING"||It.phase==="DROP_PENDING"||de(!1);var Ir=It.critical,mr=It.dimensions,cr=mr.draggables[It.critical.draggable.id],Cr=jr({reason:Nt,lastImpact:It.impact,afterCritical:It.afterCritical,onLiftImpact:It.onLiftImpact,home:It.dimensions.droppables[It.critical.droppable.id],viewport:It.viewport,draggables:It.dimensions.draggables}),Pr=Cr.impact,an=Cr.didDropInsideDroppable,Kn=an?ar(Pr):null,ni=an?nr(Pr):null,Oi={index:Ir.draggable.index,droppableId:Ir.droppable.id},hi={draggableId:cr.descriptor.id,type:cr.descriptor.type,source:Oi,reason:Nt,mode:It.movementMode,destination:Kn,combine:ni},va=tr({impact:Pr,draggable:cr,dimensions:mr,viewport:It.viewport,afterCritical:It.afterCritical}),Ki={critical:It.critical,afterCritical:It.afterCritical,result:hi,impact:Pr},La=!fe(It.current.client.offset,va)||Boolean(hi.combine);if(!La){He(Sn({completed:Ki}));return}var ba=xr({current:It.current.client.offset,destination:va,reason:Nt}),Ia={newHomeClientOffset:va,dropDuration:ba,completed:Ki};He(yn(Ia))}}},dn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function sn(De){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Se){if(Se.target!==window&&Se.target!==window.document)return;De()}}}function bn(De){var te=De.onWindowScroll;function Se(){te(dn())}var He=D(Se),at=sn(He),Et=se;function It(){return Et!==se}function Nt(){It()&&de(!1),Et=ae(window,[at])}function vr(){It()||de(!1),He.cancel(),Et(),Et=se}return{start:Nt,stop:vr,isActive:It}}var Bn=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Xn=function(te){var Se=bn({onWindowScroll:function(at){te.dispatch(Mr({newScroll:at}))}});return function(He){return function(at){!Se.isActive()&&at.type==="INITIAL_PUBLISH"&&Se.start(),Se.isActive()&&Bn(at)&&Se.stop(),He(at)}}},$n=function(te){var Se=!1,He=!1,at=setTimeout(function(){He=!0}),Et=function(Nt){if(Se)return;if(He)return;Se=!0,te(Nt),clearTimeout(at)};return Et.wasCalled=function(){return Se},Et},Ti=function(){var te=[],Se=function(It){var Nt=qe(te,function(mr){return mr.timerId===It});Nt!==-1||de(!1);var vr=te.splice(Nt,1),Ir=vr[0];Ir.callback()},He=function(It){var Nt=setTimeout(function(){return Se(Nt)}),vr={timerId:Nt,callback:It};te.push(vr)},at=function(){if(!te.length)return;var It=[].concat(te);te.length=0,It.forEach(function(Nt){clearTimeout(Nt.timerId),Nt.callback()})};return{add:He,flush:at}},Xi=function(te,Se){return te==null&&Se==null?!0:te==null||Se==null?!1:te.droppableId===Se.droppableId&&te.index===Se.index},ua=function(te,Se){return te==null&&Se==null?!0:te==null||Se==null?!1:te.draggableId===Se.draggableId&&te.droppableId===Se.droppableId},da=function(te,Se){if(te===Se)return!0;var He=te.draggable.id===Se.draggable.id&&te.draggable.droppableId===Se.draggable.droppableId&&te.draggable.type===Se.draggable.type&&te.draggable.index===Se.draggable.index,at=te.droppable.id===Se.droppable.id&&te.droppable.type===Se.droppable.type;return He&&at},sa=function(te,Se){mi(),Se(),Wi()},ca=function(te,Se){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:Se}},zi=function(te,Se,He,at){if(!te){He(at(Se));return}var Et=$n(He),It={announce:Et};te(Se,It),Et.wasCalled()||He(at(Se))},Ri=function(te,Se){var He=Ti(),at=null,Et=function(Pr,an){at&&de(!1),sa("onBeforeCapture",function(){var Kn=te().onBeforeCapture;if(Kn){var ni={draggableId:Pr,mode:an};Kn(ni)}})},It=function(Pr,an){at&&de(!1),sa("onBeforeDragStart",function(){var Kn=te().onBeforeDragStart;Kn&&Kn(ca(Pr,an))})},Nt=function(Pr,an){at&&de(!1);var Kn=ca(Pr,an);at={mode:an,lastCritical:Pr,lastLocation:Kn.source,lastCombine:null},He.add(function(){sa("onDragStart",function(){return zi(te().onDragStart,Kn,Se,ue.onDragStart)})})},vr=function(Pr,an){var Kn=ar(an),ni=nr(an);at||de(!1);var Oi=!da(Pr,at.lastCritical);Oi&&(at.lastCritical=Pr);var hi=!Xi(at.lastLocation,Kn);hi&&(at.lastLocation=Kn);var va=!ua(at.lastCombine,ni);if(va&&(at.lastCombine=ni),!Oi&&!hi&&!va)return;var Ki=Object(g.a)({},ca(Pr,at.mode),{combine:ni,destination:Kn});He.add(function(){sa("onDragUpdate",function(){return zi(te().onDragUpdate,Ki,Se,ue.onDragUpdate)})})},Ir=function(){at||de(!1),He.flush()},mr=function(Pr){at||de(!1),at=null,sa("onDragEnd",function(){return zi(te().onDragEnd,Pr,Se,ue.onDragEnd)})},cr=function(){if(!at)return;var Pr=Object(g.a)({},ca(at.lastCritical,at.mode),{combine:null,destination:null,reason:"CANCEL"});mr(Pr)};return{beforeCapture:Et,beforeStart:It,start:Nt,update:vr,flush:Ir,drop:mr,abort:cr}},ta=function(te,Se){var He=Ri(te,Se);return function(at){return function(Et){return function(It){if(It.type==="BEFORE_INITIAL_CAPTURE"){He.beforeCapture(It.payload.draggableId,It.payload.movementMode);return}if(It.type==="INITIAL_PUBLISH"){var Nt=It.payload.critical;He.beforeStart(Nt,It.payload.movementMode),Et(It),He.start(Nt,It.payload.movementMode);return}if(It.type==="DROP_COMPLETE"){var vr=It.payload.completed.result;He.flush(),Et(It),He.drop(vr);return}if(Et(It),It.type==="FLUSH"){He.abort();return}var Ir=at.getState();Ir.phase==="DRAGGING"&&He.update(Ir.critical,Ir.impact)}}}},$i=function(te){return function(Se){return function(He){if(He.type!=="DROP_ANIMATION_FINISHED"){Se(He);return}var at=te.getState();at.phase==="DROP_ANIMATING"||de(!1),te.dispatch(Sn({completed:at.completed}))}}},Ca=function(te){var Se=null,He=null;function at(){He&&(cancelAnimationFrame(He),He=null),Se&&(Se(),Se=null)}return function(Et){return function(It){if((It.type==="FLUSH"||It.type==="DROP_COMPLETE"||It.type==="DROP_ANIMATION_FINISHED")&&at(),Et(It),It.type!=="DROP_ANIMATE")return;var Nt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Ir=te.getState();Ir.phase==="DROP_ANIMATING"&&te.dispatch(Yn())}};He=requestAnimationFrame(function(){He=null,Se=ae(window,[Nt])})}}},Ma=function(te){return function(){return function(Se){return function(He){(He.type==="DROP_COMPLETE"||He.type==="FLUSH"||He.type==="DROP_ANIMATE")&&te.stopPublishing(),Se(He)}}}},qi=function(te){var Se=!1;return function(){return function(He){return function(at){if(at.type==="INITIAL_PUBLISH"){Se=!0,te.tryRecordFocus(at.payload.critical.draggable.id),He(at),te.tryRestoreFocusRecorded();return}if(He(at),!Se)return;if(at.type==="FLUSH"){Se=!1,te.tryRestoreFocusRecorded();return}if(at.type==="DROP_COMPLETE"){Se=!1;var Et=at.payload.completed.result;Et.combine&&te.tryShiftRecord(Et.draggableId,Et.combine.draggableId),te.tryRestoreFocusRecorded()}}}}},Yi=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Pa=function(te){return function(Se){return function(He){return function(at){if(Yi(at)){te.stop(),He(at);return}if(at.type==="INITIAL_PUBLISH"){He(at);var Et=Se.getState();Et.phase==="DRAGGING"||de(!1),te.start(Et);return}He(at),te.scroll(Se.getState())}}}},ya=function(te){return function(Se){return function(He){if(Se(He),He.type!=="PUBLISH_WHILE_DRAGGING")return;var at=te.getState();if(at.phase!=="DROP_PENDING")return;if(at.isWaiting)return;te.dispatch(_n({reason:at.reason}))}}},Ci=S.d,la=function(te){var Se=te.dimensionMarshal,He=te.focusMarshal,at=te.styleMarshal,Et=te.getResponders,It=te.announce,Nt=te.autoScroller;return Object(S.e)(ia,Ci(Object(S.a)(Di(at),Ma(Se),gi(Se),Ur,$i,Ca,ya,Pa(Nt),Xn,qi(He),ta(Et,It))))},Ha=function(){return{additions:{},removals:{},modified:{}}};function ka(De){var te=De.registry,Se=De.callbacks,He=Ha(),at=null,Et=function(){if(at)return;Se.collectionStarting(),at=requestAnimationFrame(function(){at=null,mi();var mr=He,cr=mr.additions,Cr=mr.removals,Pr=mr.modified,an=Object.keys(cr).map(function(Oi){return te.draggable.getById(Oi).getDimension(_e)}).sort(function(Oi,hi){return Oi.descriptor.index-hi.descriptor.index}),Kn=Object.keys(Pr).map(function(Oi){var hi=te.droppable.getById(Oi),va=hi.callbacks.getScrollWhileDragging();return{droppableId:Oi,scroll:va}}),ni={additions:an,removals:Object.keys(Cr),modified:Kn};He=Ha(),Wi(),Se.publish(ni)})},It=function(mr){var cr=mr.descriptor.id;He.additions[cr]=mr,He.modified[mr.descriptor.droppableId]=!0,He.removals[cr]&&delete He.removals[cr],Et()},Nt=function(mr){var cr=mr.descriptor;He.removals[cr.id]=!0,He.modified[cr.droppableId]=!0,He.additions[cr.id]&&delete He.additions[cr.id],Et()},vr=function(){if(!at)return;cancelAnimationFrame(at),at=null,He=Ha()};return{add:It,remove:Nt,stop:vr}}var Aa=function(te){var Se=te.scrollHeight,He=te.scrollWidth,at=te.height,Et=te.width,It=oe({x:He,y:Se},{x:Et,y:at}),Nt={x:Math.max(0,It.x),y:Math.max(0,It.y)};return Nt},Sa=function(){var te=document.documentElement;return te||de(!1),te},Ya=function(){var te=Sa(),Se=Aa({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return Se},Ta=function(){var te=dn(),Se=Ya(),He=te.y,at=te.x,Et=Sa(),It=Et.clientWidth,Nt=Et.clientHeight,vr=at+It,Ir=He+Nt,mr=t({top:He,left:at,right:vr,bottom:Ir}),cr={frame:mr,scroll:{initial:te,current:te,max:Se,diff:{value:_e,displacement:_e}}};return cr},Ga=function(te){var Se=te.critical,He=te.scrollOptions,at=te.registry;mi();var Et=Ta(),It=Et.scroll.current,Nt=Se.droppable,vr=at.droppable.getAllByType(Nt.type).map(function(Cr){return Cr.callbacks.getDimensionAndWatchScroll(It,He)}),Ir=at.draggable.getAllByType(Se.draggable.type).map(function(Cr){return Cr.getDimension(It)}),mr={draggables:ct(Ir),droppables:er(vr)};Wi();var cr={dimensions:mr,critical:Se,viewport:Et};return cr};function uo(De,te,Se){if(Se.descriptor.id===te.id)return!1;if(Se.descriptor.type!==te.type)return!1;var He=De.droppable.getById(Se.descriptor.droppableId);return!(He.descriptor.mode!=="virtual")}var aa=function(te,Se){var He=null,at=ka({callbacks:{publish:Se.publishWhileDragging,collectionStarting:Se.collectionStarting},registry:te}),Et=function(an,Kn){if(te.droppable.exists(an)||de(!1),!He)return;Se.updateDroppableIsEnabled({id:an,isEnabled:Kn})},It=function(an,Kn){if(!He)return;te.droppable.exists(an)||de(!1),Se.updateDroppableIsCombineEnabled({id:an,isCombineEnabled:Kn})},Nt=function(an,Kn){if(!He)return;te.droppable.exists(an)||de(!1),Se.updateDroppableScroll({id:an,newScroll:Kn})},vr=function(an,Kn){if(!He)return;te.droppable.getById(an).callbacks.scroll(Kn)},Ir=function(){if(!He)return;at.stop();var an=He.critical.droppable;te.droppable.getAllByType(an.type).forEach(function(Kn){return Kn.callbacks.dragStopped()}),He.unsubscribe(),He=null},mr=function(an){He||de(!1);var Kn=He.critical.draggable;an.type==="ADDITION"&&(uo(te,Kn,an.value)&&at.add(an.value)),an.type==="REMOVAL"&&(uo(te,Kn,an.value)&&at.remove(an.value))},cr=function(an){He&&de(!1);var Kn=te.draggable.getById(an.draggableId),ni=te.droppable.getById(Kn.descriptor.droppableId),Oi={draggable:Kn.descriptor,droppable:ni.descriptor},hi=te.subscribe(mr);return He={critical:Oi,unsubscribe:hi},Ga({critical:Oi,registry:te,scrollOptions:an.scrollOptions})},Cr={updateDroppableIsEnabled:Et,updateDroppableIsCombineEnabled:It,scrollDroppable:vr,updateDroppableScroll:Nt,startPublishing:cr,stopPublishing:Ir};return Cr},ho=function(te,Se){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===Se?!1:te.completed.result.reason==="DROP"},Ua=function(te){window.scrollBy(te.x,te.y)},Na=O(function(De){return zt(De).filter(function(te){return te.isEnabled?!!te.frame:!1})}),$a=function(te,Se){var He=me(Na(Se),function(at){return at.frame||de(!1),ei(at.frame.pageMarginBox)(te)});return He},Ra=function(te){var Se=te.center,He=te.destination,at=te.droppables;if(He){var Et=at[He];return Et.frame?Et:null}var It=$a(Se,at);return It},Ka={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},bo=function(te,Se){var He=te[Se.size]*Ka.startFromPercentage,at=te[Se.size]*Ka.maxScrollAtPercentage,Et={startScrollingFrom:He,maxScrollValueAt:at};return Et},no=function(te){var Se=te.startOfRange,He=te.endOfRange,at=te.current,Et=He-Se;if(Et===0)return 0;var It=at-Se,Nt=It/Et;return Nt},Co=1,fo=function(te,Se){if(te>Se.startScrollingFrom)return 0;if(te<=Se.maxScrollValueAt)return Ka.maxPixelScroll;if(te===Se.startScrollingFrom)return Co;var He=no({startOfRange:Se.maxScrollValueAt,endOfRange:Se.startScrollingFrom,current:te}),at=1-He,Et=Ka.maxPixelScroll*Ka.ease(at);return Math.ceil(Et)},po=Ka.durationDampening.accelerateAt,Za=Ka.durationDampening.stopDampeningAt,qa=function(te,Se){var He=Se,at=Za,Et=Date.now(),It=Et-He;if(It>=Za)return te;if(It<po)return Co;var Nt=no({startOfRange:po,endOfRange:at,current:It}),vr=te*Ka.ease(Nt);return Math.ceil(vr)},Oa=function(te){var Se=te.distanceToEdge,He=te.thresholds,at=te.dragStartTime,Et=te.shouldUseTimeDampening,It=fo(Se,He);return It===0?0:Et?Math.max(qa(It,at),Co):It},oo=function(te){var Se=te.container,He=te.distanceToEdges,at=te.dragStartTime,Et=te.axis,It=te.shouldUseTimeDampening,Nt=bo(Se,Et),vr=He[Et.end]<He[Et.start];return vr?Oa({distanceToEdge:He[Et.end],thresholds:Nt,dragStartTime:at,shouldUseTimeDampening:It}):-1*Oa({distanceToEdge:He[Et.start],thresholds:Nt,dragStartTime:at,shouldUseTimeDampening:It})},go=function(te){var Se=te.container,He=te.subject,at=te.proposedScroll,Et=He.height>Se.height,It=He.width>Se.width;return!It&&!Et?at:It&&Et?null:{x:It?0:at.x,y:Et?0:at.y}},Bi=Oe(function(De){return De===0?0:De}),pa=function(te){var Se=te.dragStartTime,He=te.container,at=te.subject,Et=te.center,It=te.shouldUseTimeDampening,Nt={top:Et.y-He.top,right:He.right-Et.x,bottom:He.bottom-Et.y,left:Et.x-He.left},vr=oo({container:He,distanceToEdges:Nt,dragStartTime:Se,axis:Ln,shouldUseTimeDampening:It}),Ir=oo({container:He,distanceToEdges:Nt,dragStartTime:Se,axis:$e,shouldUseTimeDampening:It}),mr=Bi({x:Ir,y:vr});if(fe(mr,_e))return null;var cr=go({container:He,subject:at,proposedScroll:mr});return cr?fe(cr,_e)?null:cr:null},Do=Oe(function(De){return De===0?0:De>0?1:-1}),jo=function(){var De=function(Se,He){return Se<0?Se:Se>He?Se-He:0};return function(te){var Se=te.current,He=te.max,at=te.change,Et=xe(Se,at),It={x:De(Et.x,He.x),y:De(Et.y,He.y)};return fe(It,_e)?null:It}}(),Vo=function(te){var Se=te.max,He=te.current,at=te.change,Et={x:Math.max(He.x,Se.x),y:Math.max(He.y,Se.y)},It=Do(at),Nt=jo({max:Et,current:He,change:It});return Nt?It.x!==0&&Nt.x===0?!0:It.y!==0&&Nt.y===0:!0},Yo=function(te,Se){return Vo({current:te.scroll.current,max:te.scroll.max,change:Se})},wo=function(te,Se){if(!Yo(te,Se))return null;var He=te.scroll.max,at=te.scroll.current;return jo({current:at,max:He,change:Se})},Da=function(te,Se){var He=te.frame;return He?Vo({current:He.scroll.current,max:He.scroll.max,change:Se}):!1},Fo=function(te,Se){var He=te.frame;return He&&Da(te,Se)?jo({current:He.scroll.current,max:He.scroll.max,change:Se}):null},cs=function(te){var Se=te.viewport,He=te.subject,at=te.center,Et=te.dragStartTime,It=te.shouldUseTimeDampening,Nt=pa({dragStartTime:Et,container:Se.frame,subject:He,center:at,shouldUseTimeDampening:It});return Nt&&Yo(Se,Nt)?Nt:null},mo=function(te){var Se=te.droppable,He=te.subject,at=te.center,Et=te.dragStartTime,It=te.shouldUseTimeDampening,Nt=Se.frame;if(!Nt)return null;var vr=pa({dragStartTime:Et,container:Nt.pageMarginBox,subject:He,center:at,shouldUseTimeDampening:It});return vr&&Da(Se,vr)?vr:null},_o=function(te){var Se=te.state,He=te.dragStartTime,at=te.shouldUseTimeDampening,Et=te.scrollWindow,It=te.scrollDroppable,Nt=Se.current.page.borderBoxCenter,vr=Se.dimensions.draggables[Se.critical.draggable.id],Ir=vr.page.marginBox;if(Se.isWindowScrollAllowed){var mr=Se.viewport,cr=cs({dragStartTime:He,viewport:mr,subject:Ir,center:Nt,shouldUseTimeDampening:at});if(cr){Et(cr);return}}var Cr=Ra({center:Nt,destination:En(Se.impact),droppables:Se.dimensions.droppables});if(!Cr)return;var Pr=mo({dragStartTime:He,droppable:Cr,subject:Ir,center:Nt,shouldUseTimeDampening:at});Pr&&It(Cr.descriptor.id,Pr)},Xa=function(te){var Se=te.scrollWindow,He=te.scrollDroppable,at=D(Se),Et=D(He),It=null,Nt=function(cr){It||de(!1);var Cr=It,Pr=Cr.shouldUseTimeDampening,an=Cr.dragStartTime;_o({state:cr,scrollWindow:at,scrollDroppable:Et,dragStartTime:an,shouldUseTimeDampening:Pr})},vr=function(cr){mi(),It&&de(!1);var Cr=Date.now(),Pr=!1,an=function(){Pr=!0};_o({state:cr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:an,scrollDroppable:an}),It={dragStartTime:Cr,shouldUseTimeDampening:Pr},Wi(),Pr&&Nt(cr)},Ir=function(){if(!It)return;at.cancel(),Et.cancel(),It=null};return{start:vr,stop:Ir,scroll:Nt}},Qo=function(te){var Se=te.move,He=te.scrollDroppable,at=te.scrollWindow,Et=function(mr,cr){var Cr=xe(mr.current.client.selection,cr);Se({client:Cr})},It=function(mr,cr){if(!Da(mr,cr))return cr;var Cr=Fo(mr,cr);if(!Cr)return He(mr.descriptor.id,cr),null;var Pr=oe(cr,Cr);He(mr.descriptor.id,Pr);var an=oe(cr,Pr);return an},Nt=function(mr,cr,Cr){if(!mr)return Cr;if(!Yo(cr,Cr))return Cr;var Pr=wo(cr,Cr);if(!Pr)return at(Cr),null;var an=oe(Cr,Pr);at(an);var Kn=oe(Cr,an);return Kn},vr=function(mr){var cr=mr.scrollJumpRequest;if(!cr)return;var Cr=En(mr.impact);Cr||de(!1);var Pr=It(mr.dimensions.droppables[Cr],cr);if(!Pr)return;var an=mr.viewport,Kn=Nt(mr.isWindowScrollAllowed,an,Pr);if(!Kn)return;Et(mr,Kn)};return vr},il=function(te){var Se=te.scrollDroppable,He=te.scrollWindow,at=te.move,Et=Xa({scrollWindow:He,scrollDroppable:Se}),It=Qo({move:at,scrollWindow:He,scrollDroppable:Se}),Nt=function(mr){if(mr.phase!=="DRAGGING")return;if(mr.movementMode==="FLUID"){Et.scroll(mr);return}if(!mr.scrollJumpRequest)return;It(mr)},vr={scroll:Nt,start:Et.start,stop:Et.stop};return vr},Os="data-rbd",as=function(){var De=Os+"-drag-handle";return{base:De,draggableId:De+"-draggable-id",contextId:De+"-context-id"}}(),xs=function(){var De=Os+"-draggable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),Ls=function(){var De=Os+"-droppable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),ys={contextId:Os+"-scroll-container-context-id"},Ho=function(te){return function(Se){return"["+Se+'="'+te+'"]'}},vo=function(te,Se){return te.map(function(He){var at=He.styles[Se];return at?He.selector+" { "+at+" }":""}).join(" ")},es="pointer-events: none;",Ko=function(te){var Se=Ho(te),He=function(){var vr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:Se(as.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:vr,dragging:es,dropAnimating:vr}}}(),at=function(){var vr=`
|
|
|
transition: `+jn.outOfTheWay+`;
|
|
|
`;return{selector:Se(xs.contextId),styles:{dragging:vr,dropAnimating:vr,userCancel:vr}}}(),Et={selector:Se(Ls.contextId),styles:{always:"overflow-anchor: none;"}},It={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;
|
|
|
`}},Nt=[at,He,Et,It];return{always:vo(Nt,"always"),resting:vo(Nt,"resting"),dragging:vo(Nt,"dragging"),dropAnimating:vo(Nt,"dropAnimating"),userCancel:vo(Nt,"userCancel")}},Ro=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?I.useLayoutEffect:I.useEffect,Vr=function(){var te=document.querySelector("head");return te||de(!1),te},bi=function(te){var Se=document.createElement("style");return te&&Se.setAttribute("nonce",te),Se.type="text/css",Se};function Qs(De,te){var Se=r(function(){return Ko(De)},[De]),He=Object(I.useRef)(null),at=Object(I.useRef)(null),Et=i(O(function(cr){var Cr=at.current;Cr||de(!1),Cr.textContent=cr}),[]),It=i(function(cr){var Cr=He.current;Cr||de(!1),Cr.textContent=cr},[]);Ro(function(){!He.current&&!at.current||de(!1);var cr=bi(te),Cr=bi(te);return He.current=cr,at.current=Cr,cr.setAttribute(Os+"-always",De),Cr.setAttribute(Os+"-dynamic",De),Vr().appendChild(cr),Vr().appendChild(Cr),It(Se.always),Et(Se.resting),function(){var Pr=function(Kn){var ni=Kn.current;ni||de(!1),Vr().removeChild(ni),Kn.current=null};Pr(He),Pr(at)}},[te,It,Et,Se.always,Se.resting,De]);var Nt=i(function(){return Et(Se.dragging)},[Et,Se.dragging]),vr=i(function(cr){if(cr==="DROP"){Et(Se.dropAnimating);return}Et(Se.userCancel)},[Et,Se.dropAnimating,Se.userCancel]),Ir=i(function(){if(!at.current)return;Et(Se.resting)},[Et,Se.resting]),mr=r(function(){return{dragging:Nt,dropping:vr,resting:Ir}},[Nt,vr,Ir]);return mr}var Ns=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function js(De){return De instanceof Ns(De).HTMLElement}function so(De,te){var Se="["+as.contextId+'="'+De+'"]',He=Rt(document.querySelectorAll(Se));if(!He.length)return null;var at=me(He,function(Et){return Et.getAttribute(as.draggableId)===te});return at&&js(at)?at:null}function Ao(De){var te=Object(I.useRef)({}),Se=Object(I.useRef)(null),He=Object(I.useRef)(null),at=Object(I.useRef)(!1),Et=i(function(Cr,Pr){var an={id:Cr,focus:Pr};return te.current[Cr]=an,function(){var ni=te.current,Oi=ni[Cr];Oi!==an&&delete ni[Cr]}},[]),It=i(function(Cr){var Pr=so(De,Cr);Pr&&Pr!==document.activeElement&&Pr.focus()},[De]),Nt=i(function(Cr,Pr){Se.current===Cr&&(Se.current=Pr)},[]),vr=i(function(){if(He.current)return;if(!at.current)return;He.current=requestAnimationFrame(function(){He.current=null;var Cr=Se.current;Cr&&It(Cr)})},[It]),Ir=i(function(Cr){Se.current=null;var Pr=document.activeElement;if(!Pr)return;if(Pr.getAttribute(as.draggableId)!==Cr)return;Se.current=Cr},[]);Ro(function(){return at.current=!0,function(){at.current=!1;var Cr=He.current;Cr&&cancelAnimationFrame(Cr)}},[]);var mr=r(function(){return{register:Et,tryRecordFocus:Ir,tryRestoreFocusRecorded:vr,tryShiftRecord:Nt}},[Et,Ir,vr,Nt]);return mr}function Jo(){var De={draggables:{},droppables:{}},te=[];function Se(cr){return te.push(cr),function(){var Pr=te.indexOf(cr);if(Pr===-1)return;te.splice(Pr,1)}}function He(cr){te.length&&te.forEach(function(Cr){return Cr(cr)})}function at(cr){return De.draggables[cr]||null}function Et(cr){var Cr=at(cr);return Cr||de(!1),Cr}var It={register:function(Cr){De.draggables[Cr.descriptor.id]=Cr,He({type:"ADDITION",value:Cr})},update:function(Cr,Pr){var an=De.draggables[Pr.descriptor.id];if(!an)return;if(an.uniqueId!==Cr.uniqueId)return;delete De.draggables[Pr.descriptor.id],De.draggables[Cr.descriptor.id]=Cr},unregister:function(Cr){var Pr=Cr.descriptor.id,an=at(Pr);if(!an)return;if(Cr.uniqueId!==an.uniqueId)return;delete De.draggables[Pr],He({type:"REMOVAL",value:Cr})},getById:Et,findById:at,exists:function(Cr){return Boolean(at(Cr))},getAllByType:function(Cr){return bt(De.draggables).filter(function(Pr){return Pr.descriptor.type===Cr})}};function Nt(cr){return De.droppables[cr]||null}function vr(cr){var Cr=Nt(cr);return Cr||de(!1),Cr}var Ir={register:function(Cr){De.droppables[Cr.descriptor.id]=Cr},unregister:function(Cr){var Pr=Nt(Cr.descriptor.id);if(!Pr)return;if(Cr.uniqueId!==Pr.uniqueId)return;delete De.droppables[Cr.descriptor.id]},getById:vr,findById:Nt,exists:function(Cr){return Boolean(Nt(Cr))},getAllByType:function(Cr){return bt(De.droppables).filter(function(Pr){return Pr.descriptor.type===Cr})}};function mr(){De.draggables={},De.droppables={},te.length=0}return{draggable:It,droppable:Ir,subscribe:Se,clean:mr}}function Uo(){var De=r(Jo,[]);return Object(I.useEffect)(function(){return function(){requestAnimationFrame(De.clean)}},[De]),De}var bs=E.a.createContext(null),ms=function(){var te=document.body;return te||de(!1),te},gs={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ul=function(te){return"rbd-announcement-"+te};function Ms(De){var te=r(function(){return ul(De)},[De]),Se=Object(I.useRef)(null);Object(I.useEffect)(function(){var Et=document.createElement("div");return Se.current=Et,Et.id=te,Et.setAttribute("aria-live","assertive"),Et.setAttribute("aria-atomic","true"),Object(g.a)(Et.style,gs),ms().appendChild(Et),function(){setTimeout(function(){var vr=ms();vr.contains(Et)&&vr.removeChild(Et),Et===Se.current&&(Se.current=null)})}},[te]);var He=i(function(at){var Et=Se.current;if(Et){Et.textContent=at;return}},[]);return He}var Js=0,Hs={separator:"::"};function Go(){Js=0}function Ps(De,te){return te===void 0&&(te=Hs),r(function(){return""+De+te.separator+Js++},[te.separator,De])}function St(De){var te=De.contextId,Se=De.uniqueId;return"rbd-hidden-text-"+te+"-"+Se}function Mt(De){var te=De.contextId,Se=De.text,He=Ps("hidden-text",{separator:"-"}),at=r(function(){return St({contextId:te,uniqueId:He})},[He,te]);return Object(I.useEffect)(function(){var It=document.createElement("div");return It.id=at,It.textContent=Se,It.style.display="none",ms().appendChild(It),function(){var vr=ms();vr.contains(It)&&vr.removeChild(It)}},[at,Se]),at}var tn=E.a.createContext(null),In={react:"^16.8.5","react-dom":"^16.8.5"},mt=/(\d+)\.(\d+)\.(\d+)/,ne=function(te){var Se=mt.exec(te);Se!=null||de(!1);var He=Number(Se[1]),at=Number(Se[2]),Et=Number(Se[3]);return{major:He,minor:at,patch:Et,raw:te}},Ae=function(te,Se){return Se.major>te.major?!0:Se.major<te.major?!1:Se.minor>te.minor?!0:Se.minor<te.minor?!1:Se.patch>=te.patch},we=function(te,Se){var He=ne(te),at=ne(Se);if(Ae(He,at))return},Be=`
|
|
|
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
|
|
|
`,dt=function(te){var Se=te.doctype;if(!Se)return;Se.name.toLowerCase()!=="html",Se.publicId!==""};function Ot(De){}function br(De,te){Ot(function(){Object(I.useEffect)(function(){try{De()}catch(Se){J(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+Se.message+`
|
|
|
`)}},te)})}function Lr(){br(function(){we(In.react,E.a.version),dt(document)},[])}function $r(De){var te=Object(I.useRef)(De);return Object(I.useEffect)(function(){te.current=De}),te}function xn(){var De=null;function te(){return Boolean(De)}function Se(It){return It===De}function He(It){De&&de(!1);var Nt={abandon:It};return De=Nt,Nt}function at(){De||de(!1),De=null}function Et(){De&&(De.abandon(),at())}return{isClaimed:te,isActive:Se,claim:He,release:at,tryAbandon:Et}}var Wn=9,si=13,Si=27,Vi=32,oa=33,xa=34,eo=35,to=36,io=37,Oo=38,yo=39,Mo=40,za,So=(za={},za[si]=!0,za[Wn]=!0,za),os=function(te){So[te.keyCode]&&te.preventDefault()},ns=function(){var De="visibilitychange";if(typeof document=="undefined")return De;var te=[De,"ms"+De,"webkit"+De,"moz"+De,"o"+De],Se=me(te,function(He){return"on"+He in document});return Se||De}(),Io=0,Xo=5;function Ds(De,te){return Math.abs(te.x-De.x)>=Xo||Math.abs(te.y-De.y)>=Xo}var Es={type:"IDLE"};function Wo(De){var te=De.cancel,Se=De.completed,He=De.getPhase,at=De.setPhase;return[{eventName:"mousemove",fn:function(It){var Nt=It.button,vr=It.clientX,Ir=It.clientY;if(Nt!==Io)return;var mr={x:vr,y:Ir},cr=He();if(cr.type==="DRAGGING"){It.preventDefault(),cr.actions.move(mr);return}cr.type==="PENDING"||de(!1);var Cr=cr.point;if(!Ds(Cr,mr))return;It.preventDefault();var Pr=cr.actions.fluidLift(mr);at({type:"DRAGGING",actions:Pr})}},{eventName:"mouseup",fn:function(It){var Nt=He();if(Nt.type!=="DRAGGING"){te();return}It.preventDefault(),Nt.actions.drop({shouldBlockNextClick:!0}),Se()}},{eventName:"mousedown",fn:function(It){He().type==="DRAGGING"&&It.preventDefault(),te()}},{eventName:"keydown",fn:function(It){var Nt=He();if(Nt.type==="PENDING"){te();return}if(It.keyCode===Si){It.preventDefault(),te();return}os(It)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){He().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(It){var Nt=He();if(Nt.type!=="IDLE"||de(!1),Nt.actions.shouldRespectForcePress()){te();return}It.preventDefault()}},{eventName:ns,fn:te}]}function ws(De){var te=Object(I.useRef)(Es),Se=Object(I.useRef)(se),He=r(function(){return{eventName:"mousedown",fn:function(cr){if(cr.defaultPrevented)return;if(cr.button!==Io)return;if(cr.ctrlKey||cr.metaKey||cr.shiftKey||cr.altKey)return;var Cr=De.findClosestDraggableId(cr);if(!Cr)return;var Pr=De.tryGetLock(Cr,It,{sourceEvent:cr});if(!Pr)return;cr.preventDefault();var an={x:cr.clientX,y:cr.clientY};Se.current(),Ir(Pr,an)}}},[De]),at=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(cr){if(cr.defaultPrevented)return;var Cr=De.findClosestDraggableId(cr);if(!Cr)return;var Pr=De.findOptionsForDraggable(Cr);if(!Pr)return;if(Pr.shouldRespectForcePress)return;if(!De.canGetLock(Cr))return;cr.preventDefault()}}},[De]),Et=i(function(){var cr={passive:!1,capture:!0};Se.current=ae(window,[at,He],cr)},[at,He]),It=i(function(){var mr=te.current;if(mr.type==="IDLE")return;te.current=Es,Se.current(),Et()},[Et]),Nt=i(function(){var mr=te.current;It(),mr.type==="DRAGGING"&&mr.actions.cancel({shouldBlockNextClick:!0}),mr.type==="PENDING"&&mr.actions.abort()},[It]),vr=i(function(){var cr={capture:!0,passive:!1},Cr=Wo({cancel:Nt,completed:It,getPhase:function(){return te.current},setPhase:function(an){te.current=an}});Se.current=ae(window,Cr,cr)},[Nt,It]),Ir=i(function(cr,Cr){te.current.type==="IDLE"||de(!1),te.current={type:"PENDING",point:Cr,actions:cr},vr()},[vr]);Ro(function(){return Et(),function(){Se.current()}},[Et])}var ds;function yl(){}var bl=(ds={},ds[xa]=!0,ds[oa]=!0,ds[to]=!0,ds[eo]=!0,ds);function Cs(De,te){function Se(){te(),De.cancel()}function He(){te(),De.drop()}return[{eventName:"keydown",fn:function(Et){if(Et.keyCode===Si){Et.preventDefault(),Se();return}if(Et.keyCode===Vi){Et.preventDefault(),He();return}if(Et.keyCode===Mo){Et.preventDefault(),De.moveDown();return}if(Et.keyCode===Oo){Et.preventDefault(),De.moveUp();return}if(Et.keyCode===yo){Et.preventDefault(),De.moveRight();return}if(Et.keyCode===io){Et.preventDefault(),De.moveLeft();return}if(bl[Et.keyCode]){Et.preventDefault();return}os(Et)}},{eventName:"mousedown",fn:Se},{eventName:"mouseup",fn:Se},{eventName:"click",fn:Se},{eventName:"touchstart",fn:Se},{eventName:"resize",fn:Se},{eventName:"wheel",fn:Se,options:{passive:!0}},{eventName:ns,fn:Se}]}function Lo(De){var te=Object(I.useRef)(yl),Se=r(function(){return{eventName:"keydown",fn:function(Et){if(Et.defaultPrevented)return;if(Et.keyCode!==Vi)return;var It=De.findClosestDraggableId(Et);if(!It)return;var Nt=De.tryGetLock(It,mr,{sourceEvent:Et});if(!Nt)return;Et.preventDefault();var vr=!0,Ir=Nt.snapLift();te.current();function mr(){vr||de(!1),vr=!1,te.current(),He()}te.current=ae(window,Cs(Ir,mr),{capture:!0,passive:!1})}}},[De]),He=i(function(){var Et={passive:!1,capture:!0};te.current=ae(window,[Se],Et)},[Se]);Ro(function(){return He(),function(){te.current()}},[He])}var ra={type:"IDLE"},tl=120,Ks=.15;function Ws(De){var te=De.cancel,Se=De.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(at){at.preventDefault()}},{eventName:"keydown",fn:function(at){if(Se().type!=="DRAGGING"){te();return}at.keyCode===Si&&at.preventDefault(),te()}},{eventName:ns,fn:te}]}function hs(De){var te=De.cancel,Se=De.completed,He=De.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Et){var It=He();if(It.type!=="DRAGGING"){te();return}It.hasMoved=!0;var Nt=Et.touches[0],vr=Nt.clientX,Ir=Nt.clientY,mr={x:vr,y:Ir};Et.preventDefault(),It.actions.move(mr)}},{eventName:"touchend",fn:function(Et){var It=He();if(It.type!=="DRAGGING"){te();return}Et.preventDefault(),It.actions.drop({shouldBlockNextClick:!0}),Se()}},{eventName:"touchcancel",fn:function(Et){if(He().type!=="DRAGGING"){te();return}Et.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(Et){var It=He();It.type!=="IDLE"||de(!1);var Nt=Et.touches[0];if(!Nt)return;var vr=Nt.force>=Ks;if(!vr)return;var Ir=It.actions.shouldRespectForcePress();if(It.type==="PENDING"){Ir&&te();return}if(Ir){if(It.hasMoved){Et.preventDefault();return}te();return}Et.preventDefault()}},{eventName:ns,fn:te}]}function ks(De){var te=Object(I.useRef)(ra),Se=Object(I.useRef)(se),He=i(function(){return te.current},[]),at=i(function(Pr){te.current=Pr},[]),Et=r(function(){return{eventName:"touchstart",fn:function(Pr){if(Pr.defaultPrevented)return;var an=De.findClosestDraggableId(Pr);if(!an)return;var Kn=De.tryGetLock(an,Nt,{sourceEvent:Pr});if(!Kn)return;var ni=Pr.touches[0],Oi=ni.clientX,hi=ni.clientY,va={x:Oi,y:hi};Se.current(),cr(Kn,va)}}},[De]),It=i(function(){var Pr={capture:!0,passive:!1};Se.current=ae(window,[Et],Pr)},[Et]),Nt=i(function(){var Cr=te.current;if(Cr.type==="IDLE")return;Cr.type==="PENDING"&&clearTimeout(Cr.longPressTimerId),at(ra),Se.current(),It()},[It,at]),vr=i(function(){var Cr=te.current;Nt(),Cr.type==="DRAGGING"&&Cr.actions.cancel({shouldBlockNextClick:!0}),Cr.type==="PENDING"&&Cr.actions.abort()},[Nt]),Ir=i(function(){var Pr={capture:!0,passive:!1},an={cancel:vr,completed:Nt,getPhase:He},Kn=ae(window,hs(an),Pr),ni=ae(window,Ws(an),Pr);Se.current=function(){Kn(),ni()}},[vr,He,Nt]),mr=i(function(){var Pr=He();Pr.type==="PENDING"||de(!1);var an=Pr.actions.fluidLift(Pr.point);at({type:"DRAGGING",actions:an,hasMoved:!1})},[He,at]),cr=i(function(Pr,an){He().type==="IDLE"||de(!1);var Kn=setTimeout(mr,tl);at({type:"PENDING",point:an,actions:Pr,longPressTimerId:Kn}),Ir()},[Ir,He,at,mr]);Ro(function(){return It(),function(){Se.current();var an=He();an.type==="PENDING"&&(clearTimeout(an.longPressTimerId),at(ra))}},[He,It,at]),Ro(function(){var Pr=ae(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Pr},[])}function al(De){Ot(function(){var te=$r(De);br(function(){te.current.length===De.length||de(!1)})})}var Bs={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Xs(De,te){if(te==null)return!1;var Se=Boolean(Bs[te.tagName.toLowerCase()]);if(Se)return!0;var He=te.getAttribute("contenteditable");return He==="true"||He===""?!0:te===De?!1:Xs(De,te.parentElement)}function zs(De,te){var Se=te.target;return js(Se)?Xs(De,Se):!1}var Ja=function(te){return t(te.getBoundingClientRect()).center};function ma(De){return De instanceof Ns(De).Element}var Ba=function(){var De="matches";if(typeof document=="undefined")return De;var te=[De,"msMatchesSelector","webkitMatchesSelector"],Se=me(te,function(He){return He in Element.prototype});return Se||De}();function ao(De,te){return De==null?null:De[Ba](te)?De:ao(De.parentElement,te)}function Zo(De,te){return De.closest?De.closest(te):ao(De,te)}function Vs(De){return"["+as.contextId+'="'+De+'"]'}function vs(De,te){var Se=te.target;if(!ma(Se))return null;var He=Vs(De),at=Zo(Se,He);return at&&js(at)?at:null}function Ts(De,te){var Se=vs(De,te);return Se?Se.getAttribute(as.draggableId):null}function No(De,te){var Se="["+xs.contextId+'="'+De+'"]',He=Rt(document.querySelectorAll(Se)),at=me(He,function(Et){return Et.getAttribute(xs.id)===te});return at&&js(at)?at:null}function To(De){De.preventDefault()}function ts(De){var te=De.expected,Se=De.phase,He=De.isLockActive,at=De.shouldWarn;return He()?!(te!==Se):!1}function Eo(De){var te=De.lockAPI,Se=De.store,He=De.registry,at=De.draggableId;if(te.isClaimed())return!1;var Et=He.draggable.findById(at);return Et&&Et.options.isEnabled?!!ho(Se.getState(),at):!1}function Ys(De){var te=De.lockAPI,Se=De.contextId,He=De.store,at=De.registry,Et=De.draggableId,It=De.forceSensorStop,Nt=De.sourceEvent,vr=Eo({lockAPI:te,store:He,registry:at,draggableId:Et});if(!vr)return null;var Ir=at.draggable.getById(Et),mr=No(Se,Ir.descriptor.id);if(!mr)return null;if(Nt&&!Ir.options.canDragInteractiveElements&&zs(mr,Nt))return null;var cr=te.claim(It||se),Cr="PRE_DRAG";function Pr(){return Ir.options.shouldRespectForcePress}function an(){return te.isActive(cr)}function Kn(ba,Ia){ts({expected:ba,phase:Cr,isLockActive:an,shouldWarn:!0})&&He.dispatch(Ia())}var ni=Kn.bind(null,"DRAGGING");function Oi(ba){function Ia(){te.release(),Cr="COMPLETED"}Cr!=="PRE_DRAG"&&(Ia(),Cr==="PRE_DRAG"||de(!1)),He.dispatch(Xr(ba.liftActionArgs)),Cr="DRAGGING";function lo(P,W){if(W===void 0&&(W={shouldBlockNextClick:!1}),ba.cleanup(),W.shouldBlockNextClick){var q=ae(window,[{eventName:"click",fn:To,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(q)}Ia(),He.dispatch(_n({reason:P}))}return Object(g.a)({isActive:function(){return ts({expected:"DRAGGING",phase:Cr,isLockActive:an,shouldWarn:!1})},shouldRespectForcePress:Pr,drop:function(W){return lo("DROP",W)},cancel:function(W){return lo("CANCEL",W)}},ba.actions)}function hi(ba){var Ia=D(function(P){ni(function(){return Or({client:P})})}),lo=Oi({liftActionArgs:{id:Et,clientSelection:ba,movementMode:"FLUID"},cleanup:function(){return Ia.cancel()},actions:{move:Ia}});return Object(g.a)({},lo,{move:Ia})}function va(){var ba={moveUp:function(){return ni(nn)},moveRight:function(){return ni(On)},moveDown:function(){return ni(wn)},moveLeft:function(){return ni(Rn)}};return Oi({liftActionArgs:{id:Et,clientSelection:Ja(mr),movementMode:"SNAP"},cleanup:se,actions:ba})}function Ki(){var ba=ts({expected:"PRE_DRAG",phase:Cr,isLockActive:an,shouldWarn:!0});ba&&te.release()}var La={isActive:function(){return ts({expected:"PRE_DRAG",phase:Cr,isLockActive:an,shouldWarn:!1})},shouldRespectForcePress:Pr,fluidLift:hi,snapLift:va,abort:Ki};return La}var Wl=[ws,Lo,ks];function wl(De){var te=De.contextId,Se=De.store,He=De.registry,at=De.customSensors,Et=De.enableDefaultSensors,It=[].concat(Et?Wl:[],at||[]),Nt=Object(I.useState)(function(){return xn()})[0],vr=i(function(hi,va){hi.isDragging&&!va.isDragging&&Nt.tryAbandon()},[Nt]);Ro(function(){var hi=Se.getState(),va=Se.subscribe(function(){var Ki=Se.getState();vr(hi,Ki),hi=Ki});return va},[Nt,Se,vr]),Ro(function(){return Nt.tryAbandon},[Nt.tryAbandon]);var Ir=i(function(Oi){return Eo({lockAPI:Nt,registry:He,store:Se,draggableId:Oi})},[Nt,He,Se]),mr=i(function(Oi,hi,va){return Ys({lockAPI:Nt,registry:He,contextId:te,store:Se,draggableId:Oi,forceSensorStop:hi,sourceEvent:va&&va.sourceEvent?va.sourceEvent:null})},[te,Nt,He,Se]),cr=i(function(Oi){return Ts(te,Oi)},[te]),Cr=i(function(Oi){var hi=He.draggable.findById(Oi);return hi?hi.options:null},[He.draggable]),Pr=i(function(){if(!Nt.isClaimed())return;Nt.tryAbandon(),Se.getState().phase!=="IDLE"&&Se.dispatch(Nn())},[Nt,Se]),an=i(Nt.isClaimed,[Nt]),Kn=r(function(){return{canGetLock:Ir,tryGetLock:mr,findClosestDraggableId:cr,findOptionsForDraggable:Cr,tryReleaseLock:Pr,isLockClaimed:an}},[Ir,mr,cr,Cr,Pr,an]);al(It);for(var ni=0;ni<It.length;ni++)It[ni](Kn)}var Zl=function(te){return{onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragEnd:te.onDragEnd,onDragUpdate:te.onDragUpdate}};function cl(De){return De.current||de(!1),De.current}function Ol(De){var te=De.contextId,Se=De.setCallbacks,He=De.sensors,at=De.nonce,Et=De.dragHandleUsageInstructions,It=Object(I.useRef)(null);Lr();var Nt=$r(De),vr=i(function(){return Zl(Nt.current)},[Nt]),Ir=Ms(te),mr=Mt({contextId:te,text:Et}),cr=Qs(te,at),Cr=i(function(P){cl(It).dispatch(P)},[]),Pr=r(function(){return Object(S.b)({publishWhileDragging:fn,updateDroppableScroll:_t,updateDroppableIsEnabled:lr,updateDroppableIsCombineEnabled:rr,collectionStarting:Xe},Cr)},[Cr]),an=Uo(),Kn=r(function(){return aa(an,Pr)},[an,Pr]),ni=r(function(){return il(Object(g.a)({scrollWindow:Ua,scrollDroppable:Kn.scrollDroppable},Object(S.b)({move:Or},Cr)))},[Kn.scrollDroppable,Cr]),Oi=Ao(te),hi=r(function(){return la({announce:Ir,autoScroller:ni,dimensionMarshal:Kn,focusMarshal:Oi,getResponders:vr,styleMarshal:cr})},[Ir,ni,Kn,Oi,vr,cr]);It.current=hi;var va=i(function(){var P=cl(It),W=P.getState();W.phase!=="IDLE"&&P.dispatch(Nn())},[]),Ki=i(function(){var P=cl(It).getState();return P.isDragging||P.phase==="DROP_ANIMATING"},[]),La=r(function(){return{isDragging:Ki,tryAbort:va}},[Ki,va]);Se(La);var ba=i(function(P){return ho(cl(It).getState(),P)},[]),Ia=i(function(){return oi(cl(It).getState())},[]),lo=r(function(){return{marshal:Kn,focus:Oi,contextId:te,canLift:ba,isMovementAllowed:Ia,dragHandleUsageInstructionsId:mr,registry:an}},[te,Kn,mr,Oi,ba,Ia,an]);return wl({contextId:te,store:hi,registry:an,customSensors:He,enableDefaultSensors:De.enableDefaultSensors!==!1}),Object(I.useEffect)(function(){return va},[va]),E.a.createElement(tn.Provider,{value:lo},E.a.createElement(m.a,{context:bs,store:hi},De.children))}var Bl=0;function ku(){Bl=0}function wu(){return r(function(){return""+Bl++},[])}function Bu(){ku(),Go()}function Fu(De){var te=wu(),Se=De.dragHandleUsageInstructions||ue.dragHandleUsageInstructions;return E.a.createElement(Le,null,function(He){return E.a.createElement(Ol,{nonce:De.nonce,contextId:te,setCallbacks:He,dragHandleUsageInstructions:Se,enableDefaultSensors:De.enableDefaultSensors,sensors:De.sensors,onBeforeCapture:De.onBeforeCapture,onBeforeDragStart:De.onBeforeDragStart,onDragStart:De.onDragStart,onDragUpdate:De.onDragUpdate,onDragEnd:De.onDragEnd},De.children)})}var Ll=function(te){return function(Se){return te===Se}},Zs=Ll("scroll"),$s=Ll("auto"),ol=Ll("visible"),zl=function(te,Se){return Se(te.overflowX)||Se(te.overflowY)},$l=function(te,Se){return Se(te.overflowX)&&Se(te.overflowY)},lu=function(te){var Se=window.getComputedStyle(te),He={overflowX:Se.overflowX,overflowY:Se.overflowY};return zl(He,Zs)||zl(He,$s)},Vl=function(){return!1;var te,Se;if(!lu(te))return!1;var He,at;if($l(at,ol))return!1},Nl=function De(te){return te==null?null:te===document.body?Vl()?te:null:te===document.documentElement?null:lu(te)?te:De(te.parentElement)},uu=function(te){if(!te)return;var Se=Nl(te.parentElement);if(!Se)return},ql=function(te){return{x:te.scrollLeft,y:te.scrollTop}},cu=function De(te){if(!te)return!1;var Se=window.getComputedStyle(te);return Se.position==="fixed"?!0:De(te.parentElement)},gl=function(te){var Se=Nl(te),He=cu(te);return{closestScrollable:Se,isFixedOnPage:He}},Sl=function(te){var Se=te.descriptor,He=te.isEnabled,at=te.isCombineEnabled,Et=te.isFixedOnPage,It=te.direction,Nt=te.client,vr=te.page,Ir=te.closest,mr=function(){if(!Ir)return null;var an=Ir.scrollSize,Kn=Ir.client,ni=Aa({scrollHeight:an.scrollHeight,scrollWidth:an.scrollWidth,height:Kn.paddingBox.height,width:Kn.paddingBox.width});return{pageMarginBox:Ir.page.marginBox,frameClient:Kn,scrollSize:an,shouldClipSubject:Ir.shouldClipSubject,scroll:{initial:Ir.scroll,current:Ir.scroll,max:ni,diff:{value:_e,displacement:_e}}}}(),cr=It==="vertical"?Ln:$e,Cr=Je({page:vr,withPlaceholder:null,axis:cr,frame:mr}),Pr={descriptor:Se,isCombineEnabled:at,isFixedOnPage:Et,axis:cr,isEnabled:He,client:Nt,page:vr,frame:mr,subject:Cr};return Pr},Dl=function(te,Se){var He=x(te);if(!Se)return He;if(te!==Se)return He;var at=He.paddingBox.top-Se.scrollTop,Et=He.paddingBox.left-Se.scrollLeft,It=at+Se.scrollHeight,Nt=Et+Se.scrollWidth,vr={top:at,right:Nt,bottom:It,left:Et},Ir=s(vr,He.border),mr=u({borderBox:Ir,margin:He.margin,border:He.border,padding:He.padding});return mr},eu=function(te){var Se=te.ref,He=te.descriptor,at=te.env,Et=te.windowScroll,It=te.direction,Nt=te.isDropDisabled,vr=te.isCombineEnabled,Ir=te.shouldClipSubject,mr=at.closestScrollable,cr=Dl(Se,mr),Cr=A(cr,Et),Pr=function(){if(!mr)return null;var Kn=x(mr),ni={scrollHeight:mr.scrollHeight,scrollWidth:mr.scrollWidth};return{client:Kn,page:A(Kn,Et),scroll:ql(mr),scrollSize:ni,shouldClipSubject:Ir}}(),an=Sl({descriptor:He,isEnabled:!Nt,isCombineEnabled:vr,isFixedOnPage:at.isFixedOnPage,direction:It,client:cr,page:Cr,closest:Pr});return an},xl={passive:!1},Uu={passive:!0},dl=function(te){return te.shouldPublishImmediately?xl:Uu};function vl(De){var te=Object(I.useContext)(De);return te||de(!1),te}var tu=function(te){return te&&te.env.closestScrollable||null};function ju(De){var te=Object(I.useRef)(null),Se=vl(tn),He=Ps("droppable"),at=Se.registry,Et=Se.marshal,It=$r(De),Nt=r(function(){return{id:De.droppableId,type:De.type,mode:De.mode}},[De.droppableId,De.mode,De.type]),vr=Object(I.useRef)(Nt),Ir=r(function(){return O(function(Ki,La){te.current||de(!1);var ba={x:Ki,y:La};Et.updateDroppableScroll(Nt.id,ba)})},[Nt.id,Et]),mr=i(function(){var Ki=te.current;return!Ki||!Ki.env.closestScrollable?_e:ql(Ki.env.closestScrollable)},[]),cr=i(function(){var Ki=mr();Ir(Ki.x,Ki.y)},[mr,Ir]),Cr=r(function(){return D(cr)},[cr]),Pr=i(function(){var Ki=te.current,La=tu(Ki);Ki&&La||de(!1);var ba=Ki.scrollOptions;if(ba.shouldPublishImmediately){cr();return}Cr()},[Cr,cr]),an=i(function(Ki,La){te.current&&de(!1);var ba=It.current,Ia=ba.getDroppableRef();Ia||de(!1);var lo=gl(Ia),P={ref:Ia,descriptor:Nt,env:lo,scrollOptions:La};te.current=P;var W=eu({ref:Ia,descriptor:Nt,env:lo,windowScroll:Ki,direction:ba.direction,isDropDisabled:ba.isDropDisabled,isCombineEnabled:ba.isCombineEnabled,shouldClipSubject:!ba.ignoreContainerClipping}),q=lo.closestScrollable;return q&&(q.setAttribute(ys.contextId,Se.contextId),q.addEventListener("scroll",Pr,dl(P.scrollOptions))),W},[Se.contextId,Nt,Pr,It]),Kn=i(function(){var Ki=te.current,La=tu(Ki);return Ki&&La||de(!1),ql(La)},[]),ni=i(function(){var Ki=te.current;Ki||de(!1);var La=tu(Ki);if(te.current=null,!La)return;Cr.cancel(),La.removeAttribute(ys.contextId),La.removeEventListener("scroll",Pr,dl(Ki.scrollOptions))},[Pr,Cr]),Oi=i(function(Ki){var La=te.current;La||de(!1);var ba=tu(La);ba||de(!1),ba.scrollTop+=Ki.y,ba.scrollLeft+=Ki.x},[]),hi=r(function(){return{getDimensionAndWatchScroll:an,getScrollWhileDragging:Kn,dragStopped:ni,scroll:Oi}},[ni,an,Kn,Oi]),va=r(function(){return{uniqueId:He,descriptor:Nt,callbacks:hi}},[hi,Nt,He]);Ro(function(){return vr.current=va.descriptor,at.droppable.register(va),function(){te.current&&ni(),at.droppable.unregister(va)}},[hi,Nt,ni,va,Et,at.droppable]),Ro(function(){if(!te.current)return;Et.updateDroppableIsEnabled(vr.current.id,!De.isDropDisabled)},[De.isDropDisabled,Et]),Ro(function(){if(!te.current)return;Et.updateDroppableIsCombineEnabled(vr.current.id,De.isCombineEnabled)},[De.isCombineEnabled,Et])}function du(){}var Rl={width:0,height:0,margin:xt},Ml=function(te){var Se=te.isAnimatingOpenOnMount,He=te.placeholder,at=te.animate;return Se||at==="close"?Rl:{height:He.client.borderBox.height,width:He.client.borderBox.width,margin:He.client.margin}},Fl=function(te){var Se=te.isAnimatingOpenOnMount,He=te.placeholder,at=te.animate,Et=Ml({isAnimatingOpenOnMount:Se,placeholder:He,animate:at});return{display:He.display,boxSizing:"border-box",width:Et.width,height:Et.height,marginTop:Et.margin.top,marginRight:Et.margin.right,marginBottom:Et.margin.bottom,marginLeft:Et.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:at!=="none"?jn.placeholder:null}};function Su(De){var te=Object(I.useRef)(null),Se=i(function(){if(!te.current)return;clearTimeout(te.current),te.current=null},[]),He=De.animate,at=De.onTransitionEnd,Et=De.onClose,It=De.contextId,Nt=Object(I.useState)(De.animate==="open"),vr=Nt[0],Ir=Nt[1];Object(I.useEffect)(function(){return vr?He!=="open"?(Se(),Ir(!1),du):te.current?du:(te.current=setTimeout(function(){te.current=null,Ir(!1)}),Se):du},[He,vr,Se]);var mr=i(function(Cr){if(Cr.propertyName!=="height")return;at(),He==="close"&&Et()},[He,Et,at]),cr=Fl({isAnimatingOpenOnMount:vr,animate:De.animate,placeholder:De.placeholder});return E.a.createElement(De.placeholder.tagName,{style:cr,"data-rbd-placeholder-context-id":It,onTransitionEnd:mr,ref:De.innerRef})}var xu=E.a.memo(Su),hu=E.a.createContext(null);function Ul(De){De&&js(De)||de(!1)}function fu(De){return typeof De=="boolean"}function ru(De,te){te.forEach(function(Se){return Se(De)})}var Eu=[function(te){var Se=te.props;Se.droppableId||de(!1),typeof Se.droppableId=="string"||de(!1)},function(te){var Se=te.props;fu(Se.isDropDisabled)||de(!1),fu(Se.isCombineEnabled)||de(!1),fu(Se.ignoreContainerClipping)||de(!1)},function(te){var Se=te.getDroppableRef;Ul(Se())}],fs=[function(te){var Se=te.props,He=te.getPlaceholderRef;if(!Se.placeholder)return;var at=He();if(at)return}],rl=[function(te){var Se=te.props;Se.renderClone||de(!1)},function(te){var Se=te.getPlaceholderRef;Se()&&de(!1)}];function El(De){br(function(){ru(De,Eu),De.props.mode==="standard"&&ru(De,fs),De.props.mode==="virtual"&&ru(De,rl)})}var nu=function(De){Object(T.a)(te,De);function te(){for(var He,at=arguments.length,Et=new Array(at),It=0;It<at;It++)Et[It]=arguments[It];return He=De.call.apply(De,[this].concat(Et))||this,He.state={isVisible:Boolean(He.props.on),data:He.props.on,animate:He.props.shouldAnimate&&He.props.on?"open":"none"},He.onClose=function(){if(He.state.animate!=="close")return;He.setState({isVisible:!1})},He}te.getDerivedStateFromProps=function(at,Et){return at.shouldAnimate?at.on?{isVisible:!0,data:at.on,animate:"open"}:Et.isVisible?{isVisible:!0,data:Et.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(at.on),data:at.on,animate:"none"}};var Se=te.prototype;return Se.render=function(){if(!this.state.isVisible)return null;var at={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(at)},te}(E.a.PureComponent),iu={dragging:5e3,dropAnimating:4500},Cl=function(te,Se){return Se?jn.drop(Se.duration):te?jn.snap:jn.fluid},pl=function(te,Se){return te?Se?Ei.opacity.drop:Ei.opacity.combining:null},Cu=function(te){return te.forceShouldAnimate!=null?te.forceShouldAnimate:te.mode==="SNAP"};function Hu(De){var te=De.dimension,Se=te.client,He=De.offset,at=De.combineWith,Et=De.dropping,It=Boolean(at),Nt=Cu(De),vr=Boolean(Et),Ir=vr?Hi.drop(He,It):Hi.moveTo(He),mr={position:"fixed",top:Se.marginBox.top,left:Se.marginBox.left,boxSizing:"border-box",width:Se.borderBox.width,height:Se.borderBox.height,transition:Cl(Nt,Et),transform:Ir,opacity:pl(It,vr),zIndex:vr?iu.dropAnimating:iu.dragging,pointerEvents:"none"};return mr}function Ku(De){return{transform:Hi.moveTo(De.offset),transition:De.shouldAnimateDisplacement?null:"none"}}function Tu(De){return De.type==="DRAGGING"?Hu(De):Ku(De)}function Iu(De,te,Se){Se===void 0&&(Se=_e);var He=window.getComputedStyle(te),at=te.getBoundingClientRect(),Et=y(at,He),It=A(Et,Se),Nt={client:Et,tagName:te.tagName.toLowerCase(),display:He.display},vr={x:Et.marginBox.width,y:Et.marginBox.height},Ir={descriptor:De,placeholder:Nt,displaceBy:vr,client:Et,page:It};return Ir}function Wu(De){var te=Ps("draggable"),Se=De.descriptor,He=De.registry,at=De.getDraggableRef,Et=De.canDragInteractiveElements,It=De.shouldRespectForcePress,Nt=De.isEnabled,vr=r(function(){return{canDragInteractiveElements:Et,shouldRespectForcePress:It,isEnabled:Nt}},[Et,Nt,It]),Ir=i(function(Pr){var an=at();return an||de(!1),Iu(Se,an,Pr)},[Se,at]),mr=r(function(){return{uniqueId:te,descriptor:Se,options:vr,getDimension:Ir}},[Se,Ir,vr,te]),cr=Object(I.useRef)(mr),Cr=Object(I.useRef)(!0);Ro(function(){return He.draggable.register(cr.current),function(){return He.draggable.unregister(cr.current)}},[He.draggable]),Ro(function(){if(Cr.current){Cr.current=!1;return}var Pr=cr.current;cr.current=mr,He.draggable.update(mr,Pr)},[mr,He.draggable])}function pu(De,te,Se){br(function(){function He(Et){return"Draggable[id: "+Et+"]: "}var at=De.draggableId;if(at||de(!1),typeof at=="string"||de(!1),ie(De.index)||de(!1),De.mapped.type==="DRAGGING")return;Ul(Se()),De.isEnabled&&(so(te,at)||de(!1))})}function Tl(De){Ot(function(){var te=Object(I.useRef)(De);br(function(){De===te.current||de(!1)},[De])})}function Il(De){De.preventDefault()}function Gl(De){var te=Object(I.useRef)(null),Se=i(function(P){te.current=P},[]),He=i(function(){return te.current},[]),at=vl(tn),Et=at.contextId,It=at.dragHandleUsageInstructionsId,Nt=at.registry,vr=vl(hu),Ir=vr.type,mr=vr.droppableId,cr=r(function(){return{id:De.draggableId,index:De.index,type:Ir,droppableId:mr}},[De.draggableId,De.index,Ir,mr]),Cr=De.children,Pr=De.draggableId,an=De.isEnabled,Kn=De.shouldRespectForcePress,ni=De.canDragInteractiveElements,Oi=De.isClone,hi=De.mapped,va=De.dropAnimationFinished;if(pu(De,Et,He),Tl(Oi),!Oi){var Ki=r(function(){return{descriptor:cr,registry:Nt,getDraggableRef:He,canDragInteractiveElements:ni,shouldRespectForcePress:Kn,isEnabled:an}},[cr,Nt,He,ni,Kn,an]);Wu(Ki)}var La=r(function(){return an?{tabIndex:0,role:"button","aria-describedby":It,"data-rbd-drag-handle-draggable-id":Pr,"data-rbd-drag-handle-context-id":Et,draggable:!1,onDragStart:Il}:null},[Et,It,Pr,an]),ba=i(function(P){if(hi.type!=="DRAGGING")return;if(!hi.dropping)return;if(P.propertyName!=="transform")return;va()},[va,hi]),Ia=r(function(){var P=Tu(hi),W=hi.type==="DRAGGING"&&hi.dropping?ba:null,q={innerRef:Se,draggableProps:{"data-rbd-draggable-context-id":Et,"data-rbd-draggable-id":Pr,style:P,onTransitionEnd:W},dragHandleProps:La};return q},[Et,La,Pr,hi,ba,Se]),lo=r(function(){return{draggableId:cr.id,type:cr.type,source:{index:cr.index,droppableId:cr.droppableId}}},[cr.droppableId,cr.id,cr.index,cr.type]);return Cr(Ia,hi.snapshot,lo)}var jl=function(te,Se){return te===Se},_u=function(te){var Se=te.combine,He=te.destination;return He?He.droppableId:Se?Se.droppableId:null},$u=function(te){return te.combine?te.combine.draggableId:null},zu=function(te){return te.at&&te.at.type==="COMBINE"?te.at.combine.draggableId:null};function qu(){var De=O(function(at,Et){return{x:at,y:Et}}),te=O(function(at,Et,It,Nt,vr){return{isDragging:!0,isClone:Et,isDropAnimating:Boolean(vr),dropAnimation:vr,mode:at,draggingOver:It,combineWith:Nt,combineTargetFor:null}}),Se=O(function(at,Et,It,Nt,vr,Ir,mr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:vr,combineWith:Ir,mode:Et,offset:at,dimension:It,forceShouldAnimate:mr,snapshot:te(Et,Nt,vr,Ir,null)}}}),He=function(Et,It){if(Et.isDragging){if(Et.critical.draggable.id!==It.draggableId)return null;var Nt=Et.current.client.offset,vr=Et.dimensions.draggables[It.draggableId],Ir=En(Et.impact),mr=zu(Et.impact),cr=Et.forceShouldAnimate;return Se(De(Nt.x,Nt.y),Et.movementMode,vr,It.isClone,Ir,mr,cr)}if(Et.phase==="DROP_ANIMATING"){var Cr=Et.completed;if(Cr.result.draggableId!==It.draggableId)return null;var Pr=It.isClone,an=Et.dimensions.draggables[It.draggableId],Kn=Cr.result,ni=Kn.mode,Oi=_u(Kn),hi=$u(Kn),va=Et.dropDuration,Ki={duration:va,curve:Ui.drop,moveTo:Et.newHomeClientOffset,opacity:hi?Ei.opacity.drop:null,scale:hi?Ei.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Et.newHomeClientOffset,dimension:an,dropping:Ki,draggingOver:Oi,combineWith:hi,mode:ni,forceShouldAnimate:null,snapshot:te(ni,Pr,Oi,hi,Ki)}}}return null};return He}function Xl(De){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:De,combineWith:null}}var mu={mapped:{type:"SECONDARY",offset:_e,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Xl(null)}};function ec(){var De=O(function(It,Nt){return{x:It,y:Nt}}),te=O(Xl),Se=O(function(It,Nt,vr){return Nt===void 0&&(Nt=null),{mapped:{type:"SECONDARY",offset:It,combineTargetFor:Nt,shouldAnimateDisplacement:vr,snapshot:te(Nt)}}}),He=function(Nt){return Nt?Se(_e,Nt,!0):null},at=function(Nt,vr,Ir,mr){var cr=Ir.displaced.visible[Nt],Cr=Boolean(mr.inVirtualList&&mr.effected[Nt]),Pr=nr(Ir),an=Pr&&Pr.draggableId===Nt?vr:null;if(!cr){if(!Cr)return He(an);if(Ir.displaced.invisible[Nt])return null;var Kn=Te(mr.displacedBy.point),ni=De(Kn.x,Kn.y);return Se(ni,an,!0)}if(Cr)return He(an);var Oi=Ir.displacedBy.point,hi=De(Oi.x,Oi.y);return Se(hi,an,cr.shouldAnimate)},Et=function(Nt,vr){if(Nt.isDragging)return Nt.critical.draggable.id===vr.draggableId?null:at(vr.draggableId,Nt.critical.draggable.id,Nt.impact,Nt.afterCritical);if(Nt.phase==="DROP_ANIMATING"){var Ir=Nt.completed;return Ir.result.draggableId===vr.draggableId?null:at(vr.draggableId,Ir.result.draggableId,Ir.impact,Ir.afterCritical)}return null};return Et}var Ou=function(){var te=qu(),Se=ec(),He=function(Et,It){return te(Et,It)||Se(Et,It)||mu};return He},au={dropAnimationFinished:Yn},gu=Object(m.c)(Ou,au,null,{context:bs,pure:!0,areStatePropsEqual:jl})(Gl);function Yl(De){var te=vl(hu),Se=te.isUsingCloneFor;return Se===De.draggableId&&!De.isClone?null:E.a.createElement(gu,De)}function Lu(De){var te=typeof De.isDragDisabled=="boolean"?!De.isDragDisabled:!0,Se=Boolean(De.disableInteractiveElementBlocking),He=Boolean(De.shouldRespectForcePress);return E.a.createElement(Yl,Object(g.a)({},De,{isClone:!1,isEnabled:te,canDragInteractiveElements:Se,shouldRespectForcePress:He}))}function Ql(De){var te=Object(I.useContext)(tn);te||de(!1);var Se=te.contextId,He=te.isMovementAllowed,at=Object(I.useRef)(null),Et=Object(I.useRef)(null),It=De.children,Nt=De.droppableId,vr=De.type,Ir=De.mode,mr=De.direction,cr=De.ignoreContainerClipping,Cr=De.isDropDisabled,Pr=De.isCombineEnabled,an=De.snapshot,Kn=De.useClone,ni=De.updateViewportMaxScroll,Oi=De.getContainerForClone,hi=i(function(){return at.current},[]),va=i(function(re){at.current=re},[]),Ki=i(function(){return Et.current},[]),La=i(function(re){Et.current=re},[]);El({props:De,getDroppableRef:hi,getPlaceholderRef:Ki});var ba=i(function(){He()&&ni({maxScroll:Ya()})},[He,ni]);ju({droppableId:Nt,type:vr,mode:Ir,direction:mr,isDropDisabled:Cr,isCombineEnabled:Pr,ignoreContainerClipping:cr,getDroppableRef:hi});var Ia=E.a.createElement(nu,{on:De.placeholder,shouldAnimate:De.shouldAnimatePlaceholder},function(re){var le=re.onClose,Pe=re.data,ft=re.animate;return E.a.createElement(xu,{placeholder:Pe,onClose:le,innerRef:La,animate:ft,contextId:Se,onTransitionEnd:ba})}),lo=r(function(){return{innerRef:va,placeholder:Ia,droppableProps:{"data-rbd-droppable-id":Nt,"data-rbd-droppable-context-id":Se}}},[Se,Nt,Ia,va]),P=Kn?Kn.dragging.draggableId:null,W=r(function(){return{droppableId:Nt,type:vr,isUsingCloneFor:P}},[Nt,P,vr]);function q(){if(!Kn)return null;var re=Kn.dragging,le=Kn.render,Pe=E.a.createElement(Yl,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ft,Tt){return le(ft,Tt,re)});return M.a.createPortal(Pe,Oi())}return E.a.createElement(hu.Provider,{value:W},It(lo,an),q())}var ou=function(te,Se){return te===Se.droppable.type},be=function(te,Se){return Se.draggables[te.draggable.id]},Ue=function(){var te={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Se=Object(g.a)({},te,{shouldAnimatePlaceholder:!1}),He=O(function(It){return{draggableId:It.id,type:It.type,source:{index:It.index,droppableId:It.droppableId}}}),at=O(function(It,Nt,vr,Ir,mr,cr){var Cr=mr.descriptor.id,Pr=mr.descriptor.droppableId===It;if(Pr){var an=cr?{render:cr,dragging:He(mr.descriptor)}:null,Kn={isDraggingOver:vr,draggingOverWith:vr?Cr:null,draggingFromThisWith:Cr,isUsingPlaceholder:!0};return{placeholder:mr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Kn,useClone:an}}if(!Nt)return Se;if(!Ir)return te;var ni={isDraggingOver:vr,draggingOverWith:Cr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:mr.placeholder,shouldAnimatePlaceholder:!0,snapshot:ni,useClone:null}}),Et=function(Nt,vr){var Ir=vr.droppableId,mr=vr.type,cr=!vr.isDropDisabled,Cr=vr.renderClone;if(Nt.isDragging){var Pr=Nt.critical;if(!ou(mr,Pr))return Se;var an=be(Pr,Nt.dimensions),Kn=En(Nt.impact)===Ir;return at(Ir,cr,Kn,Kn,an,Cr)}if(Nt.phase==="DROP_ANIMATING"){var ni=Nt.completed;if(!ou(mr,ni.critical))return Se;var Oi=be(ni.critical,Nt.dimensions);return at(Ir,cr,_u(ni.result)===Ir,En(ni.impact)===Ir,Oi,Cr)}if(Nt.phase==="IDLE"&&Nt.completed&&!Nt.shouldFlush){var hi=Nt.completed;if(!ou(mr,hi.critical))return Se;var va=En(hi.impact)===Ir,Ki=Boolean(hi.impact.at&&hi.impact.at.type==="COMBINE"),La=hi.critical.droppable.id===Ir;return va?Ki?te:Se:La?te:Se}return Se};return Et},ht={updateViewportMaxScroll:Wr};function Kt(){return document.body||de(!1),document.body}var dr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Kt},Tr=Object(m.c)(Ue,ht,null,{context:bs,pure:!0,areStatePropsEqual:jl})(Ql);Tr.defaultProps=dr},ni6a:function(H,k,d){var I=d("pzxd"),E=d("mFDi"),T=d("gut8"),g=T.WILL_BE_RESTORED,S=new E,m=function(){};m.prototype={constructor:m,drawRectText:function(a,r){var i=this.style;r=i.textRect||r,this.__dirty&&I.normalizeTextStyle(i,!0);var n=i.text;if(n!=null&&(n+=""),!I.needDrawText(n,i))return;a.save();var t=this.transform;i.transformText?this.setTransform(a):t&&(S.copy(r),S.applyTransform(t),r=S),I.renderText(this,a,n,i,r,g),a.restore()}};var h=m;H.exports=h},nkfE:function(H,k,d){var I=d("bYtY"),E=d("ca2m"),T=d("bLfw"),g=d("+TT/"),S=g.getLayoutParams,m=g.mergeLayoutParam,h=d("jkPA"),c=["value","category","time","log"];function a(r,i,n,t){I.each(c,function(s){i.extend({type:r+"Axis."+s,mergeDefaultAndTheme:function(e,o){var l=this.layoutMode,u=l?S(e):{},f=o.getTheme();I.merge(e,f.get(s+"Axis")),I.merge(e,this.getDefaultOption()),e.type=n(r,e),l&&m(e,u,l)},optionUpdated:function(){var e=this.option;e.type==="category"&&(this.__ordinalMeta=h.createByAxisModel(this))},getCategories:function(e){var o=this.option;if(o.type==="category")return e?o.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:I.mergeAll([{},E[s+"Axis"],t],!0)})}),T.registerSubTypeDefaulter(r+"Axis",I.curry(n,r))}H.exports=a},noeP:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("UOVi");I.registerAction("dataZoom",function(g,S){var m=T.createLinkedNodesFinder(E.bind(S.eachComponent,S,"dataZoom"),T.eachAxisDim,function(c,a){return c.get(a.axisIndex)}),h=[];S.eachComponent({mainType:"dataZoom",query:g},function(c,a){h.push.apply(h,m(c).nodes)}),E.each(h,function(c,a){c.setRawRange({start:g.start,end:g.end,startValue:g.startValue,endValue:g.endValue})})})},o40c:function(H,k,d){var I=d("IwbS"),E=d("OS9S"),T=d("loD1"),g=d("aKvl"),S=I.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(a,r){var i=r.segs,n=r.curveness;if(r.polyline)for(var t=0;t<i.length;){var s=i[t++];if(s>0){a.moveTo(i[t++],i[t++]);for(var e=1;e<s;e++)a.lineTo(i[t++],i[t++])}}else for(var t=0;t<i.length;){var o=i[t++],l=i[t++],u=i[t++],f=i[t++];if(a.moveTo(o,l),n>0){var p=(o+u)/2-(l-f)*n,v=(l+f)/2-(u-o)*n;a.quadraticCurveTo(p,v,u,f)}else a.lineTo(u,f)}},findDataIndex:function(a,r){var i=this.shape,n=i.segs,t=i.curveness;if(i.polyline)for(var s=0,e=0;e<n.length;){var o=n[e++];if(o>0)for(var l=n[e++],u=n[e++],f=1;f<o;f++){var p=n[e++],v=n[e++];if(T.containStroke(l,u,p,v))return s}s++}else for(var s=0,e=0;e<n.length;){var l=n[e++],u=n[e++],p=n[e++],v=n[e++];if(t>0){var A=(l+p)/2-(u-v)*t,y=(u+v)/2-(p-l)*t;if(g.containStroke(l,u,A,y,p,v))return s}else if(T.containStroke(l,u,p,v))return s;s++}return-1}});function m(){this.group=new I.Group}var h=m.prototype;h.isPersistent=function(){return!this._incremental},h.updateData=function(a){this.group.removeAll();var r=new S({rectHover:!0,cursor:"default"});r.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(r,a),this.group.add(r),this._incremental=null},h.incrementalPrepareUpdate=function(a){this.group.removeAll(),this._clearIncremental(),a.count()>5e5?(this._incremental||(this._incremental=new E({silent:!0})),this.group.add(this._incremental)):this._incremental=null},h.incrementalUpdate=function(a,r){var i=new S;i.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(i,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=a.start,this.group.add(i))},h.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},h._setCommon=function(a,r,i){var n=r.hostModel;a.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),a.useStyle(n.getModel("lineStyle").getLineStyle()),a.style.strokeNoScale=!0;var t=r.getVisual("color");t&&a.setStyle("stroke",t),a.setStyle("fill"),i||(a.seriesIndex=n.seriesIndex,a.on("mousemove",function(s){a.dataIndex=null;var e=a.findDataIndex(s.offsetX,s.offsetY);e>0&&(a.dataIndex=e+a.__startIndex)}))},h._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};var c=m;H.exports=c},oBaM:function(H,k,d){var I=d("T4UG"),E=d("5GtS"),T=d("bYtY"),g=d("7aKB"),S=g.encodeHTML,m=d("xKMd"),h=I.extend({type:"series.radar",dependencies:["radar"],init:function(a){h.superApply(this,"init",arguments),this.legendVisualProvider=new m(T.bind(this.getData,this),T.bind(this.getRawData,this))},getInitialData:function(a,r){return E(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(a){var r=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),t=this.getData().getName(a);return S(t===""?this.name:t)+"<br/>"+T.map(n,function(s,e){var o=r.get(r.mapDimension(s.dim),a);return S(s.name+" : "+o)}).join("<br />")},getTooltipPosition:function(a){if(a!=null){for(var r=this.getData(),i=this.coordinateSystem,n=r.getValues(T.map(i.dimensions,function(o){return r.mapDimension(o)}),a,!0),t=0,s=n.length;t<s;t++)if(!isNaN(n[t])){var e=i.getIndicatorAxes();return i.coordToPoint(e[t].dataToCoord(n[t]),t)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=h;H.exports=c},oE7X:function(H,k,d){var I=d("bLfw");I.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(H,k,d){},oRuE:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.pad.Iso10126={pad:function(T,g){var S=g*4,m=S-T.sigBytes%S;T.concat(I.lib.WordArray.random(m-1)).concat(I.lib.WordArray.create([m<<24],1))},unpad:function(T){var g=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=g}},I.pad.Iso10126})},oVpE:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("mFDi"),g=d("6GrX"),S=g.calculateTextPosition,m=E.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,l){var u=l.cx,f=l.cy,p=l.width/2,v=l.height/2;o.moveTo(u,f-v),o.lineTo(u+p,f+v),o.lineTo(u-p,f+v),o.closePath()}}),h=E.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,l){var u=l.cx,f=l.cy,p=l.width/2,v=l.height/2;o.moveTo(u,f-v),o.lineTo(u+p,f),o.lineTo(u,f+v),o.lineTo(u-p,f),o.closePath()}}),c=E.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,l){var u=l.x,f=l.y,p=l.width/5*3,v=Math.max(p,l.height),A=p/2,y=A*A/(v-A),x=f-v+A+y,C=Math.asin(y/A),w=Math.cos(C)*A,b=Math.sin(C),_=Math.cos(C),O=A*.6,L=A*.7;o.moveTo(u-w,x+y),o.arc(u,x,A,Math.PI-C,Math.PI*2+C),o.bezierCurveTo(u+w-b*O,x+y+_*O,u,f-L,u,f),o.bezierCurveTo(u,f-L,u-w+b*O,x+y+_*O,u-w,x+y),o.closePath()}}),a=E.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,l){var u=l.height,f=l.width,p=l.x,v=l.y,A=f/3*2;o.moveTo(p,v),o.lineTo(p+A,v+u),o.lineTo(p,v+u/4*3),o.lineTo(p-A,v+u),o.lineTo(p,v),o.closePath()}}),r={line:E.Line,rect:E.Rect,roundRect:E.Rect,square:E.Rect,circle:E.Circle,diamond:h,pin:c,arrow:a,triangle:m},i={line:function(o,l,u,f,p){p.x1=o,p.y1=l+f/2,p.x2=o+u,p.y2=l+f/2},rect:function(o,l,u,f,p){p.x=o,p.y=l,p.width=u,p.height=f},roundRect:function(o,l,u,f,p){p.x=o,p.y=l,p.width=u,p.height=f,p.r=Math.min(u,f)/4},square:function(o,l,u,f,p){var v=Math.min(u,f);p.x=o,p.y=l,p.width=v,p.height=v},circle:function(o,l,u,f,p){p.cx=o+u/2,p.cy=l+f/2,p.r=Math.min(u,f)/2},diamond:function(o,l,u,f,p){p.cx=o+u/2,p.cy=l+f/2,p.width=u,p.height=f},pin:function(o,l,u,f,p){p.x=o+u/2,p.y=l+f/2,p.width=u,p.height=f},arrow:function(o,l,u,f,p){p.x=o+u/2,p.y=l+f/2,p.width=u,p.height=f},triangle:function(o,l,u,f,p){p.cx=o+u/2,p.cy=l+f/2,p.width=u,p.height=f}},n={};I.each(r,function(o,l){n[l]=new o});var t=E.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(o,l,u){var f=S(o,l,u),p=this.shape;return p&&p.symbolType==="pin"&&l.textPosition==="inside"&&(f.y=u.y+u.height*.4),f},buildPath:function(o,l,u){var f=l.symbolType;if(f!=="none"){var p=n[f];p||(f="rect",p=n[f]),i[f](l.x,l.y,l.width,l.height,p.shape),p.buildPath(o,p.shape,u)}}});function s(o,l){if(this.type!=="image"){var u=this.style,f=this.shape;f&&f.symbolType==="line"?u.stroke=o:this.__isEmptyBrush?(u.stroke=o,u.fill=l||"#fff"):(u.fill&&(u.fill=o),u.stroke&&(u.stroke=o)),this.dirty(!1)}}function e(o,l,u,f,p,v,A){var y=o.indexOf("empty")===0;y&&(o=o.substr(5,1).toLowerCase()+o.substr(6));var x;return o.indexOf("image://")===0?x=E.makeImage(o.slice(8),new T(l,u,f,p),A?"center":"cover"):o.indexOf("path://")===0?x=E.makePath(o.slice(7),{},new T(l,u,f,p),A?"center":"cover"):x=new t({shape:{symbolType:o,x:l,y:u,width:f,height:p}}),x.__isEmptyBrush=y,x.setColor=s,x.setColor(v),x}k.createSymbol=e},oY9F:function(H,k,d){var I=d("OlYY"),E=I.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});H.exports=E},osHv:function(H,k,d){(function(I){I(d("VrN/"))})(function(I){"use strict";var E=I.Pos;function T(l,u){return l.line-u.line||l.ch-u.ch}var g="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",S=g+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",m=new RegExp("<(/?)(["+g+"]["+S+"]*)","g");function h(l,u,f,p){this.line=u,this.ch=f,this.cm=l,this.text=l.getLine(u),this.min=p?Math.max(p.from,l.firstLine()):l.firstLine(),this.max=p?Math.min(p.to-1,l.lastLine()):l.lastLine()}function c(l,u){var f=l.cm.getTokenTypeAt(E(l.line,u));return f&&/\btag\b/.test(f)}function a(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function r(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function i(l){for(;;){var u=l.text.indexOf(">",l.ch);if(u==-1){if(a(l))continue;return}if(!c(l,u+1)){l.ch=u+1;continue}var f=l.text.lastIndexOf("/",u),p=f>-1&&!/\S/.test(l.text.slice(f+1,u));return l.ch=u+1,p?"selfClose":"regular"}}function n(l){for(;;){var u=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(u==-1){if(r(l))continue;return}if(!c(l,u+1)){l.ch=u;continue}m.lastIndex=u,l.ch=u;var f=m.exec(l.text);if(f&&f.index==u)return f}}function t(l){for(;;){m.lastIndex=l.ch;var u=m.exec(l.text);if(!u){if(a(l))continue;return}if(!c(l,u.index+1)){l.ch=u.index+1;continue}return l.ch=u.index+u[0].length,u}}function s(l){for(;;){var u=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(u==-1){if(r(l))continue;return}if(!c(l,u+1)){l.ch=u;continue}var f=l.text.lastIndexOf("/",u),p=f>-1&&!/\S/.test(l.text.slice(f+1,u));return l.ch=u+1,p?"selfClose":"regular"}}function e(l,u){for(var f=[];;){var p=t(l),v,A=l.line,y=l.ch-(p?p[0].length:0);if(!p||!(v=i(l)))return;if(v=="selfClose")continue;if(p[1]){for(var x=f.length-1;x>=0;--x)if(f[x]==p[2]){f.length=x;break}if(x<0&&(!u||u==p[2]))return{tag:p[2],from:E(A,y),to:E(l.line,l.ch)}}else f.push(p[2])}}function o(l,u){for(var f=[];;){var p=s(l);if(!p)return;if(p=="selfClose"){n(l);continue}var v=l.line,A=l.ch,y=n(l);if(!y)return;if(y[1])f.push(y[2]);else{for(var x=f.length-1;x>=0;--x)if(f[x]==y[2]){f.length=x;break}if(x<0&&(!u||u==y[2]))return{tag:y[2],from:E(l.line,l.ch),to:E(v,A)}}}}I.registerHelper("fold","xml",function(l,u){for(var f=new h(l,u.line,0);;){var p=t(f);if(!p||f.line!=u.line)return;var v=i(f);if(!v)return;if(!p[1]&&v!="selfClose"){var A=E(f.line,f.ch),y=e(f,p[2]);return y&&T(y.from,A)>0?{from:A,to:y.from}:null}}}),I.findMatchingTag=function(l,u,f){var p=new h(l,u.line,u.ch,f);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var v=i(p),A=v&&E(p.line,p.ch),y=v&&n(p);if(!v||!y||T(p,u)>0)return;var x={from:E(p.line,p.ch),to:A,tag:y[2]};return v=="selfClose"?{open:x,close:null,at:"open"}:y[1]?{open:o(p,y[2]),close:x,at:"close"}:(p=new h(l,A.line,A.ch,f),{open:x,close:e(p,y[2]),at:"open"})},I.findEnclosingTag=function(l,u,f,p){for(var v=new h(l,u.line,u.ch,f);;){var A=o(v,p);if(!A)break;var y=new h(l,u.line,u.ch,f),x=e(y,A.tag);if(x)return{open:A,close:x}}},I.scanForClosingTag=function(l,u,f,p){var v=new h(l,u.line,u.ch,p?{from:0,to:p}:null);return e(v,f)}})},ozfa:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("KxFI"),g=d.n(T)},"p+If":function(H,k,d){var I=d("ProS");d("cpOr"),d("rkZ5");var E=d("ZYIC"),T=d("7ph2");I.registerLayout(E),I.registerVisual(T)},"p/La":function(H,k){var d=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function I(E,T){E==="china"&&T.name==="\u53F0\u6E7E"&&T.geometries.push({type:"polygon",exterior:d[0]})}H.exports=I},p1MT:function(H,k,d){var I=d("Hw7h"),E=d("IwbS"),T=d("6Ic6"),g=d("OELB"),S=g.parsePercent,m=g.round,h=g.linearMap;function c(t,s){var e=t.get("center"),o=s.getWidth(),l=s.getHeight(),u=Math.min(o,l),f=S(e[0],s.getWidth()),p=S(e[1],s.getHeight()),v=S(t.get("radius"),u/2);return{cx:f,cy:p,r:v}}function a(t,s){return s&&(typeof s=="string"?t=s.replace("{value}",t!=null?t:""):typeof s=="function"&&(t=s(t))),t}var r=Math.PI*2,i=T.extend({type:"gauge",render:function(t,s,e){this.group.removeAll();var o=t.get("axisLine.lineStyle.color"),l=c(t,e);this._renderMain(t,s,e,o,l)},dispose:function(){},_renderMain:function(t,s,e,o,l){for(var u=this.group,f=t.getModel("axisLine"),p=f.getModel("lineStyle"),v=t.get("clockwise"),A=-t.get("startAngle")/180*Math.PI,y=-t.get("endAngle")/180*Math.PI,x=(y-A)%r,C=A,w=p.get("width"),b=f.get("show"),_=0;b&&_<o.length;_++){var O=Math.min(Math.max(o[_][0],0),1),y=A+x*O,L=new E.Sector({shape:{startAngle:C,endAngle:y,cx:l.cx,cy:l.cy,clockwise:v,r0:l.r-w,r:l.r},silent:!0});L.setStyle({fill:o[_][1]}),L.setStyle(p.getLineStyle(["color","borderWidth","borderColor"])),u.add(L),C=y}var D=function(M){if(M<=0)return o[0][1];for(var F=0;F<o.length;F++)if(o[F][0]>=M&&(F===0?0:o[F-1][0])<M)return o[F][1];return o[F-1][1]};if(!v){var N=A;A=y,y=N}this._renderTicks(t,s,e,D,l,A,y,v),this._renderPointer(t,s,e,D,l,A,y,v),this._renderTitle(t,s,e,D,l),this._renderDetail(t,s,e,D,l)},_renderTicks:function(t,s,e,o,l,u,f,p){for(var v=this.group,A=l.cx,y=l.cy,x=l.r,C=+t.get("min"),w=+t.get("max"),b=t.getModel("splitLine"),_=t.getModel("axisTick"),O=t.getModel("axisLabel"),L=t.get("splitNumber"),D=_.get("splitNumber"),N=S(b.get("length"),x),M=S(_.get("length"),x),F=u,R=(f-u)/L,j=R/D,B=b.getModel("lineStyle").getLineStyle(),K=_.getModel("lineStyle").getLineStyle(),U=0;U<=L;U++){var z=Math.cos(F),V=Math.sin(F);if(b.get("show")){var Y=new E.Line({shape:{x1:z*x+A,y1:V*x+y,x2:z*(x-N)+A,y2:V*(x-N)+y},style:B,silent:!0});B.stroke==="auto"&&Y.setStyle({stroke:o(U/L)}),v.add(Y)}if(O.get("show")){var J=a(m(U/L*(w-C)+C),O.get("formatter")),se=O.get("distance"),$=o(U/L);v.add(new E.Text({style:E.setTextStyle({},O,{text:J,x:z*(x-N-se)+A,y:V*(x-N-se)+y,textVerticalAlign:V<-.4?"top":V>.4?"bottom":"middle",textAlign:z<-.4?"left":z>.4?"right":"center"},{autoColor:$}),silent:!0}))}if(_.get("show")&&U!==L){for(var ae=0;ae<=D;ae++){var z=Math.cos(F),V=Math.sin(F),ge=new E.Line({shape:{x1:z*x+A,y1:V*x+y,x2:z*(x-M)+A,y2:V*(x-M)+y},silent:!0,style:K});K.stroke==="auto"&&ge.setStyle({stroke:o((U+ae/D)/L)}),v.add(ge),F+=j}F-=j}else F+=R}},_renderPointer:function(t,s,e,o,l,u,f,p){var v=this.group,A=this._data;if(!t.get("pointer.show")){A&&A.eachItemGraphicEl(function(b){v.remove(b)});return}var y=[+t.get("min"),+t.get("max")],x=[u,f],C=t.getData(),w=C.mapDimension("value");C.diff(A).add(function(b){var _=new I({shape:{angle:u}});E.initProps(_,{shape:{angle:h(C.get(w,b),y,x,!0)}},t),v.add(_),C.setItemGraphicEl(b,_)}).update(function(b,_){var O=A.getItemGraphicEl(_);E.updateProps(O,{shape:{angle:h(C.get(w,b),y,x,!0)}},t),v.add(O),C.setItemGraphicEl(b,O)}).remove(function(b){var _=A.getItemGraphicEl(b);v.remove(_)}).execute(),C.eachItemGraphicEl(function(b,_){var O=C.getItemModel(_),L=O.getModel("pointer");b.setShape({x:l.cx,y:l.cy,width:S(L.get("width"),l.r),r:S(L.get("length"),l.r)}),b.useStyle(O.getModel("itemStyle").getItemStyle()),b.style.fill==="auto"&&b.setStyle("fill",o(h(C.get(w,_),y,[0,1],!0))),E.setHoverStyle(b,O.getModel("emphasis.itemStyle").getItemStyle())}),this._data=C},_renderTitle:function(t,s,e,o,l){var u=t.getData(),f=u.mapDimension("value"),p=t.getModel("title");if(p.get("show")){var v=p.get("offsetCenter"),A=l.cx+S(v[0],l.r),y=l.cy+S(v[1],l.r),x=+t.get("min"),C=+t.get("max"),w=t.getData().get(f,0),b=o(h(w,[x,C],[0,1],!0));this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},p,{x:A,y,text:u.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:b,forceRich:!0})}))}},_renderDetail:function(t,s,e,o,l){var u=t.getModel("detail"),f=+t.get("min"),p=+t.get("max");if(u.get("show")){var v=u.get("offsetCenter"),A=l.cx+S(v[0],l.r),y=l.cy+S(v[1],l.r),x=S(u.get("width"),l.r),C=S(u.get("height"),l.r),w=t.getData(),b=w.get(w.mapDimension("value"),0),_=o(h(b,[f,p],[0,1],!0));this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},u,{x:A,y,text:a(b,u.get("formatter")),textWidth:isNaN(x)?null:x,textHeight:isNaN(C)?null:C,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),n=i;H.exports=n},"p77/":function(H,k,d){},pA7S:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.WordArray,S=T.BlockCipher,m=E.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],c=[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],r=[{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}],i=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],n=m.DES=S.extend({_doReset:function(){for(var l=this._key,u=l.words,f=[],p=0;p<56;p++){var v=h[p]-1;f[p]=u[v>>>5]>>>31-v%32&1}for(var A=this._subKeys=[],y=0;y<16;y++){for(var x=A[y]=[],C=a[y],p=0;p<24;p++)x[p/6|0]|=f[(c[p]-1+C)%28]<<31-p%6,x[4+(p/6|0)]|=f[28+(c[p+24]-1+C)%28]<<31-p%6;x[0]=x[0]<<1|x[0]>>>31;for(var p=1;p<7;p++)x[p]=x[p]>>>(p-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var w=this._invSubKeys=[],p=0;p<16;p++)w[p]=A[15-p]},encryptBlock:function(l,u){this._doCryptBlock(l,u,this._subKeys)},decryptBlock:function(l,u){this._doCryptBlock(l,u,this._invSubKeys)},_doCryptBlock:function(l,u,f){this._lBlock=l[u],this._rBlock=l[u+1],t.call(this,4,252645135),t.call(this,16,65535),s.call(this,2,858993459),s.call(this,8,16711935),t.call(this,1,1431655765);for(var p=0;p<16;p++){for(var v=f[p],A=this._lBlock,y=this._rBlock,x=0,C=0;C<8;C++)x|=r[C][((y^v[C])&i[C])>>>0];this._lBlock=y,this._rBlock=A^x}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,t.call(this,1,1431655765),s.call(this,8,16711935),s.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),l[u]=this._lBlock,l[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function t(o,l){var u=(this._lBlock>>>o^this._rBlock)&l;this._rBlock^=u,this._lBlock^=u<<o}function s(o,l){var u=(this._rBlock>>>o^this._lBlock)&l;this._lBlock^=u,this._rBlock^=u<<o}E.DES=S._createHelper(n);var e=m.TripleDES=S.extend({_doReset:function(){var l=this._key,u=l.words;if(u.length!==2&&u.length!==4&&u.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var f=u.slice(0,2),p=u.length<4?u.slice(0,2):u.slice(2,4),v=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=n.createEncryptor(g.create(f)),this._des2=n.createEncryptor(g.create(p)),this._des3=n.createEncryptor(g.create(v))},encryptBlock:function(l,u){this._des1.encryptBlock(l,u),this._des2.decryptBlock(l,u),this._des3.encryptBlock(l,u)},decryptBlock:function(l,u){this._des3.decryptBlock(l,u),this._des2.encryptBlock(l,u),this._des1.decryptBlock(l,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});E.TripleDES=S._createHelper(e)}(),I.TripleDES})},pC0b:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("xzDV"),g=d.n(T),S=d("5Dmo")},"pED+":function(H,k,d){},pG52:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("WXVj"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},pLH3:function(H,k,d){var I=d("ProS");d("ALo7"),d("TWL2");var E=d("mOdp"),T=d("JLnu"),g=d("0/Rx");I.registerVisual(E("funnel")),I.registerLayout(T),I.registerProcessor(g("funnel"))},pP6R:function(H,k,d){var I=d("ProS"),E="\0_ec_interaction_mutex";function T(h,c,a){var r=m(h);r[c]=a}function g(h,c,a){var r=m(h),i=r[c];i===a&&(r[c]=null)}function S(h,c){return!!m(h)[c]}function m(h){return h[E]||(h[E]={})}I.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),k.take=T,k.release=g,k.isTaken=S},pmaE:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IwbS"),g=d("DEFe"),S="__seriesMapHighDown",m="__seriesMapCallKey",h=I.extendChartView({type:"map",render:function(r,i,n,t){if(t&&t.type==="mapToggleSelect"&&t.from===this.uid)return;var s=this.group;if(s.removeAll(),r.getHostGeoModel())return;if(t&&t.type==="geoRoam"&&t.componentType==="series"&&t.seriesId===r.id){var e=this._mapDraw;e&&s.add(e.group)}else if(r.needsDrawMap){var e=this._mapDraw||new g(n,!0);s.add(e.group),e.draw(r,i,n,this,t),this._mapDraw=e}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(r,i,n)},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(r,i,n){var t=r.originalData,s=this.group;t.each(t.mapDimension("value"),function(e,o){if(isNaN(e))return;var l=t.getItemLayout(o);if(!l||!l.point)return;var u=l.point,f=l.offset,p=new T.Circle({style:{fill:r.getData().getVisual("color")},shape:{cx:u[0]+f*9,cy:u[1],r:3},silent:!0,z2:8+(f?0:T.Z2_EMPHASIS_LIFT+1)});if(!f){var v=r.mainSeries.getData(),A=t.getName(o),y=v.indexOfName(A),x=t.getItemModel(o),C=x.getModel("label"),w=x.getModel("emphasis.label"),b=v.getItemGraphicEl(y),_=E.retrieve2(r.getFormattedLabel(y,"normal"),A),O=E.retrieve2(r.getFormattedLabel(y,"emphasis"),_),L=b[S],D=Math.random();if(!L){L=b[S]={};var N=E.curry(c,!0),M=E.curry(c,!1);b.on("mouseover",N).on("mouseout",M).on("emphasis",N).on("normal",M)}b[m]=D,E.extend(L,{recordVersion:D,circle:p,labelModel:C,hoverLabelModel:w,emphasisText:O,normalText:_}),a(L,!1)}s.add(p)})}});function c(r){var i=this[S];i&&i.recordVersion===this[m]&&a(i,r)}function a(r,i){var n=r.circle,t=r.labelModel,s=r.hoverLabelModel,e=r.emphasisText,o=r.normalText;i?(n.style.extendFrom(T.setTextStyle({},s,{text:s.get("show")?e:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=T.Z2_EMPHASIS_LIFT):(T.setTextStyle(n.style,t,{text:t.get("show")?o:null,textPosition:t.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),n.__mapOriginalZ2!=null&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}H.exports=h},pwpV:function(H,k,d){},pzxd:function(H,k,d){var I=d("bYtY"),E=I.retrieve2,T=I.retrieve3,g=I.each,S=I.normalizeCssArray,m=I.isString,h=I.isObject,c=d("6GrX"),a=d("VpOo"),r=d("Xnb7"),i=d("fW2E"),n=d("gut8"),t=n.ContextCachedBy,s=n.WILL_BE_RESTORED,e=c.DEFAULT_FONT,o={left:1,right:1,center:1},l={top:1,bottom:1,middle:1},u=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],f={},p={};function v(U){return A(U),g(U.rich,A),U}function A(U){if(U){U.font=c.makeFont(U);var z=U.textAlign;z==="middle"&&(z="center"),U.textAlign=z==null||o[z]?z:"left";var V=U.textVerticalAlign||U.textBaseline;V==="center"&&(V="middle"),U.textVerticalAlign=V==null||l[V]?V:"top";var Y=U.textPadding;Y&&(U.textPadding=S(U.textPadding))}}function y(U,z,V,Y,J,se){Y.rich?C(U,z,V,Y,J,se):x(U,z,V,Y,J,se)}function x(U,z,V,Y,J,se){"use strict";var $=O(Y),ae,ge=!1,pe=z.__attrCachedBy===t.PLAIN_TEXT;se!==s?(se&&(ae=se.style,ge=!$&&pe&&ae),z.__attrCachedBy=$?t.NONE:t.PLAIN_TEXT):pe&&(z.__attrCachedBy=t.NONE);var Ne=Y.font||e;(!ge||Ne!==(ae.font||e))&&(z.font=Ne);var de=U.__computedFont;U.__styleFont!==Ne&&(U.__styleFont=Ne,de=U.__computedFont=z.font);var Le=Y.textPadding,Q=Y.textLineHeight,ce=U.__textCotentBlock;(!ce||U.__dirtyText)&&(ce=U.__textCotentBlock=c.parsePlainText(V,de,Le,Q,Y.truncate));var Ke=ce.outerHeight,ee=ce.lines,X=ce.lineHeight,G=N(p,U,Y,J),Z=G.baseX,ve=G.baseY,ue=G.textAlign||"left",_e=G.textVerticalAlign;b(z,Y,J,Z,ve);var xe=c.adjustTextY(ve,Ke,_e),oe=Z,fe=xe;if($||Le){var Te=c.getWidth(V,de),ze=Te;Le&&(ze+=Le[1]+Le[3]);var it=c.adjustTextX(Z,ze,ue);$&&L(U,z,Y,it,xe,ze,Ke),Le&&(oe=B(Z,ue,Le),fe+=Le[0])}z.textAlign=ue,z.textBaseline="middle",z.globalAlpha=Y.opacity||1;for(var et=0;et<u.length;et++){var Oe=u[et],gt=Oe[0],Ge=Oe[1],wt=Y[gt];(!ge||wt!==ae[gt])&&(z[Ge]=i(z,Ge,wt||Oe[2]))}fe+=X/2;var xt=Y.textStrokeWidth,Ct=ge?ae.textStrokeWidth:null,Dt=!ge||xt!==Ct,Ht=!ge||Dt||Y.textStroke!==ae.textStroke,Je=F(Y.textStroke,xt),ye=R(Y.textFill);if(Je&&(Dt&&(z.lineWidth=xt),Ht&&(z.strokeStyle=Je)),ye&&((!ge||Y.textFill!==ae.textFill)&&(z.fillStyle=ye)),ee.length===1)Je&&z.strokeText(ee[0],oe,fe),ye&&z.fillText(ee[0],oe,fe);else for(var et=0;et<ee.length;et++)Je&&z.strokeText(ee[et],oe,fe),ye&&z.fillText(ee[et],oe,fe),fe+=X}function C(U,z,V,Y,J,se){se!==s&&(z.__attrCachedBy=t.NONE);var $=U.__textCotentBlock;(!$||U.__dirtyText)&&($=U.__textCotentBlock=c.parseRichText(V,Y)),w(U,z,$,Y,J)}function w(U,z,V,Y,J){var se=V.width,$=V.outerWidth,ae=V.outerHeight,ge=Y.textPadding,pe=N(p,U,Y,J),Ne=pe.baseX,de=pe.baseY,Le=pe.textAlign,Q=pe.textVerticalAlign;b(z,Y,J,Ne,de);var ce=c.adjustTextX(Ne,$,Le),Ke=c.adjustTextY(de,ae,Q),ee=ce,X=Ke;ge&&(ee+=ge[3],X+=ge[0]);var G=ee+se;O(Y)&&L(U,z,Y,ce,Ke,$,ae);for(var Z=0;Z<V.lines.length;Z++){for(var ve=V.lines[Z],ue=ve.tokens,_e=ue.length,xe=ve.lineHeight,oe=ve.width,fe=0,Te=ee,ze=G,it=_e-1,et;fe<_e&&(et=ue[fe],!et.textAlign||et.textAlign==="left");)_(U,z,et,Y,xe,X,Te,"left"),oe-=et.width,Te+=et.width,fe++;for(;it>=0&&(et=ue[it],et.textAlign==="right");)_(U,z,et,Y,xe,X,ze,"right"),oe-=et.width,ze-=et.width,it--;for(Te+=(se-(Te-ee)-(G-ze)-oe)/2;fe<=it;)et=ue[fe],_(U,z,et,Y,xe,X,Te+et.width/2,"center"),Te+=et.width,fe++;X+=xe}}function b(U,z,V,Y,J){if(V&&z.textRotation){var se=z.textOrigin;se==="center"?(Y=V.width/2+V.x,J=V.height/2+V.y):se&&(Y=se[0]+V.x,J=se[1]+V.y),U.translate(Y,J),U.rotate(-z.textRotation),U.translate(-Y,-J)}}function _(U,z,V,Y,J,se,$,ae){var ge=Y.rich[V.styleName]||{};ge.text=V.text;var pe=V.textVerticalAlign,Ne=se+J/2;pe==="top"?Ne=se+V.height/2:pe==="bottom"&&(Ne=se+J-V.height/2),!V.isLineHolder&&O(ge)&&L(U,z,ge,ae==="right"?$-V.width:ae==="center"?$-V.width/2:$,Ne-V.height/2,V.width,V.height);var de=V.textPadding;de&&($=B($,ae,de),Ne-=V.height/2-de[2]-V.textHeight/2),M(z,"shadowBlur",T(ge.textShadowBlur,Y.textShadowBlur,0)),M(z,"shadowColor",ge.textShadowColor||Y.textShadowColor||"transparent"),M(z,"shadowOffsetX",T(ge.textShadowOffsetX,Y.textShadowOffsetX,0)),M(z,"shadowOffsetY",T(ge.textShadowOffsetY,Y.textShadowOffsetY,0)),M(z,"textAlign",ae),M(z,"textBaseline","middle"),M(z,"font",V.font||e);var Le=F(ge.textStroke||Y.textStroke,ce),Q=R(ge.textFill||Y.textFill),ce=E(ge.textStrokeWidth,Y.textStrokeWidth);Le&&(M(z,"lineWidth",ce),M(z,"strokeStyle",Le),z.strokeText(V.text,$,Ne)),Q&&(M(z,"fillStyle",Q),z.fillText(V.text,$,Ne))}function O(U){return!!(U.textBackgroundColor||U.textBorderWidth&&U.textBorderColor)}function L(U,z,V,Y,J,se,$){var ae=V.textBackgroundColor,ge=V.textBorderWidth,pe=V.textBorderColor,Ne=m(ae);if(M(z,"shadowBlur",V.textBoxShadowBlur||0),M(z,"shadowColor",V.textBoxShadowColor||"transparent"),M(z,"shadowOffsetX",V.textBoxShadowOffsetX||0),M(z,"shadowOffsetY",V.textBoxShadowOffsetY||0),Ne||ge&&pe){z.beginPath();var de=V.textBorderRadius;de?a.buildPath(z,{x:Y,y:J,width:se,height:$,r:de}):z.rect(Y,J,se,$),z.closePath()}if(Ne)if(M(z,"fillStyle",ae),V.fillOpacity!=null){var Le=z.globalAlpha;z.globalAlpha=V.fillOpacity*V.opacity,z.fill(),z.globalAlpha=Le}else z.fill();else if(h(ae)){var Q=ae.image;Q=r.createOrUpdateImage(Q,null,U,D,ae),Q&&r.isImageReady(Q)&&z.drawImage(Q,Y,J,se,$)}if(ge&&pe)if(M(z,"lineWidth",ge),M(z,"strokeStyle",pe),V.strokeOpacity!=null){var Le=z.globalAlpha;z.globalAlpha=V.strokeOpacity*V.opacity,z.stroke(),z.globalAlpha=Le}else z.stroke()}function D(U,z){z.image=U}function N(U,z,V,Y){var J=V.x||0,se=V.y||0,$=V.textAlign,ae=V.textVerticalAlign;if(Y){var ge=V.textPosition;if(ge instanceof Array)J=Y.x+j(ge[0],Y.width),se=Y.y+j(ge[1],Y.height);else{var pe=z&&z.calculateTextPosition?z.calculateTextPosition(f,V,Y):c.calculateTextPosition(f,V,Y);J=pe.x,se=pe.y,$=$||pe.textAlign,ae=ae||pe.textVerticalAlign}var Ne=V.textOffset;Ne&&(J+=Ne[0],se+=Ne[1])}return U=U||{},U.baseX=J,U.baseY=se,U.textAlign=$,U.textVerticalAlign=ae,U}function M(U,z,V){return U[z]=i(U,z,V),U[z]}function F(U,z){return U==null||z<=0||U==="transparent"||U==="none"?null:U.image||U.colorStops?"#000":U}function R(U){return U==null||U==="none"?null:U.image||U.colorStops?"#000":U}function j(U,z){return typeof U=="string"?U.lastIndexOf("%")>=0?parseFloat(U)/100*z:parseFloat(U):U}function B(U,z,V){return z==="right"?U-V[1]:z==="center"?U+V[3]/2-V[1]/2:U+V[3]}function K(U,z){return U!=null&&(U||z.textBackgroundColor||z.textBorderWidth&&z.textBorderColor||z.textPadding)}k.normalizeTextStyle=v,k.renderText=y,k.getBoxPosition=N,k.getStroke=F,k.getFill=R,k.parsePercent=j,k.needDrawText=K},"q/+u":function(H,k,d){var I=d("ProS"),E=d("9wZj"),T=d("yWXo"),g=d("h8O9");I.extendChartView({type:"scatter",render:function(S,m,h){var c=S.getData(),a=this._updateSymbolDraw(c,S);a.updateData(c,{clipShape:this._getClipShape(S)}),this._finished=!0},incrementalPrepareRender:function(S,m,h){var c=S.getData(),a=this._updateSymbolDraw(c,S);a.incrementalPrepareUpdate(c),this._finished=!1},incrementalRender:function(S,m,h){this._symbolDraw.incrementalUpdate(S,m.getData(),{clipShape:this._getClipShape(m)}),this._finished=S.end===m.getData().count()},updateTransform:function(S,m,h){var c=S.getData();if(this.group.dirty(),!this._finished||c.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=g().reset(S);a.progress&&a.progress({start:0,end:c.count()},c),this._symbolDraw.updateLayout(c)},_getClipShape:function(S){var m=S.coordinateSystem,h=m&&m.getArea&&m.getArea();return S.get("clip",!0)?h:null},_updateSymbolDraw:function(S,m){var h=this._symbolDraw,c=m.pipelineContext,a=c.large;return(!h||a!==this._isLargeDraw)&&(h&&h.remove(),h=this._symbolDraw=a?new T:new E,this._isLargeDraw=a,this.group.removeAll()),this.group.add(h.group),h},remove:function(S,m){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(H,k){var d=["lineStyle","normal","opacity"],I={seriesType:"parallel",reset:function(E,T,g){var S=E.getModel("itemStyle"),m=E.getModel("lineStyle"),h=T.get("color"),c=m.get("color")||S.get("color")||h[E.seriesIndex%h.length],a=E.get("inactiveOpacity"),r=E.get("activeOpacity"),i=E.getModel("lineStyle").getLineStyle(),n=E.coordinateSystem,t=E.getData(),s={normal:i.opacity,active:r,inactive:a};t.setVisual("color",c);function e(o,l){n.eachActiveState(l,function(u,f){var p=s[u];if(u==="normal"&&l.hasItemOption){var v=l.getItemModel(f).get(d,!0);v!=null&&(p=v)}l.setItemVisual(f,"opacity",p)},o.start,o.end)}return{progress:e}}};H.exports=I},q4HE:function(H,k){var d="\\ud800-\\udfff",I="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",T="\\u20d0-\\u20ff",g=I+E+T,S="\\ufe0e\\ufe0f",m="["+d+"]",h="["+g+"]",c="\\ud83c[\\udffb-\\udfff]",a="(?:"+h+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",t="\\u200d",s=a+"?",e="["+S+"]?",o="(?:"+t+"(?:"+[r,i,n].join("|")+")"+e+s+")*",l=e+s+o,u="(?:"+[r+h+"?",h,i,n,m].join("|")+")",f=RegExp(c+"(?="+c+")|"+u+l,"g");function p(v){for(var A=f.lastIndex=0;f.test(v);)++A;return A}H.exports=p},q7KB:function(H,k,d){},qBft:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.pad.AnsiX923={pad:function(T,g){var S=T.sigBytes,m=g*4,h=m-S%m,c=S+h-1;T.clamp(),T.words[c>>>2]|=h<<24-c%4*8,T.sigBytes+=h},unpad:function(T){var g=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=g}},I.pad.Ansix923})},qH13:function(H,k,d){var I=d("ItGF"),E=d("QBsz"),T=E.applyTransform,g=d("mFDi"),S=d("Qe9p"),m=d("6GrX"),h=d("pzxd"),c=d("ni6a"),a=d("Gev7"),r=d("Dagg"),i=d("dqUG"),n=d("y+Vt"),t=d("IMiH"),s=d("QuXc"),e=d("06Qe"),o=t.CMD,l=Math.round,u=Math.sqrt,f=Math.abs,p=Math.cos,v=Math.sin,A=Math.max;if(!I.canvasSupported){var y=",",x="progid:DXImageTransform.Microsoft",C=21600,w=C/2,b=1e5,_=1e3,O=function(ve){ve.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ve.coordsize=C+","+C,ve.coordorigin="0,0"},L=function(ve){return String(ve).replace(/&/g,"&").replace(/"/g,""")},D=function(ve,ue,_e){return"rgb("+[ve,ue,_e].join(",")+")"},N=function(ve,ue){ue&&ve&&ue.parentNode!==ve&&ve.appendChild(ue)},M=function(ve,ue){ue&&ve&&ue.parentNode===ve&&ve.removeChild(ue)},F=function(ve,ue,_e){return(parseFloat(ve)||0)*b+(parseFloat(ue)||0)*_+_e},R=h.parsePercent,j=function(ve,ue,_e){var xe=S.parse(ue);_e=+_e,isNaN(_e)&&(_e=1),xe&&(ve.color=D(xe[0],xe[1],xe[2]),ve.opacity=_e*xe[3])},B=function(ve){var ue=S.parse(ve);return[D(ue[0],ue[1],ue[2]),ue[3]]},K=function(ve,ue,_e){var xe=ue.fill;if(xe!=null)if(xe instanceof s){var oe,fe=0,Te=[0,0],ze=0,it=1,et=_e.getBoundingRect(),Oe=et.width,gt=et.height;if(xe.type==="linear"){oe="gradient";var Ge=_e.transform,wt=[xe.x*Oe,xe.y*gt],xt=[xe.x2*Oe,xe.y2*gt];Ge&&(T(wt,wt,Ge),T(xt,xt,Ge));var Ct=xt[0]-wt[0],Dt=xt[1]-wt[1];fe=Math.atan2(Ct,Dt)*180/Math.PI,fe<0&&(fe+=360),fe<1e-6&&(fe=0)}else{oe="gradientradial";var wt=[xe.x*Oe,xe.y*gt],Ge=_e.transform,Ht=_e.scale,Je=Oe,ye=gt;Te=[(wt[0]-et.x)/Je,(wt[1]-et.y)/ye],Ge&&T(wt,wt,Ge),Je/=Ht[0]*C,ye/=Ht[1]*C;var ie=A(Je,ye);ze=2*0/ie,it=2*xe.r/ie-ze}var bt=xe.colorStops.slice();bt.sort(function(Lt,st){return Lt.offset-st.offset});for(var qe=bt.length,me=[],Rt=[],er=0;er<qe;er++){var ct=bt[er],zt=B(ct.color);Rt.push(ct.offset*it+ze+" "+zt[0]),(er===0||er===qe-1)&&me.push(zt)}if(qe>=2){var sr=me[0][0],Kr=me[1][0],ar=me[0][1]*ue.opacity,nr=me[1][1]*ue.opacity;ve.type=oe,ve.method="none",ve.focus="100%",ve.angle=fe,ve.color=sr,ve.color2=Kr,ve.colors=Rt.join(","),ve.opacity=nr,ve.opacity2=ar}oe==="radial"&&(ve.focusposition=Te.join(","))}else j(ve,xe,ue.opacity)},U=function(ve,ue){ue.lineDash&&(ve.dashstyle=ue.lineDash.join(" ")),ue.stroke!=null&&!(ue.stroke instanceof s)&&j(ve,ue.stroke,ue.opacity)},z=function(ve,ue,_e,xe){var oe=ue==="fill",fe=ve.getElementsByTagName(ue)[0];_e[ue]!=null&&_e[ue]!=="none"&&(oe||!oe&&_e.lineWidth)?(ve[oe?"filled":"stroked"]="true",_e[ue]instanceof s&&M(ve,fe),fe||(fe=e.createNode(ue)),oe?K(fe,_e,xe):U(fe,_e),N(ve,fe)):(ve[oe?"filled":"stroked"]="false",M(ve,fe))},V=[[],[],[]],Y=function(ve,ue){var _e=o.M,xe=o.C,oe=o.L,fe=o.A,Te=o.Q,ze=[],it,et,Oe,gt,Ge,wt,xt=ve.data,Ct=ve.len();for(gt=0;gt<Ct;){Oe=xt[gt++],et="",it=0;switch(Oe){case _e:et=" m ",it=1,Ge=xt[gt++],wt=xt[gt++],V[0][0]=Ge,V[0][1]=wt;break;case oe:et=" l ",it=1,Ge=xt[gt++],wt=xt[gt++],V[0][0]=Ge,V[0][1]=wt;break;case Te:case xe:et=" c ",it=3;var Dt=xt[gt++],Ht=xt[gt++],Je=xt[gt++],ye=xt[gt++],ie,bt;Oe===Te?(ie=Je,bt=ye,Je=(Je+2*Dt)/3,ye=(ye+2*Ht)/3,Dt=(Ge+2*Dt)/3,Ht=(wt+2*Ht)/3):(ie=xt[gt++],bt=xt[gt++]),V[0][0]=Dt,V[0][1]=Ht,V[1][0]=Je,V[1][1]=ye,V[2][0]=ie,V[2][1]=bt,Ge=ie,wt=bt;break;case fe:var qe=0,me=0,Rt=1,er=1,ct=0;ue&&(qe=ue[4],me=ue[5],Rt=u(ue[0]*ue[0]+ue[1]*ue[1]),er=u(ue[2]*ue[2]+ue[3]*ue[3]),ct=Math.atan2(-ue[1]/er,ue[0]/Rt));var zt=xt[gt++],sr=xt[gt++],Kr=xt[gt++],ar=xt[gt++],nr=xt[gt++]+ct,Lt=xt[gt++]+nr+ct;gt++;var st=xt[gt++],Qe=zt+p(nr)*Kr,qt=sr+v(nr)*ar,Dt=zt+p(Lt)*Kr,Ht=sr+v(Lt)*ar,Sr=st?" wa ":" at ";Math.abs(Qe-Dt)<1e-4&&(Math.abs(Lt-nr)>.01?st&&(Qe+=270/C):Math.abs(qt-sr)<1e-4?st&&Qe<zt||!st&&Qe>zt?Ht-=270/C:Ht+=270/C:st&&qt<sr||!st&&qt>sr?Dt+=270/C:Dt-=270/C),ze.push(Sr,l(((zt-Kr)*Rt+qe)*C-w),y,l(((sr-ar)*er+me)*C-w),y,l(((zt+Kr)*Rt+qe)*C-w),y,l(((sr+ar)*er+me)*C-w),y,l((Qe*Rt+qe)*C-w),y,l((qt*er+me)*C-w),y,l((Dt*Rt+qe)*C-w),y,l((Ht*er+me)*C-w)),Ge=Dt,wt=Ht;break;case o.R:var Ar=V[0],hr=V[1];Ar[0]=xt[gt++],Ar[1]=xt[gt++],hr[0]=Ar[0]+xt[gt++],hr[1]=Ar[1]+xt[gt++],ue&&(T(Ar,Ar,ue),T(hr,hr,ue)),Ar[0]=l(Ar[0]*C-w),hr[0]=l(hr[0]*C-w),Ar[1]=l(Ar[1]*C-w),hr[1]=l(hr[1]*C-w),ze.push(" m ",Ar[0],y,Ar[1]," l ",hr[0],y,Ar[1]," l ",hr[0],y,hr[1]," l ",Ar[0],y,hr[1]);break;case o.Z:ze.push(" x ")}if(it>0){ze.push(et);for(var vn=0;vn<it;vn++){var Zr=V[vn];ue&&T(Zr,Zr,ue),ze.push(l(Zr[0]*C-w),y,l(Zr[1]*C-w),vn<it-1?y:"")}}}return ze.join("")};n.prototype.brushVML=function(Z){var ve=this.style,ue=this._vmlEl;ue||(ue=e.createNode("shape"),O(ue),this._vmlEl=ue),z(ue,"fill",ve,this),z(ue,"stroke",ve,this);var _e=this.transform,xe=_e!=null,oe=ue.getElementsByTagName("stroke")[0];if(oe){var fe=ve.lineWidth;if(xe&&!ve.strokeNoScale){var Te=_e[0]*_e[3]-_e[1]*_e[2];fe*=u(f(Te))}oe.weight=fe+"px"}var ze=this.path||(this.path=new t);this.__dirtyPath&&(ze.beginPath(),ze.subPixelOptimize=!1,this.buildPath(ze,this.shape),ze.toStatic(),this.__dirtyPath=!1),ue.path=Y(ze,this.transform),ue.style.zIndex=F(this.zlevel,this.z,this.z2),N(Z,ue),ve.text!=null?this.drawRectText(Z,this.getBoundingRect()):this.removeRectText(Z)},n.prototype.onRemove=function(Z){M(Z,this._vmlEl),this.removeRectText(Z)},n.prototype.onAdd=function(Z){N(Z,this._vmlEl),this.appendRectText(Z)};var J=function(ve){return typeof ve=="object"&&ve.tagName&&ve.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(Z){var ve=this.style,ue=ve.image,_e,xe;if(J(ue)){var oe=ue.src;if(oe===this._imageSrc)_e=this._imageWidth,xe=this._imageHeight;else{var fe=ue.runtimeStyle,Te=fe.width,ze=fe.height;fe.width="auto",fe.height="auto",_e=ue.width,xe=ue.height,fe.width=Te,fe.height=ze,this._imageSrc=oe,this._imageWidth=_e,this._imageHeight=xe}ue=oe}else ue===this._imageSrc&&(_e=this._imageWidth,xe=this._imageHeight);if(!ue)return;var it=ve.x||0,et=ve.y||0,Oe=ve.width,gt=ve.height,Ge=ve.sWidth,wt=ve.sHeight,xt=ve.sx||0,Ct=ve.sy||0,Dt=Ge&&wt,Ht=this._vmlEl;Ht||(Ht=e.doc.createElement("div"),O(Ht),this._vmlEl=Ht);var Je=Ht.style,ye=!1,ie,bt=1,qe=1;if(this.transform&&(ie=this.transform,bt=u(ie[0]*ie[0]+ie[1]*ie[1]),qe=u(ie[2]*ie[2]+ie[3]*ie[3]),ye=ie[1]||ie[2]),ye){var me=[it,et],Rt=[it+Oe,et],er=[it,et+gt],ct=[it+Oe,et+gt];T(me,me,ie),T(Rt,Rt,ie),T(er,er,ie),T(ct,ct,ie);var zt=A(me[0],Rt[0],er[0],ct[0]),sr=A(me[1],Rt[1],er[1],ct[1]),Kr=[];Kr.push("M11=",ie[0]/bt,y,"M12=",ie[2]/qe,y,"M21=",ie[1]/bt,y,"M22=",ie[3]/qe,y,"Dx=",l(it*bt+ie[4]),y,"Dy=",l(et*qe+ie[5])),Je.padding="0 "+l(zt)+"px "+l(sr)+"px 0",Je.filter=x+".Matrix("+Kr.join("")+", SizingMethod=clip)"}else ie&&(it=it*bt+ie[4],et=et*qe+ie[5]),Je.filter="",Je.left=l(it)+"px",Je.top=l(et)+"px";var ar=this._imageEl,nr=this._cropEl;ar||(ar=e.doc.createElement("div"),this._imageEl=ar);var Lt=ar.style;if(Dt){if(_e&&xe)Lt.width=l(bt*_e*Oe/Ge)+"px",Lt.height=l(qe*xe*gt/wt)+"px";else{var st=new Image,Qe=this;st.onload=function(){st.onload=null,_e=st.width,xe=st.height,Lt.width=l(bt*_e*Oe/Ge)+"px",Lt.height=l(qe*xe*gt/wt)+"px",Qe._imageWidth=_e,Qe._imageHeight=xe,Qe._imageSrc=ue},st.src=ue}nr||(nr=e.doc.createElement("div"),nr.style.overflow="hidden",this._cropEl=nr);var qt=nr.style;qt.width=l((Oe+xt*Oe/Ge)*bt),qt.height=l((gt+Ct*gt/wt)*qe),qt.filter=x+".Matrix(Dx="+-xt*Oe/Ge*bt+",Dy="+-Ct*gt/wt*qe+")",nr.parentNode||Ht.appendChild(nr),ar.parentNode!==nr&&nr.appendChild(ar)}else Lt.width=l(bt*Oe)+"px",Lt.height=l(qe*gt)+"px",Ht.appendChild(ar),nr&&nr.parentNode&&(Ht.removeChild(nr),this._cropEl=null);var Sr="",Ar=ve.opacity;Ar<1&&(Sr+=".Alpha(opacity="+l(Ar*100)+") "),Sr+=x+".AlphaImageLoader(src="+ue+", SizingMethod=scale)",Lt.filter=Sr,Ht.style.zIndex=F(this.zlevel,this.z,this.z2),N(Z,Ht),ve.text!=null&&this.drawRectText(Z,this.getBoundingRect())},r.prototype.onRemove=function(Z){M(Z,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(Z)},r.prototype.onAdd=function(Z){N(Z,this._vmlEl),this.appendRectText(Z)};var se="normal",$={},ae=0,ge=100,pe=document.createElement("div"),Ne=function(ve){var ue=$[ve];if(!ue){ae>ge&&(ae=0,$={});var _e=pe.style,xe;try{_e.font=ve,xe=_e.fontFamily.split(",")[0]}catch(oe){}ue={style:_e.fontStyle||se,variant:_e.fontVariant||se,weight:_e.fontWeight||se,size:parseFloat(_e.fontSize||12)|0,family:xe||"Microsoft YaHei"},$[ve]=ue,ae++}return ue},de;m.$override("measureText",function(Z,ve){var ue=e.doc;de||(de=ue.createElement("div"),de.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",e.doc.body.appendChild(de));try{de.style.font=ve}catch(_e){}return de.innerHTML="",de.appendChild(ue.createTextNode(Z)),{width:de.offsetWidth}});for(var Le=new g,Q=function(ve,ue,_e,xe){var oe=this.style;this.__dirty&&h.normalizeTextStyle(oe,!0);var fe=oe.text;if(fe!=null&&(fe+=""),!fe)return;if(oe.rich){var Te=m.parseRichText(fe,oe);fe=[];for(var ze=0;ze<Te.lines.length;ze++){for(var it=Te.lines[ze].tokens,et=[],Oe=0;Oe<it.length;Oe++)et.push(it[Oe].text);fe.push(et.join(""))}fe=fe.join(`
|
|
|
`)}var gt,Ge,wt=oe.textAlign,xt=oe.textVerticalAlign,Ct=Ne(oe.font),Dt=Ct.style+" "+Ct.variant+" "+Ct.weight+" "+Ct.size+'px "'+Ct.family+'"';_e=_e||m.getBoundingRect(fe,Dt,wt,xt,oe.textPadding,oe.textLineHeight);var Ht=this.transform;if(Ht&&!xe&&(Le.copy(ue),Le.applyTransform(Ht),ue=Le),xe)gt=ue.x,Ge=ue.y;else{var Je=oe.textPosition;if(Je instanceof Array)gt=ue.x+R(Je[0],ue.width),Ge=ue.y+R(Je[1],ue.height),wt=wt||"left";else{var ye=this.calculateTextPosition?this.calculateTextPosition({},oe,ue):m.calculateTextPosition({},oe,ue);gt=ye.x,Ge=ye.y,wt=wt||ye.textAlign,xt=xt||ye.textVerticalAlign}}gt=m.adjustTextX(gt,_e.width,wt),Ge=m.adjustTextY(Ge,_e.height,xt),Ge+=_e.height/2;var ie=e.createNode,bt=this._textVmlEl,qe,me,Rt;bt?(Rt=bt.firstChild,qe=Rt.nextSibling,me=qe.nextSibling):(bt=ie("line"),qe=ie("path"),me=ie("textpath"),Rt=ie("skew"),me.style["v-text-align"]="left",O(bt),qe.textpathok=!0,me.on=!0,bt.from="0 0",bt.to="1000 0.05",N(bt,Rt),N(bt,qe),N(bt,me),this._textVmlEl=bt);var er=[gt,Ge],ct=bt.style;Ht&&xe?(T(er,er,Ht),Rt.on=!0,Rt.matrix=Ht[0].toFixed(3)+y+Ht[2].toFixed(3)+y+Ht[1].toFixed(3)+y+Ht[3].toFixed(3)+",0,0",Rt.offset=(l(er[0])||0)+","+(l(er[1])||0),Rt.origin="0 0",ct.left="0px",ct.top="0px"):(Rt.on=!1,ct.left=l(gt)+"px",ct.top=l(Ge)+"px"),me.string=L(fe);try{me.style.font=Dt}catch(zt){}z(bt,"fill",{fill:oe.textFill,opacity:oe.opacity},this),z(bt,"stroke",{stroke:oe.textStroke,opacity:oe.opacity,lineDash:oe.lineDash||null},this),bt.style.zIndex=F(this.zlevel,this.z,this.z2),N(ve,bt)},ce=function(ve){M(ve,this._textVmlEl),this._textVmlEl=null},Ke=function(ve){N(ve,this._textVmlEl)},ee=[c,a,r,n,i],X=0;X<ee.length;X++){var G=ee[X].prototype;G.drawRectText=Q,G.removeRectText=ce,G.appendRectText=Ke}i.prototype.brushVML=function(Z){var ve=this.style;ve.text!=null?this.drawRectText(Z,{x:ve.x||0,y:ve.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(Z)},i.prototype.onRemove=function(Z){this.removeRectText(Z)},i.prototype.onAdd=function(Z){this.appendRectText(Z)}}},qJCg:function(H,k,d){var I=d("BlVb"),E=d("mFDi"),T=d("IwbS"),g=T.linePolygonIntersect,S={lineX:m(0),lineY:m(1),rect:{point:function(a,r,i){return a&&i.boundingRect.contain(a[0],a[1])},rect:function(a,r,i){return a&&i.boundingRect.intersect(a)}},polygon:{point:function(a,r,i){return a&&i.boundingRect.contain(a[0],a[1])&&I.contain(i.range,a[0],a[1])},rect:function(a,r,i){var n=i.range;if(!a||n.length<=1)return!1;var t=a.x,s=a.y,e=a.width,o=a.height,l=n[0];if(I.contain(n,t,s)||I.contain(n,t+e,s)||I.contain(n,t,s+o)||I.contain(n,t+e,s+o)||E.create(a).contain(l[0],l[1])||g(t,s,t+e,s,n)||g(t,s,t,s+o,n)||g(t+e,s,t+e,s+o,n)||g(t,s+o,t+e,s+o,n))return!0}}};function m(a){var r=["x","y"],i=["width","height"];return{point:function(n,t,s){if(n){var e=s.range,o=n[a];return h(o,e)}},rect:function(n,t,s){if(n){var e=s.range,o=[n[r[a]],n[r[a]]+n[i[a]]];return o[1]<o[0]&&o.reverse(),h(o[0],e)||h(o[1],e)||h(e[0],o)||h(e[1],o)}}}}function h(a,r){return r[0]<=a&&a<=r[1]}var c=S;H.exports=c},qM6L:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.WordArray,S=E.enc,m=S.Utf16=S.Utf16BE={stringify:function(a){for(var r=a.words,i=a.sigBytes,n=[],t=0;t<i;t+=2){var s=r[t>>>2]>>>16-t%4*8&65535;n.push(String.fromCharCode(s))}return n.join("")},parse:function(a){for(var r=a.length,i=[],n=0;n<r;n++)i[n>>>1]|=a.charCodeAt(n)<<16-n%2*16;return g.create(i,r*2)}};S.Utf16LE={stringify:function(a){for(var r=a.words,i=a.sigBytes,n=[],t=0;t<i;t+=2){var s=h(r[t>>>2]>>>16-t%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(a){for(var r=a.length,i=[],n=0;n<r;n++)i[n>>>1]|=h(a.charCodeAt(n)<<16-n%2*16);return g.create(i,r*2)}};function h(c){return c<<8&4278255360|c>>>8&16711935}}(),I.enc.Utf16})},qMZE:function(H,k,d){var I=d("JEkh"),E=I.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}}}});H.exports=E},qNPg:function(H,k,d){"use strict";d.d(k,"a",function(){return V});var I=d("rePB"),E=d("VTBJ"),T=d("KQm4"),g=d("ODXe"),S=d("Ff2n"),m=d("q1tI"),h=d("4IlW"),c=d("TSYQ"),a=d.n(c),r=d("6cGi"),i=d("bX4T"),n=d("8XRh"),t=d("8OUc"),s=d("c+Xe"),e=function(J,se){var $=J.prefixCls,ae=J.id,ge=J.inputElement,pe=J.disabled,Ne=J.tabIndex,de=J.autoFocus,Le=J.autoComplete,Q=J.editable,ce=J.accessibilityIndex,Ke=J.value,ee=J.onKeyDown,X=J.onMouseDown,G=J.onChange,Z=J.onPaste,ve=J.onCompositionStart,ue=J.onCompositionEnd,_e=J.open,xe=J.attrs,oe=ge||m.createElement("input",null),fe=oe,Te=fe.ref,ze=fe.props,it=ze.onKeyDown,et=ze.onChange,Oe=ze.onMouseDown,gt=ze.onCompositionStart,Ge=ze.onCompositionEnd,wt=ze.style;return oe=m.cloneElement(oe,Object(E.a)(Object(E.a)({id:ae,ref:Object(s.a)(se,Te),disabled:pe,tabIndex:Ne,autoComplete:Le||"off",autoFocus:de,className:"".concat($,"-selection-search-input"),style:Object(E.a)(Object(E.a)({},wt),{},{opacity:Q?null:0}),role:"combobox","aria-expanded":_e,"aria-haspopup":"listbox","aria-owns":"".concat(ae,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ae,"_list"),"aria-activedescendant":"".concat(ae,"_list_").concat(ce)},xe),{},{value:Q?Ke:"",readOnly:!Q,unselectable:Q?null:"on",onKeyDown:function(Ct){ee(Ct),it&&it(Ct)},onMouseDown:function(Ct){X(Ct),Oe&&Oe(Ct)},onChange:function(Ct){G(Ct),et&&et(Ct)},onCompositionStart:function(Ct){ve(Ct),gt&>(Ct)},onCompositionEnd:function(Ct){ue(Ct),Ge&&Ge(Ct)},onPaste:Z})),oe},o=m.forwardRef(e);o.displayName="Input";var l=o,u=d("WKfj");function f(Y,J){u.b?m.useLayoutEffect(Y,J):m.useEffect(Y,J)}var p="__RC_SELECT_MAX_REST_COUNT__",v=function(J){var se=J.id,$=J.prefixCls,ae=J.values,ge=J.open,pe=J.searchValue,Ne=J.inputRef,de=J.placeholder,Le=J.disabled,Q=J.mode,ce=J.showSearch,Ke=J.autoFocus,ee=J.autoComplete,X=J.accessibilityIndex,G=J.tabIndex,Z=J.removeIcon,ve=J.choiceTransitionName,ue=J.maxTagCount,_e=J.maxTagTextLength,xe=J.maxTagPlaceholder,oe=xe===void 0?function(zt){return"+ ".concat(zt.length," ...")}:xe,fe=J.tagRender,Te=J.onSelect,ze=J.onInputChange,it=J.onInputPaste,et=J.onInputKeyDown,Oe=J.onInputMouseDown,gt=J.onInputCompositionStart,Ge=J.onInputCompositionEnd,wt=m.useState(!1),xt=Object(g.a)(wt,2),Ct=xt[0],Dt=xt[1],Ht=m.useRef(null),Je=m.useState(0),ye=Object(g.a)(Je,2),ie=ye[0],bt=ye[1];m.useEffect(function(){Dt(!0)},[]);var qe=ge||Q==="tags"?pe:"",me=Q==="tags"||ge&&ce;f(function(){bt(Ht.current.scrollWidth)},[qe]);var Rt=ae,er;typeof ue=="number"&&(er=ae.length-ue,Rt=ae.slice(0,ue)),typeof _e=="number"&&(Rt=Rt.map(function(zt){var sr=zt.label,Kr=Object(S.a)(zt,["label"]),ar=sr;if(typeof sr=="string"||typeof sr=="number"){var nr=String(ar);nr.length>_e&&(ar="".concat(nr.slice(0,_e),"..."))}return Object(E.a)(Object(E.a)({},Kr),{},{label:ar})})),er>0&&Rt.push({key:p,label:typeof oe=="function"?oe(ae.slice(ue)):oe});var ct=m.createElement(n.CSSMotionList,{component:!1,keys:Rt,motionName:ve,motionAppear:Ct},function(zt){var sr=zt.key,Kr=zt.label,ar=zt.value,nr=zt.disabled,Lt=zt.className,st=zt.style,Qe=sr||ar,qt=sr!==p&&!nr,Sr=function(vn){vn.preventDefault(),vn.stopPropagation()},Ar=function(vn){vn&&vn.stopPropagation(),Te(ar,{selected:!1})};return typeof fe=="function"?m.createElement("span",{key:Qe,onMouseDown:Sr,className:Lt,style:st},fe({label:Kr,value:ar,disabled:nr,closable:qt,onClose:Ar})):m.createElement("span",{key:Qe,className:a()(Lt,"".concat($,"-selection-item"),Object(I.a)({},"".concat($,"-selection-item-disabled"),nr)),style:st},m.createElement("span",{className:"".concat($,"-selection-item-content")},Kr),qt&&m.createElement(t.a,{className:"".concat($,"-selection-item-remove"),onMouseDown:Sr,onClick:Ar,customizeIcon:Z},"\xD7"))});return m.createElement(m.Fragment,null,ct,m.createElement("span",{className:"".concat($,"-selection-search"),style:{width:ie}},m.createElement(l,{ref:Ne,open:ge,prefixCls:$,id:se,inputElement:null,disabled:Le,autoFocus:Ke,autoComplete:ee,editable:me,accessibilityIndex:X,value:qe,onKeyDown:et,onMouseDown:Oe,onChange:ze,onPaste:it,onCompositionStart:gt,onCompositionEnd:Ge,tabIndex:G,attrs:Object(i.a)(J,!0)}),m.createElement("span",{ref:Ht,className:"".concat($,"-selection-search-mirror"),"aria-hidden":!0},qe,"\xA0")),!ae.length&&!qe&&m.createElement("span",{className:"".concat($,"-selection-placeholder")},de))},A=v,y=function(J){var se=J.inputElement,$=J.prefixCls,ae=J.id,ge=J.inputRef,pe=J.disabled,Ne=J.autoFocus,de=J.autoComplete,Le=J.accessibilityIndex,Q=J.mode,ce=J.open,Ke=J.values,ee=J.placeholder,X=J.tabIndex,G=J.showSearch,Z=J.searchValue,ve=J.activeValue,ue=J.onInputKeyDown,_e=J.onInputMouseDown,xe=J.onInputChange,oe=J.onInputPaste,fe=J.onInputCompositionStart,Te=J.onInputCompositionEnd,ze=m.useState(!1),it=Object(g.a)(ze,2),et=it[0],Oe=it[1],gt=Q==="combobox",Ge=gt||G&&ce,wt=Ke[0],xt=Z||"";gt&&ve&&!et&&(xt=ve),m.useEffect(function(){gt&&Oe(!1)},[gt,ve]);var Ct=Q!=="combobox"&&!ce?!1:!!xt,Dt=wt&&(typeof wt.label=="string"||typeof wt.label=="number")?wt.label.toString():void 0;return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat($,"-selection-search")},m.createElement(l,{ref:ge,prefixCls:$,id:ae,open:ce,inputElement:se,disabled:pe,autoFocus:Ne,autoComplete:de,editable:Ge,accessibilityIndex:Le,value:xt,onKeyDown:ue,onMouseDown:_e,onChange:function(Je){Oe(!0),xe(Je)},onPaste:oe,onCompositionStart:fe,onCompositionEnd:Te,tabIndex:X,attrs:Object(i.a)(J,!0)})),!gt&&wt&&!Ct&&m.createElement("span",{className:"".concat($,"-selection-item"),title:Dt},wt.label),!wt&&!Ct&&m.createElement("span",{className:"".concat($,"-selection-placeholder")},ee))},x=y;function C(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,J=m.useRef(null),se=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(se.current)}},[]);function $(ae){(ae||J.current===null)&&(J.current=ae),window.clearTimeout(se.current),se.current=window.setTimeout(function(){J.current=null},Y)}return[function(){return J.current},$]}var w=function(J,se){var $=Object(m.useRef)(null),ae=Object(m.useRef)(!1),ge=J.prefixCls,pe=J.multiple,Ne=J.open,de=J.mode,Le=J.showSearch,Q=J.tokenWithEnter,ce=J.onSearch,Ke=J.onSearchSubmit,ee=J.onToggleOpen,X=J.onInputKeyDown,G=J.domRef;m.useImperativeHandle(se,function(){return{focus:function(){$.current.focus()},blur:function(){$.current.blur()}}});var Z=C(0),ve=Object(g.a)(Z,2),ue=ve[0],_e=ve[1],xe=function(Ct){var Dt=Ct.which;(Dt===h.a.UP||Dt===h.a.DOWN)&&Ct.preventDefault(),X&&X(Ct),Dt===h.a.ENTER&&de==="tags"&&!ae.current&&!Ne&&Ke(Ct.target.value),[h.a.SHIFT,h.a.TAB,h.a.BACKSPACE,h.a.ESC].includes(Dt)||ee(!0)},oe=function(){_e(!0)},fe=Object(m.useRef)(null),Te=function(Ct){ce(Ct,!0,ae.current)!==!1&&ee(!0)},ze=function(){ae.current=!0},it=function(){ae.current=!1},et=function(Ct){var Dt=Ct.target.value;if(Q&&fe.current&&/[\r\n]/.test(fe.current)){var Ht=fe.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Dt=Dt.replace(Ht,fe.current)}fe.current=null,Te(Dt)},Oe=function(Ct){var Dt=Ct.clipboardData,Ht=Dt.getData("text");fe.current=Ht},gt=function(Ct){var Dt=ue();if(Ct.target!==$.current){Dt||Ct.preventDefault();var Ht=document.body.style.msTouchAction!==void 0;Ht?setTimeout(function(){$.current.focus()}):$.current.focus()}(de!=="combobox"&&(!Le||!Dt)||!Ne)&&(Ne&&ce("",!0,!1),ee())},Ge={inputRef:$,onInputKeyDown:xe,onInputMouseDown:oe,onInputChange:et,onInputPaste:Oe,onInputCompositionStart:ze,onInputCompositionEnd:it},wt=pe?m.createElement(A,Object.assign({},J,Ge)):m.createElement(x,Object.assign({},J,Ge));return m.createElement("div",{ref:G,className:"".concat(ge,"-selector"),onMouseDown:gt},wt)},b=m.forwardRef(w);b.displayName="Selector";var _=b,O=d("uciX"),L=function(J){var se=typeof J!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:se,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:se,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:se,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:se,adjustY:1}}}},D=function(J,se){var $=J.prefixCls,ae=J.disabled,ge=J.visible,pe=J.children,Ne=J.popupElement,de=J.containerWidth,Le=J.animation,Q=J.transitionName,ce=J.dropdownStyle,Ke=J.dropdownClassName,ee=J.direction,X=ee===void 0?"ltr":ee,G=J.dropdownMatchSelectWidth,Z=G===void 0?!0:G,ve=J.dropdownRender,ue=J.dropdownAlign,_e=J.getPopupContainer,xe=J.empty,oe=J.getTriggerDOMNode,fe=Object(S.a)(J,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Te="".concat($,"-dropdown"),ze=Ne;ve&&(ze=ve(Ne));var it=m.useMemo(function(){return L(Z)},[Z]),et=Le?"".concat(Te,"-").concat(Le):Q,Oe=m.useRef(null);m.useImperativeHandle(se,function(){return{getPopupElement:function(){return Oe.current}}});var gt=Object(E.a)({minWidth:de},ce);return typeof Z=="number"?gt.width=Z:Z&&(gt.width=de),m.createElement(O.a,Object.assign({},fe,{showAction:[],hideAction:[],popupPlacement:X==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:it,prefixCls:Te,popupTransitionName:et,popup:m.createElement("div",{ref:Oe},ze),popupAlign:ue,popupVisible:ge,getPopupContainer:_e,popupClassName:a()(Ke,Object(I.a)({},"".concat(Te,"-empty"),xe)),popupStyle:gt,getTriggerDOMNode:oe}),pe)},N=m.forwardRef(D);N.displayName="SelectTrigger";var M=N,F=d("wPlo");function R(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,J=m.useState(!1),se=Object(g.a)(J,2),$=se[0],ae=se[1],ge=m.useRef(null),pe=function(){window.clearTimeout(ge.current)};m.useEffect(function(){return pe},[]);var Ne=function(Le,Q){pe(),ge.current=window.setTimeout(function(){ae(Le),Q&&Q()},Y)};return[$,Ne,pe]}var j=d("2Qr1");function B(Y,J,se){var $=m.useRef(null);$.current={elements:Y.filter(function(ae){return ae}),open:J,triggerOpen:se},m.useEffect(function(){function ae(ge){var pe=ge.target;$.current.open&&$.current.elements.every(function(Ne){return!Ne.contains(pe)&&Ne!==pe})&&$.current.triggerOpen(!1)}return window.addEventListener("mousedown",ae),function(){return window.removeEventListener("mousedown",ae)}},[])}function K(Y){var J=m.useRef(Y),se=m.useMemo(function(){var $=new Map;J.current.forEach(function(ge){var pe=ge.value,Ne=ge.label;pe!==Ne&&$.set(pe,Ne)});var ae=Y.map(function(ge){var pe=$.get(ge.value);return ge.value===ge.label&&pe?Object(E.a)(Object(E.a)({},ge),{},{label:pe}):ge});return J.current=ae,ae},[Y]);return se}function U(Y,J){var se=m.useRef(null),$=m.useMemo(function(){var ge=new Map;return J.forEach(function(pe){var Ne=pe.data.value;ge.set(Ne,pe)}),ge},[Y,J]);se.current=$;var ae=function(pe){return pe.map(function(Ne){return se.current.get(Ne)}).filter(Boolean)};return ae}var z=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function V(Y){var J=Y.prefixCls,se=Y.components.optionList,$=Y.convertChildrenToData,ae=Y.flattenOptions,ge=Y.getLabeledValue,pe=Y.filterOptions,Ne=Y.isValueDisabled,de=Y.findValueOption,Le=Y.warningProps,Q=Y.fillOptionsWithMissingValue,ce=Y.omitDOMProps;function Ke(X,G){var Z,ve=X.prefixCls,ue=ve===void 0?J:ve,_e=X.className,xe=X.id,oe=X.open,fe=X.defaultOpen,Te=X.options,ze=X.children,it=X.mode,et=X.value,Oe=X.defaultValue,gt=X.labelInValue,Ge=X.showSearch,wt=X.inputValue,xt=X.searchValue,Ct=X.filterOption,Dt=X.optionFilterProp,Ht=Dt===void 0?"value":Dt,Je=X.autoClearSearchValue,ye=Je===void 0?!0:Je,ie=X.onSearch,bt=X.allowClear,qe=X.clearIcon,me=X.showArrow,Rt=X.inputIcon,er=X.menuItemSelectedIcon,ct=X.disabled,zt=X.loading,sr=X.defaultActiveFirstOption,Kr=X.notFoundContent,ar=Kr===void 0?"Not Found":Kr,nr=X.optionLabelProp,Lt=X.backfill,st=X.getInputElement,Qe=X.getPopupContainer,qt=X.listHeight,Sr=qt===void 0?200:qt,Ar=X.listItemHeight,hr=Ar===void 0?20:Ar,vn=X.animation,Zr=X.transitionName,Ln=X.virtual,$e=X.dropdownStyle,tt=X.dropdownClassName,Ee=X.dropdownMatchSelectWidth,Re=X.dropdownRender,je=X.dropdownAlign,nt=X.showAction,Vt=nt===void 0?[]:nt,Bt=X.direction,Xt=X.tokenSeparators,Rr=X.tagRender,Br=X.onPopupScroll,cn=X.onDropdownVisibleChange,Ut=X.onFocus,pt=X.onBlur,ut=X.onKeyUp,Jt=X.onKeyDown,Zt=X.onMouseDown,At=X.onChange,Pt=X.onSelect,vt=X.onDeselect,Ft=X.onClear,gr=X.internalProps,or=gr===void 0?{}:gr,ur=Object(S.a)(X,["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"]),Yr=or.mark===F.a,Jr=ce?ce(ur):ur;z.forEach(function(jn){delete Jr[jn]});var Tn=Object(m.useRef)(null),Dn=Object(m.useRef)(null),zn=Object(m.useRef)(null),qn=Object(m.useRef)(null),Ai=Object(m.useMemo)(function(){return(Xt||[]).some(function(jn){return[`
|
|
|
`,`\r
|
|
|
`].includes(jn)})},[Xt]),Mi=R(),Ye=Object(g.a)(Mi,3),Ce=Ye[0],ke=Ye[1],Fe=Ye[2],Ve=Object(m.useState)(),We=Object(g.a)(Ve,2),Ze=We[0],yt=We[1];Object(m.useEffect)(function(){yt("rc_select_".concat(Object(u.a)()))},[]);var lt=xe||Ze,kt=nr;kt===void 0&&(kt=Te?"label":"children");var wr=it==="combobox"?!1:gt,pr=it==="tags"||it==="multiple",_r=Ge!==void 0?Ge:pr||it==="combobox",Wt=Object(m.useRef)(null);m.useImperativeHandle(G,function(){return{focus:zn.current.focus,blur:zn.current.blur}});var un=Object(r.a)(Oe,{value:et}),ir=Object(g.a)(un,2),Gr=ir[0],kr=ir[1],yr=Object(m.useMemo)(function(){return Object(u.e)(Gr,{labelInValue:wr,combobox:it==="combobox"})},[Gr,wr]),En=Object(m.useMemo)(function(){return new Set(yr)},[yr]),kn=Object(m.useState)(null),ii=Object(g.a)(kn,2),oi=ii[0],ei=ii[1],ci=Object(m.useState)(""),Pn=Object(g.a)(ci,2),xi=Pn[0],gn=Pn[1],zr=xi;it==="combobox"&&Gr!==void 0?zr=Gr:xt!==void 0?zr=xt:wt&&(zr=wt);var Cn=Object(m.useMemo)(function(){var jn=Te;return jn===void 0&&(jn=$(ze)),it==="tags"&&Q&&(jn=Q(jn,Gr,kt,gt)),jn||[]},[Te,ze,it,Gr]),on=Object(m.useMemo)(function(){return ae(Cn,X)},[Cn]),li=U(yr,on),ri=Object(m.useMemo)(function(){if(!zr||!_r)return Object(T.a)(Cn);var jn=pe(zr,Cn,{optionFilterProp:Ht,filterOption:it==="combobox"&&Ct===void 0?function(){return!0}:Ct});return it==="tags"&&jn.every(function(Ii){return Ii[Ht]!==zr})&&jn.unshift({value:zr,label:zr,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),jn},[Cn,zr,it,_r]),wi=Object(m.useMemo)(function(){return ae(ri,X)},[ri]);Object(m.useEffect)(function(){qn.current&&qn.current.scrollTo&&qn.current.scrollTo(0)},[zr]);var Gn=Object(m.useMemo)(function(){var jn=yr.map(function(Ii){var Hi=li([Ii]),fr=ge(Ii,{options:Hi,prevValue:Gr,labelInValue:wr,optionLabelProp:kt});return Object(E.a)(Object(E.a)({},fr),{},{disabled:Ne(Ii,Hi)})});return!it&&jn.length===1&&jn[0].value===null&&jn[0].label===null?[]:jn},[Gr,Cn,it]);Gn=K(Gn);var ki=function(Ii,Hi,fr){var Dr=li([Ii]),Qr=de([Ii],Dr)[0];if(!or.skipTriggerSelect){var Nr=wr?ge(Ii,{options:Dr,prevValue:Gr,labelInValue:wr,optionLabelProp:kt}):Ii;Hi&&Pt?Pt(Nr,Qr):!Hi&&vt&&vt(Nr,Qr)}Yr&&(Hi&&or.onRawSelect?or.onRawSelect(Ii,Qr,fr):!Hi&&or.onRawDeselect&&or.onRawDeselect(Ii,Qr,fr))},Jn=Object(m.useState)([]),Pi=Object(g.a)(Jn,2),mn=Pi[0],Fr=Pi[1],An=function(Ii){if(Yr&&or.skipTriggerChange)return;var Hi=li(Ii),fr=Object(u.f)(Array.from(Ii),{labelInValue:wr,options:Hi,getLabeledValue:ge,prevValue:Gr,optionLabelProp:kt}),Dr=pr?fr:fr[0];if(At&&(yr.length!==0||fr.length!==0)){var Qr=de(Ii,Hi,{prevValueOptions:mn});Fr(Qr.map(function(Nr,Yt){var xr=Object(E.a)({},Nr);return Object.defineProperty(xr,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ii[Yt]}}),xr})),At(Dr,pr?Qr:Qr[0])}kr(Dr)},Un=function(Ii,Hi){var fr=Hi.selected,Dr=Hi.source;if(ct)return;var Qr;pr?(Qr=new Set(yr),fr?Qr.add(Ii):Qr.delete(Ii)):(Qr=new Set,Qr.add(Ii)),(pr||!pr&&Array.from(yr)[0]!==Ii)&&An(Array.from(Qr)),ki(Ii,!pr||fr,Dr),it==="combobox"?(gn(String(Ii)),ei("")):(!pr||ye)&&(gn(""),ei(""))},Vn=function(Ii,Hi){Un(Ii,Object(E.a)(Object(E.a)({},Hi),{},{source:"option"}))},ti=function(Ii,Hi){Un(Ii,Object(E.a)(Object(E.a)({},Hi),{},{source:"selection"}))},di=it==="combobox"&&st&&st()||null,fi=Object(r.a)(void 0,{defaultValue:fe,value:oe}),mi=Object(g.a)(fi,2),Wi=mi[0],na=mi[1],ea=Wi,Fa=!ar&&!ri.length;(ct||Fa&&ea&&it==="combobox")&&(ea=!1);var pi=Fa?!1:ea,ln=function(Ii){var Hi=Ii!==void 0?Ii:!ea;Wi!==Hi&&!ct&&(na(Hi),cn&&cn(Hi))};B([Tn.current,Dn.current&&Dn.current.getPopupElement()],pi,ln);var Li=function(Ii,Hi,fr){var Dr=!0,Qr=Ii;ei(null);var Nr=fr?null:Object(j.f)(Ii,Xt),Yt=Nr;if(it==="combobox")Hi&&An([Qr]);else if(Nr){Qr="",it!=="tags"&&(Yt=Nr.map(function(tr){var jr=on.find(function(Ur){var dn=Ur.data;return dn[kt]===tr});return jr?jr.data.value:null}).filter(function(tr){return tr!==null}));var xr=Array.from(new Set([].concat(Object(T.a)(yr),Object(T.a)(Yt))));An(xr),xr.forEach(function(tr){ki(tr,!0,"input")}),ln(!1),Dr=!1}return gn(Qr),ie&&zr!==Qr&&ie(Qr),Dr},Zi=function(Ii){var Hi=Array.from(new Set([].concat(Object(T.a)(yr),[Ii])));An(Hi),Hi.forEach(function(fr){ki(fr,!0,"input")}),gn("")};Object(m.useEffect)(function(){Wi&&!!ct&&na(!1)},[ct]),Object(m.useEffect)(function(){!ea&&!pr&&it!=="combobox"&&Li("",!1,!1)},[ea]);var Fi=C(),ia=Object(g.a)(Fi,2),Gt=ia[0],Xr=ia[1],rn=function(Ii){var Hi=Gt(),fr=Ii.which;if(!ea&&fr===h.a.ENTER&&ln(!0),Xr(!!zr),fr===h.a.BACKSPACE&&!Hi&&pr&&!zr&&yr.length){var Dr=Object(u.c)(Gn,yr);Dr.removedValue!==null&&(An(Dr.values),ki(Dr.removedValue,!1,"input"))}for(var Qr=arguments.length,Nr=new Array(Qr>1?Qr-1:0),Yt=1;Yt<Qr;Yt++)Nr[Yt-1]=arguments[Yt];if(ea&&qn.current){var xr;(xr=qn.current).onKeyDown.apply(xr,[Ii].concat(Nr))}Jt&&Jt.apply(void 0,[Ii].concat(Nr))},fn=function(Ii){for(var Hi=arguments.length,fr=new Array(Hi>1?Hi-1:0),Dr=1;Dr<Hi;Dr++)fr[Dr-1]=arguments[Dr];if(ea&&qn.current){var Qr;(Qr=qn.current).onKeyUp.apply(Qr,[Ii].concat(fr))}ut&&ut.apply(void 0,[Ii].concat(fr))},Xe=Object(m.useRef)(!1),_t=function(){ke(!0),ct||(Ut&&!Xe.current&&Ut.apply(void 0,arguments),Vt.includes("focus")&&ln(!0)),Xe.current=!0},lr=function(){if(ke(!1,function(){Xe.current=!1,ln(!1)}),ct)return;zr&&(it==="tags"?(Li("",!1,!1),An(Array.from(new Set([].concat(Object(T.a)(yr),[zr]))))):it==="multiple"&&gn("")),pt&&pt.apply(void 0,arguments)},rr=[];Object(m.useEffect)(function(){return function(){rr.forEach(function(jn){return clearTimeout(jn)}),rr.splice(0,rr.length)}},[]);var Or=function(Ii){var Hi=Ii.target,fr=Dn.current&&Dn.current.getPopupElement();if(fr&&fr.contains(Hi)){var Dr=setTimeout(function(){var xr=rr.indexOf(Dr);xr!==-1&&rr.splice(xr,1),Fe(),fr.contains(document.activeElement)||zn.current.focus()});rr.push(Dr)}if(Zt){for(var Qr=arguments.length,Nr=new Array(Qr>1?Qr-1:0),Yt=1;Yt<Qr;Yt++)Nr[Yt-1]=arguments[Yt];Zt.apply(void 0,[Ii].concat(Nr))}},Mr=Object(m.useState)(0),Wr=Object(g.a)(Mr,2),nn=Wr[0],wn=Wr[1],On=sr!==void 0?sr:it!=="combobox",Rn=function(Ii,Hi){wn(Hi),Lt&&it==="combobox"&&Ii!==null&&ei(String(Ii))},Nn=Object(m.useState)(null),yn=Object(g.a)(Nn,2),Sn=yn[0],_n=yn[1],Hn=Object(m.useState)({}),Yn=Object(g.a)(Hn,2),Zn=Yn[1];function yi(){Zn({})}f(function(){if(pi){var jn=Math.ceil(Tn.current.offsetWidth);Sn!==jn&&_n(jn)}},[pi]);var gi=m.createElement(se,{ref:qn,prefixCls:ue,id:lt,open:ea,childrenAsData:!Te,options:ri,flattenOptions:wi,multiple:pr,values:En,height:Sr,itemHeight:hr,onSelect:Vn,onToggleOpen:ln,onActiveValue:Rn,defaultActiveFirstOption:On,notFoundContent:ar,onScroll:Br,searchValue:zr,menuItemSelectedIcon:er,virtual:Ln!==!1&&Ee!==!1,onMouseEnter:yi}),Di,Ui=function(){Yr&&or.onClear&&or.onClear(),Ft&&Ft(),An([]),Li("",!1,!1)};!ct&&bt&&(yr.length||zr)&&(Di=m.createElement(t.a,{className:"".concat(ue,"-clear"),onMouseDown:Ui,customizeIcon:qe},"\xD7"));var Ei=me!==void 0?me:zt||!pr&&it!=="combobox",_i;Ei&&(_i=m.createElement(t.a,{className:a()("".concat(ue,"-arrow"),Object(I.a)({},"".concat(ue,"-arrow-loading"),zt)),customizeIcon:Rt,customizeIconProps:{loading:zt,searchValue:zr,open:ea,focused:Ce,showSearch:_r}}));var Ni=a()(ue,_e,(Z={},Object(I.a)(Z,"".concat(ue,"-focused"),Ce),Object(I.a)(Z,"".concat(ue,"-multiple"),pr),Object(I.a)(Z,"".concat(ue,"-single"),!pr),Object(I.a)(Z,"".concat(ue,"-allow-clear"),bt),Object(I.a)(Z,"".concat(ue,"-show-arrow"),Ei),Object(I.a)(Z,"".concat(ue,"-disabled"),ct),Object(I.a)(Z,"".concat(ue,"-loading"),zt),Object(I.a)(Z,"".concat(ue,"-open"),ea),Object(I.a)(Z,"".concat(ue,"-customize-input"),di),Object(I.a)(Z,"".concat(ue,"-show-search"),_r),Z));return m.createElement("div",Object.assign({className:Ni},Jr,{ref:Tn,onMouseDown:Or,onKeyDown:rn,onKeyUp:fn,onFocus:_t,onBlur:lr}),Ce&&!ea&&m.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yr.join(", "))),m.createElement(M,{ref:Dn,disabled:ct,prefixCls:ue,visible:pi,popupElement:gi,containerWidth:Sn,animation:vn,transitionName:Zr,dropdownStyle:$e,dropdownClassName:tt,direction:Bt,dropdownMatchSelectWidth:Ee,dropdownRender:Re,dropdownAlign:je,getPopupContainer:Qe,empty:!Cn.length,getTriggerDOMNode:function(){return Wt.current}},m.createElement(_,Object.assign({},X,{domRef:Wt,prefixCls:ue,inputElement:di,ref:zn,id:lt,showSearch:_r,mode:it,accessibilityIndex:nn,multiple:pr,tagRender:Rr,values:Gn,open:ea,onToggleOpen:ln,searchValue:zr,activeValue:oi,onSearch:Li,onSearchSubmit:Zi,onSelect:ti,tokenWithEnter:Ai}))),_i,Di)}var ee=m.forwardRef(Ke);return ee}},qPY4:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("u4NN"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},qWUW:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("DL4k")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="CaretDownOutlined";var c=g.forwardRef(h);k.default=c},qWt2:function(H,k,d){var I=d("ProS"),E=I.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}}});H.exports=E},qZFw:function(H,k,d){var I=d("bYtY"),E=d("6GrX"),T=d("hM6l"),g=d("4NO4"),S=g.makeInner,m=S();function h(a,r){r=r||[0,360],T.call(this,"angle",a,r),this.type="category"}h.prototype={constructor:h,pointToData:function(a,r){return this.polar.pointToData(a,r)[this.dim==="radius"?0:1]},dataToAngle:T.prototype.dataToCoord,angleToData:T.prototype.coordToData,calculateCategoryInterval:function(){var a=this,r=a.getLabelModel(),i=a.scale,n=i.getExtent(),t=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],e=a.dataToCoord(s+1)-a.dataToCoord(s),o=Math.abs(e),l=E.getBoundingRect(s,r.getFont(),"center","top"),u=Math.max(l.height,7),f=u/o;isNaN(f)&&(f=Infinity);var p=Math.max(0,Math.floor(f)),v=m(a.model),A=v.lastAutoInterval,y=v.lastTickCount;return A!=null&&y!=null&&Math.abs(A-p)<=1&&Math.abs(y-t)<=1&&A>p?p=A:(v.lastTickCount=t,v.lastAutoInterval=p),p}},I.inherits(h,T);var c=h;H.exports=c},qgGe:function(H,k,d){var I=d("bYtY"),E=d("T4UG"),T=d("Bsck"),g=d("VaxA"),S=g.wrapTreePathInfo,m=E.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(c,a){var r={name:c.name,children:c.data};h(r);var i=c.levels||[],n={};return n.levels=i,T.createTree(r,this,n).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(c){var a=E.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(c);return a.treePathInfo=S(r,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(c){c?this._viewRoot=c:c=this._viewRoot;var a=this.getRawData().tree.root;(!c||c!==a&&!a.contains(c))&&(this._viewRoot=a)}});function h(c){var a=0;I.each(c.children,function(i){h(i);var n=i.value;I.isArray(n)&&(n=n[0]),a+=n});var r=c.value;I.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=a),r<0&&(r=0),I.isArray(c.value)?c.value[0]=r:c.value=r}H.exports=m},qj72:function(H,k,d){var I=d("bYtY");function E(g,S){return S=S||[0,0],I.map(["x","y"],function(m,h){var c=this.getAxis(m),a=S[h],r=g[h]/2;return c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(a-r)-c.dataToCoord(a+r))},this)}function T(g){var S=g.grid.getRect();return{coordSys:{type:"cartesian2d",x:S.x,y:S.y,width:S.width,height:S.height},api:{coord:function(m){return g.dataToPoint(m)},size:I.bind(E,g)}}}H.exports=T},"qt/9":function(H,k,d){var I=d("ProS"),E=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var T=d("nVfU"),g=T.layout,S=d("f5Yq");d("Ae16"),I.registerLayout(E.curry(g,"pictorialBar")),I.registerVisual(S("pictorialBar","roundRect"))},qu8F:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return I.mode.CTRGladman=function(){var E=I.lib.BlockCipherMode.extend();function T(m){if((m>>24&255)===255){var h=m>>16&255,c=m>>8&255,a=m&255;h===255?(h=0,c===255?(c=0,a===255?a=0:++a):++c):++h,m=0,m+=h<<16,m+=c<<8,m+=a}else m+=1<<24;return m}function g(m){return(m[0]=T(m[0]))===0&&(m[1]=T(m[1])),m}var S=E.Encryptor=E.extend({processBlock:function(h,c){var a=this._cipher,r=a.blockSize,i=this._iv,n=this._counter;i&&(n=this._counter=i.slice(0),this._iv=void 0),g(n);var t=n.slice(0);a.encryptBlock(t,0);for(var s=0;s<r;s++)h[c+s]^=t[s]}});return E.Decryptor=S,E}(),I.mode.CTRGladman})},quyA:function(H,k){var d="\\ud800-\\udfff",I="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",T="\\u20d0-\\u20ff",g=I+E+T,S="\\ufe0e\\ufe0f",m="\\u200d",h=RegExp("["+m+d+g+S+"]");function c(a){return h.test(a)}H.exports=c},qwVE:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("K4ya"),g=d("XxSj"),S=I.PRIORITY.VISUAL.COMPONENT;I.registerVisual(S,{createOnAllSeries:!0,reset:function(h,c){var a=[];return c.eachComponent("visualMap",function(r){var i=h.pipelineContext;if(!r.isTargetSeries(h)||i&&i.large)return;a.push(T.incrementalApplyVisual(r.stateList,r.targetVisuals,E.bind(r.getValueState,r),r.getDataDimension(h.getData())))}),a}}),I.registerVisual(S,{createOnAllSeries:!0,reset:function(h,c){var a=h.getData(),r=[];c.eachComponent("visualMap",function(i){if(i.isTargetSeries(h)){var n=i.getVisualMeta(E.bind(m,null,h,i))||{stops:[],outerColors:[]},t=i.getDataDimension(a),s=a.getDimensionInfo(t);s!=null&&(n.dimension=s.index,r.push(n))}}),h.getData().setVisual("visualMeta",r)}});function m(h,c,a,r){for(var i=c.targetVisuals[r],n=g.prepareVisualTypes(i),t={color:h.getData().getVisual("color")},s=0,e=n.length;s<e;s++){var o=n[s],l=i[o==="opacity"?"__alphaForOpacity":o];l&&l.applyVisual(a,u,f)}return t.color;function u(p){return t[p]}function f(p,v){t[p]=v}}},"r+aA":function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("s2MQ")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="EyeInvisibleOutlined";var c=g.forwardRef(h);k.default=c},"r/2G":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("+Zaj"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},r6Bn:function(H,k,d){var I=d("bYtY"),E=d("ItGF"),T=d("4fz+"),g=d("BPZU");function S(c,a){return c.zlevel===a.zlevel?c.z===a.z?c.z2-a.z2:c.z-a.z:c.zlevel-a.zlevel}var m=function(){this._roots=[],this._displayList=[],this._displayListLen=0};m.prototype={constructor:m,traverse:function(a,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(a,r)},getDisplayList:function(a,r){return r=r||!1,a&&this.updateDisplayList(r),this._displayList},updateDisplayList:function(a){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,t=r.length;n<t;n++)this._updateAndAddDisplayable(r[n],null,a);i.length=this._displayListLen,E.canvasSupported&&g(i,S)},_updateAndAddDisplayable:function(a,r,i){if(a.ignore&&!i)return;a.beforeUpdate(),a.__dirty&&a.update(),a.afterUpdate();var n=a.clipPath;if(n){r?r=r.slice():r=[];for(var t=n,s=a;t;)t.parent=s,t.updateTransform(),r.push(t),s=t,t=t.clipPath}if(a.isGroup){for(var e=a._children,o=0;o<e.length;o++){var l=e[o];a.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,r,i)}a.__dirty=!1}else a.__clipPaths=r,this._displayList[this._displayListLen++]=a},addRoot:function(a){if(a.__storage===this)return;a instanceof T&&a.addChildrenToStorage(this),this.addToStorage(a),this._roots.push(a)},delRoot:function(a){if(a==null){for(var r=0;r<this._roots.length;r++){var i=this._roots[r];i instanceof T&&i.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(a instanceof Array){for(var r=0,n=a.length;r<n;r++)this.delRoot(a[r]);return}var t=I.indexOf(this._roots,a);t>=0&&(this.delFromStorage(a),this._roots.splice(t,1),a instanceof T&&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:S};var h=m;H.exports=h},rA99:function(H,k,d){var I=d("y+Vt"),E=d("QBsz"),T=d("Sj9i"),g=T.quadraticSubdivide,S=T.cubicSubdivide,m=T.quadraticAt,h=T.cubicAt,c=T.quadraticDerivativeAt,a=T.cubicDerivativeAt,r=[];function i(t,s,e){var o=t.cpx2,l=t.cpy2;return o===null||l===null?[(e?a:h)(t.x1,t.cpx1,t.cpx2,t.x2,s),(e?a:h)(t.y1,t.cpy1,t.cpy2,t.y2,s)]:[(e?c:m)(t.x1,t.cpx1,t.x2,s),(e?c:m)(t.y1,t.cpy1,t.y2,s)]}var n=I.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(s,e){var o=e.x1,l=e.y1,u=e.x2,f=e.y2,p=e.cpx1,v=e.cpy1,A=e.cpx2,y=e.cpy2,x=e.percent;if(x===0)return;s.moveTo(o,l),A==null||y==null?(x<1&&(g(o,p,u,x,r),p=r[1],u=r[2],g(l,v,f,x,r),v=r[1],f=r[2]),s.quadraticCurveTo(p,v,u,f)):(x<1&&(S(o,p,A,u,x,r),p=r[1],A=r[2],u=r[3],S(l,v,y,f,x,r),v=r[1],y=r[2],f=r[3]),s.bezierCurveTo(p,v,A,y,u,f))},pointAt:function(s){return i(this.shape,s,!1)},tangentAt:function(s){var e=i(this.shape,s,!0);return E.normalize(e,e)}});H.exports=n},rHrb:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.CopyToClipboard=void 0;var I=T(d("q1tI")),E=T(d("+QRC"));function T(f){return f&&f.__esModule?f:{default:f}}function g(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(v){return typeof v}:g=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},g(f)}function S(f,p){var v=Object.keys(f);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(f);p&&(A=A.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),v.push.apply(v,A)}return v}function m(f){for(var p=1;p<arguments.length;p++){var v=arguments[p]!=null?arguments[p]:{};p%2?S(v,!0).forEach(function(A){l(f,A,v[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(v)):S(v).forEach(function(A){Object.defineProperty(f,A,Object.getOwnPropertyDescriptor(v,A))})}return f}function h(f,p){if(f==null)return{};var v=c(f,p),A,y;if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(f);for(y=0;y<x.length;y++){if(A=x[y],p.indexOf(A)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(f,A))continue;v[A]=f[A]}}return v}function c(f,p){if(f==null)return{};var v={},A=Object.keys(f),y,x;for(x=0;x<A.length;x++){if(y=A[x],p.indexOf(y)>=0)continue;v[y]=f[y]}return v}function a(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function r(f,p){for(var v=0;v<p.length;v++){var A=p[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}function i(f,p,v){return p&&r(f.prototype,p),v&&r(f,v),f}function n(f,p){return p&&(g(p)==="object"||typeof p=="function")?p:s(f)}function t(f){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},t(f)}function s(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function e(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&o(f,p)}function o(f,p){return o=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},o(f,p)}function l(f,p,v){return p in f?Object.defineProperty(f,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):f[p]=v,f}var u=function(f){e(p,f);function p(){var v,A;a(this,p);for(var y=arguments.length,x=new Array(y),C=0;C<y;C++)x[C]=arguments[C];return A=n(this,(v=t(p)).call.apply(v,[this].concat(x))),l(s(A),"onClick",function(w){var b=A.props,_=b.text,O=b.onCopy,L=b.children,D=b.options,N=I.default.Children.only(L),M=(0,E.default)(_,D);O&&O(_,M),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(w)}),A}return i(p,[{key:"render",value:function(){var A=this.props,y=A.text,x=A.onCopy,C=A.options,w=A.children,b=h(A,["text","onCopy","options","children"]),_=I.default.Children.only(w);return I.default.cloneElement(_,m({},b,{onClick:this.onClick}))}}]),p}(I.default.PureComponent);k.CopyToClipboard=u,l(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="ReloadOutlined";var h=k.a=E.forwardRef(m)},rUJ1:function(H,k){var d=/[&<>"']/,I=/[&<>"']/g,E=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,g={"&":"&","<":"<",">":">",'"':""","'":"'"},S=function(w){return g[w]};function m(C,w){if(w){if(d.test(C))return C.replace(I,S)}else if(E.test(C))return C.replace(T,S);return C}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(C){return C.replace(h,function(w,b){return b=b.toLowerCase(),b==="colon"?":":b.charAt(0)==="#"?b.charAt(1)==="x"?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}var a=/(^|[^\[])\^/g;function r(C,w){C=C.source||C,w=w||"";var b={replace:function(O,L){return L=L.source||L,L=L.replace(a,"$1"),C=C.replace(O,L),b},getRegex:function(){return new RegExp(C,w)}};return b}var i=/[^\w:]/g,n=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function t(C,w,b){if(C){var _;try{_=decodeURIComponent(c(b)).replace(i,"").toLowerCase()}catch(O){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}w&&!n.test(b)&&(b=u(w,b));try{b=encodeURI(b).replace(/%25/g,"%")}catch(O){return null}return b}var s={},e=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(C,w){s[" "+C]||(e.test(C)?s[" "+C]=C+"/":s[" "+C]=A(C,"/",!0)),C=s[" "+C];var b=C.indexOf(":")===-1;return w.substring(0,2)==="//"?b?w:C.replace(o,"$1")+w:w.charAt(0)==="/"?b?w:C.replace(l,"$1")+w:C+w}var f={exec:function(){}};function p(C){for(var w=1,b,_;w<arguments.length;w++){b=arguments[w];for(_ in b)Object.prototype.hasOwnProperty.call(b,_)&&(C[_]=b[_])}return C}function v(C,w){var b=C.replace(/\|/g,function(L,D,N){for(var M=!1,F=D;--F>=0&&N[F]==="\\";)M=!M;return M?"|":" |"}),_=b.split(/ \|/),O=0;if(_.length>w)_.splice(w);else for(;_.length<w;)_.push("");for(;O<_.length;O++)_[O]=_[O].trim().replace(/\\\|/g,"|");return _}function A(C,w,b){var _=C.length;if(_===0)return"";for(var O=0;O<_;){var L=C.charAt(_-O-1);if(L===w&&!b)O++;else if(L!==w&&b)O++;else break}return C.substr(0,_-O)}function y(C,w){if(C.indexOf(w[1])===-1)return-1;for(var b=C.length,_=0,O=0;O<b;O++)if(C[O]==="\\")O++;else if(C[O]===w[0])_++;else if(C[O]===w[1]&&(_--,_<0))return O;return-1}function x(C){C&&C.sanitize&&!C.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")}H.exports={escape:m,unescape:c,edit:r,cleanUrl:t,resolveUrl:u,noopTest:f,merge:p,splitCells:v,rtrim:A,findClosingBracket:y,checkSanitizeDeprecation:x}},rdUC:function(H,k,d){var I=d("MFOe"),E=I.Global;H.exports={name:"localStorage",read:g,write:S,each:m,remove:h,clearAll:c};function T(){return E.localStorage}function g(a){return T().getItem(a)}function S(a,r){return T().setItem(a,r)}function m(a){for(var r=T().length-1;r>=0;r--){var i=T().key(r);a(g(i),i)}}function h(a){return T().removeItem(a)}function c(){return T().clear()}},rdor:function(H,k,d){var I=d("lOQZ"),E=I.circularLayout;function T(g){g.eachSeriesByType("graph",function(S){S.get("layout")==="circular"&&E(S,"symbolSize")})}H.exports=T},rfSb:function(H,k,d){var I=d("T4UG"),E=d("sdST"),T=d("L0Ub"),g=T.getDimensionTypeByAxis,S=d("YXkt"),m=d("bYtY"),h=d("4NO4"),c=h.groupData,a=d("7aKB"),r=a.encodeHTML,i=d("xKMd"),n=2,t=I.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){t.superApply(this,"init",arguments),this.legendVisualProvider=new i(m.bind(this.getData,this),m.bind(this.getRawData,this))},fixData:function(e){var o=e.length,l=c(e,function(N){return N[2]}),u=[];l.buckets.each(function(N,M){u.push({name:M,dataList:N})});for(var f=u.length,p=-1,v=-1,A=0;A<f;++A){var y=u[A].dataList.length;y>p&&(p=y,v=A)}for(var x=0;x<f;++x){if(x===v)continue;for(var C=u[x].name,w=0;w<p;++w){for(var b=u[v].dataList[w][0],_=u[x].dataList.length,O=-1,L=0;L<_;++L){var D=u[x].dataList[L][0];if(D===b){O=L;break}}O===-1&&(e[o]=[],e[o][0]=b,e[o][1]=0,e[o][2]=C,o++)}}return e},getInitialData:function(e,o){for(var l=o.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=l.get("type"),f=m.filter(e.data,function(b){return b[2]!==void 0}),p=this.fixData(f||[]),v=[],A=this.nameMap=m.createHashMap(),y=0,x=0;x<p.length;++x)v.push(p[x][n]),A.get(p[x][n])||(A.set(p[x][n],y),y++);var C=E(p,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:g(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),w=new S(C,this);return w.initData(p),w},getLayerSeries:function(){for(var e=this.getData(),o=e.count(),l=[],u=0;u<o;++u)l[u]=u;var f=e.mapDimension("single"),p=c(l,function(A){return e.get("name",A)}),v=[];return p.buckets.each(function(A,y){A.sort(function(x,C){return e.get(f,x)-e.get(f,C)}),v.push({name:y,indices:A})}),v},getAxisTooltipData:function(e,o,l){m.isArray(e)||(e=e?[e]:[]);for(var u=this.getData(),f=this.getLayerSeries(),p=[],v=f.length,A,y=0;y<v;++y){for(var x=Number.MAX_VALUE,C=-1,w=f[y].indices.length,b=0;b<w;++b){var _=u.get(e[0],f[y].indices[b]),O=Math.abs(_-o);O<=x&&(A=_,x=O,C=f[y].indices[b])}p.push(C)}return{dataIndices:p,nestestValue:A}},formatTooltip:function(e){var o=this.getData(),l=o.getName(e),u=o.get(o.mapDimension("value"),e);return(isNaN(u)||u==null)&&(u="-"),r(l+" : "+u)},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}}}}),s=t;H.exports=s},rkZ5:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("ProS"),g=d("c8qY"),S=d("D9ME"),m=d("fls0"),h=d("RSch"),c=d("akwb"),a=d("o40c"),r=d("ZYIC"),i=d("sK/D"),n=i.createClipPath,t=T.extendChartView({type:"lines",init:function(){},render:function(s,e,o){var l=s.getData(),u=this._updateLineDraw(l,s),f=s.get("zlevel"),p=s.get("effect.trailLength"),v=o.getZr(),A=v.painter.getType()==="svg";A||v.painter.getLayer(f).clear(!0),this._lastZlevel!=null&&!A&&v.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(s)&&p&&(A||v.configLayer(f,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),u.updateData(l);var y=s.get("clip",!0)&&n(s.coordinateSystem,!1,s);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=f,this._finished=!0},incrementalPrepareRender:function(s,e,o){var l=s.getData(),u=this._updateLineDraw(l,s);u.incrementalPrepareUpdate(l),this._clearLayer(o),this._finished=!1},incrementalRender:function(s,e,o){this._lineDraw.incrementalUpdate(s,e.getData()),this._finished=s.end===e.getData().count()},updateTransform:function(s,e,o){var l=s.getData(),u=s.pipelineContext;if(!this._finished||u.large||u.progressiveRender)return{update:!0};var f=r.reset(s);f.progress&&f.progress({start:0,end:l.count()},l),this._lineDraw.updateLayout(),this._clearLayer(o)},_updateLineDraw:function(s,e){var o=this._lineDraw,l=this._showEffect(e),u=!!e.get("polyline"),f=e.pipelineContext,p=f.large;return(!o||l!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=p?new a:new g(u?l?c:h:l?S:m),this._hasEffet=l,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(o.group),o},_showEffect:function(s){return!!s.get("effect.show")},_clearLayer:function(s){var e=s.getZr(),o=e.painter.getType()==="svg";!o&&this._lastZlevel!=null&&e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(s,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});H.exports=t},rmlV:function(H,k,d){var I=d("y+Vt"),E=I.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(g,S){var m=.5522848,h=S.cx,c=S.cy,a=S.rx,r=S.ry,i=a*m,n=r*m;g.moveTo(h-a,c),g.bezierCurveTo(h-a,c-n,h-i,c-r,h,c-r),g.bezierCurveTo(h+i,c-r,h+a,c-n,h+a,c),g.bezierCurveTo(h+a,c+n,h+i,c+r,h,c+r),g.bezierCurveTo(h-i,c+r,h-a,c+n,h-a,c),g.closePath()}});H.exports=E},rnVJ:function(H,k,d){var I=d("bYtY"),E=["rect","polygon","keep","clear"];function T(S,m){var h=S&&S.brush;if(I.isArray(h)||(h=h?[h]:[]),!h.length)return;var c=[];I.each(h,function(t){var s=t.hasOwnProperty("toolbox")?t.toolbox:[];s instanceof Array&&(c=c.concat(s))});var a=S&&S.toolbox;I.isArray(a)&&(a=a[0]),a||(a={feature:{}},S.toolbox=[a]);var r=a.feature||(a.feature={}),i=r.brush||(r.brush={}),n=i.type||(i.type=[]);n.push.apply(n,c),g(n),m&&!n.length&&n.push.apply(n,E)}function g(S){var m={};I.each(S,function(h){m[h]=1}),S.length=0,I.each(m,function(h,c){S.push(c)})}H.exports=T},rwxt:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=d("GdRQ");function E(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function T(h,c){for(var a=0;a<c.length;a++){var r=c[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}function g(h,c,a){return c&&T(h.prototype,c),a&&T(h,a),h}var S=!I.supportsCursorURIs||I.isTouchDevice,m=function(){function h(){E(this,h),this._target=null,this._canvas=document.createElement("canvas"),S&&(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 g(h,[{key:"attach",value:function(a){if(this._target&&this.detach(),this._target=a,S){document.body.appendChild(this._canvas);var r={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,r),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,r),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,r),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,r)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(S){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,r,i,n,t){if(n===0||t===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-r,this._position.y=this._position.y+this._hotSpot.y-i,this._hotSpot.x=r,this._hotSpot.y=i;var s=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=t;var e;try{e=new ImageData(new Uint8ClampedArray(a),n,t)}catch(l){e=s.createImageData(n,t),e.data.set(new Uint8ClampedArray(a))}if(s.clearRect(0,0,n,t),s.putImageData(e,0,0),S)this._updatePosition();else{var o=this._canvas.toDataURL();this._target.style.cursor="url("+o+")"+r+" "+i+", 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,r){if(!S)return;window.visualViewport?(this._position.x=a+window.visualViewport.offsetLeft,this._position.y=r+window.visualViewport.offsetTop):(this._position.x=a,this._position.y=r),this._updatePosition();var i=document.elementFromPoint(a,r);this._updateVisibility(i)}},{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 r=this,i=document.elementFromPoint(a.clientX,a.clientY);this._updateVisibility(i),this._captureIsActive()&&window.setTimeout(function(){if(!r._target)return;i=document.elementFromPoint(a.clientX,a.clientY),r._updateVisibility(i)},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}();k.default=m},rySg:function(H,k,d){d("SMc4"),d("8nMs")},s2MQ:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},s2lz:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("IwbS"),g=d("gPAo"),S=d("VaxA"),m=d("9hCq"),h=d("SgGq"),c=d("mFDi"),a=d("Fofx"),r=d("5s0K"),i=d("KCsZ"),n=d("7aKB"),t=n.windowOpen,s=E.bind,e=T.Group,o=T.Rect,l=E.each,u=3,f=["label"],p=["emphasis","label"],v=["upperLabel"],A=["emphasis","upperLabel"],y=10,x=1,C=2,w=i([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),b=function(N){var M=w(N);return M.stroke=M.fill=M.lineWidth=null,M},_=I.extendChartView({type:"treemap",init:function(N,M){this._containerGroup,this._storage=O(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(N,M,F,R){var j=M.findComponents({mainType:"series",subType:"treemap",query:R});if(E.indexOf(j,N)<0)return;this.seriesModel=N,this.api=F,this.ecModel=M;var B=["treemapZoomToNode","treemapRootToNode"],K=S.retrieveTargetInfo(R,B,N),U=R&&R.type,z=N.layoutInfo,V=!this._oldTree,Y=this._storage,J=U==="treemapRootToNode"&&K&&Y?{rootNodeGroup:Y.nodeGroup[K.node.getRawIndex()],direction:R.direction}:null,se=this._giveContainerGroup(z),$=this._doRender(se,N,J);!V&&(!U||U==="treemapZoomToNode"||U==="treemapRootToNode")?this._doAnimation(se,$,N,J):$.renderFinally(),this._resetController(F),this._renderBreadcrumb(N,F,K)},_giveContainerGroup:function(N){var M=this._containerGroup;return M||(M=this._containerGroup=new e,this._initEvents(M),this.group.add(M)),M.attr("position",[N.x,N.y]),M},_doRender:function(N,M,F){var R=M.getData().tree,j=this._oldTree,B=O(),K=O(),U=this._storage,z=[],V=E.curry(L,M,K,U,F,B,z);J(R.root?[R.root]:[],j&&j.root?[j.root]:[],N,R===j||!j,0);var Y=se(U);return this._oldTree=R,this._storage=K,{lastsForAnimation:B,willDeleteEls:Y,renderFinally:$};function J(ae,ge,pe,Ne,de){Ne?(ge=ae,l(ae,function(ce,Ke){!ce.isRemoved()&&Q(Ke,Ke)})):new g(ge,ae,Le,Le).add(Q).update(Q).remove(E.curry(Q,null)).execute();function Le(ce){return ce.getId()}function Q(ce,Ke){var ee=ce!=null?ae[ce]:null,X=Ke!=null?ge[Ke]:null,G=V(ee,X,pe,de);G&&J(ee&&ee.viewChildren||[],X&&X.viewChildren||[],G,Ne,de+1)}}function se(ae){var ge=O();return ae&&l(ae,function(pe,Ne){var de=ge[Ne];l(pe,function(Le){Le&&(de.push(Le),Le.__tmWillDelete=1)})}),ge}function $(){l(Y,function(ae){l(ae,function(ge){ge.parent&&ge.parent.remove(ge)})}),l(z,function(ae){ae.invisible=!0,ae.dirty()})}},_doAnimation:function(N,M,F,R){if(!F.get("animation"))return;var j=F.get("animationDurationUpdate"),B=F.get("animationEasing"),K=r.createWrap();l(M.willDeleteEls,function(U,z){l(U,function(V,Y){if(V.invisible)return;var J=V.parent,se;if(R&&R.direction==="drillDown")se=J===R.rootNodeGroup?{shape:{x:0,y:0,width:J.__tmNodeWidth,height:J.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var $=0,ae=0;J.__tmWillDelete||($=J.__tmNodeWidth/2,ae=J.__tmNodeHeight/2),se=z==="nodeGroup"?{position:[$,ae],style:{opacity:0}}:{shape:{x:$,y:ae,width:0,height:0},style:{opacity:0}}}se&&K.add(V,se,j,B)})}),l(this._storage,function(U,z){l(U,function(V,Y){var J=M.lastsForAnimation[z][Y],se={};if(!J)return;z==="nodeGroup"?J.old&&(se.position=V.position.slice(),V.attr("position",J.old)):(J.old&&(se.shape=E.extend({},V.shape),V.setShape(J.old)),J.fadein?(V.setStyle("opacity",0),se.style={opacity:1}):V.style.opacity!==1&&(se.style={opacity:1})),K.add(V,se,j,B)})},this),this._state="animating",K.done(s(function(){this._state="ready",M.renderFinally()},this)).start()},_resetController:function(N){var M=this._controller;M||(M=this._controller=new h(N.getZr()),M.enable(this.seriesModel.get("roam")),M.on("pan",s(this._onPan,this)),M.on("zoom",s(this._onZoom,this)));var F=new c(0,0,N.getWidth(),N.getHeight());M.setPointerChecker(function(R,j,B){return F.contain(j,B)})},_clearController:function(){var N=this._controller;N&&(N.dispose(),N=null)},_onPan:function(N){if(this._state!=="animating"&&(Math.abs(N.dx)>u||Math.abs(N.dy)>u)){var M=this.seriesModel.getData().tree.root;if(!M)return;var F=M.getLayout();if(!F)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x+N.dx,y:F.y+N.dy,width:F.width,height:F.height}})}},_onZoom:function(N){var M=N.originX,F=N.originY;if(this._state!=="animating"){var R=this.seriesModel.getData().tree.root;if(!R)return;var j=R.getLayout();if(!j)return;var B=new c(j.x,j.y,j.width,j.height),K=this.seriesModel.layoutInfo;M-=K.x,F-=K.y;var U=a.create();a.translate(U,U,[-M,-F]),a.scale(U,U,[N.scale,N.scale]),a.translate(U,U,[M,F]),B.applyTransform(U),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:B.x,y:B.y,width:B.width,height:B.height}})}},_initEvents:function(N){N.on("click",function(M){if(this._state!=="ready")return;var F=this.seriesModel.get("nodeClick",!0);if(!F)return;var R=this.findTarget(M.offsetX,M.offsetY);if(!R)return;var j=R.node;if(j.getLayout().isLeafRoot)this._rootToNode(R);else if(F==="zoomToNode")this._zoomToNode(R);else if(F==="link"){var B=j.hostTree.data.getItemModel(j.dataIndex),K=B.get("link",!0),U=B.get("target",!0)||"blank";K&&t(K,U)}},this)},_renderBreadcrumb:function(N,M,F){F||(F=N.get("leafDepth",!0)!=null?{node:N.getViewRoot()}:this.findTarget(M.getWidth()/2,M.getHeight()/2),F||(F={node:N.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new m(this.group))).render(N,M,F.node,s(R,this));function R(j){this._state!=="animating"&&(S.aboveViewRoot(N.getViewRoot(),j)?this._rootToNode({node:j}):this._zoomToNode({node:j}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=O(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(N){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:N.node})},_rootToNode:function(N){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:N.node})},findTarget:function(N,M){var F,R=this.seriesModel.getViewRoot();return R.eachNode({attr:"viewChildren",order:"preorder"},function(j){var B=this._storage.background[j.getRawIndex()];if(B){var K=B.transformCoordToLocal(N,M),U=B.shape;if(U.x<=K[0]&&K[0]<=U.x+U.width&&U.y<=K[1]&&K[1]<=U.y+U.height)F={node:j,offsetX:K[0],offsetY:K[1]};else return!1}},this),F}});function O(){return{nodeGroup:[],background:[],content:[]}}function L(N,M,F,R,j,B,K,U,z,V){if(!K)return;var Y=K.getLayout(),J=N.getData();if(J.setItemGraphicEl(K.dataIndex,null),!Y||!Y.isInView)return;var se=Y.width,$=Y.height,ae=Y.borderWidth,ge=Y.invisible,pe=K.getRawIndex(),Ne=U&&U.getRawIndex(),de=K.viewChildren,Le=Y.upperHeight,Q=de&&de.length,ce=K.getModel("itemStyle"),Ke=K.getModel("emphasis.itemStyle"),ee=fe("nodeGroup",e);if(!ee)return;if(z.add(ee),ee.attr("position",[Y.x||0,Y.y||0]),ee.__tmNodeWidth=se,ee.__tmNodeHeight=$,Y.isAboveViewRoot)return ee;var X=K.getModel(),G=fe("background",o,V,x);if(G&&ve(ee,G,Q&&Y.upperLabelHeight),Q)T.isHighDownDispatcher(ee)&&T.setAsHighDownDispatcher(ee,!1),G&&(T.setAsHighDownDispatcher(G,!0),J.setItemGraphicEl(K.dataIndex,G));else{var Z=fe("content",o,V,C);Z&&ue(ee,Z),G&&T.isHighDownDispatcher(G)&&T.setAsHighDownDispatcher(G,!1),T.setAsHighDownDispatcher(ee,!0),J.setItemGraphicEl(K.dataIndex,ee)}return ee;function ve(it,et,Oe){if(et.dataIndex=K.dataIndex,et.seriesIndex=N.seriesIndex,et.setShape({x:0,y:0,width:se,height:$}),ge)_e(et);else{et.invisible=!1;var gt=K.getVisual("borderColor",!0),Ge=Ke.get("borderColor"),wt=b(ce);wt.fill=gt;var xt=w(Ke);if(xt.fill=Ge,Oe){var Ct=se-2*ae;xe(wt,xt,gt,Ct,Le,{x:ae,y:0,width:Ct,height:Le})}else wt.text=xt.text=null;et.setStyle(wt),T.setElementHoverStyle(et,xt)}it.add(et)}function ue(it,et){et.dataIndex=K.dataIndex,et.seriesIndex=N.seriesIndex;var Oe=Math.max(se-2*ae,0),gt=Math.max($-2*ae,0);if(et.culling=!0,et.setShape({x:ae,y:ae,width:Oe,height:gt}),ge)_e(et);else{et.invisible=!1;var Ge=K.getVisual("color",!0),wt=b(ce);wt.fill=Ge;var xt=w(Ke);xe(wt,xt,Ge,Oe,gt),et.setStyle(wt),T.setElementHoverStyle(et,xt)}it.add(et)}function _e(it){!it.invisible&&B.push(it)}function xe(it,et,Oe,gt,Ge,wt){var xt=X.get("name"),Ct=X.getModel(wt?v:f),Dt=X.getModel(wt?A:p),Ht=Ct.getShallow("show");T.setLabelStyle(it,et,Ct,Dt,{defaultText:Ht?xt:null,autoColor:Oe,isRectText:!0,labelFetcher:N,labelDataIndex:K.dataIndex,labelProp:wt?"upperLabel":"label"}),oe(it,wt,Y),oe(et,wt,Y),wt&&(it.textRect=E.clone(wt)),it.truncate=Ht&&Ct.get("ellipsis")?{outerWidth:gt,outerHeight:Ge,minChar:2}:null}function oe(it,et,Oe){var gt=it.text;if(!et&&Oe.isLeafRoot&>!=null){var Ge=N.get("drillDownIcon",!0);it.text=Ge?Ge+" "+gt:gt}}function fe(it,et,Oe,gt){var Ge=Ne!=null&&F[it][Ne],wt=j[it];return Ge?(F[it][Ne]=null,Te(wt,Ge,it)):ge||(Ge=new et({z:D(Oe,gt)}),Ge.__tmDepth=Oe,Ge.__tmStorageName=it,ze(wt,Ge,it)),M[it][pe]=Ge}function Te(it,et,Oe){var gt=it[pe]={};gt.old=Oe==="nodeGroup"?et.position.slice():E.extend({},et.shape)}function ze(it,et,Oe){var gt=it[pe]={},Ge=K.parentNode;if(Ge&&(!R||R.direction==="drillDown")){var wt=0,xt=0,Ct=j.background[Ge.getRawIndex()];!R&&Ct&&Ct.old&&(wt=Ct.old.width,xt=Ct.old.height),gt.old=Oe==="nodeGroup"?[0,xt]:{x:wt,y:xt,width:0,height:0}}gt.fadein=Oe!=="nodeGroup"}}function D(N,M){var F=N*y+M;return(F-1)/F}H.exports=_},sAZ8:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("+rIm"),g=d("/IIm"),S=d("9KIM"),m=d("IwbS"),h=["axisLine","axisTickLabel","axisName"],c=I.extendComponentView({type:"parallelAxis",init:function(t,s){c.superApply(this,"init",arguments),(this._brushController=new g(s.getZr())).on("brush",E.bind(this._onBrush,this))},render:function(t,s,e,o){if(a(t,s,o))return;this.axisModel=t,this.api=e,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new m.Group,this.group.add(this._axisGroup),!t.get("show"))return;var u=i(t,s),f=u.coordinateSystem,p=t.getAreaSelectStyle(),v=p.width,A=t.axis.dim,y=f.getAxisLayout(A),x=E.extend({strokeContainThreshold:v},y),C=new T(t,x);E.each(h,C.add,C),this._axisGroup.add(C.getGroup()),this._refreshBrushController(x,p,t,u,v,e);var w=o&&o.animation===!1?null:t;m.groupTransition(l,this._axisGroup,w)},_refreshBrushController:function(t,s,e,o,l,u){var f=e.axis.getExtent(),p=f[1]-f[0],v=Math.min(30,Math.abs(p)*.1),A=m.BoundingRect.create({x:f[0],y:-l/2,width:p,height:l});A.x-=v,A.width+=2*v,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:S.makeRectPanelClipPath(A),isTargetByCursor:S.makeRectIsTargetByCursor(A,u,o),getLinearBrushOtherExtent:S.makeLinearBrushOtherExtent(A,0)}]).enableBrush({brushType:"lineX",brushStyle:s,removeOnClick:!0}).updateCovers(r(e))},_onBrush:function(t,s){var e=this.axisModel,o=e.axis,l=E.map(t,function(u){return[o.coordToData(u.range[0],!0),o.coordToData(u.range[1],!0)]});(!e.option.realtime===s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:e.id,intervals:l})},dispose:function(){this._brushController.dispose()}});function a(t,s,e){return e&&e.type==="axisAreaSelect"&&s.findComponents({mainType:"parallelAxis",query:e})[0]===t}function r(t){var s=t.axis;return E.map(t.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(e[0],!0),s.dataToCoord(e[1],!0)]}})}function i(t,s){return s.getComponent("parallel",t.get("parallelIndex"))}var n=c;H.exports=n},sE09:function(H,k,d){},sGsY:function(H,k,d){"use strict";var I=d("lSNA"),E=d.n(I),T=d("pVnL"),g=d.n(T),S=d("q1tI"),m=d("TSYQ"),h=d.n(m),c=d("H84U"),a=d("B6l+"),r=d.n(a),i=function(K){var U=K.value,z=K.formatter,V=K.precision,Y=K.decimalSeparator,J=K.groupSeparator,se=J===void 0?"":J,$=K.prefixCls,ae;if(typeof z=="function")ae=z(U);else{var ge=String(U),pe=ge.match(/^(-?)(\d*)(\.(\d+))?$/);if(!pe||ge==="-")ae=ge;else{var Ne=pe[1],de=pe[2]||"0",Le=pe[4]||"";de=de.replace(/\B(?=(\d{3})+(?!\d))/g,se),typeof V=="number"&&(Le=r()(Le,V,"0").slice(0,V)),Le&&(Le="".concat(Y).concat(Le)),ae=[S.createElement("span",{key:"int",className:"".concat($,"-content-value-int")},Ne,de),Le&&S.createElement("span",{key:"decimal",className:"".concat($,"-content-value-decimal")},Le)]}}return S.createElement("span",{className:"".concat($,"-content-value")},ae)},n=i,t=function(K){var U=K.prefixCls,z=K.className,V=K.style,Y=K.valueStyle,J=K.value,se=J===void 0?0:J,$=K.title,ae=K.valueRender,ge=K.prefix,pe=K.suffix,Ne=K.direction,de=K.onMouseEnter,Le=K.onMouseLeave,Q=S.createElement(n,g()({},K,{value:se})),ce=h()(U,z,E()({},"".concat(U,"-rtl"),Ne==="rtl"));return S.createElement("div",{className:ce,style:V,onMouseEnter:de,onMouseLeave:Le},$&&S.createElement("div",{className:"".concat(U,"-title")},$),S.createElement("div",{style:Y,className:"".concat(U,"-content")},ge&&S.createElement("span",{className:"".concat(U,"-content-prefix")},ge),ae?ae(Q):Q,pe&&S.createElement("span",{className:"".concat(U,"-content-suffix")},pe)))};t.defaultProps={decimalSeparator:".",groupSeparator:","};var s=Object(c.c)({prefixCls:"statistic"})(t),e=s,o=d("lwsE"),l=d.n(o),u=d("W8MJ"),f=d.n(u),p=d("7W2i"),v=d.n(p),A=d("LQ03"),y=d.n(A),x=d("J4zp"),C=d.n(x),w=d("QQZ/"),b=d.n(w),_=[["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 O(B,K){var U=B,z=/\[[^\]]*]/g,V=(K.match(z)||[]).map(function($){return $.slice(1,-1)}),Y=K.replace(z,"[]"),J=_.reduce(function($,ae){var ge=C()(ae,2),pe=ge[0],Ne=ge[1];if($.indexOf(pe)!==-1){var de=Math.floor(U/Ne);return U-=de*Ne,$.replace(new RegExp("".concat(pe,"+"),"g"),function(Le){var Q=Le.length;return b()(de.toString(),Q,"0")})}return $},Y),se=0;return J.replace(z,function(){var $=V[se];return se+=1,$})}function L(B,K){var U=K.format,z=U===void 0?"":U,V=new Date(B).getTime(),Y=Date.now(),J=Math.max(V-Y,0);return O(J,z)}var D=d("0n0R"),N=1e3/30;function M(B){return new Date(B).getTime()}var F=function(B){v()(U,B);var K=y()(U);function U(){var z;return l()(this,U),z=K.apply(this,arguments),z.syncTimer=function(){var V=z.props.value,Y=M(V);Y>=Date.now()?z.startTimer():z.stopTimer()},z.startTimer=function(){if(z.countdownId)return;z.countdownId=window.setInterval(function(){z.forceUpdate()},N)},z.stopTimer=function(){var V=z.props,Y=V.onFinish,J=V.value;if(z.countdownId){clearInterval(z.countdownId),z.countdownId=void 0;var se=M(J);Y&&se<Date.now()&&Y()}},z.formatCountdown=function(V,Y){var J=z.props.format;return L(V,g()(g()({},Y),{format:J}))},z.valueRender=function(V){return Object(D.a)(V,{title:void 0})},z}return f()(U,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return S.createElement(e,g()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),U}(S.Component);F.defaultProps={format:"HH:mm:ss"};var R=F;e.Countdown=R;var j=k.a=e},"sK/D":function(H,k,d){var I=d("IwbS"),E=d("OELB"),T=E.round;function g(h,c,a){var r=h.getArea(),i=h.getBaseAxis().isHorizontal(),n=r.x,t=r.y,s=r.width,e=r.height,o=a.get("lineStyle.width")||2;n-=o/2,t-=o/2,s+=o,e+=o,n=Math.floor(n),s=Math.round(s);var l=new I.Rect({shape:{x:n,y:t,width:s,height:e}});return c&&(l.shape[i?"width":"height"]=0,I.initProps(l,{shape:{width:s,height:e}},a)),l}function S(h,c,a){var r=h.getArea(),i=new I.Sector({shape:{cx:T(h.cx,1),cy:T(h.cy,1),r0:T(r.r0,1),r:T(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return c&&(i.shape.endAngle=r.startAngle,I.initProps(i,{shape:{endAngle:r.endAngle}},a)),i}function m(h,c,a){if(h){if(h.type==="polar")return S(h,c,a);if(h.type==="cartesian2d")return g(h,c,a)}else return null;return null}k.createGridClipPath=g,k.createPolarClipPath=S,k.createClipPath=m},sKgW:function(H,k){var d=9007199254740991,I=Math.floor;function E(T,g){var S="";if(!T||g<1||g>d)return S;do g%2&&(S+=T),g=I(g/2),g&&(T+=T);while(g);return S}H.exports=E},sPJy:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("AOa7"),g=d.n(T),S=d("lUTK"),m=d("qVdP")},sPtV:function(H,k,d){"use strict";d.d(k,"a",function(){return g});var I=d("q1tI"),E=d.n(I),T=d("hkKa");function g(S){var m=I.useRef(S),h=Object(T.a)();return[function(){return m.current},function(c){m.current=c,h()}]}},sRwP:function(H,k,d){d("jsU+"),d("2548"),d("Tp9H"),d("06DH"),d("dnwI"),d("fE02"),d("33Ds")},"sS/r":function(H,k,d){var I=d("4fz+"),E=d("iRjW"),T=d("Yl7c"),g=function(){this.group=new I,this.uid=E.getUID("viewComponent")};g.prototype={constructor:g,init:function(h,c){},render:function(h,c,a,r){},dispose:function(){},filterForExposedEvent:null};var S=g.prototype;S.updateView=S.updateLayout=S.updateVisual=function(h,c,a,r){},T.enableClassExtend(g),T.enableClassManagement(g,{registerWhenExtend:!0});var m=g;H.exports=m},"sW+o":function(H,k,d){var I=d("SrGk"),E=d("bYtY"),T=d("SUKs"),g=d("Qe9p");function S(h,c){I.call(this,h,c,["linearGradient","radialGradient"],"__gradient_in_use__")}E.inherits(S,I),S.prototype.addWithoutUpdate=function(h,c){if(c&&c.style){var a=this;E.each(["fill","stroke"],function(r){if(c.style[r]&&(c.style[r].type==="linear"||c.style[r].type==="radial")){var i=c.style[r],n=a.getDefs(!0),t;i._dom?(t=i._dom,n.contains(i._dom)||a.addDom(t)):t=a.add(i),a.markUsed(c);var s=t.getAttribute("id");h.setAttribute(r,"url(#"+s+")")}})}},S.prototype.add=function(h){var c;if(h.type==="linear")c=this.createElement("linearGradient");else if(h.type==="radial")c=this.createElement("radialGradient");else return T("Illegal gradient type."),null;return h.id=h.id||this.nextId++,c.setAttribute("id","zr"+this._zrId+"-gradient-"+h.id),this.updateDom(h,c),this.addDom(c),c},S.prototype.update=function(h){var c=this;I.prototype.update.call(this,h,function(){var a=h.type,r=h._dom.tagName;a==="linear"&&r==="linearGradient"||a==="radial"&&r==="radialGradient"?c.updateDom(h,h._dom):(c.removeDom(h),c.add(h))})},S.prototype.updateDom=function(h,c){if(h.type==="linear")c.setAttribute("x1",h.x),c.setAttribute("y1",h.y),c.setAttribute("x2",h.x2),c.setAttribute("y2",h.y2);else if(h.type==="radial")c.setAttribute("cx",h.x),c.setAttribute("cy",h.y),c.setAttribute("r",h.r);else{T("Illegal gradient type.");return}h.global?c.setAttribute("gradientUnits","userSpaceOnUse"):c.setAttribute("gradientUnits","objectBoundingBox"),c.innerHTML="";for(var a=h.colorStops,r=0,i=a.length;r<i;++r){var n=this.createElement("stop");n.setAttribute("offset",a[r].offset*100+"%");var t=a[r].color;if(t.indexOf("rgba">-1)){var s=g.parse(t)[3],e=g.toHex(t);n.setAttribute("stop-color","#"+e),n.setAttribute("stop-opacity",s)}else n.setAttribute("stop-color",a[r].color);c.appendChild(n)}h._dom=c},S.prototype.markUsed=function(h){if(h.style){var c=h.style.fill;c&&c._dom&&I.prototype.markUsed.call(this,c._dom),c=h.style.stroke,c&&c._dom&&I.prototype.markUsed.call(this,c._dom)}};var m=S;H.exports=m},sboe:function(H,k,d){"use strict";d.d(k,"a",function(){return T});var I=d("q1tI"),E=d.n(I),T=I.createContext(null)},sdST:function(H,k,d){var I=d("hi0g");function E(T,g){return g=g||{},I(g.coordDimensions||[],T,{dimsDef:g.dimensionsDefine||T.dimensionsDefine,encodeDef:g.encodeDefine||T.encodeDefine,dimCount:g.dimensionsCount,encodeDefaulter:g.encodeDefaulter,generateCoord:g.generateCoord,generateCoordCount:g.generateCoordCount})}H.exports=E},sjKO:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=T;var I=30,E=12;function T(g,S){var m,h,c,a,r,i,n,t,s,e,o,l,u,f,p,v,A,y,x,C,w,b,_,O,L;m=g.state,h=g.next_in,O=g.input,c=h+(g.avail_in-5),a=g.next_out,L=g.output,r=a-(S-g.avail_out),i=a+(g.avail_out-257),n=m.dmax,t=m.wsize,s=m.whave,e=m.wnext,o=m.window,l=m.hold,u=m.bits,f=m.lencode,p=m.distcode,v=(1<<m.lenbits)-1,A=(1<<m.distbits)-1;e:do{u<15&&(l+=O[h++]<<u,u+=8,l+=O[h++]<<u,u+=8),y=f[l&v];t:for(;;){if(x=y>>>24,l>>>=x,u-=x,x=y>>>16&255,x===0)L[a++]=y&65535;else if(x&16){C=y&65535,x&=15,x&&(u<x&&(l+=O[h++]<<u,u+=8),C+=l&(1<<x)-1,l>>>=x,u-=x),u<15&&(l+=O[h++]<<u,u+=8,l+=O[h++]<<u,u+=8),y=p[l&A];r:for(;;){if(x=y>>>24,l>>>=x,u-=x,x=y>>>16&255,x&16){if(w=y&65535,x&=15,u<x&&(l+=O[h++]<<u,u+=8,u<x&&(l+=O[h++]<<u,u+=8)),w+=l&(1<<x)-1,w>n){g.msg="invalid distance too far back",m.mode=I;break e}if(l>>>=x,u-=x,x=a-r,w>x){if(x=w-x,x>s&&m.sane){g.msg="invalid distance too far back",m.mode=I;break e}if(b=0,_=o,e===0){if(b+=t-x,x<C){C-=x;do L[a++]=o[b++];while(--x);b=a-w,_=L}}else if(e<x){if(b+=t+e-x,x-=e,x<C){C-=x;do L[a++]=o[b++];while(--x);if(b=0,e<C){x=e,C-=x;do L[a++]=o[b++];while(--x);b=a-w,_=L}}}else if(b+=e-x,x<C){C-=x;do L[a++]=o[b++];while(--x);b=a-w,_=L}for(;C>2;)L[a++]=_[b++],L[a++]=_[b++],L[a++]=_[b++],C-=3;C&&(L[a++]=_[b++],C>1&&(L[a++]=_[b++]))}else{b=a-w;do L[a++]=L[b++],L[a++]=L[b++],L[a++]=L[b++],C-=3;while(C>2);C&&(L[a++]=L[b++],C>1&&(L[a++]=L[b++]))}}else if((x&64)===0){y=p[(y&65535)+(l&(1<<x)-1)];continue r}else{g.msg="invalid distance code",m.mode=I;break e}break}}else if((x&64)===0){y=f[(y&65535)+(l&(1<<x)-1)];continue t}else if(x&32){m.mode=E;break e}else{g.msg="invalid literal/length code",m.mode=I;break e}break}}while(h<c&&a<i);C=u>>3,h-=C,u-=C<<3,l&=(1<<u)-1,g.next_in=h,g.next_out=a,g.avail_in=h<c?5+(c-h):5-(h-c),g.avail_out=a<i?257+(i-a):257-(a-i),m.hold=l,m.bits=u;return}},szbU:function(H,k,d){var I=d("bYtY"),E=I.each;function T(S){var m=S&&S.visualMap;I.isArray(m)||(m=m?[m]:[]),E(m,function(h){if(!h)return;g(h,"splitList")&&!g(h,"pieces")&&(h.pieces=h.splitList,delete h.splitList);var c=h.pieces;c&&I.isArray(c)&&E(c,function(a){I.isObject(a)&&(g(a,"start")&&!g(a,"min")&&(a.min=a.start),g(a,"end")&&!g(a,"max")&&(a.max=a.end))})})}function g(S,m){return S&&S.hasOwnProperty&&S.hasOwnProperty(m)}H.exports=T},t23M:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("1OyB"),T=d("vuIU"),g=d("Ji7U"),S=d("LK+K"),m=d("q1tI"),h=d.n(m),c=d("m+aA"),a=d("Zm9Q"),r=d("Kwbf"),i=d("c+Xe"),n=d("bdgK"),t="rc-observer-key",s=function(e){Object(g.a)(l,e);var o=Object(S.a)(l);function l(){var u;return Object(E.a)(this,l),u=o.apply(this,arguments),u.resizeObserver=null,u.childNode=null,u.currentElement=null,u.state={width:0,height:0,offsetHeight:0,offsetWidth:0},u.onResize=function(f){var p=u.props.onResize,v=f[0].target,A=v.getBoundingClientRect(),y=A.width,x=A.height,C=v.offsetWidth,w=v.offsetHeight,b=Math.floor(y),_=Math.floor(x);if(u.state.width!==b||u.state.height!==_||u.state.offsetWidth!==C||u.state.offsetHeight!==w){var O={width:b,height:_,offsetWidth:C,offsetHeight:w};u.setState(O),p&&Promise.resolve().then(function(){p(Object(I.a)(Object(I.a)({},O),{},{offsetWidth:C,offsetHeight:w}))})}},u.setChildNode=function(f){u.childNode=f},u}return Object(T.a)(l,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var f=this.props.disabled;if(f){this.destroyObserver();return}var p=Object(c.a)(this.childNode||this),v=p!==this.currentElement;v&&(this.destroyObserver(),this.currentElement=p),!this.resizeObserver&&p&&(this.resizeObserver=new n.default(this.onResize),this.resizeObserver.observe(p))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var f=this.props.children,p=Object(a.a)(f);if(p.length>1)Object(r.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(p.length===0)return Object(r.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var v=p[0];if(m.isValidElement(v)&&Object(i.c)(v)){var A=v.ref;p[0]=m.cloneElement(v,{ref:Object(i.a)(A,this.setChildNode)})}return p.length===1?p[0]:p.map(function(y,x){return!m.isValidElement(y)||"key"in y&&y.key!==null?y:m.cloneElement(y,{key:"".concat(t,"-").concat(x)})})}}]),l}(m.Component);s.displayName="ResizeObserver",k.a=s},t3Fx:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(o[f]=u[f])}return o},E=function(){function o(l,u){for(var f=0;f<u.length;f++){var p=u[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,p.key,p)}}return function(l,u,f){return u&&o(l.prototype,u),f&&o(l,f),l}}(),T=d("q1tI"),g=i(T),S=d("17x9"),m=i(S),h=d("tkwv"),c=i(h),a=d("u3os"),r=d("kzFp");function i(o){return o&&o.__esModule?o:{default:o}}function n(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function t(o,l){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:o}function s(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(o,l):o.__proto__=l)}var e=function(o){s(l,o);function l(u){n(this,l);var f=t(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,u));return f.getEchartsInstance=function(){return f.echartsLib.getInstanceByDom(f.echartsElement)||f.echartsLib.init(f.echartsElement,f.props.theme,f.props.opts)},f.dispose=function(){if(f.echartsElement){try{(0,a.clear)(f.echartsElement)}catch(p){console.warn(p)}f.echartsLib.dispose(f.echartsElement)}},f.rerender=function(){var p=f.props,v=p.onEvents,A=p.onChartReady,y=f.renderEchartDom();f.bindEvents(y,v||{}),typeof A=="function"&&f.props.onChartReady(y),f.echartsElement&&(0,a.bind)(f.echartsElement,function(){try{y.resize()}catch(x){console.warn(x)}})},f.bindEvents=function(p,v){var A=function(C,w){typeof C=="string"&&typeof w=="function"&&p.on(C,function(b){w(b,p)})};for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&A(y,v[y])},f.renderEchartDom=function(){var p=f.getEchartsInstance();return p.setOption(f.props.option,f.props.notMerge||!1,f.props.lazyUpdate||!1),f.props.showLoading?p.showLoading(f.props.loadingOption||null):p.hideLoading(),p},f.echartsLib=u.echarts,f.echartsElement=null,f}return E(l,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(f){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(f,this.props))return;if(!(0,c.default)(f.theme,this.props.theme)||!(0,c.default)(f.opts,this.props.opts)||!(0,c.default)(f.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,c.default)((0,r.pick)(this.props,p),(0,r.pick)(f,p)))return;var v=this.renderEchartDom();if(!(0,c.default)(f.style,this.props.style)||!(0,c.default)(f.className,this.props.className))try{v.resize()}catch(A){console.warn(A)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var f=this,p=this.props,v=p.style,A=p.className,y=I({height:300},v);return g.default.createElement("div",{ref:function(C){f.echartsElement=C},style:y,className:"echarts-for-react "+A})}}]),l}(T.Component);k.default=e,e.propTypes={option:m.default.object.isRequired,echarts:m.default.object,notMerge:m.default.bool,lazyUpdate:m.default.bool,style:m.default.object,className:m.default.string,theme:m.default.oneOfType([m.default.string,m.default.object]),onChartReady:m.default.func,showLoading:m.default.bool,loadingOption:m.default.object,onEvents:m.default.object,opts:m.default.shape({devicePixelRatio:m.default.number,renderer:m.default.oneOf(["canvas","svg"]),width:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])]),height:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:m.default.func},e.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(H,k,d){var I=d("bYtY"),E=d("IwbS"),T=d("Qxkt"),g=d("Znkb"),S=d("+rIm"),m=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function h(i,n,t){n[1]>n[0]&&(n=n.slice().reverse());var s=i.coordToPoint([n[0],t]),e=i.coordToPoint([n[1],t]);return{x1:s[0],y1:s[1],x2:e[0],y2:e[1]}}function c(i){var n=i.getRadiusAxis();return n.inverse?0:1}function a(i){var n=i[0],t=i[i.length-1];n&&t&&Math.abs(Math.abs(n.coord-t.coord)-360)<1e-4&&i.pop()}var r=g.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(i,n){if(this.group.removeAll(),!i.get("show"))return;var t=i.axis,s=t.polar,e=s.getRadiusAxis().getExtent(),o=t.getTicksCoords(),l=t.getMinorTicksCoords(),u=I.map(t.getViewLabels(),function(f){var f=I.clone(f);return f.coord=t.dataToCoord(f.tickValue),f});a(u),a(o),I.each(m,function(f){i.get(f+".show")&&(!t.scale.isBlank()||f==="axisLine")&&this["_"+f](i,s,o,l,e,u)},this)},_axisLine:function(i,n,t,s,e){var o=i.getModel("axisLine.lineStyle"),l=c(n),u=l?0:1,f;e[u]===0?f=new E.Circle({shape:{cx:n.cx,cy:n.cy,r:e[l]},style:o.getLineStyle(),z2:1,silent:!0}):f=new E.Ring({shape:{cx:n.cx,cy:n.cy,r:e[l],r0:e[u]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,this.group.add(f)},_axisTick:function(i,n,t,s,e){var o=i.getModel("axisTick"),l=(o.get("inside")?-1:1)*o.get("length"),u=e[c(n)],f=I.map(t,function(p){return new E.Line({shape:h(n,[u,u+l],p.coord)})});this.group.add(E.mergePath(f,{style:I.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")})}))},_minorTick:function(i,n,t,s,e){if(!s.length)return;for(var o=i.getModel("axisTick"),l=i.getModel("minorTick"),u=(o.get("inside")?-1:1)*l.get("length"),f=e[c(n)],p=[],v=0;v<s.length;v++)for(var A=0;A<s[v].length;A++)p.push(new E.Line({shape:h(n,[f,f+u],s[v][A].coord)}));this.group.add(E.mergePath(p,{style:I.defaults(l.getModel("lineStyle").getLineStyle(),I.defaults(o.getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(i,n,t,s,e,o){var l=i.getCategories(!0),u=i.getModel("axisLabel"),f=u.get("margin"),p=i.get("triggerEvent");I.each(o,function(v,A){var y=u,x=v.tickValue,C=e[c(n)],w=n.coordToPoint([C+f,v.coord]),b=n.cx,_=n.cy,O=Math.abs(w[0]-b)/C<.3?"center":w[0]>b?"left":"right",L=Math.abs(w[1]-_)/C<.3?"middle":w[1]>_?"top":"bottom";l&&l[x]&&l[x].textStyle&&(y=new T(l[x].textStyle,u,u.ecModel));var D=new E.Text({silent:S.isLabelSilent(i)});this.group.add(D),E.setTextStyle(D.style,y,{x:w[0],y:w[1],textFill:y.getTextColor()||i.get("axisLine.lineStyle.color"),text:v.formattedLabel,textAlign:O,textVerticalAlign:L}),p&&(D.eventData=S.makeAxisEventDataBase(i),D.eventData.targetType="axisLabel",D.eventData.value=v.rawLabel)},this)},_splitLine:function(i,n,t,s,e){var o=i.getModel("splitLine"),l=o.getModel("lineStyle"),u=l.get("color"),f=0;u=u instanceof Array?u:[u];for(var p=[],v=0;v<t.length;v++){var A=f++%u.length;p[A]=p[A]||[],p[A].push(new E.Line({shape:h(n,e,t[v].coord)}))}for(var v=0;v<p.length;v++)this.group.add(E.mergePath(p[v],{style:I.defaults({stroke:u[v%u.length]},l.getLineStyle()),silent:!0,z:i.get("z")}))},_minorSplitLine:function(i,n,t,s,e){if(!s.length)return;for(var o=i.getModel("minorSplitLine"),l=o.getModel("lineStyle"),u=[],f=0;f<s.length;f++)for(var p=0;p<s[f].length;p++)u.push(new E.Line({shape:h(n,e,s[f][p].coord)}));this.group.add(E.mergePath(u,{style:l.getLineStyle(),silent:!0,z:i.get("z")}))},_splitArea:function(i,n,t,s,e){if(!t.length)return;var o=i.getModel("splitArea"),l=o.getModel("areaStyle"),u=l.get("color"),f=0;u=u instanceof Array?u:[u];for(var p=[],v=Math.PI/180,A=-t[0].coord*v,y=Math.min(e[0],e[1]),x=Math.max(e[0],e[1]),C=i.get("clockwise"),w=1;w<t.length;w++){var b=f++%u.length;p[b]=p[b]||[],p[b].push(new E.Sector({shape:{cx:n.cx,cy:n.cy,r0:y,r:x,startAngle:A,endAngle:-t[w].coord*v,clockwise:C},silent:!0})),A=-t[w].coord*v}for(var w=0;w<p.length;w++)this.group.add(E.mergePath(p[w],{style:I.defaults({fill:u[w%u.length]},l.getAreaStyle()),silent:!0}))}});H.exports=r},tSko:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("SRve")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="PlusOutlined";var c=g.forwardRef(h);k.default=c},tceW:function(H,k,d){var I=d("KCsZ"),E=I([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),T={getBarItemStyle:function(g){var S=E(this,g);if(this.getBorderLineDash){var m=this.getBorderLineDash();m&&(S.lineDash=m)}return S}};H.exports=T},tkwv:function(H,k,d){"use strict";var I=Array.isArray,E=Object.keys,T=Object.prototype.hasOwnProperty;H.exports=function g(S,m){if(S===m)return!0;if(S&&m&&typeof S=="object"&&typeof m=="object"){var h=I(S),c=I(m),a,r,i;if(h&&c){if(r=S.length,r!=m.length)return!1;for(a=r;a--!==0;)if(!g(S[a],m[a]))return!1;return!0}if(h!=c)return!1;var n=S instanceof Date,t=m instanceof Date;if(n!=t)return!1;if(n&&t)return S.getTime()==m.getTime();var s=S instanceof RegExp,e=m instanceof RegExp;if(s!=e)return!1;if(s&&e)return S.toString()==m.toString();var o=E(S);if(r=o.length,r!==E(m).length)return!1;for(a=r;a--!==0;)if(!T.call(m,o[a]))return!1;for(a=r;a--!==0;)if(i=o[a],!g(S[i],m[i]))return!1;return!0}return S!==S&&m!==m}},txkQ:function(H,k,d){var I=d("aX58");k.zrender=I;var E=d("Fofx");k.matrix=E;var T=d("QBsz");k.vector=T;var g=d("bYtY"),S=d("Qe9p");k.color=S;var m=d("IwbS"),h=d("OELB");k.number=h;var c=d("7aKB");k.format=c;var a=d("iLNv"),r=a.throttle;k.throttle=a.throttle;var i=d("FUi9");k.helper=i;var n=d("vafp");k.parseGeoJSON=n;var t=d("YXkt");k.List=t;var s=d("Qxkt");k.Model=s;var e=d("hM6l");k.Axis=e;var o=d("ItGF");k.env=o;var l=n,u={};g.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(p){u[p]=g[p]});var f={};g.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(p){f[p]=m[p]}),k.parseGeoJson=l,k.util=u,k.graphic=f},u3DP:function(H,k,d){var I=d("6GrX"),E=d("OELB"),T=E.parsePercent,g=Math.PI/180;function S(a,r,i,n,t,s,e,o,l,u){a.sort(function(O,L){return O.y-L.y});function f(O,L,D,N){for(var M=O;M<L&&!(a[M].y+D>l+e);M++)if(a[M].y+=D,M>O&&M+1<L&&a[M+1].y>a[M].y+a[M].height){p(M,D/2);return}p(L-1,D/2)}function p(O,L){for(var D=O;D>=0&&!(a[D].y-L<l);D--)if(a[D].y-=L,D>0&&a[D].y>a[D-1].y+a[D-1].height)break}function v(O,L,D,N,M,F){for(var R=(F>0,L?Number.MAX_VALUE:0),j=0,B=O.length;j<B;j++){if(O[j].labelAlignTo!=="none")continue;var K=Math.abs(O[j].y-N),U=O[j].len,z=O[j].len2,V=K<M+U?Math.sqrt((M+U+z)*(M+U+z)-K*K):Math.abs(O[j].x-D);L&&V>=R&&(V=R-10),!L&&V<=R&&(V=R+10),O[j].x=D+V*F,R=V}}for(var A=0,y,x=a.length,C=[],w=[],b=0;b<x;b++){if(a[b].position==="outer"&&a[b].labelAlignTo==="labelLine"){var _=a[b].x-u;a[b].linePoints[1][0]+=_,a[b].x=u}y=a[b].y-A,y<0&&f(b,x,-y,t),A=a[b].y+a[b].height}e-A<0&&p(x-1,A-e);for(var b=0;b<x;b++)a[b].y>=i?w.push(a[b]):C.push(a[b]);v(C,!1,r,i,n,t),v(w,!0,r,i,n,t)}function m(a,r,i,n,t,s,e,o){for(var l=[],u=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,v=0;v<a.length;v++){if(h(a[v]))continue;a[v].x<r?(f=Math.min(f,a[v].x),l.push(a[v])):(p=Math.max(p,a[v].x),u.push(a[v]))}S(u,r,i,n,1,t,s,e,o,p),S(l,r,i,n,-1,t,s,e,o,f);for(var v=0;v<a.length;v++){var A=a[v];if(h(A))continue;var y=A.linePoints;if(y){var x=A.labelAlignTo==="edge",C=A.textRect.width,w;x?A.x<r?w=y[2][0]-A.labelDistance-e-A.labelMargin:w=e+t-A.labelMargin-y[2][0]-A.labelDistance:A.x<r?w=A.x-e-A.bleedMargin:w=e+t-A.x-A.bleedMargin,w<A.textRect.width&&(A.text=I.truncateText(A.text,w,A.font),A.labelAlignTo==="edge"&&(C=I.getWidth(A.text,A.font)));var b=y[1][0]-y[2][0];x?A.x<r?y[2][0]=e+A.labelMargin+C+A.labelDistance:y[2][0]=e+t-A.labelMargin-C-A.labelDistance:(A.x<r?y[2][0]=A.x+A.labelDistance:y[2][0]=A.x-A.labelDistance,y[1][0]=y[2][0]+b),y[1][1]=y[2][1]=A.y}}}function h(a){return a.position==="center"}function c(a,r,i,n,t,s){var e=a.getData(),o=[],l,u,f=!1,p=(a.get("minShowLabelAngle")||0)*g;e.each(function(v){var A=e.getItemLayout(v),y=e.getItemModel(v),x=y.getModel("label"),C=x.get("position")||y.get("emphasis.label.position"),w=x.get("distanceToLabelLine"),b=x.get("alignTo"),_=T(x.get("margin"),i),O=x.get("bleedMargin"),L=x.getFont(),D=y.getModel("labelLine"),N=D.get("length");N=T(N,i);var M=D.get("length2");if(M=T(M,i),A.angle<p)return;var F=(A.startAngle+A.endAngle)/2,R=Math.cos(F),j=Math.sin(F),B,K,U,z;l=A.cx,u=A.cy;var V=a.getFormattedLabel(v,"normal")||e.getName(v),Y=I.getBoundingRect(V,L,z,"top"),J=C==="inside"||C==="inner";if(C==="center")B=A.cx,K=A.cy,z="center";else{var se=(J?(A.r+A.r0)/2*R:A.r*R)+l,$=(J?(A.r+A.r0)/2*j:A.r*j)+u;if(B=se+R*3,K=$+j*3,!J){var ae=se+R*(N+r-A.r),ge=$+j*(N+r-A.r),pe=ae+(R<0?-1:1)*M,Ne=ge;b==="edge"?B=R<0?t+_:t+i-_:B=pe+(R<0?-w:w),K=Ne,U=[[se,$],[ae,ge],[pe,Ne]]}z=J?"center":b==="edge"?R>0?"right":"left":R>0?"left":"right"}var de,Le=x.get("rotate");typeof Le=="number"?de=Le*(Math.PI/180):de=Le?R<0?-F+Math.PI:-F:0,f=!!de,A.label={x:B,y:K,position:C,height:Y.height,len:N,len2:M,linePoints:U,textAlign:z,verticalAlign:"middle",rotation:de,inside:J,labelDistance:w,labelAlignTo:b,labelMargin:_,bleedMargin:O,textRect:Y,text:V,font:L},J||o.push(A.label)}),!f&&a.get("avoidLabelOverlap")&&m(o,l,u,r,i,n,t,s)}H.exports=c},u3os:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ver=k.clear=k.bind=void 0;var I=d("P4Qj"),E=function(m,h){var c=(0,I.getSensor)(m);return c.bind(h),function(){c.unbind(h)}};k.bind=E;var T=function(m){var h=(0,I.getSensor)(m);(0,I.removeSensor)(h)};k.clear=T;var g="1.0.1";k.ver=g},u4NN:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("Uc92")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="EyeOutlined";var c=g.forwardRef(h);k.default=c},u9fO:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("b80e"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},uAnK:function(H,k,d){var I=d("bYtY"),E=d("Kagy"),T=d("KxfA"),g=T.retrieveRawValue;function S(m,h){var c=h.getModel("aria");if(c.get("show")){if(c.get("description")){m.setAttribute("aria-label",c.get("description"));return}}else return;var a=0;h.eachSeries(function(v,A){++a},this);var r=c.get("data.maxCount")||10,i=c.get("series.maxCount")||10,n=Math.min(a,i),t;if(a<1)return;var s=f();s?t=l(u("general.withTitle"),{title:s}):t=u("general.withoutTitle");var e=[],o=a>1?"series.multiple.prefix":"series.single.prefix";t+=l(u(o),{seriesCount:a}),h.eachSeries(function(v,A){if(A<n){var y,x=v.get("name"),C="series."+(a>1?"multiple":"single")+".";y=u(x?C+"withName":C+"withoutName"),y=l(y,{seriesId:v.seriesIndex,seriesName:v.get("name"),seriesType:p(v.subType)});var w=v.getData();window.data=w,w.count()>r?y+=l(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var b=[],_=0;_<w.count();_++)if(_<r){var O=w.getName(_),L=g(w,_);b.push(l(u(O?"data.withName":"data.withoutName"),{name:O,value:L}))}y+=b.join(u("data.separator.middle"))+u("data.separator.end"),e.push(y)}}),t+=e.join(u("series.multiple.separator.middle"))+u("series.multiple.separator.end"),m.setAttribute("aria-label",t);function l(v,A){if(typeof v!="string")return v;var y=v;return I.each(A,function(x,C){y=y.replace(new RegExp("\\{\\s*"+C+"\\s*\\}","g"),x)}),y}function u(v){var A=c.get(v);if(A==null){for(var y=v.split("."),x=E.aria,C=0;C<y.length;++C)x=x[y[C]];return x}else return A}function f(){var v=h.getModel("title").option;return v&&v.length&&(v=v[0]),v&&v.text}function p(v){return E.series.typeNames[v]||"\u81EA\u5B9A\u4E49\u56FE"}}H.exports=S},uGsb:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(I){return function(){var E=I,T=E.x64,g=T.Word,S=T.WordArray,m=E.algo,h=m.SHA512,c=m.SHA384=h.extend({_doReset:function(){this._hash=new S.init([new g.init(3418070365,3238371032),new g.init(1654270250,914150663),new g.init(2438529370,812702999),new g.init(355462360,4144912697),new g.init(1731405415,4290775857),new g.init(2394180231,1750603025),new g.init(3675008525,1694076839),new g.init(1203062813,3204075428)])},_doFinalize:function(){var r=h._doFinalize.call(this);return r.sigBytes-=16,r}});E.SHA384=h._createHelper(c),E.HmacSHA384=h._createHmacHelper(c)}(),I.SHA384})},uGxW:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("OLod"))})(this,function(I){return I.pad.NoPadding={pad:function(){},unpad:function(){}},I.pad.NoPadding})},uK0f:function(H,k,d){(function(I,E){H.exports=E()})(this,function(){"use strict";function I(E,T,g){g=g||{},g.childrenKeyName=g.childrenKeyName||"children";var S=E||[],m=[],h=0;do{var c=S.filter(function(a){return T(a,h)})[0];if(!c)break;m.push(c),S=c[g.childrenKeyName]||[],h+=1}while(S.length>0);return m}return I})},uOyE:function(H,k,d){var I=d("ProS");I.registerAction({type:"brush",event:"brush"},function(E,T){T.eachComponent({mainType:"brush",query:E},function(g){g.setAreas(E.areas)})}),I.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),I.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(H,k,d){H.exports=I;function I(){return d("gaXo"),{}}},ugBc:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},ulZh:function(H,k,d){typeof window!="undefined"&&function(E,T){H.exports=T()}(this,function(){return function(I){var E={};function T(g){if(E[g])return E[g].exports;var S=E[g]={i:g,l:!1,exports:{}};return I[g].call(S.exports,S,S.exports,T),S.l=!0,S.exports}return T.m=I,T.c=E,T.d=function(g,S,m){T.o(g,S)||Object.defineProperty(g,S,{enumerable:!0,get:m})},T.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},T.t=function(g,S){if(S&1&&(g=T(g)),S&8)return g;if(S&4&&typeof g=="object"&&g&&g.__esModule)return g;var m=Object.create(null);if(T.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:g}),S&2&&typeof g!="string")for(var h in g)T.d(m,h,function(c){return g[c]}.bind(null,h));return m},T.n=function(g){var S=g&&g.__esModule?function(){return g.default}:function(){return g};return T.d(S,"a",S),S},T.o=function(g,S){return Object.prototype.hasOwnProperty.call(g,S)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(E,T,g){"use strict";var S=Object.prototype.hasOwnProperty,m="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(m=!1));function c(n,t,s){this.fn=n,this.context=t,this.once=s||!1}function a(n,t,s,e,o){if(typeof s!="function")throw new TypeError("The listener must be a function");var l=new c(s,e||n,o),u=m?m+t:t;return n._events[u]?n._events[u].fn?n._events[u]=[n._events[u],l]:n._events[u].push(l):(n._events[u]=l,n._eventsCount++),n}function r(n,t){--n._eventsCount===0?n._events=new h:delete n._events[t]}function i(){this._events=new h,this._eventsCount=0}i.prototype.eventNames=function(){var t=[],s,e;if(this._eventsCount===0)return t;for(e in s=this._events)S.call(s,e)&&t.push(m?e.slice(1):e);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(s)):t},i.prototype.listeners=function(t){var s=m?m+t:t,e=this._events[s];if(!e)return[];if(e.fn)return[e.fn];for(var o=0,l=e.length,u=new Array(l);o<l;o++)u[o]=e[o].fn;return u},i.prototype.listenerCount=function(t){var s=m?m+t:t,e=this._events[s];return e?e.fn?1:e.length:0},i.prototype.emit=function(t,s,e,o,l,u){var f=m?m+t:t;if(!this._events[f])return!1;var p=this._events[f],v=arguments.length,A,y;if(p.fn){p.once&&this.removeListener(t,p.fn,void 0,!0);switch(v){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,s),!0;case 3:return p.fn.call(p.context,s,e),!0;case 4:return p.fn.call(p.context,s,e,o),!0;case 5:return p.fn.call(p.context,s,e,o,l),!0;case 6:return p.fn.call(p.context,s,e,o,l,u),!0}for(y=1,A=new Array(v-1);y<v;y++)A[y-1]=arguments[y];p.fn.apply(p.context,A)}else{var x=p.length,C;for(y=0;y<x;y++){p[y].once&&this.removeListener(t,p[y].fn,void 0,!0);switch(v){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,s);break;case 3:p[y].fn.call(p[y].context,s,e);break;case 4:p[y].fn.call(p[y].context,s,e,o);break;default:if(!A)for(C=1,A=new Array(v-1);C<v;C++)A[C-1]=arguments[C];p[y].fn.apply(p[y].context,A)}}}return!0},i.prototype.on=function(t,s,e){return a(this,t,s,e,!1)},i.prototype.once=function(t,s,e){return a(this,t,s,e,!0)},i.prototype.removeListener=function(t,s,e,o){var l=m?m+t:t;if(!this._events[l])return this;if(!s)return r(this,l),this;var u=this._events[l];if(u.fn)u.fn===s&&(!o||u.once)&&(!e||u.context===e)&&r(this,l);else{for(var f=0,p=[],v=u.length;f<v;f++)(u[f].fn!==s||o&&!u[f].once||e&&u[f].context!==e)&&p.push(u[f]);p.length?this._events[l]=p.length===1?p[0]:p:r(this,l)}return this},i.prototype.removeAllListeners=function(t){var s;return t?(s=m?m+t:t,this._events[s]&&r(this,s)):(this._events=new h,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=m,i.EventEmitter=i,E.exports=i},"./node_modules/url-toolkit/src/url-toolkit.js":function(E,T,g){(function(S){var m=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,h=/^([^\/?#]*)([^]*)$/,c=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(n,t,s){if(s=s||{},n=n.trim(),t=t.trim(),!t){if(!s.alwaysNormalize)return n;var e=r.parseURL(n);if(!e)throw new Error("Error trying to parse base URL.");return e.path=r.normalizePath(e.path),r.buildURLFromParts(e)}var o=r.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return s.alwaysNormalize?(o.path=r.normalizePath(o.path),r.buildURLFromParts(o)):t;var l=r.parseURL(n);if(!l)throw new Error("Error trying to parse base URL.");if(!l.netLoc&&l.path&&l.path[0]!=="/"){var u=h.exec(l.path);l.netLoc=u[1],l.path=u[2]}l.netLoc&&!l.path&&(l.path="/");var f={scheme:l.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(f.netLoc=l.netLoc,o.path[0]!=="/"))if(!o.path)f.path=l.path,o.params||(f.params=l.params,o.query||(f.query=l.query));else{var p=l.path,v=p.substring(0,p.lastIndexOf("/")+1)+o.path;f.path=r.normalizePath(v)}return f.path===null&&(f.path=s.alwaysNormalize?r.normalizePath(o.path):o.path),r.buildURLFromParts(f)},parseURL:function(n){var t=m.exec(n);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(n){for(n=n.split("").reverse().join("").replace(c,"");n.length!==(n=n.replace(a,"")).length;);return n.split("").reverse().join("")},buildURLFromParts:function(n){return n.scheme+n.netLoc+n.path+n.params+n.query+n.fragment}};E.exports=r})(this)},"./node_modules/webworkify-webpack/index.js":function(E,T,g){function S(t){var s={};function e(l){if(s[l])return s[l].exports;var u=s[l]={i:l,l:!1,exports:{}};return t[l].call(u.exports,u,u.exports,e),u.l=!0,u.exports}e.m=t,e.c=s,e.i=function(l){return l},e.d=function(l,u,f){e.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:f})},e.r=function(l){Object.defineProperty(l,"__esModule",{value:!0})},e.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return e.d(u,"a",u),u},e.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},e.p="/",e.oe=function(l){throw console.error(l),l};var o=e(e.s=ENTRY_MODULE);return o.default||o}var m="[\\.|\\-|\\+|\\w|/|@]+",h="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+m+").*?\\)";function c(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(t){return!isNaN(1*t)}function r(t,s,e){var o={};o[e]=[];var l=s.toString(),u=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return o;for(var f=u[1],p=new RegExp("(\\\\n|\\W)"+c(f)+h,"g"),v;v=p.exec(l);){if(v[3]==="dll-reference")continue;o[e].push(v[3])}for(p=new RegExp("\\("+c(f)+'\\("(dll-reference\\s('+m+'))"\\)\\)'+h,"g");v=p.exec(l);)t[v[2]]||(o[e].push(v[1]),t[v[2]]=g(v[1]).m),o[v[2]]=o[v[2]]||[],o[v[2]].push(v[4]);for(var A=Object.keys(o),y=0;y<A.length;y++)for(var x=0;x<o[A[y]].length;x++)a(o[A[y]][x])&&(o[A[y]][x]=1*o[A[y]][x]);return o}function i(t){var s=Object.keys(t);return s.reduce(function(e,o){return e||t[o].length>0},!1)}function n(t,s){for(var e={main:[s]},o={main:[]},l={main:{}};i(e);)for(var u=Object.keys(e),f=0;f<u.length;f++){var p=u[f],v=e[p],A=v.pop();if(l[p]=l[p]||{},l[p][A]||!t[p][A])continue;l[p][A]=!0,o[p]=o[p]||[],o[p].push(A);for(var y=r(t,t[p][A],p),x=Object.keys(y),C=0;C<x.length;C++)e[x[C]]=e[x[C]]||[],e[x[C]]=e[x[C]].concat(y[x[C]])}return o}E.exports=function(t,s){s=s||{};var e={main:g.m},o=s.all?{main:Object.keys(e.main)}:n(e,t),l="";Object.keys(o).filter(function(A){return A!=="main"}).forEach(function(A){for(var y=0;o[A][y];)y++;o[A].push(y),e[A][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+A+" = ("+S.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+o[A].map(function(x){return""+JSON.stringify(x)+": "+e[A][x].toString()}).join(",")+`});
|
|
|
`}),l=l+"new (("+S.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+o.main.map(function(A){return""+JSON.stringify(A)+": "+e.main[A].toString()}).join(",")+"}))(self);";var u=new window.Blob([l],{type:"text/javascript"});if(s.bare)return u;var f=window.URL||window.webkitURL||window.mozURL||window.msURL,p=f.createObjectURL(u),v=new window.Worker(p);return v.objectURL=p,v}},"./src/config.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"hlsDefaultConfig",function(){return C}),g.d(T,"mergeConfig",function(){return b}),g.d(T,"enableStreamingMode",function(){return _});var S=g("./src/controller/abr-controller.ts"),m=g("./src/controller/audio-stream-controller.ts"),h=g("./src/controller/audio-track-controller.ts"),c=g("./src/controller/subtitle-stream-controller.ts"),a=g("./src/controller/subtitle-track-controller.ts"),r=g("./src/controller/buffer-controller.ts"),i=g("./src/controller/timeline-controller.ts"),n=g("./src/controller/cap-level-controller.ts"),t=g("./src/controller/fps-controller.ts"),s=g("./src/controller/eme-controller.ts"),e=g("./src/controller/cmcd-controller.ts"),o=g("./src/utils/xhr-loader.ts"),l=g("./src/utils/fetch-loader.ts"),u=g("./src/utils/cues.ts"),f=g("./src/utils/mediakeys-helper.ts"),p=g("./src/utils/logger.ts");function v(){return v=Object.assign||function(O){for(var L=1;L<arguments.length;L++){var D=arguments[L];for(var N in D)Object.prototype.hasOwnProperty.call(D,N)&&(O[N]=D[N])}return O},v.apply(this,arguments)}function A(O,L){var D=Object.keys(O);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(O);L&&(N=N.filter(function(M){return Object.getOwnPropertyDescriptor(O,M).enumerable})),D.push.apply(D,N)}return D}function y(O){for(var L=1;L<arguments.length;L++){var D=arguments[L]!=null?arguments[L]:{};L%2?A(Object(D),!0).forEach(function(N){x(O,N,D[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(D)):A(Object(D)).forEach(function(N){Object.defineProperty(O,N,Object.getOwnPropertyDescriptor(D,N))})}return O}function x(O,L,D){return L in O?Object.defineProperty(O,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):O[L]=D,O}var C=y(y({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!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,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:o.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:S.default,bufferController:r.default,capLevelController:n.default,fpsController:t.default,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,drmSystemOptions:{},requestMediaKeySystemAccessFunc:f.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},w()),{},{subtitleStreamController:c.SubtitleStreamController,subtitleTrackController:a.default,timelineController:i.TimelineController,audioStreamController:m.default,audioTrackController:h.default,emeController:s.default,cmcdController:e.default});function w(){return{cueHandler:u.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function b(O,L){if((L.liveSyncDurationCount||L.liveMaxLatencyDurationCount)&&(L.liveSyncDuration||L.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(L.liveMaxLatencyDurationCount!==void 0&&(L.liveSyncDurationCount===void 0||L.liveMaxLatencyDurationCount<=L.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(L.liveMaxLatencyDuration!==void 0&&(L.liveSyncDuration===void 0||L.liveMaxLatencyDuration<=L.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return v({},O,L)}function _(O){var L=O.loader;if(L!==l.default&&L!==o.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),O.progressive=!1;else{var D=Object(l.fetchSupported)();D&&(O.loader=l.default,O.progressive=!0,O.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/polyfills/number.ts"),m=g("./src/utils/ewma-bandwidth-estimator.ts"),h=g("./src/events.ts"),c=g("./src/utils/buffer-helper.ts"),a=g("./src/errors.ts"),r=g("./src/types/loader.ts"),i=g("./src/utils/logger.ts");function n(e,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function t(e,o,l){return o&&n(e.prototype,o),l&&n(e,l),e}var s=function(){function e(l){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=l;var u=l.config;this.bwEstimator=new m.default(u.abrEwmaSlowVoD,u.abrEwmaFastVoD,u.abrEwmaDefaultEstimate),this.registerListeners()}var o=e.prototype;return o.registerListeners=function(){var u=this.hls;u.on(h.Events.FRAG_LOADING,this.onFragLoading,this),u.on(h.Events.FRAG_LOADED,this.onFragLoaded,this),u.on(h.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(h.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(h.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var u=this.hls;u.off(h.Events.FRAG_LOADING,this.onFragLoading,this),u.off(h.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(h.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(h.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(h.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},o.onFragLoading=function(u,f){var p=f.frag;if(p.type===r.PlaylistLevelType.MAIN&&!this.timer){var v;this.fragCurrent=p,this.partCurrent=(v=f.part)!=null?v:null,this.timer=self.setInterval(this.onCheck,100)}},o.onLevelLoaded=function(u,f){var p=this.hls.config;f.details.live?this.bwEstimator.update(p.abrEwmaSlowLive,p.abrEwmaFastLive):this.bwEstimator.update(p.abrEwmaSlowVoD,p.abrEwmaFastVoD)},o._abandonRulesCheck=function(){var u=this.fragCurrent,f=this.partCurrent,p=this.hls,v=p.autoLevelEnabled,A=p.config,y=p.media;if(!u||!y)return;var x=f?f.stats:u.stats,C=f?f.duration:u.duration;if(x.aborted){i.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!v||y.paused||!y.playbackRate||!y.readyState)return;var w=performance.now()-x.loading.start,b=Math.abs(y.playbackRate);if(w<=500*C/b)return;var _=p.levels,O=p.minAutoLevel,L=_[u.level],D=x.total||Math.max(x.loaded,Math.round(C*L.maxBitrate/8)),N=Math.max(1,x.bwEstimate?x.bwEstimate/8:x.loaded*1e3/w),M=(D-x.loaded)/N,F=y.currentTime,R=(c.BufferHelper.bufferInfo(y,F,A.maxBufferHole).end-F)/b;if(R>=2*C/b||M<=R)return;var j=Number.POSITIVE_INFINITY,B;for(B=u.level-1;B>O;B--){var K=_[B].maxBitrate;if(j=C*K/(8*.8*N),j<R)break}if(j>=M)return;var U=this.bwEstimator.getEstimate();i.logger.warn("Fragment "+u.sn+(f?" part "+f.index:"")+" of level "+u.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+B+`
|
|
|
Current BW estimate: `+(Object(S.isFiniteNumber)(U)?(U/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+M.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+j.toFixed(3)+` s
|
|
|
Time to underbuffer: `+R.toFixed(3)+" s"),p.nextLoadLevel=B,this.bwEstimator.sample(w,x.loaded),this.clearTimer(),u.loader&&(this.fragCurrent=this.partCurrent=null,u.loader.abort()),p.trigger(h.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:u,part:f,stats:x})},o.onFragLoaded=function(u,f){var p=f.frag,v=f.part;if(p.type===r.PlaylistLevelType.MAIN&&Object(S.isFiniteNumber)(p.sn)){var A=v?v.stats:p.stats,y=v?v.duration:p.duration;if(this.clearTimer(),this.lastLoadedFragLevel=p.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var x=this.hls.levels[p.level],C=(x.loaded?x.loaded.bytes:0)+A.loaded,w=(x.loaded?x.loaded.duration:0)+y;x.loaded={bytes:C,duration:w},x.realBitrate=Math.round(8*C/w)}if(p.bitrateTest){var b={stats:A,frag:p,part:v,id:p.type};this.onFragBuffered(h.Events.FRAG_BUFFERED,b),p.bitrateTest=!1}}},o.onFragBuffered=function(u,f){var p=f.frag,v=f.part,A=v?v.stats:p.stats;if(A.aborted)return;if(p.type!==r.PlaylistLevelType.MAIN||p.sn==="initSegment")return;var y=A.parsing.end-A.loading.start;this.bwEstimator.sample(y,A.loaded),A.bwEstimate=this.bwEstimator.getEstimate(),p.bitrateTest?this.bitrateTestDelay=y/1e3:this.bitrateTestDelay=0},o.onError=function(u,f){switch(f.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},o.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},o.getNextABRAutoLevel=function(){var u=this.fragCurrent,f=this.partCurrent,p=this.hls,v=p.maxAutoLevel,A=p.config,y=p.minAutoLevel,x=p.media,C=f?f.duration:u?u.duration:0,w=x?x.currentTime:0,b=x&&x.playbackRate!==0?Math.abs(x.playbackRate):1,_=this.bwEstimator?this.bwEstimator.getEstimate():A.abrEwmaDefaultEstimate,O=(c.BufferHelper.bufferInfo(x,w,A.maxBufferHole).end-w)/b,L=this.findBestLevel(_,y,v,O,A.abrBandWidthFactor,A.abrBandWidthUpFactor);if(L>=0)return L;i.logger.trace((O?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=C?Math.min(C,A.maxStarvationDelay):A.maxStarvationDelay,N=A.abrBandWidthFactor,M=A.abrBandWidthUpFactor;if(!O){var F=this.bitrateTestDelay;if(F){var R=C?Math.min(C,A.maxLoadingDelay):A.maxLoadingDelay;D=R-F,i.logger.trace("bitrate test took "+Math.round(1e3*F)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),N=M=1}}return L=this.findBestLevel(_,y,v,O+D,N,M),Math.max(L,0)},o.findBestLevel=function(u,f,p,v,A,y){for(var x,C=this.fragCurrent,w=this.partCurrent,b=this.lastLoadedFragLevel,_=this.hls.levels,O=_[b],L=!!(O!=null&&(x=O.details)!==null&&x!==void 0&&x.live),D=O==null?void 0:O.codecSet,N=w?w.duration:C?C.duration:0,M=p;M>=f;M--){var F=_[M];if(!F||D&&F.codecSet!==D)continue;var R=F.details,j=(w?R==null?void 0:R.partTarget:R==null?void 0:R.averagetargetduration)||N,B=void 0;M<=b?B=A*u:B=y*u;var K=_[M].maxBitrate,U=K*j/B;if(i.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+M+"/"+Math.round(B)+"/"+K+"/"+j+"/"+v+"/"+U),B>K&&(!U||L&&!this.bitrateTestDelay||U<v))return M}return-1},t(e,[{key:"nextAutoLevel",get:function(){var u=this._nextAutoLevel,f=this.bwEstimator;if(u!==-1&&(!f||!f.canEstimate()))return u;var p=this.getNextABRAutoLevel();return u!==-1&&(p=Math.min(u,p)),p},set:function(u){this._nextAutoLevel=u}}]),e}();T.default=s},"./src/controller/audio-stream-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/polyfills/number.ts"),m=g("./src/controller/base-stream-controller.ts"),h=g("./src/events.ts"),c=g("./src/utils/buffer-helper.ts"),a=g("./src/controller/fragment-tracker.ts"),r=g("./src/types/level.ts"),i=g("./src/types/loader.ts"),n=g("./src/loader/fragment.ts"),t=g("./src/demux/chunk-cache.ts"),s=g("./src/demux/transmuxer-interface.ts"),e=g("./src/types/transmuxer.ts"),o=g("./src/controller/fragment-finders.ts"),l=g("./src/utils/discontinuities.ts"),u=g("./src/errors.ts"),f=g("./src/utils/logger.ts");function p(){return p=Object.assign||function(C){for(var w=1;w<arguments.length;w++){var b=arguments[w];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(C[_]=b[_])}return C},p.apply(this,arguments)}function v(C,w){C.prototype=Object.create(w.prototype),C.prototype.constructor=C,A(C,w)}function A(C,w){return A=Object.setPrototypeOf||function(_,O){return _.__proto__=O,_},A(C,w)}var y=100,x=function(C){v(w,C);function w(_,O){var L;return L=C.call(this,_,O,"[audio-stream-controller]")||this,L.videoBuffer=null,L.videoTrackCC=-1,L.waitingVideoCC=-1,L.audioSwitch=!1,L.trackId=-1,L.waitingData=null,L.mainDetails=null,L.bufferFlushed=!1,L._registerListeners(),L}var b=w.prototype;return b.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},b._registerListeners=function(){var O=this.hls;O.on(h.Events.MEDIA_ATTACHED,this.onMediaAttached,this),O.on(h.Events.MEDIA_DETACHING,this.onMediaDetaching,this),O.on(h.Events.MANIFEST_LOADING,this.onManifestLoading,this),O.on(h.Events.LEVEL_LOADED,this.onLevelLoaded,this),O.on(h.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),O.on(h.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),O.on(h.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),O.on(h.Events.ERROR,this.onError,this),O.on(h.Events.BUFFER_RESET,this.onBufferReset,this),O.on(h.Events.BUFFER_CREATED,this.onBufferCreated,this),O.on(h.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),O.on(h.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),O.on(h.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var O=this.hls;O.off(h.Events.MEDIA_ATTACHED,this.onMediaAttached,this),O.off(h.Events.MEDIA_DETACHING,this.onMediaDetaching,this),O.off(h.Events.MANIFEST_LOADING,this.onManifestLoading,this),O.off(h.Events.LEVEL_LOADED,this.onLevelLoaded,this),O.off(h.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),O.off(h.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),O.off(h.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),O.off(h.Events.ERROR,this.onError,this),O.off(h.Events.BUFFER_RESET,this.onBufferReset,this),O.off(h.Events.BUFFER_CREATED,this.onBufferCreated,this),O.off(h.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),O.off(h.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),O.off(h.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onInitPtsFound=function(O,L){var D=L.frag,N=L.id,M=L.initPTS;if(N==="main"){var F=D.cc;this.initPTS[D.cc]=M,this.log("InitPTS for cc: "+F+" found from main: "+M),this.videoTrackCC=F,this.state===m.State.WAITING_INIT_PTS&&this.tick()}},b.startLoad=function(O){if(!this.levels){this.startPosition=O,this.state=m.State.STOPPED;return}var L=this.lastCurrentTime;this.stopLoad(),this.setInterval(y),this.fragLoadError=0,L>0&&O===-1?(this.log("Override startPosition with lastCurrentTime @"+L.toFixed(3)),this.state=m.State.IDLE):(this.loadedmetadata=!1,this.state=m.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=O,this.tick()},b.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_TRACK:{var O,L=this.levels,D=this.trackId,N=L==null||((O=L[D])===null||O===void 0)?void 0:O.details;if(N){if(this.waitForCdnTuneIn(N))break;this.state=m.State.WAITING_INIT_PTS}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var M,F=performance.now(),R=this.retryDate;(!R||F>=R||(M=this.media)!==null&&M!==void 0&&M.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=m.State.IDLE);break}case m.State.WAITING_INIT_PTS:{var j=this.waitingData;if(j){var B=j.frag,K=j.part,U=j.cache,z=j.complete;if(this.initPTS[B.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.FRAG_LOADING;var V=U.flush(),Y={frag:B,part:K,payload:V,networkDetails:null};this._handleFragmentLoadProgress(Y),z&&C.prototype._handleFragmentLoadComplete.call(this,Y)}else if(this.videoTrackCC!==this.waitingVideoCC)f.logger.log("Waiting fragment cc ("+B.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var J=this.getLoadPosition(),se=c.BufferHelper.bufferInfo(this.mediaBuffer,J,this.config.maxBufferHole),$=Object(o.fragmentWithinToleranceTest)(se.end,this.config.maxFragLookUpTolerance,B);$<0&&(f.logger.log("Waiting fragment cc ("+B.cc+") @ "+B.start+" cancelled because another fragment at "+se.end+" is needed"),this.clearWaitingFragment())}}else this.state=m.State.IDLE}}this.onTickEnd()},b.clearWaitingFragment=function(){var O=this.waitingData;O&&(this.fragmentTracker.removeFragment(O.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.IDLE)},b.onTickEnd=function(){var O=this.media;if(!O||!O.readyState)return;var L=this.mediaBuffer?this.mediaBuffer:O,D=L.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=O.currentTime},b.doTickIdle=function(){var O,L,D=this.hls,N=this.levels,M=this.media,F=this.trackId,R=D.config;if(!N||!N[F])return;if(!M&&(this.startFragRequested||!R.startFragPrefetch))return;var j=N[F],B=j.details;if(!B||B.live&&this.levelLastLoaded!==F||this.waitForCdnTuneIn(B)){this.state=m.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,i.PlaylistLevelType.AUDIO));var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,i.PlaylistLevelType.AUDIO);if(K===null)return;var U=K.len,z=this.getMaxBufferLength(),V=this.audioSwitch;if(U>=z&&!V)return;if(!V&&this._streamEnded(K,B)){D.trigger(h.Events.BUFFER_EOS,{type:"audio"}),this.state=m.State.ENDED;return}var Y=B.fragments,J=Y[0].start,se=K.end;if(V){var $=this.getLoadPosition();se=$,B.PTSKnown&&$<J&&((K.end>J||K.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),M.currentTime=J+.05))}var ae=this.getNextFragment(se,B);if(!ae){this.bufferFlushed=!0;return}((O=ae.decryptdata)===null||O===void 0?void 0:O.keyFormat)==="identity"&&!((L=ae.decryptdata)!==null&&L!==void 0&&L.key)?this.loadKey(ae,B):this.loadFragment(ae,B,se)},b.getMaxBufferLength=function(){var O=C.prototype.getMaxBufferLength.call(this),L=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,i.PlaylistLevelType.MAIN);return L===null?O:Math.max(O,L.len)},b.onMediaDetaching=function(){this.videoBuffer=null,C.prototype.onMediaDetaching.call(this)},b.onAudioTracksUpdated=function(O,L){var D=L.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(N){return new r.Level(N)})},b.onAudioTrackSwitching=function(O,L){var D=!!L.url;this.trackId=L.id;var N=this.fragCurrent;N!=null&&N.loader&&N.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(y):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=m.State.IDLE):this.state=m.State.STOPPED,this.tick()},b.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},b.onLevelLoaded=function(O,L){this.mainDetails=L.details},b.onAudioTrackLoaded=function(O,L){var D,N=this.levels,M=L.details,F=L.id;if(!N){this.warn("Audio tracks were reset while loading level "+F);return}this.log("Track "+F+" loaded ["+M.startSN+","+M.endSN+"],duration:"+M.totalduration);var R=N[F],j=0;if(M.live||(D=R.details)!==null&&D!==void 0&&D.live){var B=this.mainDetails;if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed||!B)return;!R.details&&M.hasProgramDateTime&&B.hasProgramDateTime?(Object(l.alignMediaPlaylistByPDT)(M,B),j=M.fragments[0].start):j=this.alignPlaylists(M,R.details)}R.details=M,this.levelLastLoaded=F,!this.startFragRequested&&(this.mainDetails||!M.live)&&this.setStartPosition(R.details,j),this.state===m.State.WAITING_TRACK&&!this.waitForCdnTuneIn(M)&&(this.state=m.State.IDLE),this.tick()},b._handleFragmentLoadProgress=function(O){var L,D=O.frag,N=O.part,M=O.payload,F=this.config,R=this.trackId,j=this.levels;if(!j){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var B=j[R];console.assert(B,"Audio track is defined on fragment load progress");var K=B.details;console.assert(K,"Audio track details are defined on fragment load progress");var U=F.defaultAudioCodec||B.audioCodec||"mp4a.40.2",z=this.transmuxer;z||(z=this.transmuxer=new s.default(this.hls,i.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var V=this.initPTS[D.cc],Y=(L=D.initSegment)===null||L===void 0?void 0:L.data;if(V!==void 0){var J=!1,se=N?N.index:-1,$=se!==-1,ae=new e.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,M.byteLength,se,$);z.push(M,Y,U,"",D,N,K.totalduration,J,ae,V)}else{f.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+K.startSN+" ,"+K.endSN+"],track "+R);var ge=this.waitingData=this.waitingData||{frag:D,part:N,cache:new t.default,complete:!1},pe=ge.cache;pe.push(new Uint8Array(M)),this.waitingVideoCC=this.videoTrackCC,this.state=m.State.WAITING_INIT_PTS}},b._handleFragmentLoadComplete=function(O){if(this.waitingData){this.waitingData.complete=!0;return}C.prototype._handleFragmentLoadComplete.call(this,O)},b.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},b.onBufferCreated=function(O,L){var D=L.tracks.audio;D&&(this.mediaBuffer=D.buffer),L.tracks.video&&(this.videoBuffer=L.tracks.video.buffer)},b.onFragBuffered=function(O,L){var D=L.frag,N=L.part;if(D.type!==i.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(N?" p: "+N.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(h.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,N)},b.onError=function(O,L){switch(L.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(i.PlaylistLevelType.AUDIO,L);break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==m.State.ERROR&&this.state!==m.State.STOPPED&&(this.state=L.fatal?m.State.ERROR:m.State.IDLE,this.warn(L.details+" while loading frag, switching to "+this.state+" state"));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(L.parent==="audio"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var D=!0,N=this.getFwdBufferInfo(this.mediaBuffer,i.PlaylistLevelType.AUDIO);N&&N.len>.5&&(D=!this.reduceMaxBufferLength(N.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},b.onBufferFlushed=function(O,L){var D=L.type;D===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},b._handleTransmuxComplete=function(O){var L,D="audio",N=this.hls,M=O.remuxResult,F=O.chunkMeta,R=this.getCurrentContext(F);if(!R){this.warn("The loading context changed while buffering fragment "+F.sn+" of level "+F.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(F.level);return}var j=R.frag,B=R.part,K=M.audio,U=M.text,z=M.id3,V=M.initSegment;if(this.fragContextChanged(j))return;if(this.state=m.State.PARSING,this.audioSwitch&&K&&this.completeAudioSwitch(),V!=null&&V.tracks&&(this._bufferInitSegment(V.tracks,j,F),N.trigger(h.Events.FRAG_PARSING_INIT_SEGMENT,{frag:j,id:D,tracks:V.tracks})),K){var Y=K.startPTS,J=K.endPTS,se=K.startDTS,$=K.endDTS;B&&(B.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Y,endPTS:J,startDTS:se,endDTS:$}),j.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Y,J,se,$),this.bufferFragmentData(K,j,B,F)}if(z!=null&&(L=z.samples)!==null&&L!==void 0&&L.length){var ae=p({frag:j,id:D},z);N.trigger(h.Events.FRAG_PARSING_METADATA,ae)}if(U){var ge=p({frag:j,id:D},U);N.trigger(h.Events.FRAG_PARSING_USERDATA,ge)}},b._bufferInitSegment=function(O,L,D){if(this.state!==m.State.PARSING)return;O.video&&delete O.video;var N=O.audio;if(!N)return;N.levelCodec=N.codec,N.id="audio",this.log("Init audio buffer, container:"+N.container+", codecs[parsed]=["+N.codec+"]"),this.hls.trigger(h.Events.BUFFER_CODECS,O);var M=N.initSegment;if(M!=null&&M.byteLength){var F={type:"audio",frag:L,part:null,chunkMeta:D,parent:L.type,data:M};this.hls.trigger(h.Events.BUFFER_APPENDING,F)}this.tick()},b.loadFragment=function(O,L,D){var N=this.fragmentTracker.getState(O);this.fragCurrent=O,(this.audioSwitch||N===a.FragmentState.NOT_LOADED||N===a.FragmentState.PARTIAL)&&(O.sn==="initSegment"?this._loadInitSegment(O):L.live&&!Object(S.isFiniteNumber)(this.initPTS[O.cc])?(this.log("Waiting for video PTS in continuity counter "+O.cc+" of live stream before loading audio fragment "+O.sn+" of level "+this.trackId),this.state=m.State.WAITING_INIT_PTS):(this.startFragRequested=!0,C.prototype.loadFragment.call(this,O,L,D)))},b.completeAudioSwitch=function(){var O=this.hls,L=this.media,D=this.trackId;L&&(this.log("Switching audio track : flushing all audio"),C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,O.trigger(h.Events.AUDIO_TRACK_SWITCHED,{id:D})},w}(m.default);T.default=x},"./src/controller/audio-track-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/events.ts"),m=g("./src/errors.ts"),h=g("./src/controller/base-playlist-controller.ts"),c=g("./src/types/loader.ts");function a(s,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function r(s,e,o){return e&&a(s.prototype,e),o&&a(s,o),s}function i(s,e){s.prototype=Object.create(e.prototype),s.prototype.constructor=s,n(s,e)}function n(s,e){return n=Object.setPrototypeOf||function(l,u){return l.__proto__=u,l},n(s,e)}var t=function(s){i(e,s);function e(l){var u;return u=s.call(this,l,"[audio-track-controller]")||this,u.tracks=[],u.groupId=null,u.tracksInGroup=[],u.trackId=-1,u.trackName="",u.selectDefaultTrack=!0,u.registerListeners(),u}var o=e.prototype;return o.registerListeners=function(){var u=this.hls;u.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.on(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(S.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var u=this.hls;u.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),u.off(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.off(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(S.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,s.prototype.destroy.call(this)},o.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},o.onManifestParsed=function(u,f){this.tracks=f.audioTracks||[]},o.onAudioTrackLoaded=function(u,f){var p=f.id,v=f.details,A=this.tracksInGroup[p];if(!A){this.warn("Invalid audio track id "+p);return}var y=A.details;A.details=f.details,this.log("audioTrack "+p+" loaded ["+v.startSN+"-"+v.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,f,y))},o.onLevelLoading=function(u,f){this.switchLevel(f.level)},o.onLevelSwitching=function(u,f){this.switchLevel(f.level)},o.switchLevel=function(u){var f=this.hls.levels[u];if(!(f!=null&&f.audioGroupIds))return;var p=f.audioGroupIds[f.urlId];if(this.groupId!==p){this.groupId=p;var v=this.tracks.filter(function(y){return!p||y.groupId===p});this.selectDefaultTrack&&!v.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=v;var A={audioTracks:v};this.log("Updating audio tracks, "+v.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(S.Events.AUDIO_TRACKS_UPDATED,A),this.selectInitialTrack()}},o.onError=function(u,f){if(s.prototype.onError.call(this,u,f),f.fatal||!f.context)return;f.context.type===c.PlaylistContextType.AUDIO_TRACK&&f.context.id===this.trackId&&f.context.groupId===this.groupId&&this.retryLoadingOrFail(f)},o.setAudioTrack=function(u){var f=this.tracksInGroup;if(u<0||u>=f.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var p=f[this.trackId];this.log("Now switching to audio-track index "+u);var v=f[u],A=v.id,y=v.groupId,x=y===void 0?"":y,C=v.name,w=v.type,b=v.url;if(this.trackId=u,this.trackName=C,this.selectDefaultTrack=!1,this.hls.trigger(S.Events.AUDIO_TRACK_SWITCHING,{id:A,groupId:x,name:C,type:w,url:b}),v.details&&!v.details.live)return;var _=this.switchParams(v.url,p==null?void 0:p.details);this.loadPlaylist(_)},o.selectInitialTrack=function(){var u=this.tracksInGroup;console.assert(u.length,"Initial audio track should be selected when tracks are known");var f=this.trackName,p=this.findTrackId(f)||this.findTrackId();p!==-1?this.setAudioTrack(p):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},o.findTrackId=function(u){for(var f=this.tracksInGroup,p=0;p<f.length;p++){var v=f[p];if((!this.selectDefaultTrack||v.default)&&(!u||u===v.name))return v.id}return-1},o.loadPlaylist=function(u){var f=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(f)){var p=f.id,v=f.groupId,A=f.url;if(u)try{A=u.addDirectives(A)}catch(y){this.warn("Could not construct new URL with HLS Delivery Directives: "+y)}this.log("loading audio-track playlist for id: "+p),this.clearTimer(),this.hls.trigger(S.Events.AUDIO_TRACK_LOADING,{url:A,id:p,groupId:v,deliveryDirectives:u||null})}},r(e,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(u){this.selectDefaultTrack=!1,this.setAudioTrack(u)}}]),e}(h.default);T.default=t},"./src/controller/base-playlist-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return r});var S=g("./src/polyfills/number.ts"),m=g("./src/types/level.ts"),h=g("./src/controller/level-helper.ts"),c=g("./src/utils/logger.ts"),a=g("./src/errors.ts"),r=function(){function i(t,s){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=c.logger.log.bind(c.logger,s+":"),this.warn=c.logger.warn.bind(c.logger,s+":"),this.hls=t}var n=i.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(s,e){e.fatal&&e.type===a.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(s,e){var o=e==null?void 0:e.renditionReports;if(o)for(var l=0;l<o.length;l++){var u=o[l],f=""+u.URI;if(f===s.substr(-f.length)){var p=parseInt(u["LAST-MSN"]),v=parseInt(u["LAST-PART"]);if(e&&this.hls.config.lowLatencyMode){var A=Math.min(e.age-e.partTarget,e.targetduration);v!==void 0&&A>e.partTarget&&(v+=1)}if(Object(S.isFiniteNumber)(p))return new m.HlsUrlParameters(p,Object(S.isFiniteNumber)(v)?v:void 0,m.HlsSkip.No)}}},n.loadPlaylist=function(s){},n.shouldLoadTrack=function(s){return this.canLoad&&s&&!!s.url&&(!s.details||s.details.live)},n.playlistLoaded=function(s,e,o){var l=this,u=e.details,f=e.stats,p=f.loading.end?Math.max(0,self.performance.now()-f.loading.end):0;if(u.advancedDateTime=Date.now()-p,u.live||o!=null&&o.live){if(u.reloaded(o),o&&this.log("live playlist "+s+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),o&&u.fragments.length>0&&Object(h.mergeDetails)(o,u),!this.canLoad||!u.live)return;var v,A=void 0,y=void 0;if(u.canBlockReload&&u.endSN&&u.advanced){var x=this.hls.config.lowLatencyMode,C=u.lastPartSn,w=u.endSN,b=u.lastPartIndex,_=b!==-1,O=C===w,L=x?0:b;_?(A=O?w+1:C,y=O?L:b+1):A=w+1;var D=u.age,N=D+u.ageHeader,M=Math.min(N-u.partTarget,u.targetduration*1.5);if(M>0){if(o&&M>o.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+o.tuneInGoal+" to: "+M+" with playlist age: "+u.age),M=0;else{var F=Math.floor(M/u.targetduration);if(A+=F,y!==void 0){var R=Math.round(M%u.targetduration/u.partTarget);y+=R}this.log("CDN Tune-in age: "+u.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+M+" skip sn "+F+" to part "+y)}u.tuneInGoal=M}if(v=this.getDeliveryDirectives(u,e.deliveryDirectives,A,y),x||!O){this.loadPlaylist(v);return}}else v=this.getDeliveryDirectives(u,e.deliveryDirectives,A,y);var j=Object(h.computeReloadInterval)(u,f);A!==void 0&&u.canBlockReload&&(j-=u.partTarget||1),this.log("reload live playlist "+s+" in "+Math.round(j)+" ms"),this.timer=self.setTimeout(function(){return l.loadPlaylist(v)},j)}else this.clearTimer()},n.getDeliveryDirectives=function(s,e,o,l){var u=Object(m.getSkipValue)(s,o);return e!=null&&e.skip&&s.deltaUpdateFailed&&(o=e.msn,l=e.part,u=m.HlsSkip.No),new m.HlsUrlParameters(o,l,u)},n.retryLoadingOrFail=function(s){var e=this,o=this.hls.config,l=this.retryCount<o.levelLoadingMaxRetry;if(l){var u;if(this.retryCount++,s.details.indexOf("LoadTimeOut")>-1&&(u=s.context)!==null&&u!==void 0&&u.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+s.details+'"'),this.loadPlaylist();else{var f=Math.min(Math.pow(2,this.retryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return e.loadPlaylist()},f),this.warn("retry playlist loading #"+this.retryCount+" in "+f+' ms after "'+s.details+'"')}}else this.warn('cannot recover from error "'+s.details+'"'),this.clearTimer(),s.fatal=!0;return l},i}()},"./src/controller/base-stream-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"State",function(){return w}),g.d(T,"default",function(){return b});var S=g("./src/polyfills/number.ts"),m=g("./src/task-loop.ts"),h=g("./src/controller/fragment-tracker.ts"),c=g("./src/utils/buffer-helper.ts"),a=g("./src/utils/logger.ts"),r=g("./src/events.ts"),i=g("./src/errors.ts"),n=g("./src/types/transmuxer.ts"),t=g("./src/utils/mp4-tools.ts"),s=g("./src/utils/discontinuities.ts"),e=g("./src/controller/fragment-finders.ts"),o=g("./src/controller/level-helper.ts"),l=g("./src/loader/fragment-loader.ts"),u=g("./src/crypt/decrypter.ts"),f=g("./src/utils/time-ranges.ts"),p=g("./src/types/loader.ts");function v(_,O){for(var L=0;L<O.length;L++){var D=O[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,D.key,D)}}function A(_,O,L){return O&&v(_.prototype,O),L&&v(_,L),_}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function x(_,O){_.prototype=Object.create(O.prototype),_.prototype.constructor=_,C(_,O)}function C(_,O){return C=Object.setPrototypeOf||function(D,N){return D.__proto__=N,D},C(_,O)}var w={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",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},b=function(_){x(O,_);function O(D,N,M){var F;return F=_.call(this)||this,F.hls=void 0,F.fragPrevious=null,F.fragCurrent=null,F.fragmentTracker=void 0,F.transmuxer=null,F._state=w.STOPPED,F.media=void 0,F.mediaBuffer=void 0,F.config=void 0,F.bitrateTest=!1,F.lastCurrentTime=0,F.nextLoadPosition=0,F.startPosition=0,F.loadedmetadata=!1,F.fragLoadError=0,F.retryDate=0,F.levels=null,F.fragmentLoader=void 0,F.levelLastLoaded=null,F.startFragRequested=!1,F.decrypter=void 0,F.initPTS=[],F.onvseeking=null,F.onvended=null,F.logPrefix="",F.log=void 0,F.warn=void 0,F.logPrefix=M,F.log=a.logger.log.bind(a.logger,M+":"),F.warn=a.logger.warn.bind(a.logger,M+":"),F.hls=D,F.fragmentLoader=new l.default(D.config),F.fragmentTracker=N,F.config=D.config,F.decrypter=new u.default(D,D.config),D.on(r.Events.KEY_LOADED,F.onKeyLoaded,y(F)),F}var L=O.prototype;return L.doTick=function(){this.onTickEnd()},L.onTickEnd=function(){},L.startLoad=function(N){},L.stopLoad=function(){this.fragmentLoader.abort();var N=this.fragCurrent;N&&this.fragmentTracker.removeFragment(N),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=w.STOPPED},L._streamEnded=function(N,M){var F=this.fragCurrent,R=this.fragmentTracker;if(!M.live&&F&&F.sn===M.endSN&&!N.nextStart){var j=R.getState(F);return j===h.FragmentState.PARTIAL||j===h.FragmentState.OK}return!1},L.onMediaAttached=function(N,M){var F=this.media=this.mediaBuffer=M.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),F.addEventListener("seeking",this.onvseeking),F.addEventListener("ended",this.onvended);var R=this.config;this.levels&&R.autoStartLoad&&this.state===w.STOPPED&&this.startLoad(R.startPosition)},L.onMediaDetaching=function(){var N=this.media;N!=null&&N.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),N&&(N.removeEventListener("seeking",this.onvseeking),N.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},L.onMediaSeeking=function(){var N=this.config,M=this.fragCurrent,F=this.media,R=this.mediaBuffer,j=this.state,B=F?F.currentTime:0,K=c.BufferHelper.bufferInfo(R||F,B,N.maxBufferHole);if(this.log("media seeking to "+(Object(S.isFiniteNumber)(B)?B.toFixed(3):B)+", state: "+j),j===w.ENDED)this.resetLoadingState();else if(M&&!K.len){var U=N.maxFragLookUpTolerance,z=M.start-U,V=M.start+M.duration+U,Y=B>V;(B<z||Y)&&(Y&&M.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),M.loader.abort()),this.resetLoadingState())}F&&(this.lastCurrentTime=B),!this.loadedmetadata&&!K.len&&(this.nextLoadPosition=this.startPosition=B),this.tickImmediate()},L.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},L.onKeyLoaded=function(N,M){if(this.state!==w.KEY_LOADING||M.frag!==this.fragCurrent||!this.levels)return;this.state=w.IDLE;var F=this.levels[M.frag.level].details;F&&this.loadFragment(M.frag,F,M.frag.start)},L.onHandlerDestroying=function(){this.stopLoad(),_.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=w.STOPPED,this.hls.off(r.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,_.prototype.onHandlerDestroyed.call(this)},L.loadKey=function(N,M){this.log("Loading key for "+N.sn+" of ["+M.startSN+"-"+M.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+N.level),this.state=w.KEY_LOADING,this.fragCurrent=N,this.hls.trigger(r.Events.KEY_LOADING,{frag:N})},L.loadFragment=function(N,M,F){this._loadFragForPlayback(N,M,F)},L._loadFragForPlayback=function(N,M,F){var R=this,j=function(K){if(R.fragContextChanged(N)){R.warn("Fragment "+N.sn+(K.part?" p: "+K.part.index:"")+" of level "+N.level+" was dropped during download."),R.fragmentTracker.removeFragment(N);return}N.stats.chunkCount++,R._handleFragmentLoadProgress(K)};this._doFragLoad(N,M,F,j).then(function(B){if(!B)return;R.fragLoadError=0;var K=R.state;if(R.fragContextChanged(N)){(K===w.FRAG_LOADING||K===w.BACKTRACKING||!R.fragCurrent&&K===w.PARSING)&&(R.fragmentTracker.removeFragment(N),R.state=w.IDLE);return}if("payload"in B&&(R.log("Loaded fragment "+N.sn+" of level "+N.level),R.hls.trigger(r.Events.FRAG_LOADED,B),R.state===w.BACKTRACKING)){R.fragmentTracker.backtrack(N,B),R.resetFragmentLoading(N);return}R._handleFragmentLoadComplete(B)}).catch(function(B){R.warn(B),R.resetFragmentLoading(N)})},L.flushMainBuffer=function(N,M,F){if(F===void 0&&(F=null),!(N-M))return;var R={startOffset:N,endOffset:M,type:F};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,R)},L._loadInitSegment=function(N){var M=this;this._doFragLoad(N).then(function(F){if(!F||M.fragContextChanged(N)||!M.levels)throw new Error("init load aborted");return F}).then(function(F){var R=M.hls,j=F.payload,B=N.decryptdata;if(j&&j.byteLength>0&&B&&B.key&&B.iv&&B.method==="AES-128"){var K=self.performance.now();return M.decrypter.webCryptoDecrypt(new Uint8Array(j),B.key.buffer,B.iv.buffer).then(function(U){var z=self.performance.now();return R.trigger(r.Events.FRAG_DECRYPTED,{frag:N,payload:U,stats:{tstart:K,tdecrypt:z}}),F.payload=U,F})}return F}).then(function(F){var R=M.fragCurrent,j=M.hls,B=M.levels;if(!B)throw new Error("init load aborted, missing levels");var K=B[N.level].details;console.assert(K,"Level details are defined when init segment is loaded");var U=N.stats;M.state=w.IDLE,M.fragLoadError=0,N.data=new Uint8Array(F.payload),U.parsing.start=U.buffering.start=self.performance.now(),U.parsing.end=U.buffering.end=self.performance.now(),F.frag===R&&j.trigger(r.Events.FRAG_BUFFERED,{stats:U,frag:R,part:null,id:N.type}),M.tick()}).catch(function(F){M.warn(F),M.resetFragmentLoading(N)})},L.fragContextChanged=function(N){var M=this.fragCurrent;return!N||!M||N.level!==M.level||N.sn!==M.sn||N.urlId!==M.urlId},L.fragBufferedComplete=function(N,M){var F=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+N.type+" sn: "+N.sn+(M?" part: "+M.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+N.level+" "+f.default.toString(c.BufferHelper.getBuffered(F))),this.state=w.IDLE,this.tick()},L._handleFragmentLoadComplete=function(N){var M=this.transmuxer;if(!M)return;var F=N.frag,R=N.part,j=N.partsLoaded,B=!j||j.length===0||j.some(function(U){return!U}),K=new n.ChunkMetadata(F.level,F.sn,F.stats.chunkCount+1,0,R?R.index:-1,!B);M.flush(K)},L._handleFragmentLoadProgress=function(N){},L._doFragLoad=function(N,M,F,R){var j=this;if(F===void 0&&(F=null),!this.levels)throw new Error("frag load aborted, missing levels");if(F=Math.max(N.start,F||0),this.config.lowLatencyMode&&M){var B=M.partList;if(B&&R){F>N.end&&M.fragmentHint&&(N=M.fragmentHint);var K=this.getNextPart(B,N,F);if(K>-1){var U=B[K];return this.log("Loading part sn: "+N.sn+" p: "+U.index+" cc: "+N.cc+" of playlist ["+M.startSN+"-"+M.endSN+"] parts [0-"+K+"-"+(B.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(F.toFixed(3))),this.nextLoadPosition=U.start+U.duration,this.state=w.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:N,part:B[K],targetBufferTime:F}),this.doFragPartsLoad(N,B,K,R).catch(function(z){return j.handleFragLoadError(z)})}else if(!N.url||this.loadedEndOfParts(B,F))return Promise.resolve(null)}}return this.log("Loading fragment "+N.sn+" cc: "+N.cc+" "+(M?"of ["+M.startSN+"-"+M.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(F.toFixed(3))),Object(S.isFiniteNumber)(N.sn)&&!this.bitrateTest&&(this.nextLoadPosition=N.start+N.duration),this.state=w.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:N,targetBufferTime:F}),this.fragmentLoader.load(N,R).catch(function(z){return j.handleFragLoadError(z)})},L.doFragPartsLoad=function(N,M,F,R){var j=this;return new Promise(function(B,K){var U=[],z=function V(Y){var J=M[Y];j.fragmentLoader.loadPart(N,J,R).then(function(se){U[J.index]=se;var $=se.part;j.hls.trigger(r.Events.FRAG_LOADED,se);var ae=M[Y+1];if(ae&&ae.fragment===N)V(Y+1);else return B({frag:N,part:$,partsLoaded:U})}).catch(K)};z(F)})},L.handleFragLoadError=function(N){var M=N.data;return M&&M.details===i.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(M.frag,M.part):this.hls.trigger(r.Events.ERROR,M),null},L._handleTransmuxerFlush=function(N){var M=this.getCurrentContext(N);if(!M||this.state!==w.PARSING){this.fragCurrent||(this.state=w.IDLE);return}var F=M.frag,R=M.part,j=M.level,B=self.performance.now();F.stats.parsing.end=B,R&&(R.stats.parsing.end=B),this.updateLevelTiming(F,R,j,N.partial)},L.getCurrentContext=function(N){var M=this.levels,F=N.level,R=N.sn,j=N.part;if(!M||!M[F])return this.warn("Levels object was unset while buffering fragment "+R+" of level "+F+". The current chunk will not be buffered."),null;var B=M[F],K=j>-1?Object(o.getPartWith)(B,R,j):null,U=K?K.fragment:Object(o.getFragmentWithSN)(B,R,this.fragCurrent);return U?{frag:U,part:K,level:B}:null},L.bufferFragmentData=function(N,M,F,R){if(!N||this.state!==w.PARSING)return;var j=N.data1,B=N.data2,K=j;if(j&&B&&(K=Object(t.appendUint8Array)(j,B)),!K||!K.length)return;var U={type:N.type,frag:M,part:F,chunkMeta:R,parent:M.type,data:K};this.hls.trigger(r.Events.BUFFER_APPENDING,U),N.dropped&&N.independent&&!F&&this.flushBufferGap(M)},L.flushBufferGap=function(N){var M=this.media;if(!M)return;if(!c.BufferHelper.isBuffered(M,M.currentTime)){this.flushMainBuffer(0,N.start);return}var F=M.currentTime,R=c.BufferHelper.bufferInfo(M,F,0),j=N.duration,B=Math.min(this.config.maxFragLookUpTolerance*2,j*.25),K=Math.max(Math.min(N.start-B,R.end-B),F+B);N.start-K>B&&this.flushMainBuffer(K,N.start)},L.getFwdBufferInfo=function(N,M){var F=this.config,R=this.getLoadPosition();if(!Object(S.isFiniteNumber)(R))return null;var j=c.BufferHelper.bufferInfo(N,R,F.maxBufferHole);if(j.len===0&&j.nextStart!==void 0){var B=this.fragmentTracker.getBufferedFrag(R,M);if(B&&j.nextStart<B.end)return c.BufferHelper.bufferInfo(N,R,Math.max(j.nextStart,F.maxBufferHole))}return j},L.getMaxBufferLength=function(N){var M=this.config,F;return N?F=Math.max(8*M.maxBufferSize/N,M.maxBufferLength):F=M.maxBufferLength,Math.min(F,M.maxMaxBufferLength)},L.reduceMaxBufferLength=function(N){var M=this.config,F=N||M.maxBufferLength;return M.maxMaxBufferLength>=F?(M.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+M.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(N,M){var F,R,j=M.fragments,B=j.length;if(!B)return null;var K=this.config,U=j[0].start,z;if(M.live){var V=K.initialLiveManifestSize;if(B<V)return this.warn("Not enough fragments to start playback (have: "+B+", need: "+V+")"),null;!M.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(z=this.getInitialLiveFragment(M,j),this.startPosition=z?this.hls.liveSyncPosition||z.start:N)}else N<=U&&(z=j[0]);if(!z){var Y=K.lowLatencyMode?M.partEnd:M.fragmentEnd;z=this.getFragmentAtPosition(N,Y,M)}return(F=z)!==null&&F!==void 0&&F.initSegment&&!((R=z)!==null&&R!==void 0&&R.initSegment.data)&&!this.bitrateTest&&(z=z.initSegment),z},L.getNextPart=function(N,M,F){for(var R=-1,j=!1,B=!0,K=0,U=N.length;K<U;K++){var z=N[K];if(B=B&&!z.independent,R>-1&&F<z.start)break;var V=z.loaded;!V&&(j||z.independent||B)&&z.fragment===M&&(R=K),j=V}return R},L.loadedEndOfParts=function(N,M){var F=N[N.length-1];return F&&M>F.start&&F.loaded},L.getInitialLiveFragment=function(N,M){var F=this.fragPrevious,R=null;if(F){if(N.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+F.programDateTime),R=Object(e.findFragmentByPDT)(M,F.endProgramDateTime,this.config.maxFragLookUpTolerance)),!R){var j=F.sn+1;if(j>=N.startSN&&j<=N.endSN){var B=M[j-N.startSN];F.cc===B.cc&&(R=B,this.log("Live playlist, switching playlist, load frag with next SN: "+R.sn))}R||(R=Object(e.findFragWithCC)(M,F.cc),R&&this.log("Live playlist, switching playlist, load frag with same CC: "+R.sn))}}else{var K=this.hls.liveSyncPosition;K!==null&&(R=this.getFragmentAtPosition(K,this.bitrateTest?N.fragmentEnd:N.edge,N))}return R},L.getFragmentAtPosition=function(N,M,F){var R=this.config,j=this.fragPrevious,B=F.fragments,K=F.endSN,U=F.fragmentHint,z=R.maxFragLookUpTolerance,V=!!(R.lowLatencyMode&&F.partList&&U);V&&U&&!this.bitrateTest&&(B=B.concat(U),K=U.sn);var Y;if(N<M){var J=N>M-z?0:z;Y=Object(e.findFragmentByPTS)(j,B,N,J)}else Y=B[B.length-1];if(Y){var se=Y.sn-F.startSN,$=j&&Y.level===j.level,ae=B[se+1],ge=this.fragmentTracker.getState(Y);if(ge===h.FragmentState.BACKTRACKED){Y=null;for(var pe=se;B[pe]&&this.fragmentTracker.getState(B[pe])===h.FragmentState.BACKTRACKED;)j?Y=B[pe--]:Y=B[--pe];Y||(Y=ae)}else j&&Y.sn===j.sn&&!V&&($&&(Y.sn<K&&this.fragmentTracker.getState(ae)!==h.FragmentState.OK?(this.log("SN "+Y.sn+" just loaded, load next one: "+ae.sn),Y=ae):Y=null))}return Y},L.synchronizeToLiveEdge=function(N){var M=this.config,F=this.media;if(!F)return;var R=this.hls.liveSyncPosition,j=F.currentTime,B=N.fragments[0].start,K=N.edge,U=j>=B-M.maxFragLookUpTolerance&&j<=K;if(R!==null&&F.duration>R&&(j<R||!U)){var z=M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:M.liveMaxLatencyDurationCount*N.targetduration;(!U&&F.readyState<4||j<K-z)&&(this.loadedmetadata||(this.nextLoadPosition=R),F.readyState&&(this.warn("Playback: "+j.toFixed(3)+" is located too far from the end of live sliding playlist: "+K+", reset currentTime to : "+R.toFixed(3)),F.currentTime=R))}},L.alignPlaylists=function(N,M){var F=this.levels,R=this.levelLastLoaded,j=this.fragPrevious,B=R!==null?F[R]:null,K=N.fragments.length;if(!K)return this.warn("No fragments in live playlist"),0;var U=N.fragments[0].start,z=!M,V=N.alignedSliding&&Object(S.isFiniteNumber)(U);if(z||!V&&!U){Object(s.alignStream)(j,B,N);var Y=N.fragments[0].start;return this.log("Live playlist sliding: "+Y.toFixed(2)+" start-sn: "+(M?M.startSN:"na")+"->"+N.startSN+" prev-sn: "+(j?j.sn:"na")+" fragments: "+K),Y}return U},L.waitForCdnTuneIn=function(N){var M=3;return N.live&&N.canBlockReload&&N.tuneInGoal>Math.max(N.partHoldBack,N.partTarget*M)},L.setStartPosition=function(N,M){var F=this.startPosition;if(F<M&&(F=-1),F===-1||this.lastCurrentTime===-1){var R=N.startTimeOffset;Object(S.isFiniteNumber)(R)?(F=M+R,R<0&&(F+=N.totalduration),F=Math.min(Math.max(M,F),M+N.totalduration),this.log("Start time offset "+R+" found in playlist, adjust startPosition to "+F),this.startPosition=F):N.live?F=this.hls.liveSyncPosition||M:this.startPosition=F=0,this.lastCurrentTime=F}this.nextLoadPosition=F},L.getLoadPosition=function(){var N=this.media,M=0;return this.loadedmetadata&&N?M=N.currentTime:this.nextLoadPosition&&(M=this.nextLoadPosition),M},L.handleFragLoadAborted=function(N,M){this.transmuxer&&N.sn!=="initSegment"&&N.stats.aborted&&(this.warn("Fragment "+N.sn+(M?" part"+M.index:"")+" of level "+N.level+" was aborted"),this.resetFragmentLoading(N))},L.resetFragmentLoading=function(N){(!this.fragCurrent||!this.fragContextChanged(N))&&(this.state=w.IDLE)},L.onFragmentOrKeyLoadError=function(N,M){if(M.fatal)return;var F=M.frag;if(!F||F.type!==N)return;var R=this.fragCurrent;console.assert(R&&F.sn===R.sn&&F.level===R.level&&F.urlId===R.urlId,"Frag load error must match current frag to retry");var j=this.config;if(this.fragLoadError+1<=j.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(F.level))return;var B=Math.min(Math.pow(2,this.fragLoadError)*j.fragLoadingRetryDelay,j.fragLoadingMaxRetryTimeout);this.warn("Fragment "+F.sn+" of "+N+" "+F.level+" failed to load, retrying in "+B+"ms"),this.retryDate=self.performance.now()+B,this.fragLoadError++,this.state=w.FRAG_LOADING_WAITING_RETRY}else M.levelRetry?(N===p.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=w.IDLE):(a.logger.error(M.details+" reaches max retry, redispatch as fatal ..."),M.fatal=!0,this.hls.stopLoad(),this.state=w.ERROR)},L.afterBufferFlushed=function(N,M,F){if(!N)return;var R=c.BufferHelper.getBuffered(N);this.fragmentTracker.detectEvictedFragments(M,R,F),this.state===w.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=w.IDLE},L.resetLiveStartWhenNotLoaded=function(N){if(!this.loadedmetadata){this.startFragRequested=!1;var M=this.levels?this.levels[N].details:null;if(M!=null&&M.live)return this.startPosition=-1,this.setStartPosition(M,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},L.updateLevelTiming=function(N,M,F,R){var j=this,B=F.details;console.assert(!!B,"level.details must be defined");var K=Object.keys(N.elementaryStreams).reduce(function(U,z){var V=N.elementaryStreams[z];if(V){var Y=V.endPTS-V.startPTS;if(Y<=0)return j.warn("Could not parse fragment "+N.sn+" "+z+" duration reliably ("+Y+") resetting transmuxer to fallback to playlist timing"),j.resetTransmuxer(),U||!1;var J=R?0:Object(o.updateFragPTSDTS)(B,N,V.startPTS,V.endPTS,V.startDTS,V.endDTS);return j.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:B,level:F,drift:J,type:z,frag:N,start:V.startPTS,end:V.endPTS}),!0}return U},!1);K?(this.state=w.PARSED,this.hls.trigger(r.Events.FRAG_PARSED,{frag:N,part:M})):this.resetLoadingState()},L.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},A(O,[{key:"state",get:function(){return this._state},set:function(N){var M=this._state;M!==N&&(this._state=N,this.log(M+"->"+N))}}]),O}(m.default)},"./src/controller/buffer-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return e});var S=g("./src/polyfills/number.ts"),m=g("./src/events.ts"),h=g("./src/utils/logger.ts"),c=g("./src/errors.ts"),a=g("./src/utils/buffer-helper.ts"),r=g("./src/utils/mediasource-helper.ts"),i=g("./src/loader/fragment.ts"),n=g("./src/controller/buffer-operation-queue.ts"),t=Object(r.getMediaSource)(),s=/([ha]vc.)(?:\.[^.,]+)+/,e=function(){function o(u){var f=this;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.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var p=f.hls,v=f.media,A=f.mediaSource;h.logger.log("[buffer-controller]: Media source opened"),v&&(f.updateMediaElementDuration(),p.trigger(m.Events.MEDIA_ATTACHED,{media:v})),A&&A.removeEventListener("sourceopen",f._onMediaSourceOpen),f.checkPendingTracks()},this._onMediaSourceClose=function(){h.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){h.logger.log("[buffer-controller]: Media source ended")},this.hls=u,this._initSourceBuffer(),this.registerListeners()}var l=o.prototype;return l.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},l.destroy=function(){this.unregisterListeners(),this.details=null},l.registerListeners=function(){var f=this.hls;f.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(m.Events.BUFFER_RESET,this.onBufferReset,this),f.on(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.on(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.on(m.Events.BUFFER_EOS,this.onBufferEos,this),f.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.on(m.Events.FRAG_PARSED,this.onFragParsed,this),f.on(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l.unregisterListeners=function(){var f=this.hls;f.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(m.Events.BUFFER_RESET,this.onBufferReset,this),f.off(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.off(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.off(m.Events.BUFFER_EOS,this.onBufferEos,this),f.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.off(m.Events.FRAG_PARSED,this.onFragParsed,this),f.off(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},l.onManifestParsed=function(f,p){var v=2;(p.audio&&!p.video||!p.altAudio)&&(v=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=v,this.details=null,h.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},l.onMediaAttaching=function(f,p){var v=this.media=p.media;if(v&&t){var A=this.mediaSource=new t;A.addEventListener("sourceopen",this._onMediaSourceOpen),A.addEventListener("sourceended",this._onMediaSourceEnded),A.addEventListener("sourceclose",this._onMediaSourceClose),v.src=self.URL.createObjectURL(A),this._objectUrl=v.src}},l.onMediaDetaching=function(){var f=this.media,p=this.mediaSource,v=this._objectUrl;if(p){if(h.logger.log("[buffer-controller]: media source detaching"),p.readyState==="open")try{p.endOfStream()}catch(A){h.logger.warn("[buffer-controller]: onMediaDetaching: "+A.message+" while calling endOfStream")}this.onBufferReset(),p.removeEventListener("sourceopen",this._onMediaSourceOpen),p.removeEventListener("sourceended",this._onMediaSourceEnded),p.removeEventListener("sourceclose",this._onMediaSourceClose),f&&(v&&self.URL.revokeObjectURL(v),f.src===v?(f.removeAttribute("src"),f.load()):h.logger.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(m.Events.MEDIA_DETACHED,void 0)},l.onBufferReset=function(){var f=this;this.getSourceBufferTypes().forEach(function(p){var v=f.sourceBuffer[p];try{v&&(f.removeBufferListeners(p),f.mediaSource&&f.mediaSource.removeSourceBuffer(v),f.sourceBuffer[p]=void 0)}catch(A){h.logger.warn("[buffer-controller]: Failed to reset the "+p+" buffer",A)}}),this._initSourceBuffer()},l.onBufferCodecs=function(f,p){var v=this,A=this.getSourceBufferTypes().length;if(Object.keys(p).forEach(function(y){if(A){var x=v.tracks[y];if(x&&typeof x.buffer.changeType=="function"){var C=p[y],w=C.codec,b=C.levelCodec,_=C.container,O=(x.levelCodec||x.codec).replace(s,"$1"),L=(b||w).replace(s,"$1");if(O!==L){var D=_+";codecs="+(b||w);v.appendChangeType(y,D)}}}else v.pendingTracks[y]=p[y]}),A)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},l.appendChangeType=function(f,p){var v=this,A=this.operationQueue,y={execute:function(){var C=v.sourceBuffer[f];C&&(h.logger.log("[buffer-controller]: changing "+f+" sourceBuffer type to "+p),C.changeType(p)),A.shiftAndExecuteNext(f)},onStart:function(){},onComplete:function(){},onError:function(C){h.logger.warn("[buffer-controller]: Failed to change "+f+" SourceBuffer type",C)}};A.append(y,f)},l.onBufferAppending=function(f,p){var v=this,A=this.hls,y=this.operationQueue,x=this.tracks,C=p.data,w=p.type,b=p.frag,_=p.part,O=p.chunkMeta,L=O.buffering[w],D=self.performance.now();L.start=D;var N=b.stats.buffering,M=_?_.stats.buffering:null;N.start===0&&(N.start=D),M&&M.start===0&&(M.start=D);var F=x.audio,R=w==="audio"&&O.id===1&&(F==null?void 0:F.container)==="audio/mpeg",j={execute:function(){if(L.executeStart=self.performance.now(),R){var K=v.sourceBuffer[w];if(K){var U=b.start-K.timestampOffset;Math.abs(U)>=.1&&(h.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+U+") sn: "+b.sn+")"),K.timestampOffset=b.start)}}v.appendExecutor(C,w)},onStart:function(){},onComplete:function(){var K=self.performance.now();L.executeEnd=L.end=K,N.first===0&&(N.first=K),M&&M.first===0&&(M.first=K);var U=v.sourceBuffer,z={};for(var V in U)z[V]=a.BufferHelper.getBuffered(U[V]);v.appendError=0,v.hls.trigger(m.Events.BUFFER_APPENDED,{type:w,frag:b,part:_,chunkMeta:O,parent:b.type,timeRanges:z})},onError:function(K){h.logger.error("[buffer-controller]: Error encountered while trying to append to the "+w+" SourceBuffer",K);var U={type:c.ErrorTypes.MEDIA_ERROR,parent:b.type,details:c.ErrorDetails.BUFFER_APPEND_ERROR,err:K,fatal:!1};K.code===DOMException.QUOTA_EXCEEDED_ERR?U.details=c.ErrorDetails.BUFFER_FULL_ERROR:(v.appendError++,U.details=c.ErrorDetails.BUFFER_APPEND_ERROR,v.appendError>A.config.appendErrorMaxRetry&&(h.logger.error("[buffer-controller]: Failed "+A.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),U.fatal=!0)),A.trigger(m.Events.ERROR,U)}};y.append(j,w)},l.onBufferFlushing=function(f,p){var v=this,A=this.operationQueue,y=function(C){return{execute:v.removeExecutor.bind(v,C,p.startOffset,p.endOffset),onStart:function(){},onComplete:function(){v.hls.trigger(m.Events.BUFFER_FLUSHED,{type:C})},onError:function(b){h.logger.warn("[buffer-controller]: Failed to remove from "+C+" SourceBuffer",b)}}};p.type?A.append(y(p.type),p.type):this.getSourceBufferTypes().forEach(function(x){A.append(y(x),x)})},l.onFragParsed=function(f,p){var v=this,A=p.frag,y=p.part,x=[],C=y?y.elementaryStreams:A.elementaryStreams;C[i.ElementaryStreamTypes.AUDIOVIDEO]?x.push("audiovideo"):(C[i.ElementaryStreamTypes.AUDIO]&&x.push("audio"),C[i.ElementaryStreamTypes.VIDEO]&&x.push("video"));var w=function(){var _=self.performance.now();A.stats.buffering.end=_,y&&(y.stats.buffering.end=_);var O=y?y.stats:A.stats;v.hls.trigger(m.Events.FRAG_BUFFERED,{frag:A,part:y,stats:O,id:A.type})};x.length===0&&h.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+A.type+" level: "+A.level+" sn: "+A.sn),this.blockBuffers(w,x)},l.onFragChanged=function(f,p){this.flushBackBuffer()},l.onBufferEos=function(f,p){var v=this,A=this.getSourceBufferTypes().reduce(function(y,x){var C=v.sourceBuffer[x];return(!p.type||p.type===x)&&(C&&!C.ended&&(C.ended=!0,h.logger.log("[buffer-controller]: "+x+" sourceBuffer now EOS"))),y&&!!(!C||C.ended)},!0);A&&this.blockBuffers(function(){var y=v.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},l.onLevelUpdated=function(f,p){var v=p.details;if(!v.fragments.length)return;this.details=v,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},l.flushBackBuffer=function(){var f=this.hls,p=this.details,v=this.media,A=this.sourceBuffer;if(!v||p===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var x=p.live&&f.config.liveBackBufferLength!==null?f.config.liveBackBufferLength:f.config.backBufferLength;if(!Object(S.isFiniteNumber)(x)||x<0)return;var C=v.currentTime,w=p.levelTargetDuration,b=Math.max(x,w),_=Math.floor(C/w)*w-b;y.forEach(function(O){var L=A[O];if(L){var D=a.BufferHelper.getBuffered(L);D.length>0&&_>D.start(0)&&(f.trigger(m.Events.BACK_BUFFER_REACHED,{bufferEnd:_}),p.live&&f.trigger(m.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:_}),f.trigger(m.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:_,type:O}))}})},l.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var f=this.details,p=this.hls,v=this.media,A=this.mediaSource,y=f.fragments[0].start+f.totalduration,x=v.duration,C=Object(S.isFiniteNumber)(A.duration)?A.duration:0;f.live&&p.config.liveDurationInfinity?(h.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),A.duration=Infinity,this.updateSeekableRange(f)):(y>C&&y>x||!Object(S.isFiniteNumber)(x))&&(h.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),A.duration=y)},l.updateSeekableRange=function(f){var p=this.mediaSource,v=f.fragments,A=v.length;if(A&&f.live&&p!==null&&p!==void 0&&p.setLiveSeekableRange){var y=Math.max(0,v[0].start),x=Math.max(y,y+f.totalduration);p.setLiveSeekableRange(y,x)}},l.checkPendingTracks=function(){var f=this.bufferCodecEventsExpected,p=this.operationQueue,v=this.pendingTracks,A=Object.keys(v).length;if(A&&!f||A===2){this.createSourceBuffers(v),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}y.forEach(function(x){p.executeNext(x)})}},l.createSourceBuffers=function(f){var p=this.sourceBuffer,v=this.mediaSource;if(!v)throw Error("createSourceBuffers called when mediaSource was null");var A=0;for(var y in f)if(!p[y]){var x=f[y];if(!x)throw Error("source buffer exists for track "+y+", however track does not");var C=x.levelCodec||x.codec,w=x.container+";codecs="+C;h.logger.log("[buffer-controller]: creating sourceBuffer("+w+")");try{var b=p[y]=v.addSourceBuffer(w),_=y;this.addBufferListener(_,"updatestart",this._onSBUpdateStart),this.addBufferListener(_,"updateend",this._onSBUpdateEnd),this.addBufferListener(_,"error",this._onSBUpdateError),this.tracks[y]={buffer:b,codec:C,container:x.container,levelCodec:x.levelCodec,id:x.id},A++}catch(O){h.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+O.message),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:O,mimeType:w})}}A&&this.hls.trigger(m.Events.BUFFER_CREATED,{tracks:this.tracks})},l._onSBUpdateStart=function(f){var p=this.operationQueue,v=p.current(f);v.onStart()},l._onSBUpdateEnd=function(f){var p=this.operationQueue,v=p.current(f);v.onComplete(),p.shiftAndExecuteNext(f)},l._onSBUpdateError=function(f,p){h.logger.error("[buffer-controller]: "+f+" SourceBuffer error",p),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var v=this.operationQueue.current(f);v&&v.onError(p)},l.removeExecutor=function(f,p,v){var A=this.media,y=this.mediaSource,x=this.operationQueue,C=this.sourceBuffer,w=C[f];if(!A||!y||!w){h.logger.warn("[buffer-controller]: Attempting to remove from the "+f+" SourceBuffer, but it does not exist"),x.shiftAndExecuteNext(f);return}var b=Object(S.isFiniteNumber)(A.duration)?A.duration:Infinity,_=Object(S.isFiniteNumber)(y.duration)?y.duration:Infinity,O=Math.max(0,p),L=Math.min(v,b,_);L>O?(h.logger.log("[buffer-controller]: Removing ["+O+","+L+"] from the "+f+" SourceBuffer"),console.assert(!w.updating,f+" sourceBuffer must not be updating"),w.remove(O,L)):x.shiftAndExecuteNext(f)},l.appendExecutor=function(f,p){var v=this.operationQueue,A=this.sourceBuffer,y=A[p];if(!y){h.logger.warn("[buffer-controller]: Attempting to append to the "+p+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(p);return}y.ended=!1,console.assert(!y.updating,p+" sourceBuffer must not be updating"),y.appendBuffer(f)},l.blockBuffers=function(f,p){var v=this;if(p===void 0&&(p=this.getSourceBufferTypes()),!p.length){h.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(f);return}var A=this.operationQueue,y=p.map(function(x){return A.appendBlocker(x)});Promise.all(y).then(function(){f(),p.forEach(function(x){var C=v.sourceBuffer[x];(!C||!C.updating)&&A.shiftAndExecuteNext(x)})})},l.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},l.addBufferListener=function(f,p,v){var A=this.sourceBuffer[f];if(!A)return;var y=v.bind(this,f);this.listeners[f].push({event:p,listener:y}),A.addEventListener(p,y)},l.removeBufferListeners=function(f){var p=this.sourceBuffer[f];if(!p)return;this.listeners[f].forEach(function(v){p.removeEventListener(v.event,v.listener)})},o}()},"./src/controller/buffer-operation-queue.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return m});var S=g("./src/utils/logger.ts"),m=function(){function h(a){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=a}var c=h.prototype;return c.append=function(r,i){var n=this.queues[i];n.push(r),n.length===1&&this.buffers[i]&&this.executeNext(i)},c.insertAbort=function(r,i){var n=this.queues[i];n.unshift(r),this.executeNext(i)},c.appendBlocker=function(r){var i,n=new Promise(function(s){i=s}),t={execute:i,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(t,r),n},c.executeNext=function(r){var i=this.buffers,n=this.queues,t=i[r],s=n[r];if(s.length){var e=s[0];try{e.execute()}catch(o){S.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),e.onError(o),(!t||!t.updating)&&(s.shift(),this.executeNext(r))}}},c.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},c.current=function(r){return this.queues[r][0]},h}()},"./src/controller/cap-level-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/events.ts");function m(a,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}}function h(a,r,i){return r&&m(a.prototype,r),i&&m(a,i),a}var c=function(){function a(i){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=i,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var r=a.prototype;return r.setStreamController=function(n){this.streamController=n},r.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},r.registerListeners=function(){var n=this.hls;n.on(S.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var n=this.hls;n.off(S.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(n,t){a.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},r.onMediaAttaching=function(n,t){this.media=t.media instanceof HTMLVideoElement?t.media:null},r.onManifestParsed=function(n,t){var s=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,s.config.capLevelToPlayerSize&&t.video&&this.startCapping()},r.onBufferCodecs=function(n,t){var s=this.hls;s.config.capLevelToPlayerSize&&t.video&&this.startCapping()},r.onMediaDetaching=function(){this.stopCapping()},r.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(n.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},r.getMaxLevel=function(n){var t=this,s=this.hls.levels;if(!s.length)return-1;var e=s.filter(function(o,l){return a.isLevelAllowed(l,t.restrictedLevels)&&l<=n});return this.clientRect=null,a.getMaxLevelByMediaSize(e,this.mediaWidth,this.mediaHeight)},r.startCapping=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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,t={width:0,height:0};if(n){var s=n.getBoundingClientRect();t.width=s.width,t.height=s.height,!t.width&&!t.height&&(t.width=s.right-s.left||n.width||0,t.height=s.bottom-s.top||n.height||0)}return this.clientRect=t,t},a.isLevelAllowed=function(n,t){return t===void 0&&(t=[]),t.indexOf(n)===-1},a.getMaxLevelByMediaSize=function(n,t,s){if(!n||!n.length)return-1;for(var e=function(p,v){return v?p.width!==v.width||p.height!==v.height:!0},o=n.length-1,l=0;l<n.length;l+=1){var u=n[l];if((u.width>=t||u.height>=s)&&e(u,n[l+1])){o=l;break}}return o},h(a,[{key:"mediaWidth",get:function(){return this.getDimensions().width*a.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*a.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(t){}return n}}]),a}();T.default=c},"./src/controller/cmcd-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return e});var S=g("./src/events.ts"),m=g("./src/types/cmcd.ts"),h=g("./src/utils/buffer-helper.ts"),c=g("./src/utils/logger.ts");function a(o,l){for(var u=0;u<l.length;u++){var f=l[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,f.key,f)}}function r(o,l,u){return l&&a(o.prototype,l),u&&a(o,u),o}function i(o,l){var u=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(u)return(u=u.call(o)).next.bind(u);if(Array.isArray(o)||(u=n(o))||l&&o&&typeof o.length=="number"){u&&(o=u);var f=0;return function(){return f>=o.length?{done:!0}:{done:!1,value:o[f++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(o,l){if(!o)return;if(typeof o=="string")return t(o,l);var u=Object.prototype.toString.call(o).slice(8,-1);if(u==="Object"&&o.constructor&&(u=o.constructor.name),u==="Map"||u==="Set")return Array.from(o);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return t(o,l)}function t(o,l){(l==null||l>o.length)&&(l=o.length);for(var u=0,f=new Array(l);u<l;u++)f[u]=o[u];return f}function s(){return s=Object.assign||function(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(o[f]=u[f])}return o},s.apply(this,arguments)}var e=function(){function o(u){var f=this;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(){f.initialized&&(f.starved=!0),f.buffering=!0},this.onPlaying=function(){f.initialized||(f.initialized=!0),f.buffering=!1},this.applyPlaylistData=function(A){try{f.apply(A,{ot:m.CMCDObjectType.MANIFEST,su:!f.initialized})}catch(y){c.logger.warn("Could not generate manifest CMCD data.",y)}},this.applyFragmentData=function(A){try{var y=A.frag,x=f.hls.levels[y.level],C=f.getObjectType(y),w={d:y.duration*1e3,ot:C};(C===m.CMCDObjectType.VIDEO||C===m.CMCDObjectType.AUDIO||C==m.CMCDObjectType.MUXED)&&(w.br=x.bitrate/1e3,w.tb=f.getTopBandwidth(C),w.bl=f.getBufferLength(C)),f.apply(A,w)}catch(b){c.logger.warn("Could not generate segment CMCD data.",b)}},this.hls=u;var p=this.config=u.config,v=p.cmcd;v!=null&&(p.pLoader=this.createPlaylistLoader(),p.fLoader=this.createFragmentLoader(),this.sid=v.sessionId||o.uuid(),this.cid=v.contentId,this.useHeaders=v.useHeaders===!0,this.registerListeners())}var l=o.prototype;return l.registerListeners=function(){var f=this.hls;f.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.on(S.Events.BUFFER_CREATED,this.onBufferCreated,this)},l.unregisterListeners=function(){var f=this.hls;f.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.off(S.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},l.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},l.onMediaAttached=function(f,p){this.media=p.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},l.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},l.onBufferCreated=function(f,p){var v,A;this.audioBuffer=(v=p.tracks.audio)===null||v===void 0?void 0:v.buffer,this.videoBuffer=(A=p.tracks.video)===null||A===void 0?void 0:A.buffer},l.createData=function(){var f;return{v:m.CMCDVersion,sf:m.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(f=this.media)===null||f===void 0?void 0:f.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},l.apply=function(f,p){p===void 0&&(p={}),s(p,this.createData());var v=p.ot===m.CMCDObjectType.INIT||p.ot===m.CMCDObjectType.VIDEO||p.ot===m.CMCDObjectType.MUXED;if(this.starved&&v&&(p.bs=!0,p.su=!0,this.starved=!1),p.su==null&&(p.su=this.buffering),this.useHeaders){var A=o.toHeaders(p);if(!Object.keys(A).length)return;f.headers||(f.headers={}),s(f.headers,A)}else{var y=o.toQuery(p);if(!y)return;f.url=o.appendQueryToUri(f.url,y)}},l.getObjectType=function(f){var p=f.type;return p==="subtitle"?m.CMCDObjectType.TIMED_TEXT:f.sn==="initSegment"?m.CMCDObjectType.INIT:p==="audio"?m.CMCDObjectType.AUDIO:p==="main"?this.hls.audioTracks.length?m.CMCDObjectType.VIDEO:m.CMCDObjectType.MUXED:void 0},l.getTopBandwidth=function(f){for(var p=0,v=f===m.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,A=i(v),y;!(y=A()).done;){var x=y.value;x.bitrate>p&&(p=x.bitrate)}return p>0?p:NaN},l.getBufferLength=function(f){var p=this.hls.media,v=f===m.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!v||!p)return NaN;var A=h.BufferHelper.bufferInfo(v,p.currentTime,this.config.maxBufferHole);return A.len*1e3},l.createPlaylistLoader=function(){var f=this.config.pLoader,p=this.applyPlaylistData,v=f||this.config.loader;return function(){function A(x){this.loader=void 0,this.loader=new v(x)}var y=A.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(C,w,b){p(C),this.loader.load(C,w,b)},r(A,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),A}()},l.createFragmentLoader=function(){var f=this.config.fLoader,p=this.applyFragmentData,v=f||this.config.loader;return function(){function A(x){this.loader=void 0,this.loader=new v(x)}var y=A.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(C,w,b){p(C),this.loader.load(C,w,b)},r(A,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),A}()},o.uuid=function(){var f=URL.createObjectURL(new Blob),p=f.toString();return URL.revokeObjectURL(f),p.substr(p.lastIndexOf("/")+1)},o.serialize=function(f){for(var p=[],v=function(R){return!Number.isNaN(R)&&R!=null&&R!==""&&R!==!1},A=function(R){return Math.round(R)},y=function(R){return A(R/100)*100},x=function(R){return encodeURIComponent(R)},C={br:A,d:A,bl:y,dl:y,mtp:y,nor:x,rtp:y,tb:A},w=Object.keys(f||{}).sort(),b=i(w),_;!(_=b()).done;){var O=_.value,L=f[O];if(!v(L))continue;if(O==="v"&&L===1)continue;if(O=="pr"&&L===1)continue;var D=C[O];D&&(L=D(L));var N=typeof L,M=void 0;O==="ot"||O==="sf"||O==="st"?M=O+"="+L:N==="boolean"?M=O:N==="number"?M=O+"="+L:M=O+"="+JSON.stringify(L),p.push(M)}return p.join(",")},o.toHeaders=function(f){for(var p=Object.keys(f),v={},A=["Object","Request","Session","Status"],y=[{},{},{},{}],x={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},C=0,w=p;C<w.length;C++){var b=w[C],_=x[b]!=null?x[b]:1;y[_][b]=f[b]}for(var O=0;O<y.length;O++){var L=o.serialize(y[O]);L&&(v["CMCD-"+A[O]]=L)}return v},o.toQuery=function(f){return"CMCD="+encodeURIComponent(o.serialize(f))},o.appendQueryToUri=function(f,p){if(!p)return f;var v=f.includes("?")?"&":"?";return""+f+v+p},o}()},"./src/controller/eme-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/events.ts"),m=g("./src/errors.ts"),h=g("./src/utils/logger.ts"),c=g("./src/utils/mediakeys-helper.ts");function a(e,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function r(e,o,l){return o&&a(e.prototype,o),l&&a(e,l),e}var i=3,n=function(o,l,u){var f={audioCapabilities:[],videoCapabilities:[]};return o.forEach(function(p){f.audioCapabilities.push({contentType:'audio/mp4; codecs="'+p+'"',robustness:u.audioRobustness||""})}),l.forEach(function(p){f.videoCapabilities.push({contentType:'video/mp4; codecs="'+p+'"',robustness:u.videoRobustness||""})}),[f]},t=function(o,l,u,f){switch(o){case c.KeySystems.WIDEVINE:return n(l,u,f);default:throw new Error("Unknown key-system: "+o)}},s=function(){function e(l){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=l,this._config=l.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var o=e.prototype;return o.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},o._registerListeners=function(){this.hls.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o._unregisterListeners=function(){this.hls.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o.getLicenseServerUrl=function(u){switch(u){case c.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+u+'"')},o._attemptKeySystemAccess=function(u,f,p){var v=this,A=t(u,f,p,this._drmSystemOptions);h.logger.log("Requesting encrypted media key-system access");var y=this.requestMediaKeySystemAccess(u,A);this.mediaKeysPromise=y.then(function(x){return v._onMediaKeySystemAccessObtained(u,x)}),y.catch(function(x){h.logger.error('Failed to obtain key-system "'+u+'" access:',x)})},o._onMediaKeySystemAccessObtained=function(u,f){var p=this;h.logger.log('Access for key-system "'+u+'" obtained');var v={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:f,mediaKeySystemDomain:u};this._mediaKeysList.push(v);var A=Promise.resolve().then(function(){return f.createMediaKeys()}).then(function(y){return v.mediaKeys=y,h.logger.log('Media-keys created for key-system "'+u+'"'),p._onMediaKeysCreated(),y});return A.catch(function(y){h.logger.error("Failed to create media-keys:",y)}),A},o._onMediaKeysCreated=function(){var u=this;this._mediaKeysList.forEach(function(f){f.mediaKeysSession||(f.mediaKeysSession=f.mediaKeys.createSession(),u._onNewMediaKeySession(f.mediaKeysSession))})},o._onNewMediaKeySession=function(u){var f=this;h.logger.log("New key-system session "+u.sessionId),u.addEventListener("message",function(p){f._onKeySessionMessage(u,p.message)},!1)},o._onKeySessionMessage=function(u,f){h.logger.log("Got EME message event, creating license request"),this._requestLicense(f,function(p){h.logger.log("Received license data (length: "+(p&&p.byteLength)+"), updating key-session"),u.update(p)})},o.onMediaEncrypted=function(u){var f=this;if(h.logger.log('Media is encrypted using "'+u.initDataType+'" init data type'),!this.mediaKeysPromise){h.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var p=function(A){if(!f._media)return;f._attemptSetMediaKeys(A),f._generateRequestWithPreferredKeySession(u.initDataType,u.initData)};this.mediaKeysPromise.then(p).catch(p)},o._attemptSetMediaKeys=function(u){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var f=this._mediaKeysList[0];if(!f||!f.mediaKeys){h.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}h.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(f.mediaKeys),this._hasSetMediaKeys=!0}},o._generateRequestWithPreferredKeySession=function(u,f){var p=this,v=this._mediaKeysList[0];if(!v){h.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(v.mediaKeysSessionInitialized){h.logger.warn("Key-Session already initialized but requested again");return}var A=v.mediaKeysSession;if(!A){h.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!f){h.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}h.logger.log('Generating key-session request for "'+u+'" init data type'),v.mediaKeysSessionInitialized=!0,A.generateRequest(u,f).then(function(){h.logger.debug("Key-session generation succeeded")}).catch(function(y){h.logger.error("Error generating key-session request:",y),p.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},o._createLicenseXhr=function(u,f,p){var v=new XMLHttpRequest;v.responseType="arraybuffer",v.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,v,u,f,p);var A=this._licenseXhrSetup;if(A)try{A.call(this.hls,v,u),A=void 0}catch(y){h.logger.error(y)}try{v.readyState||v.open("POST",u,!0),A&&A.call(this.hls,v,u)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return v},o._onLicenseRequestReadyStageChange=function(u,f,p,v){switch(u.readyState){case 4:if(u.status===200){this._requestLicenseFailureCount=0,h.logger.log("License request succeeded");var A=u.response,y=this._licenseResponseCallback;if(y)try{A=y.call(this.hls,u,f)}catch(C){h.logger.error(C)}v(A)}else{if(h.logger.error("License Request XHR failed ("+f+"). Status: "+u.status+" ("+u.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>i){this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var x=i-this._requestLicenseFailureCount+1;h.logger.warn("Retrying license request, "+x+" attempts left"),this._requestLicense(p,v)}break}},o._generateLicenseRequestChallenge=function(u,f){switch(u.mediaKeySystemDomain){case c.KeySystems.WIDEVINE:return f}throw new Error("unsupported key-system: "+u.mediaKeySystemDomain)},o._requestLicense=function(u,f){h.logger.log("Requesting content license for key-system");var p=this._mediaKeysList[0];if(!p){h.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var v=this.getLicenseServerUrl(p.mediaKeySystemDomain),A=this._createLicenseXhr(v,u,f);h.logger.log("Sending license request to URL: "+v);var y=this._generateLicenseRequestChallenge(p,u);A.send(y)}catch(x){h.logger.error("Failure requesting DRM license: "+x),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},o.onMediaAttached=function(u,f){if(!this._emeEnabled)return;var p=f.media;this._media=p,p.addEventListener("encrypted",this._onMediaEncrypted)},o.onMediaDetached=function(){var u=this._media,f=this._mediaKeysList;if(!u)return;u.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(f.map(function(p){if(p.mediaKeysSession)return p.mediaKeysSession.close().catch(function(){})})).then(function(){return u.setMediaKeys(null)}).catch(function(){})},o.onManifestParsed=function(u,f){if(!this._emeEnabled)return;var p=f.levels.map(function(A){return A.audioCodec}).filter(function(A){return!!A}),v=f.levels.map(function(A){return A.videoCodec}).filter(function(A){return!!A});this._attemptKeySystemAccess(c.KeySystems.WIDEVINE,p,v)},r(e,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),e}();T.default=s},"./src/controller/fps-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/events.ts"),m=g("./src/utils/logger.ts"),h=function(){function c(r){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=r,this.registerListeners()}var a=c.prototype;return a.setStreamController=function(i){this.streamController=i},a.registerListeners=function(){this.hls.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},a.unregisterListeners=function(){this.hls.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching)},a.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},a.onMediaAttaching=function(i,n){var t=this.hls.config;if(t.capLevelOnFPSDrop){var s=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod)}},a.checkFPS=function(i,n,t){var s=performance.now();if(n){if(this.lastTime){var e=s-this.lastTime,o=t-this.lastDroppedFrames,l=n-this.lastDecodedFrames,u=1e3*o/e,f=this.hls;if(f.trigger(S.Events.FPS_DROP,{currentDropped:o,currentDecoded:l,totalDroppedFrames:t}),u>0&&o>f.config.fpsDroppedMonitoringThreshold*l){var p=f.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+p),p>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=p)&&(p=p-1,f.trigger(S.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:f.currentLevel}),f.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=t,this.lastDecodedFrames=n}},a.checkFPSInterval=function(){var i=this.media;if(i)if(this.isVideoPlaybackQualityAvailable){var n=i.getVideoPlaybackQuality();this.checkFPS(i,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(i,i.webkitDecodedFrameCount,i.webkitDroppedFrameCount)},c}();T.default=h},"./src/controller/fragment-finders.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"findFragmentByPDT",function(){return h}),g.d(T,"findFragmentByPTS",function(){return c}),g.d(T,"fragmentWithinToleranceTest",function(){return a}),g.d(T,"pdtWithinToleranceTest",function(){return r}),g.d(T,"findFragWithCC",function(){return i});var S=g("./src/polyfills/number.ts"),m=g("./src/utils/binary-search.ts");function h(n,t,s){if(t===null||!Array.isArray(n)||!n.length||!Object(S.isFiniteNumber)(t))return null;var e=n[0].programDateTime;if(t<(e||0))return null;var o=n[n.length-1].endProgramDateTime;if(t>=(o||0))return null;s=s||0;for(var l=0;l<n.length;++l){var u=n[l];if(r(t,s,u))return u}return null}function c(n,t,s,e){s===void 0&&(s=0),e===void 0&&(e=0);var o=null;if(n?o=t[n.sn-t[0].sn+1]||null:s===0&&t[0].start===0&&(o=t[0]),o&&a(s,e,o)===0)return o;var l=m.default.search(t,a.bind(null,s,e));return l||o}function a(n,t,s){n===void 0&&(n=0),t===void 0&&(t=0);var e=Math.min(t,s.duration+(s.deltaPTS?s.deltaPTS:0));return s.start+s.duration-e<=n?1:s.start-e>n&&s.start?-1:0}function r(n,t,s){var e=Math.min(t,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,o=s.endProgramDateTime||0;return o-e>n}function i(n,t){return m.default.search(n,function(s){return s.cc<t?1:s.cc>t?-1:0})}},"./src/controller/fragment-tracker.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"FragmentState",function(){return h}),g.d(T,"FragmentTracker",function(){return c});var S=g("./src/events.ts"),m=g("./src/types/loader.ts"),h;(function(i){i.NOT_LOADED="NOT_LOADED",i.BACKTRACKED="BACKTRACKED",i.APPENDING="APPENDING",i.PARTIAL="PARTIAL",i.OK="OK"})(h||(h={}));var c=function(){function i(t){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=t,this._registerListeners()}var n=i.prototype;return n._registerListeners=function(){var s=this.hls;s.on(S.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(S.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(S.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(S.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(s,e){if(e===m.PlaylistLevelType.MAIN){var o=this.activeFragment,l=this.activeParts;if(!o)return null;if(l)for(var u=l.length;u--;){var f=l[u],p=f?f.end:o.appendedPTS;if(f.start<=s&&p!==void 0&&s<=p)return u>9&&(this.activeParts=l.slice(u-9)),f}else if(o.start<=s&&o.appendedPTS!==void 0&&s<=o.appendedPTS)return o}return this.getBufferedFrag(s,e)},n.getBufferedFrag=function(s,e){for(var o=this.fragments,l=Object.keys(o),u=l.length;u--;){var f=o[l[u]];if((f==null?void 0:f.body.type)===e&&f.buffered){var p=f.body;if(p.start<=s&&s<=p.end)return p}}return null},n.detectEvictedFragments=function(s,e,o){var l=this;Object.keys(this.fragments).forEach(function(u){var f=l.fragments[u];if(!f)return;if(!f.buffered){f.body.type===o&&l.removeFragment(f.body);return}var p=f.range[s];if(!p)return;p.time.some(function(v){var A=!l.isTimeBuffered(v.startPTS,v.endPTS,e);return A&&l.removeFragment(f.body),A})})},n.detectPartialFragments=function(s){var e=this,o=this.timeRanges,l=s.frag,u=s.part;if(!o||l.sn==="initSegment")return;var f=r(l),p=this.fragments[f];if(!p)return;Object.keys(o).forEach(function(v){var A=l.elementaryStreams[v];if(!A)return;var y=o[v],x=u!==null||A.partial===!0;p.range[v]=e.getBufferedTimes(l,u,x,y)}),p.backtrack=p.loaded=null,Object.keys(p.range).length?p.buffered=!0:this.removeFragment(p.body)},n.fragBuffered=function(s){var e=r(s),o=this.fragments[e];o&&(o.backtrack=o.loaded=null,o.buffered=!0)},n.getBufferedTimes=function(s,e,o,l){for(var u={time:[],partial:o},f=e?e.start:s.start,p=e?e.end:s.end,v=s.minEndPTS||p,A=s.maxStartPTS||f,y=0;y<l.length;y++){var x=l.start(y)-this.bufferPadding,C=l.end(y)+this.bufferPadding;if(A>=x&&v<=C){u.time.push({startPTS:Math.max(f,l.start(y)),endPTS:Math.min(p,l.end(y))});break}else if(f<C&&p>x)u.partial=!0,u.time.push({startPTS:Math.max(f,l.start(y)),endPTS:Math.min(p,l.end(y))});else if(p<=x)break}return u},n.getPartialFragment=function(s){var e=null,o,l,u,f=0,p=this.bufferPadding,v=this.fragments;return Object.keys(v).forEach(function(A){var y=v[A];if(!y)return;a(y)&&(l=y.body.start-p,u=y.body.end+p,s>=l&&s<=u&&(o=Math.min(s-l,u-s),f<=o&&(e=y.body,f=o)))}),e},n.getState=function(s){var e=r(s),o=this.fragments[e];return o?o.buffered?a(o)?h.PARTIAL:h.OK:o.backtrack?h.BACKTRACKED:h.APPENDING:h.NOT_LOADED},n.backtrack=function(s,e){var o=r(s),l=this.fragments[o];if(!l||l.backtrack)return null;var u=l.backtrack=e||l.loaded;return l.loaded=null,u},n.getBacktrackData=function(s){var e=r(s),o=this.fragments[e];if(o){var l,u=o.backtrack;if(u!=null&&(l=u.payload)!==null&&l!==void 0&&l.byteLength)return u;this.removeFragment(s)}return null},n.isTimeBuffered=function(s,e,o){for(var l,u,f=0;f<o.length;f++){if(l=o.start(f)-this.bufferPadding,u=o.end(f)+this.bufferPadding,s>=l&&e<=u)return!0;if(e<=l)return!1}return!1},n.onFragLoaded=function(s,e){var o=e.frag,l=e.part;if(o.sn==="initSegment"||o.bitrateTest||l)return;var u=r(o);this.fragments[u]={body:o,loaded:e,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,e){var o=this,l=e.frag,u=e.part,f=e.timeRanges;if(l.type===m.PlaylistLevelType.MAIN)if(this.activeFragment=l,u){var p=this.activeParts;p||(this.activeParts=p=[]),p.push(u)}else this.activeParts=null;this.timeRanges=f,Object.keys(f).forEach(function(v){var A=f[v];if(o.detectEvictedFragments(v,A),!u)for(var y=0;y<A.length;y++)l.appendedPTS=Math.max(A.end(y),l.appendedPTS||0)})},n.onFragBuffered=function(s,e){this.detectPartialFragments(e)},n.hasFragment=function(s){var e=r(s);return!!this.fragments[e]},n.removeFragmentsInRange=function(s,e,o){var l=this;Object.keys(this.fragments).forEach(function(u){var f=l.fragments[u];if(!f)return;if(f.buffered){var p=f.body;p.type===o&&p.start<e&&p.end>s&&l.removeFragment(p)}})},n.removeFragment=function(s){var e=r(s);s.stats.loaded=0,s.clearElementaryStreamInfo(),delete this.fragments[e]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},i}();function a(i){var n,t;return i.buffered&&(((n=i.range.video)===null||n===void 0?void 0:n.partial)||((t=i.range.audio)===null||t===void 0?void 0:t.partial))}function r(i){return i.type+"_"+i.level+"_"+i.urlId+"_"+i.sn}},"./src/controller/gap-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"STALL_MINIMUM_DURATION_MS",function(){return a}),g.d(T,"MAX_START_GAP_JUMP",function(){return r}),g.d(T,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return i}),g.d(T,"SKIP_BUFFER_RANGE_START",function(){return n}),g.d(T,"default",function(){return t});var S=g("./src/utils/buffer-helper.ts"),m=g("./src/errors.ts"),h=g("./src/events.ts"),c=g("./src/utils/logger.ts"),a=250,r=2,i=.1,n=.05,t=function(){function s(o,l,u,f){this.config=void 0,this.media=void 0,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=o,this.media=l,this.fragmentTracker=u,this.hls=f}var e=s.prototype;return e.destroy=function(){this.hls=this.fragmentTracker=this.media=null},e.poll=function(l){var u=this.config,f=this.media,p=this.stalled,v=f.currentTime,A=f.seeking,y=this.seeking&&!A,x=!this.seeking&&A;if(this.seeking=A,v!==l){if(this.moved=!0,p!==null){if(this.stallReported){var C=self.performance.now()-p;c.logger.warn("playback not stuck anymore @"+v+", after "+Math.round(C)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((x||y)&&(this.stalled=null),f.paused||f.ended||f.playbackRate===0||!S.BufferHelper.getBuffered(f).length)return;var w=S.BufferHelper.bufferInfo(f,v,0),b=w.len>0,_=w.nextStart||0;if(!b&&!_)return;if(A){var O=w.len>r,L=!_||_-v>r&&!this.fragmentTracker.getPartialFragment(v);if(O||L)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,N=Math.max(_,w.start||0)-v,M=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,F=M==null||((D=M.details)===null||D===void 0)?void 0:D.live,R=F?M.details.targetduration*2:r;if(N>0&&N<=R){this._trySkipBufferHole(null);return}}var j=self.performance.now();if(p===null){this.stalled=j;return}var B=j-p;!A&&B>=a&&this._reportStall(w.len);var K=S.BufferHelper.bufferInfo(f,v,u.maxBufferHole);this._tryFixBufferStall(K,B)},e._tryFixBufferStall=function(l,u){var f=this.config,p=this.fragmentTracker,v=this.media,A=v.currentTime,y=p.getPartialFragment(A);if(y){var x=this._trySkipBufferHole(y);if(x)return}l.len>f.maxBufferHole&&u>f.highBufferWatchdogPeriod*1e3&&(c.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(l){var u=this.hls,f=this.media,p=this.stallReported;p||(this.stallReported=!0,c.logger.warn("Playback stalling at @"+f.currentTime+" due to low buffer (buffer="+l+")"),u.trigger(h.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:l}))},e._trySkipBufferHole=function(l){for(var u=this.config,f=this.hls,p=this.media,v=p.currentTime,A=0,y=S.BufferHelper.getBuffered(p),x=0;x<y.length;x++){var C=y.start(x);if(v+u.maxBufferHole>=A&&v<C){var w=Math.max(C+n,p.currentTime+i);return c.logger.warn("skipping hole, adjusting currentTime from "+v+" to "+w),this.moved=!0,this.stalled=null,p.currentTime=w,l&&f.trigger(h.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+v+" to "+w,frag:l}),w}A=y.end(x)}return 0},e._tryNudgeBuffer=function(){var l=this.config,u=this.hls,f=this.media,p=f.currentTime,v=(this.nudgeRetry||0)+1;if(this.nudgeRetry=v,v<l.nudgeMaxRetry){var A=p+v*l.nudgeOffset;c.logger.warn("Nudging 'currentTime' from "+p+" to "+A),f.currentTime=A,u.trigger(h.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else c.logger.error("Playhead still not moving while enough data buffered @"+p+" after "+l.nudgeMaxRetry+" nudges"),u.trigger(h.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},s}()},"./src/controller/id3-track-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/events.ts"),m=g("./src/utils/texttrack-utils.ts"),h=g("./src/demux/id3.ts"),c=.25,a=function(){function r(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var i=r.prototype;return i.destroy=function(){this._unregisterListeners()},i._registerListeners=function(){var t=this.hls;t.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(S.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i._unregisterListeners=function(){var t=this.hls;t.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(S.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i.onMediaAttached=function(t,s){this.media=s.media},i.onMediaDetaching=function(){if(!this.id3Track)return;Object(m.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},i.getID3Track=function(t){if(!this.media)return;for(var s=0;s<t.length;s++){var e=t[s];if(e.kind==="metadata"&&e.label==="id3")return Object(m.sendAddTrackEvent)(e,this.media),e}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(t,s){if(!this.media)return;var e=s.frag,o=s.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var l=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,u=0;u<o.length;u++){var f=h.getID3Frames(o[u].data);if(f){var p=o[u].pts,v=u<o.length-1?o[u+1].pts:e.end,A=v-p;A<=0&&(v=p+c);for(var y=0;y<f.length;y++){var x=f[y];if(!h.isTimeStampFrame(x)){var C=new l(p,v,"");C.value=x,this.id3Track.addCue(C)}}}}},i.onBufferFlushing=function(t,s){var e=s.startOffset,o=s.endOffset,l=s.type;if(!l||l==="audio"){var u=this.id3Track;u&&Object(m.removeCuesInRange)(u,e,o)}},r}();T.default=a},"./src/controller/latency-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return r});var S=g("./src/errors.ts"),m=g("./src/events.ts"),h=g("./src/utils/logger.ts");function c(i,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function a(i,n,t){return n&&c(i.prototype,n),t&&c(i,t),i}var r=function(){function i(t){var s=this;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 s.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var n=i.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(m.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(m.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(m.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(m.Events.ERROR,this.onError)},n.onMediaAttached=function(s,e){this.media=e.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(s,e){var o=e.details;this.levelDetails=o,o.advanced&&this.timeupdate(),!o.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(s,e){if(e.details!==S.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,h.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var s=this.media,e=this.levelDetails;if(!s||!e)return;this.currentTime=s.currentTime;var o=this.computeLatency();if(o===null)return;this._latency=o;var l=this.config,u=l.lowLatencyMode,f=l.maxLiveSyncPlaybackRate;if(!u||f===1)return;var p=this.targetLatency;if(p===null)return;var v=o-p,A=Math.min(this.maxLatency,p+e.targetduration),y=v<A;if(e.live&&y&&v>.05&&this.forwardBufferLength>1){var x=Math.min(2,Math.max(1,f)),C=Math.round(2/(1+Math.exp(-.75*v-this.edgeStalled))*20)/20;s.playbackRate=Math.min(x,Math.max(1,C))}else s.playbackRate!==1&&s.playbackRate!==0&&(s.playbackRate=1)},n.estimateLiveEdge=function(){var s=this.levelDetails;return s===null?null:s.edge+s.age},n.computeLatency=function(){var s=this.estimateLiveEdge();return s===null?null:s-this.currentTime},a(i,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var s=this.config,e=this.levelDetails;return s.liveMaxLatencyDuration!==void 0?s.liveMaxLatencyDuration:e?s.liveMaxLatencyDurationCount*e.targetduration:0}},{key:"targetLatency",get:function(){var s=this.levelDetails;if(s===null)return null;var e=s.holdBack,o=s.partHoldBack,l=s.targetduration,u=this.config,f=u.liveSyncDuration,p=u.liveSyncDurationCount,v=u.lowLatencyMode,A=this.hls.userConfig,y=v&&o||e;(A.liveSyncDuration||A.liveSyncDurationCount||y===0)&&(y=f!==void 0?f:p*l);var x=l,C=1;return y+Math.min(this.stallCount*C,x)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),e=this.targetLatency,o=this.levelDetails;if(s===null||e===null||o===null)return null;var l=o.edge,u=s-e-this.edgeStalled,f=l-o.totalduration,p=l-(this.config.lowLatencyMode&&o.partTarget||o.targetduration);return Math.min(Math.max(f,u),p)}},{key:"drift",get:function(){var s=this.levelDetails;return s===null?1:s.drift}},{key:"edgeStalled",get:function(){var s=this.levelDetails;if(s===null)return 0;var e=(this.config.lowLatencyMode&&s.partTarget||s.targetduration)*3;return Math.max(s.age-e,0)}},{key:"forwardBufferLength",get:function(){var s=this.media,e=this.levelDetails;if(!s||!e)return 0;var o=s.buffered.length;return o?s.buffered.end(o-1):e.edge-this.currentTime}}]),i}()},"./src/controller/level-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return u});var S=g("./src/types/level.ts"),m=g("./src/events.ts"),h=g("./src/errors.ts"),c=g("./src/utils/codecs.ts"),a=g("./src/controller/level-helper.ts"),r=g("./src/controller/base-playlist-controller.ts"),i=g("./src/types/loader.ts");function n(){return n=Object.assign||function(f){for(var p=1;p<arguments.length;p++){var v=arguments[p];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(f[A]=v[A])}return f},n.apply(this,arguments)}function t(f,p){for(var v=0;v<p.length;v++){var A=p[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}function s(f,p,v){return p&&t(f.prototype,p),v&&t(f,v),f}function e(f,p){f.prototype=Object.create(p.prototype),f.prototype.constructor=f,o(f,p)}function o(f,p){return o=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},o(f,p)}var l=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=function(f){e(p,f);function p(A){var y;return y=f.call(this,A,"[level-controller]")||this,y._levels=[],y._firstLevel=-1,y._startLevel=void 0,y.currentLevelIndex=-1,y.manualLevelIndex=-1,y.onParsedComplete=void 0,y._registerListeners(),y}var v=p.prototype;return v._registerListeners=function(){var y=this.hls;y.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(m.Events.ERROR,this.onError,this)},v._unregisterListeners=function(){var y=this.hls;y.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(m.Events.ERROR,this.onError,this)},v.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,f.prototype.destroy.call(this)},v.startLoad=function(){var y=this._levels;y.forEach(function(x){x.loadError=0}),f.prototype.startLoad.call(this)},v.onManifestLoaded=function(y,x){var C=[],w=[],b=[],_,O={},L,D=!1,N=!1,M=!1;if(x.levels.forEach(function(B){var K=B.attrs;D=D||!!(B.width&&B.height),N=N||!!B.videoCodec,M=M||!!B.audioCodec,l&&B.audioCodec&&B.audioCodec.indexOf("mp4a.40.34")!==-1&&(B.audioCodec=void 0);var U=B.bitrate+"-"+B.attrs.RESOLUTION+"-"+B.attrs.CODECS;L=O[U],L?L.url.push(B.url):(L=new S.Level(B),O[U]=L,C.push(L)),K&&(K.AUDIO&&Object(a.addGroupId)(L,"audio",K.AUDIO),K.SUBTITLES&&Object(a.addGroupId)(L,"text",K.SUBTITLES))}),(D||N)&&M&&(C=C.filter(function(B){var K=B.videoCodec,U=B.width,z=B.height;return!!K||!!(U&&z)})),C=C.filter(function(B){var K=B.audioCodec,U=B.videoCodec;return(!K||Object(c.isCodecSupportedInMp4)(K,"audio"))&&(!U||Object(c.isCodecSupportedInMp4)(U,"video"))}),x.audioTracks&&(w=x.audioTracks.filter(function(B){return!B.audioCodec||Object(c.isCodecSupportedInMp4)(B.audioCodec,"audio")}),Object(a.assignTrackIdsByGroup)(w)),x.subtitles&&(b=x.subtitles,Object(a.assignTrackIdsByGroup)(b)),C.length>0){_=C[0].bitrate,C.sort(function(B,K){return B.bitrate-K.bitrate}),this._levels=C;for(var F=0;F<C.length;F++)if(C[F].bitrate===_){this._firstLevel=F,this.log("manifest loaded, "+C.length+" level(s) found, first bitrate: "+_);break}var R=M&&!N,j={levels:C,audioTracks:w,subtitleTracks:b,firstLevel:this._firstLevel,stats:x.stats,audio:M,video:N,altAudio:!R&&w.some(function(B){return!!B.url})};this.hls.trigger(m.Events.MANIFEST_PARSED,j),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(m.Events.ERROR,{type:h.ErrorTypes.MEDIA_ERROR,details:h.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:x.url,reason:"no level with compatible codecs found in manifest"})},v.onError=function(y,x){if(f.prototype.onError.call(this,y,x),x.fatal)return;var C=x.context,w=this._levels[this.currentLevelIndex];if(C&&(C.type===i.PlaylistContextType.AUDIO_TRACK&&w.audioGroupIds&&C.groupId===w.audioGroupIds[w.urlId]||C.type===i.PlaylistContextType.SUBTITLE_TRACK&&w.textGroupIds&&C.groupId===w.textGroupIds[w.urlId])){this.redundantFailover(this.currentLevelIndex);return}var b=!1,_=!0,O;switch(x.details){case h.ErrorDetails.FRAG_LOAD_ERROR:case h.ErrorDetails.FRAG_LOAD_TIMEOUT:case h.ErrorDetails.KEY_LOAD_ERROR:case h.ErrorDetails.KEY_LOAD_TIMEOUT:if(x.frag){var L=this._levels[x.frag.level];L?(L.fragmentError++,L.fragmentError>this.hls.config.fragLoadingMaxRetry&&(O=x.frag.level)):O=x.frag.level}break;case h.ErrorDetails.LEVEL_LOAD_ERROR:case h.ErrorDetails.LEVEL_LOAD_TIMEOUT:C&&(C.deliveryDirectives&&(_=!1),O=C.level),b=!0;break;case h.ErrorDetails.REMUX_ALLOC_ERROR:O=x.level,b=!0;break}O!==void 0&&this.recoverLevel(x,O,b,_)},v.recoverLevel=function(y,x,C,w){var b=y.details,_=this._levels[x];if(_.loadError++,C){var O=this.retryLoadingOrFail(y);if(O)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(w){var L=_.url.length;if(L>1&&_.loadError<L)y.levelRetry=!0,this.redundantFailover(x);else if(this.manualLevelIndex===-1){var D=x===0?this._levels.length-1:x-1;this.currentLevelIndex!==D&&this._levels[D].loadError===0&&(this.warn(b+": switch to "+D),y.levelRetry=!0,this.hls.nextAutoLevel=D)}}},v.redundantFailover=function(y){var x=this._levels[y],C=x.url.length;if(C>1){var w=(x.urlId+1)%C;this.warn("Switching to redundant URL-id "+w),this._levels.forEach(function(b){b.urlId=w}),this.level=y}},v.onFragLoaded=function(y,x){var C=x.frag;if(C!==void 0&&C.type===i.PlaylistLevelType.MAIN){var w=this._levels[C.level];w!==void 0&&(w.fragmentError=0,w.loadError=0)}},v.onLevelLoaded=function(y,x){var C,w=x.level,b=x.details,_=this._levels[w];if(!_){var O;this.warn("Invalid level index "+w),(O=x.deliveryDirectives)!==null&&O!==void 0&&O.skip&&(b.deltaUpdateFailed=!0);return}w===this.currentLevelIndex?(_.fragmentError===0&&(_.loadError=0,this.retryCount=0),this.playlistLoaded(w,x,_.details)):(C=x.deliveryDirectives)!==null&&C!==void 0&&C.skip&&(b.deltaUpdateFailed=!0)},v.onAudioTrackSwitched=function(y,x){var C=this.hls.levels[this.currentLevelIndex];if(!C)return;if(C.audioGroupIds){for(var w=-1,b=this.hls.audioTracks[x.id].groupId,_=0;_<C.audioGroupIds.length;_++)if(C.audioGroupIds[_]===b){w=_;break}w!==C.urlId&&(C.urlId=w,this.startLoad())}},v.loadPlaylist=function(y){var x=this.currentLevelIndex,C=this._levels[x];if(this.canLoad&&C&&C.url.length>0){var w=C.urlId,b=C.url[w];if(y)try{b=y.addDirectives(b)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Attempt loading level index "+x+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+w+" "+b),this.clearTimer(),this.hls.trigger(m.Events.LEVEL_LOADING,{url:b,level:x,id:w,deliveryDirectives:y||null})}},v.removeLevel=function(y,x){var C=function(_,O){return O!==x},w=this._levels.filter(function(b,_){return _!==y?!0:b.url.length>1&&x!==void 0?(b.url=b.url.filter(C),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(C)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(C)),b.urlId=0,!0):!1}).map(function(b,_){var O=b.details;return O!=null&&O.fragments&&O.fragments.forEach(function(L){L.level=_}),b});this._levels=w,this.hls.trigger(m.Events.LEVELS_UPDATED,{levels:w})},s(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var x,C=this._levels;if(C.length===0)return;if(this.currentLevelIndex===y&&(x=C[y])!==null&&x!==void 0&&x.details)return;if(y<0||y>=C.length){var w=y<0;if(this.hls.trigger(m.Events.ERROR,{type:h.ErrorTypes.OTHER_ERROR,details:h.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:w,reason:"invalid level idx"}),w)return;y=Math.min(y,C.length-1)}this.clearTimer();var b=this.currentLevelIndex,_=C[b],O=C[y];this.log("switching to level "+y+" from "+b),this.currentLevelIndex=y;var L=n({},O,{level:y,maxBitrate:O.maxBitrate,uri:O.uri,urlId:O.urlId});delete L._urlId,this.hls.trigger(m.Events.LEVEL_SWITCHING,L);var D=O.details;if(!D||D.live){var N=this.switchParams(O.uri,_==null?void 0:_.details);this.loadPlaylist(N)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(y){this.manualLevelIndex=y,this._startLevel===void 0&&(this._startLevel=y),y!==-1&&(this.level=y)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(y){this._firstLevel=y}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var y=this.hls.config.startLevel;return y!==void 0?y:this._firstLevel}else return this._startLevel},set:function(y){this._startLevel=y}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(y){this.level=y,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=y)}}]),p}(r.default)},"./src/controller/level-helper.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"addGroupId",function(){return h}),g.d(T,"assignTrackIdsByGroup",function(){return c}),g.d(T,"updatePTS",function(){return a}),g.d(T,"updateFragPTSDTS",function(){return i}),g.d(T,"mergeDetails",function(){return n}),g.d(T,"mapPartIntersection",function(){return t}),g.d(T,"mapFragmentIntersection",function(){return s}),g.d(T,"adjustSliding",function(){return e}),g.d(T,"addSliding",function(){return o}),g.d(T,"computeReloadInterval",function(){return l}),g.d(T,"getFragmentWithSN",function(){return u}),g.d(T,"getPartWith",function(){return f});var S=g("./src/polyfills/number.ts"),m=g("./src/utils/logger.ts");function h(p,v,A){switch(v){case"audio":p.audioGroupIds||(p.audioGroupIds=[]),p.audioGroupIds.push(A);break;case"text":p.textGroupIds||(p.textGroupIds=[]),p.textGroupIds.push(A);break}}function c(p){var v={};p.forEach(function(A){var y=A.groupId||"";A.id=v[y]=v[y]||0,v[y]++})}function a(p,v,A){var y=p[v],x=p[A];r(y,x)}function r(p,v){var A=v.startPTS;if(Object(S.isFiniteNumber)(A)){var y=0,x;v.sn>p.sn?(y=A-p.start,x=p):(y=p.start-A,x=v),x.duration!==y&&(x.duration=y)}else if(v.sn>p.sn){var C=p.cc===v.cc;C&&p.minEndPTS?v.start=p.start+(p.minEndPTS-p.start):v.start=p.start+p.duration}else v.start=Math.max(p.start-v.duration,0)}function i(p,v,A,y,x,C){var w=y-A;w<=0&&(m.logger.warn("Fragment should have a positive duration",v),y=A+v.duration,C=x+v.duration);var b=A,_=y,O=v.startPTS,L=v.endPTS;if(Object(S.isFiniteNumber)(O)){var D=Math.abs(O-A);Object(S.isFiniteNumber)(v.deltaPTS)?v.deltaPTS=Math.max(D,v.deltaPTS):v.deltaPTS=D,b=Math.max(A,O),A=Math.min(A,O),x=Math.min(x,v.startDTS),_=Math.min(y,L),y=Math.max(y,L),C=Math.max(C,v.endDTS)}v.duration=y-A;var N=A-v.start;v.appendedPTS=y,v.start=v.startPTS=A,v.maxStartPTS=b,v.startDTS=x,v.endPTS=y,v.minEndPTS=_,v.endDTS=C;var M=v.sn;if(!p||M<p.startSN||M>p.endSN)return 0;var F,R=M-p.startSN,j=p.fragments;for(j[R]=v,F=R;F>0;F--)r(j[F],j[F-1]);for(F=R;F<j.length-1;F++)r(j[F],j[F+1]);return p.fragmentHint&&r(j[j.length-1],p.fragmentHint),p.PTSKnown=p.alignedSliding=!0,N}function n(p,v){for(var A=null,y=p.fragments,x=y.length-1;x>=0;x--){var C=y[x].initSegment;if(C){A=C;break}}p.fragmentHint&&delete p.fragmentHint.endPTS;var w=0,b;if(s(p,v,function(F,R){F.relurl&&(w=F.cc-R.cc),Object(S.isFiniteNumber)(F.startPTS)&&Object(S.isFiniteNumber)(F.endPTS)&&(R.start=R.startPTS=F.startPTS,R.startDTS=F.startDTS,R.appendedPTS=F.appendedPTS,R.maxStartPTS=F.maxStartPTS,R.endPTS=F.endPTS,R.endDTS=F.endDTS,R.minEndPTS=F.minEndPTS,R.duration=F.endPTS-F.startPTS,R.duration&&(b=R),v.PTSKnown=v.alignedSliding=!0),R.elementaryStreams=F.elementaryStreams,R.loader=F.loader,R.stats=F.stats,R.urlId=F.urlId,F.initSegment&&(R.initSegment=F.initSegment,A=F.initSegment)}),A){var _=v.fragmentHint?v.fragments.concat(v.fragmentHint):v.fragments;_.forEach(function(F){var R;(!F.initSegment||F.initSegment.relurl===((R=A)===null||R===void 0?void 0:R.relurl))&&(F.initSegment=A)})}if(v.skippedSegments&&(v.deltaUpdateFailed=v.fragments.some(function(F){return!F}),v.deltaUpdateFailed)){m.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var O=v.skippedSegments;O--;)v.fragments.shift();v.startSN=v.fragments[0].sn,v.startCC=v.fragments[0].cc}var L=v.fragments;if(w){m.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D<L.length;D++)L[D].cc+=w}v.skippedSegments&&(v.startCC=v.fragments[0].cc),t(p.partList,v.partList,function(F,R){R.elementaryStreams=F.elementaryStreams,R.stats=F.stats}),b?i(v,b,b.startPTS,b.endPTS,b.startDTS,b.endDTS):e(p,v),L.length&&(v.totalduration=v.edge-L[0].start),v.driftStartTime=p.driftStartTime,v.driftStart=p.driftStart;var N=v.advancedDateTime;if(v.advanced&&N){var M=v.edge;v.driftStart||(v.driftStartTime=N,v.driftStart=M),v.driftEndTime=N,v.driftEnd=M}else v.driftEndTime=p.driftEndTime,v.driftEnd=p.driftEnd,v.advancedDateTime=p.advancedDateTime}function t(p,v,A){if(p&&v)for(var y=0,x=0,C=p.length;x<=C;x++){var w=p[x],b=v[x+y];w&&b&&w.index===b.index&&w.fragment.sn===b.fragment.sn?A(w,b):y--}}function s(p,v,A){for(var y=v.skippedSegments,x=Math.max(p.startSN,v.startSN)-v.startSN,C=(p.fragmentHint?1:0)+(y?v.endSN:Math.min(p.endSN,v.endSN))-v.startSN,w=v.startSN-p.startSN,b=v.fragmentHint?v.fragments.concat(v.fragmentHint):v.fragments,_=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,O=x;O<=C;O++){var L=_[w+O],D=b[O];y&&!D&&O<y&&(D=v.fragments[O]=L),L&&D&&A(L,D)}}function e(p,v){var A=v.startSN+v.skippedSegments-p.startSN,y=p.fragments;if(A<0||A>=y.length)return;o(v,y[A].start)}function o(p,v){if(v){for(var A=p.fragments,y=p.skippedSegments;y<A.length;y++)A[y].start+=v;p.fragmentHint&&(p.fragmentHint.start+=v)}}function l(p,v){var A=1e3*p.levelTargetDuration,y=A/2,x=p.age,C=x>0&&x<A*3,w=v.loading.end-v.loading.start,b,_=p.availabilityDelay;if(p.updated===!1)if(C){var O=333*p.misses;b=Math.max(Math.min(y,w*2),O),p.availabilityDelay=(p.availabilityDelay||0)+b}else b=y;else C?(_=Math.min(_||A/2,x),p.availabilityDelay=_,b=_+A-x):b=A-w;return Math.round(b)}function u(p,v,A){if(!p||!p.details)return null;var y=p.details,x=y.fragments[v-y.startSN];return x||(x=y.fragmentHint,x&&x.sn===v?x:v<y.startSN&&A&&A.sn===v?A:null)}function f(p,v,A){if(!p||!p.details)return null;var y=p.details.partList;if(y)for(var x=y.length;x--;){var C=y[x];if(C.index===A&&C.fragment.sn===v)return C}return null}},"./src/controller/stream-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return y});var S=g("./src/polyfills/number.ts"),m=g("./src/controller/base-stream-controller.ts"),h=g("./src/is-supported.ts"),c=g("./src/events.ts"),a=g("./src/utils/buffer-helper.ts"),r=g("./src/controller/fragment-tracker.ts"),i=g("./src/types/loader.ts"),n=g("./src/loader/fragment.ts"),t=g("./src/demux/transmuxer-interface.ts"),s=g("./src/types/transmuxer.ts"),e=g("./src/controller/gap-controller.ts"),o=g("./src/errors.ts"),l=g("./src/utils/logger.ts");function u(x,C){for(var w=0;w<C.length;w++){var b=C[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}function f(x,C,w){return C&&u(x.prototype,C),w&&u(x,w),x}function p(x,C){x.prototype=Object.create(C.prototype),x.prototype.constructor=x,v(x,C)}function v(x,C){return v=Object.setPrototypeOf||function(b,_){return b.__proto__=_,b},v(x,C)}var A=100,y=function(x){p(C,x);function C(b,_){var O;return O=x.call(this,b,_,"[stream-controller]")||this,O.audioCodecSwap=!1,O.gapController=null,O.level=-1,O._forceStartLoad=!1,O.altAudio=!1,O.audioOnly=!1,O.fragPlaying=null,O.onvplaying=null,O.onvseeked=null,O.fragLastKbps=0,O.stalled=!1,O.couldBacktrack=!1,O.audioCodecSwitch=!1,O.videoBuffer=null,O._registerListeners(),O}var w=C.prototype;return w._registerListeners=function(){var _=this.hls;_.on(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),_.on(c.Events.LEVEL_LOADING,this.onLevelLoading,this),_.on(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),_.on(c.Events.ERROR,this.onError,this),_.on(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.on(c.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),_.on(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var _=this.hls;_.off(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),_.off(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),_.off(c.Events.ERROR,this.onError,this),_.off(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.off(c.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),_.off(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},w.startLoad=function(_){if(this.levels){var O=this.lastCurrentTime,L=this.hls;if(this.stopLoad(),this.setInterval(A),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var D=L.startLevel;D===-1&&(L.config.testBandwidth?(D=0,this.bitrateTest=!0):D=L.nextAutoLevel),this.level=L.nextLoadLevel=D,this.loadedmetadata=!1}O>0&&_===-1&&(this.log("Override startPosition with lastCurrentTime @"+O.toFixed(3)),_=O),this.state=m.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()}else this._forceStartLoad=!0,this.state=m.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,x.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_LEVEL:{var _,O=this.levels,L=this.level,D=O==null||((_=O[L])===null||_===void 0)?void 0:_.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=m.State.IDLE;break}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var N,M=self.performance.now(),F=this.retryDate;(!F||M>=F||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=m.State.IDLE)}break;default:break}this.onTickEnd()},w.onTickEnd=function(){x.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var _,O,L=this.hls,D=this.levelLastLoaded,N=this.levels,M=this.media,F=L.config,R=L.nextLoadLevel;if(D===null||!M&&(this.startFragRequested||!F.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!N||!N[R])return;var j=N[R];this.level=L.nextLoadLevel=R;var B=j.details;if(!B||this.state===m.State.WAITING_LEVEL||B.live&&this.levelLastLoaded!==R){this.state=m.State.WAITING_LEVEL;return}var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:M,i.PlaylistLevelType.MAIN);if(K===null)return;var U=K.len,z=this.getMaxBufferLength(j.maxBitrate);if(U>=z)return;if(this._streamEnded(K,B)){var V={};this.altAudio&&(V.type="video"),this.hls.trigger(c.Events.BUFFER_EOS,V),this.state=m.State.ENDED;return}var Y=K.end,J=this.getNextFragment(Y,B);if(this.couldBacktrack&&!this.fragPrevious&&J&&J.sn!=="initSegment"){var se=J.sn-B.startSN;se>1&&(J=B.fragments[se-1],this.fragmentTracker.removeFragment(J))}if(J&&this.fragmentTracker.getState(J)===r.FragmentState.OK&&this.nextLoadPosition>Y){var $=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(M,$,i.PlaylistLevelType.MAIN),J=this.getNextFragment(this.nextLoadPosition,B)}if(!J)return;J.initSegment&&!J.initSegment.data&&!this.bitrateTest&&(J=J.initSegment),((_=J.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((O=J.decryptdata)!==null&&O!==void 0&&O.key)?this.loadKey(J,B):this.loadFragment(J,B,Y)},w.loadFragment=function(_,O,L){var D,N=this.fragmentTracker.getState(_);if(this.fragCurrent=_,N===r.FragmentState.BACKTRACKED){var M=this.fragmentTracker.getBacktrackData(_);if(M){this._handleFragmentLoadProgress(M),this._handleFragmentLoadComplete(M);return}else N=r.FragmentState.NOT_LOADED}N===r.FragmentState.NOT_LOADED||N===r.FragmentState.PARTIAL?_.sn==="initSegment"?this._loadInitSegment(_):this.bitrateTest?(_.bitrateTest=!0,this.log("Fragment "+_.sn+" of level "+_.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(_)):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,_,O,L)):N===r.FragmentState.APPENDING?this.reduceMaxBufferLength(_.duration)&&this.fragmentTracker.removeFragment(_):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(_){var O=this.fragmentTracker.getAppendedFrag(_,i.PlaylistLevelType.MAIN);return O&&"fragment"in O?O.fragment:O},w.getBufferedFrag=function(_){return this.fragmentTracker.getBufferedFrag(_,i.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(_){return _?this.getBufferedFrag(_.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var _=this.levels,O=this.media;if(O!=null&&O.readyState){var L,D=this.getAppendedFrag(O.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!O.paused&&_){var N=this.hls.nextLoadLevel,M=_[N],F=this.fragLastKbps;F&&this.fragCurrent?L=this.fragCurrent.duration*M.maxBitrate/(1e3*F)+1:L=0}else L=0;var R=this.getBufferedFrag(O.currentTime+L);if(R){var j=this.followingBufferedFrag(R);if(j){this.abortCurrentFrag();var B=j.maxStartPTS?j.maxStartPTS:j.start,K=j.duration,U=Math.max(R.end,B+Math.min(Math.max(K-this.config.maxFragLookUpTolerance,K*.5),K*.75));this.flushMainBuffer(U,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var _=this.fragCurrent;this.fragCurrent=null,_!=null&&_.loader&&_.loader.abort(),this.state===m.State.KEY_LOADING&&(this.state=m.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(_,O){x.prototype.flushMainBuffer.call(this,_,O,this.altAudio?"video":null)},w.onMediaAttached=function(_,O){x.prototype.onMediaAttached.call(this,_,O);var L=O.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),L.addEventListener("playing",this.onvplaying),L.addEventListener("seeked",this.onvseeked),this.gapController=new e.default(this.config,L,this.fragmentTracker,this.hls)},w.onMediaDetaching=function(){var _=this.media;_&&(_.removeEventListener("playing",this.onvplaying),_.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),x.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var _=this.media,O=_?_.currentTime:null;Object(S.isFiniteNumber)(O)&&this.log("Media seeked to "+O.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(_,O){var L=!1,D=!1,N;O.levels.forEach(function(M){N=M.audioCodec,N&&(N.indexOf("mp4a.40.2")!==-1&&(L=!0),N.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=L&&D&&!Object(h.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=O.levels,this.startFragRequested=!1},w.onLevelLoading=function(_,O){var L=this.levels;if(!L||this.state!==m.State.IDLE)return;var D=L[O.level];(!D.details||D.details.live&&this.levelLastLoaded!==O.level||this.waitForCdnTuneIn(D.details))&&(this.state=m.State.WAITING_LEVEL)},w.onLevelLoaded=function(_,O){var L,D=this.levels,N=O.level,M=O.details,F=M.totalduration;if(!D){this.warn("Levels were reset while loading level "+N);return}this.log("Level "+N+" loaded ["+M.startSN+","+M.endSN+"], cc ["+M.startCC+", "+M.endCC+"] duration:"+F);var R=this.fragCurrent;R&&(this.state===m.State.FRAG_LOADING||this.state===m.State.FRAG_LOADING_WAITING_RETRY)&&(R.level!==O.level&&R.loader&&(this.state=m.State.IDLE,R.loader.abort()));var j=D[N],B=0;if(M.live||(L=j.details)!==null&&L!==void 0&&L.live){if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed)return;B=this.alignPlaylists(M,j.details)}if(j.details=M,this.levelLastLoaded=N,this.hls.trigger(c.Events.LEVEL_UPDATED,{details:M,level:N}),this.state===m.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(M))return;this.state=m.State.IDLE}this.startFragRequested?M.live&&this.synchronizeToLiveEdge(M):this.setStartPosition(M,B),this.tick()},w._handleFragmentLoadProgress=function(_){var O,L=_.frag,D=_.part,N=_.payload,M=this.levels;if(!M){this.warn("Levels were reset while fragment load was in progress. Fragment "+L.sn+" of level "+L.level+" will not be buffered");return}var F=M[L.level],R=F.details;if(!R){this.warn("Dropping fragment "+L.sn+" of level "+L.level+" after level details were reset");return}var j=F.videoCodec,B=R.PTSKnown||!R.live,K=(O=L.initSegment)===null||O===void 0?void 0:O.data,U=this._getAudioCodec(F),z=this.transmuxer=this.transmuxer||new t.default(this.hls,i.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),V=D?D.index:-1,Y=V!==-1,J=new s.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,N.byteLength,V,Y),se=this.initPTS[L.cc];z.push(N,K,U,j,L,D,R.totalduration,B,J,se)},w.onAudioTrackSwitching=function(_,O){var L=this.altAudio,D=!!O.url,N=O.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var M=this.fragCurrent;M!=null&&M.loader&&(this.log("Switching to main audio track, cancel main fragment load"),M.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var F=this.hls;L&&F.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),F.trigger(c.Events.AUDIO_TRACK_SWITCHED,{id:N})}},w.onAudioTrackSwitched=function(_,O){var L=O.id,D=!!this.hls.audioTracks[L].url;if(D){var N=this.videoBuffer;N&&this.mediaBuffer!==N&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=N)}this.altAudio=D,this.tick()},w.onBufferCreated=function(_,O){var L=O.tracks,D,N,M=!1;for(var F in L){var R=L[F];if(R.id==="main"){if(N=F,D=R,F==="video"){var j=L[F];j&&(this.videoBuffer=j.buffer)}}else M=!0}M&&D?(this.log("Alternate track found, use "+N+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(_,O){var L=O.frag,D=O.part;if(L&&L.type!==i.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(L)){this.warn("Fragment "+L.sn+(D?" p: "+D.index:"")+" of level "+L.level+" finished buffering, but was aborted. state: "+this.state),this.state===m.State.PARSED&&(this.state=m.State.IDLE);return}var N=D?D.stats:L.stats;this.fragLastKbps=Math.round(8*N.total/(N.buffering.end-N.loading.first)),L.sn!=="initSegment"&&(this.fragPrevious=L),this.fragBufferedComplete(L,D)},w.onError=function(_,O){switch(O.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(i.PlaylistLevelType.MAIN,O);break;case o.ErrorDetails.LEVEL_LOAD_ERROR:case o.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==m.State.ERROR&&(O.fatal?(this.warn(""+O.details),this.state=m.State.ERROR):!O.levelRetry&&this.state===m.State.WAITING_LEVEL&&(this.state=m.State.IDLE));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(O.parent==="main"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var L=!0,D=this.getFwdBufferInfo(this.media,i.PlaylistLevelType.MAIN);D&&D.len>.5&&(L=!this.reduceMaxBufferLength(D.len)),L&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},w.checkBuffer=function(){var _=this.media,O=this.gapController;if(!_||!O||!_.readyState)return;var L=a.BufferHelper.getBuffered(_);!this.loadedmetadata&&L.length?(this.loadedmetadata=!0,this.seekToStartPos()):O.poll(this.lastCurrentTime),this.lastCurrentTime=_.currentTime},w.onFragLoadEmergencyAborted=function(){this.state=m.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(_,O){var L=O.type;if(L!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(L===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,L,i.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(_,O){this.levels=O.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var _=this.media,O=_.currentTime,L=this.startPosition;if(L>=0&&O<L){if(_.seeking){l.logger.log("could not seek to "+L+", already seeking at "+O);return}var D=a.BufferHelper.getBuffered(_),N=D.length?D.start(0):0,M=N-L;M>0&&(M<this.config.maxBufferHole||M<this.config.maxFragLookUpTolerance)&&(l.logger.log("adjusting start position by "+M+" to match buffer start"),L+=M,this.startPosition=L),this.log("seek to target start position "+L+" from current time "+O),_.currentTime=L}},w._getAudioCodec=function(_){var O=this.config.defaultAudioCodec||_.audioCodec;return this.audioCodecSwap&&O&&(this.log("Swapping audio codec"),O.indexOf("mp4a.40.5")!==-1?O="mp4a.40.2":O="mp4a.40.5"),O},w._loadBitrateTestFrag=function(_){var O=this;this._doFragLoad(_).then(function(L){var D=O.hls;if(!L||D.nextLoadLevel||O.fragContextChanged(_))return;O.fragLoadError=0,O.state=m.State.IDLE,O.startFragRequested=!1,O.bitrateTest=!1;var N=_.stats;N.parsing.start=N.parsing.end=N.buffering.start=N.buffering.end=self.performance.now(),D.trigger(c.Events.FRAG_LOADED,L)})},w._handleTransmuxComplete=function(_){var O,L="main",D=this.hls,N=_.remuxResult,M=_.chunkMeta,F=this.getCurrentContext(M);if(!F){this.warn("The loading context changed while buffering fragment "+M.sn+" of level "+M.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(M.level);return}var R=F.frag,j=F.part,B=F.level,K=N.video,U=N.text,z=N.id3,V=N.initSegment,Y=this.altAudio?void 0:N.audio;if(this.fragContextChanged(R))return;if(this.state=m.State.PARSING,V){V.tracks&&(this._bufferInitSegment(B,V.tracks,R,M),D.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:R,id:L,tracks:V.tracks}));var J=V.initPTS,se=V.timescale;Object(S.isFiniteNumber)(J)&&(this.initPTS[R.cc]=J,D.trigger(c.Events.INIT_PTS_FOUND,{frag:R,id:L,initPTS:J,timescale:se}))}if(K&&N.independent!==!1){if(B.details){var $=K.startPTS,ae=K.endPTS,ge=K.startDTS,pe=K.endDTS;if(j)j.elementaryStreams[K.type]={startPTS:$,endPTS:ae,startDTS:ge,endDTS:pe};else if(K.firstKeyFrame&&K.independent&&(this.couldBacktrack=!0),K.dropped&&K.independent){var Ne=this.getLoadPosition()+this.config.maxBufferHole;if(Ne<$){this.backtrack(R);return}R.setElementaryStreamInfo(K.type,R.start,ae,R.start,pe,!0)}R.setElementaryStreamInfo(K.type,$,ae,ge,pe),this.bufferFragmentData(K,R,j,M)}}else if(N.independent===!1){this.backtrack(R);return}if(Y){var de=Y.startPTS,Le=Y.endPTS,Q=Y.startDTS,ce=Y.endDTS;j&&(j.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:de,endPTS:Le,startDTS:Q,endDTS:ce}),R.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,de,Le,Q,ce),this.bufferFragmentData(Y,R,j,M)}if(z!=null&&(O=z.samples)!==null&&O!==void 0&&O.length){var Ke={frag:R,id:L,samples:z.samples};D.trigger(c.Events.FRAG_PARSING_METADATA,Ke)}if(U){var ee={frag:R,id:L,samples:U.samples};D.trigger(c.Events.FRAG_PARSING_USERDATA,ee)}},w._bufferInitSegment=function(_,O,L,D){var N=this;if(this.state!==m.State.PARSING)return;this.audioOnly=!!O.audio&&!O.video,this.altAudio&&!this.audioOnly&&delete O.audio;var M=O.audio,F=O.video,R=O.audiovideo;if(M){var j=_.audioCodec,B=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(j&&(j.indexOf("mp4a.40.5")!==-1?j="mp4a.40.2":j="mp4a.40.5"),M.metadata.channelCount!==1&&B.indexOf("firefox")===-1&&(j="mp4a.40.5")),B.indexOf("android")!==-1&&M.container!=="audio/mpeg"&&(j="mp4a.40.2",this.log("Android: force audio codec to "+j)),_.audioCodec&&_.audioCodec!==j&&this.log('Swapping manifest audio codec "'+_.audioCodec+'" for "'+j+'"'),M.levelCodec=j,M.id="main",this.log("Init audio buffer, container:"+M.container+", codecs[selected/level/parsed]=["+(j||"")+"/"+(_.audioCodec||"")+"/"+M.codec+"]")}F&&(F.levelCodec=_.videoCodec,F.id="main",this.log("Init video buffer, container:"+F.container+", codecs[level/parsed]=["+(_.videoCodec||"")+"/"+F.codec+"]")),R&&this.log("Init audiovideo buffer, container:"+R.container+", codecs[level/parsed]=["+(_.attrs.CODECS||"")+"/"+R.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,O),Object.keys(O).forEach(function(K){var U=O[K],z=U.initSegment;z!=null&&z.byteLength&&N.hls.trigger(c.Events.BUFFER_APPENDING,{type:K,data:z,frag:L,part:null,chunkMeta:D,parent:L.type})}),this.tick()},w.backtrack=function(_){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(_);var O=this.fragmentTracker.backtrack(_);this.fragPrevious=null,this.nextLoadPosition=_.start,O?this.resetFragmentLoading(_):this.state=m.State.BACKTRACKING},w.checkFragmentChanged=function(){var _=this.media,O=null;if(_&&_.readyState>1&&_.seeking===!1){var L=_.currentTime;if(a.BufferHelper.isBuffered(_,L)?O=this.getAppendedFrag(L):a.BufferHelper.isBuffered(_,L+.1)&&(O=this.getAppendedFrag(L+.1)),O){var D=this.fragPlaying,N=O.level;(!D||O.sn!==D.sn||D.level!==N||O.urlId!==D.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:O}),(!D||D.level!==N)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:N}),this.fragPlaying=O)}}},f(C,[{key:"nextLevel",get:function(){var _=this.nextBufferedFrag;return _?_.level:-1}},{key:"currentLevel",get:function(){var _=this.media;if(_){var O=this.getAppendedFrag(_.currentTime);if(O)return O.level}return-1}},{key:"nextBufferedFrag",get:function(){var _=this.media;if(_){var O=this.getAppendedFrag(_.currentTime);return this.followingBufferedFrag(O)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),C}(m.default)},"./src/controller/subtitle-stream-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"SubtitleStreamController",function(){return p});var S=g("./src/events.ts"),m=g("./src/utils/logger.ts"),h=g("./src/utils/buffer-helper.ts"),c=g("./src/controller/fragment-finders.ts"),a=g("./src/utils/discontinuities.ts"),r=g("./src/controller/level-helper.ts"),i=g("./src/controller/fragment-tracker.ts"),n=g("./src/controller/base-stream-controller.ts"),t=g("./src/types/loader.ts"),s=g("./src/types/level.ts");function e(v,A){for(var y=0;y<A.length;y++){var x=A[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}function o(v,A,y){return A&&e(v.prototype,A),y&&e(v,y),v}function l(v,A){v.prototype=Object.create(A.prototype),v.prototype.constructor=v,u(v,A)}function u(v,A){return u=Object.setPrototypeOf||function(x,C){return x.__proto__=C,x},u(v,A)}var f=500,p=function(v){l(A,v);function A(x,C){var w;return w=v.call(this,x,C,"[subtitle-stream-controller]")||this,w.levels=[],w.currentTrackId=-1,w.tracksBuffered=[],w.mainDetails=null,w._registerListeners(),w}var y=A.prototype;return y.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},y._registerListeners=function(){var C=this.hls;C.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.on(S.Events.ERROR,this.onError,this),C.on(S.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),C.on(S.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),C.on(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),C.on(S.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),C.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y._unregisterListeners=function(){var C=this.hls;C.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.off(S.Events.ERROR,this.onError,this),C.off(S.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),C.off(S.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),C.off(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),C.off(S.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),C.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y.startLoad=function(){this.stopLoad(),this.state=n.State.IDLE,this.setInterval(f),this.tick()},y.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},y.onLevelLoaded=function(C,w){this.mainDetails=w.details},y.onSubtitleFragProcessed=function(C,w){var b=w.frag,_=w.success;if(this.fragPrevious=b,this.state=n.State.IDLE,!_)return;var O=this.tracksBuffered[this.currentTrackId];if(!O)return;for(var L,D=b.start,N=0;N<O.length;N++)if(D>=O[N].start&&D<=O[N].end){L=O[N];break}var M=b.start+b.duration;L?L.end=M:(L={start:D,end:M},O.push(L)),this.fragmentTracker.fragBuffered(b)},y.onBufferFlushing=function(C,w){var b=w.startOffset,_=w.endOffset;if(b===0&&_!==Number.POSITIVE_INFINITY){var O=this.currentTrackId,L=this.levels;if(!L.length||!L[O]||!L[O].details)return;var D=L[O].details,N=D.targetduration,M=_-N;if(M<=0)return;w.endOffsetSubtitles=Math.max(0,M),this.tracksBuffered.forEach(function(F){for(var R=0;R<F.length;){if(F[R].end<=M){F.shift();continue}else if(F[R].start<M)F[R].start=M;else break;R++}}),this.fragmentTracker.removeFragmentsInRange(b,M,t.PlaylistLevelType.SUBTITLE)}},y.onError=function(C,w){var b,_=w.frag;if(!_||_.type!==t.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},y.onSubtitleTracksUpdated=function(C,w){var b=this,_=w.subtitleTracks;this.tracksBuffered=[],this.levels=_.map(function(O){return new s.Level(O)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(O){b.tracksBuffered[O.id]=[]}),this.mediaBuffer=null},y.onSubtitleTrackSwitch=function(C,w){if(this.currentTrackId=w.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var b=this.levels[this.currentTrackId];b!=null&&b.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,b&&this.setInterval(f)},y.onSubtitleTrackLoaded=function(C,w){var b,_=w.details,O=w.id,L=this.currentTrackId,D=this.levels;if(!D.length)return;var N=D[L];if(O>=D.length||O!==L||!N)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,_.live||(b=N.details)!==null&&b!==void 0&&b.live){var M=this.mainDetails;if(_.deltaUpdateFailed||!M)return;var F=M.fragments[0];if(!N.details)_.hasProgramDateTime&&M.hasProgramDateTime?Object(a.alignMediaPlaylistByPDT)(_,M):F&&Object(r.addSliding)(_,F.start);else{var R=this.alignPlaylists(_,N.details);R===0&&F&&Object(r.addSliding)(_,F.start)}}if(N.details=_,this.levelLastLoaded=O,this.tick(),_.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var j=Object(c.findFragmentByPTS)(null,_.fragments,this.media.currentTime,0);j||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},y._handleFragmentLoadComplete=function(C){var w=C.frag,b=C.payload,_=w.decryptdata,O=this.hls;if(this.fragContextChanged(w))return;if(b&&b.byteLength>0&&_&&_.key&&_.iv&&_.method==="AES-128"){var L=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),_.key.buffer,_.iv.buffer).then(function(D){var N=performance.now();O.trigger(S.Events.FRAG_DECRYPTED,{frag:w,payload:D,stats:{tstart:L,tdecrypt:N}})})}},y.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var C,w=this.currentTrackId,b=this.levels;if(!b.length||!b[w]||!b[w].details)return;var _=b[w].details,O=_.targetduration,L=this.config,D=this.media,N=h.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-O,L.maxBufferHole),M=N.end,F=N.len,R=this.getMaxBufferLength()+O;if(F>R)return;console.assert(_,"Subtitle track details are defined on idle subtitle stream controller tick");var j=_.fragments,B=j.length,K=_.edge,U,z=this.fragPrevious;if(M<K){var V=L.maxFragLookUpTolerance;z&&_.hasProgramDateTime&&(U=Object(c.findFragmentByPDT)(j,z.endProgramDateTime,V)),U||(U=Object(c.findFragmentByPTS)(z,j,M,V),!U&&z&&z.start<j[0].start&&(U=j[0]))}else U=j[B-1];(C=U)!==null&&C!==void 0&&C.encrypted?(m.logger.log("Loading key for "+U.sn),this.state=n.State.KEY_LOADING,this.hls.trigger(S.Events.KEY_LOADING,{frag:U})):U&&this.fragmentTracker.getState(U)===i.FragmentState.NOT_LOADED&&this.loadFragment(U,_,M)}},y.loadFragment=function(C,w,b){this.fragCurrent=C,v.prototype.loadFragment.call(this,C,w,b)},o(A,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),A}(n.default)},"./src/controller/subtitle-track-controller.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/events.ts"),m=g("./src/utils/texttrack-utils.ts"),h=g("./src/controller/base-playlist-controller.ts"),c=g("./src/types/loader.ts");function a(e,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function r(e,o,l){return o&&a(e.prototype,o),l&&a(e,l),e}function i(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,n(e,o)}function n(e,o){return n=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u},n(e,o)}var t=function(e){i(o,e);function o(u){var f;return f=e.call(this,u,"[subtitle-track-controller]")||this,f.media=null,f.tracks=[],f.groupId=null,f.tracksInGroup=[],f.trackId=-1,f.selectDefaultTrack=!0,f.queuedDefaultTrack=-1,f.trackChangeListener=function(){return f.onTextTracksChanged()},f.asyncPollTrackChange=function(){return f.pollTrackChange(0)},f.useTextTrackPolling=!1,f.subtitlePollingInterval=-1,f.subtitleDisplay=!0,f.registerListeners(),f}var l=o.prototype;return l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,e.prototype.destroy.call(this)},l.registerListeners=function(){var f=this.hls;f.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.on(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.on(S.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var f=this.hls;f.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.off(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.off(S.Events.ERROR,this.onError,this)},l.onMediaAttached=function(f,p){if(this.media=p.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)},l.pollTrackChange=function(f){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,f)},l.onMediaDetaching=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 f=s(this.media.textTracks);f.forEach(function(p){Object(m.clearCurrentCues)(p)}),this.subtitleTrack=-1,this.media=null},l.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},l.onManifestParsed=function(f,p){this.tracks=p.subtitleTracks},l.onSubtitleTrackLoaded=function(f,p){var v=p.id,A=p.details,y=this.trackId,x=this.tracksInGroup[y];if(!x){this.warn("Invalid subtitle track id "+v);return}var C=x.details;x.details=p.details,this.log("subtitle track "+v+" loaded ["+A.startSN+"-"+A.endSN+"]"),v===this.trackId&&(this.retryCount=0,this.playlistLoaded(v,p,C))},l.onLevelLoading=function(f,p){this.switchLevel(p.level)},l.onLevelSwitching=function(f,p){this.switchLevel(p.level)},l.switchLevel=function(f){var p=this.hls.levels[f];if(!(p!=null&&p.textGroupIds))return;var v=p.textGroupIds[p.urlId];if(this.groupId!==v){var A=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(w){return!v||w.groupId===v});this.tracksInGroup=y;var x=this.findTrackId(A==null?void 0:A.name)||this.findTrackId();this.groupId=v;var C={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+v+'" group-id'),this.hls.trigger(S.Events.SUBTITLE_TRACKS_UPDATED,C),x!==-1&&this.setSubtitleTrack(x,A)}},l.findTrackId=function(f){for(var p=this.tracksInGroup,v=0;v<p.length;v++){var A=p[v];if((!this.selectDefaultTrack||A.default)&&(!f||f===A.name))return A.id}return-1},l.onError=function(f,p){if(e.prototype.onError.call(this,f,p),p.fatal||!p.context)return;p.context.type===c.PlaylistContextType.SUBTITLE_TRACK&&p.context.id===this.trackId&&p.context.groupId===this.groupId&&this.retryLoadingOrFail(p)},l.loadPlaylist=function(f){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var v=p.id,A=p.groupId,y=p.url;if(f)try{y=f.addDirectives(y)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("Loading subtitle playlist for id "+v),this.hls.trigger(S.Events.SUBTITLE_TRACK_LOADING,{url:y,id:v,groupId:A,deliveryDirectives:f||null})}},l.toggleTrackModes=function(f){var p=this,v=this.media,A=this.subtitleDisplay,y=this.trackId;if(!v)return;var x=s(v.textTracks),C=x.filter(function(_){return _.groupId===p.groupId});if(f===-1)[].slice.call(x).forEach(function(_){_.mode="disabled"});else{var w=C[y];w&&(w.mode="disabled")}var b=C[f];b&&(b.mode=A?"showing":"hidden")},l.setSubtitleTrack=function(f,p){var v,A=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=f;return}if(this.trackId!==f&&this.toggleTrackModes(f),this.trackId===f&&(f===-1||(v=A[f])!==null&&v!==void 0&&v.details)||f<-1||f>=A.length)return;this.clearTimer();var y=A[f];if(this.log("Switching to subtitle track "+f),this.trackId=f,y){var x=y.id,C=y.groupId,w=C===void 0?"":C,b=y.name,_=y.type,O=y.url;this.hls.trigger(S.Events.SUBTITLE_TRACK_SWITCH,{id:x,groupId:w,name:b,type:_,url:O});var L=this.switchParams(y.url,p==null?void 0:p.details);this.loadPlaylist(L)}else this.hls.trigger(S.Events.SUBTITLE_TRACK_SWITCH,{id:f})},l.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var f=-1,p=s(this.media.textTracks),v=0;v<p.length;v++)if(p[v].mode==="hidden")f=v;else if(p[v].mode==="showing"){f=v;break}this.subtitleTrack!==f&&(this.subtitleTrack=f)},r(o,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(f){this.selectDefaultTrack=!1;var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(f,p)}}]),o}(h.default);function s(e){for(var o=[],l=0;l<e.length;l++){var u=e[l];u.kind==="subtitles"&&u.label&&o.push(e[l])}return o}T.default=t},"./src/controller/timeline-controller.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"TimelineController",function(){return s});var S=g("./src/polyfills/number.ts"),m=g("./src/events.ts"),h=g("./src/utils/cea-608-parser.ts"),c=g("./src/utils/output-filter.ts"),a=g("./src/utils/webvtt-parser.ts"),r=g("./src/utils/texttrack-utils.ts"),i=g("./src/utils/imsc1-ttml-parser.ts"),n=g("./src/types/loader.ts"),t=g("./src/utils/logger.ts"),s=function(){function u(p){if(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.timescale=[],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=l(),this.captionsProperties=void 0,this.hls=p,this.config=p.config,this.Cues=p.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 v=new c.default(this,"textTrack1"),A=new c.default(this,"textTrack2"),y=new c.default(this,"textTrack3"),x=new c.default(this,"textTrack4");this.cea608Parser1=new h.default(1,v,A),this.cea608Parser2=new h.default(3,y,x)}p.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),p.on(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),p.on(m.Events.FRAG_LOADING,this.onFragLoading,this),p.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),p.on(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),p.on(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),p.on(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),p.on(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),p.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var f=u.prototype;return f.destroy=function(){var v=this.hls;v.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),v.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),v.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),v.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),v.off(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),v.off(m.Events.FRAG_LOADING,this.onFragLoading,this),v.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),v.off(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),v.off(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),v.off(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),v.off(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),v.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},f.addCues=function(v,A,y,x,C){for(var w=!1,b=C.length;b--;){var _=C[b],O=o(_[0],_[1],A,y);if(O>=0&&(_[0]=Math.min(_[0],A),_[1]=Math.max(_[1],y),w=!0,O/(y-A)>.5))return}if(w||C.push([A,y]),this.config.renderTextTracksNatively){var L=this.captionsTracks[v];this.Cues.newCue(L,A,y,x)}else{var D=this.Cues.newCue(null,A,y,x);this.hls.trigger(m.Events.CUES_PARSED,{type:"captions",cues:D,track:v})}},f.onInitPtsFound=function(v,A){var y=this,x=A.frag,C=A.id,w=A.initPTS,b=A.timescale,_=this.unparsedVttFrags;C==="main"&&(this.initPTS[x.cc]=w,this.timescale[x.cc]=b),_.length&&(this.unparsedVttFrags=[],_.forEach(function(O){y.onFragLoaded(m.Events.FRAG_LOADED,O)}))},f.getExistingTrack=function(v){var A=this.media;if(A)for(var y=0;y<A.textTracks.length;y++){var x=A.textTracks[y];if(x[v])return x}return null},f.createCaptionsTrack=function(v){this.config.renderTextTracksNatively?this.createNativeTrack(v):this.createNonNativeTrack(v)},f.createNativeTrack=function(v){if(this.captionsTracks[v])return;var A=this.captionsProperties,y=this.captionsTracks,x=this.media,C=A[v],w=C.label,b=C.languageCode,_=this.getExistingTrack(v);if(_)y[v]=_,Object(r.clearCurrentCues)(y[v]),Object(r.sendAddTrackEvent)(y[v],x);else{var O=this.createTextTrack("captions",w,b);O&&(O[v]=!0,y[v]=O)}},f.createNonNativeTrack=function(v){if(this.nonNativeCaptionsTracks[v])return;var A=this.captionsProperties[v];if(!A)return;var y=A.label,x={_id:v,label:y,kind:"captions",default:A.media?!!A.media.default:!1,closedCaptions:A.media};this.nonNativeCaptionsTracks[v]=x,this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[x]})},f.createTextTrack=function(v,A,y){var x=this.media;return x?x.addTextTrack(v,A,y):void 0},f.onMediaAttaching=function(v,A){this.media=A.media,this._cleanTracks()},f.onMediaDetaching=function(){var v=this.captionsTracks;Object.keys(v).forEach(function(A){Object(r.clearCurrentCues)(v[A]),delete v[A]}),this.nonNativeCaptionsTracks={}},f.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=l(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},f._cleanTracks=function(){var v=this.media;if(!v)return;var A=v.textTracks;if(A)for(var y=0;y<A.length;y++)Object(r.clearCurrentCues)(A[y])},f.onSubtitleTracksUpdated=function(v,A){var y=this;this.textTracks=[];var x=A.subtitleTracks||[],C=x.some(function(O){return O.textCodec===i.IMSC1_CODEC});if(this.config.enableWebVTT||C&&this.config.enableIMSC1){var w=this.tracks&&x&&this.tracks.length===x.length;if(this.tracks=x||[],this.config.renderTextTracksNatively){var b=this.media?this.media.textTracks:[];this.tracks.forEach(function(O,L){var D;if(L<b.length){for(var N=null,M=0;M<b.length;M++)if(e(b[M],O)){N=b[M];break}N&&(D=N)}D?Object(r.clearCurrentCues)(D):(D=y.createTextTrack("subtitles",O.name,O.lang),D&&(D.mode="disabled")),D&&(D.groupId=O.groupId,y.textTracks.push(D))})}else if(!w&&this.tracks&&this.tracks.length){var _=this.tracks.map(function(O){return{label:O.name,kind:O.type.toLowerCase(),default:O.default,subtitleTrack:O}});this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:_})}}},f.onManifestLoaded=function(v,A){var y=this;this.config.enableCEA708Captions&&A.captions&&A.captions.forEach(function(x){var C=/(?:CC|SERVICE)([1-4])/.exec(x.instreamId);if(!C)return;var w="textTrack"+C[1],b=y.captionsProperties[w];if(!b)return;b.label=x.name,x.lang&&(b.languageCode=x.lang),b.media=x})},f.onFragLoading=function(v,A){var y=this.cea608Parser1,x=this.cea608Parser2,C=this.lastSn,w=this.lastPartIndex;if(!this.enabled||!(y&&x))return;if(A.frag.type===n.PlaylistLevelType.MAIN){var b,_,O=A.frag.sn,L=(b=A==null||((_=A.part)===null||_===void 0)?void 0:_.index)!=null?b:-1;O===C+1||O===C&&L===w+1||(y.reset(),x.reset()),this.lastSn=O,this.lastPartIndex=L}},f.onFragLoaded=function(v,A){var y=A.frag,x=A.payload,C=this.initPTS,w=this.unparsedVttFrags;if(y.type===n.PlaylistLevelType.SUBTITLE)if(x.byteLength){if(!Object(S.isFiniteNumber)(C[y.cc])){w.push(A),C.length&&this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Missing initial subtitle PTS")});return}var b=y.decryptdata;if(b==null||b.key==null||b.method!=="AES-128"){var _=this.tracks[y.level],O=this.vttCCs;O[y.cc]||(O[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),_&&_.textCodec===i.IMSC1_CODEC?this._parseIMSC1(y,x):this._parseVTTs(y,x,O)}}else this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},f._parseIMSC1=function(v,A){var y=this,x=this.hls;Object(i.parseIMSC1)(A,this.initPTS[v.cc],this.timescale[v.cc],function(C){y._appendCues(C,v.level),x.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:v})},function(C){t.logger.log("Failed to parse IMSC1: "+C),x.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:v,error:C})})},f._parseVTTs=function(v,A,y){var x=this,C=this.hls;Object(a.parseWebVTT)(A,this.initPTS[v.cc],this.timescale[v.cc],y,v.cc,v.start,function(w){x._appendCues(w,v.level),C.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:v})},function(w){x._fallbackToIMSC1(v,A),t.logger.log("Failed to parse VTT cue: "+w),C.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:v,error:w})})},f._fallbackToIMSC1=function(v,A){var y=this,x=this.tracks[v.level];x.textCodec||Object(i.parseIMSC1)(A,this.initPTS[v.cc],this.timescale[v.cc],function(){x.textCodec=i.IMSC1_CODEC,y._parseIMSC1(v,A)},function(){x.textCodec="wvtt"})},f._appendCues=function(v,A){var y=this.hls;if(this.config.renderTextTracksNatively){var x=this.textTracks[A];if(x.mode==="disabled")return;v.forEach(function(b){return Object(r.addCueToTrack)(x,b)})}else{var C=this.tracks[A],w=C.default?"default":"subtitles"+A;y.trigger(m.Events.CUES_PARSED,{type:"subtitles",cues:v,track:w})}},f.onFragDecrypted=function(v,A){var y=A.frag;if(y.type===n.PlaylistLevelType.SUBTITLE){if(!Object(S.isFiniteNumber)(this.initPTS[y.cc])){this.unparsedVttFrags.push(A);return}this.onFragLoaded(m.Events.FRAG_LOADED,A)}},f.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},f.onFragParsingUserdata=function(v,A){var y=this.cea608Parser1,x=this.cea608Parser2;if(!this.enabled||!(y&&x))return;for(var C=0;C<A.samples.length;C++){var w=A.samples[C].bytes;if(w){var b=this.extractCea608Data(w);y.addData(A.samples[C].pts,b[0]),x.addData(A.samples[C].pts,b[1])}}},f.onBufferFlushing=function(v,A){var y=A.startOffset,x=A.endOffset,C=A.endOffsetSubtitles,w=A.type,b=this.media;if(!b||b.currentTime<x)return;if(!w||w==="video"){var _=this.captionsTracks;Object.keys(_).forEach(function(L){return Object(r.removeCuesInRange)(_[L],y,x)})}if(this.config.renderTextTracksNatively&&(y===0&&C!==void 0)){var O=this.textTracks;Object.keys(O).forEach(function(L){return Object(r.removeCuesInRange)(O[L],y,C)})}},f.extractCea608Data=function(v){for(var A=v[0]&31,y=2,x=[[],[]],C=0;C<A;C++){var w=v[y++],b=127&v[y++],_=127&v[y++],O=(4&w)!==0,L=3&w;if(b===0&&_===0)continue;O&&((L===0||L===1)&&(x[L].push(b),x[L].push(_)))}return x},u}();function e(u,f){return u&&u.label===f.name&&!(u.textTrack1||u.textTrack2)}function o(u,f,p,v){return Math.min(f,v)-Math.max(u,p)}function l(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return S});var S=function(){function m(c,a){this.subtle=void 0,this.aesIV=void 0,this.subtle=c,this.aesIV=a}var h=m.prototype;return h.decrypt=function(a,r){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,a)},m}()},"./src/crypt/aes-decryptor.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"removePadding",function(){return m}),g.d(T,"default",function(){return h});var S=g("./src/utils/typed-array.ts");function m(c){var a=c.byteLength,r=a&&new DataView(c.buffer).getUint8(a-1);return r?Object(S.sliceUint8)(c,0,a-r):c}var h=function(){function c(){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()}var a=c.prototype;return a.uint8ArrayToUint32Array_=function(i){for(var n=new DataView(i),t=new Uint32Array(4),s=0;s<4;s++)t[s]=n.getUint32(s*4);return t},a.initTable=function(){var i=this.sBox,n=this.invSBox,t=this.subMix,s=t[0],e=t[1],o=t[2],l=t[3],u=this.invSubMix,f=u[0],p=u[1],v=u[2],A=u[3],y=new Uint32Array(256),x=0,C=0,w=0;for(w=0;w<256;w++)w<128?y[w]=w<<1:y[w]=w<<1^283;for(w=0;w<256;w++){var b=C^C<<1^C<<2^C<<3^C<<4;b=b>>>8^b&255^99,i[x]=b,n[b]=x;var _=y[x],O=y[_],L=y[O],D=y[b]*257^b*16843008;s[x]=D<<24|D>>>8,e[x]=D<<16|D>>>16,o[x]=D<<8|D>>>24,l[x]=D,D=L*16843009^O*65537^_*257^x*16843008,f[b]=D<<24|D>>>8,p[b]=D<<16|D>>>16,v[b]=D<<8|D>>>24,A[b]=D,x?(x=_^y[y[y[L^_]]],C^=y[y[C]]):x=C=1}},a.expandKey=function(i){for(var n=this.uint8ArrayToUint32Array_(i),t=!0,s=0;s<n.length&&t;)t=n[s]===this.key[s],s++;if(t)return;this.key=n;var e=this.keySize=n.length;if(e!==4&&e!==6&&e!==8)throw new Error("Invalid aes key size="+e);var o=this.ksRows=(e+6+1)*4,l,u,f=this.keySchedule=new Uint32Array(o),p=this.invKeySchedule=new Uint32Array(o),v=this.sBox,A=this.rcon,y=this.invSubMix,x=y[0],C=y[1],w=y[2],b=y[3],_,O;for(l=0;l<o;l++){if(l<e){_=f[l]=n[l];continue}O=_,l%e===0?(O=O<<8|O>>>24,O=v[O>>>24]<<24|v[O>>>16&255]<<16|v[O>>>8&255]<<8|v[O&255],O^=A[l/e|0]<<24):e>6&&l%e===4&&(O=v[O>>>24]<<24|v[O>>>16&255]<<16|v[O>>>8&255]<<8|v[O&255]),f[l]=_=(f[l-e]^O)>>>0}for(u=0;u<o;u++)l=o-u,u&3?O=f[l]:O=f[l-4],u<4||l<=4?p[u]=O:p[u]=x[v[O>>>24]]^C[v[O>>>16&255]]^w[v[O>>>8&255]]^b[v[O&255]],p[u]=p[u]>>>0},a.networkToHostOrderSwap=function(i){return i<<24|(i&65280)<<8|(i&16711680)>>8|i>>>24},a.decrypt=function(i,n,t){for(var s=this.keySize+6,e=this.invKeySchedule,o=this.invSBox,l=this.invSubMix,u=l[0],f=l[1],p=l[2],v=l[3],A=this.uint8ArrayToUint32Array_(t),y=A[0],x=A[1],C=A[2],w=A[3],b=new Int32Array(i),_=new Int32Array(b.length),O,L,D,N,M,F,R,j,B,K,U,z,V,Y,J=this.networkToHostOrderSwap;n<b.length;){for(B=J(b[n]),K=J(b[n+1]),U=J(b[n+2]),z=J(b[n+3]),M=B^e[0],F=z^e[1],R=U^e[2],j=K^e[3],V=4,Y=1;Y<s;Y++)O=u[M>>>24]^f[F>>16&255]^p[R>>8&255]^v[j&255]^e[V],L=u[F>>>24]^f[R>>16&255]^p[j>>8&255]^v[M&255]^e[V+1],D=u[R>>>24]^f[j>>16&255]^p[M>>8&255]^v[F&255]^e[V+2],N=u[j>>>24]^f[M>>16&255]^p[F>>8&255]^v[R&255]^e[V+3],M=O,F=L,R=D,j=N,V=V+4;O=o[M>>>24]<<24^o[F>>16&255]<<16^o[R>>8&255]<<8^o[j&255]^e[V],L=o[F>>>24]<<24^o[R>>16&255]<<16^o[j>>8&255]<<8^o[M&255]^e[V+1],D=o[R>>>24]<<24^o[j>>16&255]<<16^o[M>>8&255]<<8^o[F&255]^e[V+2],N=o[j>>>24]<<24^o[M>>16&255]<<16^o[F>>8&255]<<8^o[R&255]^e[V+3],_[n]=J(O^y),_[n+1]=J(N^x),_[n+2]=J(D^C),_[n+3]=J(L^w),y=B,x=K,C=U,w=z,n=n+4}return _.buffer},c}()},"./src/crypt/decrypter.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return n});var S=g("./src/crypt/aes-crypto.ts"),m=g("./src/crypt/fast-aes-key.ts"),h=g("./src/crypt/aes-decryptor.ts"),c=g("./src/utils/logger.ts"),a=g("./src/utils/mp4-tools.ts"),r=g("./src/utils/typed-array.ts"),i=16,n=function(){function t(e,o,l){var u=l===void 0?{}:l,f=u.removePKCS7Padding,p=f===void 0?!0:f;if(this.logEnabled=!0,this.observer=void 0,this.config=void 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.observer=e,this.config=o,this.removePKCS7Padding=p,p)try{var v=self.crypto;v&&(this.subtle=v.subtle||v.webkitSubtle)}catch(A){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var s=t.prototype;return s.destroy=function(){this.observer=null},s.isSync=function(){return this.config.enableSoftwareAES},s.flush=function(){var o=this.currentResult;if(!o){this.reset();return}var l=new Uint8Array(o);return this.reset(),this.removePKCS7Padding?Object(h.removePadding)(l):l},s.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},s.decrypt=function(o,l,u,f){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(o),l,u);var p=this.flush();p&&f(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(o),l,u).then(f)},s.softwareDecrypt=function(o,l,u){var f=this.currentIV,p=this.currentResult,v=this.remainderData;this.logOnce("JS AES decrypt"),v&&(o=Object(a.appendUint8Array)(v,o),this.remainderData=null);var A=this.getValidChunk(o);if(!A.length)return null;f&&(u=f);var y=this.softwareDecrypter;y||(y=this.softwareDecrypter=new h.default),y.expandKey(l);var x=p;return this.currentResult=y.decrypt(A.buffer,0,u),this.currentIV=Object(r.sliceUint8)(A,-16).buffer,x||null},s.webCryptoDecrypt=function(o,l,u){var f=this,p=this.subtle;return(this.key!==l||!this.fastAesKey)&&(this.key=l,this.fastAesKey=new m.default(p,l)),this.fastAesKey.expandKey().then(function(v){if(!p)return Promise.reject(new Error("web crypto not initialized"));var A=new S.default(p,u);return A.decrypt(o.buffer,v)}).catch(function(v){return f.onWebCryptoError(v,o,l,u)})},s.onWebCryptoError=function(o,l,u,f){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",o),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(l,u,f)},s.getValidChunk=function(o){var l=o,u=o.length-o.length%i;return u!==o.length&&(l=Object(r.sliceUint8)(o,0,u),this.remainderData=Object(r.sliceUint8)(o,u)),l},s.logOnce=function(o){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+o),this.logEnabled=!1},t}()},"./src/crypt/fast-aes-key.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return S});var S=function(){function m(c,a){this.subtle=void 0,this.key=void 0,this.subtle=c,this.key=a}var h=m.prototype;return h.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},m}()},"./src/demux/aacdemuxer.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/demux/base-audio-demuxer.ts"),m=g("./src/demux/adts.ts"),h=g("./src/utils/logger.ts"),c=g("./src/demux/id3.ts");function a(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,r(n,t)}function r(n,t){return r=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},r(n,t)}var i=function(n){a(t,n);function t(e,o){var l;return l=n.call(this)||this,l.observer=void 0,l.config=void 0,l.observer=e,l.config=o,l}var s=t.prototype;return s.resetInitSegment=function(o,l,u){n.prototype.resetInitSegment.call(this,o,l,u),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:o,duration:u,inputTimeScale:9e4,dropped:0}},t.probe=function(o){if(!o)return!1;for(var l=c.getID3Data(o,0)||[],u=l.length,f=o.length;u<f;u++)if(m.probe(o,u))return h.logger.log("ADTS sync word found !"),!0;return!1},s.canParse=function(o,l){return m.canParse(o,l)},s.appendFrame=function(o,l,u){m.initTrackConfig(o,this.observer,l,u,o.manifestCodec);var f=m.appendFrame(o,l,u,this.initPTS,this.frameIndex);if(f&&f.missing===0)return f},t}(S.default);i.minProbeByteLength=9,T.default=i},"./src/demux/adts.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"getAudioConfig",function(){return c}),g.d(T,"isHeaderPattern",function(){return a}),g.d(T,"getHeaderLength",function(){return r}),g.d(T,"getFullFrameLength",function(){return i}),g.d(T,"canGetFrameLength",function(){return n}),g.d(T,"isHeader",function(){return t}),g.d(T,"canParse",function(){return s}),g.d(T,"probe",function(){return e}),g.d(T,"initTrackConfig",function(){return o}),g.d(T,"getFrameDuration",function(){return l}),g.d(T,"parseFrameHeader",function(){return u}),g.d(T,"appendFrame",function(){return f});var S=g("./src/utils/logger.ts"),m=g("./src/errors.ts"),h=g("./src/events.ts");function c(p,v,A,y){var x,C,w,b,_=navigator.userAgent.toLowerCase(),O=y,L=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];x=((v[A+2]&192)>>>6)+1;var D=(v[A+2]&60)>>>2;if(D>L.length-1){p.trigger(h.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return w=(v[A+2]&1)<<2,w|=(v[A+3]&192)>>>6,S.logger.log("manifest codec:"+y+", ADTS type:"+x+", samplingIndex:"+D),/firefox/i.test(_)?D>=6?(x=5,b=new Array(4),C=D-3):(x=2,b=new Array(2),C=D):_.indexOf("android")!==-1?(x=2,b=new Array(2),C=D):(x=5,b=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&D>=6?C=D-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(D>=6&&w===1||/vivaldi/i.test(_))||!y&&w===1)&&(x=2,b=new Array(2)),C=D)),b[0]=x<<3,b[0]|=(D&14)>>1,b[1]|=(D&1)<<7,b[1]|=w<<3,x===5&&(b[1]|=(C&14)>>1,b[2]=(C&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:L[D],channelCount:w,codec:"mp4a.40."+x,manifestCodec:O}}function a(p,v){return p[v]===255&&(p[v+1]&246)===240}function r(p,v){return p[v+1]&1?7:9}function i(p,v){return(p[v+3]&3)<<11|p[v+4]<<3|(p[v+5]&224)>>>5}function n(p,v){return v+5<p.length}function t(p,v){return v+1<p.length&&a(p,v)}function s(p,v){return n(p,v)&&a(p,v)&&i(p,v)<=p.length-v}function e(p,v){if(t(p,v)){var A=r(p,v);if(v+A>=p.length)return!1;var y=i(p,v);if(y<=A)return!1;var x=v+y;return x===p.length||t(p,x)}return!1}function o(p,v,A,y,x){if(!p.samplerate){var C=c(v,A,y,x);if(!C)return;p.config=C.config,p.samplerate=C.samplerate,p.channelCount=C.channelCount,p.codec=C.codec,p.manifestCodec=C.manifestCodec,S.logger.log("parsed codec:"+p.codec+", rate:"+C.samplerate+", channels:"+C.channelCount)}}function l(p){return 1024*9e4/p}function u(p,v,A,y,x){var C=r(p,v),w=i(p,v);if(w-=C,w>0){var b=A+y*x;return{headerLength:C,frameLength:w,stamp:b}}}function f(p,v,A,y,x){var C=l(p.samplerate),w=u(v,A,y,x,C);if(w){var b=w.frameLength,_=w.headerLength,O=w.stamp,L=_+b,D=Math.max(0,A+L-v.length),N;D?(N=new Uint8Array(L-_),N.set(v.subarray(A+_,v.length),0)):N=v.subarray(A+_,A+L);var M={unit:N,pts:O};return D||p.samples.push(M),{sample:M,length:L,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"initPTSFn",function(){return i});var S=g("./src/polyfills/number.ts"),m=g("./src/demux/id3.ts"),h=g("./src/demux/dummy-demuxed-track.ts"),c=g("./src/utils/mp4-tools.ts"),a=g("./src/utils/typed-array.ts"),r=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var t=n.prototype;return t.resetInitSegment=function(e,o,l){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(){},t.resetContiguity=function(){},t.canParse=function(e,o){return!1},t.appendFrame=function(e,o,l){},t.demux=function(e,o){this.cachedData&&(e=Object(c.appendUint8Array)(this.cachedData,e),this.cachedData=null);var l=m.getID3Data(e,0),u=l?l.length:0,f,p,v=this._audioTrack,A=this._id3Track,y=l?m.getTimeStamp(l):void 0,x=e.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=i(y,o)),l&&l.length>0&&A.samples.push({pts:this.initPTS,dts:this.initPTS,data:l}),p=this.initPTS;u<x;){if(this.canParse(e,u)){var C=this.appendFrame(v,e,u);C?(this.frameIndex++,p=C.sample.pts,u+=C.length,f=u):u=x}else m.canParse(e,u)?(l=m.getID3Data(e,u),A.samples.push({pts:p,dts:p,data:l}),u+=l.length,f=u):u++;if(u===x&&f!==x){var w=Object(a.sliceUint8)(e,f);this.cachedData?this.cachedData=Object(c.appendUint8Array)(this.cachedData,w):this.cachedData=w}}return{audioTrack:v,avcTrack:Object(h.dummyTrack)(),id3Track:A,textTrack:Object(h.dummyTrack)()}},t.demuxSampleAes=function(e,o,l){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(e){var o=this.cachedData;return o&&(this.cachedData=null,this.demux(o,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(h.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(h.dummyTrack)()}},t.destroy=function(){},n}(),i=function(t,s){return Object(S.isFiniteNumber)(t)?t*90:s*9e4};T.default=r},"./src/demux/chunk-cache.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return S});var S=function(){function h(){this.chunks=[],this.dataLength=0}var c=h.prototype;return c.push=function(r){this.chunks.push(r),this.dataLength+=r.length},c.flush=function(){var r=this.chunks,i=this.dataLength,n;if(r.length)r.length===1?n=r[0]:n=m(r,i);else return new Uint8Array(0);return this.reset(),n},c.reset=function(){this.chunks.length=0,this.dataLength=0},h}();function m(h,c){for(var a=new Uint8Array(c),r=0,i=0;i<h.length;i++){var n=h[i];a.set(n,r),r+=n.length}return a}},"./src/demux/dummy-demuxed-track.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"dummyTrack",function(){return S});function S(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/utils/logger.ts"),m=function(){function h(a){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=a,this.bytesAvailable=a.byteLength,this.word=0,this.bitsAvailable=0}var c=h.prototype;return c.loadWord=function(){var r=this.data,i=this.bytesAvailable,n=r.byteLength-i,t=new Uint8Array(4),s=Math.min(4,i);if(s===0)throw new Error("no bytes available");t.set(r.subarray(n,n+s)),this.word=new DataView(t.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s},c.skipBits=function(r){var i;this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,i=r>>3,r-=i>>3,this.bytesAvailable-=i,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},c.readBits=function(r){var i=Math.min(this.bitsAvailable,r),n=this.word>>>32-i;return r>32&&S.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=i,this.bitsAvailable>0?this.word<<=i:this.bytesAvailable>0&&this.loadWord(),i=r-i,i>0&&this.bitsAvailable?n<<i|this.readBits(i):n},c.skipLZ=function(){var r;for(r=0;r<this.bitsAvailable;++r)if((this.word&2147483648>>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},c.skipUEG=function(){this.skipBits(1+this.skipLZ())},c.skipEG=function(){this.skipBits(1+this.skipLZ())},c.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},c.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},c.readBoolean=function(){return this.readBits(1)===1},c.readUByte=function(){return this.readBits(8)},c.readUShort=function(){return this.readBits(16)},c.readUInt=function(){return this.readBits(32)},c.skipScalingList=function(r){for(var i=8,n=8,t,s=0;s<r;s++)n!==0&&(t=this.readEG(),n=(i+t+256)%256),i=n===0?i:n},c.readSPS=function(){var r=0,i=0,n=0,t=0,s,e,o,l=this.readUByte.bind(this),u=this.readBits.bind(this),f=this.readUEG.bind(this),p=this.readBoolean.bind(this),v=this.skipBits.bind(this),A=this.skipEG.bind(this),y=this.skipUEG.bind(this),x=this.skipScalingList.bind(this);l();var C=l();if(u(5),v(3),l(),y(),C===100||C===110||C===122||C===244||C===44||C===83||C===86||C===118||C===128){var w=f();if(w===3&&v(1),y(),y(),v(1),p())for(e=w!==3?8:12,o=0;o<e;o++)p()&&(o<6?x(16):x(64))}y();var b=f();if(b===0)f();else if(b===1)for(v(1),A(),A(),s=f(),o=0;o<s;o++)A();y(),v(1);var _=f(),O=f(),L=u(1);L===0&&v(1),v(1),p()&&(r=f(),i=f(),n=f(),t=f());var D=[1,1];if(p()&&p()){var N=l();switch(N){case 1:D=[1,1];break;case 2:D=[12,11];break;case 3:D=[10,11];break;case 4:D=[16,11];break;case 5:D=[40,33];break;case 6:D=[24,11];break;case 7:D=[20,11];break;case 8:D=[32,11];break;case 9:D=[80,33];break;case 10:D=[18,11];break;case 11:D=[15,11];break;case 12:D=[64,33];break;case 13:D=[160,99];break;case 14:D=[4,3];break;case 15:D=[3,2];break;case 16:D=[2,1];break;case 255:{D=[l()<<8|l(),l()<<8|l()];break}}}return{width:Math.ceil((_+1)*16-r*2-i*2),height:(2-L)*(O+1)*16-(L?2:4)*(n+t),pixelRatio:D}},c.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},h}();T.default=m},"./src/demux/id3.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"isHeader",function(){return S}),g.d(T,"isFooter",function(){return m}),g.d(T,"getID3Data",function(){return h}),g.d(T,"canParse",function(){return a}),g.d(T,"getTimeStamp",function(){return r}),g.d(T,"isTimeStampFrame",function(){return i}),g.d(T,"getID3Frames",function(){return t}),g.d(T,"decodeFrame",function(){return s}),g.d(T,"utf8ArrayToStr",function(){return f}),g.d(T,"testables",function(){return p});var S=function(x,C){return C+10<=x.length&&(x[C]===73&&x[C+1]===68&&x[C+2]===51&&(x[C+3]<255&&x[C+4]<255&&(x[C+6]<128&&x[C+7]<128&&x[C+8]<128&&x[C+9]<128)))},m=function(x,C){return C+10<=x.length&&(x[C]===51&&x[C+1]===68&&x[C+2]===73&&(x[C+3]<255&&x[C+4]<255&&(x[C+6]<128&&x[C+7]<128&&x[C+8]<128&&x[C+9]<128)))},h=function(x,C){for(var w=C,b=0;S(x,C);){b+=10;var _=c(x,C+6);b+=_,m(x,C+10)&&(b+=10),C+=b}return b>0?x.subarray(w,w+b):void 0},c=function(x,C){var w=0;return w=(x[C]&127)<<21,w|=(x[C+1]&127)<<14,w|=(x[C+2]&127)<<7,w|=x[C+3]&127,w},a=function(x,C){return S(x,C)&&c(x,C+6)+10<=x.length-C},r=function(x){for(var C=t(x),w=0;w<C.length;w++){var b=C[w];if(i(b))return u(b)}return},i=function(x){return x&&x.key==="PRIV"&&x.info==="com.apple.streaming.transportStreamTimestamp"},n=function(x){var C=String.fromCharCode(x[0],x[1],x[2],x[3]),w=c(x,4),b=10;return{type:C,size:w,data:x.subarray(b,b+w)}},t=function(x){for(var C=0,w=[];S(x,C);){var b=c(x,C+6);C+=10;for(var _=C+b;C+8<_;){var O=n(x.subarray(C)),L=s(O);L&&w.push(L),C+=O.size+10}m(x,C)&&(C+=10)}return w},s=function(x){return x.type==="PRIV"?e(x):x.type[0]==="W"?l(x):o(x)},e=function(x){if(x.size<2)return;var C=f(x.data,!0),w=new Uint8Array(x.data.subarray(C.length+1));return{key:x.type,info:C,data:w.buffer}},o=function(x){if(x.size<2)return;if(x.type==="TXXX"){var C=1,w=f(x.data.subarray(C),!0);C+=w.length+1;var b=f(x.data.subarray(C));return{key:x.type,info:w,data:b}}var _=f(x.data.subarray(1));return{key:x.type,data:_}},l=function(x){if(x.type==="WXXX"){if(x.size<2)return;var C=1,w=f(x.data.subarray(C),!0);C+=w.length+1;var b=f(x.data.subarray(C));return{key:x.type,info:w,data:b}}var _=f(x.data);return{key:x.type,data:_}},u=function(x){if(x.data.byteLength===8){var C=new Uint8Array(x.data),w=C[3]&1,b=(C[4]<<23)+(C[5]<<15)+(C[6]<<7)+C[7];return b/=45,w&&(b+=4772185884e-2),Math.round(b)}return},f=function(x,C){C===void 0&&(C=!1);var w=A();if(w){var b=w.decode(x);if(C){var _=b.indexOf("\0");return _!==-1?b.substring(0,_):b}return b.replace(/\0/g,"")}for(var O=x.length,L,D,N,M="",F=0;F<O;){if(L=x[F++],L===0&&C)return M;if(L===0||L===3)continue;switch(L>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:M+=String.fromCharCode(L);break;case 12:case 13:D=x[F++],M+=String.fromCharCode((L&31)<<6|D&63);break;case 14:D=x[F++],N=x[F++],M+=String.fromCharCode((L&15)<<12|(D&63)<<6|(N&63)<<0);break;default:}}return M},p={decodeTextFrame:o},v;function A(){return!v&&typeof self.TextDecoder!="undefined"&&(v=new self.TextDecoder("utf-8")),v}},"./src/demux/mp3demuxer.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/demux/base-audio-demuxer.ts"),m=g("./src/demux/id3.ts"),h=g("./src/utils/logger.ts"),c=g("./src/demux/mpegaudio.ts");function a(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,r(n,t)}function r(n,t){return r=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},r(n,t)}var i=function(n){a(t,n);function t(){return n.apply(this,arguments)||this}var s=t.prototype;return s.resetInitSegment=function(o,l,u){n.prototype.resetInitSegment.call(this,o,l,u),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:o,duration:u,inputTimeScale:9e4,dropped:0}},t.probe=function(o){if(!o)return!1;for(var l=m.getID3Data(o,0)||[],u=l.length,f=o.length;u<f;u++)if(c.probe(o,u))return h.logger.log("MPEG Audio sync word found !"),!0;return!1},s.canParse=function(o,l){return c.canParse(o,l)},s.appendFrame=function(o,l,u){return this.initPTS===null?void 0:c.appendFrame(o,l,u,this.initPTS,this.frameIndex)},t}(S.default);i.minProbeByteLength=4,T.default=i},"./src/demux/mp4demuxer.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/utils/mp4-tools.ts"),m=g("./src/demux/dummy-demuxed-track.ts"),h=function(){function c(r,i){this.remainderData=null,this.config=void 0,this.config=i}var a=c.prototype;return a.resetTimeStamp=function(){},a.resetInitSegment=function(){},a.resetContiguity=function(){},c.probe=function(i){return Object(S.findBox)({data:i,start:0,end:Math.min(i.length,16384)},["moof"]).length>0},a.demux=function(i){var n=i,t=Object(m.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(S.appendUint8Array)(this.remainderData,i));var s=Object(S.segmentValidRange)(n);this.remainderData=s.remainder,t.samples=s.valid||new Uint8Array}else t.samples=n;return{audioTrack:Object(m.dummyTrack)(),avcTrack:t,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},a.flush=function(){var i=Object(m.dummyTrack)();return i.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(m.dummyTrack)(),avcTrack:i,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},a.demuxSampleAes=function(i,n,t){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},a.destroy=function(){},c}();h.minProbeByteLength=1024,T.default=h},"./src/demux/mpegaudio.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"appendFrame",function(){return r}),g.d(T,"parseHeader",function(){return i}),g.d(T,"isHeaderPattern",function(){return n}),g.d(T,"isHeader",function(){return t}),g.d(T,"canParse",function(){return s}),g.d(T,"probe",function(){return e});var S=null,m=[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],h=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],c=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],a=[0,1,1,4];function r(o,l,u,f,p){if(u+24>l.length)return;var v=i(l,u);if(v&&u+v.frameLength<=l.length){var A=v.samplesPerFrame*9e4/v.sampleRate,y=f+p*A,x={unit:l.subarray(u,u+v.frameLength),pts:y,dts:y};return o.config=[],o.channelCount=v.channelCount,o.samplerate=v.sampleRate,o.samples.push(x),{sample:x,length:v.frameLength,missing:0}}}function i(o,l){var u=o[l+1]>>3&3,f=o[l+1]>>1&3,p=o[l+2]>>4&15,v=o[l+2]>>2&3;if(u!==1&&p!==0&&p!==15&&v!==3){var A=o[l+2]>>1&1,y=o[l+3]>>6,x=u===3?3-f:f===3?3:4,C=m[x*14+p-1]*1e3,w=u===3?0:u===2?1:2,b=h[w*3+v],_=y===3?1:2,O=c[u][f],L=a[f],D=O*8*L,N=Math.floor(O*C/b+A)*L;if(S===null){var M=navigator.userAgent||"",F=M.match(/Chrome\/(\d+)/i);S=F?parseInt(F[1]):0}var R=!!S&&S<=87;return R&&f===2&&C>=224e3&&y===0&&(o[l+3]=o[l+3]|128),{sampleRate:b,channelCount:_,frameLength:N,samplesPerFrame:D}}}function n(o,l){return o[l]===255&&(o[l+1]&224)===224&&(o[l+1]&6)!==0}function t(o,l){return l+1<o.length&&n(o,l)}function s(o,l){var u=4;return n(o,l)&&u<=o.length-l}function e(o,l){if(l+1<o.length&&n(o,l)){var u=4,f=i(o,l),p=u;f!=null&&f.frameLength&&(p=f.frameLength);var v=l+p;return v===o.length||t(o,v)}return!1}},"./src/demux/sample-aes.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/crypt/decrypter.ts"),m=g("./src/demux/tsdemuxer.ts"),h=function(){function c(r,i,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new S.default(r,i,{removePKCS7Padding:!1})}var a=c.prototype;return a.decryptBuffer=function(i,n){this.decrypter.decrypt(i,this.keyData.key.buffer,this.keyData.iv.buffer,n)},a.decryptAacSample=function(i,n,t,s){var e=i[n].unit,o=e.subarray(16,e.length-e.length%16),l=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),u=this;this.decryptBuffer(l,function(f){var p=new Uint8Array(f);e.set(p,16),s||u.decryptAacSamples(i,n+1,t)})},a.decryptAacSamples=function(i,n,t){for(;;n++){if(n>=i.length){t();return}if(i[n].unit.length<32)continue;var s=this.decrypter.isSync();if(this.decryptAacSample(i,n,t,s),!s)return}},a.getAvcEncryptedData=function(i){for(var n=Math.floor((i.length-48)/160)*16+16,t=new Int8Array(n),s=0,e=32;e<=i.length-16;e+=160,s+=16)t.set(i.subarray(e,e+16),s);return t},a.getAvcDecryptedUnit=function(i,n){for(var t=new Uint8Array(n),s=0,e=32;e<=i.length-16;e+=160,s+=16)i.set(t.subarray(s,s+16),e);return i},a.decryptAvcSample=function(i,n,t,s,e,o){var l=Object(m.discardEPB)(e.data),u=this.getAvcEncryptedData(l),f=this;this.decryptBuffer(u.buffer,function(p){e.data=f.getAvcDecryptedUnit(l,p),o||f.decryptAvcSamples(i,n,t+1,s)})},a.decryptAvcSamples=function(i,n,t,s){if(i instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,t=0){if(n>=i.length){s();return}for(var e=i[n].units;!(t>=e.length);t++){var o=e[t];if(o.data.length<=48||o.type!==1&&o.type!==5)continue;var l=this.decrypter.isSync();if(this.decryptAvcSample(i,n,t,s,o,l),!l)return}}},c}();T.default=h},"./src/demux/transmuxer-interface.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return e});var S=g("./node_modules/webworkify-webpack/index.js"),m=g.n(S),h=g("./src/events.ts"),c=g("./src/demux/transmuxer.ts"),a=g("./src/utils/logger.ts"),r=g("./src/errors.ts"),i=g("./src/utils/mediasource-helper.ts"),n=g("./node_modules/eventemitter3/index.js"),t=g.n(n),s=Object(i.getMediaSource)()||{isTypeSupported:function(){return!1}},e=function(){function o(u,f,p,v){var A=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=u,this.id=f,this.onTransmuxComplete=p,this.onFlush=v;var y=u.config,x=function(O,L){L=L||{},L.frag=A.frag,L.id=A.id,u.trigger(O,L)};this.observer=new n.EventEmitter,this.observer.on(h.Events.FRAG_DECRYPTED,x),this.observer.on(h.Events.ERROR,x);var C={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},w=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){a.logger.log("demuxing in webworker");var b;try{b=this.worker=S("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),b.addEventListener("message",this.onwmsg),b.onerror=function(_){u.trigger(h.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(_.message+" ("+_.filename+":"+_.lineno+")")})},b.postMessage({cmd:"init",typeSupported:C,vendor:w,id:f,config:JSON.stringify(y)})}catch(_){a.logger.warn("Error in worker:",_),a.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new c.default(this.observer,C,y,w,f),this.worker=null}}else this.transmuxer=new c.default(this.observer,C,y,w,f)}var l=o.prototype;return l.destroy=function(){var f=this.worker;if(f)f.removeEventListener("message",this.onwmsg),f.terminate(),this.worker=null;else{var p=this.transmuxer;p&&(p.destroy(),this.transmuxer=null)}var v=this.observer;v&&v.removeAllListeners(),this.observer=null},l.push=function(f,p,v,A,y,x,C,w,b,_){var O=this;b.transmuxing.start=self.performance.now();var L=this.transmuxer,D=this.worker,N=x?x.start:y.start,M=y.decryptdata,F=this.frag,R=!(F&&y.cc===F.cc),j=!(F&&b.level===F.level),B=F?b.sn-F.sn:-1,K=this.part?b.part-this.part.index:1,U=!j&&(B===1||B===0&&K===1),z=self.performance.now();(j||B||y.stats.parsing.start===0)&&(y.stats.parsing.start=z),x&&(K||!U)&&(x.stats.parsing.start=z);var V=new c.TransmuxState(R,U,w,j,N);if(!U||R){a.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+b.sn+" p: "+b.part+" level: "+b.level+" id: "+b.id+`
|
|
|
discontinuity: `+R+`
|
|
|
trackSwitch: `+j+`
|
|
|
contiguous: `+U+`
|
|
|
accurateTimeOffset: `+w+`
|
|
|
timeOffset: `+N);var Y=new c.TransmuxConfig(v,A,p,C,_);this.configureTransmuxer(Y)}if(this.frag=y,this.part=x,D)D.postMessage({cmd:"demux",data:f,decryptdata:M,chunkMeta:b,state:V},f instanceof ArrayBuffer?[f]:[]);else if(L){var J=L.push(f,M,b,V);Object(c.isPromise)(J)?J.then(function(se){O.handleTransmuxComplete(se)}):this.handleTransmuxComplete(J)}},l.flush=function(f){var p=this;f.transmuxing.start=self.performance.now();var v=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:f});else if(v){var y=v.flush(f);Object(c.isPromise)(y)?y.then(function(x){p.handleFlushResult(x,f)}):this.handleFlushResult(y,f)}},l.handleFlushResult=function(f,p){var v=this;f.forEach(function(A){v.handleTransmuxComplete(A)}),this.onFlush(p)},l.onWorkerMessage=function(f){var p=f.data,v=this.hls;switch(p.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(p.data);break}case"flush":{this.onFlush(p.data);break}default:{p.data=p.data||{},p.data.frag=this.frag,p.data.id=this.id,v.trigger(p.event,p.data);break}}},l.configureTransmuxer=function(f){var p=this.worker,v=this.transmuxer;p?p.postMessage({cmd:"configure",config:f}):v&&v.configure(f)},l.handleTransmuxComplete=function(f){f.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(f)},o}()},"./src/demux/transmuxer-worker.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return r});var S=g("./src/demux/transmuxer.ts"),m=g("./src/events.ts"),h=g("./src/utils/logger.ts"),c=g("./node_modules/eventemitter3/index.js"),a=g.n(c);function r(e){var o=new c.EventEmitter,l=function(f,p){e.postMessage({event:f,data:p})};o.on(m.Events.FRAG_DECRYPTED,l),o.on(m.Events.ERROR,l),e.addEventListener("message",function(u){var f=u.data;switch(f.cmd){case"init":{var p=JSON.parse(f.config);e.transmuxer=new S.default(o,f.typeSupported,p,f.vendor,f.id),Object(h.enableLogs)(p.debug),l("init",null);break}case"configure":{e.transmuxer.configure(f.config);break}case"demux":{var v=e.transmuxer.push(f.data,f.decryptdata,f.chunkMeta,f.state);Object(S.isPromise)(v)?v.then(function(x){i(e,x)}):i(e,v);break}case"flush":{var A=f.chunkMeta,y=e.transmuxer.flush(A);Object(S.isPromise)(y)?y.then(function(x){t(e,x,A)}):t(e,y,A);break}default:break}})}function i(e,o){if(s(o.remuxResult))return;var l=[],u=o.remuxResult,f=u.audio,p=u.video;f&&n(l,f),p&&n(l,p),e.postMessage({event:"transmuxComplete",data:o},l)}function n(e,o){o.data1&&e.push(o.data1.buffer),o.data2&&e.push(o.data2.buffer)}function t(e,o,l){o.forEach(function(u){i(e,u)}),e.postMessage({event:"flush",data:l})}function s(e){return!e.audio&&!e.video&&!e.text&&!e.id3&&!e.initSegment}},"./src/demux/transmuxer.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return p}),g.d(T,"isPromise",function(){return y}),g.d(T,"TransmuxConfig",function(){return x}),g.d(T,"TransmuxState",function(){return C});var S=g("./src/events.ts"),m=g("./src/errors.ts"),h=g("./src/crypt/decrypter.ts"),c=g("./src/demux/aacdemuxer.ts"),a=g("./src/demux/mp4demuxer.ts"),r=g("./src/demux/tsdemuxer.ts"),i=g("./src/demux/mp3demuxer.ts"),n=g("./src/remux/mp4-remuxer.ts"),t=g("./src/remux/passthrough-remuxer.ts"),s=g("./src/demux/chunk-cache.ts"),e=g("./src/utils/mp4-tools.ts"),o=g("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(w){o.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var u=[{demux:r.default,remux:n.default},{demux:a.default,remux:t.default},{demux:c.default,remux:n.default},{demux:i.default,remux:n.default}],f=1024;u.forEach(function(w){var b=w.demux;f=Math.max(f,b.minProbeByteLength)});var p=function(){function w(_,O,L,D,N){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.cache=new s.default,this.observer=_,this.typeSupported=O,this.config=L,this.vendor=D,this.id=N}var b=w.prototype;return b.configure=function(O){this.transmuxConfig=O,this.decrypter&&this.decrypter.reset()},b.push=function(O,L,D,N){var M=this,F=D.transmuxing;F.executeStart=l();var R=new Uint8Array(O),j=this.cache,B=this.config,K=this.currentTransmuxState,U=this.transmuxConfig;N&&(this.currentTransmuxState=N);var z=v(R,L);if(z&&z.method==="AES-128"){var V=this.getDecrypter();if(B.enableSoftwareAES){var Y=V.softwareDecrypt(R,z.key.buffer,z.iv.buffer);if(!Y)return F.executeEnd=l(),A(D);R=new Uint8Array(Y)}else return this.decryptionPromise=V.webCryptoDecrypt(R,z.key.buffer,z.iv.buffer).then(function(G){var Z=M.push(G,null,D);return M.decryptionPromise=null,Z}),this.decryptionPromise}var J=N||K,se=J.contiguous,$=J.discontinuity,ae=J.trackSwitch,ge=J.accurateTimeOffset,pe=J.timeOffset,Ne=U.audioCodec,de=U.videoCodec,Le=U.defaultInitPts,Q=U.duration,ce=U.initSegmentData;if(($||ae)&&this.resetInitSegment(ce,Ne,de,Q),$&&this.resetInitialTimestamp(Le),se||this.resetContiguity(),this.needsProbing(R,$,ae)){if(j.dataLength){var Ke=j.flush();R=Object(e.appendUint8Array)(Ke,R)}this.configureTransmuxer(R,U)}var ee=this.transmux(R,z,pe,ge,D),X=this.currentTransmuxState;return X.contiguous=!0,X.discontinuity=!1,X.trackSwitch=!1,F.executeEnd=l(),ee},b.flush=function(O){var L=this,D=O.transmuxing;D.executeStart=l();var N=this.decrypter,M=this.cache,F=this.currentTransmuxState,R=this.decryptionPromise;if(R)return R.then(function(){return L.flush(O)});var j=[],B=F.timeOffset;if(N){var K=N.flush();K&&j.push(this.push(K,null,O))}var U=M.dataLength;M.reset();var z=this.demuxer,V=this.remuxer;if(!z||!V)return U>=f&&this.observer.emit(S.Events.ERROR,S.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=l(),[A(O)];var Y=z.flush(B);return y(Y)?Y.then(function(J){return L.flushRemux(j,J,O),j}):(this.flushRemux(j,Y,O),j)},b.flushRemux=function(O,L,D){var N=L.audioTrack,M=L.avcTrack,F=L.id3Track,R=L.textTrack,j=this.currentTransmuxState,B=j.accurateTimeOffset,K=j.timeOffset;o.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var U=this.remuxer.remux(N,M,F,R,K,B,!0,this.id);O.push({remuxResult:U,chunkMeta:D}),D.transmuxing.executeEnd=l()},b.resetInitialTimestamp=function(O){var L=this.demuxer,D=this.remuxer;if(!L||!D)return;L.resetTimeStamp(O),D.resetTimeStamp(O)},b.resetContiguity=function(){var O=this.demuxer,L=this.remuxer;if(!O||!L)return;O.resetContiguity(),L.resetNextTimestamp()},b.resetInitSegment=function(O,L,D,N){var M=this.demuxer,F=this.remuxer;if(!M||!F)return;M.resetInitSegment(L,D,N),F.resetInitSegment(O,L,D)},b.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},b.transmux=function(O,L,D,N,M){var F;return L&&L.method==="SAMPLE-AES"?F=this.transmuxSampleAes(O,L,D,N,M):F=this.transmuxUnencrypted(O,D,N,M),F},b.transmuxUnencrypted=function(O,L,D,N){var M=this.demuxer.demux(O,L,!1,!this.config.progressive),F=M.audioTrack,R=M.avcTrack,j=M.id3Track,B=M.textTrack,K=this.remuxer.remux(F,R,j,B,L,D,!1,this.id);return{remuxResult:K,chunkMeta:N}},b.transmuxSampleAes=function(O,L,D,N,M){var F=this;return this.demuxer.demuxSampleAes(O,L,D).then(function(R){var j=F.remuxer.remux(R.audioTrack,R.avcTrack,R.id3Track,R.textTrack,D,N,!1,F.id);return{remuxResult:j,chunkMeta:M}})},b.configureTransmuxer=function(O,L){for(var D=this.config,N=this.observer,M=this.typeSupported,F=this.vendor,R=L.audioCodec,j=L.defaultInitPts,B=L.duration,K=L.initSegmentData,U=L.videoCodec,z,V=0,Y=u.length;V<Y;V++)if(u[V].demux.probe(O)){z=u[V];break}z||(o.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),z={demux:a.default,remux:t.default});var J=this.demuxer,se=this.remuxer,$=z.remux,ae=z.demux;(!se||!(se instanceof $))&&(this.remuxer=new $(N,D,M,F)),(!J||!(J instanceof ae))&&(this.demuxer=new ae(N,D,M),this.probe=ae.probe),this.resetInitSegment(K,R,U,B),this.resetInitialTimestamp(j)},b.needsProbing=function(O,L,D){return!this.demuxer||!this.remuxer||L||D},b.getDecrypter=function(){var O=this.decrypter;return O||(O=this.decrypter=new h.default(this.observer,this.config)),O},w}();function v(w,b){var _=null;return w.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(_=b),_}var A=function(b){return{remuxResult:{},chunkMeta:b}};function y(w){return"then"in w&&w.then instanceof Function}var x=function(b,_,O,L,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=b,this.videoCodec=_,this.initSegmentData=O,this.duration=L,this.defaultInitPts=D},C=function(b,_,O,L,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=b,this.contiguous=_,this.accurateTimeOffset=O,this.trackSwitch=L,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"discardEPB",function(){return A});var S=g("./src/demux/adts.ts"),m=g("./src/demux/mpegaudio.ts"),h=g("./src/demux/exp-golomb.ts"),c=g("./src/demux/id3.ts"),a=g("./src/demux/sample-aes.ts"),r=g("./src/events.ts"),i=g("./src/utils/mp4-tools.ts"),n=g("./src/utils/logger.ts"),t=g("./src/errors.ts"),s={video:1,audio:2,id3:3,text:4},e=function(){function y(C,w,b){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.aacLastPTS=null,this._initPTS=null,this._initDTS=null,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=C,this.config=w,this.typeSupported=b}y.probe=function(w){var b=y.syncOffset(w);return b<0?!1:(b&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+b+", junk ahead ?"),!0)},y.syncOffset=function(w){for(var b=Math.min(1e3,w.length-3*188),_=0;_<b;){if(w[_]===71&&w[_+188]===71&&w[_+2*188]===71)return _;_++}return-1},y.createTrack=function(w,b){return{container:w==="video"||w==="audio"?"video/mp2t":void 0,type:w,id:s[w],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:w==="audio"?b:void 0}};var x=y.prototype;return x.resetInitSegment=function(w,b,_){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=y.createTrack("video",_),this._audioTrack=y.createTrack("audio",_),this._id3Track=y.createTrack("id3",_),this._txtTrack=y.createTrack("text",_),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=w,this.videoCodec=b,this._duration=_},x.resetTimeStamp=function(){},x.resetContiguity=function(){var w=this._audioTrack,b=this._avcTrack,_=this._id3Track;w&&(w.pesData=null),b&&(b.pesData=null),_&&(_.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},x.demux=function(w,b,_,O){_===void 0&&(_=!1),O===void 0&&(O=!1),_||(this.sampleAes=null);var L,D=this._avcTrack,N=this._audioTrack,M=this._id3Track,F=D.pid,R=D.pesData,j=N.pid,B=M.pid,K=N.pesData,U=M.pesData,z=!1,V=this.pmtParsed,Y=this._pmtId,J=w.length;if(this.remainderData&&(w=Object(i.appendUint8Array)(this.remainderData,w),J=w.length,this.remainderData=null),J<188&&!O)return this.remainderData=w,{audioTrack:N,avcTrack:D,id3Track:M,textTrack:this._txtTrack};var se=Math.max(0,y.syncOffset(w));J-=(J+se)%188,J<w.byteLength&&!O&&(this.remainderData=new Uint8Array(w.buffer,J,w.buffer.byteLength-J));for(var $=se;$<J;$+=188)if(w[$]===71){var ae=!!(w[$+1]&64),ge=((w[$+1]&31)<<8)+w[$+2],pe=(w[$+3]&48)>>4,Ne=void 0;if(pe>1){if(Ne=$+5+w[$+4],Ne===$+188)continue}else Ne=$+4;switch(ge){case F:ae&&(R&&(L=f(R))&&this.parseAVCPES(L,!1),R={data:[],size:0}),R&&(R.data.push(w.subarray(Ne,$+188)),R.size+=$+188-Ne);break;case j:ae&&(K&&(L=f(K))&&(N.isAAC?this.parseAACPES(L):this.parseMPEGPES(L)),K={data:[],size:0}),K&&(K.data.push(w.subarray(Ne,$+188)),K.size+=$+188-Ne);break;case B:ae&&(U&&(L=f(U))&&this.parseID3PES(L),U={data:[],size:0}),U&&(U.data.push(w.subarray(Ne,$+188)),U.size+=$+188-Ne);break;case 0:ae&&(Ne+=w[Ne]+1),Y=this._pmtId=l(w,Ne);break;case Y:{ae&&(Ne+=w[Ne]+1);var de=u(w,Ne,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,_);F=de.avc,F>0&&(D.pid=F),j=de.audio,j>0&&(N.pid=j,N.isAAC=de.isAAC),B=de.id3,B>0&&(M.pid=B),z&&!V&&(n.logger.log("reparse from beginning"),z=!1,$=se-188),V=this.pmtParsed=!0;break}case 17:case 8191:break;default:z=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=R,N.pesData=K,M.pesData=U;var Le={audioTrack:N,avcTrack:D,id3Track:M,textTrack:this._txtTrack};return O&&this.extractRemainingSamples(Le),Le},x.flush=function(){var w=this.remainderData;this.remainderData=null;var b;return w?b=this.demux(w,-1,!1,!0):b={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(b),this.sampleAes?this.decrypt(b,this.sampleAes):b},x.extractRemainingSamples=function(w){var b=w.audioTrack,_=w.avcTrack,O=w.id3Track,L=_.pesData,D=b.pesData,N=O.pesData,M;L&&(M=f(L))?(this.parseAVCPES(M,!0),_.pesData=null):_.pesData=L,D&&(M=f(D))?(b.isAAC?this.parseAACPES(M):this.parseMPEGPES(M),b.pesData=null):(D!=null&&D.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),b.pesData=D),N&&(M=f(N))?(this.parseID3PES(M),O.pesData=null):O.pesData=N},x.demuxSampleAes=function(w,b,_){var O=this.demux(w,_,!0,!this.config.progressive),L=this.sampleAes=new a.default(this.observer,this.config,b);return this.decrypt(O,L)},x.decrypt=function(w,b){return new Promise(function(_){var O=w.audioTrack,L=w.avcTrack;O.samples&&O.isAAC?b.decryptAacSamples(O.samples,0,function(){L.samples?b.decryptAvcSamples(L.samples,0,0,function(){_(w)}):_(w)}):L.samples&&b.decryptAvcSamples(L.samples,0,0,function(){_(w)})})},x.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},x.parseAVCPES=function(w,b){var _=this,O=this._avcTrack,L=this.parseAVCNALu(w.data),D=!1,N=this.avcSample,M,F=!1;w.data=null,N&&L.length&&!O.audFound&&(p(N,O),N=this.avcSample=o(!1,w.pts,w.dts,"")),L.forEach(function(R){switch(R.type){case 1:{M=!0,N||(N=_.avcSample=o(!0,w.pts,w.dts,"")),D&&(N.debug+="NDR "),N.frame=!0;var j=R.data;if(F&&j.length>4){var B=new h.default(j).readSliceType();(B===2||B===4||B===7||B===9)&&(N.key=!0)}break}case 5:M=!0,N||(N=_.avcSample=o(!0,w.pts,w.dts,"")),D&&(N.debug+="IDR "),N.key=!0,N.frame=!0;break;case 6:{M=!0,D&&N&&(N.debug+="SEI ");var K=new h.default(A(R.data));K.readUByte();for(var U=0,z=0,V=!1,Y=0;!V&&K.bytesAvailable>1;){U=0;do Y=K.readUByte(),U+=Y;while(Y===255);z=0;do Y=K.readUByte(),z+=Y;while(Y===255);if(U===4&&K.bytesAvailable!==0){V=!0;var J=K.readUByte();if(J===181){var se=K.readUShort();if(se===49){var $=K.readUInt();if($===1195456820){var ae=K.readUByte();if(ae===3){for(var ge=K.readUByte(),pe=K.readUByte(),Ne=31&ge,de=[ge,pe],Le=0;Le<Ne;Le++)de.push(K.readUByte()),de.push(K.readUByte()),de.push(K.readUByte());v(_._txtTrack.samples,{type:3,pts:w.pts,bytes:de})}}}}}else if(U===5&&K.bytesAvailable!==0){if(V=!0,z>16){for(var Q=[],ce=0;ce<16;ce++)Q.push(K.readUByte().toString(16)),(ce===3||ce===5||ce===7||ce===9)&&Q.push("-");for(var Ke=z-16,ee=new Uint8Array(Ke),X=0;X<Ke;X++)ee[X]=K.readUByte();v(_._txtTrack.samples,{pts:w.pts,payloadType:U,uuid:Q.join(""),userData:Object(c.utf8ArrayToStr)(ee),userDataBytes:ee})}}else if(z<K.bytesAvailable)for(var G=0;G<z;G++)K.readUByte()}break}case 7:if(M=!0,F=!0,D&&N&&(N.debug+="SPS "),!O.sps){var Z=new h.default(R.data),ve=Z.readSPS();O.width=ve.width,O.height=ve.height,O.pixelRatio=ve.pixelRatio,O.sps=[R.data],O.duration=_._duration;for(var ue=R.data.subarray(1,4),_e="avc1.",xe=0;xe<3;xe++){var oe=ue[xe].toString(16);oe.length<2&&(oe="0"+oe),_e+=oe}O.codec=_e}break;case 8:M=!0,D&&N&&(N.debug+="PPS "),O.pps||(O.pps=[R.data]);break;case 9:M=!1,O.audFound=!0,N&&p(N,O),N=_.avcSample=o(!1,w.pts,w.dts,D?"AUD ":"");break;case 12:M=!1;break;default:M=!1,N&&(N.debug+="unknown NAL "+R.type+" ");break}if(N&&M){var fe=N.units;fe.push(R)}}),b&&N&&(p(N,O),this.avcSample=null)},x.getLastNalUnit=function(){var w,b=this.avcSample,_;if(!b||b.units.length===0){var O=this._avcTrack.samples;b=O[O.length-1]}if((w=b)!==null&&w!==void 0&&w.units){var L=b.units;_=L[L.length-1]}return _},x.parseAVCNALu=function(w){var b=w.byteLength,_=this._avcTrack,O=_.naluState||0,L=O,D=[],N=0,M,F,R,j=-1,B=0;for(O===-1&&(j=0,B=w[0]&31,O=0,N=1);N<b;){if(M=w[N++],!O){O=M?0:1;continue}if(O===1){O=M?0:2;continue}if(!M)O=3;else if(M===1){if(j>=0){var K={data:w.subarray(j,N-O-1),type:B};D.push(K)}else{var U=this.getLastNalUnit();if(U&&(L&&N<=4-L&&(U.state&&(U.data=U.data.subarray(0,U.data.byteLength-L))),F=N-O-1,F>0)){var z=new Uint8Array(U.data.byteLength+F);z.set(U.data,0),z.set(w.subarray(0,F),U.data.byteLength),U.data=z,U.state=0}}N<b?(R=w[N]&31,j=N,B=R,O=0):O=-1}else O=0}if(j>=0&&O>=0){var V={data:w.subarray(j,b),type:B,state:O};D.push(V)}if(D.length===0){var Y=this.getLastNalUnit();if(Y){var J=new Uint8Array(Y.data.byteLength+w.byteLength);J.set(Y.data,0),J.set(w,Y.data.byteLength),Y.data=J}}return _.naluState=O,D},x.parseAACPES=function(w){var b=0,_=this._audioTrack,O=this.aacOverFlow,L=w.data;if(O){this.aacOverFlow=null;var D=O.sample.unit.byteLength,N=Math.min(O.missing,D),M=D-N;O.sample.unit.set(L.subarray(0,N),M),_.samples.push(O.sample),b=O.missing}var F,R;for(F=b,R=L.length;F<R-1&&!S.isHeader(L,F);F++);if(F!==b){var j,B;if(F<R-1?(j="AAC PES did not start with ADTS header,offset:"+F,B=!1):(j="no ADTS header found in AAC PES",B=!0),n.logger.warn("parsing error:"+j),this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:B,reason:j}),B)return}S.initTrackConfig(_,this.observer,L,F,this.audioCodec);var K;if(w.pts!==void 0)K=w.pts;else if(O){var U=S.getFrameDuration(_.samplerate);K=O.sample.pts+U}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var z=0;F<R;)if(S.isHeader(L,F)){if(F+5<R){var V=S.appendFrame(_,L,F,K,z);if(V)if(V.missing)this.aacOverFlow=V;else{F+=V.length,z++;continue}}break}else F++},x.parseMPEGPES=function(w){var b=w.data,_=b.length,O=0,L=0,D=w.pts;if(D===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;L<_;)if(m.isHeader(b,L)){var N=m.appendFrame(this._audioTrack,b,L,D,O);if(N)L+=N.length,O++;else break}else L++},x.parseID3PES=function(w){if(w.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(w)},y}();e.minProbeByteLength=188;function o(y,x,C,w){return{key:y,frame:!1,pts:x,dts:C,units:[],debug:w,length:0}}function l(y,x){return(y[x+10]&31)<<8|y[x+11]}function u(y,x,C,w){var b={audio:-1,avc:-1,id3:-1,isAAC:!0},_=(y[x+1]&15)<<8|y[x+2],O=x+3+_-4,L=(y[x+10]&15)<<8|y[x+11];for(x+=12+L;x<O;){var D=(y[x+1]&31)<<8|y[x+2];switch(y[x]){case 207:if(!w){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:b.audio===-1&&(b.audio=D);break;case 21:b.id3===-1&&(b.id3=D);break;case 219:if(!w){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:b.avc===-1&&(b.avc=D);break;case 3:case 4:C?b.audio===-1&&(b.audio=D,b.isAAC=!1):n.logger.log("MPEG audio found, not supported in this browser");break;case 36:n.logger.warn("Unsupported HEVC stream type found");break;default:break}x+=((y[x+3]&15)<<8|y[x+4])+5}return b}function f(y){var x=0,C,w,b,_,O,L=y.data;if(!y||y.size===0)return null;for(;L[0].length<19&&L.length>1;){var D=new Uint8Array(L[0].length+L[1].length);D.set(L[0]),D.set(L[1],L[0].length),L[0]=D,L.splice(1,1)}C=L[0];var N=(C[0]<<16)+(C[1]<<8)+C[2];if(N===1){if(w=(C[4]<<8)+C[5],w&&w>y.size-6)return null;var M=C[7];M&192&&(_=(C[9]&14)*536870912+(C[10]&255)*4194304+(C[11]&254)*16384+(C[12]&255)*128+(C[13]&254)/2,M&64?(O=(C[14]&14)*536870912+(C[15]&255)*4194304+(C[16]&254)*16384+(C[17]&255)*128+(C[18]&254)/2,_-O>60*9e4&&(n.logger.warn(Math.round((_-O)/9e4)+"s delta between PTS and DTS, align them"),_=O)):O=_),b=C[8];var F=b+9;if(y.size<=F)return null;y.size-=F;for(var R=new Uint8Array(y.size),j=0,B=L.length;j<B;j++){C=L[j];var K=C.byteLength;if(F)if(F>K){F-=K;continue}else C=C.subarray(F),K-=F,F=0;R.set(C,x),x+=K}return w&&(w-=b+3),{data:R,pts:_,dts:O,len:w}}return null}function p(y,x){if(y.units.length&&y.frame){if(y.pts===void 0){var C=x.samples,w=C.length;if(w){var b=C[w-1];y.pts=b.pts,y.dts=b.dts}else{x.dropped++;return}}x.samples.push(y)}y.debug.length&&n.logger.log(y.pts+"/"+y.dts+":"+y.debug)}function v(y,x){var C=y.length;if(C>0){if(x.pts>=y[C-1].pts)y.push(x);else for(var w=C-1;w>=0;w--)if(x.pts<y[w].pts){y.splice(w,0,x);break}}else y.push(x)}function A(y){for(var x=y.byteLength,C=[],w=1;w<x-2;)y[w]===0&&y[w+1]===0&&y[w+2]===3?(C.push(w+2),w+=2):w++;if(C.length===0)return y;var b=x-C.length,_=new Uint8Array(b),O=0;for(w=0;w<b;O++,w++)O===C[0]&&(O++,C.shift()),_[w]=y[O];return _}T.default=e},"./src/errors.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"ErrorTypes",function(){return S}),g.d(T,"ErrorDetails",function(){return m});var S;(function(h){h.NETWORK_ERROR="networkError",h.MEDIA_ERROR="mediaError",h.KEY_SYSTEM_ERROR="keySystemError",h.MUX_ERROR="muxError",h.OTHER_ERROR="otherError"})(S||(S={}));var m;(function(h){h.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",h.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",h.KEY_SYSTEM_NO_SESSION="keySystemNoSession",h.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",h.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",h.MANIFEST_LOAD_ERROR="manifestLoadError",h.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",h.MANIFEST_PARSING_ERROR="manifestParsingError",h.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",h.LEVEL_EMPTY_ERROR="levelEmptyError",h.LEVEL_LOAD_ERROR="levelLoadError",h.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",h.LEVEL_SWITCH_ERROR="levelSwitchError",h.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",h.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",h.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",h.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",h.FRAG_LOAD_ERROR="fragLoadError",h.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",h.FRAG_DECRYPT_ERROR="fragDecryptError",h.FRAG_PARSING_ERROR="fragParsingError",h.REMUX_ALLOC_ERROR="remuxAllocError",h.KEY_LOAD_ERROR="keyLoadError",h.KEY_LOAD_TIMEOUT="keyLoadTimeOut",h.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",h.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",h.BUFFER_APPEND_ERROR="bufferAppendError",h.BUFFER_APPENDING_ERROR="bufferAppendingError",h.BUFFER_STALLED_ERROR="bufferStalledError",h.BUFFER_FULL_ERROR="bufferFullError",h.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",h.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",h.INTERNAL_EXCEPTION="internalException",h.INTERNAL_ABORTED="aborted",h.UNKNOWN="unknown"})(m||(m={}))},"./src/events.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"Events",function(){return S});var S;(function(m){m.MEDIA_ATTACHING="hlsMediaAttaching",m.MEDIA_ATTACHED="hlsMediaAttached",m.MEDIA_DETACHING="hlsMediaDetaching",m.MEDIA_DETACHED="hlsMediaDetached",m.BUFFER_RESET="hlsBufferReset",m.BUFFER_CODECS="hlsBufferCodecs",m.BUFFER_CREATED="hlsBufferCreated",m.BUFFER_APPENDING="hlsBufferAppending",m.BUFFER_APPENDED="hlsBufferAppended",m.BUFFER_EOS="hlsBufferEos",m.BUFFER_FLUSHING="hlsBufferFlushing",m.BUFFER_FLUSHED="hlsBufferFlushed",m.MANIFEST_LOADING="hlsManifestLoading",m.MANIFEST_LOADED="hlsManifestLoaded",m.MANIFEST_PARSED="hlsManifestParsed",m.LEVEL_SWITCHING="hlsLevelSwitching",m.LEVEL_SWITCHED="hlsLevelSwitched",m.LEVEL_LOADING="hlsLevelLoading",m.LEVEL_LOADED="hlsLevelLoaded",m.LEVEL_UPDATED="hlsLevelUpdated",m.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",m.LEVELS_UPDATED="hlsLevelsUpdated",m.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",m.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",m.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",m.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",m.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",m.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",m.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",m.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",m.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",m.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",m.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",m.CUES_PARSED="hlsCuesParsed",m.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",m.INIT_PTS_FOUND="hlsInitPtsFound",m.FRAG_LOADING="hlsFragLoading",m.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",m.FRAG_LOADED="hlsFragLoaded",m.FRAG_DECRYPTED="hlsFragDecrypted",m.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",m.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",m.FRAG_PARSING_METADATA="hlsFragParsingMetadata",m.FRAG_PARSED="hlsFragParsed",m.FRAG_BUFFERED="hlsFragBuffered",m.FRAG_CHANGED="hlsFragChanged",m.FPS_DROP="hlsFpsDrop",m.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",m.ERROR="hlsError",m.DESTROYING="hlsDestroying",m.KEY_LOADING="hlsKeyLoading",m.KEY_LOADED="hlsKeyLoaded",m.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",m.BACK_BUFFER_REACHED="hlsBackBufferReached"})(S||(S={}))},"./src/hls.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return y});var S=g("./node_modules/url-toolkit/src/url-toolkit.js"),m=g.n(S),h=g("./src/loader/playlist-loader.ts"),c=g("./src/loader/key-loader.ts"),a=g("./src/controller/id3-track-controller.ts"),r=g("./src/controller/latency-controller.ts"),i=g("./src/controller/level-controller.ts"),n=g("./src/controller/fragment-tracker.ts"),t=g("./src/controller/stream-controller.ts"),s=g("./src/is-supported.ts"),e=g("./src/utils/logger.ts"),o=g("./src/config.ts"),l=g("./node_modules/eventemitter3/index.js"),u=g.n(l),f=g("./src/events.ts"),p=g("./src/errors.ts");function v(x,C){for(var w=0;w<C.length;w++){var b=C[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}function A(x,C,w){return C&&v(x.prototype,C),w&&v(x,w),x}var y=function(){x.isSupported=function(){return Object(s.isSupported)()};function x(w){w===void 0&&(w={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new l.EventEmitter,this._autoLevelCapping=void 0,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;var b=this.config=Object(o.mergeConfig)(x.DefaultConfig,w);this.userConfig=w,Object(e.enableLogs)(b.debug),this._autoLevelCapping=-1,b.progressive&&Object(o.enableStreamingMode)(b);var _=b.abrController,O=b.bufferController,L=b.capLevelController,D=b.fpsController,N=this.abrController=new _(this),M=this.bufferController=new O(this),F=this.capLevelController=new L(this),R=new D(this),j=new h.default(this),B=new c.default(this),K=new a.default(this),U=this.levelController=new i.default(this),z=new n.FragmentTracker(this),V=this.streamController=new t.default(this,z);F.setStreamController(V),R.setStreamController(V);var Y=[U,V];this.networkControllers=Y;var J=[j,B,N,M,F,R,K,z];this.audioTrackController=this.createController(b.audioTrackController,null,Y),this.createController(b.audioStreamController,z,Y),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,Y),this.createController(b.subtitleStreamController,z,Y),this.createController(b.timelineController,null,J),this.emeController=this.createController(b.emeController,null,J),this.cmcdController=this.createController(b.cmcdController,null,J),this.latencyController=this.createController(r.default,null,J),this.coreComponents=J}var C=x.prototype;return C.createController=function(b,_,O){if(b){var L=_?new b(this,_):new b(this);return O&&O.push(L),L}return null},C.on=function(b,_,O){O===void 0&&(O=this),this._emitter.on(b,_,O)},C.once=function(b,_,O){O===void 0&&(O=this),this._emitter.once(b,_,O)},C.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},C.off=function(b,_,O,L){O===void 0&&(O=this),this._emitter.off(b,_,O,L)},C.listeners=function(b){return this._emitter.listeners(b)},C.emit=function(b,_,O){return this._emitter.emit(b,_,O)},C.trigger=function(b,_){if(this.config.debug)return this.emit(b,b,_);try{return this.emit(b,b,_)}catch(O){e.logger.error("An internal error happened while handling event "+b+'. Error message: "'+O.message+'". Here is a stacktrace:',O),this.trigger(f.Events.ERROR,{type:p.ErrorTypes.OTHER_ERROR,details:p.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:b,error:O})}return!1},C.listenerCount=function(b){return this._emitter.listenerCount(b)},C.destroy=function(){e.logger.log("destroy"),this.trigger(f.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(b){return b.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(b){return b.destroy()}),this.coreComponents.length=0},C.attachMedia=function(b){e.logger.log("attachMedia"),this._media=b,this.trigger(f.Events.MEDIA_ATTACHING,{media:b})},C.detachMedia=function(){e.logger.log("detachMedia"),this.trigger(f.Events.MEDIA_DETACHING,void 0),this._media=null},C.loadSource=function(b){this.stopLoad();var _=this.media,O=this.url,L=this.url=S.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});e.logger.log("loadSource:"+L),_&&O&&O!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(_)),this.trigger(f.Events.MANIFEST_LOADING,{url:b})},C.startLoad=function(b){b===void 0&&(b=-1),e.logger.log("startLoad("+b+")"),this.networkControllers.forEach(function(_){_.startLoad(b)})},C.stopLoad=function(){e.logger.log("stopLoad"),this.networkControllers.forEach(function(b){b.stopLoad()})},C.swapAudioCodec=function(){e.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},C.recoverMediaError=function(){e.logger.log("recoverMediaError");var b=this._media;this.detachMedia(),b&&this.attachMedia(b)},C.removeLevel=function(b,_){_===void 0&&(_=0),this.levelController.removeLevel(b,_)},A(x,[{key:"levels",get:function(){var b=this.levelController.levels;return b||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(b){e.logger.log("set currentLevel:"+b),this.loadLevel=b,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(b){e.logger.log("set nextLevel:"+b),this.levelController.manualLevel=b,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(b){e.logger.log("set loadLevel:"+b),this.levelController.manualLevel=b}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(b){this.levelController.nextLoadLevel=b}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(b){e.logger.log("set firstLevel:"+b),this.levelController.firstLevel=b}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(b){e.logger.log("set startLevel:"+b),b!==-1&&(b=Math.max(b,this.minAutoLevel)),this.levelController.startLevel=b}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(b){var _=!!b;_!==this.config.capLevelToPlayerSize&&(_?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=_)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(b){this._autoLevelCapping!==b&&(e.logger.log("set autoLevelCapping:"+b),this._autoLevelCapping=b)}},{key:"bandwidthEstimate",get:function(){var b=this.abrController.bwEstimator;return b?b.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var b=this.levels,_=this.config.minAutoBitrate;if(!b)return 0;for(var O=b.length,L=0;L<O;L++)if(b[L].maxBitrate>_)return L;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,_=this.autoLevelCapping,O;return _===-1&&b&&b.length?O=b.length-1:O=_,O}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(b){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,b)}},{key:"audioTracks",get:function(){var b=this.audioTrackController;return b?b.audioTracks:[]}},{key:"audioTrack",get:function(){var b=this.audioTrackController;return b?b.audioTrack:-1},set:function(b){var _=this.audioTrackController;_&&(_.audioTrack=b)}},{key:"subtitleTracks",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTrack:-1},set:function(b){var _=this.subtitleTrackController;_&&(_.subtitleTrack=b)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var b=this.subtitleTrackController;return b?b.subtitleDisplay:!1},set:function(b){var _=this.subtitleTrackController;_&&(_.subtitleDisplay=b)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(b){this.config.lowLatencyMode=b}},{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.1.2"}},{key:"Events",get:function(){return f.Events}},{key:"ErrorTypes",get:function(){return p.ErrorTypes}},{key:"ErrorDetails",get:function(){return p.ErrorDetails}},{key:"DefaultConfig",get:function(){return x.defaultConfig?x.defaultConfig:o.hlsDefaultConfig},set:function(b){x.defaultConfig=b}}]),x}();y.defaultConfig=void 0},"./src/is-supported.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"isSupported",function(){return h}),g.d(T,"changeTypeSupported",function(){return c});var S=g("./src/utils/mediasource-helper.ts");function m(){return self.SourceBuffer||self.WebKitSourceBuffer}function h(){var a=Object(S.getMediaSource)();if(!a)return!1;var r=m(),i=a&&typeof a.isTypeSupported=="function"&&a.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!i&&!!n}function c(){var a,r=m();return typeof(r==null||((a=r.prototype)===null||a===void 0)?void 0:a.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return e}),g.d(T,"LoadError",function(){return l});var S=g("./src/polyfills/number.ts"),m=g("./src/errors.ts");function h(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,n(u,f)}function c(u){var f=typeof Map=="function"?new Map:void 0;return c=function(v){if(v===null||!i(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof f!="undefined"){if(f.has(v))return f.get(v);f.set(v,A)}function A(){return a(v,arguments,t(this).constructor)}return A.prototype=Object.create(v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),n(A,v)},c(u)}function a(u,f,p){return r()?a=Reflect.construct:a=function(A,y,x){var C=[null];C.push.apply(C,y);var w=Function.bind.apply(A,C),b=new w;return x&&n(b,x.prototype),b},a.apply(null,arguments)}function r(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function i(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function n(u,f){return n=Object.setPrototypeOf||function(v,A){return v.__proto__=A,v},n(u,f)}function t(u){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},t(u)}var s=Math.pow(2,17),e=function(){function u(p){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=p}var f=u.prototype;return f.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},f.abort=function(){this.loader&&this.loader.abort()},f.load=function(v,A){var y=this,x=v.url;if(!x)return Promise.reject(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:v,networkDetails:null},"Fragment does not have a "+(x?"part list":"url")));this.abort();var C=this.config,w=C.fLoader,b=C.loader;return new Promise(function(_,O){y.loader&&y.loader.destroy();var L=y.loader=v.loader=w?new w(C):new b(C),D=o(v),N={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:s};v.stats=L.stats,L.load(D,N,{onSuccess:function(F,R,j,B){y.resetLoader(v,L),_({frag:v,part:null,payload:F.data,networkDetails:B})},onError:function(F,R,j){y.resetLoader(v,L),O(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:v,response:F,networkDetails:j}))},onAbort:function(F,R,j){y.resetLoader(v,L),O(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:v,networkDetails:j}))},onTimeout:function(F,R,j){y.resetLoader(v,L),O(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:v,networkDetails:j}))},onProgress:function(F,R,j,B){A&&A({frag:v,part:null,payload:j,networkDetails:B})}})})},f.loadPart=function(v,A,y){var x=this;this.abort();var C=this.config,w=C.fLoader,b=C.loader;return new Promise(function(_,O){x.loader&&x.loader.destroy();var L=x.loader=v.loader=w?new w(C):new b(C),D=o(v,A),N={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:s};A.stats=L.stats,L.load(D,N,{onSuccess:function(F,R,j,B){x.resetLoader(v,L),x.updateStatsFromPart(v,A);var K={frag:v,part:A,payload:F.data,networkDetails:B};y(K),_(K)},onError:function(F,R,j){x.resetLoader(v,L),O(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:v,part:A,response:F,networkDetails:j}))},onAbort:function(F,R,j){v.stats.aborted=A.stats.aborted,x.resetLoader(v,L),O(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:v,part:A,networkDetails:j}))},onTimeout:function(F,R,j){x.resetLoader(v,L),O(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:v,part:A,networkDetails:j}))}})})},f.updateStatsFromPart=function(v,A){var y=v.stats,x=A.stats,C=x.total;if(y.loaded+=x.loaded,C){var w=Math.round(v.duration/A.duration),b=Math.min(Math.round(y.loaded/C),w),_=w-b,O=_*Math.round(y.loaded/b);y.total=y.loaded+O}else y.total=Math.max(y.loaded,y.total);var L=y.loading,D=x.loading;L.start?L.first+=D.first-D.start:(L.start=D.start,L.first=D.first),L.end=D.end},f.resetLoader=function(v,A){v.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},u}();function o(u,f){f===void 0&&(f=null);var p=f||u,v={frag:u,part:f,responseType:"arraybuffer",url:p.url,headers:{},rangeStart:0,rangeEnd:0},A=p.byteRangeStartOffset,y=p.byteRangeEndOffset;return Object(S.isFiniteNumber)(A)&&Object(S.isFiniteNumber)(y)&&(v.rangeStart=A,v.rangeEnd=y),v}var l=function(u){h(f,u);function f(p){for(var v,A=arguments.length,y=new Array(A>1?A-1:0),x=1;x<A;x++)y[x-1]=arguments[x];return v=u.call.apply(u,[this].concat(y))||this,v.data=void 0,v.data=p,v}return f}(c(Error))},"./src/loader/fragment.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"ElementaryStreamTypes",function(){return e}),g.d(T,"BaseSegment",function(){return o}),g.d(T,"Fragment",function(){return l}),g.d(T,"Part",function(){return u});var S=g("./src/polyfills/number.ts"),m=g("./node_modules/url-toolkit/src/url-toolkit.js"),h=g.n(m),c=g("./src/utils/logger.ts"),a=g("./src/loader/level-key.ts"),r=g("./src/loader/load-stats.ts");function i(f,p){f.prototype=Object.create(p.prototype),f.prototype.constructor=f,n(f,p)}function n(f,p){return n=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},n(f,p)}function t(f,p){for(var v=0;v<p.length;v++){var A=p[v];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}function s(f,p,v){return p&&t(f.prototype,p),v&&t(f,v),f}var e;(function(f){f.AUDIO="audio",f.VIDEO="video",f.AUDIOVIDEO="audiovideo"})(e||(e={}));var o=function(){function f(v){var A;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(A={},A[e.AUDIO]=null,A[e.VIDEO]=null,A[e.AUDIOVIDEO]=null,A),this.baseurl=v}var p=f.prototype;return p.setByteRange=function(A,y){var x=A.split("@",2),C=[];x.length===1?C[0]=y?y.byteRangeEndOffset:0:C[0]=parseInt(x[1]),C[1]=parseInt(x[0])+C[0],this._byteRange=C},s(f,[{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=Object(m.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(A){this._url=A}}]),f}(),l=function(f){i(p,f);function p(A,y){var x;return x=f.call(this,y)||this,x._decryptdata=null,x.rawProgramDateTime=null,x.programDateTime=null,x.tagList=[],x.duration=0,x.sn=0,x.levelkey=void 0,x.type=void 0,x.loader=null,x.level=-1,x.cc=0,x.startPTS=void 0,x.endPTS=void 0,x.appendedPTS=void 0,x.startDTS=void 0,x.endDTS=void 0,x.start=0,x.deltaPTS=void 0,x.maxStartPTS=void 0,x.minEndPTS=void 0,x.stats=new r.LoadStats,x.urlId=0,x.data=void 0,x.bitrateTest=!1,x.title=null,x.initSegment=null,x.type=A,x}var v=p.prototype;return v.createInitializationVector=function(y){for(var x=new Uint8Array(16),C=12;C<16;C++)x[C]=y>>8*(15-C)&255;return x},v.setDecryptDataFromLevelKey=function(y,x){var C=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(C=a.LevelKey.fromURI(y.uri),C.method=y.method,C.iv=this.createInitializationVector(x),C.keyFormat="identity"),C},v.setElementaryStreamInfo=function(y,x,C,w,b,_){_===void 0&&(_=!1);var O=this.elementaryStreams,L=O[y];if(!L){O[y]={startPTS:x,endPTS:C,startDTS:w,endDTS:b,partial:_};return}L.startPTS=Math.min(L.startPTS,x),L.endPTS=Math.max(L.endPTS,C),L.startDTS=Math.min(L.startDTS,w),L.endDTS=Math.max(L.endDTS,b)},v.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[e.AUDIO]=null,y[e.VIDEO]=null,y[e.AUDIOVIDEO]=null},s(p,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&c.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(S.isFiniteNumber)(this.programDateTime))return null;var y=Object(S.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+y*1e3}},{key:"encrypted",get:function(){var y;return!!((y=this.decryptdata)!==null&&y!==void 0&&y.keyFormat&&this.decryptdata.uri)}}]),p}(o),u=function(f){i(p,f);function p(v,A,y,x,C){var w;w=f.call(this,y)||this,w.fragOffset=0,w.duration=0,w.gap=!1,w.independent=!1,w.relurl=void 0,w.fragment=void 0,w.index=void 0,w.stats=new r.LoadStats,w.duration=v.decimalFloatingPoint("DURATION"),w.gap=v.bool("GAP"),w.independent=v.bool("INDEPENDENT"),w.relurl=v.enumeratedString("URI"),w.fragment=A,w.index=x;var b=v.enumeratedString("BYTERANGE");return b&&w.setByteRange(b,C),C&&(w.fragOffset=C.fragOffset+C.duration),w}return s(p,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var A=this.elementaryStreams;return!!(A.audio||A.video||A.audiovideo)}}]),p}(o)},"./src/loader/key-loader.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return c});var S=g("./src/events.ts"),m=g("./src/errors.ts"),h=g("./src/utils/logger.ts"),c=function(){function a(i){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=i,this._registerListeners()}var r=a.prototype;return r._registerListeners=function(){this.hls.on(S.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(S.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var t=this.loaders[n];t&&t.destroy()}this.loaders={}},r.onKeyLoading=function(n,t){var s=t.frag,e=s.type,o=this.loaders[e];if(!s.decryptdata){h.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=s.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var u=this.hls.config;if(o&&(h.logger.warn("abort previous key loader for type:"+e),o.abort()),!l){h.logger.warn("key uri is falsy");return}var f=u.loader,p=s.loader=this.loaders[e]=new f(u);this.decrypturl=l,this.decryptkey=null;var v={url:l,frag:s,responseType:"arraybuffer"},A={timeout:u.fragLoadingTimeOut,maxRetry:0,retryDelay:u.fragLoadingRetryDelay,maxRetryDelay:u.fragLoadingMaxRetryTimeout,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(v,A,y)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(S.Events.KEY_LOADED,{frag:s}))},r.loadsuccess=function(n,t,s){var e=s.frag;if(!e.decryptdata){h.logger.error("after key load, decryptdata unset");return}this.decryptkey=e.decryptdata.key=new Uint8Array(n.data),e.loader=null,delete this.loaders[e.type],this.hls.trigger(S.Events.KEY_LOADED,{frag:e})},r.loaderror=function(n,t){var s=t.frag,e=s.loader;e&&e.abort(),delete this.loaders[s.type],this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},r.loadtimeout=function(n,t){var s=t.frag,e=s.loader;e&&e.abort(),delete this.loaders[s.type],this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},a}()},"./src/loader/level-details.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"LevelDetails",function(){return a});var S=g("./src/polyfills/number.ts");function m(r,i){for(var n=0;n<i.length;n++){var t=i[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function h(r,i,n){return i&&m(r.prototype,i),n&&m(r,n),r}var c=10,a=function(){function r(n){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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,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.fragments=[],this.url=n}var i=r.prototype;return i.reloaded=function(t){if(!t){this.advanced=!0,this.updated=!0;return}var s=this.lastPartSn-t.lastPartSn,e=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!e||!!s,this.advanced=this.endSN>t.endSN||s>0||s===0&&e>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},h(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(S.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||c}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;if(t>0){var s=this.driftEnd-this.driftStart;return s*1e3/t}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return(t=this.fragments)!==null&&t!==void 0&&t.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 t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"LevelKey",function(){return a});var S=g("./node_modules/url-toolkit/src/url-toolkit.js"),m=g.n(S);function h(r,i){for(var n=0;n<i.length;n++){var t=i[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function c(r,i,n){return i&&h(r.prototype,i),n&&h(r,n),r}var a=function(){r.fromURL=function(n,t){return new r(n,t)},r.fromURI=function(n){return new r(n)};function r(i,n){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,n?this._uri=Object(S.buildAbsoluteURL)(i,n,{alwaysNormalize:!0}):this._uri=i}return c(r,[{key:"uri",get:function(){return this._uri}}]),r}()},"./src/loader/load-stats.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"LoadStats",function(){return S});var S=function(){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}}},"./src/loader/m3u8-parser.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return p});var S=g("./src/polyfills/number.ts"),m=g("./node_modules/url-toolkit/src/url-toolkit.js"),h=g.n(m),c=g("./src/loader/fragment.ts"),a=g("./src/loader/level-details.ts"),r=g("./src/loader/level-key.ts"),i=g("./src/utils/attr-list.ts"),n=g("./src/utils/logger.ts"),t=g("./src/utils/codecs.ts"),s=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,e=/#EXT-X-MEDIA:(.*)/g,o=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),l=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),u=/\.(mp4|m4s|m4v|m4a)$/i;function f(C){var w,b;return u.test((w=(b=m.parseURL(C))===null||b===void 0?void 0:b.path)!=null?w:"")}var p=function(){function C(){}return C.findGroup=function(b,_){for(var O=0;O<b.length;O++){var L=b[O];if(L.id===_)return L}},C.convertAVC1ToAVCOTI=function(b){var _=b.split(".");if(_.length>2){var O=_.shift()+".";return O+=parseInt(_.shift()).toString(16),O+=("000"+parseInt(_.shift()).toString(16)).substr(-4),O}return b},C.resolve=function(b,_){return m.buildAbsoluteURL(_,b,{alwaysNormalize:!0})},C.parseMasterPlaylist=function(b,_){var O=[],L={},D=!1;s.lastIndex=0;for(var N;(N=s.exec(b))!=null;)if(N[1]){var M=new i.AttrList(N[1]),F={attrs:M,bitrate:M.decimalInteger("AVERAGE-BANDWIDTH")||M.decimalInteger("BANDWIDTH"),name:M.NAME,url:C.resolve(N[2],_)},R=M.decimalResolution("RESOLUTION");R&&(F.width=R.width,F.height=R.height),v((M.CODECS||"").split(/[ ,]+/).filter(function(B){return B}),F),F.videoCodec&&F.videoCodec.indexOf("avc1")!==-1&&(F.videoCodec=C.convertAVC1ToAVCOTI(F.videoCodec)),O.push(F)}else if(N[3]){var j=new i.AttrList(N[3]);j["DATA-ID"]&&(D=!0,L[j["DATA-ID"]]=j)}return{levels:O,sessionData:D?L:null}},C.parseMasterPlaylistMedia=function(b,_,O,L){L===void 0&&(L=[]);var D,N=[],M=0;for(e.lastIndex=0;(D=e.exec(b))!==null;){var F=new i.AttrList(D[1]);if(F.TYPE===O){var R={attrs:F,bitrate:0,id:M++,groupId:F["GROUP-ID"],instreamId:F["INSTREAM-ID"],name:F.NAME||F.LANGUAGE||"",type:O,default:F.bool("DEFAULT"),autoselect:F.bool("AUTOSELECT"),forced:F.bool("FORCED"),lang:F.LANGUAGE,url:F.URI?C.resolve(F.URI,_):""};if(L.length){var j=C.findGroup(L,R.groupId)||L[0];A(R,j,"audioCodec"),A(R,j,"textCodec")}N.push(R)}}return N},C.parseLevelPlaylist=function(b,_,O,L,D){var N=new a.LevelDetails(_),M=N.fragments,F=null,R=0,j=0,B=0,K=0,U=null,z=new c.Fragment(L,_),V,Y,J,se=-1,$=!1;for(o.lastIndex=0,N.m3u8=b;(V=o.exec(b))!==null;){$&&($=!1,z=new c.Fragment(L,_),z.start=B,z.sn=R,z.cc=K,z.level=O,F&&(z.initSegment=F,z.rawProgramDateTime=F.rawProgramDateTime));var ae=V[1];if(ae){z.duration=parseFloat(ae);var ge=(" "+V[2]).slice(1);z.title=ge||null,z.tagList.push(ge?["INF",ae,ge]:["INF",ae])}else if(V[3])Object(S.isFiniteNumber)(z.duration)&&(z.start=B,J&&(z.levelkey=J),z.sn=R,z.level=O,z.cc=K,z.urlId=D,M.push(z),z.relurl=(" "+V[3]).slice(1),x(z,U),U=z,B+=z.duration,R++,j=0,$=!0);else if(V[4]){var pe=(" "+V[4]).slice(1);U?z.setByteRange(pe,U):z.setByteRange(pe)}else if(V[5])z.rawProgramDateTime=(" "+V[5]).slice(1),z.tagList.push(["PROGRAM-DATE-TIME",z.rawProgramDateTime]),se===-1&&(se=M.length);else{if(V=V[0].match(l),!V){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Y=1;Y<V.length&&!(typeof V[Y]!="undefined");Y++);var Ne=(" "+V[Y]).slice(1),de=(" "+V[Y+1]).slice(1),Le=V[Y+2]?(" "+V[Y+2]).slice(1):"";switch(Ne){case"PLAYLIST-TYPE":N.type=de.toUpperCase();break;case"MEDIA-SEQUENCE":R=N.startSN=parseInt(de);break;case"SKIP":{var Q=new i.AttrList(de),ce=Q.decimalInteger("SKIPPED-SEGMENTS");if(Object(S.isFiniteNumber)(ce)){N.skippedSegments=ce;for(var Ke=ce;Ke--;)M.unshift(null);R+=ce}var ee=Q.enumeratedString("RECENTLY-REMOVED-DATERANGES");ee&&(N.recentlyRemovedDateranges=ee.split(" "));break}case"TARGETDURATION":N.targetduration=parseFloat(de);break;case"VERSION":N.version=parseInt(de);break;case"EXTM3U":break;case"ENDLIST":N.live=!1;break;case"#":(de||Le)&&z.tagList.push(Le?[de,Le]:[de]);break;case"DIS":K++;case"GAP":z.tagList.push([Ne]);break;case"BITRATE":z.tagList.push([Ne,de]);break;case"DISCONTINUITY-SEQ":K=parseInt(de);break;case"KEY":{var X,G=new i.AttrList(de),Z=G.enumeratedString("METHOD"),ve=G.URI,ue=G.hexadecimalInteger("IV"),_e=G.enumeratedString("KEYFORMATVERSIONS"),xe=G.enumeratedString("KEYID"),oe=(X=G.enumeratedString("KEYFORMAT"))!=null?X:"identity",fe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(fe.indexOf(oe)>-1){n.logger.warn("Keyformat "+oe+" is not supported from the manifest");continue}else if(oe!=="identity")continue;Z&&(J=r.LevelKey.fromURL(_,ve),ve&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Z)>=0&&(J.method=Z,J.keyFormat=oe,xe&&(J.keyID=xe),_e&&(J.keyFormatVersions=_e),J.iv=ue));break}case"START":{var Te=new i.AttrList(de),ze=Te.decimalFloatingPoint("TIME-OFFSET");Object(S.isFiniteNumber)(ze)&&(N.startTimeOffset=ze);break}case"MAP":{var it=new i.AttrList(de);z.relurl=it.URI,it.BYTERANGE&&z.setByteRange(it.BYTERANGE),z.level=O,z.sn="initSegment",J&&(z.levelkey=J),z.initSegment=null,F=z,$=!0;break}case"SERVER-CONTROL":{var et=new i.AttrList(de);N.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),N.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),N.canSkipDateRanges=N.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),N.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),N.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new i.AttrList(de);N.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var gt=N.partList;gt||(gt=N.partList=[]);var Ge=j>0?gt[gt.length-1]:void 0,wt=j++,xt=new c.Part(new i.AttrList(de),z,_,wt,Ge);gt.push(xt),z.duration+=xt.duration;break}case"PRELOAD-HINT":{var Ct=new i.AttrList(de);N.preloadHint=Ct;break}case"RENDITION-REPORT":{var Dt=new i.AttrList(de);N.renditionReports=N.renditionReports||[],N.renditionReports.push(Dt);break}default:n.logger.warn("line parsed but not handled: "+V);break}}}U&&!U.relurl?(M.pop(),B-=U.duration,N.partList&&(N.fragmentHint=U)):N.partList&&(x(z,U),z.cc=K,N.fragmentHint=z);var Ht=M.length,Je=M[0],ye=M[Ht-1];if(B+=N.skippedSegments*N.targetduration,B>0&&Ht&&ye){N.averagetargetduration=B/Ht;var ie=ye.sn;N.endSN=ie!=="initSegment"?ie:0,Je&&(N.startCC=Je.cc,Je.initSegment||N.fragments.every(function(bt){return bt.relurl&&f(bt.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),z=new c.Fragment(L,_),z.relurl=ye.relurl,z.level=O,z.sn="initSegment",Je.initSegment=z,N.needSidxRanges=!0))}else N.endSN=0,N.startCC=0;return N.fragmentHint&&(B+=N.fragmentHint.duration),N.totalduration=B,N.endCC=K,se>0&&y(M,se),N},C}();function v(C,w){["video","audio","text"].forEach(function(b){var _=C.filter(function(L){return Object(t.isCodecType)(L,b)});if(_.length){var O=_.filter(function(L){return L.lastIndexOf("avc1",0)===0||L.lastIndexOf("mp4a",0)===0});w[b+"Codec"]=O.length>0?O[0]:_[0],C=C.filter(function(L){return _.indexOf(L)===-1})}}),w.unknownCodecs=C}function A(C,w,b){var _=w[b];_&&(C[b]=_)}function y(C,w){for(var b=C[w],_=w;_--;){var O=C[_];if(!O)return;O.programDateTime=b.programDateTime-O.duration*1e3,b=O}}function x(C,w){C.rawProgramDateTime?C.programDateTime=Date.parse(C.rawProgramDateTime):w!=null&&w.programDateTime&&(C.programDateTime=w.endProgramDateTime),Object(S.isFiniteNumber)(C.programDateTime)||(C.programDateTime=null,C.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/polyfills/number.ts"),m=g("./src/events.ts"),h=g("./src/errors.ts"),c=g("./src/utils/logger.ts"),a=g("./src/utils/mp4-tools.ts"),r=g("./src/loader/m3u8-parser.ts"),i=g("./src/types/loader.ts"),n=g("./src/utils/attr-list.ts");function t(o){var l=o.type;switch(l){case i.PlaylistContextType.AUDIO_TRACK:return i.PlaylistLevelType.AUDIO;case i.PlaylistContextType.SUBTITLE_TRACK:return i.PlaylistLevelType.SUBTITLE;default:return i.PlaylistLevelType.MAIN}}function s(o,l){var u=o.url;return(u===void 0||u.indexOf("data:")===0)&&(u=l.url),u}var e=function(){function o(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var l=o.prototype;return l.registerListeners=function(){var f=this.hls;f.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(m.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.on(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var f=this.hls;f.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(m.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.off(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(f){var p=this.hls.config,v=p.pLoader,A=p.loader,y=v||A,x=new y(p);return f.loader=x,this.loaders[f.type]=x,x},l.getInternalLoader=function(f){return this.loaders[f.type]},l.resetInternalLoader=function(f){this.loaders[f]&&delete this.loaders[f]},l.destroyInternalLoaders=function(){for(var f in this.loaders){var p=this.loaders[f];p&&p.destroy(),this.resetInternalLoader(f)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(f,p){var v=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:i.PlaylistContextType.MANIFEST,url:v,deliveryDirectives:null})},l.onLevelLoading=function(f,p){var v=p.id,A=p.level,y=p.url,x=p.deliveryDirectives;this.load({id:v,groupId:null,level:A,responseType:"text",type:i.PlaylistContextType.LEVEL,url:y,deliveryDirectives:x})},l.onAudioTrackLoading=function(f,p){var v=p.id,A=p.groupId,y=p.url,x=p.deliveryDirectives;this.load({id:v,groupId:A,level:null,responseType:"text",type:i.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:x})},l.onSubtitleTrackLoading=function(f,p){var v=p.id,A=p.groupId,y=p.url,x=p.deliveryDirectives;this.load({id:v,groupId:A,level:null,responseType:"text",type:i.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:x})},l.load=function(f){var p,v=this.hls.config,A=this.getInternalLoader(f);if(A){var y=A.context;if(y&&y.url===f.url){c.logger.trace("[playlist-loader]: playlist request ongoing");return}c.logger.log("[playlist-loader]: aborting previous loader for type: "+f.type),A.abort()}var x,C,w,b;switch(f.type){case i.PlaylistContextType.MANIFEST:x=v.manifestLoadingMaxRetry,C=v.manifestLoadingTimeOut,w=v.manifestLoadingRetryDelay,b=v.manifestLoadingMaxRetryTimeout;break;case i.PlaylistContextType.LEVEL:case i.PlaylistContextType.AUDIO_TRACK:case i.PlaylistContextType.SUBTITLE_TRACK:x=0,C=v.levelLoadingTimeOut;break;default:x=v.levelLoadingMaxRetry,C=v.levelLoadingTimeOut,w=v.levelLoadingRetryDelay,b=v.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(f),(p=f.deliveryDirectives)!==null&&p!==void 0&&p.part){var _;if(f.type===i.PlaylistContextType.LEVEL&&f.level!==null?_=this.hls.levels[f.level].details:f.type===i.PlaylistContextType.AUDIO_TRACK&&f.id!==null?_=this.hls.audioTracks[f.id].details:f.type===i.PlaylistContextType.SUBTITLE_TRACK&&f.id!==null&&(_=this.hls.subtitleTracks[f.id].details),_){var O=_.partTarget,L=_.targetduration;O&&L&&(C=Math.min(Math.max(O*3,L*.8)*1e3,C))}}var D={timeout:C,maxRetry:x,retryDelay:w,maxRetryDelay:b,highWaterMark:0},N={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};A.load(f,D,N)},l.loadsuccess=function(f,p,v,A){if(A===void 0&&(A=null),v.isSidxRequest){this.handleSidxRequest(f,v),this.handlePlaylistLoaded(f,p,v,A);return}this.resetInternalLoader(v.type);var y=f.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(f,v,"no EXTM3U delimiter",A);return}p.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(f,p,v,A):this.handleMasterPlaylist(f,p,v,A)},l.loaderror=function(f,p,v){v===void 0&&(v=null),this.handleNetworkError(p,v,!1,f)},l.loadtimeout=function(f,p,v){v===void 0&&(v=null),this.handleNetworkError(p,v,!0)},l.handleMasterPlaylist=function(f,p,v,A){var y=this.hls,x=f.data,C=s(f,v),w=r.default.parseMasterPlaylist(x,C),b=w.levels,_=w.sessionData;if(!b.length){this.handleManifestParsingError(f,v,"no level found in manifest",A);return}var O=b.map(function(R){return{id:R.attrs.AUDIO,audioCodec:R.audioCodec}}),L=b.map(function(R){return{id:R.attrs.SUBTITLES,textCodec:R.textCodec}}),D=r.default.parseMasterPlaylistMedia(x,C,"AUDIO",O),N=r.default.parseMasterPlaylistMedia(x,C,"SUBTITLES",L),M=r.default.parseMasterPlaylistMedia(x,C,"CLOSED-CAPTIONS");if(D.length){var F=D.some(function(R){return!R.url});!F&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(c.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}y.trigger(m.Events.MANIFEST_LOADED,{levels:b,audioTracks:D,subtitles:N,captions:M,url:C,stats:p,networkDetails:A,sessionData:_})},l.handleTrackOrLevelPlaylist=function(f,p,v,A){var y=this.hls,x=v.id,C=v.level,w=v.type,b=s(f,v),_=Object(S.isFiniteNumber)(x)?x:0,O=Object(S.isFiniteNumber)(C)?C:_,L=t(v),D=r.default.parseLevelPlaylist(f.data,b,O,L,_);if(!D.fragments.length){y.trigger(m.Events.ERROR,{type:h.ErrorTypes.NETWORK_ERROR,details:h.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:b,reason:"no fragments found in level",level:typeof v.level=="number"?v.level:void 0});return}if(w===i.PlaylistContextType.MANIFEST){var N={attrs:new n.AttrList({}),bitrate:0,details:D,name:"",url:b};y.trigger(m.Events.MANIFEST_LOADED,{levels:[N],audioTracks:[],url:b,stats:p,networkDetails:A,sessionData:null})}if(p.parsing.end=performance.now(),D.needSidxRanges){var M,F=(M=D.fragments[0].initSegment)===null||M===void 0?void 0:M.url;this.load({url:F,isSidxRequest:!0,type:w,level:C,levelDetails:D,id:x,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}v.levelDetails=D,this.handlePlaylistLoaded(f,p,v,A)},l.handleSidxRequest=function(f,p){var v=Object(a.parseSegmentIndex)(new Uint8Array(f.data));if(!v)return;var A=v.references,y=p.levelDetails;A.forEach(function(x,C){var w=x.info,b=y.fragments[C];b.byteRange.length===0&&b.setByteRange(String(1+w.end-w.start)+"@"+String(w.start)),b.initSegment&&b.initSegment.setByteRange(String(v.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(f,p,v,A){this.hls.trigger(m.Events.ERROR,{type:h.ErrorTypes.NETWORK_ERROR,details:h.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:p.type===i.PlaylistContextType.MANIFEST,url:f.url,reason:v,response:f,context:p,networkDetails:A})},l.handleNetworkError=function(f,p,v,A){v===void 0&&(v=!1),c.logger.warn("[playlist-loader]: A network "+(v?"timeout":"error")+" occurred while loading "+f.type+" level: "+f.level+" id: "+f.id+' group-id: "'+f.groupId+'"');var y=h.ErrorDetails.UNKNOWN,x=!1,C=this.getInternalLoader(f);switch(f.type){case i.PlaylistContextType.MANIFEST:y=v?h.ErrorDetails.MANIFEST_LOAD_TIMEOUT:h.ErrorDetails.MANIFEST_LOAD_ERROR,x=!0;break;case i.PlaylistContextType.LEVEL:y=v?h.ErrorDetails.LEVEL_LOAD_TIMEOUT:h.ErrorDetails.LEVEL_LOAD_ERROR,x=!1;break;case i.PlaylistContextType.AUDIO_TRACK:y=v?h.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:h.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,x=!1;break;case i.PlaylistContextType.SUBTITLE_TRACK:y=v?h.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:h.ErrorDetails.SUBTITLE_LOAD_ERROR,x=!1;break}C&&this.resetInternalLoader(f.type);var w={type:h.ErrorTypes.NETWORK_ERROR,details:y,fatal:x,url:f.url,loader:C,context:f,networkDetails:p};A&&(w.response=A),this.hls.trigger(m.Events.ERROR,w)},l.handlePlaylistLoaded=function(f,p,v,A){var y=v.type,x=v.level,C=v.id,w=v.groupId,b=v.loader,_=v.levelDetails,O=v.deliveryDirectives;if(!(_!=null&&_.targetduration)){this.handleManifestParsingError(f,v,"invalid target duration",A);return}if(!b)return;_.live&&(b.getCacheAge&&(_.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(_.ageHeader))&&(_.ageHeader=0));switch(y){case i.PlaylistContextType.MANIFEST:case i.PlaylistContextType.LEVEL:this.hls.trigger(m.Events.LEVEL_LOADED,{details:_,level:x||0,id:C||0,stats:p,networkDetails:A,deliveryDirectives:O});break;case i.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(m.Events.AUDIO_TRACK_LOADED,{details:_,id:C||0,groupId:w||"",stats:p,networkDetails:A,deliveryDirectives:O});break;case i.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(m.Events.SUBTITLE_TRACK_LOADED,{details:_,id:C||0,groupId:w||"",stats:p,networkDetails:A,deliveryDirectives:O});break}},o}();T.default=e},"./src/polyfills/number.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"isFiniteNumber",function(){return S}),g.d(T,"MAX_SAFE_INTEGER",function(){return m});var S=Number.isFinite||function(h){return typeof h=="number"&&isFinite(h)},m=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(E,T,g){"use strict";g.r(T);var S=function(){function m(){}return m.getSilentFrame=function(c,a){switch(c){case"mp4a.40.2":if(a===1)return new Uint8Array([0,200,0,128,35,128]);if(a===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(a===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(a===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(a===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(a===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(a===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(a===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(a===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},m}();T.default=S},"./src/remux/mp4-generator.ts":function(E,T,g){"use strict";g.r(T);var S=Math.pow(2,32)-1,m=function(){function h(){}return h.init=function(){h.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 a;for(a in h.types)h.types.hasOwnProperty(a)&&(h.types[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]);var r=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]),i=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]);h.HDLR_TYPES={video:r,audio:i};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),t=new Uint8Array([0,0,0,0,0,0,0,0]);h.STTS=h.STSC=h.STCO=t,h.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),h.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),h.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),h.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),e=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);h.FTYP=h.box(h.types.ftyp,s,o,s,e),h.DINF=h.box(h.types.dinf,h.box(h.types.dref,n))},h.box=function(a){for(var r=8,i=arguments.length,n=new Array(i>1?i-1:0),t=1;t<i;t++)n[t-1]=arguments[t];for(var s=n.length,e=s;s--;)r+=n[s].byteLength;var o=new Uint8Array(r);for(o[0]=r>>24&255,o[1]=r>>16&255,o[2]=r>>8&255,o[3]=r&255,o.set(a,4),s=0,r=8;s<e;s++)o.set(n[s],r),r+=n[s].byteLength;return o},h.hdlr=function(a){return h.box(h.types.hdlr,h.HDLR_TYPES[a])},h.mdat=function(a){return h.box(h.types.mdat,a)},h.mdhd=function(a,r){r*=a;var i=Math.floor(r/(S+1)),n=Math.floor(r%(S+1));return h.box(h.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},h.mdia=function(a){return h.box(h.types.mdia,h.mdhd(a.timescale,a.duration),h.hdlr(a.type),h.minf(a))},h.mfhd=function(a){return h.box(h.types.mfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255]))},h.minf=function(a){return a.type==="audio"?h.box(h.types.minf,h.box(h.types.smhd,h.SMHD),h.DINF,h.stbl(a)):h.box(h.types.minf,h.box(h.types.vmhd,h.VMHD),h.DINF,h.stbl(a))},h.moof=function(a,r,i){return h.box(h.types.moof,h.mfhd(a),h.traf(i,r))},h.moov=function(a){for(var r=a.length,i=[];r--;)i[r]=h.trak(a[r]);return h.box.apply(null,[h.types.moov,h.mvhd(a[0].timescale,a[0].duration)].concat(i).concat(h.mvex(a)))},h.mvex=function(a){for(var r=a.length,i=[];r--;)i[r]=h.trex(a[r]);return h.box.apply(null,[h.types.mvex].concat(i))},h.mvhd=function(a,r){r*=a;var i=Math.floor(r/(S+1)),n=Math.floor(r%(S+1)),t=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&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 h.box(h.types.mvhd,t)},h.sdtp=function(a){var r=a.samples||[],i=new Uint8Array(4+r.length),n,t;for(n=0;n<r.length;n++)t=r[n].flags,i[n+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return h.box(h.types.sdtp,i)},h.stbl=function(a){return h.box(h.types.stbl,h.stsd(a),h.box(h.types.stts,h.STTS),h.box(h.types.stsc,h.STSC),h.box(h.types.stsz,h.STSZ),h.box(h.types.stco,h.STCO))},h.avc1=function(a){var r=[],i=[],n,t,s;for(n=0;n<a.sps.length;n++)t=a.sps[n],s=t.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(t));for(n=0;n<a.pps.length;n++)t=a.pps[n],s=t.byteLength,i.push(s>>>8&255),i.push(s&255),i=i.concat(Array.prototype.slice.call(t));var e=h.box(h.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|a.sps.length].concat(r).concat([a.pps.length]).concat(i))),o=a.width,l=a.height,u=a.pixelRatio[0],f=a.pixelRatio[1];return h.box(h.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,o>>8&255,o&255,l>>8&255,l&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]),e,h.box(h.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),h.box(h.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,f>>24,f>>16&255,f>>8&255,f&255])))},h.esds=function(a){var r=a.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(a.config).concat([6,1,2]))},h.mp4a=function(a){var r=a.samplerate;return h.box(h.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),h.box(h.types.esds,h.esds(a)))},h.mp3=function(a){var r=a.samplerate;return h.box(h.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},h.stsd=function(a){return a.type==="audio"?!a.isAAC&&a.codec==="mp3"?h.box(h.types.stsd,h.STSD,h.mp3(a)):h.box(h.types.stsd,h.STSD,h.mp4a(a)):h.box(h.types.stsd,h.STSD,h.avc1(a))},h.tkhd=function(a){var r=a.id,i=a.duration*a.timescale,n=a.width,t=a.height,s=Math.floor(i/(S+1)),e=Math.floor(i%(S+1));return h.box(h.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,e>>24,e>>16&255,e>>8&255,e&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,n>>8&255,n&255,0,0,t>>8&255,t&255,0,0]))},h.traf=function(a,r){var i=h.sdtp(a),n=a.id,t=Math.floor(r/(S+1)),s=Math.floor(r%(S+1));return h.box(h.types.traf,h.box(h.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),h.box(h.types.tfdt,new Uint8Array([1,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,s>>24,s>>16&255,s>>8&255,s&255])),h.trun(a,i.length+16+20+8+16+8+8),i)},h.trak=function(a){return a.duration=a.duration||4294967295,h.box(h.types.trak,h.tkhd(a),h.mdia(a))},h.trex=function(a){var r=a.id;return h.box(h.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},h.trun=function(a,r){var i=a.samples||[],n=i.length,t=12+16*n,s=new Uint8Array(t),e,o,l,u,f,p;for(r+=8+t,s.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),e=0;e<n;e++)o=i[e],l=o.duration,u=o.size,f=o.flags,p=o.cts,s.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,f.degradPrio&240<<8,f.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*e);return h.box(h.types.trun,s)},h.initSegment=function(a){h.types||h.init();var r=h.moov(a),i=new Uint8Array(h.FTYP.byteLength+r.byteLength);return i.set(h.FTYP),i.set(r,h.FTYP.byteLength),i},h}();m.types=void 0,m.HDLR_TYPES=void 0,m.STTS=void 0,m.STSC=void 0,m.STCO=void 0,m.STSZ=void 0,m.VMHD=void 0,m.SMHD=void 0,m.STSD=void 0,m.FTYP=void 0,m.DINF=void 0,T.default=m},"./src/remux/mp4-remuxer.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return p}),g.d(T,"normalizePts",function(){return v});var S=g("./src/polyfills/number.ts"),m=g("./src/remux/aac-helper.ts"),h=g("./src/remux/mp4-generator.ts"),c=g("./src/events.ts"),a=g("./src/errors.ts"),r=g("./src/utils/logger.ts"),i=g("./src/types/loader.ts"),n=g("./src/utils/timescale-conversion.ts");function t(){return t=Object.assign||function(C){for(var w=1;w<arguments.length;w++){var b=arguments[w];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(C[_]=b[_])}return C},t.apply(this,arguments)}var s=10*1e3,e=1024,o=1152,l=null,u=null,f=!1,p=function(){function C(b,_,O,L){if(L===void 0&&(L=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=b,this.config=_,this.typeSupported=O,this.ISGenerated=!1,l===null){var D=navigator.userAgent||"",N=D.match(/Chrome\/(\d+)/i);l=N?parseInt(N[1]):0}if(u===null){var M=navigator.userAgent.match(/Safari\/(\d+)/i);u=M?parseInt(M[1]):0}f=!!l&&l<75||!!u&&u<600}var w=C.prototype;return w.destroy=function(){},w.resetTimeStamp=function(_){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=_},w.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},w.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},w.getVideoStartPts=function(_){var O=!1,L=_.reduce(function(D,N){var M=N.pts-D;return M<-4294967296?(O=!0,v(D,N.pts)):M>0?D:N.pts},_[0].pts);return O&&r.logger.debug("PTS rollover detected"),L},w.remux=function(_,O,L,D,N,M,F,R){var j,B,K,U,z,V,Y=N,J=N,se=_.pid>-1,$=O.pid>-1,ae=O.samples.length,ge=_.samples.length>0,pe=ae>1,Ne=(!se||ge)&&(!$||pe)||this.ISGenerated||F;if(Ne){this.ISGenerated||(K=this.generateIS(_,O,N));var de=this.isVideoContiguous,Le=-1;if(pe&&(Le=A(O.samples),!de&&this.config.forceKeyFrameOnDiscontinuity))if(V=!0,Le>0){r.logger.warn("[mp4-remuxer]: Dropped "+Le+" out of "+ae+" video samples due to a missing keyframe");var Q=this.getVideoStartPts(O.samples);O.samples=O.samples.slice(Le),O.dropped+=Le,J+=(O.samples[0].pts-Q)/(O.timescale||9e4)}else Le===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+ae+" video samples"),V=!1);if(this.ISGenerated){if(ge&&pe){var ce=this.getVideoStartPts(O.samples),Ke=v(_.samples[0].pts,ce)-ce,ee=Ke/O.inputTimeScale;Y+=Math.max(0,ee),J+=Math.max(0,-ee)}if(ge){if(_.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),K=this.generateIS(_,O,N)),B=this.remuxAudio(_,Y,this.isAudioContiguous,M,$||pe||R===i.PlaylistLevelType.AUDIO?J:void 0),pe){var X=B?B.endPTS-B.startPTS:0;O.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),K=this.generateIS(_,O,N)),j=this.remuxVideo(O,J,de,X)}}else pe&&(j=this.remuxVideo(O,J,de,0));j&&(j.firstKeyFrame=Le,j.independent=Le!==-1)}}return this.ISGenerated&&(L.samples.length&&(z=this.remuxID3(L,N)),D.samples.length&&(U=this.remuxText(D,N))),{audio:B,video:j,initSegment:K,independent:V,text:U,id3:z}},w.generateIS=function(_,O,L){var D=_.samples,N=O.samples,M=this.typeSupported,F={},R=!Object(S.isFiniteNumber)(this._initPTS),j="audio/mp4",B,K,U;if(R&&(B=K=Infinity),_.config&&D.length&&(_.timescale=_.samplerate,_.isAAC||(M.mpeg?(j="audio/mpeg",_.codec=""):M.mp3&&(_.codec="mp3")),F.audio={id:"audio",container:j,codec:_.codec,initSegment:!_.isAAC&&M.mpeg?new Uint8Array(0):h.default.initSegment([_]),metadata:{channelCount:_.channelCount}},R&&(U=_.inputTimeScale,B=K=D[0].pts-Math.round(U*L))),O.sps&&O.pps&&N.length&&(O.timescale=O.inputTimeScale,F.video={id:"main",container:"video/mp4",codec:O.codec,initSegment:h.default.initSegment([O]),metadata:{width:O.width,height:O.height}},R)){U=O.inputTimeScale;var z=this.getVideoStartPts(N),V=Math.round(U*L);K=Math.min(K,v(N[0].dts,z)-V),B=Math.min(B,z-V)}if(Object.keys(F).length)return this.ISGenerated=!0,R&&(this._initPTS=B,this._initDTS=K),{tracks:F,initPTS:B,timescale:U}},w.remuxVideo=function(_,O,L,D){var N=_.inputTimeScale,M=_.samples,F=[],R=M.length,j=this._initPTS,B=this.nextAvcDts,K=8,U,z,V,Y=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,se=0,$=!1;if(!L||B===null){var ae=O*N,ge=M[0].pts-v(M[0].dts,M[0].pts);B=ae-ge}for(var pe=0;pe<R;pe++){var Ne=M[pe];if(Ne.pts=v(Ne.pts-j,B),Ne.dts=v(Ne.dts-j,B),Ne.dts>Ne.pts){var de=9e4*.2;se=Math.max(Math.min(se,Ne.pts-Ne.dts),-1*de)}Ne.dts<M[pe>0?pe-1:pe].dts&&($=!0)}$&&M.sort(function(Kr,ar){var nr=Kr.dts-ar.dts,Lt=Kr.pts-ar.pts;return nr||Lt}),z=M[0].dts,V=M[M.length-1].dts;var Le=Math.round((V-z)/(R-1));if(se<0){if(se<Le*-2){r.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-Le,!0)+" ms");for(var Q=se,ce=0;ce<R;ce++)M[ce].dts=Q=Math.max(Q,M[ce].pts-Le),M[ce].pts=Math.max(Q,M[ce].pts)}else{r.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(se,!0)+" ms to overcome this issue");for(var Ke=0;Ke<R;Ke++)M[Ke].dts=M[Ke].dts+se}z=M[0].dts}if(L){var ee=z-B,X=ee>Le,G=ee<-1;if(X||G){X?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ee,!0)+" ms ("+ee+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ee,!0)+" ms ("+ee+"dts) overlapping between fragments detected"),z=B;var Z=M[0].pts-ee;M[0].dts=z,M[0].pts=Z,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Z,!0)+"/"+Object(n.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ee,!0)+" ms")}}f&&(z=Math.max(0,z));for(var ve=0,ue=0,_e=0;_e<R;_e++){for(var xe=M[_e],oe=xe.units,fe=oe.length,Te=0,ze=0;ze<fe;ze++)Te+=oe[ze].data.length;ue+=Te,ve+=fe,xe.length=Te,xe.dts=Math.max(xe.dts,z),xe.pts=Math.max(xe.pts,xe.dts,0),Y=Math.min(xe.pts,Y),J=Math.max(xe.pts,J)}V=M[R-1].dts;var it=ue+4*ve+8,et;try{et=new Uint8Array(it)}catch(Kr){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:a.ErrorTypes.MUX_ERROR,details:a.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:it,reason:"fail allocating video mdat "+it});return}var Oe=new DataView(et.buffer);Oe.setUint32(0,it),et.set(h.default.types.mdat,4);for(var gt=0;gt<R;gt++){for(var Ge=M[gt],wt=Ge.units,xt=0,Ct=0,Dt=wt.length;Ct<Dt;Ct++){var Ht=wt[Ct],Je=Ht.data,ye=Ht.data.byteLength;Oe.setUint32(K,ye),K+=4,et.set(Je,K),K+=ye,xt+=4+ye}if(gt<R-1)U=M[gt+1].dts-Ge.dts;else{var ie=this.config,bt=Ge.dts-M[gt>0?gt-1:gt].dts;if(ie.stretchShortVideoTrack&&this.nextAudioPts!==null){var qe=Math.floor(ie.maxBufferHole*N),me=(D?Y+D*N:this.nextAudioPts)-Ge.pts;me>qe?(U=me-bt,U<0&&(U=bt),r.logger.log("[mp4-remuxer]: It is approximately "+me/90+" ms to the next segment; using duration "+U/90+" ms for the last video frame.")):U=bt}else U=bt}var Rt=Math.round(Ge.pts-Ge.dts);F.push(new y(Ge.key,U,xt,Rt))}if(F.length&&l&&l<70){var er=F[0].flags;er.dependsOn=2,er.isNonSync=0}console.assert(U!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=B=V+U,this.isVideoContiguous=!0;var ct=h.default.moof(_.sequenceNumber++,z,t({},_,{samples:F})),zt="video",sr={data1:ct,data2:et,startPTS:Y/N,endPTS:(J+U)/N,startDTS:z/N,endDTS:B/N,type:zt,hasAudio:!1,hasVideo:!0,nb:F.length,dropped:_.dropped};return _.samples=[],_.dropped=0,console.assert(et.length,"MDAT length must not be zero"),sr},w.remuxAudio=function(_,O,L,D,N){var M=_.inputTimeScale,F=_.samplerate?_.samplerate:M,R=M/F,j=_.isAAC?e:o,B=j*R,K=this._initPTS,U=!_.isAAC&&this.typeSupported.mpeg,z=[],V=_.samples,Y=U?0:8,J=this.nextAudioPts||-1,se=O*M;if(this.isAudioContiguous=L=L||V.length&&J>0&&(D&&Math.abs(se-J)<9e3||Math.abs(v(V[0].pts-K,se)-J)<20*B),V.forEach(function(Je){Je.pts=v(Je.pts-K,se)}),!L||J<0){if(V=V.filter(function(Je){return Je.pts>=0}),!V.length)return;N===0?J=0:D?J=Math.max(0,se):J=V[0].pts}if(_.isAAC)for(var $=N!==void 0,ae=this.config.maxAudioFramesDrift,ge=0,pe=J;ge<V.length;ge++){var Ne=V[ge],de=Ne.pts,Le=de-pe,Q=Math.abs(1e3*Le/M);if(Le<=-ae*B&&$)ge===0&&(r.logger.warn("Audio frame @ "+(de/M).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*Le/M)+" ms."),this.nextAudioPts=J=pe=de);else if(Le>=ae*B&&Q<s&&$){var ce=Math.round(Le/B);pe=de-ce*B,pe<0&&(ce--,pe+=B),ge===0&&(this.nextAudioPts=J=pe),r.logger.warn("[mp4-remuxer]: Injecting "+ce+" audio frame @ "+(pe/M).toFixed(3)+"s due to "+Math.round(1e3*Le/M)+" ms gap.");for(var Ke=0;Ke<ce;Ke++){var ee=Math.max(pe,0),X=m.default.getSilentFrame(_.manifestCodec||_.codec,_.channelCount);X||(r.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),X=Ne.unit.subarray()),V.splice(ge,0,{unit:X,pts:ee}),pe+=B,ge++}}Ne.pts=pe,pe+=B}for(var G=null,Z=null,ve,ue=0,_e=V.length;_e--;)ue+=V[_e].unit.byteLength;for(var xe=0,oe=V.length;xe<oe;xe++){var fe=V[xe],Te=fe.unit,ze=fe.pts;if(Z!==null){var it=z[xe-1];it.duration=Math.round((ze-Z)/R)}else if(L&&_.isAAC&&(ze=J),G=ze,ue>0){ue+=Y;try{ve=new Uint8Array(ue)}catch(Je){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:a.ErrorTypes.MUX_ERROR,details:a.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ue,reason:"fail allocating audio mdat "+ue});return}if(!U){var et=new DataView(ve.buffer);et.setUint32(0,ue),ve.set(h.default.types.mdat,4)}}else return;ve.set(Te,Y);var Oe=Te.byteLength;Y+=Oe,z.push(new y(!0,j,Oe,0)),Z=ze}var gt=z.length;if(!gt)return;var Ge=z[z.length-1];this.nextAudioPts=J=Z+R*Ge.duration;var wt=U?new Uint8Array(0):h.default.moof(_.sequenceNumber++,G/R,t({},_,{samples:z}));_.samples=[];var xt=G/M,Ct=J/M,Dt="audio",Ht={data1:wt,data2:ve,startPTS:xt,endPTS:Ct,startDTS:xt,endDTS:Ct,type:Dt,hasAudio:!0,hasVideo:!1,nb:gt};return this.isAudioContiguous=!0,console.assert(ve.length,"MDAT length must not be zero"),Ht},w.remuxEmptyAudio=function(_,O,L,D){var N=_.inputTimeScale,M=_.samplerate?_.samplerate:N,F=N/M,R=this.nextAudioPts,j=(R!==null?R:D.startDTS*N)+this._initDTS,B=D.endDTS*N+this._initDTS,K=F*e,U=Math.ceil((B-j)/K),z=m.default.getSilentFrame(_.manifestCodec||_.codec,_.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var V=[],Y=0;Y<U;Y++){var J=j+Y*K;V.push({unit:z,pts:J,dts:J})}return _.samples=V,this.remuxAudio(_,O,L,!1)},w.remuxID3=function(_,O){var L=_.samples.length;if(!L)return;for(var D=_.inputTimeScale,N=this._initPTS,M=this._initDTS,F=0;F<L;F++){var R=_.samples[F];R.pts=v(R.pts-N,O*D)/D,R.dts=v(R.dts-M,O*D)/D}var j=_.samples;return _.samples=[],{samples:j}},w.remuxText=function(_,O){var L=_.samples.length;if(!L)return;for(var D=_.inputTimeScale,N=this._initPTS,M=0;M<L;M++){var F=_.samples[M];F.pts=v(F.pts-N,O*D)/D}_.samples.sort(function(j,B){return j.pts-B.pts});var R=_.samples;return _.samples=[],{samples:R}},C}();function v(C,w){var b;if(w===null)return C;for(w<C?b=-8589934592:b=8589934592;Math.abs(C-w)>4294967296;)C+=b;return C}function A(C){for(var w=0;w<C.length;w++)if(C[w].key)return w;return-1}var y=function(w,b,_,O){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=b,this.size=_,this.cts=O,this.flags=new x(w)},x=function(w){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=w?2:1,this.isNonSync=w?0:1}},"./src/remux/passthrough-remuxer.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/polyfills/number.ts"),m=g("./src/utils/mp4-tools.ts"),h=g("./src/loader/fragment.ts"),c=g("./src/utils/logger.ts"),a=function(){function n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var t=n.prototype;return t.destroy=function(){},t.resetTimeStamp=function(e){this.initPTS=e,this.lastEndDTS=null},t.resetNextTimestamp=function(){this.lastEndDTS=null},t.resetInitSegment=function(e,o,l){this.audioCodec=o,this.videoCodec=l,this.generateInitSegment(e),this.emitInitSegment=!0},t.generateInitSegment=function(e){var o=this.audioCodec,l=this.videoCodec;if(!e||!e.byteLength){this.initTracks=void 0,this.initData=void 0;return}var u=this.initData=Object(m.parseInitSegment)(e);o||(o=i(u.audio,h.ElementaryStreamTypes.AUDIO)),l||(l=i(u.video,h.ElementaryStreamTypes.VIDEO));var f={};u.audio&&u.video?f.audiovideo={container:"video/mp4",codec:o+","+l,initSegment:e,id:"main"}:u.audio?f.audio={container:"audio/mp4",codec:o,initSegment:e,id:"audio"}:u.video?f.video={container:"video/mp4",codec:l,initSegment:e,id:"main"}:c.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=f},t.remux=function(e,o,l,u,f){var p=this.initPTS,v=this.lastEndDTS,A={audio:void 0,video:void 0,text:u,id3:l,initSegment:void 0};Object(S.isFiniteNumber)(v)||(v=this.lastEndDTS=f||0);var y=o.samples;if(!y||!y.length)return A;var x={initPTS:void 0,timescale:1},C=this.initData;if((!C||!C.length)&&(this.generateInitSegment(y),C=this.initData),!C||!C.length)return c.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),A;this.emitInitSegment&&(x.tracks=this.initTracks,this.emitInitSegment=!1),Object(S.isFiniteNumber)(p)||(this.initPTS=x.initPTS=p=r(C,y,v));var w=Object(m.getDuration)(y,C),b=v,_=w+b;Object(m.offsetStartDTS)(C,y,p),w>0?this.lastEndDTS=_:(c.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var O=!!C.audio,L=!!C.video,D="";O&&(D+="audio"),L&&(D+="video");var N={data1:y,startPTS:b,startDTS:b,endPTS:_,endDTS:_,type:D,hasAudio:O,hasVideo:L,nb:1,dropped:0};return A.audio=N.type==="audio"?N:void 0,A.video=N.type!=="audio"?N:void 0,A.text=u,A.id3=l,A.initSegment=x,A},n}(),r=function(t,s,e){return Object(m.getStartDTS)(t,s)-e};function i(n,t){var s=n==null?void 0:n.codec;return s&&s.length>4?s:s==="hvc1"?"hvc1.1.c.L120.90":s==="av01"?"av01.0.04M.08":s==="avc1"||t===h.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}T.default=a},"./src/task-loop.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return S});var S=function(){function m(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var h=m.prototype;return h.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},h.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},h.onHandlerDestroyed=function(){},h.hasInterval=function(){return!!this._tickInterval},h.hasNextTick=function(){return!!this._tickTimer},h.setInterval=function(a){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,a),!0)},h.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},h.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},h.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},h.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},h.doTick=function(){},m}()},"./src/types/cmcd.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"CMCDVersion",function(){return S}),g.d(T,"CMCDObjectType",function(){return m}),g.d(T,"CMCDStreamingFormat",function(){return h}),g.d(T,"CMCDStreamType",function(){return c});var S=1,m;(function(a){a.MANIFEST="m",a.AUDIO="a",a.VIDEO="v",a.MUXED="av",a.INIT="i",a.CAPTION="c",a.TIMED_TEXT="tt",a.KEY="k",a.OTHER="o"})(m||(m={}));var h;(function(a){a.DASH="d",a.HLS="h",a.SMOOTH="s",a.OTHER="o"})(h||(h={}));var c;(function(a){a.VOD="v",a.LIVE="l"})(c||(c={}))},"./src/types/level.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"HlsSkip",function(){return h}),g.d(T,"getSkipValue",function(){return c}),g.d(T,"HlsUrlParameters",function(){return a}),g.d(T,"Level",function(){return r});function S(i,n){for(var t=0;t<n.length;t++){var s=n[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function m(i,n,t){return n&&S(i.prototype,n),t&&S(i,t),i}var h;(function(i){i.No="",i.Yes="YES",i.v2="v2"})(h||(h={}));function c(i,n){var t=i.canSkipUntil,s=i.canSkipDateRanges,e=i.endSN,o=n!==void 0?n-e:0;return t&&o<t?s?h.v2:h.Yes:h.No}var a=function(){function i(t,s,e){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=s,this.skip=e}var n=i.prototype;return n.addDirectives=function(s){var e=new self.URL(s);return this.msn!==void 0&&e.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&e.searchParams.set("_HLS_part",this.part.toString()),this.skip&&e.searchParams.set("_HLS_skip",this.skip),e.toString()},i}(),r=function(){function i(n){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=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(t){return t}).join(",").replace(/\.[^.,]+/g,"")}return m(i,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(t){var s=t%this.url.length;this._urlId!==s&&(this.details=void 0,this._urlId=s)}}]),i}()},"./src/types/loader.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"PlaylistContextType",function(){return S}),g.d(T,"PlaylistLevelType",function(){return m});var S;(function(h){h.MANIFEST="manifest",h.LEVEL="level",h.AUDIO_TRACK="audioTrack",h.SUBTITLE_TRACK="subtitleTrack"})(S||(S={}));var m;(function(h){h.MAIN="main",h.AUDIO="audio",h.SUBTITLE="subtitle"})(m||(m={}))},"./src/types/transmuxer.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"ChunkMetadata",function(){return S});var S=function(c,a,r,i,n,t){i===void 0&&(i=0),n===void 0&&(n=-1),t===void 0&&(t=!1),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=m(),this.buffering={audio:m(),video:m(),audiovideo:m()},this.level=c,this.sn=a,this.id=r,this.size=i,this.part=n,this.partial=t};function m(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"AttrList",function(){return h});var S=/^(\d+)x(\d+)$/,m=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,h=function(){function c(r){typeof r=="string"&&(r=c.parseAttrList(r));for(var i in r)r.hasOwnProperty(i)&&(this[i]=r[i])}var a=c.prototype;return a.decimalInteger=function(i){var n=parseInt(this[i],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},a.hexadecimalInteger=function(i){if(this[i]){var n=(this[i]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var t=new Uint8Array(n.length/2),s=0;s<n.length/2;s++)t[s]=parseInt(n.slice(s*2,s*2+2),16);return t}else return null},a.hexadecimalIntegerAsNumber=function(i){var n=parseInt(this[i],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},a.decimalFloatingPoint=function(i){return parseFloat(this[i])},a.optionalFloat=function(i,n){var t=this[i];return t?parseFloat(t):n},a.enumeratedString=function(i){return this[i]},a.bool=function(i){return this[i]==="YES"},a.decimalResolution=function(i){var n=S.exec(this[i]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},c.parseAttrList=function(i){var n,t={},s='"';for(m.lastIndex=0;(n=m.exec(i))!==null;){var e=n[2];e.indexOf(s)===0&&e.lastIndexOf(s)===e.length-1&&(e=e.slice(1,-1)),t[n[1]]=e}return t},c}()},"./src/utils/binary-search.ts":function(E,T,g){"use strict";g.r(T);var S={search:function(h,c){for(var a=0,r=h.length-1,i=null,n=null;a<=r;){i=(a+r)/2|0,n=h[i];var t=c(n);if(t>0)a=i+1;else if(t<0)r=i-1;else return n}return null}};T.default=S},"./src/utils/buffer-helper.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"BufferHelper",function(){return h});var S=g("./src/utils/logger.ts"),m={length:0,start:function(){return 0},end:function(){return 0}},h=function(){function c(){}return c.isBuffered=function(r,i){try{if(r){for(var n=c.getBuffered(r),t=0;t<n.length;t++)if(i>=n.start(t)&&i<=n.end(t))return!0}}catch(s){}return!1},c.bufferInfo=function(r,i,n){try{if(r){var t=c.getBuffered(r),s=[],e;for(e=0;e<t.length;e++)s.push({start:t.start(e),end:t.end(e)});return this.bufferedInfo(s,i,n)}}catch(o){}return{len:0,start:i,end:i,nextStart:void 0}},c.bufferedInfo=function(r,i,n){i=Math.max(0,i),r.sort(function(x,C){var w=x.start-C.start;return w||C.end-x.end});var t=[];if(n)for(var s=0;s<r.length;s++){var e=t.length;if(e){var o=t[e-1].end;r[s].start-o<n?r[s].end>o&&(t[e-1].end=r[s].end):t.push(r[s])}else t.push(r[s])}else t=r;for(var l=0,u,f=i,p=i,v=0;v<t.length;v++){var A=t[v].start,y=t[v].end;if(i+n>=A&&i<y)f=A,p=y,l=p-i;else if(i+n<A){u=A;break}}return{len:l,start:f||0,end:p||0,nextStart:u}},c.getBuffered=function(r){try{return r.buffered}catch(i){return S.logger.log("failed to get media.buffered",i),m}},c}()},"./src/utils/cea-608-parser.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"Row",function(){return p}),g.d(T,"CaptionScreen",function(){return v});var S=g("./src/utils/logger.ts"),m={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},h=function(_){var O=_;return m.hasOwnProperty(_)&&(O=m[_]),String.fromCharCode(O)},c=15,a=100,r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},i={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},t={25:2,26:4,29:6,30:8,31:10,27:13,28:15},s=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],e;(function(b){b[b.ERROR=0]="ERROR",b[b.TEXT=1]="TEXT",b[b.WARNING=2]="WARNING",b[b.INFO=2]="INFO",b[b.DEBUG=3]="DEBUG",b[b.DATA=3]="DATA"})(e||(e={}));var o=function(){function b(){this.time=null,this.verboseLevel=e.ERROR}var _=b.prototype;return _.log=function(L,D){this.verboseLevel>=L&&S.logger.log(this.time+" ["+L+"] "+D)},b}(),l=function(_){for(var O=[],L=0;L<_.length;L++)O.push(_[L].toString(16));return O},u=function(){function b(O,L,D,N,M){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=O||"white",this.underline=L||!1,this.italics=D||!1,this.background=N||"black",this.flash=M||!1}var _=b.prototype;return _.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},_.setStyles=function(L){for(var D=["foreground","underline","italics","background","flash"],N=0;N<D.length;N++){var M=D[N];L.hasOwnProperty(M)&&(this[M]=L[M])}},_.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},_.equals=function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash},_.copy=function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash},_.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},b}(),f=function(){function b(O,L,D,N,M,F){this.uchar=void 0,this.penState=void 0,this.uchar=O||" ",this.penState=new u(L,D,N,M,F)}var _=b.prototype;return _.reset=function(){this.uchar=" ",this.penState.reset()},_.setChar=function(L,D){this.uchar=L,this.penState.copy(D)},_.setPenState=function(L){this.penState.copy(L)},_.equals=function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)},_.copy=function(L){this.uchar=L.uchar,this.penState.copy(L.penState)},_.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},b}(),p=function(){function b(O){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<a;L++)this.chars.push(new f);this.logger=O,this.pos=0,this.currPenState=new u}var _=b.prototype;return _.equals=function(L){for(var D=!0,N=0;N<a;N++)if(!this.chars[N].equals(L.chars[N])){D=!1;break}return D},_.copy=function(L){for(var D=0;D<a;D++)this.chars[D].copy(L.chars[D])},_.isEmpty=function(){for(var L=!0,D=0;D<a;D++)if(!this.chars[D].isEmpty()){L=!1;break}return L},_.setCursor=function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(e.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>a&&(this.logger.log(e.DEBUG,"Too large cursor position "+this.pos),this.pos=a)},_.moveCursor=function(L){var D=this.pos+L;if(L>1)for(var N=this.pos+1;N<D+1;N++)this.chars[N].setPenState(this.currPenState);this.setCursor(D)},_.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},_.insertChar=function(L){L>=144&&this.backSpace();var D=h(L);if(this.pos>=a){this.logger.log(e.ERROR,"Cannot insert "+L.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},_.clearFromPos=function(L){var D;for(D=L;D<a;D++)this.chars[D].reset()},_.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},_.clearToEndOfRow=function(){this.clearFromPos(this.pos)},_.getTextString=function(){for(var L=[],D=!0,N=0;N<a;N++){var M=this.chars[N].uchar;M!==" "&&(D=!1),L.push(M)}return D?"":L.join("")},_.setPenStyles=function(L){this.currPenState.setStyles(L);var D=this.chars[this.pos];D.setPenState(this.currPenState)},b}(),v=function(){function b(O){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<c;L++)this.rows.push(new p(O));this.logger=O,this.currRow=c-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var _=b.prototype;return _.reset=function(){for(var L=0;L<c;L++)this.rows[L].clear();this.currRow=c-1},_.equals=function(L){for(var D=!0,N=0;N<c;N++)if(!this.rows[N].equals(L.rows[N])){D=!1;break}return D},_.copy=function(L){for(var D=0;D<c;D++)this.rows[D].copy(L.rows[D])},_.isEmpty=function(){for(var L=!0,D=0;D<c;D++)if(!this.rows[D].isEmpty()){L=!1;break}return L},_.backSpace=function(){var L=this.rows[this.currRow];L.backSpace()},_.clearToEndOfRow=function(){var L=this.rows[this.currRow];L.clearToEndOfRow()},_.insertChar=function(L){var D=this.rows[this.currRow];D.insertChar(L)},_.setPen=function(L){var D=this.rows[this.currRow];D.setPenStyles(L)},_.moveCursor=function(L){var D=this.rows[this.currRow];D.moveCursor(L)},_.setCursor=function(L){this.logger.log(e.INFO,"setCursor: "+L);var D=this.rows[this.currRow];D.setCursor(L)},_.setPAC=function(L){this.logger.log(e.INFO,"pacData = "+JSON.stringify(L));var D=L.row-1;if(this.nrRollUpRows&&D<this.nrRollUpRows-1&&(D=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==D){for(var N=0;N<c;N++)this.rows[N].clear();var M=this.currRow+1-this.nrRollUpRows,F=this.lastOutputScreen;if(F){var R=F.rows[M].cueStartTime,j=this.logger.time;if(R&&j!==null&&R<j)for(var B=0;B<this.nrRollUpRows;B++)this.rows[D-this.nrRollUpRows+B+1].copy(F.rows[M+B])}}this.currRow=D;var K=this.rows[this.currRow];if(L.indent!==null){var U=L.indent,z=Math.max(U-1,0);K.setCursor(L.indent),L.color=K.chars[z].penState.foreground}var V={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(V)},_.setBkgData=function(L){this.logger.log(e.INFO,"bkgData = "+JSON.stringify(L)),this.backSpace(),this.setPen(L),this.insertChar(32)},_.setRollUpRows=function(L){this.nrRollUpRows=L},_.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(e.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(e.TEXT,this.getDisplayText());var L=this.currRow+1-this.nrRollUpRows,D=this.rows.splice(L,1)[0];D.clear(),this.rows.splice(this.currRow,0,D),this.logger.log(e.INFO,"Rolling up")},_.getDisplayText=function(L){L=L||!1;for(var D=[],N="",M=-1,F=0;F<c;F++){var R=this.rows[F].getTextString();R&&(M=F+1,L?D.push("Row "+M+": '"+R+"'"):D.push(R.trim()))}return D.length>0&&(L?N="["+D.join(" | ")+"]":N=D.join(`
|
|
|
`)),N},_.getTextAndFormat=function(){return this.rows},b}(),A=function(){function b(O,L,D){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=O,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new v(D),this.nonDisplayedMemory=new v(D),this.lastOutputScreen=new v(D),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var _=b.prototype;return _.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},_.getHandler=function(){return this.outputFilter},_.setHandler=function(L){this.outputFilter=L},_.setPAC=function(L){this.writeScreen.setPAC(L)},_.setBkgData=function(L){this.writeScreen.setBkgData(L)},_.setMode=function(L){if(L===this.mode)return;this.mode=L,this.logger.log(e.INFO,"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},_.insertChars=function(L){for(var D=0;D<L.length;D++)this.writeScreen.insertChar(L[D]);var N=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(e.INFO,N+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(e.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},_.ccRCL=function(){this.logger.log(e.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},_.ccBS=function(){if(this.logger.log(e.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},_.ccAOF=function(){},_.ccAON=function(){},_.ccDER=function(){this.logger.log(e.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},_.ccRU=function(L){this.logger.log(e.INFO,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)},_.ccFON=function(){this.logger.log(e.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},_.ccRDC=function(){this.logger.log(e.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},_.ccTR=function(){this.logger.log(e.INFO,"TR"),this.setMode("MODE_TEXT")},_.ccRTD=function(){this.logger.log(e.INFO,"RTD"),this.setMode("MODE_TEXT")},_.ccEDM=function(){this.logger.log(e.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},_.ccCR=function(){this.logger.log(e.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},_.ccENM=function(){this.logger.log(e.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},_.ccEOC=function(){if(this.logger.log(e.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var L=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=L,this.writeScreen=this.nonDisplayedMemory,this.logger.log(e.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},_.ccTO=function(L){this.logger.log(e.INFO,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)},_.ccMIDROW=function(L){var D={flash:!1};if(D.underline=L%2===1,D.italics=L>=46,D.italics)D.foreground="white";else{var N=Math.floor(L/2)-16,M=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=M[N]}this.logger.log(e.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},_.outputDataUpdate=function(L){L===void 0&&(L=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},_.cueSplitAtTime=function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))},b}(),y=function(){function b(O,L,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var N=new o;this.channels=[null,new A(O,L,N),new A(O+1,D,N)],this.cmdHistory=w(),this.logger=N}var _=b.prototype;return _.getHandler=function(L){return this.channels[L].getHandler()},_.setHandler=function(L,D){this.channels[L].setHandler(D)},_.addData=function(L,D){var N,M,F,R=!1;this.logger.time=L;for(var j=0;j<D.length;j+=2){if(M=D[j]&127,F=D[j+1]&127,M===0&&F===0)continue;if(this.logger.log(e.DATA,"["+l([D[j],D[j+1]])+"] -> ("+l([M,F])+")"),N=this.parseCmd(M,F),N||(N=this.parseMidrow(M,F)),N||(N=this.parsePAC(M,F)),N||(N=this.parseBackgroundAttributes(M,F)),!N&&(R=this.parseChars(M,F),R)){var B=this.currentChannel;if(B&&B>0){var K=this.channels[B];K.insertChars(R)}else this.logger.log(e.WARNING,"No channel found yet. TEXT-MODE?")}!N&&!R&&this.logger.log(e.WARNING,"Couldn't parse cleaned data "+l([M,F])+" orig: "+l([D[j],D[j+1]]))}},_.parseCmd=function(L,D){var N=this.cmdHistory,M=(L===20||L===28||L===21||L===29)&&D>=32&&D<=47,F=(L===23||L===31)&&D>=33&&D<=35;if(!(M||F))return!1;if(C(L,D,N))return x(null,null,N),this.logger.log(e.DEBUG,"Repeated command ("+l([L,D])+") is dropped"),!0;var R=L===20||L===21||L===23?1:2,j=this.channels[R];return L===20||L===21||L===28||L===29?D===32?j.ccRCL():D===33?j.ccBS():D===34?j.ccAOF():D===35?j.ccAON():D===36?j.ccDER():D===37?j.ccRU(2):D===38?j.ccRU(3):D===39?j.ccRU(4):D===40?j.ccFON():D===41?j.ccRDC():D===42?j.ccTR():D===43?j.ccRTD():D===44?j.ccEDM():D===45?j.ccCR():D===46?j.ccENM():D===47&&j.ccEOC():j.ccTO(D-32),x(L,D,N),this.currentChannel=R,!0},_.parseMidrow=function(L,D){var N=0;if((L===17||L===25)&&D>=32&&D<=47){if(L===17?N=1:N=2,N!==this.currentChannel)return this.logger.log(e.ERROR,"Mismatch channel in midrow parsing"),!1;var M=this.channels[N];return M?(M.ccMIDROW(D),this.logger.log(e.DEBUG,"MIDROW ("+l([L,D])+")"),!0):!1}return!1},_.parsePAC=function(L,D){var N,M=this.cmdHistory,F=(L>=17&&L<=23||L>=25&&L<=31)&&D>=64&&D<=127,R=(L===16||L===24)&&D>=64&&D<=95;if(!(F||R))return!1;if(C(L,D,M))return x(null,null,M),!0;var j=L<=23?1:2;D>=64&&D<=95?N=j===1?r[L]:n[L]:N=j===1?i[L]:t[L];var B=this.channels[j];return B?(B.setPAC(this.interpretPAC(N,D)),x(L,D,M),this.currentChannel=j,!0):!1},_.interpretPAC=function(L,D){var N,M={color:null,italics:!1,indent:null,underline:!1,row:L};return D>95?N=D-96:N=D-64,M.underline=(N&1)===1,N<=13?M.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(N/2)]:N<=15?(M.italics=!0,M.color="white"):M.indent=Math.floor((N-16)/2)*4,M},_.parseChars=function(L,D){var N,M=null,F=null;if(L>=25?(N=2,F=L-8):(N=1,F=L),F>=17&&F<=19){var R;F===17?R=D+80:F===18?R=D+112:R=D+144,this.logger.log(e.INFO,"Special char '"+h(R)+"' in channel "+N),M=[R]}else L>=32&&L<=127&&(M=D===0?[L]:[L,D]);if(M){var j=l(M);this.logger.log(e.DEBUG,"Char codes = "+j.join(",")),x(L,D,this.cmdHistory)}return M},_.parseBackgroundAttributes=function(L,D){var N=(L===16||L===24)&&D>=32&&D<=47,M=(L===23||L===31)&&D>=45&&D<=47;if(!(N||M))return!1;var F,R={};L===16||L===24?(F=Math.floor((D-32)/2),R.background=s[F],D%2===1&&(R.background=R.background+"_semi")):D===45?R.background="transparent":(R.foreground="black",D===47&&(R.underline=!0));var j=L<=23?1:2,B=this.channels[j];return B.setBkgData(R),x(L,D,this.cmdHistory),!0},_.reset=function(){for(var L=0;L<Object.keys(this.channels).length;L++){var D=this.channels[L];D&&D.reset()}this.cmdHistory=w()},_.cueSplitAtTime=function(L){for(var D=0;D<this.channels.length;D++){var N=this.channels[D];N&&N.cueSplitAtTime(L)}},b}();function x(b,_,O){O.a=b,O.b=_}function C(b,_,O){return O.a===b&&O.b===_}function w(){return{a:null,b:null}}T.default=y},"./src/utils/codecs.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"isCodecType",function(){return m}),g.d(T,"isCodecSupportedInMp4",function(){return h});var S={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,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,dvav:!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}};function m(c,a){var r=S[a];return!!r&&r[c.slice(0,4)]===!0}function h(c,a){return MediaSource.isTypeSupported((a||"video")+'/mp4;codecs="'+c+'"')}},"./src/utils/cues.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/utils/vttparser.ts"),m=g("./src/utils/webvtt-parser.ts"),h=g("./src/utils/texttrack-utils.ts"),c=/\s/,a={newCue:function(i,n,t,s){for(var e=[],o,l,u,f,p,v=self.VTTCue||self.TextTrackCue,A=0;A<s.rows.length;A++)if(o=s.rows[A],u=!0,f=0,p="",!o.isEmpty()){for(var y=0;y<o.chars.length;y++)c.test(o.chars[y].uchar)&&u?f++:(p+=o.chars[y].uchar,u=!1);o.cueStartTime=n,n===t&&(t+=1e-4),f>=16?f--:f++;var x=Object(S.fixLineBreaks)(p.trim()),C=Object(m.generateCueId)(n,t,x);(!i||!i.cues||!i.cues.getCueById(C))&&(l=new v(n,t,x),l.id=C,l.line=A+1,l.align="left",l.position=10+Math.min(80,Math.floor(f*8/32)*10),e.push(l))}return i&&e.length&&(e.sort(function(w,b){return w.line==="auto"||b.line==="auto"?0:w.line>8&&b.line>8?b.line-w.line:w.line-b.line}),e.forEach(function(w){return Object(h.addCueToTrack)(i,w)})),e}};T.default=a},"./src/utils/discontinuities.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"findFirstFragWithCC",function(){return c}),g.d(T,"shouldAlignOnDiscontinuities",function(){return a}),g.d(T,"findDiscontinuousReferenceFrag",function(){return r}),g.d(T,"adjustSlidingStart",function(){return n}),g.d(T,"alignStream",function(){return t}),g.d(T,"alignPDT",function(){return e}),g.d(T,"alignFragmentByPDTDelta",function(){return o}),g.d(T,"alignMediaPlaylistByPDT",function(){return l});var S=g("./src/polyfills/number.ts"),m=g("./src/utils/logger.ts"),h=g("./src/controller/level-helper.ts");function c(u,f){for(var p=null,v=0,A=u.length;v<A;v++){var y=u[v];if(y&&y.cc===f){p=y;break}}return p}function a(u,f,p){return!!(f.details&&(p.endCC>p.startCC||u&&u.cc<p.startCC))}function r(u,f){var p=u.fragments,v=f.fragments;if(!v.length||!p.length){m.logger.log("No fragments to align");return}var A=c(p,v[0].cc);if(!A||A&&!A.startPTS){m.logger.log("No frag in previous level to align on");return}return A}function i(u,f){if(u){var p=u.start+f;u.start=u.startPTS=p,u.endPTS=p+u.duration}}function n(u,f){for(var p=f.fragments,v=0,A=p.length;v<A;v++)i(p[v],u);f.fragmentHint&&i(f.fragmentHint,u),f.alignedSliding=!0}function t(u,f,p){if(!f)return;s(u,p,f),!p.alignedSliding&&f.details&&e(p,f.details),!p.alignedSliding&&f.details&&!p.skippedSegments&&Object(h.adjustSliding)(f.details,p)}function s(u,f,p){if(a(u,p,f)){var v=r(p.details,f);v&&Object(S.isFiniteNumber)(v.start)&&(m.logger.log("Adjusting PTS using last level due to CC increase within current level "+f.url),n(v.start,f))}}function e(u,f){if(!f.fragments.length||!u.hasProgramDateTime||!f.hasProgramDateTime)return;var p=f.fragments[0].programDateTime,v=u.fragments[0].programDateTime,A=(v-p)/1e3+f.fragments[0].start;A&&Object(S.isFiniteNumber)(A)&&(m.logger.log("Adjusting PTS using programDateTime delta "+(v-p)+"ms, sliding:"+A.toFixed(3)+" "+u.url+" "),n(A,u))}function o(u,f){var p=u.programDateTime;if(!p)return;var v=(p-f)/1e3;u.start=u.startPTS=v,u.endPTS=v+u.duration}function l(u,f){if(!f.fragments.length||!u.hasProgramDateTime||!f.hasProgramDateTime)return;var p=f.fragments[0].programDateTime,v=f.fragments[0].start,A=p-v*1e3;u.fragments.forEach(function(y){o(y,A)}),u.fragmentHint&&o(u.fragmentHint,A),u.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/utils/ewma.ts"),m=function(){function h(a,r,i){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new S.default(a),this.fast_=new S.default(r)}var c=h.prototype;return c.update=function(r,i){var n=this.slow_,t=this.fast_;this.slow_.halfLife!==r&&(this.slow_=new S.default(r,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==i&&(this.fast_=new S.default(i,t.getEstimate(),t.getTotalWeight()))},c.sample=function(r,i){r=Math.max(r,this.minDelayMs_);var n=8*i,t=r/1e3,s=n/t;this.fast_.sample(t,s),this.slow_.sample(t,s)},c.canEstimate=function(){var r=this.fast_;return r&&r.getTotalWeight()>=this.minWeight_},c.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},c.destroy=function(){},h}();T.default=m},"./src/utils/ewma.ts":function(E,T,g){"use strict";g.r(T);var S=function(){function m(c,a,r){a===void 0&&(a=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=c,this.alpha_=c?Math.exp(Math.log(.5)/c):0,this.estimate_=a,this.totalWeight_=r}var h=m.prototype;return h.sample=function(a,r){var i=Math.pow(this.alpha_,a);this.estimate_=r*(1-i)+i*this.estimate_,this.totalWeight_+=a},h.getTotalWeight=function(){return this.totalWeight_},h.getEstimate=function(){if(this.alpha_){var a=1-Math.pow(this.alpha_,this.totalWeight_);if(a)return this.estimate_/a}return this.estimate_},m}();T.default=S},"./src/utils/fetch-loader.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"fetchSupported",function(){return o});var S=g("./src/polyfills/number.ts"),m=g("./src/loader/load-stats.ts"),h=g("./src/demux/chunk-cache.ts");function c(v,A){v.prototype=Object.create(A.prototype),v.prototype.constructor=v,t(v,A)}function a(v){var A=typeof Map=="function"?new Map:void 0;return a=function(x){if(x===null||!n(x))return x;if(typeof x!="function")throw new TypeError("Super expression must either be null or a function");if(typeof A!="undefined"){if(A.has(x))return A.get(x);A.set(x,C)}function C(){return r(x,arguments,s(this).constructor)}return C.prototype=Object.create(x.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),t(C,x)},a(v)}function r(v,A,y){return i()?r=Reflect.construct:r=function(C,w,b){var _=[null];_.push.apply(_,w);var O=Function.bind.apply(C,_),L=new O;return b&&t(L,b.prototype),L},r.apply(null,arguments)}function i(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(v){return!1}}function n(v){return Function.toString.call(v).indexOf("[native code]")!==-1}function t(v,A){return t=Object.setPrototypeOf||function(x,C){return x.__proto__=C,x},t(v,A)}function s(v){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},s(v)}function e(){return e=Object.assign||function(v){for(var A=1;A<arguments.length;A++){var y=arguments[A];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(v[x]=y[x])}return v},e.apply(this,arguments)}function o(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(v){}return!1}var l=function(){function v(y){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=y.fetchSetup||f,this.controller=new self.AbortController,this.stats=new m.LoadStats}var A=v.prototype;return A.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},A.abortInternal=function(){var x=this.response;(!x||!x.ok)&&(this.stats.aborted=!0,this.controller.abort())},A.abort=function(){var x;this.abortInternal(),(x=this.callbacks)!==null&&x!==void 0&&x.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},A.load=function(x,C,w){var b=this,_=this.stats;if(_.loading.start)throw new Error("Loader can only be used once.");_.loading.start=self.performance.now();var O=u(x,this.controller.signal),L=w.onProgress,D=x.responseType==="arraybuffer",N=D?"byteLength":"length";this.context=x,this.config=C,this.callbacks=w,this.request=this.fetchSetup(x,O),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){b.abortInternal(),w.onTimeout(_,x,b.response)},C.timeout),self.fetch(this.request).then(function(M){if(b.response=b.loader=M,!M.ok){var F=M.status,R=M.statusText;throw new p(R||"fetch, bad network response",F,M)}return _.loading.first=Math.max(self.performance.now(),_.loading.start),_.total=parseInt(M.headers.get("Content-Length")||"0"),L&&Object(S.isFiniteNumber)(C.highWaterMark)?b.loadProgressively(M,_,x,C.highWaterMark,L):D?M.arrayBuffer():M.text()}).then(function(M){var F=b.response;self.clearTimeout(b.requestTimeout),_.loading.end=Math.max(self.performance.now(),_.loading.first),_.loaded=_.total=M[N];var R={url:F.url,data:M};L&&!Object(S.isFiniteNumber)(C.highWaterMark)&&L(_,x,M,F),w.onSuccess(R,_,x,F)}).catch(function(M){if(self.clearTimeout(b.requestTimeout),_.aborted)return;var F=M.code||0;w.onError({code:F,text:M.message},x,M.details)})},A.getCacheAge=function(){var x=null;if(this.response){var C=this.response.headers.get("age");x=C?parseFloat(C):null}return x},A.loadProgressively=function(x,C,w,b,_){b===void 0&&(b=0);var O=new h.default,L=x.body.getReader(),D=function N(){return L.read().then(function(M){if(M.done)return O.dataLength&&_(C,w,O.flush(),x),Promise.resolve(new ArrayBuffer(0));var F=M.value,R=F.length;return C.loaded+=R,R<b||O.dataLength?(O.push(F),O.dataLength>=b&&_(C,w,O.flush(),x)):_(C,w,F,x),N()}).catch(function(){return Promise.reject()})};return D()},v}();function u(v,A){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:A,headers:new self.Headers(e({},v.headers))};return v.rangeEnd&&y.headers.set("Range","bytes="+v.rangeStart+"-"+String(v.rangeEnd-1)),y}function f(v,A){return new self.Request(v.url,A)}var p=function(v){c(A,v);function A(y,x,C){var w;return w=v.call(this,y)||this,w.code=void 0,w.details=void 0,w.code=x,w.details=C,w}return A}(a(Error));T.default=l},"./src/utils/imsc1-ttml-parser.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"IMSC1_CODEC",function(){return n}),g.d(T,"parseIMSC1",function(){return o});var S=g("./src/utils/mp4-tools.ts"),m=g("./src/utils/vttparser.ts"),h=g("./src/utils/vttcue.ts"),c=g("./src/demux/id3.ts"),a=g("./src/utils/timescale-conversion.ts"),r=g("./src/utils/webvtt-parser.ts");function i(){return i=Object.assign||function(b){for(var _=1;_<arguments.length;_++){var O=arguments[_];for(var L in O)Object.prototype.hasOwnProperty.call(O,L)&&(b[L]=O[L])}return b},i.apply(this,arguments)}var n="stpp.ttml.im1t",t=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,s=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,e={left:"start",center:"center",right:"end",start:"start",end:"end"};function o(b,_,O,L,D){var N=Object(S.findBox)(new Uint8Array(b),["mdat"]);if(N.length===0){D(new Error("Could not parse IMSC1 mdat"));return}var M=N[0],F=Object(c.utf8ArrayToStr)(new Uint8Array(b,M.start,M.end-M.start)),R=Object(a.toTimescaleFromScale)(_,1,O);try{L(l(F,R))}catch(j){D(j)}}function l(b,_){var O=new DOMParser,L=O.parseFromString(b,"text/xml"),D=L.getElementsByTagName("tt")[0];if(!D)throw new Error("Invalid ttml");var N={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},M=Object.keys(N).reduce(function(K,U){return K[U]=D.getAttribute("ttp:"+U)||N[U],K},{}),F=D.getAttribute("xml:space")!=="preserve",R=f(u(D,"styling","style")),j=f(u(D,"layout","region")),B=u(D,"body","[begin]");return[].map.call(B,function(K){var U=p(K,F);if(!U||!K.hasAttribute("begin"))return null;var z=x(K.getAttribute("begin"),M),V=x(K.getAttribute("dur"),M),Y=x(K.getAttribute("end"),M);if(z===null)throw y(K);if(Y===null){if(V===null)throw y(K);Y=z+V}var J=new h.default(z-_,Y-_,U);J.id=Object(r.generateCueId)(J.startTime,J.endTime,J.text);var se=j[K.getAttribute("region")],$=R[K.getAttribute("style")];J.position=10,J.size=80;var ae=v(se,$),ge=ae.textAlign;if(ge){var pe=e[ge];pe&&(J.lineAlign=pe),J.align=ge}return i(J,ae),J}).filter(function(K){return K!==null})}function u(b,_,O){var L=b.getElementsByTagName(_)[0];return L?[].slice.call(L.querySelectorAll(O)):[]}function f(b){return b.reduce(function(_,O){var L=O.getAttribute("xml:id");return L&&(_[L]=O),_},{})}function p(b,_){return[].slice.call(b.childNodes).reduce(function(O,L,D){var N;return L.nodeName==="br"&&D?O+`
|
|
|
`:(N=L.childNodes)!==null&&N!==void 0&&N.length?p(L,_):_?O+L.textContent.trim().replace(/\s+/g," "):O+L.textContent},"")}function v(b,_){var O="http://www.w3.org/ns/ttml#styling",L=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return L.reduce(function(D,N){var M=A(_,O,N)||A(b,O,N);return M&&(D[N]=M),D},{})}function A(b,_,O){return b.hasAttributeNS(_,O)?b.getAttributeNS(_,O):null}function y(b){return new Error("Could not parse ttml timestamp "+b)}function x(b,_){if(!b)return null;var O=Object(m.parseTimeStamp)(b);return O===null&&(t.test(b)?O=C(b,_):s.test(b)&&(O=w(b,_))),O}function C(b,_){var O=t.exec(b),L=(O[4]|0)+(O[5]|0)/_.subFrameRate;return(O[1]|0)*3600+(O[2]|0)*60+(O[3]|0)+L/_.frameRate}function w(b,_){var O=s.exec(b),L=Number(O[1]),D=O[2];switch(D){case"h":return L*3600;case"m":return L*60;case"ms":return L*1e3;case"f":return L/_.frameRate;case"t":return L/_.tickRate}return L}},"./src/utils/logger.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"enableLogs",function(){return r}),g.d(T,"logger",function(){return i});var S=function(){},m={trace:S,debug:S,log:S,warn:S,info:S,error:S},h=m;function c(n){var t=self.console[n];return t?t.bind(self.console,"["+n+"] >"):S}function a(n){for(var t=arguments.length,s=new Array(t>1?t-1:0),e=1;e<t;e++)s[e-1]=arguments[e];s.forEach(function(o){h[o]=n[o]?n[o].bind(n):c(o)})}function r(n){if(self.console&&n===!0||typeof n=="object"){a(n,"debug","log","info","warn","error");try{h.log()}catch(t){h=m}}else h=m}var i=h},"./src/utils/mediakeys-helper.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"KeySystems",function(){return S}),g.d(T,"requestMediaKeySystemAccess",function(){return m});var S;(function(h){h.WIDEVINE="com.widevine.alpha",h.PLAYREADY="com.microsoft.playready"})(S||(S={}));var m=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"getMediaSource",function(){return S});function S(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"bin2str",function(){return a}),g.d(T,"readUint16",function(){return r}),g.d(T,"readUint32",function(){return i}),g.d(T,"writeUint32",function(){return n}),g.d(T,"findBox",function(){return t}),g.d(T,"parseSegmentIndex",function(){return s}),g.d(T,"parseInitSegment",function(){return e}),g.d(T,"getStartDTS",function(){return o}),g.d(T,"getDuration",function(){return l}),g.d(T,"computeRawDurationFromSamples",function(){return u}),g.d(T,"offsetStartDTS",function(){return f}),g.d(T,"segmentValidRange",function(){return p}),g.d(T,"appendUint8Array",function(){return v});var S=g("./src/utils/typed-array.ts"),m=g("./src/loader/fragment.ts"),h=Math.pow(2,32)-1,c=[].push;function a(A){return String.fromCharCode.apply(null,A)}function r(A,y){"data"in A&&(y+=A.start,A=A.data);var x=A[y]<<8|A[y+1];return x<0?65536+x:x}function i(A,y){"data"in A&&(y+=A.start,A=A.data);var x=A[y]<<24|A[y+1]<<16|A[y+2]<<8|A[y+3];return x<0?4294967296+x:x}function n(A,y,x){"data"in A&&(y+=A.start,A=A.data),A[y]=x>>24,A[y+1]=x>>16&255,A[y+2]=x>>8&255,A[y+3]=x&255}function t(A,y){var x=[];if(!y.length)return x;var C,w,b;"data"in A?(C=A.data,w=A.start,b=A.end):(C=A,w=0,b=C.byteLength);for(var _=w;_<b;){var O=i(C,_),L=a(C.subarray(_+4,_+8)),D=O>1?_+O:b;if(L===y[0])if(y.length===1)x.push({data:C,start:_+8,end:D});else{var N=t({data:C,start:_+8,end:D},y.slice(1));N.length&&c.apply(x,N)}_=D}return x}function s(A){var y=t(A,["moov"]),x=y[0],C=x?x.end:null,w=t(A,["sidx"]);if(!w||!w[0])return null;var b=[],_=w[0],O=_.data[0],L=O===0?8:16,D=i(_,L);L+=4;var N=0,M=0;O===0?L+=8:L+=16,L+=2;var F=_.end+M,R=r(_,L);L+=2;for(var j=0;j<R;j++){var B=L,K=i(_,B);B+=4;var U=K&2147483647,z=(K&2147483648)>>>31;if(z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var V=i(_,B);B+=4,b.push({referenceSize:U,subsegmentDuration:V,info:{duration:V/D,start:F,end:F+U-1}}),F+=U,B+=4,L=B}return{earliestPresentationTime:N,timescale:D,version:O,referencesCount:R,references:b,moovEndOffset:C}}function e(A){for(var y=[],x=t(A,["moov","trak"]),C=0;C<x.length;C++){var w=x[C],b=t(w,["tkhd"])[0];if(b){var _=b.data[b.start],O=_===0?12:20,L=i(b,O),D=t(w,["mdia","mdhd"])[0];if(D){_=D.data[D.start],O=_===0?12:20;var N=i(D,O),M=t(w,["mdia","hdlr"])[0];if(M){var F=a(M.data.subarray(M.start+8,M.start+12)),R={soun:m.ElementaryStreamTypes.AUDIO,vide:m.ElementaryStreamTypes.VIDEO}[F];if(R){var j=t(w,["mdia","minf","stbl","stsd"])[0],B=void 0;j&&(B=a(j.data.subarray(j.start+12,j.start+16))),y[L]={timescale:N,type:R},y[R]={timescale:N,id:L,codec:B}}}}}}var K=t(A,["moov","mvex","trex"]);return K.forEach(function(U){var z=i(U,4),V=y[z];V&&(V.default={duration:i(U,12),flags:i(U,20)})}),y}function o(A,y){return t(y,["moof","traf"]).reduce(function(x,C){var w=t(C,["tfdt"])[0],b=w.data[w.start],_=t(C,["tfhd"]).reduce(function(O,L){var D=i(L,4),N=A[D];if(N){var M=i(w,4);b===1&&(M*=Math.pow(2,32),M+=i(w,8));var F=N.timescale||9e4,R=M/F;if(isFinite(R)&&(O===null||R<O))return R}return O},null);return _!==null&&isFinite(_)&&(x===null||_<x)?_:x},null)||0}function l(A,y){for(var x=0,C=0,w=0,b=t(A,["moof","traf"]),_=0;_<b.length;_++){var O=b[_],L=t(O,["tfhd"])[0],D=i(L,4),N=y[D];if(!N)continue;var M=N.default,F=i(L,0)|(M==null?void 0:M.flags),R=M==null?void 0:M.duration;F&8&&(F&2?R=i(L,12):R=i(L,8));for(var j=N.timescale||9e4,B=t(O,["trun"]),K=0;K<B.length;K++){if(R){var U=i(B[K],4);x=R*U}else x=u(B[K]);N.type===m.ElementaryStreamTypes.VIDEO?C+=x/j:N.type===m.ElementaryStreamTypes.AUDIO&&(w+=x/j)}}if(C===0&&w===0){var z=s(A);if(z!=null&&z.references)return z.references.reduce(function(V,Y){return V+Y.info.duration||0},0)}return C||w}function u(A){var y=i(A,0),x=8;y&1&&(x+=4),y&4&&(x+=4);for(var C=0,w=i(A,4),b=0;b<w;b++){if(y&256){var _=i(A,x);C+=_,x+=4}y&512&&(x+=4),y&1024&&(x+=4),y&2048&&(x+=4)}return C}function f(A,y,x){t(y,["moof","traf"]).forEach(function(C){t(C,["tfhd"]).forEach(function(w){var b=i(w,4),_=A[b];if(!_)return;var O=_.timescale||9e4;t(C,["tfdt"]).forEach(function(L){var D=L.data[L.start],N=i(L,4);if(D===0)n(L,4,N-x*O);else{N*=Math.pow(2,32),N+=i(L,8),N-=x*O,N=Math.max(N,0);var M=Math.floor(N/(h+1)),F=Math.floor(N%(h+1));n(L,4,M),n(L,8,F)}})})})}function p(A){var y={valid:null,remainder:null},x=t(A,["moof"]);if(x){if(x.length<2)return y.remainder=A,y}else return y;var C=x[x.length-1];return y.valid=Object(S.sliceUint8)(A,0,C.start-8),y.remainder=Object(S.sliceUint8)(A,C.start-8),y}function v(A,y){var x=new Uint8Array(A.length+y.length);return x.set(A),x.set(y,A.length),x}},"./src/utils/output-filter.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"default",function(){return S});var S=function(){function m(c,a){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=c,this.trackName=a}var h=m.prototype;return h.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},h.newCue=function(a,r,i){(this.startTime===null||this.startTime>a)&&(this.startTime=a),this.endTime=r,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},h.reset=function(){this.cueRanges=[]},m}()},"./src/utils/texttrack-utils.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"sendAddTrackEvent",function(){return m}),g.d(T,"addCueToTrack",function(){return h}),g.d(T,"clearCurrentCues",function(){return c}),g.d(T,"removeCuesInRange",function(){return a}),g.d(T,"getCuesInRange",function(){return i});var S=g("./src/utils/logger.ts");function m(n,t){var s;try{s=new Event("addtrack")}catch(e){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=n,t.dispatchEvent(s)}function h(n,t){var s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(t.id))try{if(n.addCue(t),!n.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(o){S.logger.debug("[texttrack-utils]: "+o);var e=new self.TextTrackCue(t.startTime,t.endTime,t.text);e.id=t.id,n.addCue(e)}s==="disabled"&&(n.mode=s)}function c(n){var t=n.mode;if(t==="disabled"&&(n.mode="hidden"),n.cues)for(var s=n.cues.length;s--;)n.removeCue(n.cues[s]);t==="disabled"&&(n.mode=t)}function a(n,t,s){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var o=i(n.cues,t,s),l=0;l<o.length;l++)n.removeCue(o[l]);e==="disabled"&&(n.mode=e)}function r(n,t){if(t<n[0].startTime)return 0;var s=n.length-1;if(t>n[s].endTime)return-1;for(var e=0,o=s;e<=o;){var l=Math.floor((o+e)/2);if(t<n[l].startTime)o=l-1;else if(t>n[l].startTime&&e<s)e=l+1;else return l}return n[e].startTime-t<t-n[o].startTime?e:o}function i(n,t,s){var e=[],o=r(n,t);if(o>-1)for(var l=o,u=n.length;l<u;l++){var f=n[l];if(f.startTime>=t&&f.endTime<=s)e.push(f);else if(f.startTime>s)return e}return e}},"./src/utils/time-ranges.ts":function(E,T,g){"use strict";g.r(T);var S={toString:function(h){for(var c="",a=h.length,r=0;r<a;r++)c+="["+h.start(r).toFixed(3)+","+h.end(r).toFixed(3)+"]";return c}};T.default=S},"./src/utils/timescale-conversion.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"toTimescaleFromBase",function(){return m}),g.d(T,"toTimescaleFromScale",function(){return h}),g.d(T,"toMsFromMpegTsClock",function(){return c}),g.d(T,"toMpegTsClockFromTimescale",function(){return a});var S=9e4;function m(r,i,n,t){n===void 0&&(n=1),t===void 0&&(t=!1);var s=r*i*n;return t?Math.round(s):s}function h(r,i,n,t){return n===void 0&&(n=1),t===void 0&&(t=!1),m(r,i,1/n,t)}function c(r,i){return i===void 0&&(i=!1),m(r,1e3,1/S,i)}function a(r,i){return i===void 0&&(i=1),m(r,S,1/i)}},"./src/utils/typed-array.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"sliceUint8",function(){return S});function S(m,h,c){return Uint8Array.prototype.slice?m.slice(h,c):new Uint8Array(Array.prototype.slice.call(m,h,c))}},"./src/utils/vttcue.ts":function(E,T,g){"use strict";g.r(T),T.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var S=["","lr","rl"],m=["start","middle","end","left","right"];function h(n,t){if(typeof t!="string")return!1;if(!Array.isArray(n))return!1;var s=t.toLowerCase();return~n.indexOf(s)?s:!1}function c(n){return h(S,n)}function a(n){return h(m,n)}function r(n){for(var t=arguments.length,s=new Array(t>1?t-1:0),e=1;e<t;e++)s[e-1]=arguments[e];for(var o=1;o<arguments.length;o++){var l=arguments[o];for(var u in l)n[u]=l[u]}return n}function i(n,t,s){var e=this,o={enumerable:!0};e.hasBeenReset=!1;var l="",u=!1,f=n,p=t,v=s,A=null,y="",x=!0,C="auto",w="start",b=50,_="middle",O=50,L="middle";Object.defineProperty(e,"id",r({},o,{get:function(){return l},set:function(N){l=""+N}})),Object.defineProperty(e,"pauseOnExit",r({},o,{get:function(){return u},set:function(N){u=!!N}})),Object.defineProperty(e,"startTime",r({},o,{get:function(){return f},set:function(N){if(typeof N!="number")throw new TypeError("Start time must be set to a number.");f=N,this.hasBeenReset=!0}})),Object.defineProperty(e,"endTime",r({},o,{get:function(){return p},set:function(N){if(typeof N!="number")throw new TypeError("End time must be set to a number.");p=N,this.hasBeenReset=!0}})),Object.defineProperty(e,"text",r({},o,{get:function(){return v},set:function(N){v=""+N,this.hasBeenReset=!0}})),Object.defineProperty(e,"region",r({},o,{get:function(){return A},set:function(N){A=N,this.hasBeenReset=!0}})),Object.defineProperty(e,"vertical",r({},o,{get:function(){return y},set:function(N){var M=c(N);if(M===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=M,this.hasBeenReset=!0}})),Object.defineProperty(e,"snapToLines",r({},o,{get:function(){return x},set:function(N){x=!!N,this.hasBeenReset=!0}})),Object.defineProperty(e,"line",r({},o,{get:function(){return C},set:function(N){if(typeof N!="number"&&N!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");C=N,this.hasBeenReset=!0}})),Object.defineProperty(e,"lineAlign",r({},o,{get:function(){return w},set:function(N){var M=a(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");w=M,this.hasBeenReset=!0}})),Object.defineProperty(e,"position",r({},o,{get:function(){return b},set:function(N){if(N<0||N>100)throw new Error("Position must be between 0 and 100.");b=N,this.hasBeenReset=!0}})),Object.defineProperty(e,"positionAlign",r({},o,{get:function(){return _},set:function(N){var M=a(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");_=M,this.hasBeenReset=!0}})),Object.defineProperty(e,"size",r({},o,{get:function(){return O},set:function(N){if(N<0||N>100)throw new Error("Size must be between 0 and 100.");O=N,this.hasBeenReset=!0}})),Object.defineProperty(e,"align",r({},o,{get:function(){return L},set:function(N){var M=a(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");L=M,this.hasBeenReset=!0}})),e.displayState=void 0}return i.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},i}()},"./src/utils/vttparser.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"parseTimeStamp",function(){return h}),g.d(T,"fixLineBreaks",function(){return t}),g.d(T,"VTTParser",function(){return s});var S=g("./src/utils/vttcue.ts"),m=function(){function e(){}var o=e.prototype;return o.decode=function(u,f){if(!u)return"";if(typeof u!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(u))},e}();function h(e){function o(u,f,p,v){return(u|0)*3600+(f|0)*60+(p|0)+parseFloat(v||0)}var l=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?o(l[2],l[3],0,l[4]):o(l[1],l[2],l[3],l[4]):null}var c=function(){function e(){this.values=Object.create(null)}var o=e.prototype;return o.set=function(u,f){!this.get(u)&&f!==""&&(this.values[u]=f)},o.get=function(u,f,p){return p?this.has(u)?this.values[u]:f[p]:this.has(u)?this.values[u]:f},o.has=function(u){return u in this.values},o.alt=function(u,f,p){for(var v=0;v<p.length;++v)if(f===p[v]){this.set(u,f);break}},o.integer=function(u,f){/^-?\d+$/.test(f)&&this.set(u,parseInt(f,10))},o.percent=function(u,f){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(f)){var p=parseFloat(f);if(p>=0&&p<=100)return this.set(u,p),!0}return!1},e}();function a(e,o,l,u){var f=u?e.split(u):[e];for(var p in f){if(typeof f[p]!="string")continue;var v=f[p].split(l);if(v.length!==2)continue;var A=v[0],y=v[1];o(A,y)}}var r=new S.default(0,0,""),i=r.align==="middle"?"middle":"center";function n(e,o,l){var u=e;function f(){var A=h(e);if(A===null)throw new Error("Malformed timestamp: "+u);return e=e.replace(/^[^\sa-zA-Z-]+/,""),A}function p(A,y){var x=new c;a(A,function(b,_){var O;switch(b){case"region":for(var L=l.length-1;L>=0;L--)if(l[L].id===_){x.set(b,l[L].region);break}break;case"vertical":x.alt(b,_,["rl","lr"]);break;case"line":O=_.split(","),x.integer(b,O[0]),x.percent(b,O[0])&&x.set("snapToLines",!1),x.alt(b,O[0],["auto"]),O.length===2&&x.alt("lineAlign",O[1],["start",i,"end"]);break;case"position":O=_.split(","),x.percent(b,O[0]),O.length===2&&x.alt("positionAlign",O[1],["start",i,"end","line-left","line-right","auto"]);break;case"size":x.percent(b,_);break;case"align":x.alt(b,_,["start",i,"end","left","right"]);break}},/:/,/\s/),y.region=x.get("region",null),y.vertical=x.get("vertical","");var C=x.get("line","auto");C==="auto"&&r.line===-1&&(C=-1),y.line=C,y.lineAlign=x.get("lineAlign","start"),y.snapToLines=x.get("snapToLines",!0),y.size=x.get("size",100),y.align=x.get("align",i);var w=x.get("position","auto");w==="auto"&&r.position===50&&(w=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=w}function v(){e=e.replace(/^\s+/,"")}if(v(),o.startTime=f(),v(),e.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+u);e=e.substr(3),v(),o.endTime=f(),v(),p(e,o)}function t(e){return e.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var s=function(){function e(){this.state="INITIAL",this.buffer="",this.decoder=new m,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var o=e.prototype;return o.parse=function(u){var f=this;u&&(f.buffer+=f.decoder.decode(u,{stream:!0}));function p(){var w=f.buffer,b=0;for(w=t(w);b<w.length&&w[b]!=="\r"&&w[b]!==`
|
|
|
`;)++b;var _=w.substr(0,b);return w[b]==="\r"&&++b,w[b]===`
|
|
|
`&&++b,f.buffer=w.substr(b),_}function v(w){a(w,function(b,_){},/:/)}try{var A="";if(f.state==="INITIAL"){if(!/\r\n|\n/.test(f.buffer))return this;A=p();var y=A.match(/^()?WEBVTT([ \t].*)?$/);if(!y||!y[0])throw new Error("Malformed WebVTT signature.");f.state="HEADER"}for(var x=!1;f.buffer;){if(!/\r\n|\n/.test(f.buffer))return this;x?x=!1:A=p();switch(f.state){case"HEADER":/:/.test(A)?v(A):A||(f.state="ID");continue;case"NOTE":A||(f.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(A)){f.state="NOTE";break}if(!A)continue;if(f.cue=new S.default(0,0,""),f.state="CUE",A.indexOf("-->")===-1){f.cue.id=A;continue}case"CUE":if(!f.cue){f.state="BADCUE";continue}try{n(A,f.cue,f.regionList)}catch(w){f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":{var C=A.indexOf("-->")!==-1;if(!A||C&&(x=!0)){f.oncue&&f.cue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}if(f.cue===null)continue;f.cue.text&&(f.cue.text+=`
|
|
|
`),f.cue.text+=A}continue;case"BADCUE":A||(f.state="ID")}}}catch(w){f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},o.flush=function(){var u=this;try{if((u.cue||u.state==="HEADER")&&(u.buffer+=`
|
|
|
|
|
|
`,u.parse()),u.state==="INITIAL"||u.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(f){u.onparsingerror&&u.onparsingerror(f)}return u.onflush&&u.onflush(),this},e}()},"./src/utils/webvtt-parser.ts":function(E,T,g){"use strict";g.r(T),g.d(T,"generateCueId",function(){return s}),g.d(T,"parseWebVTT",function(){return o});var S=g("./src/polyfills/number.ts"),m=g("./src/utils/vttparser.ts"),h=g("./src/demux/id3.ts"),c=g("./src/utils/timescale-conversion.ts"),a=g("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,i=function(u,f,p){return p===void 0&&(p=0),u.substr(p,f.length)===f},n=function(u){var f=parseInt(u.substr(-3)),p=parseInt(u.substr(-6,2)),v=parseInt(u.substr(-9,2)),A=u.length>9?parseInt(u.substr(0,u.indexOf(":"))):0;if(!Object(S.isFiniteNumber)(f)||!Object(S.isFiniteNumber)(p)||!Object(S.isFiniteNumber)(v)||!Object(S.isFiniteNumber)(A))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+u);return f+=1e3*p,f+=60*1e3*v,f+=60*60*1e3*A,f},t=function(u){for(var f=5381,p=u.length;p;)f=f*33^u.charCodeAt(--p);return(f>>>0).toString()};function s(l,u,f){return t(l.toString())+t(u.toString())+t(f)}var e=function(u,f,p){var v=u[f],A=u[v.prevCC];if(!A||!A.new&&v.new){u.ccOffset=u.presentationOffset=v.start,v.new=!1;return}for(;(y=A)!==null&&y!==void 0&&y.new;){var y;u.ccOffset+=v.start-A.start,v.new=!1,v=A,A=u[v.prevCC]}u.presentationOffset=p};function o(l,u,f,p,v,A,y,x){var C=new m.VTTParser,w=Object(h.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(r,`
|
|
|
`).split(`
|
|
|
`),b=[],_=Object(c.toMpegTsClockFromTimescale)(u,f),O="00:00.000",L=0,D=0,N,M=!0,F=!1;C.oncue=function(R){var j=p[v],B=p.ccOffset,K=(L-_)/9e4;if(j!=null&&j.new&&(D!==void 0?B=p.ccOffset=j.start:e(p,v,K)),K&&(B=K-p.presentationOffset),F){var U=R.endTime-R.startTime,z=Object(a.normalizePts)((R.startTime+B-D)*9e4,A*9e4)/9e4;R.startTime=z,R.endTime=z+U}var V=R.text.trim();R.text=decodeURIComponent(encodeURIComponent(V)),R.id||(R.id=s(R.startTime,R.endTime,V)),R.endTime>0&&b.push(R)},C.onparsingerror=function(R){N=R},C.onflush=function(){if(N){x(N);return}y(b)},w.forEach(function(R){if(M)if(i(R,"X-TIMESTAMP-MAP=")){M=!1,F=!0,R.substr(16).split(",").forEach(function(j){i(j,"LOCAL:")?O=j.substr(6):i(j,"MPEGTS:")&&(L=parseInt(j.substr(7)))});try{D=n(O)/1e3}catch(j){F=!1,N=j}return}else R===""&&(M=!1);C.parse(R+`
|
|
|
`)}),C.flush()}},"./src/utils/xhr-loader.ts":function(E,T,g){"use strict";g.r(T);var S=g("./src/utils/logger.ts"),m=g("./src/loader/load-stats.ts"),h=/^age:\s*[\d.]+\s*$/m,c=function(){function a(i){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=i?i.xhrSetup:null,this.stats=new m.LoadStats,this.retryDelay=0}var r=a.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},r.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(n,t,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=t,this.callbacks=s,this.retryDelay=t.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,t=this.context;if(!n)return;var s=this.loader=new self.XMLHttpRequest,e=this.stats;e.loading.first=0,e.loaded=0;var o=this.xhrSetup;try{if(o)try{o(s,t.url)}catch(f){s.open("GET",t.url,!0),o(s,t.url)}s.readyState||s.open("GET",t.url,!0);var l=this.context.headers;if(l)for(var u in l)s.setRequestHeader(u,l[u])}catch(f){this.callbacks.onError({code:s.status,text:f.message},t,s);return}t.rangeEnd&&s.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),s.onreadystatechange=this.readystatechange.bind(this),s.onprogress=this.loadprogress.bind(this),s.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),s.send()},r.readystatechange=function(){var n=this.context,t=this.loader,s=this.stats;if(!n||!t)return;var e=t.readyState,o=this.config;if(s.aborted)return;if(e>=2)if(self.clearTimeout(this.requestTimeout),s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start)),e===4){t.onreadystatechange=null,t.onprogress=null;var l=t.status;if(l>=200&&l<300){s.loading.end=Math.max(self.performance.now(),s.loading.first);var u,f;if(n.responseType==="arraybuffer"?(u=t.response,f=u.byteLength):(u=t.responseText,f=u.length),s.loaded=s.total=f,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(s,n,u,t),!this.callbacks)return;var v={url:t.responseURL,data:u};this.callbacks.onSuccess(v,s,n,t)}else s.retry>=o.maxRetry||l>=400&&l<499?(S.logger.error(l+" while loading "+n.url),this.callbacks.onError({code:l,text:t.statusText},n,t)):(S.logger.warn(l+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,o.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)},r.loadtimeout=function(){S.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(n){var t=this.stats;t.loaded=n.loaded,n.lengthComputable&&(t.total=n.total)},r.getCacheAge=function(){var n=null;if(this.loader&&h.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");n=t?parseFloat(t):null}return n},a}();T.default=c}}).default})},v3Qx:function(H,k){var d={}.toString;H.exports=Array.isArray||function(I){return d.call(I)=="[object Array]"}},v56E:function(H,k,d){},v5uJ:function(H,k,d){var I=d("ProS"),E=d("2B6p"),T=E.updateCenterAndZoom;I.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(g,S){S.eachComponent({mainType:"series",subType:"tree",query:g},function(m){var h=g.dataIndex,c=m.getData().tree,a=c.getNodeByDataIndex(h);a.isExpand=!a.isExpand})}),I.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(g,S){S.eachComponent({mainType:"series",subType:"tree",query:g},function(m){var h=m.coordinateSystem,c=T(h,g);m.setCenter&&m.setCenter(c.center),m.setZoom&&m.setZoom(c.zoom)})})},"vF/C":function(H,k,d){var I=d("bLfw");I.registerSubTypeDefaulter("visualMap",function(E){return!E.categories&&(!(E.pieces?E.pieces.length>0:E.splitNumber>0)||E.calculable)?"continuous":"piecewise"})},vKoX:function(H,k,d){var I=d("SrGk"),E=d("bYtY");function T(m,h){I.call(this,m,h,["filter"],"__filter_in_use__","_shadowDom")}E.inherits(T,I),T.prototype.addWithoutUpdate=function(m,h){if(h&&g(h.style)){var c;if(h._shadowDom){c=h._shadowDom;var a=this.getDefs(!0);a.contains(h._shadowDom)||this.addDom(c)}else c=this.add(h);this.markUsed(h);var r=c.getAttribute("id");m.style.filter="url(#"+r+")"}},T.prototype.add=function(m){var h=this.createElement("filter");return m._shadowDomId=m._shadowDomId||this.nextId++,h.setAttribute("id","zr"+this._zrId+"-shadow-"+m._shadowDomId),this.updateDom(m,h),this.addDom(h),h},T.prototype.update=function(m,h){var c=h.style;if(g(c)){var a=this;I.prototype.update.call(this,h,function(){a.updateDom(h,h._shadowDom)})}else this.remove(m,h)},T.prototype.remove=function(m,h){h._shadowDomId!=null&&(this.removeDom(m),m.style.filter="")},T.prototype.updateDom=function(m,h){var c=h.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var a=m.style,r=m.scale&&m.scale[0]||1,i=m.scale&&m.scale[1]||1,n,t,s,e;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)n=a.shadowOffsetX||0,t=a.shadowOffsetY||0,s=a.shadowBlur,e=a.shadowColor;else if(a.textShadowBlur)n=a.textShadowOffsetX||0,t=a.textShadowOffsetY||0,s=a.textShadowBlur,e=a.textShadowColor;else{this.removeDom(h,a);return}c.setAttribute("dx",n/r),c.setAttribute("dy",t/i),c.setAttribute("flood-color",e);var o=s/2/r,l=s/2/i,u=o+" "+l;c.setAttribute("stdDeviation",u),h.setAttribute("x","-100%"),h.setAttribute("y","-100%"),h.setAttribute("width",Math.ceil(s/2*200)+"%"),h.setAttribute("height",Math.ceil(s/2*200)+"%"),h.appendChild(c),m._shadowDom=h},T.prototype.markUsed=function(m){m._shadowDom&&I.prototype.markUsed.call(this,m._shadowDom)};function g(m){return m&&(m.shadowBlur||m.shadowOffsetX||m.shadowOffsetY||m.textShadowBlur||m.textShadowOffsetX||m.textShadowOffsetY)}var S=T;H.exports=S},vL6D:function(H,k,d){var I=d("bYtY"),E=d("+rIm"),T=d("IwbS"),g=d("7bkD"),S=d("Znkb"),m=d("WN+l"),h=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine"],i=S.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,s,e,o){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new T.Group;var f=g.layout(t),p=new E(t,f);I.each(a,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),I.each(r,function(v){t.get(v+".show")&&this["_"+v](t)},this),T.groupTransition(u,this._axisGroup,t),i.superCall(this,"render",t,s,e,o)},remove:function(){c(this)},_splitLine:function(t){var s=t.axis;if(s.scale.isBlank())return;var e=t.getModel("splitLine"),o=e.getModel("lineStyle"),l=o.get("width"),u=o.get("color");u=u instanceof Array?u:[u];for(var f=t.coordinateSystem.getRect(),p=s.isHorizontal(),v=[],A=0,y=s.getTicksCoords({tickModel:e}),x=[],C=[],w=0;w<y.length;++w){var b=s.toGlobalCoord(y[w].coord);p?(x[0]=b,x[1]=f.y,C[0]=b,C[1]=f.y+f.height):(x[0]=f.x,x[1]=b,C[0]=f.x+f.width,C[1]=b);var _=A++%u.length;v[_]=v[_]||[],v[_].push(new T.Line({subPixelOptimize:!0,shape:{x1:x[0],y1:x[1],x2:C[0],y2:C[1]},style:{lineWidth:l},silent:!0}))}for(var w=0;w<v.length;++w)this.group.add(T.mergePath(v[w],{style:{stroke:u[w%u.length],lineDash:o.getLineDash(l),lineWidth:l},silent:!0}))},_splitArea:function(t){h(this,this._axisGroup,t,t)}}),n=i;H.exports=n},vWvF:function(H,k,d){var I=d("Bq2U"),E=d("SUKs"),T=d("bYtY"),g=T.isString,S=T.isFunction,m=T.isObject,h=T.isArrayLike,c=T.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(e,o){var l,u=!1,f=this,p=this.__zr;if(e){var v=e.split("."),A=f;u=v[0]==="shape";for(var y=0,x=v.length;y<x;y++){if(!A)continue;A=A[v[y]]}A&&(l=A)}else l=f;if(!l){E('Property "'+e+'" is not existed in element '+f.id);return}var C=f.animators,w=new I(l,o);return w.during(function(b){f.dirty(u)}).done(function(){C.splice(c(C,w),1)}),C.push(w),p&&p.animation.addAnimator(w),w},stopAnimation:function(e){for(var o=this.animators,l=o.length,u=0;u<l;u++)o[u].stop(e);return o.length=0,this},animateTo:function(e,o,l,u,f,p){r(this,e,o,l,u,f,p)},animateFrom:function(e,o,l,u,f,p){r(this,e,o,l,u,f,p,!0)}};function r(s,e,o,l,u,f,p,v){g(l)?(f=u,u=l,l=0):S(u)?(f=u,u="linear",l=0):S(l)?(f=l,l=0):S(o)?(f=o,o=500):o||(o=500),s.stopAnimation(),i(s,"",s,e,o,l,v);var A=s.animators.slice(),y=A.length;function x(){y--,y||f&&f()}y||f&&f();for(var C=0;C<A.length;C++)A[C].done(x).start(u,p)}function i(s,e,o,l,u,f,p){var v={},A=0;for(var y in l){if(!l.hasOwnProperty(y))continue;o[y]!=null?m(l[y])&&!h(l[y])?i(s,e?e+"."+y:y,o[y],l[y],u,f,p):(p?(v[y]=o[y],n(s,e,y,l[y])):v[y]=l[y],A++):l[y]!=null&&!p&&n(s,e,y,l[y])}A>0&&s.animate(e,!1).when(u==null?500:u,v).delay(f||0)}function n(s,e,o,l){if(!e)s.attr(o,l);else{var u={};u[e]={},u[e][o]=l,s.attr(u)}}var t=a;H.exports=t},vZ6x:function(H,k,d){var I=d("Tghj"),E=I.__DEV__,T=d("bYtY"),g=d("IwbS"),S=d("4NO4"),m=d("9KIM"),h=T.each,c=T.indexOf,a=T.curry,r=["dataToPoint","pointToData"],i=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function n(w,b,_){var O=this._targetInfoList=[],L={},D=e(b,w);h(o,function(N,M){(!_||!_.include||c(_.include,M)>=0)&&N(D,O,L)})}var t=n.prototype;t.setOutputRanges=function(w,b){this.matchOutputRanges(w,b,function(_,O,L){if((_.coordRanges||(_.coordRanges=[])).push(O),!_.coordRange){_.coordRange=O;var D=f[_.brushType](0,L,O);_.__rangeOffset={offset:v[_.brushType](D.values,_.range,[1,1]),xyMinMax:D.xyMinMax}}})},t.matchOutputRanges=function(w,b,_){h(w,function(O){var L=this.findTargetInfo(O,b);L&&L!==!0&&T.each(L.coordSyses,function(D){var N=f[O.brushType](1,D,O.range);_(O,N.values,D,b)})},this)},t.setInputRanges=function(w,b){h(w,function(_){var O=this.findTargetInfo(_,b);if(_.range=_.range||[],O&&O!==!0){_.panelId=O.panelId;var L=f[_.brushType](0,O.coordSys,_.coordRange),D=_.__rangeOffset;_.range=D?v[_.brushType](L.values,D.offset,y(L.xyMinMax,D.xyMinMax)):L.values}},this)},t.makePanelOpts=function(w,b){return T.map(this._targetInfoList,function(_){var O=_.getPanelRect();return{panelId:_.panelId,defaultBrushType:b&&b(_),clipPath:m.makeRectPanelClipPath(O),isTargetByCursor:m.makeRectIsTargetByCursor(O,w,_.coordSysModel),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(O)}})},t.controlSeries=function(w,b,_){var O=this.findTargetInfo(w,_);return O===!0||O&&c(O.coordSyses,b.coordinateSystem)>=0},t.findTargetInfo=function(w,b){for(var _=this._targetInfoList,O=e(b,w),L=0;L<_.length;L++){var D=_[L],N=w.panelId;if(N){if(D.panelId===N)return D}else for(var L=0;L<l.length;L++)if(l[L](O,D))return D}return!0};function s(w){return w[0]>w[1]&&w.reverse(),w}function e(w,b){return S.parseFinder(w,b,{includeMainTypes:i})}var o={grid:function(w,b){var _=w.xAxisModels,O=w.yAxisModels,L=w.gridModels,D=T.createHashMap(),N={},M={};if(!_&&!O&&!L)return;h(_,function(F){var R=F.axis.grid.model;D.set(R.id,R),N[R.id]=!0}),h(O,function(F){var R=F.axis.grid.model;D.set(R.id,R),M[R.id]=!0}),h(L,function(F){D.set(F.id,F),N[F.id]=!0,M[F.id]=!0}),D.each(function(F){var R=F.coordinateSystem,j=[];h(R.getCartesians(),function(B,K){(c(_,B.getAxis("x").model)>=0||c(O,B.getAxis("y").model)>=0)&&j.push(B)}),b.push({panelId:"grid--"+F.id,gridModel:F,coordSysModel:F,coordSys:j[0],coordSyses:j,getPanelRect:u.grid,xAxisDeclared:N[F.id],yAxisDeclared:M[F.id]})})},geo:function(w,b){h(w.geoModels,function(_){var O=_.coordinateSystem;b.push({panelId:"geo--"+_.id,geoModel:_,coordSysModel:_,coordSys:O,coordSyses:[O],getPanelRect:u.geo})})}},l=[function(w,b){var _=w.xAxisModel,O=w.yAxisModel,L=w.gridModel;return!L&&_&&(L=_.axis.grid.model),!L&&O&&(L=O.axis.grid.model),L&&L===b.gridModel},function(w,b){var _=w.geoModel;return _&&_===b.geoModel}],u={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var w=this.coordSys,b=w.getBoundingRect().clone();return b.applyTransform(g.getTransform(w)),b}},f={lineX:a(p,0),lineY:a(p,1),rect:function(w,b,_){var O=b[r[w]]([_[0][0],_[1][0]]),L=b[r[w]]([_[0][1],_[1][1]]),D=[s([O[0],L[0]]),s([O[1],L[1]])];return{values:D,xyMinMax:D}},polygon:function(w,b,_){var O=[[Infinity,-Infinity],[Infinity,-Infinity]],L=T.map(_,function(D){var N=b[r[w]](D);return O[0][0]=Math.min(O[0][0],N[0]),O[1][0]=Math.min(O[1][0],N[1]),O[0][1]=Math.max(O[0][1],N[0]),O[1][1]=Math.max(O[1][1],N[1]),N});return{values:L,xyMinMax:O}}};function p(w,b,_,O){var L=_.getAxis(["x","y"][w]),D=s(T.map([0,1],function(M){return b?L.coordToData(L.toLocalCoord(O[M])):L.toGlobalCoord(L.dataToCoord(O[M]))})),N=[];return N[w]=D,N[1-w]=[NaN,NaN],{values:D,xyMinMax:N}}var v={lineX:a(A,0),lineY:a(A,1),rect:function(w,b,_){return[[w[0][0]-_[0]*b[0][0],w[0][1]-_[0]*b[0][1]],[w[1][0]-_[1]*b[1][0],w[1][1]-_[1]*b[1][1]]]},polygon:function(w,b,_){return T.map(w,function(O,L){return[O[0]-_[0]*b[L][0],O[1]-_[1]*b[L][1]]})}};function A(w,b,_,O){return[b[0]-O[w]*_[0],b[1]-O[w]*_[1]]}function y(w,b){var _=x(w),O=x(b),L=[_[0]/O[0],_[1]/O[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function x(w){return w?[w[0][1]-w[0][0],w[1][1]-w[1][0]]:[NaN,NaN]}var C=n;H.exports=C},vZI5:function(H,k,d){var I=d("bYtY"),E=d("T4UG"),T=d("5GhG"),g=T.seriesModelMixin,S=E.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,c,a){var r=c.getItemLayout(h);return r&&a.rect(r.brushRect)}});I.mixin(S,g,!0);var m=S;H.exports=m},vafp:function(H,k,d){var I=d("bYtY"),E=d("8nly");function T(m){if(!m.UTF8Encoding)return m;var h=m.UTF8Scale;h==null&&(h=1024);for(var c=m.features,a=0;a<c.length;a++)for(var r=c[a],i=r.geometry,n=i.coordinates,t=i.encodeOffsets,s=0;s<n.length;s++){var e=n[s];if(i.type==="Polygon")n[s]=g(e,t[s],h);else if(i.type==="MultiPolygon")for(var o=0;o<e.length;o++){var l=e[o];e[o]=g(l,t[s][o],h)}}return m.UTF8Encoding=!1,m}function g(m,h,c){for(var a=[],r=h[0],i=h[1],n=0;n<m.length;n+=2){var t=m.charCodeAt(n)-64,s=m.charCodeAt(n+1)-64;t=t>>1^-(t&1),s=s>>1^-(s&1),t+=r,s+=i,r=t,i=s,a.push([t/c,s/c])}return a}function S(m,h){return T(m),I.map(I.filter(m.features,function(c){return c.geometry&&c.properties&&c.geometry.coordinates.length>0}),function(c){var a=c.properties,r=c.geometry,i=r.coordinates,n=[];r.type==="Polygon"&&n.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),r.type==="MultiPolygon"&&I.each(i,function(s){s[0]&&n.push({type:"polygon",exterior:s[0],interiors:s.slice(1)})});var t=new E(a[h||"name"],n,a.cp);return t.properties=a,t})}H.exports=S},vcCh:function(H,k,d){var I=d("ProS");d("0qV/"),I.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(E,T){T.eachComponent({mainType:"series",subType:"sankey",query:E},function(g){g.setNodePosition(E.dataIndex,[E.localX,E.localY])})})},vewr:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.getPointerEvent=I,k.stopEvent=E,k.setCapture=c,k.releaseCapture=a;function I(r){return r.changedTouches?r.changedTouches[0]:r.touches?r.touches[0]:r}function E(r){r.stopPropagation(),r.preventDefault()}var T=!1,g=null;document.captureElement=null;function S(r){if(T)return;var i=new r.constructor(r.type,r);T=!0,document.captureElement?document.captureElement.dispatchEvent(i):g.dispatchEvent(i),T=!1,r.stopPropagation(),i.defaultPrevented&&r.preventDefault(),r.type==="mouseup"&&a()}function m(){var r=document.getElementById("noVNC_mouse_capture_elem");r.style.cursor=window.getComputedStyle(document.captureElement).cursor}var h=new MutationObserver(m);function c(r){if(r.setCapture)r.setCapture(),document.captureElement=r,r.addEventListener("mouseup",a);else{a();var i=document.getElementById("noVNC_mouse_capture_elem");i===null&&(i=document.createElement("div"),i.id="noVNC_mouse_capture_elem",i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.width="100%",i.style.height="100%",i.style.zIndex=1e4,i.style.display="none",document.body.appendChild(i),i.addEventListener("contextmenu",S),i.addEventListener("mousemove",S),i.addEventListener("mouseup",S)),document.captureElement=r,h.observe(r,{attributes:!0}),m(),i.style.display="",window.addEventListener("mousemove",S),window.addEventListener("mouseup",S)}}function a(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;g=document.captureElement,document.captureElement=null,h.disconnect();var r=document.getElementById("noVNC_mouse_capture_elem");r.style.display="none",window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",S)}}},vg9a:function(H,k,d){},"vk+C":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("RZPm"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},w5pM:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="PlusCircleOutlined";var h=k.a=E.forwardRef(m)},w6Tc:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("apAg"));function E(g){return g&&g.__esModule?g:{default:g}}var T=I;k.default=T,H.exports=T},w7YG:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.StreamCipher,S=E.algo,m=S.RC4=g.extend({_doReset:function(){for(var r=this._key,i=r.words,n=r.sigBytes,t=this._S=[],s=0;s<256;s++)t[s]=s;for(var s=0,e=0;s<256;s++){var o=s%n,l=i[o>>>2]>>>24-o%4*8&255;e=(e+t[s]+l)%256;var u=t[s];t[s]=t[e],t[e]=u}this._i=this._j=0},_doProcessBlock:function(r,i){r[i]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var a=this._S,r=this._i,i=this._j,n=0,t=0;t<4;t++){r=(r+1)%256,i=(i+a[r])%256;var s=a[r];a[r]=a[i],a[i]=s,n|=a[(a[r]+a[i])%256]<<24-t*8}return this._i=r,this._j=i,n}E.RC4=g._createHelper(m);var c=S.RC4Drop=m.extend({cfg:m.cfg.extend({drop:192}),_doReset:function(){m._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)h.call(this)}});E.RC4Drop=g._createHelper(c)}(),I.RC4})},wCAj:function(H,k,d){"use strict";var I=d("cDf5"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("J4zp"),m=d.n(S),h=d("pVnL"),c=d.n(h),a=d("q1tI"),r=d("TSYQ"),i=d.n(r),n=d("BGR+"),t=d("rePB"),s=d("VTBJ"),e=d("KQm4"),o=d("U8pU"),l=d("ODXe"),u=d("Gytx"),f=d.n(u),p=d("Kwbf"),v=d("t23M"),A=d("qx4F");function y(Gt){return null}var x=y;function C(Gt){return null}var w=C,b=d("Ff2n"),_=d("c+Xe"),O="RC_TABLE_KEY";function L(Gt){return Gt==null?[]:Array.isArray(Gt)?Gt:[Gt]}function D(Gt,Xr){if(!Xr&&typeof Xr!="number")return Gt;for(var rn=L(Xr),fn=Gt,Xe=0;Xe<rn.length;Xe+=1){if(!fn)return null;var _t=rn[Xe];fn=fn[_t]}return fn}function N(Gt){var Xr=[],rn={};return Gt.forEach(function(fn){for(var Xe=fn||{},_t=Xe.key,lr=Xe.dataIndex,rr=_t||L(lr).join("-")||O;rn[rr];)rr="".concat(rr,"_next");rn[rr]=!0,Xr.push(rr)}),Xr}function M(){var Gt={};function Xr(_t,lr){lr&&Object.keys(lr).forEach(function(rr){var Or=lr[rr];Or&&Object(o.a)(Or)==="object"?(_t[rr]=_t[rr]||{},Xr(_t[rr],Or)):_t[rr]=Or})}for(var rn=arguments.length,fn=new Array(rn),Xe=0;Xe<rn;Xe++)fn[Xe]=arguments[Xe];return fn.forEach(function(_t){Xr(Gt,_t)}),Gt}function F(Gt){return Gt!=null}function R(Gt){return Gt&&Object(o.a)(Gt)==="object"&&!Array.isArray(Gt)&&!a.isValidElement(Gt)}function j(Gt){return typeof Gt=="string"?!0:Object(_.c)(Gt)}function B(Gt,Xr){var rn,fn=Gt.prefixCls,Xe=Gt.className,_t=Gt.record,lr=Gt.index,rr=Gt.dataIndex,Or=Gt.render,Mr=Gt.children,Wr=Gt.component,nn=Wr===void 0?"td":Wr,wn=Gt.colSpan,On=Gt.rowSpan,Rn=Gt.fixLeft,Nn=Gt.fixRight,yn=Gt.firstFixLeft,Sn=Gt.lastFixLeft,_n=Gt.firstFixRight,Hn=Gt.lastFixRight,Yn=Gt.appendNode,Zn=Gt.additionalProps,yi=Zn===void 0?{}:Zn,gi=Gt.ellipsis,Di=Gt.align,Ui=Gt.rowType,Ei=Gt.isSticky,_i="".concat(fn,"-cell"),Ni,jn;if(Mr)jn=Mr;else{var Ii=D(_t,rr);if(jn=Ii,Or){var Hi=Or(Ii,_t,lr);R(Hi)?(jn=Hi.children,Ni=Hi.props):jn=Hi}}Object(o.a)(jn)==="object"&&!Array.isArray(jn)&&!a.isValidElement(jn)&&(jn=null),gi&&(Sn||_n)&&(jn=a.createElement("span",{className:"".concat(_i,"-content")},jn));var fr=Ni||{},Dr=fr.colSpan,Qr=fr.rowSpan,Nr=fr.style,Yt=fr.className,xr=Object(b.a)(fr,["colSpan","rowSpan","style","className"]),tr=Dr!==void 0?Dr:wn,jr=Qr!==void 0?Qr:On;if(tr===0||jr===0)return null;var Ur={},dn=typeof Rn=="number",sn=typeof Nn=="number";dn&&(Ur.position="sticky",Ur.left=Rn),sn&&(Ur.position="sticky",Ur.right=Nn);var bn={};Di&&(bn.textAlign=Di);var Bn,Xn=gi===!0?{showTitle:!0}:gi;Xn&&(Xn.showTitle||Ui==="header")&&(typeof jn=="string"||typeof jn=="number"?Bn=jn.toString():a.isValidElement(jn)&&typeof jn.props.children=="string"&&(Bn=jn.props.children));var $n=Object(s.a)(Object(s.a)(Object(s.a)({title:Bn},xr),yi),{},{colSpan:tr&&tr!==1?tr:null,rowSpan:jr&&jr!==1?jr:null,className:i()(_i,Xe,(rn={},Object(t.a)(rn,"".concat(_i,"-fix-left"),dn),Object(t.a)(rn,"".concat(_i,"-fix-left-first"),yn),Object(t.a)(rn,"".concat(_i,"-fix-left-last"),Sn),Object(t.a)(rn,"".concat(_i,"-fix-right"),sn),Object(t.a)(rn,"".concat(_i,"-fix-right-first"),_n),Object(t.a)(rn,"".concat(_i,"-fix-right-last"),Hn),Object(t.a)(rn,"".concat(_i,"-ellipsis"),gi),Object(t.a)(rn,"".concat(_i,"-with-append"),Yn),Object(t.a)(rn,"".concat(_i,"-fix-sticky"),(dn||sn)&&Ei),rn),yi.className,Yt),style:Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},yi.style),bn),Ur),Nr),ref:j(nn)?Xr:null});return a.createElement(nn,Object.assign({},$n),Yn,jn)}var K=a.forwardRef(B);K.displayName="Cell";var U=a.memo(K,function(Gt,Xr){return Xr.shouldCellUpdate?!Xr.shouldCellUpdate(Xr.record,Gt.record):!1}),z=U,V=a.createContext(null),Y=V;function J(Gt,Xr,rn,fn,Xe){var _t=rn[Gt]||{},lr=rn[Xr]||{},rr,Or;_t.fixed==="left"?rr=fn.left[Gt]:lr.fixed==="right"&&(Or=fn.right[Xr]);var Mr=!1,Wr=!1,nn=!1,wn=!1,On=rn[Xr+1],Rn=rn[Gt-1];if(Xe==="rtl"){if(rr!==void 0){var Nn=Rn&&Rn.fixed==="left";wn=!Nn}else if(Or!==void 0){var yn=On&&On.fixed==="right";nn=!yn}}else if(rr!==void 0){var Sn=On&&On.fixed==="left";Mr=!Sn}else if(Or!==void 0){var _n=Rn&&Rn.fixed==="right";Wr=!_n}return{fixLeft:rr,fixRight:Or,lastFixLeft:Mr,firstFixRight:Wr,lastFixRight:nn,firstFixLeft:wn,isSticky:fn.isSticky}}function se(Gt){var Xr=Gt.cells,rn=Gt.stickyOffsets,fn=Gt.flattenColumns,Xe=Gt.rowComponent,_t=Gt.cellComponent,lr=Gt.onHeaderRow,rr=Gt.index,Or=a.useContext(Y),Mr=Or.prefixCls,Wr=Or.direction,nn;lr&&(nn=lr(Xr.map(function(On){return On.column}),rr));var wn=N(Xr.map(function(On){return On.column}));return a.createElement(Xe,Object.assign({},nn),Xr.map(function(On,Rn){var Nn=On.column,yn=J(On.colStart,On.colEnd,fn,rn,Wr),Sn;return Nn&&Nn.onHeaderCell&&(Sn=On.column.onHeaderCell(Nn)),a.createElement(z,Object.assign({},On,{ellipsis:Nn.ellipsis,align:Nn.align,component:_t,prefixCls:Mr,key:wn[Rn]},yn,{additionalProps:Sn,rowType:"header"}))}))}se.displayName="HeaderRow";var $=se;function ae(Gt){var Xr=[];function rn(lr,rr){var Or=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Xr[Or]=Xr[Or]||[];var Mr=rr,Wr=lr.filter(Boolean).map(function(nn){var wn={key:nn.key,className:nn.className||"",children:nn.title,column:nn,colStart:Mr},On=1,Rn=nn.children;return Rn&&Rn.length>0&&(On=rn(Rn,Mr,Or+1).reduce(function(Nn,yn){return Nn+yn},0),wn.hasSubColumns=!0),"colSpan"in nn&&(On=nn.colSpan),"rowSpan"in nn&&(wn.rowSpan=nn.rowSpan),wn.colSpan=On,wn.colEnd=wn.colStart+On-1,Xr[Or].push(wn),Mr+=On,On});return Wr}rn(Gt,0);for(var fn=Xr.length,Xe=function(rr){Xr[rr].forEach(function(Or){!("rowSpan"in Or)&&!Or.hasSubColumns&&(Or.rowSpan=fn-rr)})},_t=0;_t<fn;_t+=1)Xe(_t);return Xr}function ge(Gt){var Xr=Gt.stickyOffsets,rn=Gt.columns,fn=Gt.flattenColumns,Xe=Gt.onHeaderRow,_t=a.useContext(Y),lr=_t.prefixCls,rr=_t.getComponent,Or=a.useMemo(function(){return ae(rn)},[rn]),Mr=rr(["header","wrapper"],"thead"),Wr=rr(["header","row"],"tr"),nn=rr(["header","cell"],"th");return a.createElement(Mr,{className:"".concat(lr,"-thead")},Or.map(function(wn,On){var Rn=a.createElement($,{key:On,flattenColumns:fn,cells:wn,stickyOffsets:Xr,rowComponent:Wr,cellComponent:nn,onHeaderRow:Xe,index:On});return Rn}))}var pe=ge,Ne="RC_TABLE_INTERNAL_COL_DEFINE";function de(Gt){var Xr=Gt.expandable,rn=Object(b.a)(Gt,["expandable"]);return"expandable"in Gt?Object(s.a)(Object(s.a)({},rn),Xr):rn}function Le(Gt){return Object.keys(Gt).reduce(function(Xr,rn){return(rn.substr(0,5)==="data-"||rn.substr(0,5)==="aria-")&&(Xr[rn]=Gt[rn]),Xr},{})}function Q(Gt){for(var Xr=Gt.colWidths,rn=Gt.columns,fn=Gt.columCount,Xe=[],_t=fn||rn.length,lr=!1,rr=_t-1;rr>=0;rr-=1){var Or=Xr[rr],Mr=rn&&rn[rr],Wr=Mr&&Mr[Ne];(Or||Wr||lr)&&(Xe.unshift(a.createElement("col",Object.assign({key:rr,style:{width:Or,minWidth:Or}},Wr))),lr=!0)}return a.createElement("colgroup",null,Xe)}var ce=Q;function Ke(Gt,Xr){return Object(a.useMemo)(function(){for(var rn=[],fn=0;fn<Xr;fn+=1){var Xe=Gt[fn];if(Xe!==void 0)rn[fn]=Xe;else return null}return rn},[Gt.join("_"),Xr])}var ee=a.forwardRef(function(Gt,Xr){var rn=Gt.noData,fn=Gt.columns,Xe=Gt.flattenColumns,_t=Gt.colWidths,lr=Gt.columCount,rr=Gt.stickyOffsets,Or=Gt.direction,Mr=Gt.fixHeader,Wr=Gt.offsetHeader,nn=Gt.stickyClassName,wn=Gt.onScroll,On=Object(b.a)(Gt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Rn=a.useContext(Y),Nn=Rn.prefixCls,yn=Rn.scrollbarSize,Sn=Rn.isSticky,_n=Sn&&!Mr?0:yn,Hn=a.useRef(null),Yn=a.useCallback(function(_i){Object(_.b)(Xr,_i),Object(_.b)(Hn,_i)},[]);a.useEffect(function(){var _i;function Ni(jn){var Ii=jn.currentTarget,Hi=jn.deltaX;Hi&&(wn({currentTarget:Ii,scrollLeft:Ii.scrollLeft+Hi}),jn.preventDefault())}return(_i=Hn.current)===null||_i===void 0||_i.addEventListener("wheel",Ni),function(){var jn;(jn=Hn.current)===null||jn===void 0||jn.removeEventListener("wheel",Ni)}},[]);var Zn=Xe[Xe.length-1],yi={fixed:Zn?Zn.fixed:null,onHeaderCell:function(){return{className:"".concat(Nn,"-cell-scrollbar")}}},gi=Object(a.useMemo)(function(){return _n?[].concat(Object(e.a)(fn),[yi]):fn},[_n,fn]),Di=Object(a.useMemo)(function(){return _n?[].concat(Object(e.a)(Xe),[yi]):Xe},[_n,Xe]),Ui=Object(a.useMemo)(function(){var _i=rr.right,Ni=rr.left;return Object(s.a)(Object(s.a)({},rr),{},{left:Or==="rtl"?[].concat(Object(e.a)(Ni.map(function(jn){return jn+_n})),[0]):Ni,right:Or==="rtl"?_i:[].concat(Object(e.a)(_i.map(function(jn){return jn+_n})),[0]),isSticky:Sn})},[_n,rr,Sn]),Ei=Ke(_t,lr);return a.createElement("div",{style:Object(s.a)({overflow:"hidden"},Sn?{top:Wr}:{}),ref:Yn,className:i()("".concat(Nn,"-header"),Object(t.a)({},nn,!!nn))},a.createElement("table",{style:{tableLayout:"fixed",visibility:rn||Ei?null:"hidden"}},a.createElement(ce,{colWidths:Ei?[].concat(Object(e.a)(Ei),[_n]):[],columCount:lr+1,columns:Di}),a.createElement(pe,Object.assign({},On,{stickyOffsets:Ui,columns:gi,flattenColumns:Di}))))});ee.displayName="FixedHeader";var X=ee,G=a.createContext(null),Z=G;function ve(Gt){var Xr=Gt.prefixCls,rn=Gt.children,fn=Gt.component,Xe=Gt.cellComponent,_t=Gt.fixHeader,lr=Gt.fixColumn,rr=Gt.horizonScroll,Or=Gt.className,Mr=Gt.expanded,Wr=Gt.componentWidth,nn=Gt.colSpan,wn=a.useContext(Y),On=wn.scrollbarSize;return a.useMemo(function(){var Rn=rn;return lr&&(Rn=a.createElement("div",{style:{width:Wr-(_t?On:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Xr,"-expanded-row-fixed")},Rn)),a.createElement(fn,{className:Or,style:{display:Mr?null:"none"}},a.createElement(z,{component:Xe,prefixCls:Xr,colSpan:nn},Rn))},[rn,fn,_t,rr,Or,Mr,Wr,nn,On])}var ue=ve;function _e(Gt){var Xr=Gt.className,rn=Gt.style,fn=Gt.record,Xe=Gt.index,_t=Gt.rowKey,lr=Gt.getRowKey,rr=Gt.rowExpandable,Or=Gt.expandedKeys,Mr=Gt.onRow,Wr=Gt.indent,nn=Wr===void 0?0:Wr,wn=Gt.rowComponent,On=Gt.cellComponent,Rn=Gt.childrenColumnName,Nn=a.useContext(Y),yn=Nn.prefixCls,Sn=Nn.fixedInfoList,_n=a.useContext(Z),Hn=_n.fixHeader,Yn=_n.fixColumn,Zn=_n.horizonScroll,yi=_n.componentWidth,gi=_n.flattenColumns,Di=_n.expandableType,Ui=_n.expandRowByClick,Ei=_n.onTriggerExpand,_i=_n.rowClassName,Ni=_n.expandedRowClassName,jn=_n.indentSize,Ii=_n.expandIcon,Hi=_n.expandedRowRender,fr=_n.expandIconColumnIndex,Dr=a.useState(!1),Qr=Object(l.a)(Dr,2),Nr=Qr[0],Yt=Qr[1],xr=Or&&Or.has(Gt.recordKey);a.useEffect(function(){xr&&Yt(!0)},[xr]);var tr=Di==="row"&&(!rr||rr(fn)),jr=Di==="nest",Ur=Rn&&fn&&fn[Rn],dn=tr||jr,sn;Mr&&(sn=Mr(fn,Xe));var bn=function(ca){if(Ui&&dn&&Ei(fn,ca),sn&&sn.onClick){for(var zi,Ri=arguments.length,ta=new Array(Ri>1?Ri-1:0),$i=1;$i<Ri;$i++)ta[$i-1]=arguments[$i];(zi=sn).onClick.apply(zi,[ca].concat(ta))}},Bn;typeof _i=="string"?Bn=_i:typeof _i=="function"&&(Bn=_i(fn,Xe,nn));var Xn=N(gi),$n=a.createElement(wn,Object.assign({},sn,{"data-row-key":_t,className:i()(Xr,"".concat(yn,"-row"),"".concat(yn,"-row-level-").concat(nn),Bn,sn&&sn.className),style:Object(s.a)(Object(s.a)({},rn),sn?sn.style:null),onClick:bn}),gi.map(function(sa,ca){var zi=sa.render,Ri=sa.dataIndex,ta=sa.className,$i=Xn[ca],Ca=Sn[ca],Ma;ca===(fr||0)&&jr&&(Ma=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(jn*nn,"px")},className:"".concat(yn,"-row-indent indent-level-").concat(nn)}),Ii({prefixCls:yn,expanded:xr,expandable:Ur,record:fn,onExpand:Ei})));var qi;return sa.onCell&&(qi=sa.onCell(fn,Xe)),a.createElement(z,Object.assign({className:ta,ellipsis:sa.ellipsis,align:sa.align,component:On,prefixCls:yn,key:$i,record:fn,index:Xe,dataIndex:Ri,render:zi,shouldCellUpdate:sa.shouldCellUpdate},Ca,{appendNode:Ma,additionalProps:qi}))})),Ti;if(tr&&(Nr||xr)){var Xi=Hi(fn,Xe,nn+1,xr),ua=Ni&&Ni(fn,Xe,nn);Ti=a.createElement(ue,{expanded:xr,className:i()("".concat(yn,"-expanded-row"),"".concat(yn,"-expanded-row-level-").concat(nn+1),ua),prefixCls:yn,fixHeader:Hn,fixColumn:Yn,horizonScroll:Zn,component:wn,componentWidth:yi,cellComponent:On,colSpan:gi.length},Xi)}var da;return Ur&&xr&&(da=(fn[Rn]||[]).map(function(sa,ca){var zi=lr(sa,ca);return a.createElement(_e,Object.assign({},Gt,{key:zi,rowKey:zi,record:sa,recordKey:zi,index:ca,indent:nn+1}))})),a.createElement(a.Fragment,null,$n,Ti,da)}_e.displayName="BodyRow";var xe=_e,oe=a.createContext(null),fe=oe;function Te(Gt){var Xr=Gt.columnKey,rn=Gt.onColumnResize,fn=a.useRef();return a.useEffect(function(){fn.current&&rn(Xr,fn.current.offsetWidth)},[]),a.createElement(v.a,{onResize:function(_t){var lr=_t.offsetWidth;rn(Xr,lr)}},a.createElement("td",{ref:fn,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ze(Gt){var Xr=Gt.data,rn=Gt.getRowKey,fn=Gt.measureColumnWidth,Xe=Gt.expandedKeys,_t=Gt.onRow,lr=Gt.rowExpandable,rr=Gt.emptyNode,Or=Gt.childrenColumnName,Mr=a.useContext(fe),Wr=Mr.onColumnResize,nn=a.useContext(Y),wn=nn.prefixCls,On=nn.getComponent,Rn=a.useContext(Z),Nn=Rn.fixHeader,yn=Rn.horizonScroll,Sn=Rn.flattenColumns,_n=Rn.componentWidth;return a.useMemo(function(){var Hn=On(["body","wrapper"],"tbody"),Yn=On(["body","row"],"tr"),Zn=On(["body","cell"],"td"),yi;Xr.length?yi=Xr.map(function(Di,Ui){var Ei=rn(Di,Ui);return a.createElement(xe,{key:Ei,rowKey:Ei,record:Di,recordKey:Ei,index:Ui,rowComponent:Yn,cellComponent:Zn,expandedKeys:Xe,onRow:_t,getRowKey:rn,rowExpandable:lr,childrenColumnName:Or})}):yi=a.createElement(ue,{expanded:!0,className:"".concat(wn,"-placeholder"),prefixCls:wn,fixHeader:Nn,fixColumn:yn,horizonScroll:yn,component:Yn,componentWidth:_n,cellComponent:Zn,colSpan:Sn.length},rr);var gi=N(Sn);return a.createElement(Hn,{className:"".concat(wn,"-tbody")},fn&&a.createElement("tr",{"aria-hidden":"true",className:"".concat(wn,"-measure-row"),style:{height:0}},gi.map(function(Di){return a.createElement(Te,{key:Di,columnKey:Di,onColumnResize:Wr})})),yi)},[Xr,wn,_t,fn,Xe,rn,On,_n,rr,Sn])}var it=a.memo(ze);it.displayName="Body";var et=it,Oe=d("Zm9Q");function gt(Gt){return Object(Oe.a)(Gt).filter(function(Xr){return a.isValidElement(Xr)}).map(function(Xr){var rn=Xr.key,fn=Xr.props,Xe=fn.children,_t=Object(b.a)(fn,["children"]),lr=Object(s.a)({key:rn},_t);return Xe&&(lr.children=gt(Xe)),lr})}function Ge(Gt){return Gt.reduce(function(Xr,rn){var fn=rn.fixed,Xe=fn===!0?"left":fn,_t=rn.children;return _t&&_t.length>0?[].concat(Object(e.a)(Xr),Object(e.a)(Ge(_t).map(function(lr){return Object(s.a)({fixed:Xe},lr)}))):[].concat(Object(e.a)(Xr),[Object(s.a)(Object(s.a)({},rn),{},{fixed:Xe})])},[])}function wt(Gt){for(var Xr=!0,rn=0;rn<Gt.length;rn+=1){var fn=Gt[rn];if(Xr&&fn.fixed!=="left")Xr=!1;else if(!Xr&&fn.fixed==="left"){Object(p.a)(!1,"Index ".concat(rn-1," of `columns` missing `fixed='left'` prop."));break}}for(var Xe=!0,_t=Gt.length-1;_t>=0;_t-=1){var lr=Gt[_t];if(Xe&&lr.fixed!=="right")Xe=!1;else if(!Xe&&lr.fixed==="right"){Object(p.a)(!1,"Index ".concat(_t+1," of `columns` missing `fixed='right'` prop."));break}}}function xt(Gt){return Gt.map(function(Xr){var rn=Xr.fixed,fn=Object(b.a)(Xr,["fixed"]),Xe=rn;return rn==="left"?Xe="right":rn==="right"&&(Xe="left"),Object(s.a)({fixed:Xe},fn)})}function Ct(Gt,Xr){var rn=Gt.prefixCls,fn=Gt.columns,Xe=Gt.children,_t=Gt.expandable,lr=Gt.expandedKeys,rr=Gt.getRowKey,Or=Gt.onTriggerExpand,Mr=Gt.expandIcon,Wr=Gt.rowExpandable,nn=Gt.expandIconColumnIndex,wn=Gt.direction,On=Gt.expandRowByClick,Rn=a.useMemo(function(){return fn||gt(Xe)},[fn,Xe]),Nn=a.useMemo(function(){if(_t){var _n,Hn=nn||0,Yn=Rn[Hn],Zn=(_n={},Object(t.a)(_n,Ne,{className:"".concat(rn,"-expand-icon-col")}),Object(t.a)(_n,"title",""),Object(t.a)(_n,"fixed",Yn?Yn.fixed:null),Object(t.a)(_n,"className","".concat(rn,"-row-expand-icon-cell")),Object(t.a)(_n,"render",function(Di,Ui,Ei){var _i=rr(Ui,Ei),Ni=lr.has(_i),jn=Wr?Wr(Ui):!0,Ii=Mr({prefixCls:rn,expanded:Ni,expandable:jn,record:Ui,onExpand:Or});return On?a.createElement("span",{onClick:function(fr){return fr.stopPropagation()}},Ii):Ii}),_n),yi=Rn.slice();return Hn>=0&&yi.splice(Hn,0,Zn),yi}return Rn},[_t,Rn,rr,lr,Mr,wn]),yn=a.useMemo(function(){var _n=Nn;return Xr&&(_n=Xr(_n)),_n.length||(_n=[{render:function(){return null}}]),_n},[Xr,Nn,wn]),Sn=a.useMemo(function(){return wn==="rtl"?xt(Ge(yn)):Ge(yn)},[yn,wn]);return[yn,Sn]}var Dt=Ct,Ht=d("xEkU"),Je=d.n(Ht);function ye(Gt){var Xr=Object(a.useRef)(Gt),rn=Object(a.useState)({}),fn=Object(l.a)(rn,2),Xe=fn[1],_t=Object(a.useRef)(null),lr=Object(a.useRef)([]);function rr(Or){_t.current===null&&(lr.current=[],_t.current=Je()(function(){lr.current.forEach(function(Mr){Xr.current=Mr(Xr.current)}),_t.current=null,Xe({})})),lr.current.push(Or)}return Object(a.useEffect)(function(){return function(){Je.a.cancel(_t.current)}},[]),[Xr.current,rr]}function ie(Gt){var Xr=Object(a.useRef)(Gt),rn=Object(a.useRef)(null);function fn(){window.clearTimeout(rn.current)}function Xe(lr){Xr.current=lr,fn(),rn.current=window.setTimeout(function(){Xr.current=null,rn.current=null},100)}function _t(){return Xr.current}return Object(a.useEffect)(function(){return fn},[]),[Xe,_t]}function bt(Gt,Xr,rn){var fn=Object(a.useMemo)(function(){for(var Xe=[],_t=[],lr=0,rr=0,Or=0;Or<Xr;Or+=1)if(rn==="rtl"){_t[Or]=rr,rr+=Gt[Or]||0;var Mr=Xr-Or-1;Xe[Mr]=lr,lr+=Gt[Mr]||0}else{Xe[Or]=lr,lr+=Gt[Or]||0;var Wr=Xr-Or-1;_t[Wr]=rr,rr+=Gt[Wr]||0}return{left:Xe,right:_t}},[Gt,Xr,rn]);return fn}var qe=bt;function me(Gt){var Xr=Gt.className,rn=Gt.children;return a.createElement("div",{className:Xr},rn)}var Rt=me;function er(Gt){var Xr=Gt.className,rn=Gt.index,fn=Gt.children,Xe=Gt.colSpan,_t=Gt.rowSpan,lr=a.useContext(Y),rr=lr.prefixCls,Or=lr.fixedInfoList,Mr=Or[rn];return a.createElement(z,Object.assign({className:Xr,index:rn,component:"td",prefixCls:rr,record:null,dataIndex:null,render:function(){return{children:fn,props:{colSpan:Xe,rowSpan:_t}}}},Mr))}function ct(Gt){return a.createElement("tr",Object.assign({},Gt))}function zt(Gt){var Xr=Gt.children,rn=a.useContext(Y),fn=rn.prefixCls;return a.createElement("tfoot",{className:"".concat(fn,"-summary")},Xr)}var sr=zt,Kr={Cell:er,Row:ct};function ar(Gt){var Xr,rn=Gt.prefixCls,fn=Gt.record,Xe=Gt.onExpand,_t=Gt.expanded,lr=Gt.expandable,rr="".concat(rn,"-row-expand-icon");if(!lr)return a.createElement("span",{className:i()(rr,"".concat(rn,"-row-spaced"))});var Or=function(Wr){Xe(fn,Wr),Wr.stopPropagation()};return a.createElement("span",{className:i()(rr,(Xr={},Object(t.a)(Xr,"".concat(rn,"-row-expanded"),_t),Object(t.a)(Xr,"".concat(rn,"-row-collapsed"),!_t),Xr)),onClick:Or})}function nr(Gt,Xr,rn){var fn=[];function Xe(_t){(_t||[]).forEach(function(lr,rr){fn.push(Xr(lr,rr)),Xe(lr[rn])})}return Xe(Gt),fn}var Lt=d("zT1h"),st=d("y0+3"),Qe=function(Xr,rn){var fn,Xe,_t=Xr.scrollBodyRef,lr=Xr.onScroll,rr=Xr.offsetScroll,Or=a.useContext(Y),Mr=Or.prefixCls,Wr=((fn=_t.current)===null||fn===void 0?void 0:fn.scrollWidth)||0,nn=((Xe=_t.current)===null||Xe===void 0?void 0:Xe.clientWidth)||0,wn=Wr&&nn*(nn/Wr),On=a.useRef(),Rn=ye({scrollLeft:0,isHiddenScrollBar:!1}),Nn=Object(l.a)(Rn,2),yn=Nn[0],Sn=Nn[1],_n=a.useRef({delta:0,x:0}),Hn=a.useState(!1),Yn=Object(l.a)(Hn,2),Zn=Yn[0],yi=Yn[1],gi=function(){yi(!1)},Di=function(jn){jn.persist(),_n.current.delta=jn.pageX-yn.scrollLeft,_n.current.x=0,yi(!0),jn.preventDefault()},Ui=function(jn){var Ii,Hi=jn||((Ii=window)===null||Ii===void 0?void 0:Ii.event),fr=Hi.buttons;if(!Zn||fr===0){Zn&&yi(!1);return}var Dr=_n.current.x+jn.pageX-_n.current.x-_n.current.delta;Dr<=0&&(Dr=0),Dr+wn>=nn&&(Dr=nn-wn),lr({scrollLeft:Dr/nn*(Wr+2)}),_n.current.x=jn.pageX},Ei=function(){var jn=Object(st.b)(_t.current).top,Ii=jn+_t.current.offsetHeight,Hi=document.documentElement.scrollTop+window.innerHeight;Ii-Object(A.a)()<=Hi||jn>=Hi-rr?Sn(function(fr){return Object(s.a)(Object(s.a)({},fr),{},{isHiddenScrollBar:!0})}):Sn(function(fr){return Object(s.a)(Object(s.a)({},fr),{},{isHiddenScrollBar:!1})})},_i=function(jn){Sn(function(Ii){return Object(s.a)(Object(s.a)({},Ii),{},{scrollLeft:jn/Wr*nn||0})})};return a.useImperativeHandle(rn,function(){return{setScrollLeft:_i}}),a.useEffect(function(){var Ni=Object(Lt.a)(document.body,"mouseup",gi,!1),jn=Object(Lt.a)(document.body,"mousemove",Ui,!1);return Ei(),function(){Ni.remove(),jn.remove()}},[wn,Zn]),a.useEffect(function(){var Ni=Object(Lt.a)(window,"scroll",Ei,!1),jn=Object(Lt.a)(window,"resize",Ei,!1);return function(){Ni.remove(),jn.remove()}},[]),a.useEffect(function(){yn.isHiddenScrollBar||Sn(function(Ni){var jn,Ii;return Object(s.a)(Object(s.a)({},Ni),{},{scrollLeft:_t.current.scrollLeft/((jn=_t.current)===null||jn===void 0?void 0:jn.scrollWidth)*((Ii=_t.current)===null||Ii===void 0?void 0:Ii.clientWidth)})})},[yn.isHiddenScrollBar]),Wr<=nn||!wn||yn.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(A.a)(),width:nn,bottom:rr},className:"".concat(Mr,"-sticky-scroll")},a.createElement("div",{onMouseDown:Di,ref:On,className:i()("".concat(Mr,"-sticky-scroll-bar"),Object(t.a)({},"".concat(Mr,"-sticky-scroll-bar-active"),Zn)),style:{width:"".concat(wn,"px"),transform:"translate3d(".concat(yn.scrollLeft,"px, 0, 0)")}}))},qt=a.forwardRef(Qe);function Sr(Gt,Xr){return a.useMemo(function(){var rn=!!Gt;return{isSticky:rn,stickyClassName:rn?"".concat(Xr,"-sticky-header"):"",offsetHeader:Object(o.a)(Gt)==="object"&&Gt.offsetHeader||0,offsetScroll:Object(o.a)(Gt)==="object"&&Gt.offsetScroll||0}},[Gt,Xr])}var Ar=[],hr={},vn="rc-table-internal-hook",Zr=a.memo(function(Gt){var Xr=Gt.children;return Xr},function(Gt,Xr){return f()(Gt.props,Xr.props)?Gt.pingLeft!==Xr.pingLeft||Gt.pingRight!==Xr.pingRight:!1});function Ln(Gt){var Xr,rn=Gt.prefixCls,fn=Gt.className,Xe=Gt.rowClassName,_t=Gt.style,lr=Gt.data,rr=Gt.rowKey,Or=Gt.scroll,Mr=Gt.tableLayout,Wr=Gt.direction,nn=Gt.title,wn=Gt.footer,On=Gt.summary,Rn=Gt.id,Nn=Gt.showHeader,yn=Gt.components,Sn=Gt.emptyText,_n=Gt.onRow,Hn=Gt.onHeaderRow,Yn=Gt.internalHooks,Zn=Gt.transformColumns,yi=Gt.internalRefs,gi=Gt.sticky,Di=lr||Ar,Ui=!!Di.length,Ei=a.useState(0),_i=Object(l.a)(Ei,2),Ni=_i[0],jn=_i[1];a.useEffect(function(){jn(Object(A.a)())});var Ii=a.useMemo(function(){return M(yn,{})},[yn]),Hi=a.useCallback(function(so,Ao){return D(Ii,so)||Ao},[Ii]),fr=a.useMemo(function(){return typeof rr=="function"?rr:function(so){var Ao=so&&so[rr];return Ao}},[rr]),Dr=de(Gt),Qr=Dr.expandIcon,Nr=Dr.expandedRowKeys,Yt=Dr.defaultExpandedRowKeys,xr=Dr.defaultExpandAllRows,tr=Dr.expandedRowRender,jr=Dr.onExpand,Ur=Dr.onExpandedRowsChange,dn=Dr.expandRowByClick,sn=Dr.rowExpandable,bn=Dr.expandIconColumnIndex,Bn=Dr.expandedRowClassName,Xn=Dr.childrenColumnName,$n=Dr.indentSize,Ti=Qr||ar,Xi=Xn||"children",ua=a.useMemo(function(){return tr?"row":Gt.expandable&&Yn===vn&&Gt.expandable.__PARENT_RENDER_ICON__||Di.some(function(so){return so&&Object(o.a)(so)==="object"&&so[Xi]})?"nest":!1},[!!tr,Di]),da=a.useState(function(){return Yt||(xr?nr(Di,fr,Xi):[])}),sa=Object(l.a)(da,2),ca=sa[0],zi=sa[1],Ri=a.useMemo(function(){return new Set(Nr||ca||[])},[Nr,ca]),ta=a.useCallback(function(so){var Ao=fr(so,Di.indexOf(so)),Jo,Uo=Ri.has(Ao);Uo?(Ri.delete(Ao),Jo=Object(e.a)(Ri)):Jo=[].concat(Object(e.a)(Ri),[Ao]),zi(Jo),jr&&jr(!Uo,so),Ur&&Ur(Jo)},[fr,Ri,Di,jr,Ur]),$i=a.useState(0),Ca=Object(l.a)($i,2),Ma=Ca[0],qi=Ca[1],Yi=Dt(Object(s.a)(Object(s.a)(Object(s.a)({},Gt),Dr),{},{expandable:!!tr,expandedKeys:Ri,getRowKey:fr,onTriggerExpand:ta,expandIcon:Ti,expandIconColumnIndex:bn,direction:Wr}),Yn===vn?Zn:null),Pa=Object(l.a)(Yi,2),ya=Pa[0],Ci=Pa[1],la=a.useMemo(function(){return{columns:ya,flattenColumns:Ci}},[ya,Ci]),Ha=a.useRef(),ka=a.useRef(),Aa=a.useRef(),Sa=a.useState(!1),Ya=Object(l.a)(Sa,2),Ta=Ya[0],Ga=Ya[1],uo=a.useState(!1),aa=Object(l.a)(uo,2),ho=aa[0],Ua=aa[1],Na=ye(new Map),$a=Object(l.a)(Na,2),Ra=$a[0],Ka=$a[1],bo=N(Ci),no=bo.map(function(so){return Ra.get(so)}),Co=a.useMemo(function(){return no},[no.join("_")]),fo=qe(Co,Ci.length,Wr),po=Or&&F(Or.y),Za=Or&&F(Or.x),qa=Za&&Ci.some(function(so){var Ao=so.fixed;return Ao}),Oa=a.useRef(),oo=Sr(gi,rn),go=oo.isSticky,Bi=oo.offsetHeader,pa=oo.offsetScroll,Do=oo.stickyClassName,jo,Vo,Yo;po&&(Vo={overflowY:"scroll",maxHeight:Or.y}),Za&&(jo={overflowX:"auto"},po||(Vo={overflowY:"hidden"}),Yo={width:Or.x===!0?"auto":Or.x,minWidth:"100%"});var wo=a.useCallback(function(so,Ao){Ka(function(Jo){var Uo=new Map(Jo);return Uo.set(so,Ao),Uo})},[]),Da=ie(null),Fo=Object(l.a)(Da,2),cs=Fo[0],mo=Fo[1];function _o(so,Ao){if(!Ao)return;typeof Ao=="function"?Ao(so):Ao.scrollLeft!==so&&(Ao.scrollLeft=so)}var Xa=function(Ao){var Jo=Ao.currentTarget,Uo=Ao.scrollLeft,bs=typeof Uo=="number"?Uo:Jo.scrollLeft,ms=Jo||hr;if(!mo()||mo()===ms){var gs;cs(ms),_o(bs,ka.current),_o(bs,Aa.current),_o(bs,(gs=Oa.current)===null||gs===void 0?void 0:gs.setScrollLeft)}if(Jo){var ul=Jo.scrollWidth,Ms=Jo.clientWidth;Ga(bs>0),Ua(bs<ul-Ms)}},Qo=function(){Aa.current&&Xa({currentTarget:Aa.current})},il=function(Ao){var Jo=Ao.width;Qo(),qi(Ha.current?Ha.current.offsetWidth:Jo)};a.useEffect(function(){return Qo},[]),a.useEffect(function(){Za&&Qo()},[Za]),a.useEffect(function(){Yn===vn&&yi&&(yi.body.current=Aa.current)});var Os=Hi(["table"],"table"),as=a.useMemo(function(){return Mr||(qa?Or.x==="max-content"?"auto":"fixed":po||Ci.some(function(so){var Ao=so.ellipsis;return Ao})?"fixed":"auto")},[po,qa,Ci,Mr]),xs,Ls={colWidths:Co,columCount:Ci.length,stickyOffsets:fo,onHeaderRow:Hn,fixHeader:po},ys=a.useMemo(function(){return Ui?null:typeof Sn=="function"?Sn():Sn},[Ui,Sn]),Ho=a.createElement(et,{data:Di,measureColumnWidth:po||Za||go,expandedKeys:Ri,rowExpandable:sn,getRowKey:fr,onRow:_n,emptyNode:ys,childrenColumnName:Xi}),vo=a.createElement(ce,{colWidths:Ci.map(function(so){var Ao=so.width;return Ao}),columns:Ci}),es=On&&a.createElement(sr,null,On(Di)),Ko=Hi(["body"]);if(po||go){var Ro;typeof Ko=="function"?(Ro=Ko(Di,{scrollbarSize:Ni,ref:Aa,onScroll:Xa}),Ls.colWidths=Ci.map(function(so,Ao){var Jo=so.width,Uo=Ao===ya.length-1?Jo-Ni:Jo;return typeof Uo=="number"&&!Number.isNaN(Uo)?Uo:(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ro=a.createElement("div",{style:Object(s.a)(Object(s.a)({},jo),Vo),onScroll:Xa,ref:Aa,className:i()("".concat(rn,"-body"))},a.createElement(Os,{style:Object(s.a)(Object(s.a)({},Yo),{},{tableLayout:as})},vo,Ho,es),go&&a.createElement(qt,{ref:Oa,offsetScroll:pa,scrollBodyRef:Aa,onScroll:Xa})),xs=a.createElement(a.Fragment,null,Nn!==!1&&a.createElement(X,Object.assign({noData:!Di.length},Ls,la,{direction:Wr,offsetHeader:Bi,stickyClassName:Do,ref:ka,onScroll:Xa})),Ro)}else xs=a.createElement("div",{style:Object(s.a)(Object(s.a)({},jo),Vo),className:i()("".concat(rn,"-content")),onScroll:Xa,ref:Aa},a.createElement(Os,{style:Object(s.a)(Object(s.a)({},Yo),{},{tableLayout:as})},vo,Nn!==!1&&a.createElement(pe,Object.assign({},Ls,la)),Ho,es));var Vr=Le(Gt),bi=a.createElement("div",Object.assign({className:i()(rn,fn,(Xr={},Object(t.a)(Xr,"".concat(rn,"-rtl"),Wr==="rtl"),Object(t.a)(Xr,"".concat(rn,"-ping-left"),Ta),Object(t.a)(Xr,"".concat(rn,"-ping-right"),ho),Object(t.a)(Xr,"".concat(rn,"-layout-fixed"),Mr==="fixed"),Object(t.a)(Xr,"".concat(rn,"-fixed-header"),po),Object(t.a)(Xr,"".concat(rn,"-fixed-column"),qa),Object(t.a)(Xr,"".concat(rn,"-scroll-horizontal"),Za),Object(t.a)(Xr,"".concat(rn,"-has-fix-left"),Ci[0]&&Ci[0].fixed),Object(t.a)(Xr,"".concat(rn,"-has-fix-right"),Ci[Ci.length-1]&&Ci[Ci.length-1].fixed==="right"),Xr)),style:_t,id:Rn,ref:Ha},Vr),a.createElement(Zr,{pingLeft:Ta,pingRight:ho,props:Object(s.a)(Object(s.a)({},Gt),{},{stickyOffsets:fo,mergedExpandedKeys:Ri})},nn&&a.createElement(Rt,{className:"".concat(rn,"-title")},nn(Di)),a.createElement("div",{className:"".concat(rn,"-container")},xs),wn&&a.createElement(Rt,{className:"".concat(rn,"-footer")},wn(Di))));Za&&(bi=a.createElement(v.a,{onResize:il},bi));var Qs=a.useMemo(function(){return{prefixCls:rn,getComponent:Hi,scrollbarSize:Ni,direction:Wr,fixedInfoList:Ci.map(function(so,Ao){return J(Ao,Ao,Ci,fo,Wr)}),isSticky:go}},[rn,Hi,Ni,Wr,Ci,fo,Wr,go]),Ns=a.useMemo(function(){return Object(s.a)(Object(s.a)({},la),{},{tableLayout:as,rowClassName:Xe,expandedRowClassName:Bn,componentWidth:Ma,fixHeader:po,fixColumn:qa,horizonScroll:Za,expandIcon:Ti,expandableType:ua,expandRowByClick:dn,expandedRowRender:tr,onTriggerExpand:ta,expandIconColumnIndex:bn,indentSize:$n})},[la,as,Xe,Bn,Ma,po,qa,Za,Ti,ua,dn,tr,ta,bn,$n]),js=a.useMemo(function(){return{onColumnResize:wo}},[wo]);return a.createElement(Y.Provider,{value:Qs},a.createElement(Z.Provider,{value:Ns},a.createElement(fe.Provider,{value:js},bi)))}Ln.Column=w,Ln.ColumnGroup=x,Ln.Summary=Kr,Ln.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var $e=Ln,tt=$e,Ee=d("W9HT"),Re=d("NUBc"),je=d("H84U"),nt=function(Gt,Xr){var rn={};for(var fn in Gt)Object.prototype.hasOwnProperty.call(Gt,fn)&&Xr.indexOf(fn)<0&&(rn[fn]=Gt[fn]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,fn=Object.getOwnPropertySymbols(Gt);Xe<fn.length;Xe++)Xr.indexOf(fn[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,fn[Xe])&&(rn[fn[Xe]]=Gt[fn[Xe]]);return rn},Vt=10;function Bt(Gt,Xr){var rn={current:Xr.current,pageSize:Xr.pageSize},fn=Gt&&E()(Gt)==="object"?Gt:{};return Object.keys(fn).forEach(function(Xe){var _t=Xr[Xe];typeof _t!="function"&&(rn[Xe]=_t)}),rn}function Xt(){for(var Gt={},Xr=arguments.length,rn=new Array(Xr),fn=0;fn<Xr;fn++)rn[fn]=arguments[fn];return rn.forEach(function(Xe){Xe&&Object.keys(Xe).forEach(function(_t){var lr=Xe[_t];lr!==void 0&&(Gt[_t]=lr)})}),Gt}function Rr(Gt,Xr,rn){var fn=Xr&&E()(Xr)==="object"?Xr:{},Xe=fn.total,_t=Xe===void 0?0:Xe,lr=nt(fn,["total"]),rr=Object(a.useState)(function(){return{current:"defaultCurrent"in lr?lr.defaultCurrent:1,pageSize:"defaultPageSize"in lr?lr.defaultPageSize:Vt}}),Or=m()(rr,2),Mr=Or[0],Wr=Or[1],nn=Xt(Mr,lr,{total:_t>0?_t:Gt});if(!_t){var wn=Math.ceil(Gt/nn.pageSize);wn<nn.current&&(nn.current=1)}var On=function(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Sn=arguments.length>1?arguments[1]:void 0;Wr(c()(c()({},nn),{current:yn,pageSize:Sn||nn.pageSize}))},Rn=function(yn,Sn){var _n=nn==null?void 0:nn.pageSize;Sn&&Sn!==_n&&(yn=1,Xr&&Xr.onShowSizeChange&&Xr.onShowSizeChange(yn,Sn)),Xr&&Xr.onChange&&Xr.onChange(yn,Sn),On(yn,Sn),rn(yn,Sn||_n)};return Xr===!1?[{},function(){}]:[c()(c()({},nn),{onChange:Rn}),On]}function Br(Gt,Xr,rn){var fn=a.useRef({});function Xe(_t){if(!fn.current||fn.current.data!==Gt||fn.current.childrenColumnName!==Xr||fn.current.getRowKey!==rn){var lr=function Or(Mr){Mr.forEach(function(Wr,nn){var wn=rn(Wr,nn);rr.set(wn,Wr),Wr&&E()(Wr)==="object"&&Xr in Wr&&Or(Wr[Xr]||[])})},rr=new Map;lr(Gt),fn.current={data:Gt,childrenColumnName:Xr,kvMap:rr,getRowKey:rn}}return fn.current.kvMap.get(_t)}return[Xe]}var cn=d("SA+Z"),Ut=d.n(cn),pt=d("RIqP"),ut=d.n(pt),Jt=d("HQEm"),Zt=d.n(Jt),At=d("815F"),Pt=d("NvD2"),vt=d("OZM5"),Ft=d("6cGi"),gr=d("kaz8"),or=d("jsC+"),ur=d("BvKs"),Yr=d("9yH6"),Jr=d("uaoM"),Tn="SELECT_ALL",Dn="SELECT_INVERT";function zn(Gt){return Gt&&Gt.fixed}function qn(Gt,Xr){var rn=[];return(Gt||[]).forEach(function(fn){rn.push(fn),fn&&E()(fn)==="object"&&Xr in fn&&(rn=[].concat(ut()(rn),ut()(qn(fn[Xr],Xr))))}),rn}function Ai(Gt,Xr){var rn=Gt||{},fn=rn.preserveSelectedRowKeys,Xe=rn.selectedRowKeys,_t=rn.getCheckboxProps,lr=rn.onChange,rr=rn.onSelect,Or=rn.onSelectAll,Mr=rn.onSelectInvert,Wr=rn.onSelectMultiple,nn=rn.columnWidth,wn=rn.type,On=rn.selections,Rn=rn.fixed,Nn=rn.renderCell,yn=rn.hideSelectAll,Sn=rn.checkStrictly,_n=Sn===void 0?!0:Sn,Hn=Xr.prefixCls,Yn=Xr.data,Zn=Xr.pageData,yi=Xr.getRecordByKey,gi=Xr.getRowKey,Di=Xr.expandType,Ui=Xr.childrenColumnName,Ei=Xr.locale,_i=Xr.expandIconColumnIndex,Ni=Xr.getPopupContainer,jn=a.useRef(new Map),Ii=Object(Ft.a)(Xe||[],{value:Xe}),Hi=m()(Ii,2),fr=Hi[0],Dr=Hi[1],Qr=Object(a.useMemo)(function(){return _n?{keyEntities:null}:Object(At.a)(Yn,void 0,gi)},[Yn,gi,_n]),Nr=Qr.keyEntities,Yt=Object(a.useMemo)(function(){return qn(Zn,Ui)},[Zn,Ui]),xr=Object(a.useMemo)(function(){var zi=new Map;return Yt.forEach(function(Ri,ta){var $i=gi(Ri,ta),Ca=(_t?_t(Ri):null)||{};zi.set($i,Ca)}),zi},[Yt,gi,_t]),tr=Object(a.useCallback)(function(zi){var Ri;return!!((Ri=xr.get(gi(zi)))===null||Ri===void 0?void 0:Ri.disabled)},[xr,gi]),jr=Object(a.useMemo)(function(){if(_n)return[fr,[]];var zi=Object(Pt.a)(fr,!0,Nr,tr),Ri=zi.checkedKeys,ta=zi.halfCheckedKeys;return[Ri,ta]},[fr,_n,Nr,tr]),Ur=m()(jr,2),dn=Ur[0],sn=Ur[1],bn=Object(a.useMemo)(function(){var zi=wn==="radio"?dn.slice(0,1):dn;return new Set(zi)},[dn,wn]),Bn=Object(a.useMemo)(function(){return wn==="radio"?new Set:new Set(sn)},[sn,wn]),Xn=Object(a.useState)(null),$n=m()(Xn,2),Ti=$n[0],Xi=$n[1];a.useEffect(function(){Gt||Dr([])},[!!Gt]);var ua=Object(a.useCallback)(function(zi){var Ri,ta;if(fn){var $i=new Map;Ri=zi,ta=zi.map(function(Ca){var Ma=yi(Ca);return!Ma&&jn.current.has(Ca)&&(Ma=jn.current.get(Ca)),$i.set(Ca,Ma),Ma}),jn.current=$i}else Ri=[],ta=[],zi.forEach(function(Ca){var Ma=yi(Ca);Ma!==void 0&&(Ri.push(Ca),ta.push(Ma))});Dr(Ri),lr&&lr(Ri,ta)},[Dr,yi,lr,fn]),da=Object(a.useCallback)(function(zi,Ri,ta,$i){if(rr){var Ca=ta.map(function(Ma){return yi(Ma)});rr(yi(zi),Ri,Ca,$i)}ua(ta)},[rr,yi,ua]),sa=Object(a.useMemo)(function(){if(!On||yn)return null;var zi=On===!0?[Tn,Dn]:On;return zi.map(function(Ri){return Ri===Tn?{key:"all",text:Ei.selectionAll,onSelect:function(){ua(Yn.map(function($i,Ca){return gi($i,Ca)}))}}:Ri===Dn?{key:"invert",text:Ei.selectInvert,onSelect:function(){var $i=new Set(bn);Zn.forEach(function(Ma,qi){var Yi=gi(Ma,qi);$i.has(Yi)?$i.delete(Yi):$i.add(Yi)});var Ca=Array.from($i);ua(Ca),Mr&&(Object(Jr.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Mr(Ca))}}:Ri})},[On,bn,Zn,gi,Mr,ua]),ca=Object(a.useCallback)(function(zi){if(!Gt)return zi;var Ri=new Set(bn),ta=Yt.map(gi).filter(function(Ta){return!xr.get(Ta).disabled}),$i=ta.every(function(Ta){return Ri.has(Ta)}),Ca=ta.some(function(Ta){return Ri.has(Ta)}),Ma=function(){var Ga=[];$i?ta.forEach(function(aa){Ri.delete(aa),Ga.push(aa)}):ta.forEach(function(aa){Ri.has(aa)||(Ri.add(aa),Ga.push(aa))});var uo=Array.from(Ri);ua(uo),Or&&Or(!$i,uo.map(function(aa){return yi(aa)}),Ga.map(function(aa){return yi(aa)}))},qi;if(wn!=="radio"){var Yi;if(sa){var Pa=a.createElement(ur.a,{getPopupContainer:Ni},sa.map(function(Ta,Ga){var uo=Ta.key,aa=Ta.text,ho=Ta.onSelect;return a.createElement(ur.a.Item,{key:uo||Ga,onClick:function(){ho&&ho(ta)}},aa)}));Yi=a.createElement("div",{className:"".concat(Hn,"-selection-extra")},a.createElement(or.a,{overlay:Pa,getPopupContainer:Ni},a.createElement("span",null,a.createElement(Zt.a,null))))}var ya=Yt.every(function(Ta,Ga){var uo=gi(Ta,Ga),aa=xr.get(uo)||{};return aa.disabled});qi=!yn&&a.createElement("div",{className:"".concat(Hn,"-selection")},a.createElement(gr.a,{checked:!ya&&!!Yt.length&&$i,indeterminate:!$i&&Ca,onChange:Ma,disabled:Yt.length===0||ya}),Yi)}var Ci;wn==="radio"?Ci=function(Ga,uo,aa){var ho=gi(uo,aa),Ua=Ri.has(ho);return{node:a.createElement(Yr.a,c()({},xr.get(ho),{checked:Ua,onClick:function($a){return $a.stopPropagation()},onChange:function($a){Ri.has(ho)||da(ho,!0,[ho],$a.nativeEvent)}})),checked:Ua}}:Ci=function(Ga,uo,aa){var ho,Ua=gi(uo,aa),Na=Ri.has(Ua),$a=Bn.has(Ua),Ra=xr.get(Ua),Ka;return Di==="nest"?(Ka=$a,Object(Jr.a)(!(typeof(Ra==null?void 0:Ra.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Ka=(ho=Ra==null?void 0:Ra.indeterminate)!==null&&ho!==void 0?ho:$a,{node:a.createElement(gr.a,c()({},Ra,{indeterminate:Ka,checked:Na,onClick:function(no){return no.stopPropagation()},onChange:function(no){var Co=no.nativeEvent,fo=Co.shiftKey,po=-1,Za=-1;if(fo&&_n){var qa=new Set([Ti,Ua]);ta.some(function(Da,Fo){if(qa.has(Da))if(po===-1)po=Fo;else return Za=Fo,!0;return!1})}if(Za!==-1&&po!==Za&&_n){var Oa=ta.slice(po,Za+1),oo=[];Na?Oa.forEach(function(Da){Ri.has(Da)&&(oo.push(Da),Ri.delete(Da))}):Oa.forEach(function(Da){Ri.has(Da)||(oo.push(Da),Ri.add(Da))});var go=Array.from(Ri);ua(go),Wr&&Wr(!Na,go.map(function(Da){return yi(Da)}),oo.map(function(Da){return yi(Da)}))}else{var Bi=dn;if(_n){var pa=Na?Object(vt.b)(Bi,Ua):Object(vt.a)(Bi,Ua);da(Ua,!Na,pa,Co)}else{var Do=Object(Pt.a)([].concat(ut()(Bi),[Ua]),!0,Nr,tr),jo=Do.checkedKeys,Vo=Do.halfCheckedKeys,Yo=jo;if(Na){var wo=new Set(jo);wo.delete(Ua),Yo=Object(Pt.a)(Array.from(wo),{checked:!1,halfCheckedKeys:Vo},Nr,tr).checkedKeys}da(Ua,!Na,Yo,Co)}}Xi(Ua)}})),checked:Na}};var la=function(Ga,uo,aa){var ho=Ci(Ga,uo,aa),Ua=ho.node,Na=ho.checked;return Nn?Nn(Na,uo,aa,Ua):Ua},Ha=g()({width:nn,className:"".concat(Hn,"-selection-column"),title:Gt.columnTitle||qi,render:la},Ne,{className:"".concat(Hn,"-selection-col")});if(Di==="row"&&zi.length&&!_i){var ka=Ut()(zi),Aa=ka[0],Sa=ka.slice(1),Ya=Rn||zn(Sa[0]);return Ya&&(Aa.fixed=Ya),[Aa,c()(c()({},Ha),{fixed:Ya})].concat(ut()(Sa))}return[c()(c()({},Ha),{fixed:Rn||zn(zi[0])})].concat(ut()(zi))},[gi,Yt,Gt,dn,bn,Bn,nn,sa,Di,Ti,xr,Wr,da,tr]);return[ca,bn]}var Mi=d("6SEX"),Ye=d.n(Mi),Ce=d("i8CU"),ke=d.n(Ce),Fe=d("3S7+");function Ve(Gt,Xr){return"key"in Gt&&Gt.key!==void 0&&Gt.key!==null?Gt.key:Gt.dataIndex?Array.isArray(Gt.dataIndex)?Gt.dataIndex.join("."):Gt.dataIndex:Xr}function We(Gt,Xr){return Xr?"".concat(Xr,"-").concat(Gt):"".concat(Gt)}function Ze(Gt,Xr){return typeof Gt=="function"?Gt(Xr):Gt}var yt="ascend",lt="descend";function kt(Gt){return E()(Gt.sorter)==="object"&&typeof Gt.sorter.multiple=="number"?Gt.sorter.multiple:!1}function wr(Gt){return typeof Gt=="function"?Gt:Gt&&E()(Gt)==="object"&&Gt.compare?Gt.compare:!1}function pr(Gt,Xr){return Xr?Gt[Gt.indexOf(Xr)+1]:Gt[0]}function _r(Gt,Xr,rn){var fn=[];function Xe(_t,lr){fn.push({column:_t,key:Ve(_t,lr),multiplePriority:kt(_t),sortOrder:_t.sortOrder})}return(Gt||[]).forEach(function(_t,lr){var rr=We(lr,rn);_t.children?("sortOrder"in _t&&Xe(_t,rr),fn=[].concat(ut()(fn),ut()(_r(_t.children,Xr,rr)))):_t.sorter&&("sortOrder"in _t?Xe(_t,rr):Xr&&_t.defaultSortOrder&&fn.push({column:_t,key:Ve(_t,rr),multiplePriority:kt(_t),sortOrder:_t.defaultSortOrder}))}),fn}function Wt(Gt,Xr,rn,fn,Xe,_t,lr,rr){return(Xr||[]).map(function(Or,Mr){var Wr=We(Mr,rr),nn=Or;if(nn.sorter){var wn=nn.sortDirections||Xe,On=nn.showSorterTooltip===void 0?lr:nn.showSorterTooltip,Rn=Ve(nn,Wr),Nn=rn.find(function(Ui){var Ei=Ui.key;return Ei===Rn}),yn=Nn?Nn.sortOrder:null,Sn=pr(wn,yn),_n=wn.includes(yt)&&a.createElement(ke.a,{className:i()("".concat(Gt,"-column-sorter-up"),{active:yn===yt})}),Hn=wn.includes(lt)&&a.createElement(Ye.a,{className:i()("".concat(Gt,"-column-sorter-down"),{active:yn===lt})}),Yn=_t||{},Zn=Yn.cancelSort,yi=Yn.triggerAsc,gi=Yn.triggerDesc,Di=Zn;Sn===lt?Di=gi:Sn===yt&&(Di=yi),nn=c()(c()({},nn),{className:i()(nn.className,g()({},"".concat(Gt,"-column-sort"),yn)),title:function(Ei){var _i=a.createElement("div",{className:"".concat(Gt,"-column-sorters")},a.createElement("span",null,Ze(Or.title,Ei)),a.createElement("span",{className:i()("".concat(Gt,"-column-sorter"),g()({},"".concat(Gt,"-column-sorter-full"),_n&&Hn))},a.createElement("span",{className:"".concat(Gt,"-column-sorter-inner")},_n,Hn)));return On?a.createElement(Fe.a,{title:Di},a.createElement("div",{className:"".concat(Gt,"-column-sorters-with-tooltip")},_i)):_i},onHeaderCell:function(Ei){var _i=Or.onHeaderCell&&Or.onHeaderCell(Ei)||{},Ni=_i.onClick;return _i.onClick=function(jn){fn({column:Or,key:Rn,sortOrder:Sn,multiplePriority:kt(Or)}),Ni&&Ni(jn)},_i.className=i()(_i.className,"".concat(Gt,"-column-has-sorters")),_i}})}return"children"in nn&&(nn=c()(c()({},nn),{children:Wt(Gt,nn.children,rn,fn,Xe,_t,lr,Wr)})),nn})}function un(Gt){var Xr=Gt.column,rn=Gt.sortOrder;return{column:Xr,order:rn,field:Xr.dataIndex,columnKey:Xr.key}}function ir(Gt){var Xr=Gt.filter(function(rn){var fn=rn.sortOrder;return fn}).map(un);return Xr.length===0&&Gt.length?c()(c()({},un(Gt[Gt.length-1])),{column:void 0}):Xr.length<=1?Xr[0]||{}:Xr}function Gr(Gt,Xr,rn){var fn=Xr.slice().sort(function(lr,rr){return rr.multiplePriority-lr.multiplePriority}),Xe=Gt.slice(),_t=fn.filter(function(lr){var rr=lr.column.sorter,Or=lr.sortOrder;return wr(rr)&&Or});return _t.length?Xe.sort(function(lr,rr){for(var Or=0;Or<_t.length;Or+=1){var Mr=_t[Or],Wr=Mr.column.sorter,nn=Mr.sortOrder,wn=wr(Wr);if(wn&&nn){var On=wn(lr,rr,nn);if(On!==0)return nn===yt?On:-On}}return 0}).map(function(lr){var rr=lr[rn];return rr?c()(c()({},lr),g()({},rn,Gr(rr,Xr,rn))):lr}):Xe}function kr(Gt){var Xr=Gt.prefixCls,rn=Gt.mergedColumns,fn=Gt.onSorterChange,Xe=Gt.sortDirections,_t=Gt.tableLocale,lr=Gt.showSorterTooltip,rr=a.useState(_r(rn,!0)),Or=m()(rr,2),Mr=Or[0],Wr=Or[1],nn=a.useMemo(function(){var yn=!0,Sn=_r(rn,!1);if(!Sn.length)return Mr;var _n=[];function Hn(Zn){yn?_n.push(Zn):_n.push(c()(c()({},Zn),{sortOrder:null}))}var Yn=null;return Sn.forEach(function(Zn){Yn===null?(Hn(Zn),Zn.sortOrder&&(Zn.multiplePriority===!1?yn=!1:Yn=!0)):(Yn&&Zn.multiplePriority!==!1||(yn=!1),Hn(Zn))}),_n},[rn,Mr]),wn=a.useMemo(function(){var yn=nn.map(function(Sn){var _n=Sn.column,Hn=Sn.sortOrder;return{column:_n,order:Hn}});return{sortColumns:yn,sortColumn:yn[0]&&yn[0].column,sortOrder:yn[0]&&yn[0].order}},[nn]);function On(yn){var Sn;yn.multiplePriority===!1||!nn.length||nn[0].multiplePriority===!1?Sn=[yn]:Sn=[].concat(ut()(nn.filter(function(_n){var Hn=_n.key;return Hn!==yn.key})),[yn]),Wr(Sn),fn(ir(Sn),Sn)}var Rn=function(Sn){return Wt(Xr,Sn,nn,On,Xe,_t,lr)},Nn=function(){return ir(nn)};return[Rn,nn,wn,Nn]}var yr=d("Y+p1"),En=d.n(yr),kn=d("5Uyt"),ii=d.n(kn),oi=d("2/Rp"),ei=d("ECub"),ci=function(Xr){return a.createElement("div",{className:Xr.className,onClick:function(fn){return fn.stopPropagation()}},Xr.children)},Pn=ci,xi=d("sPtV"),gn=ur.a.SubMenu,zr=ur.a.Item;function Cn(Gt){return Gt.some(function(Xr){var rn=Xr.children;return rn})}function on(Gt){var Xr=Gt.filters,rn=Gt.prefixCls,fn=Gt.filteredKeys,Xe=Gt.filterMultiple,_t=Gt.locale;return Xr.length===0?a.createElement(a.Fragment,null,a.createElement(ei.a,{image:ei.a.PRESENTED_IMAGE_SIMPLE,description:_t.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Xr.map(function(lr,rr){var Or=String(lr.value);if(lr.children)return a.createElement(gn,{key:Or||rr,title:lr.text,popupClassName:"".concat(rn,"-dropdown-submenu")},on({filters:lr.children,prefixCls:rn,filteredKeys:fn,filterMultiple:Xe,locale:_t}));var Mr=Xe?gr.a:Yr.a;return a.createElement(zr,{key:lr.value!==void 0?Or:rr},a.createElement(Mr,{checked:fn.includes(Or)}),a.createElement("span",null,lr.text))})}function li(Gt){var Xr,rn=Gt.prefixCls,fn=Gt.column,Xe=Gt.dropdownPrefixCls,_t=Gt.columnKey,lr=Gt.filterMultiple,rr=Gt.filterState,Or=Gt.triggerFilter,Mr=Gt.locale,Wr=Gt.children,nn=Gt.getPopupContainer,wn=fn.filterDropdownVisible,On=fn.onFilterDropdownVisibleChange,Rn=a.useState(!1),Nn=m()(Rn,2),yn=Nn[0],Sn=Nn[1],_n=!!(rr&&(((Xr=rr.filteredKeys)===null||Xr===void 0?void 0:Xr.length)||rr.forceFiltered)),Hn=function($n){Sn($n),On&&On($n)},Yn=typeof wn=="boolean"?wn:yn,Zn=rr&&rr.filteredKeys,yi=Object(xi.a)(Zn||[]),gi=m()(yi,2),Di=gi[0],Ui=gi[1],Ei=function($n){var Ti=$n.selectedKeys;Ui(Ti)};a.useEffect(function(){Ei({selectedKeys:Zn||[]})},[Zn]);var _i=a.useState([]),Ni=m()(_i,2),jn=Ni[0],Ii=Ni[1],Hi=a.useRef(),fr=function($n){Hi.current=window.setTimeout(function(){Ii($n)})},Dr=function(){window.clearTimeout(Hi.current)};a.useEffect(function(){return function(){window.clearTimeout(Hi.current)}},[]);var Qr=function($n){Hn(!1);var Ti=$n&&$n.length?$n:null;if(Ti===null&&(!rr||!rr.filteredKeys))return null;if(En()(Ti,rr==null?void 0:rr.filteredKeys))return null;Or({column:fn,key:_t,filteredKeys:Ti})},Nr=function(){Qr(Di())},Yt=function(){Ui([]),Qr([])},xr=function($n){$n&&Zn!==void 0&&Ui(Zn||[]),Hn($n),!$n&&!fn.filterDropdown&&Nr()},tr=i()(g()({},"".concat(Xe,"-menu-without-submenu"),!Cn(fn.filters||[]))),jr;if(typeof fn.filterDropdown=="function")jr=fn.filterDropdown({prefixCls:"".concat(Xe,"-custom"),setSelectedKeys:function($n){return Ei({selectedKeys:$n})},selectedKeys:Di(),confirm:Nr,clearFilters:Yt,filters:fn.filters,visible:Yn});else if(fn.filterDropdown)jr=fn.filterDropdown;else{var Ur=Di()||[];jr=a.createElement(a.Fragment,null,a.createElement(ur.a,{multiple:lr,prefixCls:"".concat(Xe,"-menu"),className:tr,onClick:Dr,onSelect:Ei,onDeselect:Ei,selectedKeys:Ur,getPopupContainer:nn,openKeys:jn,onOpenChange:fr},on({filters:fn.filters||[],prefixCls:rn,filteredKeys:Di(),filterMultiple:lr,locale:Mr})),a.createElement("div",{className:"".concat(rn,"-dropdown-btns")},a.createElement(oi.a,{type:"link",size:"small",disabled:Ur.length===0,onClick:Yt},Mr.filterReset),a.createElement(oi.a,{type:"primary",size:"small",onClick:Nr},Mr.filterConfirm)))}var dn=a.createElement(Pn,{className:"".concat(rn,"-dropdown")},jr),sn;typeof fn.filterIcon=="function"?sn=fn.filterIcon(_n):fn.filterIcon?sn=fn.filterIcon:sn=a.createElement(ii.a,null);var bn=a.useContext(je.b),Bn=bn.direction;return a.createElement("div",{className:i()("".concat(rn,"-column"))},a.createElement("span",{className:"".concat(rn,"-column-title")},Wr),a.createElement("span",{className:i()("".concat(rn,"-trigger-container"),g()({},"".concat(rn,"-trigger-container-open"),Yn)),onClick:function($n){$n.stopPropagation()}},a.createElement(or.a,{overlay:dn,trigger:["click"],visible:Yn,onVisibleChange:xr,getPopupContainer:nn,placement:Bn==="rtl"?"bottomLeft":"bottomRight"},a.createElement("span",{role:"button",tabIndex:-1,className:i()("".concat(rn,"-trigger"),{active:_n})},sn))))}var ri=li;function wi(Gt,Xr,rn){var fn=[];return(Gt||[]).forEach(function(Xe,_t){var lr=We(_t,rn);"children"in Xe?fn=[].concat(ut()(fn),ut()(wi(Xe.children,Xr,lr))):(Xe.filters||"filterDropdown"in Xe||"onFilter"in Xe)&&("filteredValue"in Xe?fn.push({column:Xe,key:Ve(Xe,lr),filteredKeys:Xe.filteredValue,forceFiltered:Xe.filtered}):fn.push({column:Xe,key:Ve(Xe,lr),filteredKeys:Xr&&Xe.defaultFilteredValue?Xe.defaultFilteredValue:void 0,forceFiltered:Xe.filtered}))}),fn}function Gn(Gt,Xr,rn,fn,Xe,_t,lr,rr){return rn.map(function(Or,Mr){var Wr=We(Mr,rr),nn=Or.filterMultiple,wn=nn===void 0?!0:nn;if(Or.filters||"filterDropdown"in Or){var On=Ve(Or,Wr),Rn=fn.find(function(Nn){var yn=Nn.key;return On===yn});return c()(c()({},Or),{title:function(yn){return a.createElement(ri,{prefixCls:"".concat(Gt,"-filter"),dropdownPrefixCls:Xr,column:Or,columnKey:On,filterState:Rn,filterMultiple:wn,triggerFilter:Xe,locale:lr,getPopupContainer:_t},Ze(Or.title,yn))}})}return"children"in Or?c()(c()({},Or),{children:Gn(Gt,Xr,Or.children,fn,Xe,_t,lr,Wr)}):Or})}function ki(Gt){var Xr={};return Gt.forEach(function(rn){var fn=rn.key,Xe=rn.filteredKeys;Xr[fn]=Xe||null}),Xr}function Jn(Gt){var Xr=[];return(Gt||[]).forEach(function(rn){var fn=rn.value,Xe=rn.children;Xr.push(fn),Xe&&(Xr=[].concat(ut()(Xr),ut()(Jn(Xe))))}),Xr}function Pi(Gt,Xr){return Xr.reduce(function(rn,fn){var Xe=fn.column,_t=Xe.onFilter,lr=Xe.filters,rr=fn.filteredKeys;return _t&&rr&&rr.length?rn.filter(function(Or){return rr.some(function(Mr){var Wr=Jn(lr),nn=Wr.findIndex(function(On){return String(On)===String(Mr)}),wn=nn!==-1?Wr[nn]:Mr;return _t(wn,Or)})}):rn},Gt)}function mn(Gt){var Xr=Gt.prefixCls,rn=Gt.dropdownPrefixCls,fn=Gt.mergedColumns,Xe=Gt.onFilterChange,_t=Gt.getPopupContainer,lr=Gt.locale,rr=a.useState(wi(fn,!0)),Or=m()(rr,2),Mr=Or[0],Wr=Or[1],nn=a.useMemo(function(){var Nn=wi(fn,!1);return Nn.every(function(yn){var Sn=yn.filteredKeys;return Sn===void 0})?Mr:Nn},[fn,Mr]),wn=a.useCallback(function(){return ki(nn)},[nn]),On=function(yn){var Sn=nn.filter(function(_n){var Hn=_n.key;return Hn!==yn.key});Sn.push(yn),Wr(Sn),Xe(ki(Sn),Sn)},Rn=function(yn){return Gn(Xr,rn,yn,nn,On,_t,lr)};return[Rn,nn,wn]}var Fr=mn;function An(Gt,Xr){return Gt.map(function(rn){var fn=c()({},rn);return fn.title=Ze(rn.title,Xr),"children"in fn&&(fn.children=An(fn.children,Xr)),fn})}function Un(Gt){var Xr=a.useCallback(function(rn){return An(rn,Gt)},[Gt]);return[Xr]}function Vn(Gt){return function(rn){var fn,Xe=rn.prefixCls,_t=rn.onExpand,lr=rn.record,rr=rn.expanded,Or=rn.expandable,Mr="".concat(Xe,"-row-expand-icon");return a.createElement("button",{type:"button",onClick:function(nn){_t(lr,nn),nn.stopPropagation()},className:i()(Mr,(fn={},g()(fn,"".concat(Mr,"-spaced"),!Or),g()(fn,"".concat(Mr,"-expanded"),Or&&rr),g()(fn,"".concat(Mr,"-collapsed"),Or&&!rr),fn)),"aria-label":rr?Gt.collapse:Gt.expand})}}var ti=Vn,di=d("zAh6"),fi=d("ZvpZ"),mi=fi.a,Wi=d("3Nzz");function na(Gt){return null}var ea=na;function Fa(Gt){return null}var pi=Fa,ln=d("5OYt"),Li=[];function Zi(Gt){var Xr,rn=Gt.prefixCls,fn=Gt.className,Xe=Gt.style,_t=Gt.size,lr=Gt.bordered,rr=Gt.dropdownPrefixCls,Or=Gt.dataSource,Mr=Gt.pagination,Wr=Gt.rowSelection,nn=Gt.rowKey,wn=Gt.rowClassName,On=Gt.columns,Rn=Gt.children,Nn=Gt.childrenColumnName,yn=Gt.onChange,Sn=Gt.getPopupContainer,_n=Gt.loading,Hn=Gt.expandIcon,Yn=Gt.expandable,Zn=Gt.expandedRowRender,yi=Gt.expandIconColumnIndex,gi=Gt.indentSize,Di=Gt.scroll,Ui=Gt.sortDirections,Ei=Gt.locale,_i=Gt.showSorterTooltip,Ni=_i===void 0?!0:_i;Object(Jr.a)(!(typeof nn=="function"&&nn.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var jn=Object(ln.a)(),Ii=a.useMemo(function(){var wo=new Set(Object.keys(jn).filter(function(Da){return jn[Da]}));return(On||gt(Rn)).filter(function(Da){return!Da.responsive||Da.responsive.some(function(Fo){return wo.has(Fo)})})},[Rn,On,jn]),Hi=Object(n.default)(Gt,["className","style","columns"]),fr=a.useContext(Wi.b),Dr=a.useContext(je.b),Qr=Dr.locale,Nr=Qr===void 0?mi:Qr,Yt=Dr.renderEmpty,xr=Dr.direction,tr=_t||fr,jr=c()(c()({},Nr.Table),Ei),Ur=Or||Li,dn=a.useContext(je.b),sn=dn.getPrefixCls,bn=sn("table",rn),Bn=sn("dropdown",rr),Xn=c()({childrenColumnName:Nn,expandIconColumnIndex:yi},Yn),$n=Xn.childrenColumnName,Ti=$n===void 0?"children":$n,Xi=a.useMemo(function(){return Ur.some(function(wo){var Da;return(Da=wo)===null||Da===void 0?void 0:Da[Ti]})?"nest":Zn||Yn&&Yn.expandedRowRender?"row":null},[Ur]),ua={body:a.useRef()},da=a.useMemo(function(){return typeof nn=="function"?nn:function(wo){var Da;return(Da=wo)===null||Da===void 0?void 0:Da[nn]}},[nn]),sa=Br(Ur,Ti,da),ca=m()(sa,1),zi=ca[0],Ri={},ta=function(Da,Fo){var cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,mo=c()(c()({},Ri),Da);cs&&(Ri.resetPagination(),mo.pagination.current&&(mo.pagination.current=1),Mr&&Mr.onChange&&Mr.onChange(1,mo.pagination.pageSize)),Di&&Di.scrollToFirstRowOnChange!==!1&&ua.body.current&&Object(di.a)(0,{getContainer:function(){return ua.body.current}}),yn&&yn(mo.pagination,mo.filters,mo.sorter,{currentDataSource:Pi(Gr(Ur,mo.sorterStates,Ti),mo.filterStates),action:Fo})},$i=function(Da,Fo){ta({sorter:Da,sorterStates:Fo},"sort",!1)},Ca=kr({prefixCls:bn,mergedColumns:Ii,onSorterChange:$i,sortDirections:Ui||["ascend","descend"],tableLocale:jr,showSorterTooltip:Ni}),Ma=m()(Ca,4),qi=Ma[0],Yi=Ma[1],Pa=Ma[2],ya=Ma[3],Ci=a.useMemo(function(){return Gr(Ur,Yi,Ti)},[Ur,Yi]);Ri.sorter=ya(),Ri.sorterStates=Yi;var la=function(Da,Fo){ta({filters:Da,filterStates:Fo},"filter",!0)},Ha=Fr({prefixCls:bn,locale:jr,dropdownPrefixCls:Bn,mergedColumns:Ii,onFilterChange:la,getPopupContainer:Sn}),ka=m()(Ha,3),Aa=ka[0],Sa=ka[1],Ya=ka[2],Ta=Pi(Ci,Sa);Ri.filters=Ya(),Ri.filterStates=Sa;var Ga=a.useMemo(function(){return c()({},Pa)},[Pa]),uo=Un(Ga),aa=m()(uo,1),ho=aa[0],Ua=function(Da,Fo){ta({pagination:c()(c()({},Ri.pagination),{current:Da,pageSize:Fo})},"paginate")},Na=Rr(Ta.length,Mr,Ua),$a=m()(Na,2),Ra=$a[0],Ka=$a[1];Ri.pagination=Mr===!1?{}:Bt(Mr,Ra),Ri.resetPagination=Ka;var bo=a.useMemo(function(){if(Mr===!1||!Ra.pageSize)return Ta;var wo=Ra.current,Da=wo===void 0?1:wo,Fo=Ra.total,cs=Ra.pageSize,mo=cs===void 0?Vt:cs;return Ta.length<Fo?Ta.length>mo?(Object(Jr.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."),Ta.slice((Da-1)*mo,Da*mo)):Ta:Ta.slice((Da-1)*mo,Da*mo)},[!!Mr,Ta,Ra&&Ra.current,Ra&&Ra.pageSize,Ra&&Ra.total]),no=Ai(Wr,{prefixCls:bn,data:Ta,pageData:bo,getRowKey:da,getRecordByKey:zi,expandType:Xi,childrenColumnName:Ti,locale:jr,expandIconColumnIndex:Xn.expandIconColumnIndex,getPopupContainer:Sn}),Co=m()(no,2),fo=Co[0],po=Co[1],Za=function(Da,Fo,cs){var mo;return typeof wn=="function"?mo=i()(wn(Da,Fo,cs)):mo=i()(wn),i()(g()({},"".concat(bn,"-row-selected"),po.has(da(Da,Fo))),mo)};Xn.__PARENT_RENDER_ICON__=Xn.expandIcon,Xn.expandIcon=Xn.expandIcon||Hn||ti(jr),Xi==="nest"&&Xn.expandIconColumnIndex===void 0?Xn.expandIconColumnIndex=Wr?1:0:Xn.expandIconColumnIndex>0&&Wr&&(Xn.expandIconColumnIndex-=1),typeof Xn.indentSize!="number"&&(Xn.indentSize=typeof gi=="number"?gi:15);var qa=a.useCallback(function(wo){return ho(fo(Aa(qi(wo))))},[qi,Aa,fo]),Oa,oo;if(Mr!==!1){var go;Ra.size?go=Ra.size:go=tr==="small"||tr==="middle"?"small":void 0;var Bi=function(Da){return a.createElement(Re.a,c()({className:"".concat(bn,"-pagination ").concat(bn,"-pagination-").concat(Da)},Ra,{size:go}))},pa=xr==="rtl"?"left":"right";if(Ra.position!==null&&Array.isArray(Ra.position)){var Do=Ra.position.find(function(wo){return wo.indexOf("top")!==-1}),jo=Ra.position.find(function(wo){return wo.indexOf("bottom")!==-1});!Do&&!jo?oo=Bi(pa):(Do&&(Oa=Bi(Do.toLowerCase().replace("top",""))),jo&&(oo=Bi(jo.toLowerCase().replace("bottom",""))))}else oo=Bi(pa)}var Vo;typeof _n=="boolean"?Vo={spinning:_n}:E()(_n)==="object"&&(Vo=c()({spinning:!0},_n));var Yo=i()("".concat(bn,"-wrapper"),fn,g()({},"".concat(bn,"-wrapper-rtl"),xr==="rtl"));return a.createElement("div",{className:Yo,style:Xe},a.createElement(Ee.a,c()({spinning:!1},Vo),Oa,a.createElement(tt,c()({},Hi,{columns:Ii,direction:xr,expandable:Xn,prefixCls:bn,className:i()((Xr={},g()(Xr,"".concat(bn,"-middle"),tr==="middle"),g()(Xr,"".concat(bn,"-small"),tr==="small"),g()(Xr,"".concat(bn,"-bordered"),lr),g()(Xr,"".concat(bn,"-empty"),Ur.length===0),Xr)),data:bo,rowKey:da,rowClassName:Za,emptyText:Ei&&Ei.emptyText||Yt("Table"),internalHooks:vn,internalRefs:ua,transformColumns:qa})),Ta&&Ta.length>0&&oo))}Zi.defaultProps={rowKey:"key"},Zi.SELECTION_ALL=Tn,Zi.SELECTION_INVERT=Dn,Zi.Column=ea,Zi.ColumnGroup=pi,Zi.Summary=Kr;var Fi=Zi,ia=k.a=Fi},wDdD:function(H,k,d){var I=d("ProS"),E=d("bYtY");d("98bh"),d("GrNh");var T=d("d4KN"),g=d("mOdp"),S=d("KS52"),m=d("0/Rx");T("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),I.registerVisual(g("pie")),I.registerLayout(E.curry(S,"pie")),I.registerProcessor(m("pie"))},wOnQ:function(H,k,d){/*!
|
|
|
* html2canvas 1.3.2 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(I,E){H.exports=E()})(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 I=function(he,Ie){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,rt){Me.__proto__=rt}||function(Me,rt){for(var jt in rt)Object.prototype.hasOwnProperty.call(rt,jt)&&(Me[jt]=rt[jt])},I(he,Ie)};function E(ot,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");I(ot,he);function Ie(){this.constructor=ot}ot.prototype=he===null?Object.create(he):(Ie.prototype=he.prototype,new Ie)}var T=function(){return T=Object.assign||function(Ie){for(var Me,rt=1,jt=arguments.length;rt<jt;rt++){Me=arguments[rt];for(var Er in Me)Object.prototype.hasOwnProperty.call(Me,Er)&&(Ie[Er]=Me[Er])}return Ie},T.apply(this,arguments)};function g(ot,he,Ie,Me){function rt(jt){return jt instanceof Ie?jt:new Ie(function(Er){Er(jt)})}return new(Ie||(Ie=Promise))(function(jt,Er){function Hr(ai){try{hn(Me.next(ai))}catch(Qn){Er(Qn)}}function qr(ai){try{hn(Me.throw(ai))}catch(Qn){Er(Qn)}}function hn(ai){ai.done?jt(ai.value):rt(ai.value).then(Hr,qr)}hn((Me=Me.apply(ot,he||[])).next())})}function S(ot,he){var Ie={label:0,sent:function(){if(jt[0]&1)throw jt[1];return jt[1]},trys:[],ops:[]},Me,rt,jt,Er;return Er={next:Hr(0),throw:Hr(1),return:Hr(2)},typeof Symbol=="function"&&(Er[Symbol.iterator]=function(){return this}),Er;function Hr(hn){return function(ai){return qr([hn,ai])}}function qr(hn){if(Me)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(Me=1,rt&&(jt=hn[0]&2?rt.return:hn[0]?rt.throw||((jt=rt.return)&&jt.call(rt),0):rt.next)&&!(jt=jt.call(rt,hn[1])).done)return jt;(rt=0,jt)&&(hn=[hn[0]&2,jt.value]);switch(hn[0]){case 0:case 1:jt=hn;break;case 4:return Ie.label++,{value:hn[1],done:!1};case 5:Ie.label++,rt=hn[1],hn=[0];continue;case 7:hn=Ie.ops.pop(),Ie.trys.pop();continue;default:if(!(jt=Ie.trys,jt=jt.length>0&&jt[jt.length-1])&&(hn[0]===6||hn[0]===2)){Ie=0;continue}if(hn[0]===3&&(!jt||hn[1]>jt[0]&&hn[1]<jt[3])){Ie.label=hn[1];break}if(hn[0]===6&&Ie.label<jt[1]){Ie.label=jt[1],jt=hn;break}if(jt&&Ie.label<jt[2]){Ie.label=jt[2],Ie.ops.push(hn);break}jt[2]&&Ie.ops.pop(),Ie.trys.pop();continue}hn=he.call(ot,Ie)}catch(ai){hn=[6,ai],rt=0}finally{Me=jt=0}if(hn[0]&5)throw hn[1];return{value:hn[0]?hn[1]:void 0,done:!0}}}function m(ot,he,Ie){if(Ie||arguments.length===2)for(var Me=0,rt=he.length,jt;Me<rt;Me++)(jt||!(Me in he))&&(jt||(jt=Array.prototype.slice.call(he,0,Me)),jt[Me]=he[Me]);return ot.concat(jt||he)}for(var h=function(){function ot(he,Ie,Me,rt){this.left=he,this.top=Ie,this.width=Me,this.height=rt}return ot.prototype.add=function(he,Ie,Me,rt){return new ot(this.left+he,this.top+Ie,this.width+Me,this.height+rt)},ot.fromClientRect=function(he,Ie){return new ot(Ie.left+he.windowBounds.left,Ie.top+he.windowBounds.top,Ie.width,Ie.height)},ot.fromDOMRectList=function(he,Ie){var Me=Ie[0];return Me?new ot(Me.x+he.windowBounds.left,Me.y+he.windowBounds.top,Me.width,Me.height):ot.EMPTY},ot.EMPTY=new ot(0,0,0,0),ot}(),c=function(he,Ie){return h.fromClientRect(he,Ie.getBoundingClientRect())},a=function(he){var Ie=he.body,Me=he.documentElement;if(!Ie||!Me)throw new Error("Unable to get document size");var rt=Math.max(Math.max(Ie.scrollWidth,Me.scrollWidth),Math.max(Ie.offsetWidth,Me.offsetWidth),Math.max(Ie.clientWidth,Me.clientWidth)),jt=Math.max(Math.max(Ie.scrollHeight,Me.scrollHeight),Math.max(Ie.offsetHeight,Me.offsetHeight),Math.max(Ie.clientHeight,Me.clientHeight));return new h(0,0,rt,jt)},r=function(he){for(var Ie=[],Me=0,rt=he.length;Me<rt;){var jt=he.charCodeAt(Me++);if(jt>=55296&&jt<=56319&&Me<rt){var Er=he.charCodeAt(Me++);(Er&64512)===56320?Ie.push(((jt&1023)<<10)+(Er&1023)+65536):(Ie.push(jt),Me--)}else Ie.push(jt)}return Ie},i=function(){for(var he=[],Ie=0;Ie<arguments.length;Ie++)he[Ie]=arguments[Ie];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var Me=he.length;if(!Me)return"";for(var rt=[],jt=-1,Er="";++jt<Me;){var Hr=he[jt];Hr<=65535?rt.push(Hr):(Hr-=65536,rt.push((Hr>>10)+55296,Hr%1024+56320)),(jt+1===Me||rt.length>16384)&&(Er+=String.fromCharCode.apply(String,rt),rt.length=0)}return Er},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<n.length;s++)t[n.charCodeAt(s)]=s;var e=function(he){var Ie=he.length*.75,Me=he.length,rt,jt=0,Er,Hr,qr,hn;he[he.length-1]==="="&&(Ie--,he[he.length-2]==="="&&Ie--);var ai=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ie):new Array(Ie),Qn=Array.isArray(ai)?ai:new Uint8Array(ai);for(rt=0;rt<Me;rt+=4)Er=t[he.charCodeAt(rt)],Hr=t[he.charCodeAt(rt+1)],qr=t[he.charCodeAt(rt+2)],hn=t[he.charCodeAt(rt+3)],Qn[jt++]=Er<<2|Hr>>4,Qn[jt++]=(Hr&15)<<4|qr>>2,Qn[jt++]=(qr&3)<<6|hn&63;return ai},o=function(he){for(var Ie=he.length,Me=[],rt=0;rt<Ie;rt+=2)Me.push(he[rt+1]<<8|he[rt]);return Me},l=function(he){for(var Ie=he.length,Me=[],rt=0;rt<Ie;rt+=4)Me.push(he[rt+3]<<24|he[rt+2]<<16|he[rt+1]<<8|he[rt]);return Me},u=5,f=6+5,p=2,v=f-u,A=65536>>u,y=1<<u,x=y-1,C=1024>>u,w=A+C,b=w,_=2048>>6,O=b+_,L=65536>>f,D=1<<v,N=D-1,M=function(he,Ie,Me){return he.slice?he.slice(Ie,Me):new Uint16Array(Array.prototype.slice.call(he,Ie,Me))},F=function(he,Ie,Me){return he.slice?he.slice(Ie,Me):new Uint32Array(Array.prototype.slice.call(he,Ie,Me))},R=function(he){var Ie=e(he),Me=Array.isArray(Ie)?l(Ie):new Uint32Array(Ie),rt=Array.isArray(Ie)?o(Ie):new Uint16Array(Ie),jt=24,Er=M(rt,jt/2,Me[4]/2),Hr=Me[5]===2?M(rt,(jt+Me[4])/2):F(Me,Math.ceil((jt+Me[4])/4));return new j(Me[0],Me[1],Me[2],Me[3],Er,Hr)},j=function(){function ot(he,Ie,Me,rt,jt,Er){this.initialValue=he,this.errorValue=Ie,this.highStart=Me,this.highValueIndex=rt,this.index=jt,this.data=Er}return ot.prototype.get=function(he){var Ie;if(he>=0){if(he<55296||he>56319&&he<=65535)return Ie=this.index[he>>u],Ie=(Ie<<p)+(he&x),this.data[Ie];if(he<=65535)return Ie=this.index[A+(he-55296>>u)],Ie=(Ie<<p)+(he&x),this.data[Ie];if(he<this.highStart)return Ie=O-L+(he>>f),Ie=this.index[Ie],Ie+=he>>u&N,Ie=this.index[Ie],Ie=(Ie<<p)+(he&x),this.data[Ie];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ot}(),B="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==",K=50,U=1,z=2,V=3,Y=4,J=5,se=7,$=8,ae=9,ge=10,pe=11,Ne=12,de=13,Le=14,Q=15,ce=16,Ke=17,ee=18,X=19,G=20,Z=21,ve=22,ue=23,_e=24,xe=25,oe=26,fe=27,Te=28,ze=29,it=30,et=31,Oe=32,gt=33,Ge=34,wt=35,xt=36,Ct=37,Dt=38,Ht=39,Je=40,ye=41,ie=42,bt=43,qe=[9001,65288],me="!",Rt="\xD7",er="\xF7",ct=R(B),zt=[it,xt],sr=[U,z,V,J],Kr=[ge,$],ar=[fe,oe],nr=sr.concat(Kr),Lt=[Dt,Ht,Je,Ge,wt],st=[Q,de],Qe=function(he,Ie){Ie===void 0&&(Ie="strict");var Me=[],rt=[],jt=[];return he.forEach(function(Er,Hr){var qr=ct.get(Er);if(qr>K?(jt.push(!0),qr-=K):jt.push(!1),["normal","auto","loose"].indexOf(Ie)!==-1&&[8208,8211,12316,12448].indexOf(Er)!==-1)return rt.push(Hr),Me.push(ce);if(qr===Y||qr===pe){if(Hr===0)return rt.push(Hr),Me.push(it);var hn=Me[Hr-1];return nr.indexOf(hn)===-1?(rt.push(rt[Hr-1]),Me.push(hn)):(rt.push(Hr),Me.push(it))}if(rt.push(Hr),qr===et)return Me.push(Ie==="strict"?Z:Ct);if(qr===ie)return Me.push(it);if(qr===ze)return Me.push(it);if(qr===bt)return Er>=131072&&Er<=196605||Er>=196608&&Er<=262141?Me.push(Ct):Me.push(it);Me.push(qr)}),[rt,Me,jt]},qt=function(he,Ie,Me,rt){var jt=rt[Me];if(Array.isArray(he)?he.indexOf(jt)!==-1:he===jt)for(var Er=Me;Er<=rt.length;){Er++;var Hr=rt[Er];if(Hr===Ie)return!0;if(Hr!==ge)break}if(jt===ge)for(var Er=Me;Er>0;){Er--;var qr=rt[Er];if(Array.isArray(he)?he.indexOf(qr)!==-1:he===qr)for(var hn=Me;hn<=rt.length;){hn++;var Hr=rt[hn];if(Hr===Ie)return!0;if(Hr!==ge)break}if(qr!==ge)break}return!1},Sr=function(he,Ie){for(var Me=he;Me>=0;){var rt=Ie[Me];if(rt===ge)Me--;else return rt}return 0},Ar=function(he,Ie,Me,rt,jt){if(Me[rt]===0)return Rt;var Er=rt-1;if(Array.isArray(jt)&&jt[Er]===!0)return Rt;var Hr=Er-1,qr=Er+1,hn=Ie[Er],ai=Hr>=0?Ie[Hr]:0,Qn=Ie[qr];if(hn===z&&Qn===V)return Rt;if(sr.indexOf(hn)!==-1)return me;if(sr.indexOf(Qn)!==-1)return Rt;if(Kr.indexOf(Qn)!==-1)return Rt;if(Sr(Er,Ie)===$)return er;if(ct.get(he[Er])===pe)return Rt;if((hn===Oe||hn===gt)&&ct.get(he[qr])===pe)return Rt;if(hn===se||Qn===se)return Rt;if(hn===ae)return Rt;if([ge,de,Q].indexOf(hn)===-1&&Qn===ae)return Rt;if([Ke,ee,X,_e,Te].indexOf(Qn)!==-1)return Rt;if(Sr(Er,Ie)===ve)return Rt;if(qt(ue,ve,Er,Ie))return Rt;if(qt([Ke,ee],Z,Er,Ie))return Rt;if(qt(Ne,Ne,Er,Ie))return Rt;if(hn===ge)return er;if(hn===ue||Qn===ue)return Rt;if(Qn===ce||hn===ce)return er;if([de,Q,Z].indexOf(Qn)!==-1||hn===Le)return Rt;if(ai===xt&&st.indexOf(hn)!==-1)return Rt;if(hn===Te&&Qn===xt)return Rt;if(Qn===G)return Rt;if(zt.indexOf(Qn)!==-1&&hn===xe||zt.indexOf(hn)!==-1&&Qn===xe)return Rt;if(hn===fe&&[Ct,Oe,gt].indexOf(Qn)!==-1||[Ct,Oe,gt].indexOf(hn)!==-1&&Qn===oe)return Rt;if(zt.indexOf(hn)!==-1&&ar.indexOf(Qn)!==-1||ar.indexOf(hn)!==-1&&zt.indexOf(Qn)!==-1)return Rt;if([fe,oe].indexOf(hn)!==-1&&(Qn===xe||[ve,Q].indexOf(Qn)!==-1&&Ie[qr+1]===xe)||[ve,Q].indexOf(hn)!==-1&&Qn===xe||hn===xe&&[xe,Te,_e].indexOf(Qn)!==-1)return Rt;if([xe,Te,_e,Ke,ee].indexOf(Qn)!==-1)for(var ui=Er;ui>=0;){var ha=Ie[ui];if(ha===xe)return Rt;if([Te,_e].indexOf(ha)!==-1)ui--;else break}if([fe,oe].indexOf(Qn)!==-1)for(var ui=[Ke,ee].indexOf(hn)!==-1?Hr:Er;ui>=0;){var ha=Ie[ui];if(ha===xe)return Rt;if([Te,_e].indexOf(ha)!==-1)ui--;else break}if(Dt===hn&&[Dt,Ht,Ge,wt].indexOf(Qn)!==-1||[Ht,Ge].indexOf(hn)!==-1&&[Ht,Je].indexOf(Qn)!==-1||[Je,wt].indexOf(hn)!==-1&&Qn===Je)return Rt;if(Lt.indexOf(hn)!==-1&&[G,oe].indexOf(Qn)!==-1||Lt.indexOf(Qn)!==-1&&hn===fe)return Rt;if(zt.indexOf(hn)!==-1&&zt.indexOf(Qn)!==-1)return Rt;if(hn===_e&&zt.indexOf(Qn)!==-1)return Rt;if(zt.concat(xe).indexOf(hn)!==-1&&Qn===ve&&qe.indexOf(he[qr])===-1||zt.concat(xe).indexOf(Qn)!==-1&&hn===ee)return Rt;if(hn===ye&&Qn===ye){for(var fa=Me[Er],_a=1;fa>0&&(fa--,Ie[fa]===ye);)_a++;if(_a%2!==0)return Rt}return hn===Oe&&Qn===gt?Rt:er},hr=function(he,Ie){Ie||(Ie={lineBreak:"normal",wordBreak:"normal"});var Me=Qe(he,Ie.lineBreak),rt=Me[0],jt=Me[1],Er=Me[2];(Ie.wordBreak==="break-all"||Ie.wordBreak==="break-word")&&(jt=jt.map(function(qr){return[xe,it,ie].indexOf(qr)!==-1?Ct:qr}));var Hr=Ie.wordBreak==="keep-all"?Er.map(function(qr,hn){return qr&&he[hn]>=19968&&he[hn]<=40959}):void 0;return[rt,jt,Hr]},vn=function(){function ot(he,Ie,Me,rt){this.codePoints=he,this.required=Ie===me,this.start=Me,this.end=rt}return ot.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},ot}(),Zr=function(he,Ie){var Me=r(he),rt=hr(Me,Ie),jt=rt[0],Er=rt[1],Hr=rt[2],qr=Me.length,hn=0,ai=0;return{next:function(){if(ai>=qr)return{done:!0,value:null};for(var ui=Rt;ai<qr&&(ui=Ar(Me,Er,jt,++ai,Hr))===Rt;);if(ui!==Rt||ai===qr){var ha=new vn(Me,ui,hn,ai);return hn=ai,{value:ha,done:!1}}return{done:!0,value:null}}}},Ln=1<<0,$e=1<<1,tt=1<<2,Ee=1<<3,Re=10,je=47,nt=92,Vt=9,Bt=32,Xt=34,Rr=61,Br=35,cn=36,Ut=37,pt=39,ut=40,Jt=41,Zt=95,At=45,Pt=33,vt=60,Ft=62,gr=64,or=91,ur=93,Yr=61,Jr=123,Tn=63,Dn=125,zn=124,qn=126,Ai=128,Mi=65533,Ye=42,Ce=43,ke=44,Fe=58,Ve=59,We=46,Ze=0,yt=8,lt=11,kt=14,wr=31,pr=127,_r=-1,Wt=48,un=97,ir=101,Gr=102,kr=117,yr=122,En=65,kn=69,ii=70,oi=85,ei=90,ci=function(he){return he>=Wt&&he<=57},Pn=function(he){return he>=55296&&he<=57343},xi=function(he){return ci(he)||he>=En&&he<=ii||he>=un&&he<=Gr},gn=function(he){return he>=un&&he<=yr},zr=function(he){return he>=En&&he<=ei},Cn=function(he){return gn(he)||zr(he)},on=function(he){return he>=Ai},li=function(he){return he===Re||he===Vt||he===Bt},ri=function(he){return Cn(he)||on(he)||he===Zt},wi=function(he){return ri(he)||ci(he)||he===At},Gn=function(he){return he>=Ze&&he<=yt||he===lt||he>=kt&&he<=wr||he===pr},ki=function(he,Ie){return he!==nt?!1:Ie!==Re},Jn=function(he,Ie,Me){return he===At?ri(Ie)||ki(Ie,Me):ri(he)?!0:!!(he===nt&&ki(he,Ie))},Pi=function(he,Ie,Me){return he===Ce||he===At?ci(Ie)?!0:Ie===We&&ci(Me):he===We?ci(Ie):ci(he)},mn=function(he){var Ie=0,Me=1;(he[Ie]===Ce||he[Ie]===At)&&(he[Ie]===At&&(Me=-1),Ie++);for(var rt=[];ci(he[Ie]);)rt.push(he[Ie++]);var jt=rt.length?parseInt(i.apply(void 0,rt),10):0;he[Ie]===We&&Ie++;for(var Er=[];ci(he[Ie]);)Er.push(he[Ie++]);var Hr=Er.length,qr=Hr?parseInt(i.apply(void 0,Er),10):0;(he[Ie]===kn||he[Ie]===ir)&&Ie++;var hn=1;(he[Ie]===Ce||he[Ie]===At)&&(he[Ie]===At&&(hn=-1),Ie++);for(var ai=[];ci(he[Ie]);)ai.push(he[Ie++]);var Qn=ai.length?parseInt(i.apply(void 0,ai),10):0;return Me*(jt+qr*Math.pow(10,-Hr))*Math.pow(10,hn*Qn)},Fr={type:2},An={type:3},Un={type:4},Vn={type:13},ti={type:8},di={type:21},fi={type:9},mi={type:10},Wi={type:11},na={type:12},ea={type:14},Fa={type:23},pi={type:1},ln={type:25},Li={type:24},Zi={type:26},Fi={type:27},ia={type:28},Gt={type:29},Xr={type:31},rn={type:32},fn=function(){function ot(){this._value=[]}return ot.prototype.write=function(he){this._value=this._value.concat(r(he))},ot.prototype.read=function(){for(var he=[],Ie=this.consumeToken();Ie!==rn;)he.push(Ie),Ie=this.consumeToken();return he},ot.prototype.consumeToken=function(){var he=this.consumeCodePoint();switch(he){case Xt:return this.consumeStringToken(Xt);case Br:var Ie=this.peekCodePoint(0),Me=this.peekCodePoint(1),rt=this.peekCodePoint(2);if(wi(Ie)||ki(Me,rt)){var jt=Jn(Ie,Me,rt)?$e:Ln,Er=this.consumeName();return{type:5,value:Er,flags:jt}}break;case cn:if(this.peekCodePoint(0)===Rr)return this.consumeCodePoint(),Vn;break;case pt:return this.consumeStringToken(pt);case ut:return Fr;case Jt:return An;case Ye:if(this.peekCodePoint(0)===Rr)return this.consumeCodePoint(),ea;break;case Ce:if(Pi(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case ke:return Un;case At:var Hr=he,qr=this.peekCodePoint(0),hn=this.peekCodePoint(1);if(Pi(Hr,qr,hn))return this.reconsumeCodePoint(he),this.consumeNumericToken();if(Jn(Hr,qr,hn))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();if(qr===At&&hn===Ft)return this.consumeCodePoint(),this.consumeCodePoint(),Li;break;case We:if(Pi(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case je:if(this.peekCodePoint(0)===Ye)for(this.consumeCodePoint();;){var ai=this.consumeCodePoint();if(ai===Ye&&(ai=this.consumeCodePoint(),ai===je))return this.consumeToken();if(ai===_r)return this.consumeToken()}break;case Fe:return Zi;case Ve:return Fi;case vt:if(this.peekCodePoint(0)===Pt&&this.peekCodePoint(1)===At&&this.peekCodePoint(2)===At)return this.consumeCodePoint(),this.consumeCodePoint(),ln;break;case gr:var Qn=this.peekCodePoint(0),ui=this.peekCodePoint(1),ha=this.peekCodePoint(2);if(Jn(Qn,ui,ha)){var Er=this.consumeName();return{type:7,value:Er}}break;case or:return ia;case nt:if(ki(he,this.peekCodePoint(0)))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();break;case ur:return Gt;case Yr:if(this.peekCodePoint(0)===Rr)return this.consumeCodePoint(),ti;break;case Jr:return Wi;case Dn:return na;case kr:case oi:var fa=this.peekCodePoint(0),_a=this.peekCodePoint(1);return fa===Ce&&(xi(_a)||_a===Tn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(he),this.consumeIdentLikeToken();case zn:if(this.peekCodePoint(0)===Rr)return this.consumeCodePoint(),fi;if(this.peekCodePoint(0)===zn)return this.consumeCodePoint(),di;break;case qn:if(this.peekCodePoint(0)===Rr)return this.consumeCodePoint(),mi;break;case _r:return rn}return li(he)?(this.consumeWhiteSpace(),Xr):ci(he)?(this.reconsumeCodePoint(he),this.consumeNumericToken()):ri(he)?(this.reconsumeCodePoint(he),this.consumeIdentLikeToken()):{type:6,value:i(he)}},ot.prototype.consumeCodePoint=function(){var he=this._value.shift();return typeof he=="undefined"?-1:he},ot.prototype.reconsumeCodePoint=function(he){this._value.unshift(he)},ot.prototype.peekCodePoint=function(he){return he>=this._value.length?-1:this._value[he]},ot.prototype.consumeUnicodeRangeToken=function(){for(var he=[],Ie=this.consumeCodePoint();xi(Ie)&&he.length<6;)he.push(Ie),Ie=this.consumeCodePoint();for(var Me=!1;Ie===Tn&&he.length<6;)he.push(Ie),Ie=this.consumeCodePoint(),Me=!0;if(Me){var rt=parseInt(i.apply(void 0,he.map(function(qr){return qr===Tn?Wt:qr})),16),jt=parseInt(i.apply(void 0,he.map(function(qr){return qr===Tn?ii:qr})),16);return{type:30,start:rt,end:jt}}var Er=parseInt(i.apply(void 0,he),16);if(this.peekCodePoint(0)===At&&xi(this.peekCodePoint(1))){this.consumeCodePoint(),Ie=this.consumeCodePoint();for(var Hr=[];xi(Ie)&&Hr.length<6;)Hr.push(Ie),Ie=this.consumeCodePoint();var jt=parseInt(i.apply(void 0,Hr),16);return{type:30,start:Er,end:jt}}else return{type:30,start:Er,end:Er}},ot.prototype.consumeIdentLikeToken=function(){var he=this.consumeName();return he.toLowerCase()==="url"&&this.peekCodePoint(0)===ut?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ut?(this.consumeCodePoint(),{type:19,value:he}):{type:20,value:he}},ot.prototype.consumeUrlToken=function(){var he=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===_r)return{type:22,value:""};var Ie=this.peekCodePoint(0);if(Ie===pt||Ie===Xt){var Me=this.consumeStringToken(this.consumeCodePoint());return Me.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===_r||this.peekCodePoint(0)===Jt)?(this.consumeCodePoint(),{type:22,value:Me.value}):(this.consumeBadUrlRemnants(),Fa)}for(;;){var rt=this.consumeCodePoint();if(rt===_r||rt===Jt)return{type:22,value:i.apply(void 0,he)};if(li(rt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===_r||this.peekCodePoint(0)===Jt?(this.consumeCodePoint(),{type:22,value:i.apply(void 0,he)}):(this.consumeBadUrlRemnants(),Fa);if(rt===Xt||rt===pt||rt===ut||Gn(rt))return this.consumeBadUrlRemnants(),Fa;if(rt===nt)if(ki(rt,this.peekCodePoint(0)))he.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Fa;else he.push(rt)}},ot.prototype.consumeWhiteSpace=function(){for(;li(this.peekCodePoint(0));)this.consumeCodePoint()},ot.prototype.consumeBadUrlRemnants=function(){for(;;){var he=this.consumeCodePoint();if(he===Jt||he===_r)return;ki(he,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ot.prototype.consumeStringSlice=function(he){for(var Ie=6e4,Me="";he>0;){var rt=Math.min(Ie,he);Me+=i.apply(void 0,this._value.splice(0,rt)),he-=rt}return this._value.shift(),Me},ot.prototype.consumeStringToken=function(he){var Ie="",Me=0;do{var rt=this._value[Me];if(rt===_r||rt===void 0||rt===he)return Ie+=this.consumeStringSlice(Me),{type:0,value:Ie};if(rt===Re)return this._value.splice(0,Me),pi;if(rt===nt){var jt=this._value[Me+1];jt!==_r&&jt!==void 0&&(jt===Re?(Ie+=this.consumeStringSlice(Me),Me=-1,this._value.shift()):ki(rt,jt)&&(Ie+=this.consumeStringSlice(Me),Ie+=i(this.consumeEscapedCodePoint()),Me=-1))}Me++}while(!0)},ot.prototype.consumeNumber=function(){var he=[],Ie=tt,Me=this.peekCodePoint(0);for((Me===Ce||Me===At)&&he.push(this.consumeCodePoint());ci(this.peekCodePoint(0));)he.push(this.consumeCodePoint());Me=this.peekCodePoint(0);var rt=this.peekCodePoint(1);if(Me===We&&ci(rt))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),Ie=Ee;ci(this.peekCodePoint(0));)he.push(this.consumeCodePoint());Me=this.peekCodePoint(0),rt=this.peekCodePoint(1);var jt=this.peekCodePoint(2);if((Me===kn||Me===ir)&&((rt===Ce||rt===At)&&ci(jt)||ci(rt)))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),Ie=Ee;ci(this.peekCodePoint(0));)he.push(this.consumeCodePoint());return[mn(he),Ie]},ot.prototype.consumeNumericToken=function(){var he=this.consumeNumber(),Ie=he[0],Me=he[1],rt=this.peekCodePoint(0),jt=this.peekCodePoint(1),Er=this.peekCodePoint(2);if(Jn(rt,jt,Er)){var Hr=this.consumeName();return{type:15,number:Ie,flags:Me,unit:Hr}}return rt===Ut?(this.consumeCodePoint(),{type:16,number:Ie,flags:Me}):{type:17,number:Ie,flags:Me}},ot.prototype.consumeEscapedCodePoint=function(){var he=this.consumeCodePoint();if(xi(he)){for(var Ie=i(he);xi(this.peekCodePoint(0))&&Ie.length<6;)Ie+=i(this.consumeCodePoint());li(this.peekCodePoint(0))&&this.consumeCodePoint();var Me=parseInt(Ie,16);return Me===0||Pn(Me)||Me>1114111?Mi:Me}return he===_r?Mi:he},ot.prototype.consumeName=function(){for(var he="";;){var Ie=this.consumeCodePoint();if(wi(Ie))he+=i(Ie);else if(ki(Ie,this.peekCodePoint(0)))he+=i(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ie),he}},ot}(),Xe=function(){function ot(he){this._tokens=he}return ot.create=function(he){var Ie=new fn;return Ie.write(he),new ot(Ie.read())},ot.parseValue=function(he){return ot.create(he).parseComponentValue()},ot.parseValues=function(he){return ot.create(he).parseComponentValues()},ot.prototype.parseComponentValue=function(){for(var he=this.consumeToken();he.type===31;)he=this.consumeToken();if(he.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(he);var Ie=this.consumeComponentValue();do he=this.consumeToken();while(he.type===31);if(he.type===32)return Ie;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ot.prototype.parseComponentValues=function(){for(var he=[];;){var Ie=this.consumeComponentValue();if(Ie.type===32)return he;he.push(Ie),he.push()}},ot.prototype.consumeComponentValue=function(){var he=this.consumeToken();switch(he.type){case 11:case 28:case 2:return this.consumeSimpleBlock(he.type);case 19:return this.consumeFunction(he)}return he},ot.prototype.consumeSimpleBlock=function(he){for(var Ie={type:he,values:[]},Me=this.consumeToken();;){if(Me.type===32||On(Me,he))return Ie;this.reconsumeToken(Me),Ie.values.push(this.consumeComponentValue()),Me=this.consumeToken()}},ot.prototype.consumeFunction=function(he){for(var Ie={name:he.value,values:[],type:18};;){var Me=this.consumeToken();if(Me.type===32||Me.type===3)return Ie;this.reconsumeToken(Me),Ie.values.push(this.consumeComponentValue())}},ot.prototype.consumeToken=function(){var he=this._tokens.shift();return typeof he=="undefined"?rn:he},ot.prototype.reconsumeToken=function(he){this._tokens.unshift(he)},ot}(),_t=function(he){return he.type===15},lr=function(he){return he.type===17},rr=function(he){return he.type===20},Or=function(he){return he.type===0},Mr=function(he,Ie){return rr(he)&&he.value===Ie},Wr=function(he){return he.type!==31},nn=function(he){return he.type!==31&&he.type!==4},wn=function(he){var Ie=[],Me=[];return he.forEach(function(rt){if(rt.type===4){if(Me.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ie.push(Me),Me=[];return}rt.type!==31&&Me.push(rt)}),Me.length&&Ie.push(Me),Ie},On=function(he,Ie){return Ie===11&&he.type===12||Ie===28&&he.type===29?!0:Ie===2&&he.type===3},Rn=function(he){return he.type===17||he.type===15},Nn=function(he){return he.type===16||Rn(he)},yn=function(he){return he.length>1?[he[0],he[1]]:[he[0]]},Sn={type:17,number:0,flags:tt},_n={type:16,number:50,flags:tt},Hn={type:16,number:100,flags:tt},Yn=function(he,Ie,Me){var rt=he[0],jt=he[1];return[Zn(rt,Ie),Zn(typeof jt!="undefined"?jt:rt,Me)]},Zn=function(he,Ie){if(he.type===16)return he.number/100*Ie;if(_t(he))switch(he.unit){case"rem":case"em":return 16*he.number;case"px":default:return he.number}return he.number},yi="deg",gi="grad",Di="rad",Ui="turn",Ei={name:"angle",parse:function(he,Ie){if(Ie.type===15)switch(Ie.unit){case yi:return Math.PI*Ie.number/180;case gi:return Math.PI/200*Ie.number;case Di:return Ie.number;case Ui:return Math.PI*2*Ie.number}throw new Error("Unsupported angle type")}},_i=function(he){return he.type===15&&(he.unit===yi||he.unit===gi||he.unit===Di||he.unit===Ui)},Ni=function(he){var Ie=he.filter(rr).map(function(Me){return Me.value}).join(" ");switch(Ie){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Sn,Sn];case"to top":case"bottom":return jn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Sn,Hn];case"to right":case"left":return jn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hn,Hn];case"to bottom":case"top":return jn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hn,Sn];case"to left":case"right":return jn(270)}return 0},jn=function(he){return Math.PI*he/180},Ii={name:"color",parse:function(he,Ie){if(Ie.type===18){var Me=tr[Ie.name];if(typeof Me=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ie.name+'"');return Me(he,Ie.values)}if(Ie.type===5){if(Ie.value.length===3){var rt=Ie.value.substring(0,1),jt=Ie.value.substring(1,2),Er=Ie.value.substring(2,3);return Dr(parseInt(rt+rt,16),parseInt(jt+jt,16),parseInt(Er+Er,16),1)}if(Ie.value.length===4){var rt=Ie.value.substring(0,1),jt=Ie.value.substring(1,2),Er=Ie.value.substring(2,3),Hr=Ie.value.substring(3,4);return Dr(parseInt(rt+rt,16),parseInt(jt+jt,16),parseInt(Er+Er,16),parseInt(Hr+Hr,16)/255)}if(Ie.value.length===6){var rt=Ie.value.substring(0,2),jt=Ie.value.substring(2,4),Er=Ie.value.substring(4,6);return Dr(parseInt(rt,16),parseInt(jt,16),parseInt(Er,16),1)}if(Ie.value.length===8){var rt=Ie.value.substring(0,2),jt=Ie.value.substring(2,4),Er=Ie.value.substring(4,6),Hr=Ie.value.substring(6,8);return Dr(parseInt(rt,16),parseInt(jt,16),parseInt(Er,16),parseInt(Hr,16)/255)}}if(Ie.type===20){var qr=Ur[Ie.value.toUpperCase()];if(typeof qr!="undefined")return qr}return Ur.TRANSPARENT}},Hi=function(he){return(255&he)===0},fr=function(he){var Ie=255&he,Me=255&he>>8,rt=255&he>>16,jt=255&he>>24;return Ie<255?"rgba("+jt+","+rt+","+Me+","+Ie/255+")":"rgb("+jt+","+rt+","+Me+")"},Dr=function(he,Ie,Me,rt){return(he<<24|Ie<<16|Me<<8|Math.round(rt*255)<<0)>>>0},Qr=function(he,Ie){if(he.type===17)return he.number;if(he.type===16){var Me=Ie===3?1:255;return Ie===3?he.number/100*Me:Math.round(he.number/100*Me)}return 0},Nr=function(he,Ie){var Me=Ie.filter(nn);if(Me.length===3){var rt=Me.map(Qr),jt=rt[0],Er=rt[1],Hr=rt[2];return Dr(jt,Er,Hr,1)}if(Me.length===4){var qr=Me.map(Qr),jt=qr[0],Er=qr[1],Hr=qr[2],hn=qr[3];return Dr(jt,Er,Hr,hn)}return 0};function Yt(ot,he,Ie){return Ie<0&&(Ie+=1),Ie>=1&&(Ie-=1),Ie<1/6?(he-ot)*Ie*6+ot:Ie<1/2?he:Ie<2/3?(he-ot)*6*(2/3-Ie)+ot:ot}var xr=function(he,Ie){var Me=Ie.filter(nn),rt=Me[0],jt=Me[1],Er=Me[2],Hr=Me[3],qr=(rt.type===17?jn(rt.number):Ei.parse(he,rt))/(Math.PI*2),hn=Nn(jt)?jt.number/100:0,ai=Nn(Er)?Er.number/100:0,Qn=typeof Hr!="undefined"&&Nn(Hr)?Zn(Hr,1):1;if(hn===0)return Dr(ai*255,ai*255,ai*255,1);var ui=ai<=.5?ai*(hn+1):ai+hn-ai*hn,ha=ai*2-ui,fa=Yt(ha,ui,qr+1/3),_a=Yt(ha,ui,qr),co=Yt(ha,ui,qr-1/3);return Dr(fa*255,_a*255,co*255,Qn)},tr={hsl:xr,hsla:xr,rgb:Nr,rgba:Nr},jr=function(he,Ie){return Ii.parse(he,Xe.create(Ie).parseComponentValue())},Ur={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},dn;(function(ot){ot[ot.BORDER_BOX=0]="BORDER_BOX",ot[ot.PADDING_BOX=1]="PADDING_BOX",ot[ot.CONTENT_BOX=2]="CONTENT_BOX"})(dn||(dn={}));var sn={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(he,Ie){return Ie.map(function(Me){if(rr(Me))switch(Me.value){case"padding-box":return dn.PADDING_BOX;case"content-box":return dn.CONTENT_BOX}return dn.BORDER_BOX})}},bn={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bn=function(he,Ie){var Me=Ii.parse(he,Ie[0]),rt=Ie[1];return rt&&Nn(rt)?{color:Me,stop:rt}:{color:Me,stop:null}},Xn=function(he,Ie){var Me=he[0],rt=he[he.length-1];Me.stop===null&&(Me.stop=Sn),rt.stop===null&&(rt.stop=Hn);for(var jt=[],Er=0,Hr=0;Hr<he.length;Hr++){var qr=he[Hr].stop;if(qr!==null){var hn=Zn(qr,Ie);hn>Er?jt.push(hn):jt.push(Er),Er=hn}else jt.push(null)}for(var ai=null,Hr=0;Hr<jt.length;Hr++){var Qn=jt[Hr];if(Qn===null)ai===null&&(ai=Hr);else if(ai!==null){for(var ui=Hr-ai,ha=jt[ai-1],fa=(Qn-ha)/(ui+1),_a=1;_a<=ui;_a++)jt[ai+_a-1]=fa*_a;ai=null}}return he.map(function(co,Qa){var Wa=co.color;return{color:Wa,stop:Math.max(Math.min(1,jt[Qa]/Ie),0)}})},$n=function(he,Ie,Me){var rt=Ie/2,jt=Me/2,Er=Zn(he[0],Ie)-rt,Hr=jt-Zn(he[1],Me);return(Math.atan2(Hr,Er)+Math.PI*2)%(Math.PI*2)},Ti=function(he,Ie,Me){var rt=typeof he=="number"?he:$n(he,Ie,Me),jt=Math.abs(Ie*Math.sin(rt))+Math.abs(Me*Math.cos(rt)),Er=Ie/2,Hr=Me/2,qr=jt/2,hn=Math.sin(rt-Math.PI/2)*qr,ai=Math.cos(rt-Math.PI/2)*qr;return[jt,Er-ai,Er+ai,Hr-hn,Hr+hn]},Xi=function(he,Ie){return Math.sqrt(he*he+Ie*Ie)},ua=function(he,Ie,Me,rt,jt){var Er=[[0,0],[0,Ie],[he,0],[he,Ie]];return Er.reduce(function(Hr,qr){var hn=qr[0],ai=qr[1],Qn=Xi(Me-hn,rt-ai);return(jt?Qn<Hr.optimumDistance:Qn>Hr.optimumDistance)?{optimumCorner:qr,optimumDistance:Qn}:Hr},{optimumDistance:jt?Infinity:-Infinity,optimumCorner:null}).optimumCorner},da=function(he,Ie,Me,rt,jt){var Er=0,Hr=0;switch(he.size){case Sa.CLOSEST_SIDE:he.shape===Aa.CIRCLE?Er=Hr=Math.min(Math.abs(Ie),Math.abs(Ie-rt),Math.abs(Me),Math.abs(Me-jt)):he.shape===Aa.ELLIPSE&&(Er=Math.min(Math.abs(Ie),Math.abs(Ie-rt)),Hr=Math.min(Math.abs(Me),Math.abs(Me-jt)));break;case Sa.CLOSEST_CORNER:if(he.shape===Aa.CIRCLE)Er=Hr=Math.min(Xi(Ie,Me),Xi(Ie,Me-jt),Xi(Ie-rt,Me),Xi(Ie-rt,Me-jt));else if(he.shape===Aa.ELLIPSE){var qr=Math.min(Math.abs(Me),Math.abs(Me-jt))/Math.min(Math.abs(Ie),Math.abs(Ie-rt)),hn=ua(rt,jt,Ie,Me,!0),ai=hn[0],Qn=hn[1];Er=Xi(ai-Ie,(Qn-Me)/qr),Hr=qr*Er}break;case Sa.FARTHEST_SIDE:he.shape===Aa.CIRCLE?Er=Hr=Math.max(Math.abs(Ie),Math.abs(Ie-rt),Math.abs(Me),Math.abs(Me-jt)):he.shape===Aa.ELLIPSE&&(Er=Math.max(Math.abs(Ie),Math.abs(Ie-rt)),Hr=Math.max(Math.abs(Me),Math.abs(Me-jt)));break;case Sa.FARTHEST_CORNER:if(he.shape===Aa.CIRCLE)Er=Hr=Math.max(Xi(Ie,Me),Xi(Ie,Me-jt),Xi(Ie-rt,Me),Xi(Ie-rt,Me-jt));else if(he.shape===Aa.ELLIPSE){var qr=Math.max(Math.abs(Me),Math.abs(Me-jt))/Math.max(Math.abs(Ie),Math.abs(Ie-rt)),ui=ua(rt,jt,Ie,Me,!1),ai=ui[0],Qn=ui[1];Er=Xi(ai-Ie,(Qn-Me)/qr),Hr=qr*Er}break}return Array.isArray(he.size)&&(Er=Zn(he.size[0],rt),Hr=he.size.length===2?Zn(he.size[1],jt):Er),[Er,Hr]},sa=function(he,Ie){var Me=jn(180),rt=[];return wn(Ie).forEach(function(jt,Er){if(Er===0){var Hr=jt[0];if(Hr.type===20&&Hr.value==="to"){Me=Ni(jt);return}else if(_i(Hr)){Me=Ei.parse(he,Hr);return}}var qr=Bn(he,jt);rt.push(qr)}),{angle:Me,stops:rt,type:la.LINEAR_GRADIENT}},ca=function(he,Ie){var Me=jn(180),rt=[];return wn(Ie).forEach(function(jt,Er){if(Er===0){var Hr=jt[0];if(Hr.type===20&&["top","left","right","bottom"].indexOf(Hr.value)!==-1){Me=Ni(jt);return}else if(_i(Hr)){Me=(Ei.parse(he,Hr)+jn(270))%jn(360);return}}var qr=Bn(he,jt);rt.push(qr)}),{angle:Me,stops:rt,type:la.LINEAR_GRADIENT}},zi=function(he,Ie){var Me=jn(180),rt=[],jt=la.LINEAR_GRADIENT,Er=Aa.CIRCLE,Hr=Sa.FARTHEST_CORNER,qr=[];return wn(Ie).forEach(function(hn,ai){var Qn=hn[0];if(ai===0){if(rr(Qn)&&Qn.value==="linear"){jt=la.LINEAR_GRADIENT;return}else if(rr(Qn)&&Qn.value==="radial"){jt=la.RADIAL_GRADIENT;return}}if(Qn.type===18){if(Qn.name==="from"){var ui=Ii.parse(he,Qn.values[0]);rt.push({stop:Sn,color:ui})}else if(Qn.name==="to"){var ui=Ii.parse(he,Qn.values[0]);rt.push({stop:Hn,color:ui})}else if(Qn.name==="color-stop"){var ha=Qn.values.filter(nn);if(ha.length===2){var ui=Ii.parse(he,ha[1]),fa=ha[0];lr(fa)&&rt.push({stop:{type:16,number:fa.number*100,flags:fa.flags},color:ui})}}}}),jt===la.LINEAR_GRADIENT?{angle:(Me+jn(180))%jn(360),stops:rt,type:jt}:{size:Hr,shape:Er,stops:rt,position:qr,type:jt}},Ri="closest-side",ta="farthest-side",$i="closest-corner",Ca="farthest-corner",Ma="circle",qi="ellipse",Yi="cover",Pa="contain",ya=function(he,Ie){var Me=Aa.CIRCLE,rt=Sa.FARTHEST_CORNER,jt=[],Er=[];return wn(Ie).forEach(function(Hr,qr){var hn=!0;if(qr===0){var ai=!1;hn=Hr.reduce(function(ui,ha){if(ai)if(rr(ha))switch(ha.value){case"center":return Er.push(_n),ui;case"top":case"left":return Er.push(Sn),ui;case"right":case"bottom":return Er.push(Hn),ui}else(Nn(ha)||Rn(ha))&&Er.push(ha);else if(rr(ha))switch(ha.value){case Ma:return Me=Aa.CIRCLE,!1;case qi:return Me=Aa.ELLIPSE,!1;case"at":return ai=!0,!1;case Ri:return rt=Sa.CLOSEST_SIDE,!1;case Yi:case ta:return rt=Sa.FARTHEST_SIDE,!1;case Pa:case $i:return rt=Sa.CLOSEST_CORNER,!1;case Ca:return rt=Sa.FARTHEST_CORNER,!1}else if(Rn(ha)||Nn(ha))return Array.isArray(rt)||(rt=[]),rt.push(ha),!1;return ui},hn)}if(hn){var Qn=Bn(he,Hr);jt.push(Qn)}}),{size:rt,shape:Me,stops:jt,position:Er,type:la.RADIAL_GRADIENT}},Ci=function(he,Ie){var Me=Aa.CIRCLE,rt=Sa.FARTHEST_CORNER,jt=[],Er=[];return wn(Ie).forEach(function(Hr,qr){var hn=!0;if(qr===0?hn=Hr.reduce(function(Qn,ui){if(rr(ui))switch(ui.value){case"center":return Er.push(_n),!1;case"top":case"left":return Er.push(Sn),!1;case"right":case"bottom":return Er.push(Hn),!1}else if(Nn(ui)||Rn(ui))return Er.push(ui),!1;return Qn},hn):qr===1&&(hn=Hr.reduce(function(Qn,ui){if(rr(ui))switch(ui.value){case Ma:return Me=Aa.CIRCLE,!1;case qi:return Me=Aa.ELLIPSE,!1;case Pa:case Ri:return rt=Sa.CLOSEST_SIDE,!1;case ta:return rt=Sa.FARTHEST_SIDE,!1;case $i:return rt=Sa.CLOSEST_CORNER,!1;case Yi:case Ca:return rt=Sa.FARTHEST_CORNER,!1}else if(Rn(ui)||Nn(ui))return Array.isArray(rt)||(rt=[]),rt.push(ui),!1;return Qn},hn)),hn){var ai=Bn(he,Hr);jt.push(ai)}}),{size:rt,shape:Me,stops:jt,position:Er,type:la.RADIAL_GRADIENT}},la;(function(ot){ot[ot.URL=0]="URL",ot[ot.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",ot[ot.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"})(la||(la={}));var Ha=function(he){return he.type===la.LINEAR_GRADIENT},ka=function(he){return he.type===la.RADIAL_GRADIENT},Aa;(function(ot){ot[ot.CIRCLE=0]="CIRCLE",ot[ot.ELLIPSE=1]="ELLIPSE"})(Aa||(Aa={}));var Sa;(function(ot){ot[ot.CLOSEST_SIDE=0]="CLOSEST_SIDE",ot[ot.FARTHEST_SIDE=1]="FARTHEST_SIDE",ot[ot.CLOSEST_CORNER=2]="CLOSEST_CORNER",ot[ot.FARTHEST_CORNER=3]="FARTHEST_CORNER"})(Sa||(Sa={}));var Ya={name:"image",parse:function(he,Ie){if(Ie.type===22){var Me={url:Ie.value,type:la.URL};return he.cache.addImage(Ie.value),Me}if(Ie.type===18){var rt=Ga[Ie.name];if(typeof rt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ie.name+'"');return rt(he,Ie.values)}throw new Error("Unsupported image type "+Ie.type)}};function Ta(ot){return!(ot.type===20&&ot.value==="none")&&(ot.type!==18||!!Ga[ot.name])}var Ga={"linear-gradient":sa,"-moz-linear-gradient":ca,"-ms-linear-gradient":ca,"-o-linear-gradient":ca,"-webkit-linear-gradient":ca,"radial-gradient":ya,"-moz-radial-gradient":Ci,"-ms-radial-gradient":Ci,"-o-radial-gradient":Ci,"-webkit-radial-gradient":Ci,"-webkit-gradient":zi},uo={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(he,Ie){if(Ie.length===0)return[];var Me=Ie[0];return Me.type===20&&Me.value==="none"?[]:Ie.filter(function(rt){return nn(rt)&&Ta(rt)}).map(function(rt){return Ya.parse(he,rt)})}},aa={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(he,Ie){return Ie.map(function(Me){if(rr(Me))switch(Me.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ho={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(he,Ie){return wn(Ie).map(function(Me){return Me.filter(Nn)}).map(yn)}},Ua;(function(ot){ot[ot.REPEAT=0]="REPEAT",ot[ot.NO_REPEAT=1]="NO_REPEAT",ot[ot.REPEAT_X=2]="REPEAT_X",ot[ot.REPEAT_Y=3]="REPEAT_Y"})(Ua||(Ua={}));var Na={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(he,Ie){return wn(Ie).map(function(Me){return Me.filter(rr).map(function(rt){return rt.value}).join(" ")}).map($a)}},$a=function(he){switch(he){case"no-repeat":return Ua.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ua.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ua.REPEAT_Y;case"repeat":default:return Ua.REPEAT}},Ra;(function(ot){ot.AUTO="auto",ot.CONTAIN="contain",ot.COVER="cover"})(Ra||(Ra={}));var Ka={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(he,Ie){return wn(Ie).map(function(Me){return Me.filter(bo)})}},bo=function(he){return rr(he)||Nn(he)},no=function(he){return{name:"border-"+he+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Co=no("top"),fo=no("right"),po=no("bottom"),Za=no("left"),qa=function(he){return{name:"border-radius-"+he,initialValue:"0 0",prefix:!1,type:1,parse:function(Me,rt){return yn(rt.filter(Nn))}}},Oa=qa("top-left"),oo=qa("top-right"),go=qa("bottom-right"),Bi=qa("bottom-left"),pa;(function(ot){ot[ot.NONE=0]="NONE",ot[ot.SOLID=1]="SOLID",ot[ot.DASHED=2]="DASHED",ot[ot.DOTTED=3]="DOTTED",ot[ot.DOUBLE=4]="DOUBLE"})(pa||(pa={}));var Do=function(he){return{name:"border-"+he+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Me,rt){switch(rt){case"none":return pa.NONE;case"dashed":return pa.DASHED;case"dotted":return pa.DOTTED;case"double":return pa.DOUBLE}return pa.SOLID}}},jo=Do("top"),Vo=Do("right"),Yo=Do("bottom"),wo=Do("left"),Da=function(he){return{name:"border-"+he+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Me,rt){return _t(rt)?rt.number:0}}},Fo=Da("top"),cs=Da("right"),mo=Da("bottom"),_o=Da("left"),Xa={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"rtl":return 1;case"ltr":default:return 0}}},il={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(he,Ie){return Ie.filter(rr).reduce(function(Me,rt){return Me|Os(rt.value)},0)}},Os=function(he){switch(he){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},as;(function(ot){ot[ot.NONE=0]="NONE",ot[ot.LEFT=1]="LEFT",ot[ot.RIGHT=2]="RIGHT",ot[ot.INLINE_START=3]="INLINE_START",ot[ot.INLINE_END=4]="INLINE_END"})(as||(as={}));var xs={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"left":return as.LEFT;case"right":return as.RIGHT;case"inline-start":return as.INLINE_START;case"inline-end":return as.INLINE_END}return as.NONE}},Ls={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(he,Ie){return Ie.type===20&&Ie.value==="normal"?0:Ie.type===17||Ie.type===15?Ie.number:0}},ys;(function(ot){ot.NORMAL="normal",ot.STRICT="strict"})(ys||(ys={}));var Ho={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"strict":return ys.STRICT;case"normal":default:return ys.NORMAL}}},vo={name:"line-height",initialValue:"normal",prefix:!1,type:4},es=function(he,Ie){return rr(he)&&he.value==="normal"?1.2*Ie:he.type===17?Ie*he.number:Nn(he)?Zn(he,Ie):Ie},Ko={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(he,Ie){return Ie.type===20&&Ie.value==="none"?null:Ya.parse(he,Ie)}},Ro;(function(ot){ot[ot.INSIDE=0]="INSIDE",ot[ot.OUTSIDE=1]="OUTSIDE"})(Ro||(Ro={}));var Vr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"inside":return Ro.INSIDE;case"outside":default:return Ro.OUTSIDE}}},bi;(function(ot){ot[ot.NONE=-1]="NONE",ot[ot.DISC=0]="DISC",ot[ot.CIRCLE=1]="CIRCLE",ot[ot.SQUARE=2]="SQUARE",ot[ot.DECIMAL=3]="DECIMAL",ot[ot.CJK_DECIMAL=4]="CJK_DECIMAL",ot[ot.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",ot[ot.LOWER_ROMAN=6]="LOWER_ROMAN",ot[ot.UPPER_ROMAN=7]="UPPER_ROMAN",ot[ot.LOWER_GREEK=8]="LOWER_GREEK",ot[ot.LOWER_ALPHA=9]="LOWER_ALPHA",ot[ot.UPPER_ALPHA=10]="UPPER_ALPHA",ot[ot.ARABIC_INDIC=11]="ARABIC_INDIC",ot[ot.ARMENIAN=12]="ARMENIAN",ot[ot.BENGALI=13]="BENGALI",ot[ot.CAMBODIAN=14]="CAMBODIAN",ot[ot.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",ot[ot.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",ot[ot.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",ot[ot.DEVANAGARI=18]="DEVANAGARI",ot[ot.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",ot[ot.GEORGIAN=20]="GEORGIAN",ot[ot.GUJARATI=21]="GUJARATI",ot[ot.GURMUKHI=22]="GURMUKHI",ot[ot.HEBREW=22]="HEBREW",ot[ot.HIRAGANA=23]="HIRAGANA",ot[ot.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",ot[ot.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",ot[ot.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",ot[ot.KANNADA=27]="KANNADA",ot[ot.KATAKANA=28]="KATAKANA",ot[ot.KATAKANA_IROHA=29]="KATAKANA_IROHA",ot[ot.KHMER=30]="KHMER",ot[ot.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",ot[ot.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",ot[ot.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",ot[ot.LAO=34]="LAO",ot[ot.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",ot[ot.MALAYALAM=36]="MALAYALAM",ot[ot.MONGOLIAN=37]="MONGOLIAN",ot[ot.MYANMAR=38]="MYANMAR",ot[ot.ORIYA=39]="ORIYA",ot[ot.PERSIAN=40]="PERSIAN",ot[ot.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",ot[ot.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",ot[ot.TAMIL=43]="TAMIL",ot[ot.TELUGU=44]="TELUGU",ot[ot.THAI=45]="THAI",ot[ot.TIBETAN=46]="TIBETAN",ot[ot.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",ot[ot.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",ot[ot.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",ot[ot.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",ot[ot.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"})(bi||(bi={}));var Qs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"disc":return bi.DISC;case"circle":return bi.CIRCLE;case"square":return bi.SQUARE;case"decimal":return bi.DECIMAL;case"cjk-decimal":return bi.CJK_DECIMAL;case"decimal-leading-zero":return bi.DECIMAL_LEADING_ZERO;case"lower-roman":return bi.LOWER_ROMAN;case"upper-roman":return bi.UPPER_ROMAN;case"lower-greek":return bi.LOWER_GREEK;case"lower-alpha":return bi.LOWER_ALPHA;case"upper-alpha":return bi.UPPER_ALPHA;case"arabic-indic":return bi.ARABIC_INDIC;case"armenian":return bi.ARMENIAN;case"bengali":return bi.BENGALI;case"cambodian":return bi.CAMBODIAN;case"cjk-earthly-branch":return bi.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return bi.CJK_HEAVENLY_STEM;case"cjk-ideographic":return bi.CJK_IDEOGRAPHIC;case"devanagari":return bi.DEVANAGARI;case"ethiopic-numeric":return bi.ETHIOPIC_NUMERIC;case"georgian":return bi.GEORGIAN;case"gujarati":return bi.GUJARATI;case"gurmukhi":return bi.GURMUKHI;case"hebrew":return bi.HEBREW;case"hiragana":return bi.HIRAGANA;case"hiragana-iroha":return bi.HIRAGANA_IROHA;case"japanese-formal":return bi.JAPANESE_FORMAL;case"japanese-informal":return bi.JAPANESE_INFORMAL;case"kannada":return bi.KANNADA;case"katakana":return bi.KATAKANA;case"katakana-iroha":return bi.KATAKANA_IROHA;case"khmer":return bi.KHMER;case"korean-hangul-formal":return bi.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return bi.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return bi.KOREAN_HANJA_INFORMAL;case"lao":return bi.LAO;case"lower-armenian":return bi.LOWER_ARMENIAN;case"malayalam":return bi.MALAYALAM;case"mongolian":return bi.MONGOLIAN;case"myanmar":return bi.MYANMAR;case"oriya":return bi.ORIYA;case"persian":return bi.PERSIAN;case"simp-chinese-formal":return bi.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return bi.SIMP_CHINESE_INFORMAL;case"tamil":return bi.TAMIL;case"telugu":return bi.TELUGU;case"thai":return bi.THAI;case"tibetan":return bi.TIBETAN;case"trad-chinese-formal":return bi.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return bi.TRAD_CHINESE_INFORMAL;case"upper-armenian":return bi.UPPER_ARMENIAN;case"disclosure-open":return bi.DISCLOSURE_OPEN;case"disclosure-closed":return bi.DISCLOSURE_CLOSED;case"none":default:return bi.NONE}}},Ns=function(he){return{name:"margin-"+he,initialValue:"0",prefix:!1,type:4}},js=Ns("top"),so=Ns("right"),Ao=Ns("bottom"),Jo=Ns("left"),Uo;(function(ot){ot[ot.VISIBLE=0]="VISIBLE",ot[ot.HIDDEN=1]="HIDDEN",ot[ot.SCROLL=2]="SCROLL",ot[ot.CLIP=3]="CLIP",ot[ot.AUTO=4]="AUTO"})(Uo||(Uo={}));var bs={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(he,Ie){return Ie.filter(rr).map(function(Me){switch(Me.value){case"hidden":return Uo.HIDDEN;case"scroll":return Uo.SCROLL;case"clip":return Uo.CLIP;case"auto":return Uo.AUTO;case"visible":default:return Uo.VISIBLE}})}},ms={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"break-word":return"break-word";case"normal":default:return"normal"}}},gs=function(he){return{name:"padding-"+he,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ul=gs("top"),Ms=gs("right"),Js=gs("bottom"),Hs=gs("left"),Go;(function(ot){ot[ot.LEFT=0]="LEFT",ot[ot.CENTER=1]="CENTER",ot[ot.RIGHT=2]="RIGHT"})(Go||(Go={}));var Ps={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"right":return Go.RIGHT;case"center":case"justify":return Go.CENTER;case"left":default:return Go.LEFT}}},St;(function(ot){ot[ot.STATIC=0]="STATIC",ot[ot.RELATIVE=1]="RELATIVE",ot[ot.ABSOLUTE=2]="ABSOLUTE",ot[ot.FIXED=3]="FIXED",ot[ot.STICKY=4]="STICKY"})(St||(St={}));var Mt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"relative":return St.RELATIVE;case"absolute":return St.ABSOLUTE;case"fixed":return St.FIXED;case"sticky":return St.STICKY}return St.STATIC}},tn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,Ie){return Ie.length===1&&Mr(Ie[0],"none")?[]:wn(Ie).map(function(Me){for(var rt={color:Ur.TRANSPARENT,offsetX:Sn,offsetY:Sn,blur:Sn},jt=0,Er=0;Er<Me.length;Er++){var Hr=Me[Er];Rn(Hr)?(jt===0?rt.offsetX=Hr:jt===1?rt.offsetY=Hr:rt.blur=Hr,jt++):rt.color=Ii.parse(he,Hr)}return rt})}},In;(function(ot){ot[ot.NONE=0]="NONE",ot[ot.LOWERCASE=1]="LOWERCASE",ot[ot.UPPERCASE=2]="UPPERCASE",ot[ot.CAPITALIZE=3]="CAPITALIZE"})(In||(In={}));var mt={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"uppercase":return In.UPPERCASE;case"lowercase":return In.LOWERCASE;case"capitalize":return In.CAPITALIZE}return In.NONE}},ne={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(he,Ie){if(Ie.type===20&&Ie.value==="none")return null;if(Ie.type===18){var Me=Be[Ie.name];if(typeof Me=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ie.name+'"');return Me(Ie.values)}return null}},Ae=function(he){var Ie=he.filter(function(Me){return Me.type===17}).map(function(Me){return Me.number});return Ie.length===6?Ie:null},we=function(he){var Ie=he.filter(function(hn){return hn.type===17}).map(function(hn){return hn.number}),Me=Ie[0],rt=Ie[1];Ie[2],Ie[3];var jt=Ie[4],Er=Ie[5];Ie[6],Ie[7],Ie[8],Ie[9],Ie[10],Ie[11];var Hr=Ie[12],qr=Ie[13];return Ie[14],Ie[15],Ie.length===16?[Me,rt,jt,Er,Hr,qr]:null},Be={matrix:Ae,matrix3d:we},dt={type:16,number:50,flags:tt},Ot=[dt,dt],br={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(he,Ie){var Me=Ie.filter(Nn);return Me.length!==2?Ot:[Me[0],Me[1]]}},Lr;(function(ot){ot[ot.VISIBLE=0]="VISIBLE",ot[ot.HIDDEN=1]="HIDDEN",ot[ot.COLLAPSE=2]="COLLAPSE"})(Lr||(Lr={}));var $r={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"hidden":return Lr.HIDDEN;case"collapse":return Lr.COLLAPSE;case"visible":default:return Lr.VISIBLE}}},xn;(function(ot){ot.NORMAL="normal",ot.BREAK_ALL="break-all",ot.KEEP_ALL="keep-all"})(xn||(xn={}));var Wn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"break-all":return xn.BREAK_ALL;case"keep-all":return xn.KEEP_ALL;case"normal":default:return xn.NORMAL}}},si={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(he,Ie){if(Ie.type===20)return{auto:!0,order:0};if(lr(Ie))return{auto:!1,order:Ie.number};throw new Error("Invalid z-index number parsed")}},Si={name:"time",parse:function(he,Ie){if(Ie.type===15)switch(Ie.unit.toLowerCase()){case"s":return 1e3*Ie.number;case"ms":return Ie.number}throw new Error("Unsupported time type")}},Vi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(he,Ie){return lr(Ie)?Ie.number:1}},oa={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xa={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(he,Ie){return Ie.filter(rr).map(function(Me){switch(Me.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Me){return Me!==0})}},eo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(he,Ie){var Me=[],rt=[];return Ie.forEach(function(jt){switch(jt.type){case 20:case 0:Me.push(jt.value);break;case 17:Me.push(jt.number.toString());break;case 4:rt.push(Me.join(" ")),Me.length=0;break}}),Me.length&&rt.push(Me.join(" ")),rt.map(function(jt){return jt.indexOf(" ")===-1?jt:"'"+jt+"'"})}},to={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},io={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(he,Ie){if(lr(Ie))return Ie.number;if(rr(Ie))switch(Ie.value){case"bold":return 700;case"normal":default:return 400}return 400}},Oo={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(he,Ie){return Ie.filter(rr).map(function(Me){return Me.value})}},yo;(function(ot){ot.NORMAL="normal",ot.ITALIC="italic",ot.OBLIQUE="oblique"})(yo||(yo={}));var Mo={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(he,Ie){switch(Ie){case"oblique":return yo.OBLIQUE;case"italic":return yo.ITALIC;case"normal":default:return yo.NORMAL}}},za=function(he,Ie){return(he&Ie)!==0},So={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(he,Ie){if(Ie.length===0)return[];var Me=Ie[0];return Me.type===20&&Me.value==="none"?[]:Ie}},os={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(he,Ie){if(Ie.length===0)return null;var Me=Ie[0];if(Me.type===20&&Me.value==="none")return null;for(var rt=[],jt=Ie.filter(Wr),Er=0;Er<jt.length;Er++){var Hr=jt[Er],qr=jt[Er+1];if(Hr.type===20){var hn=qr&&lr(qr)?qr.number:1;rt.push({counter:Hr.value,increment:hn})}}return rt}},ns={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(he,Ie){if(Ie.length===0)return[];for(var Me=[],rt=Ie.filter(Wr),jt=0;jt<rt.length;jt++){var Er=rt[jt],Hr=rt[jt+1];if(rr(Er)&&Er.value!=="none"){var qr=Hr&&lr(Hr)?Hr.number:0;Me.push({counter:Er.value,reset:qr})}}return Me}},Io={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(he,Ie){return Ie.filter(_t).map(function(Me){return Si.parse(he,Me)})}},Xo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(he,Ie){if(Ie.length===0)return null;var Me=Ie[0];if(Me.type===20&&Me.value==="none")return null;var rt=[],jt=Ie.filter(Or);if(jt.length%2!==0)return null;for(var Er=0;Er<jt.length;Er+=2){var Hr=jt[Er].value,qr=jt[Er+1].value;rt.push({open:Hr,close:qr})}return rt}},Ds=function(he,Ie,Me){if(!he)return"";var rt=he[Math.min(Ie,he.length-1)];return rt?Me?rt.open:rt.close:""},Es={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,Ie){return Ie.length===1&&Mr(Ie[0],"none")?[]:wn(Ie).map(function(Me){for(var rt={color:255,offsetX:Sn,offsetY:Sn,blur:Sn,spread:Sn,inset:!1},jt=0,Er=0;Er<Me.length;Er++){var Hr=Me[Er];Mr(Hr,"inset")?rt.inset=!0:Rn(Hr)?(jt===0?rt.offsetX=Hr:jt===1?rt.offsetY=Hr:jt===2?rt.blur=Hr:rt.spread=Hr,jt++):rt.color=Ii.parse(he,Hr)}return rt})}},Wo;(function(ot){ot[ot.FILL=0]="FILL",ot[ot.STROKE=1]="STROKE",ot[ot.MARKERS=2]="MARKERS"})(Wo||(Wo={}));for(var ws={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(he,Ie){var Me=[Wo.FILL,Wo.STROKE,Wo.MARKERS],rt=[];return Ie.filter(rr).forEach(function(jt){switch(jt.value){case"stroke":rt.push(Wo.STROKE);break;case"fill":rt.push(Wo.FILL);break;case"markers":rt.push(Wo.MARKERS);break}}),Me.forEach(function(jt){rt.indexOf(jt)===-1&&rt.push(jt)}),rt}},ds={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yl={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(he,Ie){return _t(Ie)?Ie.number:0}},bl=function(){function ot(he,Ie){var Me,rt;this.animationDuration=ra(he,Io,Ie.animationDuration),this.backgroundClip=ra(he,sn,Ie.backgroundClip),this.backgroundColor=ra(he,bn,Ie.backgroundColor),this.backgroundImage=ra(he,uo,Ie.backgroundImage),this.backgroundOrigin=ra(he,aa,Ie.backgroundOrigin),this.backgroundPosition=ra(he,ho,Ie.backgroundPosition),this.backgroundRepeat=ra(he,Na,Ie.backgroundRepeat),this.backgroundSize=ra(he,Ka,Ie.backgroundSize),this.borderTopColor=ra(he,Co,Ie.borderTopColor),this.borderRightColor=ra(he,fo,Ie.borderRightColor),this.borderBottomColor=ra(he,po,Ie.borderBottomColor),this.borderLeftColor=ra(he,Za,Ie.borderLeftColor),this.borderTopLeftRadius=ra(he,Oa,Ie.borderTopLeftRadius),this.borderTopRightRadius=ra(he,oo,Ie.borderTopRightRadius),this.borderBottomRightRadius=ra(he,go,Ie.borderBottomRightRadius),this.borderBottomLeftRadius=ra(he,Bi,Ie.borderBottomLeftRadius),this.borderTopStyle=ra(he,jo,Ie.borderTopStyle),this.borderRightStyle=ra(he,Vo,Ie.borderRightStyle),this.borderBottomStyle=ra(he,Yo,Ie.borderBottomStyle),this.borderLeftStyle=ra(he,wo,Ie.borderLeftStyle),this.borderTopWidth=ra(he,Fo,Ie.borderTopWidth),this.borderRightWidth=ra(he,cs,Ie.borderRightWidth),this.borderBottomWidth=ra(he,mo,Ie.borderBottomWidth),this.borderLeftWidth=ra(he,_o,Ie.borderLeftWidth),this.boxShadow=ra(he,Es,Ie.boxShadow),this.color=ra(he,Xa,Ie.color),this.direction=ra(he,Qo,Ie.direction),this.display=ra(he,il,Ie.display),this.float=ra(he,xs,Ie.cssFloat),this.fontFamily=ra(he,eo,Ie.fontFamily),this.fontSize=ra(he,to,Ie.fontSize),this.fontStyle=ra(he,Mo,Ie.fontStyle),this.fontVariant=ra(he,Oo,Ie.fontVariant),this.fontWeight=ra(he,io,Ie.fontWeight),this.letterSpacing=ra(he,Ls,Ie.letterSpacing),this.lineBreak=ra(he,Ho,Ie.lineBreak),this.lineHeight=ra(he,vo,Ie.lineHeight),this.listStyleImage=ra(he,Ko,Ie.listStyleImage),this.listStylePosition=ra(he,Vr,Ie.listStylePosition),this.listStyleType=ra(he,Qs,Ie.listStyleType),this.marginTop=ra(he,js,Ie.marginTop),this.marginRight=ra(he,so,Ie.marginRight),this.marginBottom=ra(he,Ao,Ie.marginBottom),this.marginLeft=ra(he,Jo,Ie.marginLeft),this.opacity=ra(he,Vi,Ie.opacity);var jt=ra(he,bs,Ie.overflow);this.overflowX=jt[0],this.overflowY=jt[jt.length>1?1:0],this.overflowWrap=ra(he,ms,Ie.overflowWrap),this.paddingTop=ra(he,ul,Ie.paddingTop),this.paddingRight=ra(he,Ms,Ie.paddingRight),this.paddingBottom=ra(he,Js,Ie.paddingBottom),this.paddingLeft=ra(he,Hs,Ie.paddingLeft),this.paintOrder=ra(he,ws,Ie.paintOrder),this.position=ra(he,Mt,Ie.position),this.textAlign=ra(he,Ps,Ie.textAlign),this.textDecorationColor=ra(he,oa,(Me=Ie.textDecorationColor)!==null&&Me!==void 0?Me:Ie.color),this.textDecorationLine=ra(he,xa,(rt=Ie.textDecorationLine)!==null&&rt!==void 0?rt:Ie.textDecoration),this.textShadow=ra(he,tn,Ie.textShadow),this.textTransform=ra(he,mt,Ie.textTransform),this.transform=ra(he,ne,Ie.transform),this.transformOrigin=ra(he,br,Ie.transformOrigin),this.visibility=ra(he,$r,Ie.visibility),this.webkitTextStrokeColor=ra(he,ds,Ie.webkitTextStrokeColor),this.webkitTextStrokeWidth=ra(he,yl,Ie.webkitTextStrokeWidth),this.wordBreak=ra(he,Wn,Ie.wordBreak),this.zIndex=ra(he,si,Ie.zIndex)}return ot.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Lr.VISIBLE},ot.prototype.isTransparent=function(){return Hi(this.backgroundColor)},ot.prototype.isTransformed=function(){return this.transform!==null},ot.prototype.isPositioned=function(){return this.position!==St.STATIC},ot.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ot.prototype.isFloating=function(){return this.float!==as.NONE},ot.prototype.isInlineLevel=function(){return za(this.display,4)||za(this.display,33554432)||za(this.display,268435456)||za(this.display,536870912)||za(this.display,67108864)||za(this.display,134217728)},ot}(),Cs=function(){function ot(he,Ie){this.content=ra(he,So,Ie.content),this.quotes=ra(he,Xo,Ie.quotes)}return ot}(),Lo=function(){function ot(he,Ie){this.counterIncrement=ra(he,os,Ie.counterIncrement),this.counterReset=ra(he,ns,Ie.counterReset)}return ot}(),ra=function(he,Ie,Me){var rt=new fn,jt=Me!==null&&typeof Me!="undefined"?Me.toString():Ie.initialValue;rt.write(jt);var Er=new Xe(rt.read());switch(Ie.type){case 2:var Hr=Er.parseComponentValue();return Ie.parse(he,rr(Hr)?Hr.value:Ie.initialValue);case 0:return Ie.parse(he,Er.parseComponentValue());case 1:return Ie.parse(he,Er.parseComponentValues());case 4:return Er.parseComponentValue();case 3:switch(Ie.format){case"angle":return Ei.parse(he,Er.parseComponentValue());case"color":return Ii.parse(he,Er.parseComponentValue());case"image":return Ya.parse(he,Er.parseComponentValue());case"length":var qr=Er.parseComponentValue();return Rn(qr)?qr:Sn;case"length-percentage":var hn=Er.parseComponentValue();return Nn(hn)?hn:Sn;case"time":return Si.parse(he,Er.parseComponentValue())}break}},tl="data-html2canvas-debug",Ks=function(he){var Ie=he.getAttribute(tl);switch(Ie){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ws=function(he,Ie){var Me=Ks(he);return Me===1||Ie===Me},hs=function(){function ot(he,Ie){if(this.context=he,this.textNodes=[],this.elements=[],this.flags=0,Ws(Ie,3))debugger;this.styles=new bl(he,window.getComputedStyle(Ie,null)),De(Ie)&&(this.styles.animationDuration.some(function(Me){return Me>0})&&(Ie.style.animationDuration="0s"),this.styles.transform!==null&&(Ie.style.transform="none")),this.bounds=c(this.context,Ie),Ws(Ie,4)&&(this.flags|=16)}return ot}(),ks="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",al="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Xs=0;Xs<al.length;Xs++)Bs[al.charCodeAt(Xs)]=Xs;for(var zs=function(he){var Ie=he.length*.75,Me=he.length,rt,jt=0,Er,Hr,qr,hn;he[he.length-1]==="="&&(Ie--,he[he.length-2]==="="&&Ie--);var ai=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ie):new Array(Ie),Qn=Array.isArray(ai)?ai:new Uint8Array(ai);for(rt=0;rt<Me;rt+=4)Er=Bs[he.charCodeAt(rt)],Hr=Bs[he.charCodeAt(rt+1)],qr=Bs[he.charCodeAt(rt+2)],hn=Bs[he.charCodeAt(rt+3)],Qn[jt++]=Er<<2|Hr>>4,Qn[jt++]=(Hr&15)<<4|qr>>2,Qn[jt++]=(qr&3)<<6|hn&63;return ai},Ja=function(he){for(var Ie=he.length,Me=[],rt=0;rt<Ie;rt+=2)Me.push(he[rt+1]<<8|he[rt]);return Me},ma=function(he){for(var Ie=he.length,Me=[],rt=0;rt<Ie;rt+=4)Me.push(he[rt+3]<<24|he[rt+2]<<16|he[rt+1]<<8|he[rt]);return Me},Ba=5,ao=6+5,Zo=2,Vs=ao-Ba,vs=65536>>Ba,Ts=1<<Ba,No=Ts-1,To=1024>>Ba,ts=vs+To,Eo=ts,Ys=2048>>6,Wl=Eo+Ys,wl=65536>>ao,Zl=1<<Vs,cl=Zl-1,Ol=function(he,Ie,Me){return he.slice?he.slice(Ie,Me):new Uint16Array(Array.prototype.slice.call(he,Ie,Me))},Bl=function(he,Ie,Me){return he.slice?he.slice(Ie,Me):new Uint32Array(Array.prototype.slice.call(he,Ie,Me))},ku=function(he,Ie){var Me=zs(he),rt=Array.isArray(Me)?ma(Me):new Uint32Array(Me),jt=Array.isArray(Me)?Ja(Me):new Uint16Array(Me),Er=24,Hr=Ol(jt,Er/2,rt[4]/2),qr=rt[5]===2?Ol(jt,(Er+rt[4])/2):Bl(rt,Math.ceil((Er+rt[4])/4));return new wu(rt[0],rt[1],rt[2],rt[3],Hr,qr)},wu=function(){function ot(he,Ie,Me,rt,jt,Er){this.initialValue=he,this.errorValue=Ie,this.highStart=Me,this.highValueIndex=rt,this.index=jt,this.data=Er}return ot.prototype.get=function(he){var Ie;if(he>=0){if(he<55296||he>56319&&he<=65535)return Ie=this.index[he>>Ba],Ie=(Ie<<Zo)+(he&No),this.data[Ie];if(he<=65535)return Ie=this.index[vs+(he-55296>>Ba)],Ie=(Ie<<Zo)+(he&No),this.data[Ie];if(he<this.highStart)return Ie=Wl-wl+(he>>ao),Ie=this.index[Ie],Ie+=he>>Ba&cl,Ie=this.index[Ie],Ie=(Ie<<Zo)+(he&No),this.data[Ie];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ot}(),Bu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ll=0;Ll<Bu.length;Ll++)Fu[Bu.charCodeAt(Ll)]=Ll;var Zs=1,$s=2,ol=3,zl=4,$l=5,lu=7,Vl=8,Nl=9,uu=10,ql=11,cu=12,gl=13,Sl=14,Dl=15,eu=function(he){for(var Ie=[],Me=0,rt=he.length;Me<rt;){var jt=he.charCodeAt(Me++);if(jt>=55296&&jt<=56319&&Me<rt){var Er=he.charCodeAt(Me++);(Er&64512)===56320?Ie.push(((jt&1023)<<10)+(Er&1023)+65536):(Ie.push(jt),Me--)}else Ie.push(jt)}return Ie},xl=function(){for(var he=[],Ie=0;Ie<arguments.length;Ie++)he[Ie]=arguments[Ie];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var Me=he.length;if(!Me)return"";for(var rt=[],jt=-1,Er="";++jt<Me;){var Hr=he[jt];Hr<=65535?rt.push(Hr):(Hr-=65536,rt.push((Hr>>10)+55296,Hr%1024+56320)),(jt+1===Me||rt.length>16384)&&(Er+=String.fromCharCode.apply(String,rt),rt.length=0)}return Er},Uu=ku(ks),dl="\xD7",vl="\xF7",tu=function(he){return Uu.get(he)},ju=function(he,Ie,Me){var rt=Me-2,jt=Ie[rt],Er=Ie[Me-1],Hr=Ie[Me];if(Er===$s&&Hr===ol)return dl;if(Er===$s||Er===ol||Er===zl)return vl;if(Hr===$s||Hr===ol||Hr===zl)return vl;if(Er===Vl&&[Vl,Nl,ql,cu].indexOf(Hr)!==-1)return dl;if((Er===ql||Er===Nl)&&(Hr===Nl||Hr===uu))return dl;if((Er===cu||Er===uu)&&Hr===uu)return dl;if(Hr===gl||Hr===$l)return dl;if(Hr===lu)return dl;if(Er===Zs)return dl;if(Er===gl&&Hr===Sl){for(;jt===$l;)jt=Ie[--rt];if(jt===Sl)return dl}if(Er===Dl&&Hr===Dl){for(var qr=0;jt===Dl;)qr++,jt=Ie[--rt];if(qr%2===0)return dl}return vl},du=function(he){var Ie=eu(he),Me=Ie.length,rt=0,jt=0,Er=Ie.map(tu);return{next:function(){if(rt>=Me)return{done:!0,value:null};for(var qr=dl;rt<Me&&(qr=ju(Ie,Er,++rt))===dl;);if(qr!==dl||rt===Me){var hn=xl.apply(null,Ie.slice(jt,rt));return jt=rt,{value:hn,done:!1}}return{done:!0,value:null}}}},Rl=function(he){for(var Ie=du(he),Me=[],rt;!(rt=Ie.next()).done;)rt.value&&Me.push(rt.value.slice());return Me},Ml=function(he){var Ie=123;if(he.createRange){var Me=he.createRange();if(Me.getBoundingClientRect){var rt=he.createElement("boundtest");rt.style.height=Ie+"px",rt.style.display="block",he.body.appendChild(rt),Me.selectNode(rt);var jt=Me.getBoundingClientRect(),Er=Math.round(jt.height);if(he.body.removeChild(rt),Er===Ie)return!0}}return!1},Fl=function(he){var Ie=he.createElement("boundtest");Ie.style.width="50px",Ie.style.display="block",Ie.style.fontSize="12px",Ie.style.letterSpacing="0px",Ie.style.wordSpacing="0px",he.body.appendChild(Ie);var Me=he.createRange();Ie.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var rt=Ie.firstChild,jt=r(rt.data).map(function(hn){return i(hn)}),Er=0,Hr={},qr=jt.every(function(hn,ai){Me.setStart(rt,Er),Me.setEnd(rt,Er+hn.length);var Qn=Me.getBoundingClientRect();Er+=hn.length;var ui=Qn.x>Hr.x||Qn.y>Hr.y;return Hr=Qn,ai===0?!0:ui});return he.body.removeChild(Ie),qr},Su=function(){return typeof new Image().crossOrigin!="undefined"},xu=function(){return typeof new XMLHttpRequest().responseType=="string"},hu=function(he){var Ie=new Image,Me=he.createElement("canvas"),rt=Me.getContext("2d");if(!rt)return!1;Ie.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{rt.drawImage(Ie,0,0),Me.toDataURL()}catch(jt){return!1}return!0},Ul=function(he){return he[0]===0&&he[1]===255&&he[2]===0&&he[3]===255},fu=function(he){var Ie=he.createElement("canvas"),Me=100;Ie.width=Me,Ie.height=Me;var rt=Ie.getContext("2d");if(!rt)return Promise.reject(!1);rt.fillStyle="rgb(0, 255, 0)",rt.fillRect(0,0,Me,Me);var jt=new Image,Er=Ie.toDataURL();jt.src=Er;var Hr=ru(Me,Me,0,0,jt);return rt.fillStyle="red",rt.fillRect(0,0,Me,Me),Eu(Hr).then(function(qr){rt.drawImage(qr,0,0);var hn=rt.getImageData(0,0,Me,Me).data;rt.fillStyle="red",rt.fillRect(0,0,Me,Me);var ai=he.createElement("div");return ai.style.backgroundImage="url("+Er+")",ai.style.height=Me+"px",Ul(hn)?Eu(ru(Me,Me,0,0,ai)):Promise.reject(!1)}).then(function(qr){return rt.drawImage(qr,0,0),Ul(rt.getImageData(0,0,Me,Me).data)}).catch(function(){return!1})},ru=function(he,Ie,Me,rt,jt){var Er="http://www.w3.org/2000/svg",Hr=document.createElementNS(Er,"svg"),qr=document.createElementNS(Er,"foreignObject");return Hr.setAttributeNS(null,"width",he.toString()),Hr.setAttributeNS(null,"height",Ie.toString()),qr.setAttributeNS(null,"width","100%"),qr.setAttributeNS(null,"height","100%"),qr.setAttributeNS(null,"x",Me.toString()),qr.setAttributeNS(null,"y",rt.toString()),qr.setAttributeNS(null,"externalResourcesRequired","true"),Hr.appendChild(qr),qr.appendChild(jt),Hr},Eu=function(he){return new Promise(function(Ie,Me){var rt=new Image;rt.onload=function(){return Ie(rt)},rt.onerror=Me,rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},fs={get SUPPORT_RANGE_BOUNDS(){var ot=Ml(document);return Object.defineProperty(fs,"SUPPORT_RANGE_BOUNDS",{value:ot}),ot},get SUPPORT_WORD_BREAKING(){var ot=fs.SUPPORT_RANGE_BOUNDS&&Fl(document);return Object.defineProperty(fs,"SUPPORT_WORD_BREAKING",{value:ot}),ot},get SUPPORT_SVG_DRAWING(){var ot=hu(document);return Object.defineProperty(fs,"SUPPORT_SVG_DRAWING",{value:ot}),ot},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ot=typeof Array.from=="function"&&typeof window.fetch=="function"?fu(document):Promise.resolve(!1);return Object.defineProperty(fs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ot}),ot},get SUPPORT_CORS_IMAGES(){var ot=Su();return Object.defineProperty(fs,"SUPPORT_CORS_IMAGES",{value:ot}),ot},get SUPPORT_RESPONSE_TYPE(){var ot=xu();return Object.defineProperty(fs,"SUPPORT_RESPONSE_TYPE",{value:ot}),ot},get SUPPORT_CORS_XHR(){var ot="withCredentials"in new XMLHttpRequest;return Object.defineProperty(fs,"SUPPORT_CORS_XHR",{value:ot}),ot}},rl=function(){function ot(he,Ie){this.text=he,this.bounds=Ie}return ot}(),El=function(he,Ie,Me,rt){var jt=pl(Ie,Me),Er=[],Hr=0;return jt.forEach(function(qr){if(Me.textDecorationLine.length||qr.trim().length>0)if(fs.SUPPORT_RANGE_BOUNDS)fs.SUPPORT_WORD_BREAKING?Er.push(new rl(qr,Cl(he,rt,Hr,qr.length))):Er.push(new rl(qr,h.fromDOMRectList(he,iu(rt,Hr,qr.length).getClientRects())));else{var hn=rt.splitText(qr.length);Er.push(new rl(qr,nu(he,rt))),rt=hn}else fs.SUPPORT_RANGE_BOUNDS||(rt=rt.splitText(qr.length));Hr+=qr.length}),Er},nu=function(he,Ie){var Me=Ie.ownerDocument;if(Me){var rt=Me.createElement("html2canvaswrapper");rt.appendChild(Ie.cloneNode(!0));var jt=Ie.parentNode;if(jt){jt.replaceChild(rt,Ie);var Er=c(he,rt);return rt.firstChild&&jt.replaceChild(rt.firstChild,rt),Er}}return h.EMPTY},iu=function(he,Ie,Me){var rt=he.ownerDocument;if(!rt)throw new Error("Node has no owner document");var jt=rt.createRange();return jt.setStart(he,Ie),jt.setEnd(he,Ie+Me),jt},Cl=function(he,Ie,Me,rt){return h.fromClientRect(he,iu(Ie,Me,rt).getBoundingClientRect())},pl=function(he,Ie){return Ie.letterSpacing!==0?Rl(he):Hu(he,Ie)},Cu=[32,160,4961,65792,65793,4153,4241],Hu=function(he,Ie){for(var Me=Zr(he,{lineBreak:Ie.lineBreak,wordBreak:Ie.overflowWrap==="break-word"?"break-word":Ie.wordBreak}),rt=[],jt,Er=function(){if(jt.value){var qr=jt.value.slice(),hn=r(qr),ai="";hn.forEach(function(Qn){Cu.indexOf(Qn)===-1?ai+=i(Qn):(ai.length&&rt.push(ai),rt.push(i(Qn)),ai="")}),ai.length&&rt.push(ai)}};!(jt=Me.next()).done;)Er();return rt},Ku=function(){function ot(he,Ie,Me){this.text=Tu(Ie.data,Me.textTransform),this.textBounds=El(he,this.text,Me,Ie)}return ot}(),Tu=function(he,Ie){switch(Ie){case In.LOWERCASE:return he.toLowerCase();case In.CAPITALIZE:return he.replace(Iu,Wu);case In.UPPERCASE:return he.toUpperCase();default:return he}},Iu=/(^|\s|:|-|\(|\))([a-z])/g,Wu=function(he,Ie,Me){return he.length>0?Ie+Me.toUpperCase():he},pu=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt.src=Me.currentSrc||Me.src,rt.intrinsicWidth=Me.naturalWidth,rt.intrinsicHeight=Me.naturalHeight,rt.context.cache.addImage(rt.src),rt}return he}(hs),Tl=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt.canvas=Me,rt.intrinsicWidth=Me.width,rt.intrinsicHeight=Me.height,rt}return he}(hs),Il=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this,jt=new XMLSerializer,Er=c(Ie,Me);return Me.setAttribute("width",Er.width+"px"),Me.setAttribute("height",Er.height+"px"),rt.svg="data:image/svg+xml,"+encodeURIComponent(jt.serializeToString(Me)),rt.intrinsicWidth=Me.width.baseVal.value,rt.intrinsicHeight=Me.height.baseVal.value,rt.context.cache.addImage(rt.svg),rt}return he}(hs),Gl=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt.value=Me.value,rt}return he}(hs),jl=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt.start=Me.start,rt.reversed=typeof Me.reversed=="boolean"&&Me.reversed===!0,rt}return he}(hs),_u=[{type:15,flags:0,unit:"px",number:3}],$u=[{type:16,flags:0,number:50}],zu=function(he){return he.width>he.height?new h(he.left+(he.width-he.height)/2,he.top,he.height,he.height):he.width<he.height?new h(he.left,he.top+(he.height-he.width)/2,he.width,he.width):he},qu=function(he){var Ie=he.type===ec?new Array(he.value.length+1).join("\u2022"):he.value;return Ie.length===0?he.placeholder||"":Ie},Xl="checkbox",mu="radio",ec="password",Ou=707406591,au=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;rt.type=Me.type.toLowerCase(),rt.checked=Me.checked,rt.value=qu(Me),(rt.type===Xl||rt.type===mu)&&(rt.styles.backgroundColor=3739148031,rt.styles.borderTopColor=rt.styles.borderRightColor=rt.styles.borderBottomColor=rt.styles.borderLeftColor=2779096575,rt.styles.borderTopWidth=rt.styles.borderRightWidth=rt.styles.borderBottomWidth=rt.styles.borderLeftWidth=1,rt.styles.borderTopStyle=rt.styles.borderRightStyle=rt.styles.borderBottomStyle=rt.styles.borderLeftStyle=pa.SOLID,rt.styles.backgroundClip=[dn.BORDER_BOX],rt.styles.backgroundOrigin=[0],rt.bounds=zu(rt.bounds));switch(rt.type){case Xl:rt.styles.borderTopRightRadius=rt.styles.borderTopLeftRadius=rt.styles.borderBottomRightRadius=rt.styles.borderBottomLeftRadius=_u;break;case mu:rt.styles.borderTopRightRadius=rt.styles.borderTopLeftRadius=rt.styles.borderBottomRightRadius=rt.styles.borderBottomLeftRadius=$u;break}return rt}return he}(hs),gu=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this,jt=Me.options[Me.selectedIndex||0];return rt.value=jt&&jt.text||"",rt}return he}(hs),Yl=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt.value=Me.value,rt}return he}(hs),Lu=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;rt.src=Me.src,rt.width=parseInt(Me.width,10)||0,rt.height=parseInt(Me.height,10)||0,rt.backgroundColor=rt.styles.backgroundColor;try{if(Me.contentWindow&&Me.contentWindow.document&&Me.contentWindow.document.documentElement){rt.tree=Ue(Ie,Me.contentWindow.document.documentElement);var jt=Me.contentWindow.document.documentElement?jr(Ie,getComputedStyle(Me.contentWindow.document.documentElement).backgroundColor):Ur.TRANSPARENT,Er=Me.contentWindow.document.body?jr(Ie,getComputedStyle(Me.contentWindow.document.body).backgroundColor):Ur.TRANSPARENT;rt.backgroundColor=Hi(jt)?Hi(Er)?rt.styles.backgroundColor:Er:jt}}catch(Hr){}return rt}return he}(hs),Ql=["OL","UL","MENU"],ou=function ot(he,Ie,Me,rt){for(var jt=Ie.firstChild,Er=void 0;jt;jt=Er)if(Er=jt.nextSibling,dr(jt)&&jt.data.trim().length>0)Me.textNodes.push(new Ku(he,jt,Me.styles));else if(Tr(jt))if(Kn(jt)&&jt.assignedNodes)jt.assignedNodes().forEach(function(qr){return ot(he,qr,Me,rt)});else{var Hr=be(he,jt);Hr.styles.isVisible()&&(ht(jt,Hr,rt)?Hr.flags|=4:Kt(Hr.styles)&&(Hr.flags|=2),Ql.indexOf(jt.tagName)!==-1&&(Hr.flags|=8),Me.elements.push(Hr),jt.slot,jt.shadowRoot?ot(he,jt.shadowRoot,Hr,rt):!Pr(jt)&&!It(jt)&&!an(jt)&&ot(he,jt,Hr,rt))}},be=function(he,Ie){return Ir(Ie)?new pu(he,Ie):vr(Ie)?new Tl(he,Ie):It(Ie)?new Il(he,Ie):Se(Ie)?new Gl(he,Ie):He(Ie)?new jl(he,Ie):at(Ie)?new au(he,Ie):an(Ie)?new gu(he,Ie):Pr(Ie)?new Yl(he,Ie):mr(Ie)?new Lu(he,Ie):new hs(he,Ie)},Ue=function(he,Ie){var Me=be(he,Ie);return Me.flags|=4,ou(he,Ie,Me,Me),Me},ht=function(he,Ie,Me){return Ie.styles.isPositionedWithZIndex()||Ie.styles.opacity<1||Ie.styles.isTransformed()||Nt(he)&&Me.styles.isTransparent()},Kt=function(he){return he.isPositioned()||he.isFloating()},dr=function(he){return he.nodeType===Node.TEXT_NODE},Tr=function(he){return he.nodeType===Node.ELEMENT_NODE},De=function(he){return Tr(he)&&typeof he.style!="undefined"&&!te(he)},te=function(he){return typeof he.className=="object"},Se=function(he){return he.tagName==="LI"},He=function(he){return he.tagName==="OL"},at=function(he){return he.tagName==="INPUT"},Et=function(he){return he.tagName==="HTML"},It=function(he){return he.tagName==="svg"},Nt=function(he){return he.tagName==="BODY"},vr=function(he){return he.tagName==="CANVAS"},Ir=function(he){return he.tagName==="IMG"},mr=function(he){return he.tagName==="IFRAME"},cr=function(he){return he.tagName==="STYLE"},Cr=function(he){return he.tagName==="SCRIPT"},Pr=function(he){return he.tagName==="TEXTAREA"},an=function(he){return he.tagName==="SELECT"},Kn=function(he){return he.tagName==="SLOT"},ni=function(){function ot(){this.counters={}}return ot.prototype.getCounterValue=function(he){var Ie=this.counters[he];return Ie&&Ie.length?Ie[Ie.length-1]:1},ot.prototype.getCounterValues=function(he){var Ie=this.counters[he];return Ie||[]},ot.prototype.pop=function(he){var Ie=this;he.forEach(function(Me){return Ie.counters[Me].pop()})},ot.prototype.parse=function(he){var Ie=this,Me=he.counterIncrement,rt=he.counterReset,jt=!0;Me!==null&&Me.forEach(function(Hr){var qr=Ie.counters[Hr.counter];qr&&Hr.increment!==0&&(jt=!1,qr.length||qr.push(1),qr[Math.max(0,qr.length-1)]+=Hr.increment)});var Er=[];return jt&&rt.forEach(function(Hr){var qr=Ie.counters[Hr.counter];Er.push(Hr.counter),qr||(qr=Ie.counters[Hr.counter]=[]),qr.push(Hr.reset)}),Er},ot}(),Oi={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"]},hi={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"]},va={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"]},Ki={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"]},La=function(he,Ie,Me,rt,jt,Er){return he<Ie||he>Me?$t(he,jt,Er.length>0):rt.integers.reduce(function(Hr,qr,hn){for(;he>=qr;)he-=qr,Hr+=rt.values[hn];return Hr},"")+Er},ba=function(he,Ie,Me,rt){var jt="";do Me||he--,jt=rt(he)+jt,he/=Ie;while(he*Ie>=Ie);return jt},Ia=function(he,Ie,Me,rt,jt){var Er=Me-Ie+1;return(he<0?"-":"")+(ba(Math.abs(he),Er,rt,function(Hr){return i(Math.floor(Hr%Er)+Ie)})+jt)},lo=function(he,Ie,Me){Me===void 0&&(Me=". ");var rt=Ie.length;return ba(Math.abs(he),rt,!1,function(jt){return Ie[Math.floor(jt%rt)]})+Me},P=1<<0,W=1<<1,q=1<<2,re=1<<3,le=function(he,Ie,Me,rt,jt,Er){if(he<-9999||he>9999)return $t(he,bi.CJK_DECIMAL,jt.length>0);var Hr=Math.abs(he),qr=jt;if(Hr===0)return Ie[0]+qr;for(var hn=0;Hr>0&&hn<=4;hn++){var ai=Hr%10;ai===0&&za(Er,P)&&qr!==""?qr=Ie[ai]+qr:ai>1||ai===1&&hn===0||ai===1&&hn===1&&za(Er,W)||ai===1&&hn===1&&za(Er,q)&&he>100||ai===1&&hn>1&&za(Er,re)?qr=Ie[ai]+(hn>0?Me[hn-1]:"")+qr:ai===1&&hn>0&&(qr=Me[hn-1]+qr),Hr=Math.floor(Hr/10)}return(he<0?rt:"")+qr},Pe="\u5341\u767E\u5343\u842C",ft="\u62FE\u4F70\u4EDF\u842C",Tt="\u30DE\u30A4\u30CA\u30B9",Qt="\uB9C8\uC774\uB108\uC2A4",$t=function(he,Ie,Me){var rt=Me?". ":"",jt=Me?"\u3001":"",Er=Me?", ":"",Hr=Me?" ":"";switch(Ie){case bi.DISC:return"\u2022"+Hr;case bi.CIRCLE:return"\u25E6"+Hr;case bi.SQUARE:return"\u25FE"+Hr;case bi.DECIMAL_LEADING_ZERO:var qr=Ia(he,48,57,!0,rt);return qr.length<4?"0"+qr:qr;case bi.CJK_DECIMAL:return lo(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",jt);case bi.LOWER_ROMAN:return La(he,1,3999,Oi,bi.DECIMAL,rt).toLowerCase();case bi.UPPER_ROMAN:return La(he,1,3999,Oi,bi.DECIMAL,rt);case bi.LOWER_GREEK:return Ia(he,945,969,!1,rt);case bi.LOWER_ALPHA:return Ia(he,97,122,!1,rt);case bi.UPPER_ALPHA:return Ia(he,65,90,!1,rt);case bi.ARABIC_INDIC:return Ia(he,1632,1641,!0,rt);case bi.ARMENIAN:case bi.UPPER_ARMENIAN:return La(he,1,9999,hi,bi.DECIMAL,rt);case bi.LOWER_ARMENIAN:return La(he,1,9999,hi,bi.DECIMAL,rt).toLowerCase();case bi.BENGALI:return Ia(he,2534,2543,!0,rt);case bi.CAMBODIAN:case bi.KHMER:return Ia(he,6112,6121,!0,rt);case bi.CJK_EARTHLY_BRANCH:return lo(he,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",jt);case bi.CJK_HEAVENLY_STEM:return lo(he,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",jt);case bi.CJK_IDEOGRAPHIC:case bi.TRAD_CHINESE_INFORMAL:return le(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pe,"\u8CA0",jt,W|q|re);case bi.TRAD_CHINESE_FORMAL:return le(he,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ft,"\u8CA0",jt,P|W|q|re);case bi.SIMP_CHINESE_INFORMAL:return le(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pe,"\u8D1F",jt,W|q|re);case bi.SIMP_CHINESE_FORMAL:return le(he,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ft,"\u8D1F",jt,P|W|q|re);case bi.JAPANESE_INFORMAL:return le(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Tt,jt,0);case bi.JAPANESE_FORMAL:return le(he,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Tt,jt,P|W|q);case bi.KOREAN_HANGUL_FORMAL:return le(he,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Qt,Er,P|W|q);case bi.KOREAN_HANJA_INFORMAL:return le(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Qt,Er,0);case bi.KOREAN_HANJA_FORMAL:return le(he,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Qt,Er,P|W|q);case bi.DEVANAGARI:return Ia(he,2406,2415,!0,rt);case bi.GEORGIAN:return La(he,1,19999,Ki,bi.DECIMAL,rt);case bi.GUJARATI:return Ia(he,2790,2799,!0,rt);case bi.GURMUKHI:return Ia(he,2662,2671,!0,rt);case bi.HEBREW:return La(he,1,10999,va,bi.DECIMAL,rt);case bi.HIRAGANA:return lo(he,"\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 bi.HIRAGANA_IROHA:return lo(he,"\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 bi.KANNADA:return Ia(he,3302,3311,!0,rt);case bi.KATAKANA:return lo(he,"\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",jt);case bi.KATAKANA_IROHA:return lo(he,"\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",jt);case bi.LAO:return Ia(he,3792,3801,!0,rt);case bi.MONGOLIAN:return Ia(he,6160,6169,!0,rt);case bi.MYANMAR:return Ia(he,4160,4169,!0,rt);case bi.ORIYA:return Ia(he,2918,2927,!0,rt);case bi.PERSIAN:return Ia(he,1776,1785,!0,rt);case bi.TAMIL:return Ia(he,3046,3055,!0,rt);case bi.TELUGU:return Ia(he,3174,3183,!0,rt);case bi.THAI:return Ia(he,3664,3673,!0,rt);case bi.TIBETAN:return Ia(he,3872,3881,!0,rt);case bi.DECIMAL:default:return Ia(he,48,57,!0,rt)}},en="data-html2canvas-ignore",pn=function(){function ot(he,Ie,Me){if(this.context=he,this.options=Me,this.scrolledElements=[],this.referenceElement=Ie,this.counters=new ni,this.quoteDepth=0,!Ie.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ie.ownerDocument.documentElement)}return ot.prototype.toIFrame=function(he,Ie){var Me=this,rt=Fn(he,Ie);if(!rt.contentWindow)return Promise.reject("Unable to find iframe window");var jt=he.defaultView.pageXOffset,Er=he.defaultView.pageYOffset,Hr=rt.contentWindow,qr=Hr.document,hn=Ji(rt).then(function(){return g(Me,void 0,void 0,function(){var ai,Qn;return S(this,function(ui){switch(ui.label){case 0:return this.scrolledElements.forEach(ro),Hr&&(Hr.scrollTo(Ie.left,Ie.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Hr.scrollY!==Ie.top||Hr.scrollX!==Ie.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Hr.scrollX-Ie.left,Hr.scrollY-Ie.top,0,0))),ai=this.options.onclone,Qn=this.clonedReferenceElement,typeof Qn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:qr.fonts&&qr.fonts.ready?[4,qr.fonts.ready]:[3,2];case 1:ui.sent(),ui.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ji(qr)]:[3,4];case 3:ui.sent(),ui.label=4;case 4:return typeof ai=="function"?[2,Promise.resolve().then(function(){return ai(qr,Qn)}).then(function(){return rt})]:[2,rt]}})})});return qr.open(),qr.write(ga(document.doctype)+"<html></html>"),Ea(this.referenceElement.ownerDocument,jt,Er),qr.replaceChild(qr.adoptNode(this.documentElement),qr.documentElement),qr.close(),hn},ot.prototype.createElementClone=function(he){if(Ws(he,2))debugger;if(vr(he))return this.createCanvasClone(he);if(cr(he))return this.createStyleClone(he);var Ie=he.cloneNode(!1);return Ir(Ie)&&(Ir(he)&&he.currentSrc&&he.currentSrc!==he.src&&(Ie.src=he.currentSrc,Ie.srcset=""),Ie.loading==="lazy"&&(Ie.loading="eager")),Ie},ot.prototype.createStyleClone=function(he){try{var Ie=he.sheet;if(Ie&&Ie.cssRules){var Me=[].slice.call(Ie.cssRules,0).reduce(function(jt,Er){return Er&&typeof Er.cssText=="string"?jt+Er.cssText:jt},""),rt=he.cloneNode(!1);return rt.textContent=Me,rt}}catch(jt){if(this.context.logger.error("Unable to access cssRules property",jt),jt.name!=="SecurityError")throw jt}return he.cloneNode(!1)},ot.prototype.createCanvasClone=function(he){var Ie;if(this.options.inlineImages&&he.ownerDocument){var Me=he.ownerDocument.createElement("img");try{return Me.src=he.toDataURL(),Me}catch(hn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",he)}}var rt=he.cloneNode(!1);try{rt.width=he.width,rt.height=he.height;var jt=he.getContext("2d"),Er=rt.getContext("2d");if(Er)if(!this.options.allowTaint&&jt)Er.putImageData(jt.getImageData(0,0,he.width,he.height),0,0);else{var Hr=(Ie=he.getContext("webgl2"))!==null&&Ie!==void 0?Ie:he.getContext("webgl");if(Hr){var qr=Hr.getContextAttributes();(qr==null?void 0:qr.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",he)}Er.drawImage(he,0,0)}return rt}catch(hn){this.context.logger.info("Unable to clone canvas as it is tainted",he)}return rt},ot.prototype.cloneNode=function(he){if(dr(he))return document.createTextNode(he.data);if(!he.ownerDocument)return he.cloneNode(!1);var Ie=he.ownerDocument.defaultView;if(Ie&&Tr(he)&&(De(he)||te(he))){var Me=this.createElementClone(he);Me.style.transitionProperty="none";var rt=Ie.getComputedStyle(he),jt=Ie.getComputedStyle(he,":before"),Er=Ie.getComputedStyle(he,":after");this.referenceElement===he&&De(Me)&&(this.clonedReferenceElement=Me),Nt(Me)&&Fs(Me);for(var Hr=this.counters.parse(new Lo(this.context,rt)),qr=this.resolvePseudoContent(he,Me,jt,Mn.BEFORE),hn=he.firstChild;hn;hn=hn.nextSibling)(!Tr(hn)||!Cr(hn)&&!hn.hasAttribute(en)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(hn)))&&((!this.options.copyStyles||!Tr(hn)||!cr(hn))&&Me.appendChild(this.cloneNode(hn)));qr&&Me.insertBefore(qr,Me.firstChild);var ai=this.resolvePseudoContent(he,Me,Er,Mn.AFTER);return ai&&Me.appendChild(ai),this.counters.pop(Hr),rt&&(this.options.copyStyles||te(he))&&!mr(he)&&Gi(rt,Me),(he.scrollTop!==0||he.scrollLeft!==0)&&this.scrolledElements.push([Me,he.scrollLeft,he.scrollTop]),(Pr(he)||an(he))&&(Pr(Me)||an(Me))&&(Me.value=he.value),Me}return he.cloneNode(!1)},ot.prototype.resolvePseudoContent=function(he,Ie,Me,rt){var jt=this;if(!Me)return;var Er=Me.content,Hr=Ie.ownerDocument;if(!Hr||!Er||Er==="none"||Er==="-moz-alt-content"||Me.display==="none")return;this.counters.parse(new Lo(this.context,Me));var qr=new Cs(this.context,Me),hn=Hr.createElement("html2canvaspseudoelement");Gi(Me,hn),qr.content.forEach(function(Qn){if(Qn.type===0)hn.appendChild(Hr.createTextNode(Qn.value));else if(Qn.type===22){var ui=Hr.createElement("img");ui.src=Qn.value,ui.style.opacity="1",hn.appendChild(ui)}else if(Qn.type===18){if(Qn.name==="attr"){var ha=Qn.values.filter(rr);ha.length&&hn.appendChild(Hr.createTextNode(he.getAttribute(ha[0].value)||""))}else if(Qn.name==="counter"){var fa=Qn.values.filter(nn),_a=fa[0],co=fa[1];if(_a&&rr(_a)){var Qa=jt.counters.getCounterValue(_a.value),Wa=co&&rr(co)?Qs.parse(jt.context,co.value):bi.DECIMAL;hn.appendChild(Hr.createTextNode($t(Qa,Wa,!1)))}}else if(Qn.name==="counters"){var zo=Qn.values.filter(nn),_a=zo[0],rs=zo[1],co=zo[2];if(_a&&rr(_a)){var ko=jt.counters.getCounterValues(_a.value),ja=co&&rr(co)?Qs.parse(jt.context,co.value):bi.DECIMAL,ss=rs&&rs.type===0?rs.value:"",us=ko.map(function(Jl){return $t(Jl,ja,!1)}).join(ss);hn.appendChild(Hr.createTextNode(us))}}}else if(Qn.type===20)switch(Qn.value){case"open-quote":hn.appendChild(Hr.createTextNode(Ds(qr.quotes,jt.quoteDepth++,!0)));break;case"close-quote":hn.appendChild(Hr.createTextNode(Ds(qr.quotes,--jt.quoteDepth,!1)));break;default:hn.appendChild(Hr.createTextNode(Qn.value))}}),hn.className=Po+" "+is;var ai=rt===Mn.BEFORE?" "+Po:" "+is;return te(Ie)?Ie.className.baseValue+=ai:Ie.className+=ai,hn},ot.destroy=function(he){return he.parentNode?(he.parentNode.removeChild(he),!0):!1},ot}(),Mn;(function(ot){ot[ot.BEFORE=0]="BEFORE",ot[ot.AFTER=1]="AFTER"})(Mn||(Mn={}));var Fn=function(he,Ie){var Me=he.createElement("iframe");return Me.className="html2canvas-container",Me.style.visibility="hidden",Me.style.position="fixed",Me.style.left="-10000px",Me.style.top="0px",Me.style.border="0",Me.width=Ie.width.toString(),Me.height=Ie.height.toString(),Me.scrolling="no",Me.setAttribute(en,"true"),he.body.appendChild(Me),Me},vi=function(he){return new Promise(function(Ie){if(he.complete){Ie();return}if(!he.src){Ie();return}he.onload=Ie,he.onerror=Ie})},ji=function(he){return Promise.all([].slice.call(he.images,0).map(vi))},Ji=function(he){return new Promise(function(Ie,Me){var rt=he.contentWindow;if(!rt)return Me("No window assigned for iframe");var jt=rt.document;rt.onload=he.onload=function(){rt.onload=he.onload=null;var Er=setInterval(function(){jt.body.childNodes.length>0&&jt.readyState==="complete"&&(clearInterval(Er),Ie(he))},50)}})},Qi=["all","d","content"],Gi=function(he,Ie){for(var Me=he.length-1;Me>=0;Me--){var rt=he.item(Me);Qi.indexOf(rt)===-1&&Ie.style.setProperty(rt,he.getPropertyValue(rt))}return Ie},ga=function(he){var Ie="";return he&&(Ie+="<!DOCTYPE ",he.name&&(Ie+=he.name),he.internalSubset&&(Ie+=he.internalSubset),he.publicId&&(Ie+='"'+he.publicId+'"'),he.systemId&&(Ie+='"'+he.systemId+'"'),Ie+=">"),Ie},Ea=function(he,Ie,Me){he&&he.defaultView&&(Ie!==he.defaultView.pageXOffset||Me!==he.defaultView.pageYOffset)&&he.defaultView.scrollTo(Ie,Me)},ro=function(he){var Ie=he[0],Me=he[1],rt=he[2];Ie.scrollLeft=Me,Ie.scrollTop=rt},Va=":before",xo=":after",Po="___html2canvas___pseudoelement_before",is="___html2canvas___pseudoelement_after",qo=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,Fs=function(he){sl(he,"."+Po+Va+qo+`
|
|
|
.`+is+xo+qo)},sl=function(he,Ie){var Me=he.ownerDocument;if(Me){var rt=Me.createElement("style");rt.textContent=Ie,he.appendChild(rt)}},Ss=function(){function ot(){}return ot.getOrigin=function(he){var Ie=ot._link;return Ie?(Ie.href=he,Ie.href=Ie.href,Ie.protocol+Ie.hostname+Ie.port):"about:blank"},ot.isSameOrigin=function(he){return ot.getOrigin(he)===ot._origin},ot.setContext=function(he){ot._link=he.document.createElement("a"),ot._origin=ot.getOrigin(he.location.href)},ot._origin="about:blank",ot}(),ll=function(){function ot(he,Ie){this.context=he,this._options=Ie,this._cache={}}return ot.prototype.addImage=function(he){var Ie=Promise.resolve();return this.has(he)||(Al(he)||ps(he))&&(this._cache[he]=this.loadImage(he)).catch(function(){}),Ie},ot.prototype.match=function(he){return this._cache[he]},ot.prototype.loadImage=function(he){return g(this,void 0,void 0,function(){var Ie,Me,rt,jt,Er=this;return S(this,function(Hr){switch(Hr.label){case 0:return Ie=Ss.isSameOrigin(he),Me=!nl(he)&&this._options.useCORS===!0&&fs.SUPPORT_CORS_IMAGES&&!Ie,rt=!nl(he)&&!Ie&&!Al(he)&&typeof this._options.proxy=="string"&&fs.SUPPORT_CORS_XHR&&!Me,!Ie&&this._options.allowTaint===!1&&!nl(he)&&!Al(he)&&!rt&&!Me?[2]:(jt=he,rt?[4,this.proxy(jt)]:[3,2]);case 1:jt=Hr.sent(),Hr.label=2;case 2:return this.context.logger.debug("Added image "+he.substring(0,256)),[4,new Promise(function(qr,hn){var ai=new Image;ai.onload=function(){return qr(ai)},ai.onerror=hn,(vu(jt)||Me)&&(ai.crossOrigin="anonymous"),ai.src=jt,ai.complete===!0&&setTimeout(function(){return qr(ai)},500),Er._options.imageTimeout>0&&setTimeout(function(){return hn("Timed out ("+Er._options.imageTimeout+"ms) loading image")},Er._options.imageTimeout)})];case 3:return[2,Hr.sent()]}})})},ot.prototype.has=function(he){return typeof this._cache[he]!="undefined"},ot.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ot.prototype.proxy=function(he){var Ie=this,Me=this._options.proxy;if(!Me)throw new Error("No proxy defined");var rt=he.substring(0,256);return new Promise(function(jt,Er){var Hr=fs.SUPPORT_RESPONSE_TYPE?"blob":"text",qr=new XMLHttpRequest;qr.onload=function(){if(qr.status===200)if(Hr==="text")jt(qr.response);else{var Qn=new FileReader;Qn.addEventListener("load",function(){return jt(Qn.result)},!1),Qn.addEventListener("error",function(ui){return Er(ui)},!1),Qn.readAsDataURL(qr.response)}else Er("Failed to proxy resource "+rt+" with status code "+qr.status)},qr.onerror=Er;var hn=Me.indexOf("?")>-1?"&":"?";if(qr.open("GET",""+Me+hn+"url="+encodeURIComponent(he)+"&responseType="+Hr),Hr!=="text"&&qr instanceof XMLHttpRequest&&(qr.responseType=Hr),Ie._options.imageTimeout){var ai=Ie._options.imageTimeout;qr.timeout=ai,qr.ontimeout=function(){return Er("Timed out ("+ai+"ms) proxying "+rt)}}qr.send()})},ot}(),Us=/^data:image\/svg\+xml/i,Rs=/^data:image\/.*;base64,/i,Is=/^data:image\/.*/i,ps=function(he){return fs.SUPPORT_SVG_DRAWING||!_s(he)},nl=function(he){return Is.test(he)},vu=function(he){return Rs.test(he)},Al=function(he){return he.substr(0,4)==="blob"},_s=function(he){return he.substr(-3).toLowerCase()==="svg"||Us.test(he)},ml;(function(ot){ot[ot.VECTOR=0]="VECTOR",ot[ot.BEZIER_CURVE=1]="BEZIER_CURVE"})(ml||(ml={}));var Gs=function(he,Ie){return he.length===Ie.length?he.some(function(Me,rt){return Me===Ie[rt]}):!1},tc=function(he,Ie,Me,rt,jt){return he.map(function(Er,Hr){switch(Hr){case 0:return Er.add(Ie,Me);case 1:return Er.add(Ie+rt,Me);case 2:return Er.add(Ie+rt,Me+jt);case 3:return Er.add(Ie,Me+jt)}return Er})},wa=function(){function ot(he,Ie){this.type=ml.VECTOR,this.x=he,this.y=Ie}return ot.prototype.add=function(he,Ie){return new ot(this.x+he,this.y+Ie)},ot}(),hl=function(he,Ie,Me){return new wa(he.x+(Ie.x-he.x)*Me,he.y+(Ie.y-he.y)*Me)},_l=function(){function ot(he,Ie,Me,rt){this.type=ml.BEZIER_CURVE,this.start=he,this.startControl=Ie,this.endControl=Me,this.end=rt}return ot.prototype.subdivide=function(he,Ie){var Me=hl(this.start,this.startControl,he),rt=hl(this.startControl,this.endControl,he),jt=hl(this.endControl,this.end,he),Er=hl(Me,rt,he),Hr=hl(rt,jt,he),qr=hl(Er,Hr,he);return Ie?new ot(this.start,Me,Er,qr):new ot(qr,Hr,jt,this.end)},ot.prototype.add=function(he,Ie){return new ot(this.start.add(he,Ie),this.startControl.add(he,Ie),this.endControl.add(he,Ie),this.end.add(he,Ie))},ot.prototype.reverse=function(){return new ot(this.end,this.endControl,this.startControl,this.start)},ot}(),ls=function(he){return he.type===ml.BEZIER_CURVE},Hl=function(){function ot(he){var Ie=he.styles,Me=he.bounds,rt=Yn(Ie.borderTopLeftRadius,Me.width,Me.height),jt=rt[0],Er=rt[1],Hr=Yn(Ie.borderTopRightRadius,Me.width,Me.height),qr=Hr[0],hn=Hr[1],ai=Yn(Ie.borderBottomRightRadius,Me.width,Me.height),Qn=ai[0],ui=ai[1],ha=Yn(Ie.borderBottomLeftRadius,Me.width,Me.height),fa=ha[0],_a=ha[1],co=[];co.push((jt+qr)/Me.width),co.push((fa+Qn)/Me.width),co.push((Er+_a)/Me.height),co.push((hn+ui)/Me.height);var Qa=Math.max.apply(Math,co);Qa>1&&(jt/=Qa,Er/=Qa,qr/=Qa,hn/=Qa,Qn/=Qa,ui/=Qa,fa/=Qa,_a/=Qa);var Wa=Me.width-qr,zo=Me.height-ui,rs=Me.width-Qn,ko=Me.height-_a,ja=Ie.borderTopWidth,ss=Ie.borderRightWidth,us=Ie.borderBottomWidth,Bo=Ie.borderLeftWidth,Pl=Zn(Ie.paddingTop,he.bounds.width),Jl=Zn(Ie.paddingRight,he.bounds.width),kl=Zn(Ie.paddingBottom,he.bounds.width),fl=Zn(Ie.paddingLeft,he.bounds.width);this.topLeftBorderDoubleOuterBox=jt>0||Er>0?As(Me.left+Bo/3,Me.top+ja/3,jt-Bo/3,Er-ja/3,$o.TOP_LEFT):new wa(Me.left+Bo/3,Me.top+ja/3),this.topRightBorderDoubleOuterBox=jt>0||Er>0?As(Me.left+Wa,Me.top+ja/3,qr-ss/3,hn-ja/3,$o.TOP_RIGHT):new wa(Me.left+Me.width-ss/3,Me.top+ja/3),this.bottomRightBorderDoubleOuterBox=Qn>0||ui>0?As(Me.left+rs,Me.top+zo,Qn-ss/3,ui-us/3,$o.BOTTOM_RIGHT):new wa(Me.left+Me.width-ss/3,Me.top+Me.height-us/3),this.bottomLeftBorderDoubleOuterBox=fa>0||_a>0?As(Me.left+Bo/3,Me.top+ko,fa-Bo/3,_a-us/3,$o.BOTTOM_LEFT):new wa(Me.left+Bo/3,Me.top+Me.height-us/3),this.topLeftBorderDoubleInnerBox=jt>0||Er>0?As(Me.left+Bo*2/3,Me.top+ja*2/3,jt-Bo*2/3,Er-ja*2/3,$o.TOP_LEFT):new wa(Me.left+Bo*2/3,Me.top+ja*2/3),this.topRightBorderDoubleInnerBox=jt>0||Er>0?As(Me.left+Wa,Me.top+ja*2/3,qr-ss*2/3,hn-ja*2/3,$o.TOP_RIGHT):new wa(Me.left+Me.width-ss*2/3,Me.top+ja*2/3),this.bottomRightBorderDoubleInnerBox=Qn>0||ui>0?As(Me.left+rs,Me.top+zo,Qn-ss*2/3,ui-us*2/3,$o.BOTTOM_RIGHT):new wa(Me.left+Me.width-ss*2/3,Me.top+Me.height-us*2/3),this.bottomLeftBorderDoubleInnerBox=fa>0||_a>0?As(Me.left+Bo*2/3,Me.top+ko,fa-Bo*2/3,_a-us*2/3,$o.BOTTOM_LEFT):new wa(Me.left+Bo*2/3,Me.top+Me.height-us*2/3),this.topLeftBorderStroke=jt>0||Er>0?As(Me.left+Bo/2,Me.top+ja/2,jt-Bo/2,Er-ja/2,$o.TOP_LEFT):new wa(Me.left+Bo/2,Me.top+ja/2),this.topRightBorderStroke=jt>0||Er>0?As(Me.left+Wa,Me.top+ja/2,qr-ss/2,hn-ja/2,$o.TOP_RIGHT):new wa(Me.left+Me.width-ss/2,Me.top+ja/2),this.bottomRightBorderStroke=Qn>0||ui>0?As(Me.left+rs,Me.top+zo,Qn-ss/2,ui-us/2,$o.BOTTOM_RIGHT):new wa(Me.left+Me.width-ss/2,Me.top+Me.height-us/2),this.bottomLeftBorderStroke=fa>0||_a>0?As(Me.left+Bo/2,Me.top+ko,fa-Bo/2,_a-us/2,$o.BOTTOM_LEFT):new wa(Me.left+Bo/2,Me.top+Me.height-us/2),this.topLeftBorderBox=jt>0||Er>0?As(Me.left,Me.top,jt,Er,$o.TOP_LEFT):new wa(Me.left,Me.top),this.topRightBorderBox=qr>0||hn>0?As(Me.left+Wa,Me.top,qr,hn,$o.TOP_RIGHT):new wa(Me.left+Me.width,Me.top),this.bottomRightBorderBox=Qn>0||ui>0?As(Me.left+rs,Me.top+zo,Qn,ui,$o.BOTTOM_RIGHT):new wa(Me.left+Me.width,Me.top+Me.height),this.bottomLeftBorderBox=fa>0||_a>0?As(Me.left,Me.top+ko,fa,_a,$o.BOTTOM_LEFT):new wa(Me.left,Me.top+Me.height),this.topLeftPaddingBox=jt>0||Er>0?As(Me.left+Bo,Me.top+ja,Math.max(0,jt-Bo),Math.max(0,Er-ja),$o.TOP_LEFT):new wa(Me.left+Bo,Me.top+ja),this.topRightPaddingBox=qr>0||hn>0?As(Me.left+Math.min(Wa,Me.width-ss),Me.top+ja,Wa>Me.width+ss?0:Math.max(0,qr-ss),Math.max(0,hn-ja),$o.TOP_RIGHT):new wa(Me.left+Me.width-ss,Me.top+ja),this.bottomRightPaddingBox=Qn>0||ui>0?As(Me.left+Math.min(rs,Me.width-Bo),Me.top+Math.min(zo,Me.height-us),Math.max(0,Qn-ss),Math.max(0,ui-us),$o.BOTTOM_RIGHT):new wa(Me.left+Me.width-ss,Me.top+Me.height-us),this.bottomLeftPaddingBox=fa>0||_a>0?As(Me.left+Bo,Me.top+Math.min(ko,Me.height-us),Math.max(0,fa-Bo),Math.max(0,_a-us),$o.BOTTOM_LEFT):new wa(Me.left+Bo,Me.top+Me.height-us),this.topLeftContentBox=jt>0||Er>0?As(Me.left+Bo+fl,Me.top+ja+Pl,Math.max(0,jt-(Bo+fl)),Math.max(0,Er-(ja+Pl)),$o.TOP_LEFT):new wa(Me.left+Bo+fl,Me.top+ja+Pl),this.topRightContentBox=qr>0||hn>0?As(Me.left+Math.min(Wa,Me.width+Bo+fl),Me.top+ja+Pl,Wa>Me.width+Bo+fl?0:qr-Bo+fl,hn-(ja+Pl),$o.TOP_RIGHT):new wa(Me.left+Me.width-(ss+Jl),Me.top+ja+Pl),this.bottomRightContentBox=Qn>0||ui>0?As(Me.left+Math.min(rs,Me.width-(Bo+fl)),Me.top+Math.min(zo,Me.height+ja+Pl),Math.max(0,Qn-(ss+Jl)),ui-(us+kl),$o.BOTTOM_RIGHT):new wa(Me.left+Me.width-(ss+Jl),Me.top+Me.height-(us+kl)),this.bottomLeftContentBox=fa>0||_a>0?As(Me.left+Bo+fl,Me.top+ko,Math.max(0,fa-(Bo+fl)),_a-(us+kl),$o.BOTTOM_LEFT):new wa(Me.left+Bo+fl,Me.top+Me.height-(us+kl))}return ot}(),$o;(function(ot){ot[ot.TOP_LEFT=0]="TOP_LEFT",ot[ot.TOP_RIGHT=1]="TOP_RIGHT",ot[ot.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ot[ot.BOTTOM_LEFT=3]="BOTTOM_LEFT"})($o||($o={}));var As=function(he,Ie,Me,rt,jt){var Er=4*((Math.sqrt(2)-1)/3),Hr=Me*Er,qr=rt*Er,hn=he+Me,ai=Ie+rt;switch(jt){case $o.TOP_LEFT:return new _l(new wa(he,ai),new wa(he,ai-qr),new wa(hn-Hr,Ie),new wa(hn,Ie));case $o.TOP_RIGHT:return new _l(new wa(he,Ie),new wa(he+Hr,Ie),new wa(hn,ai-qr),new wa(hn,ai));case $o.BOTTOM_RIGHT:return new _l(new wa(hn,Ie),new wa(hn,Ie+qr),new wa(he+Hr,ai),new wa(he,ai));case $o.BOTTOM_LEFT:default:return new _l(new wa(hn,ai),new wa(hn-Hr,ai),new wa(he,Ie+qr),new wa(he,Ie))}},rc=function(he){return[he.topLeftBorderBox,he.topRightBorderBox,he.bottomRightBorderBox,he.bottomLeftBorderBox]},xc=function(he){return[he.topLeftContentBox,he.topRightContentBox,he.bottomRightContentBox,he.bottomLeftContentBox]},Nu=function(he){return[he.topLeftPaddingBox,he.topRightPaddingBox,he.bottomRightPaddingBox,he.bottomLeftPaddingBox]},wc=function(){function ot(he,Ie,Me){this.offsetX=he,this.offsetY=Ie,this.matrix=Me,this.type=0,this.target=2|4}return ot}(),Vu=function(){function ot(he,Ie){this.path=he,this.target=Ie,this.type=1}return ot}(),Au=function(){function ot(he){this.opacity=he,this.type=2,this.target=2|4}return ot}(),Sc=function(he){return he.type===0},fc=function(he){return he.type===1},Ec=function(he){return he.type===2},pc=function(){function ot(he){this.element=he,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ot}(),Du=function(){function ot(he,Ie){if(this.container=he,this.parent=Ie,this.effects=[],this.curves=new Hl(this.container),this.container.styles.opacity<1&&this.effects.push(new Au(this.container.styles.opacity)),this.container.styles.transform!==null){var Me=this.container.bounds.left+this.container.styles.transformOrigin[0].number,rt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,jt=this.container.styles.transform;this.effects.push(new wc(Me,rt,jt))}if(this.container.styles.overflowX!==Uo.VISIBLE){var Er=rc(this.curves),Hr=Nu(this.curves);Gs(Er,Hr)?this.effects.push(new Vu(Er,2|4)):(this.effects.push(new Vu(Er,2)),this.effects.push(new Vu(Hr,4)))}}return ot.prototype.getEffects=function(he){for(var Ie=[St.ABSOLUTE,St.FIXED].indexOf(this.container.styles.position)===-1,Me=this.parent,rt=this.effects.slice(0);Me;){var jt=Me.effects.filter(function(qr){return!fc(qr)});if(Ie||Me.container.styles.position!==St.STATIC||!Me.parent){if(rt.unshift.apply(rt,jt),Ie=[St.ABSOLUTE,St.FIXED].indexOf(Me.container.styles.position)===-1,Me.container.styles.overflowX!==Uo.VISIBLE){var Er=rc(Me.curves),Hr=Nu(Me.curves);Gs(Er,Hr)||rt.unshift(new Vu(Hr,2|4))}}else rt.unshift.apply(rt,jt);Me=Me.parent}return rt.filter(function(qr){return za(qr.target,he)})},ot}(),Cc=function ot(he,Ie,Me,rt){he.container.elements.forEach(function(jt){var Er=za(jt.flags,4),Hr=za(jt.flags,2),qr=new Du(jt,he);za(jt.styles.display,2048)&&rt.push(qr);var hn=za(jt.flags,8)?[]:rt;if(Er||Hr){var ai=Er||jt.styles.isPositioned()?Me:Ie,Qn=new pc(qr);if(jt.styles.isPositioned()||jt.styles.opacity<1||jt.styles.isTransformed()){var ui=jt.styles.zIndex.order;if(ui<0){var ha=0;ai.negativeZIndex.some(function(_a,co){return ui>_a.element.container.styles.zIndex.order?(ha=co,!1):ha>0}),ai.negativeZIndex.splice(ha,0,Qn)}else if(ui>0){var fa=0;ai.positiveZIndex.some(function(_a,co){return ui>=_a.element.container.styles.zIndex.order?(fa=co+1,!1):fa>0}),ai.positiveZIndex.splice(fa,0,Qn)}else ai.zeroOrAutoZIndexOrTransformedOrOpacity.push(Qn)}else jt.styles.isFloating()?ai.nonPositionedFloats.push(Qn):ai.nonPositionedInlineLevel.push(Qn);ot(qr,Qn,Er?Qn:Me,hn)}else jt.styles.isInlineLevel()?Ie.inlineLevel.push(qr):Ie.nonInlineLevel.push(qr),ot(qr,Ie,Me,hn);za(jt.flags,8)&&mc(jt,hn)})},mc=function(he,Ie){for(var Me=he instanceof jl?he.start:1,rt=he instanceof jl?he.reversed:!1,jt=0;jt<Ie.length;jt++){var Er=Ie[jt];Er.container instanceof Gl&&typeof Er.container.value=="number"&&Er.container.value!==0&&(Me=Er.container.value),Er.listValue=$t(Me,Er.container.styles.listStyleType,!0),Me+=rt?-1:1}},Tc=function(he){var Ie=new Du(he,null),Me=new pc(Ie),rt=[];return Cc(Ie,Me,Me,rt),mc(Ie.container,rt),Me},gc=function(he,Ie){switch(Ie){case 0:return el(he.topLeftBorderBox,he.topLeftPaddingBox,he.topRightBorderBox,he.topRightPaddingBox);case 1:return el(he.topRightBorderBox,he.topRightPaddingBox,he.bottomRightBorderBox,he.bottomRightPaddingBox);case 2:return el(he.bottomRightBorderBox,he.bottomRightPaddingBox,he.bottomLeftBorderBox,he.bottomLeftPaddingBox);case 3:default:return el(he.bottomLeftBorderBox,he.bottomLeftPaddingBox,he.topLeftBorderBox,he.topLeftPaddingBox)}},Ic=function(he,Ie){switch(Ie){case 0:return el(he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox,he.topRightBorderBox,he.topRightBorderDoubleOuterBox);case 1:return el(he.topRightBorderBox,he.topRightBorderDoubleOuterBox,he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox);case 2:return el(he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox,he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox);case 3:default:return el(he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox,he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox)}},nc=function(he,Ie){switch(Ie){case 0:return el(he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox,he.topRightBorderDoubleInnerBox,he.topRightPaddingBox);case 1:return el(he.topRightBorderDoubleInnerBox,he.topRightPaddingBox,he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox);case 2:return el(he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox,he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox);case 3:default:return el(he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox,he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox)}},vc=function(he,Ie){switch(Ie){case 0:return Ru(he.topLeftBorderStroke,he.topRightBorderStroke);case 1:return Ru(he.topRightBorderStroke,he.bottomRightBorderStroke);case 2:return Ru(he.bottomRightBorderStroke,he.bottomLeftBorderStroke);case 3:default:return Ru(he.bottomLeftBorderStroke,he.topLeftBorderStroke)}},Ru=function(he,Ie){var Me=[];return ls(he)?Me.push(he.subdivide(.5,!1)):Me.push(he),ls(Ie)?Me.push(Ie.subdivide(.5,!0)):Me.push(Ie),Me},el=function(he,Ie,Me,rt){var jt=[];return ls(he)?jt.push(he.subdivide(.5,!1)):jt.push(he),ls(Me)?jt.push(Me.subdivide(.5,!0)):jt.push(Me),ls(rt)?jt.push(rt.subdivide(.5,!0).reverse()):jt.push(rt),ls(Ie)?jt.push(Ie.subdivide(.5,!1).reverse()):jt.push(Ie),jt},su=function(he){var Ie=he.bounds,Me=he.styles;return Ie.add(Me.borderLeftWidth,Me.borderTopWidth,-(Me.borderRightWidth+Me.borderLeftWidth),-(Me.borderTopWidth+Me.borderBottomWidth))},Kl=function(he){var Ie=he.styles,Me=he.bounds,rt=Zn(Ie.paddingLeft,Me.width),jt=Zn(Ie.paddingRight,Me.width),Er=Zn(Ie.paddingTop,Me.width),Hr=Zn(Ie.paddingBottom,Me.width);return Me.add(rt+Ie.borderLeftWidth,Er+Ie.borderTopWidth,-(Ie.borderRightWidth+Ie.borderLeftWidth+rt+jt),-(Ie.borderTopWidth+Ie.borderBottomWidth+Er+Hr))},uc=function(he,Ie){return he===0?Ie.bounds:he===2?Kl(Ie):su(Ie)},Ac=function(he,Ie){return he===dn.BORDER_BOX?Ie.bounds:he===dn.CONTENT_BOX?Kl(Ie):su(Ie)},cc=function(he,Ie,Me){var rt=uc(dc(he.styles.backgroundOrigin,Ie),he),jt=Ac(dc(he.styles.backgroundClip,Ie),he),Er=yc(dc(he.styles.backgroundSize,Ie),Me,rt),Hr=Er[0],qr=Er[1],hn=Yn(dc(he.styles.backgroundPosition,Ie),rt.width-Hr,rt.height-qr),ai=Lc(dc(he.styles.backgroundRepeat,Ie),hn,Er,rt,jt),Qn=Math.round(rt.left+hn[0]),ui=Math.round(rt.top+hn[1]);return[ai,Qn,ui,Hr,qr]},Gu=function(he){return rr(he)&&he.value===Ra.AUTO},Xu=function(he){return typeof he=="number"},yc=function(he,Ie,Me){var rt=Ie[0],jt=Ie[1],Er=Ie[2],Hr=he[0],qr=he[1];if(!Hr)return[0,0];if(Nn(Hr)&&qr&&Nn(qr))return[Zn(Hr,Me.width),Zn(qr,Me.height)];var hn=Xu(Er);if(rr(Hr)&&(Hr.value===Ra.CONTAIN||Hr.value===Ra.COVER)){if(Xu(Er)){var ai=Me.width/Me.height;return ai<Er!==(Hr.value===Ra.COVER)?[Me.width,Me.width/Er]:[Me.height*Er,Me.height]}return[Me.width,Me.height]}var Qn=Xu(rt),ui=Xu(jt),ha=Qn||ui;if(Gu(Hr)&&(!qr||Gu(qr))){if(Qn&&ui)return[rt,jt];if(!hn&&!ha)return[Me.width,Me.height];if(ha&&hn){var fa=Qn?rt:jt*Er,_a=ui?jt:rt/Er;return[fa,_a]}var co=Qn?rt:Me.width,Qa=ui?jt:Me.height;return[co,Qa]}if(hn){var Wa=0,zo=0;return Nn(Hr)?Wa=Zn(Hr,Me.width):Nn(qr)&&(zo=Zn(qr,Me.height)),Gu(Hr)?Wa=zo*Er:(!qr||Gu(qr))&&(zo=Wa/Er),[Wa,zo]}var rs=null,ko=null;if(Nn(Hr)?rs=Zn(Hr,Me.width):qr&&Nn(qr)&&(ko=Zn(qr,Me.height)),rs!==null&&(!qr||Gu(qr))&&(ko=Qn&&ui?rs/rt*jt:Me.height),ko!==null&&Gu(Hr)&&(rs=Qn&&ui?ko/jt*rt:Me.width),rs!==null&&ko!==null)return[rs,ko];throw new Error("Unable to calculate background-size for element")},dc=function(he,Ie){var Me=he[Ie];return typeof Me=="undefined"?he[0]:Me},Lc=function(he,Ie,Me,rt,jt){var Er=Ie[0],Hr=Ie[1],qr=Me[0],hn=Me[1];switch(he){case Ua.REPEAT_X:return[new wa(Math.round(rt.left),Math.round(rt.top+Hr)),new wa(Math.round(rt.left+rt.width),Math.round(rt.top+Hr)),new wa(Math.round(rt.left+rt.width),Math.round(hn+rt.top+Hr)),new wa(Math.round(rt.left),Math.round(hn+rt.top+Hr))];case Ua.REPEAT_Y:return[new wa(Math.round(rt.left+Er),Math.round(rt.top)),new wa(Math.round(rt.left+Er+qr),Math.round(rt.top)),new wa(Math.round(rt.left+Er+qr),Math.round(rt.height+rt.top)),new wa(Math.round(rt.left+Er),Math.round(rt.height+rt.top))];case Ua.NO_REPEAT:return[new wa(Math.round(rt.left+Er),Math.round(rt.top+Hr)),new wa(Math.round(rt.left+Er+qr),Math.round(rt.top+Hr)),new wa(Math.round(rt.left+Er+qr),Math.round(rt.top+Hr+hn)),new wa(Math.round(rt.left+Er),Math.round(rt.top+Hr+hn))];default:return[new wa(Math.round(jt.left),Math.round(jt.top)),new wa(Math.round(jt.left+jt.width),Math.round(jt.top)),new wa(Math.round(jt.left+jt.width),Math.round(jt.height+jt.top)),new wa(Math.round(jt.left),Math.round(jt.height+jt.top))]}},Nc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",_c="Hidden Text",Dc=function(){function ot(he){this._data={},this._document=he}return ot.prototype.parseMetrics=function(he,Ie){var Me=this._document.createElement("div"),rt=this._document.createElement("img"),jt=this._document.createElement("span"),Er=this._document.body;Me.style.visibility="hidden",Me.style.fontFamily=he,Me.style.fontSize=Ie,Me.style.margin="0",Me.style.padding="0",Er.appendChild(Me),rt.src=Nc,rt.width=1,rt.height=1,rt.style.margin="0",rt.style.padding="0",rt.style.verticalAlign="baseline",jt.style.fontFamily=he,jt.style.fontSize=Ie,jt.style.margin="0",jt.style.padding="0",jt.appendChild(this._document.createTextNode(_c)),Me.appendChild(jt),Me.appendChild(rt);var Hr=rt.offsetTop-jt.offsetTop+2;Me.removeChild(jt),Me.appendChild(this._document.createTextNode(_c)),Me.style.lineHeight="normal",rt.style.verticalAlign="super";var qr=rt.offsetTop-Me.offsetTop+2;return Er.removeChild(Me),{baseline:Hr,middle:qr}},ot.prototype.getMetrics=function(he,Ie){var Me=he+" "+Ie;return typeof this._data[Me]=="undefined"&&(this._data[Me]=this.parseMetrics(he,Ie)),this._data[Me]},ot}(),Oc=function(){function ot(he,Ie){this.context=he,this.options=Ie}return ot}(),Rc=1e4,Mc=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt._activeEffects=[],rt.canvas=Me.canvas?Me.canvas:document.createElement("canvas"),rt.ctx=rt.canvas.getContext("2d"),Me.canvas||(rt.canvas.width=Math.floor(Me.width*Me.scale),rt.canvas.height=Math.floor(Me.height*Me.scale),rt.canvas.style.width=Me.width+"px",rt.canvas.style.height=Me.height+"px"),rt.fontMetrics=new Dc(document),rt.ctx.scale(rt.options.scale,rt.options.scale),rt.ctx.translate(-Me.x,-Me.y),rt.ctx.textBaseline="bottom",rt._activeEffects=[],rt.context.logger.debug("Canvas renderer initialized ("+Me.width+"x"+Me.height+") with scale "+Me.scale),rt}return he.prototype.applyEffects=function(Ie){for(var Me=this;this._activeEffects.length;)this.popEffect();Ie.forEach(function(rt){return Me.applyEffect(rt)})},he.prototype.applyEffect=function(Ie){this.ctx.save(),Ec(Ie)&&(this.ctx.globalAlpha=Ie.opacity),Sc(Ie)&&(this.ctx.translate(Ie.offsetX,Ie.offsetY),this.ctx.transform(Ie.matrix[0],Ie.matrix[1],Ie.matrix[2],Ie.matrix[3],Ie.matrix[4],Ie.matrix[5]),this.ctx.translate(-Ie.offsetX,-Ie.offsetY)),fc(Ie)&&(this.path(Ie.path),this.ctx.clip()),this._activeEffects.push(Ie)},he.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},he.prototype.renderStack=function(Ie){return g(this,void 0,void 0,function(){var Me;return S(this,function(rt){switch(rt.label){case 0:return Me=Ie.element.container.styles,Me.isVisible()?[4,this.renderStackContent(Ie)]:[3,2];case 1:rt.sent(),rt.label=2;case 2:return[2]}})})},he.prototype.renderNode=function(Ie){return g(this,void 0,void 0,function(){return S(this,function(Me){switch(Me.label){case 0:if(za(Ie.container.flags,16))debugger;return Ie.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ie)]:[3,3];case 1:return Me.sent(),[4,this.renderNodeContent(Ie)];case 2:Me.sent(),Me.label=3;case 3:return[2]}})})},he.prototype.renderTextWithLetterSpacing=function(Ie,Me,rt){var jt=this;if(Me===0)this.ctx.fillText(Ie.text,Ie.bounds.left,Ie.bounds.top+rt);else{var Er=Rl(Ie.text);Er.reduce(function(Hr,qr){return jt.ctx.fillText(qr,Hr,Ie.bounds.top+rt),Hr+jt.ctx.measureText(qr).width},Ie.bounds.left)}},he.prototype.createFontStyle=function(Ie){var Me=Ie.fontVariant.filter(function(Er){return Er==="normal"||Er==="small-caps"}).join(""),rt=Ie.fontFamily.join(", "),jt=_t(Ie.fontSize)?""+Ie.fontSize.number+Ie.fontSize.unit:Ie.fontSize.number+"px";return[[Ie.fontStyle,Me,Ie.fontWeight,jt,rt].join(" "),rt,jt]},he.prototype.renderTextNode=function(Ie,Me){return g(this,void 0,void 0,function(){var rt,jt,Er,Hr,qr,hn,ai,Qn,ui=this;return S(this,function(ha){return rt=this.createFontStyle(Me),jt=rt[0],Er=rt[1],Hr=rt[2],this.ctx.font=jt,this.ctx.direction=Me.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",qr=this.fontMetrics.getMetrics(Er,Hr),hn=qr.baseline,ai=qr.middle,Qn=Me.paintOrder,Ie.textBounds.forEach(function(fa){Qn.forEach(function(_a){switch(_a){case Wo.FILL:ui.ctx.fillStyle=fr(Me.color),ui.renderTextWithLetterSpacing(fa,Me.letterSpacing,hn);var co=Me.textShadow;co.length&&fa.text.trim().length&&(co.slice(0).reverse().forEach(function(Qa){ui.ctx.shadowColor=fr(Qa.color),ui.ctx.shadowOffsetX=Qa.offsetX.number*ui.options.scale,ui.ctx.shadowOffsetY=Qa.offsetY.number*ui.options.scale,ui.ctx.shadowBlur=Qa.blur.number,ui.renderTextWithLetterSpacing(fa,Me.letterSpacing,hn)}),ui.ctx.shadowColor="",ui.ctx.shadowOffsetX=0,ui.ctx.shadowOffsetY=0,ui.ctx.shadowBlur=0),Me.textDecorationLine.length&&(ui.ctx.fillStyle=fr(Me.textDecorationColor||Me.color),Me.textDecorationLine.forEach(function(Qa){switch(Qa){case 1:ui.ctx.fillRect(fa.bounds.left,Math.round(fa.bounds.top+hn),fa.bounds.width,1);break;case 2:ui.ctx.fillRect(fa.bounds.left,Math.round(fa.bounds.top),fa.bounds.width,1);break;case 3:ui.ctx.fillRect(fa.bounds.left,Math.ceil(fa.bounds.top+ai),fa.bounds.width,1);break}}));break;case Wo.STROKE:Me.webkitTextStrokeWidth&&fa.text.trim().length&&(ui.ctx.strokeStyle=fr(Me.webkitTextStrokeColor),ui.ctx.lineWidth=Me.webkitTextStrokeWidth,ui.ctx.lineJoin=window.chrome?"miter":"round",ui.ctx.strokeText(fa.text,fa.bounds.left,fa.bounds.top+hn)),ui.ctx.strokeStyle="",ui.ctx.lineWidth=0,ui.ctx.lineJoin="miter";break}})}),[2]})})},he.prototype.renderReplacedElement=function(Ie,Me,rt){if(rt&&Ie.intrinsicWidth>0&&Ie.intrinsicHeight>0){var jt=Kl(Ie),Er=Nu(Me);this.path(Er),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(rt,0,0,Ie.intrinsicWidth,Ie.intrinsicHeight,jt.left,jt.top,jt.width,jt.height),this.ctx.restore()}},he.prototype.renderNodeContent=function(Ie){return g(this,void 0,void 0,function(){var Me,rt,jt,Er,Hr,qr,hn,hn,ai,Qn,ui,ha,fa,_a,co,Qa,Wa,zo,rs,hn,ko,fa,Qa;return S(this,function(ja){switch(ja.label){case 0:this.applyEffects(Ie.getEffects(4)),Me=Ie.container,rt=Ie.curves,jt=Me.styles,Er=0,Hr=Me.textNodes,ja.label=1;case 1:return Er<Hr.length?(qr=Hr[Er],[4,this.renderTextNode(qr,jt)]):[3,4];case 2:ja.sent(),ja.label=3;case 3:return Er++,[3,1];case 4:if(!(Me instanceof pu))return[3,8];ja.label=5;case 5:return ja.trys.push([5,7,,8]),[4,this.context.cache.match(Me.src)];case 6:return hn=ja.sent(),this.renderReplacedElement(Me,rt,hn),[3,8];case 7:return ja.sent(),this.context.logger.error("Error loading image "+Me.src),[3,8];case 8:if(Me instanceof Tl&&this.renderReplacedElement(Me,rt,Me.canvas),!(Me instanceof Il))return[3,12];ja.label=9;case 9:return ja.trys.push([9,11,,12]),[4,this.context.cache.match(Me.svg)];case 10:return hn=ja.sent(),this.renderReplacedElement(Me,rt,hn),[3,12];case 11:return ja.sent(),this.context.logger.error("Error loading svg "+Me.svg.substring(0,255)),[3,12];case 12:return Me instanceof Lu&&Me.tree?(ai=new he(this.context,{scale:this.options.scale,backgroundColor:Me.backgroundColor,x:0,y:0,width:Me.width,height:Me.height}),[4,ai.render(Me.tree)]):[3,14];case 13:Qn=ja.sent(),Me.width&&Me.height&&this.ctx.drawImage(Qn,0,0,Me.width,Me.height,Me.bounds.left,Me.bounds.top,Me.bounds.width,Me.bounds.height),ja.label=14;case 14:if(Me instanceof au&&(ui=Math.min(Me.bounds.width,Me.bounds.height),Me.type===Xl?Me.checked&&(this.ctx.save(),this.path([new wa(Me.bounds.left+ui*.39363,Me.bounds.top+ui*.79),new wa(Me.bounds.left+ui*.16,Me.bounds.top+ui*.5549),new wa(Me.bounds.left+ui*.27347,Me.bounds.top+ui*.44071),new wa(Me.bounds.left+ui*.39694,Me.bounds.top+ui*.5649),new wa(Me.bounds.left+ui*.72983,Me.bounds.top+ui*.23),new wa(Me.bounds.left+ui*.84,Me.bounds.top+ui*.34085),new wa(Me.bounds.left+ui*.39363,Me.bounds.top+ui*.79)]),this.ctx.fillStyle=fr(Ou),this.ctx.fill(),this.ctx.restore()):Me.type===mu&&(Me.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Me.bounds.left+ui/2,Me.bounds.top+ui/2,ui/4,0,Math.PI*2,!0),this.ctx.fillStyle=fr(Ou),this.ctx.fill(),this.ctx.restore()))),Pc(Me)&&Me.value.length){ha=this.createFontStyle(jt),fa=ha[0],_a=ha[1],co=this.fontMetrics.getMetrics(fa,_a).baseline,this.ctx.font=fa,this.ctx.fillStyle=fr(jt.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Bc(Me.styles.textAlign),Qa=Kl(Me),Wa=0;switch(Me.styles.textAlign){case Go.CENTER:Wa+=Qa.width/2;break;case Go.RIGHT:Wa+=Qa.width;break}zo=Qa.add(Wa,0,0,-Qa.height/2+1),this.ctx.save(),this.path([new wa(Qa.left,Qa.top),new wa(Qa.left+Qa.width,Qa.top),new wa(Qa.left+Qa.width,Qa.top+Qa.height),new wa(Qa.left,Qa.top+Qa.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new rl(Me.value,zo),jt.letterSpacing,co),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!za(Me.styles.display,2048))return[3,20];if(!(Me.styles.listStyleImage!==null))return[3,19];if(rs=Me.styles.listStyleImage,!(rs.type===la.URL))return[3,18];hn=void 0,ko=rs.url,ja.label=15;case 15:return ja.trys.push([15,17,,18]),[4,this.context.cache.match(ko)];case 16:return hn=ja.sent(),this.ctx.drawImage(hn,Me.bounds.left-(hn.width+10),Me.bounds.top),[3,18];case 17:return ja.sent(),this.context.logger.error("Error loading list-style-image "+ko),[3,18];case 18:return[3,20];case 19:Ie.listValue&&Me.styles.listStyleType!==bi.NONE&&(fa=this.createFontStyle(jt)[0],this.ctx.font=fa,this.ctx.fillStyle=fr(jt.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Qa=new h(Me.bounds.left,Me.bounds.top+Zn(Me.styles.paddingTop,Me.bounds.width),Me.bounds.width,es(jt.lineHeight,jt.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new rl(Ie.listValue,Qa),jt.letterSpacing,es(jt.lineHeight,jt.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ja.label=20;case 20:return[2]}})})},he.prototype.renderStackContent=function(Ie){return g(this,void 0,void 0,function(){var Me,rt,jt,Er,Hr,jt,qr,hn,jt,ai,Qn,jt,ui,ha,jt,fa,_a,jt,co,Qa,jt;return S(this,function(Wa){switch(Wa.label){case 0:if(za(Ie.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ie.element)];case 1:Wa.sent(),Me=0,rt=Ie.negativeZIndex,Wa.label=2;case 2:return Me<rt.length?(jt=rt[Me],[4,this.renderStack(jt)]):[3,5];case 3:Wa.sent(),Wa.label=4;case 4:return Me++,[3,2];case 5:return[4,this.renderNodeContent(Ie.element)];case 6:Wa.sent(),Er=0,Hr=Ie.nonInlineLevel,Wa.label=7;case 7:return Er<Hr.length?(jt=Hr[Er],[4,this.renderNode(jt)]):[3,10];case 8:Wa.sent(),Wa.label=9;case 9:return Er++,[3,7];case 10:qr=0,hn=Ie.nonPositionedFloats,Wa.label=11;case 11:return qr<hn.length?(jt=hn[qr],[4,this.renderStack(jt)]):[3,14];case 12:Wa.sent(),Wa.label=13;case 13:return qr++,[3,11];case 14:ai=0,Qn=Ie.nonPositionedInlineLevel,Wa.label=15;case 15:return ai<Qn.length?(jt=Qn[ai],[4,this.renderStack(jt)]):[3,18];case 16:Wa.sent(),Wa.label=17;case 17:return ai++,[3,15];case 18:ui=0,ha=Ie.inlineLevel,Wa.label=19;case 19:return ui<ha.length?(jt=ha[ui],[4,this.renderNode(jt)]):[3,22];case 20:Wa.sent(),Wa.label=21;case 21:return ui++,[3,19];case 22:fa=0,_a=Ie.zeroOrAutoZIndexOrTransformedOrOpacity,Wa.label=23;case 23:return fa<_a.length?(jt=_a[fa],[4,this.renderStack(jt)]):[3,26];case 24:Wa.sent(),Wa.label=25;case 25:return fa++,[3,23];case 26:co=0,Qa=Ie.positiveZIndex,Wa.label=27;case 27:return co<Qa.length?(jt=Qa[co],[4,this.renderStack(jt)]):[3,30];case 28:Wa.sent(),Wa.label=29;case 29:return co++,[3,27];case 30:return[2]}})})},he.prototype.mask=function(Ie){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(Ie.slice(0).reverse()),this.ctx.closePath()},he.prototype.path=function(Ie){this.ctx.beginPath(),this.formatPath(Ie),this.ctx.closePath()},he.prototype.formatPath=function(Ie){var Me=this;Ie.forEach(function(rt,jt){var Er=ls(rt)?rt.start:rt;jt===0?Me.ctx.moveTo(Er.x,Er.y):Me.ctx.lineTo(Er.x,Er.y),ls(rt)&&Me.ctx.bezierCurveTo(rt.startControl.x,rt.startControl.y,rt.endControl.x,rt.endControl.y,rt.end.x,rt.end.y)})},he.prototype.renderRepeat=function(Ie,Me,rt,jt){this.path(Ie),this.ctx.fillStyle=Me,this.ctx.translate(rt,jt),this.ctx.fill(),this.ctx.translate(-rt,-jt)},he.prototype.resizeImage=function(Ie,Me,rt){var jt;if(Ie.width===Me&&Ie.height===rt)return Ie;var Er=(jt=this.canvas.ownerDocument)!==null&&jt!==void 0?jt:document,Hr=Er.createElement("canvas");Hr.width=Math.max(1,Me),Hr.height=Math.max(1,rt);var qr=Hr.getContext("2d");return qr.drawImage(Ie,0,0,Ie.width,Ie.height,0,0,Me,rt),Hr},he.prototype.renderBackgroundImage=function(Ie){return g(this,void 0,void 0,function(){var Me,rt,jt,Er,Hr,qr;return S(this,function(hn){switch(hn.label){case 0:Me=Ie.styles.backgroundImage.length-1,rt=function(Qn){var ui,ha,fa,_a,co,Qa,Wa,zo,rs,ko,_a,co,Qa,Wa,zo,ja,ss,us,Bo,Pl,Jl,kl,fl,ic,rs,yu,_a,Yu,Qu,Wa,zo,Ju,co,Qa,ac,bu,Zu,oc,sc,Mu,lc,Pu;return S(this,function(hc){switch(hc.label){case 0:if(!(Qn.type===la.URL))return[3,5];ui=void 0,ha=Qn.url,hc.label=1;case 1:return hc.trys.push([1,3,,4]),[4,jt.context.cache.match(ha)];case 2:return ui=hc.sent(),[3,4];case 3:return hc.sent(),jt.context.logger.error("Error loading background-image "+ha),[3,4];case 4:return ui&&(fa=cc(Ie,Me,[ui.width,ui.height,ui.width/ui.height]),_a=fa[0],co=fa[1],Qa=fa[2],Wa=fa[3],zo=fa[4],rs=jt.ctx.createPattern(jt.resizeImage(ui,Wa,zo),"repeat"),jt.renderRepeat(_a,rs,co,Qa)),[3,6];case 5:Ha(Qn)?(ko=cc(Ie,Me,[null,null,null]),_a=ko[0],co=ko[1],Qa=ko[2],Wa=ko[3],zo=ko[4],ja=Ti(Qn.angle,Wa,zo),ss=ja[0],us=ja[1],Bo=ja[2],Pl=ja[3],Jl=ja[4],kl=document.createElement("canvas"),kl.width=Wa,kl.height=zo,fl=kl.getContext("2d"),ic=fl.createLinearGradient(us,Pl,Bo,Jl),Xn(Qn.stops,ss).forEach(function(bc){return ic.addColorStop(bc.stop,fr(bc.color))}),fl.fillStyle=ic,fl.fillRect(0,0,Wa,zo),Wa>0&&zo>0&&(rs=jt.ctx.createPattern(kl,"repeat"),jt.renderRepeat(_a,rs,co,Qa))):ka(Qn)&&(yu=cc(Ie,Me,[null,null,null]),_a=yu[0],Yu=yu[1],Qu=yu[2],Wa=yu[3],zo=yu[4],Ju=Qn.position.length===0?[_n]:Qn.position,co=Zn(Ju[0],Wa),Qa=Zn(Ju[Ju.length-1],zo),ac=da(Qn,co,Qa,Wa,zo),bu=ac[0],Zu=ac[1],bu>0&&Zu>0&&(oc=jt.ctx.createRadialGradient(Yu+co,Qu+Qa,0,Yu+co,Qu+Qa,bu),Xn(Qn.stops,bu*2).forEach(function(bc){return oc.addColorStop(bc.stop,fr(bc.color))}),jt.path(_a),jt.ctx.fillStyle=oc,bu!==Zu?(sc=Ie.bounds.left+.5*Ie.bounds.width,Mu=Ie.bounds.top+.5*Ie.bounds.height,lc=Zu/bu,Pu=1/lc,jt.ctx.save(),jt.ctx.translate(sc,Mu),jt.ctx.transform(1,0,0,lc,0,0),jt.ctx.translate(-sc,-Mu),jt.ctx.fillRect(Yu,Pu*(Qu-Mu)+Mu,Wa,zo*Pu),jt.ctx.restore()):jt.ctx.fill())),hc.label=6;case 6:return Me--,[2]}})},jt=this,Er=0,Hr=Ie.styles.backgroundImage.slice(0).reverse(),hn.label=1;case 1:return Er<Hr.length?(qr=Hr[Er],[5,rt(qr)]):[3,4];case 2:hn.sent(),hn.label=3;case 3:return Er++,[3,1];case 4:return[2]}})})},he.prototype.renderSolidBorder=function(Ie,Me,rt){return g(this,void 0,void 0,function(){return S(this,function(jt){return this.path(gc(rt,Me)),this.ctx.fillStyle=fr(Ie),this.ctx.fill(),[2]})})},he.prototype.renderDoubleBorder=function(Ie,Me,rt,jt){return g(this,void 0,void 0,function(){var Er,Hr;return S(this,function(qr){switch(qr.label){case 0:return Me<3?[4,this.renderSolidBorder(Ie,rt,jt)]:[3,2];case 1:return qr.sent(),[2];case 2:return Er=Ic(jt,rt),this.path(Er),this.ctx.fillStyle=fr(Ie),this.ctx.fill(),Hr=nc(jt,rt),this.path(Hr),this.ctx.fill(),[2]}})})},he.prototype.renderNodeBackgroundAndBorders=function(Ie){return g(this,void 0,void 0,function(){var Me,rt,jt,Er,Hr,qr,hn,ai,Qn=this;return S(this,function(ui){switch(ui.label){case 0:return this.applyEffects(Ie.getEffects(2)),Me=Ie.container.styles,rt=!Hi(Me.backgroundColor)||Me.backgroundImage.length,jt=[{style:Me.borderTopStyle,color:Me.borderTopColor,width:Me.borderTopWidth},{style:Me.borderRightStyle,color:Me.borderRightColor,width:Me.borderRightWidth},{style:Me.borderBottomStyle,color:Me.borderBottomColor,width:Me.borderBottomWidth},{style:Me.borderLeftStyle,color:Me.borderLeftColor,width:Me.borderLeftWidth}],Er=kc(dc(Me.backgroundClip,0),Ie.curves),rt||Me.boxShadow.length?(this.ctx.save(),this.path(Er),this.ctx.clip(),Hi(Me.backgroundColor)||(this.ctx.fillStyle=fr(Me.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ie.container)]):[3,2];case 1:ui.sent(),this.ctx.restore(),Me.boxShadow.slice(0).reverse().forEach(function(ha){Qn.ctx.save();var fa=rc(Ie.curves),_a=ha.inset?0:Rc,co=tc(fa,-_a+(ha.inset?1:-1)*ha.spread.number,(ha.inset?1:-1)*ha.spread.number,ha.spread.number*(ha.inset?-2:2),ha.spread.number*(ha.inset?-2:2));ha.inset?(Qn.path(fa),Qn.ctx.clip(),Qn.mask(co)):(Qn.mask(fa),Qn.ctx.clip(),Qn.path(co)),Qn.ctx.shadowOffsetX=ha.offsetX.number+_a,Qn.ctx.shadowOffsetY=ha.offsetY.number,Qn.ctx.shadowColor=fr(ha.color),Qn.ctx.shadowBlur=ha.blur.number,Qn.ctx.fillStyle=ha.inset?fr(ha.color):"rgba(0,0,0,1)",Qn.ctx.fill(),Qn.ctx.restore()}),ui.label=2;case 2:Hr=0,qr=0,hn=jt,ui.label=3;case 3:return qr<hn.length?(ai=hn[qr],ai.style!==pa.NONE&&!Hi(ai.color)&&ai.width>0?ai.style===pa.DASHED?[4,this.renderDashedDottedBorder(ai.color,ai.width,Hr,Ie.curves,pa.DASHED)]:[3,5]:[3,11]):[3,13];case 4:return ui.sent(),[3,11];case 5:return ai.style===pa.DOTTED?[4,this.renderDashedDottedBorder(ai.color,ai.width,Hr,Ie.curves,pa.DOTTED)]:[3,7];case 6:return ui.sent(),[3,11];case 7:return ai.style===pa.DOUBLE?[4,this.renderDoubleBorder(ai.color,ai.width,Hr,Ie.curves)]:[3,9];case 8:return ui.sent(),[3,11];case 9:return[4,this.renderSolidBorder(ai.color,Hr,Ie.curves)];case 10:ui.sent(),ui.label=11;case 11:Hr++,ui.label=12;case 12:return qr++,[3,3];case 13:return[2]}})})},he.prototype.renderDashedDottedBorder=function(Ie,Me,rt,jt,Er){return g(this,void 0,void 0,function(){var Hr,qr,hn,ai,Qn,ui,ha,fa,_a,co,Qa,Wa,zo,rs,ko,ja,ko,ja;return S(this,function(ss){return this.ctx.save(),Hr=vc(jt,rt),qr=gc(jt,rt),Er===pa.DASHED&&(this.path(qr),this.ctx.clip()),ls(qr[0])?(hn=qr[0].start.x,ai=qr[0].start.y):(hn=qr[0].x,ai=qr[0].y),ls(qr[1])?(Qn=qr[1].end.x,ui=qr[1].end.y):(Qn=qr[1].x,ui=qr[1].y),rt===0||rt===2?ha=Math.abs(hn-Qn):ha=Math.abs(ai-ui),this.ctx.beginPath(),Er===pa.DOTTED?this.formatPath(Hr):this.formatPath(qr.slice(0,2)),fa=Me<3?Me*3:Me*2,_a=Me<3?Me*2:Me,Er===pa.DOTTED&&(fa=Me,_a=Me),co=!0,ha<=fa*2?co=!1:ha<=fa*2+_a?(Qa=ha/(2*fa+_a),fa*=Qa,_a*=Qa):(Wa=Math.floor((ha+_a)/(fa+_a)),zo=(ha-Wa*fa)/(Wa-1),rs=(ha-(Wa+1)*fa)/Wa,_a=rs<=0||Math.abs(_a-zo)<Math.abs(_a-rs)?zo:rs),co&&(Er===pa.DOTTED?this.ctx.setLineDash([0,fa+_a]):this.ctx.setLineDash([fa,_a])),Er===pa.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=Me):this.ctx.lineWidth=Me*2+1.1,this.ctx.strokeStyle=fr(Ie),this.ctx.stroke(),this.ctx.setLineDash([]),Er===pa.DASHED&&(ls(qr[0])&&(ko=qr[3],ja=qr[0],this.ctx.beginPath(),this.formatPath([new wa(ko.end.x,ko.end.y),new wa(ja.start.x,ja.start.y)]),this.ctx.stroke()),ls(qr[1])&&(ko=qr[1],ja=qr[2],this.ctx.beginPath(),this.formatPath([new wa(ko.end.x,ko.end.y),new wa(ja.start.x,ja.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},he.prototype.render=function(Ie){return g(this,void 0,void 0,function(){var Me;return S(this,function(rt){switch(rt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=fr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Me=Tc(Ie),[4,this.renderStack(Me)];case 1:return rt.sent(),this.applyEffects([]),[2,this.canvas]}})})},he}(Oc),Pc=function(he){return he instanceof Yl||he instanceof gu?!0:he instanceof au&&he.type!==mu&&he.type!==Xl},kc=function(he,Ie){switch(he){case dn.BORDER_BOX:return rc(Ie);case dn.CONTENT_BOX:return xc(Ie);case dn.PADDING_BOX:default:return Nu(Ie)}},Bc=function(he){switch(he){case Go.CENTER:return"center";case Go.RIGHT:return"right";case Go.LEFT:default:return"left"}},Fc=function(ot){E(he,ot);function he(Ie,Me){var rt=ot.call(this,Ie,Me)||this;return rt.canvas=Me.canvas?Me.canvas:document.createElement("canvas"),rt.ctx=rt.canvas.getContext("2d"),rt.options=Me,rt.canvas.width=Math.floor(Me.width*Me.scale),rt.canvas.height=Math.floor(Me.height*Me.scale),rt.canvas.style.width=Me.width+"px",rt.canvas.style.height=Me.height+"px",rt.ctx.scale(rt.options.scale,rt.options.scale),rt.ctx.translate(-Me.x,-Me.y),rt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Me.width+"x"+Me.height+" at "+Me.x+","+Me.y+") with scale "+Me.scale),rt}return he.prototype.render=function(Ie){return g(this,void 0,void 0,function(){var Me,rt;return S(this,function(jt){switch(jt.label){case 0:return Me=ru(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ie),[4,Uc(Me)];case 1:return rt=jt.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=fr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(rt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},he}(Oc),Uc=function(he){return new Promise(function(Ie,Me){var rt=new Image;rt.onload=function(){Ie(rt)},rt.onerror=Me,rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},jc=function(){function ot(he){var Ie=he.id,Me=he.enabled;this.id=Ie,this.enabled=Me,this.start=Date.now()}return ot.prototype.debug=function(){for(var he=[],Ie=0;Ie<arguments.length;Ie++)he[Ie]=arguments[Ie];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,m([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},ot.prototype.getTime=function(){return Date.now()-this.start},ot.prototype.info=function(){for(var he=[],Ie=0;Ie<arguments.length;Ie++)he[Ie]=arguments[Ie];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,m([this.id,this.getTime()+"ms"],he)))},ot.prototype.warn=function(){for(var he=[],Ie=0;Ie<arguments.length;Ie++)he[Ie]=arguments[Ie];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,m([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},ot.prototype.error=function(){for(var he=[],Ie=0;Ie<arguments.length;Ie++)he[Ie]=arguments[Ie];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,m([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},ot.instances={},ot}(),Hc=function(){function ot(he,Ie){var Me;this.windowBounds=Ie,this.instanceName="#"+ot.instanceCount++,this.logger=new jc({id:this.instanceName,enabled:he.logging}),this.cache=(Me=he.cache)!==null&&Me!==void 0?Me:new ll(this,he)}return ot.instanceCount=1,ot}(),Kc=function(he,Ie){return Ie===void 0&&(Ie={}),Wc(he,Ie)};typeof window!="undefined"&&Ss.setContext(window);var Wc=function(he,Ie){return g(void 0,void 0,void 0,function(){var Me,rt,jt,Er,Hr,qr,hn,ai,Qn,ui,ha,fa,_a,co,Qa,Wa,zo,rs,ko,ja,ss,us,ss,Bo,Pl,Jl,kl,fl,ic,yu,Yu,Qu,Ju,ac,bu,Zu,oc,sc,Mu,lc;return S(this,function(Pu){switch(Pu.label){case 0:if(!he||typeof he!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Me=he.ownerDocument,!Me)throw new Error("Element is not attached to a Document");if(rt=Me.defaultView,!rt)throw new Error("Document is not attached to a Window");return jt={allowTaint:(Bo=Ie.allowTaint)!==null&&Bo!==void 0?Bo:!1,imageTimeout:(Pl=Ie.imageTimeout)!==null&&Pl!==void 0?Pl:15e3,proxy:Ie.proxy,useCORS:(Jl=Ie.useCORS)!==null&&Jl!==void 0?Jl:!1},Er=T({logging:(kl=Ie.logging)!==null&&kl!==void 0?kl:!0,cache:Ie.cache},jt),Hr={windowWidth:(fl=Ie.windowWidth)!==null&&fl!==void 0?fl:rt.innerWidth,windowHeight:(ic=Ie.windowHeight)!==null&&ic!==void 0?ic:rt.innerHeight,scrollX:(yu=Ie.scrollX)!==null&&yu!==void 0?yu:rt.pageXOffset,scrollY:(Yu=Ie.scrollY)!==null&&Yu!==void 0?Yu:rt.pageYOffset},qr=new h(Hr.scrollX,Hr.scrollY,Hr.windowWidth,Hr.windowHeight),hn=new Hc(Er,qr),ai=(Qu=Ie.foreignObjectRendering)!==null&&Qu!==void 0?Qu:!1,Qn={allowTaint:(Ju=Ie.allowTaint)!==null&&Ju!==void 0?Ju:!1,onclone:Ie.onclone,ignoreElements:Ie.ignoreElements,inlineImages:ai,copyStyles:ai},hn.logger.debug("Starting document clone with size "+qr.width+"x"+qr.height+" scrolled to "+-qr.left+","+-qr.top),ui=new pn(hn,he,Qn),ha=ui.clonedReferenceElement,ha?[4,ui.toIFrame(Me,qr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return fa=Pu.sent(),_a=Nt(ha)||Et(ha)?a(ha.ownerDocument):c(hn,ha),co=_a.width,Qa=_a.height,Wa=_a.left,zo=_a.top,rs=zc(hn,ha,Ie.backgroundColor),ko={canvas:Ie.canvas,backgroundColor:rs,scale:(bu=(ac=Ie.scale)!==null&&ac!==void 0?ac:rt.devicePixelRatio)!==null&&bu!==void 0?bu:1,x:((Zu=Ie.x)!==null&&Zu!==void 0?Zu:0)+Wa,y:((oc=Ie.y)!==null&&oc!==void 0?oc:0)+zo,width:(sc=Ie.width)!==null&&sc!==void 0?sc:Math.ceil(co),height:(Mu=Ie.height)!==null&&Mu!==void 0?Mu:Math.ceil(Qa)},ai?(hn.logger.debug("Document cloned, using foreign object rendering"),ss=new Fc(hn,ko),[4,ss.render(ha)]):[3,3];case 2:return ja=Pu.sent(),[3,5];case 3:return hn.logger.debug("Document cloned, element located at "+Wa+","+zo+" with size "+co+"x"+Qa+" using computed rendering"),hn.logger.debug("Starting DOM parsing"),us=Ue(hn,ha),rs===us.styles.backgroundColor&&(us.styles.backgroundColor=Ur.TRANSPARENT),hn.logger.debug("Starting renderer for element at "+ko.x+","+ko.y+" with size "+ko.width+"x"+ko.height),ss=new Mc(hn,ko),[4,ss.render(us)];case 4:ja=Pu.sent(),Pu.label=5;case 5:return((lc=Ie.removeContainer)!==null&&lc!==void 0?lc:!0)&&(pn.destroy(fa)||hn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),hn.logger.debug("Finished rendering"),[2,ja]}})})},zc=function(he,Ie,Me){var rt=Ie.ownerDocument,jt=rt.documentElement?jr(he,getComputedStyle(rt.documentElement).backgroundColor):Ur.TRANSPARENT,Er=rt.body?jr(he,getComputedStyle(rt.body).backgroundColor):Ur.TRANSPARENT,Hr=typeof Me=="string"?jr(he,Me):Me===null?Ur.TRANSPARENT:4294967295;return Ie===rt.documentElement?Hi(jt)?Hi(Er)?Hr:Er:jt:Hr};return Kc})},wPlo:function(H,k,d){"use strict";d.d(k,"a",function(){return I});var I="RC_SELECT_INTERNAL_PROPS_MARK"},wXyp:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("ygfH")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="CheckOutlined";var c=g.forwardRef(h);k.default=c},wYyv:function(H,k,d){"use strict";var I=d("GmyR"),E=d("47nA"),T=function(m,h,c){var a=h<0?m.length+h:h;if(a>=0&&a<m.length){var r=c<0?m.length+c:c,i=m.splice(h,1),n=E(i,1),t=n[0];m.splice(r,0,t)}},g=function(m,h,c){return m=I(m),T(m,h,c),m};H.exports=g,H.exports.mutate=T},wZgz:function(H,k,d){(function(I,E,T){H.exports=k=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.BlockCipher,S=E.algo,m=[],h=[],c=[],a=[],r=[],i=[],n=[],t=[],s=[],e=[];(function(){for(var u=[],f=0;f<256;f++)f<128?u[f]=f<<1:u[f]=f<<1^283;for(var p=0,v=0,f=0;f<256;f++){var A=v^v<<1^v<<2^v<<3^v<<4;A=A>>>8^A&255^99,m[p]=A,h[A]=p;var y=u[p],x=u[y],C=u[x],w=u[A]*257^A*16843008;c[p]=w<<24|w>>>8,a[p]=w<<16|w>>>16,r[p]=w<<8|w>>>24,i[p]=w;var w=C*16843009^x*65537^y*257^p*16843008;n[A]=w<<24|w>>>8,t[A]=w<<16|w>>>16,s[A]=w<<8|w>>>24,e[A]=w,p?(p=y^u[u[u[C^y]]],v^=u[u[v]]):p=v=1}})();var o=[0,1,2,4,8,16,32,64,128,27,54],l=S.AES=g.extend({_doReset:function(){var f;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var p=this._keyPriorReset=this._key,v=p.words,A=p.sigBytes/4,y=this._nRounds=A+6,x=(y+1)*4,C=this._keySchedule=[],w=0;w<x;w++)w<A?C[w]=v[w]:(f=C[w-1],w%A?A>6&&w%A==4&&(f=m[f>>>24]<<24|m[f>>>16&255]<<16|m[f>>>8&255]<<8|m[f&255]):(f=f<<8|f>>>24,f=m[f>>>24]<<24|m[f>>>16&255]<<16|m[f>>>8&255]<<8|m[f&255],f^=o[w/A|0]<<24),C[w]=C[w-A]^f);for(var b=this._invKeySchedule=[],_=0;_<x;_++){var w=x-_;if(_%4)var f=C[w];else var f=C[w-4];_<4||w<=4?b[_]=f:b[_]=n[m[f>>>24]]^t[m[f>>>16&255]]^s[m[f>>>8&255]]^e[m[f&255]]}},encryptBlock:function(f,p){this._doCryptBlock(f,p,this._keySchedule,c,a,r,i,m)},decryptBlock:function(f,p){var v=f[p+1];f[p+1]=f[p+3],f[p+3]=v,this._doCryptBlock(f,p,this._invKeySchedule,n,t,s,e,h);var v=f[p+1];f[p+1]=f[p+3],f[p+3]=v},_doCryptBlock:function(f,p,v,A,y,x,C,w){for(var b=this._nRounds,_=f[p]^v[0],O=f[p+1]^v[1],L=f[p+2]^v[2],D=f[p+3]^v[3],N=4,M=1;M<b;M++){var F=A[_>>>24]^y[O>>>16&255]^x[L>>>8&255]^C[D&255]^v[N++],R=A[O>>>24]^y[L>>>16&255]^x[D>>>8&255]^C[_&255]^v[N++],j=A[L>>>24]^y[D>>>16&255]^x[_>>>8&255]^C[O&255]^v[N++],B=A[D>>>24]^y[_>>>16&255]^x[O>>>8&255]^C[L&255]^v[N++];_=F,O=R,L=j,D=B}var F=(w[_>>>24]<<24|w[O>>>16&255]<<16|w[L>>>8&255]<<8|w[D&255])^v[N++],R=(w[O>>>24]<<24|w[L>>>16&255]<<16|w[D>>>8&255]<<8|w[_&255])^v[N++],j=(w[L>>>24]<<24|w[D>>>16&255]<<16|w[_>>>8&255]<<8|w[O&255])^v[N++],B=(w[D>>>24]<<24|w[_>>>16&255]<<16|w[O>>>8&255]<<8|w[L&255])^v[N++];f[p]=F,f[p+1]=R,f[p+2]=j,f[p+3]=B},keySize:256/32});E.AES=g._createHelper(l)}(),I.AES})},wbyO:function(H,k,d){(function(I,E){H.exports=k=E(d("Ib8C"))})(this,function(I){return function(){var E=I,T=E.lib,g=T.WordArray,S=E.enc,m=S.Base64url={stringify:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=a.words,n=a.sigBytes,t=r?this._safe_map:this._map;a.clamp();for(var s=[],e=0;e<n;e+=3)for(var o=i[e>>>2]>>>24-e%4*8&255,l=i[e+1>>>2]>>>24-(e+1)%4*8&255,u=i[e+2>>>2]>>>24-(e+2)%4*8&255,f=o<<16|l<<8|u,p=0;p<4&&e+p*.75<n;p++)s.push(t.charAt(f>>>6*(3-p)&63));var v=t.charAt(64);if(v)for(;s.length%4;)s.push(v);return s.join("")},parse:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=a.length,n=r?this._safe_map:this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var s=0;s<n.length;s++)t[n.charCodeAt(s)]=s}var e=n.charAt(64);if(e){var o=a.indexOf(e);o!==-1&&(i=o)}return h(a,i,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function h(c,a,r){for(var i=[],n=0,t=0;t<a;t++)if(t%4){var s=r[c.charCodeAt(t-1)]<<t%4*2,e=r[c.charCodeAt(t)]>>>6-t%4*2,o=s|e;i[n>>>2]|=o<<24-n%4*8,n++}return g.create(i,n)}}(),I.enc.Base64url})},wgjA:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},whVF:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=d("lNSK"),E=T(d("1q3G"));function T(c){return c&&c.__esModule?c:{default:c}}function g(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function S(c,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function m(c,a,r){return a&&S(c.prototype,a),r&&S(c,r),c}var h=function(){function c(){g(this,c),this.strm=new E.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,I.deflateInit)(this.strm,this.windowBits)}return m(c,[{key:"deflate",value:function(r){this.strm.input=r,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 i=(0,I.deflate)(this.strm,I.Z_FULL_FLUSH),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(i<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var t=[n],s=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,I.deflate)(this.strm,I.Z_FULL_FLUSH),i<0)throw new Error("zlib deflate failed");var e=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);s+=e.length,t.push(e)}while(this.strm.avail_in>0);for(var o=new Uint8Array(s),l=0,u=0;u<t.length;u++)o.set(t[u],l),l+=t[u].length;n=o}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();k.default=h},wr5s:function(H,k,d){var I=d("IwbS"),E=I.extendShape,T=E({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(g,S){var m=S.cx,h=S.cy,c=Math.max(S.r0||0,0),a=Math.max(S.r,0),r=(a-c)*.5,i=c+r,n=S.startAngle,t=S.endAngle,s=S.clockwise,e=Math.cos(n),o=Math.sin(n),l=Math.cos(t),u=Math.sin(t),f=s?t-n<Math.PI*2:n-t<Math.PI*2;f&&(g.moveTo(e*c+m,o*c+h),g.arc(e*i+m,o*i+h,r,-Math.PI+n,n,!s)),g.arc(m,h,a,n,t,!s),g.moveTo(l*a+m,u*a+h),g.arc(l*i+m,u*i+h,r,t-Math.PI*2,t-Math.PI,!s),c!==0&&(g.arc(m,h,c,t,n,s),g.moveTo(e*c+m,u*c+h)),g.closePath()}});H.exports=T},wt3j:function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("/IIm"),g=d("EMyp"),S=g.layoutCovers,m=I.extendComponentView({type:"brush",init:function(c,a){this.ecModel=c,this.api=a,this.model,(this._brushController=new T(a.getZr())).on("brush",E.bind(this._onBrush,this)).mount()},render:function(c){return this.model=c,h.apply(this,arguments)},updateTransform:function(c,a){return S(a),h.apply(this,arguments)},updateView:h,dispose:function(){this._brushController.dispose()},_onBrush:function(c,a){var r=this.model.id;this.model.brushTargetManager.setOutputRanges(c,this.ecModel),(!a.isEnd||a.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:E.clone(c),$from:r}),a.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:E.clone(c),$from:r})}});function h(c,a,r,i){(!i||i.$from!==c.id)&&this._brushController.setPanels(c.brushTargetManager.makePanelOpts(r)).enableBrush(c.brushOption).updateCovers(c.areas.slice())}H.exports=m},wy8a:function(H,k,d){var I=d("KxBF");function E(T,g,S){var m=T.length;return S=S===void 0?m:S,!g&&S>=m?T:I(T,g,S)}H.exports=E},x3X8:function(H,k,d){var I=d("KxfA"),E=I.retrieveRawValue;function T(g,S){var m=g.mapDimension("defaultedLabel",!0),h=m.length;if(h===1)return E(g,S,m[0]);if(h){for(var c=[],a=0;a<m.length;a++){var r=E(g,S,m[a]);c.push(r)}return c.join(" ")}}k.getDefaultLabel=T},x54q:function(H,k,d){},x6Kt:function(H,k,d){var I=d("y+Vt"),E=d("VpOo"),T=d("nPnh"),g=T.subPixelOptimizeRect,S={},m=I.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(c,a){var r,i,n,t;this.subPixelOptimize?(g(S,a,this.style),r=S.x,i=S.y,n=S.width,t=S.height,S.r=a.r,a=S):(r=a.x,i=a.y,n=a.width,t=a.height),a.r?E.buildPath(c,a):c.rect(r,i,n,t),c.closePath();return}});H.exports=m},xGfz:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="PlusSquareOutlined";var h=k.a=E.forwardRef(m)},xKMd:function(H,k){function d(E,T){this.getAllNames=function(){var g=T();return g.mapArray(g.getName)},this.containName=function(g){var S=T();return S.indexOfName(g)>=0},this.indexOfName=function(g){var S=E();return S.indexOfName(g)},this.getItemVisual=function(g,S){var m=E();return m.getItemVisual(g,S)}}var I=d;H.exports=I},xO64:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I=E(d("8K/p"));function E(e){return e&&e.__esModule?e:{default:e}}function T(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(l){return typeof l}:T=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},T(e)}function g(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function S(e,o){for(var l=0;l<o.length;l++){var u=o[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,u.key,u)}}function m(e,o,l){return o&&S(e.prototype,o),l&&S(e,l),e}function h(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),o&&c(e,o)}function c(e,o){return c=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u},c(e,o)}function a(e){var o=n();return function(){var u=t(e),f;if(o){var p=t(this).constructor;f=Reflect.construct(u,arguments,p)}else f=u.apply(this,arguments);return r(this,f)}}function r(e,o){return o&&(T(o)==="object"||typeof o=="function")?o:i(e)}function i(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n(){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(e){return!1}}function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},t(e)}var s=function(e){h(l,e);var o=a(l);function l(){return g(this,l),o.apply(this,arguments)}return m(l,[{key:"_pngRect",value:function(f,p,v,A,y,x,C){var w=this._readData(y);return w===null?!1:(x.imageRect(f,p,v,A,"image/png",w),!0)}},{key:"_basicRect",value:function(f,p,v,A,y,x,C,w){throw new Error("BasicCompression received in TightPNG rect")}}]),l}(I.default);k.default=s},xOOu:function(H,k,d){(function(I,E){var T,T;/*!
|
|
|
|
|
|
JSZip v3.7.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/master/LICENSE.markdown.
|
|
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
|
https://github.com/nodeca/pako/blob/master/LICENSE
|
|
|
*/!function(g){H.exports=g()}(function(){return function g(S,m,h){function c(i,n){if(!m[i]){if(!S[i]){var t=typeof T=="function"&&T;if(!n&&t)return T(i,!0);if(a)return a(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var e=m[i]={exports:{}};S[i][0].call(e.exports,function(o){var l=S[i][1][o];return c(l||o)},e,e.exports,g,S,m,h)}return m[i].exports}for(var a=typeof T=="function"&&T,r=0;r<h.length;r++)c(h[r]);return c}({1:[function(g,S,m){"use strict";var h=g("./utils"),c=g("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.encode=function(r){for(var i,n,t,s,e,o,l,u=[],f=0,p=r.length,v=p,A=h.getTypeOf(r)!=="string";f<r.length;)v=p-f,t=A?(i=r[f++],n=f<p?r[f++]:0,f<p?r[f++]:0):(i=r.charCodeAt(f++),n=f<p?r.charCodeAt(f++):0,f<p?r.charCodeAt(f++):0),s=i>>2,e=(3&i)<<4|n>>4,o=1<v?(15&n)<<2|t>>6:64,l=2<v?63&t:64,u.push(a.charAt(s)+a.charAt(e)+a.charAt(o)+a.charAt(l));return u.join("")},m.decode=function(r){var i,n,t,s,e,o,l=0,u=0,f="data:";if(r.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var p,v=3*(r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(r.charAt(r.length-1)===a.charAt(64)&&v--,r.charAt(r.length-2)===a.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=c.uint8array?new Uint8Array(0|v):new Array(0|v);l<r.length;)i=a.indexOf(r.charAt(l++))<<2|(s=a.indexOf(r.charAt(l++)))>>4,n=(15&s)<<4|(e=a.indexOf(r.charAt(l++)))>>2,t=(3&e)<<6|(o=a.indexOf(r.charAt(l++))),p[u++]=i,e!==64&&(p[u++]=n),o!==64&&(p[u++]=t);return p}},{"./support":30,"./utils":32}],2:[function(g,S,m){"use strict";var h=g("./external"),c=g("./stream/DataWorker"),a=g("./stream/Crc32Probe"),r=g("./stream/DataLengthProbe");function i(n,t,s,e,o){this.compressedSize=n,this.uncompressedSize=t,this.crc32=s,this.compression=e,this.compressedContent=o}i.prototype={getContentWorker:function(){var t=new c(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),s=this;return t.on("end",function(){if(this.streamInfo.data_length!==s.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new c(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},i.createWorkerFrom=function(n,t,s){return n.pipe(new a).pipe(new r("uncompressedSize")).pipe(t.compressWorker(s)).pipe(new r("compressedSize")).withStreamInfo("compression",t)},S.exports=i},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(g,S,m){"use strict";var h=g("./stream/GenericWorker");m.STORE={magic:"\0\0",compressWorker:function(a){return new h("STORE compression")},uncompressWorker:function(){return new h("STORE decompression")}},m.DEFLATE=g("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(g,S,m){"use strict";var h=g("./utils"),c=function(){for(var a,r=[],i=0;i<256;i++){a=i;for(var n=0;n<8;n++)a=1&a?3988292384^a>>>1:a>>>1;r[i]=a}return r}();S.exports=function(a,r){return a!==void 0&&a.length?h.getTypeOf(a)!=="string"?function(i,n,t,s){var e=c,o=s+t;i^=-1;for(var l=s;l<o;l++)i=i>>>8^e[255&(i^n[l])];return-1^i}(0|r,a,a.length,0):function(i,n,t,s){var e=c,o=s+t;i^=-1;for(var l=s;l<o;l++)i=i>>>8^e[255&(i^n.charCodeAt(l))];return-1^i}(0|r,a,a.length,0):0}},{"./utils":32}],5:[function(g,S,m){"use strict";m.base64=!1,m.binary=!1,m.dir=!1,m.createFolders=!0,m.date=null,m.compression=null,m.compressionOptions=null,m.comment=null,m.unixPermissions=null,m.dosPermissions=null},{}],6:[function(g,S,m){"use strict";var h=null;h=typeof Promise!="undefined"?Promise:g("lie"),S.exports={Promise:h}},{lie:37}],7:[function(g,S,m){"use strict";var h=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",c=g("pako"),a=g("./utils"),r=g("./stream/GenericWorker"),i=h?"uint8array":"array";function n(t,s){r.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=s,this.meta={}}m.magic="\b\0",a.inherits(n,r),n.prototype.processChunk=function(t){this.meta=t.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(i,t.data),!1)},n.prototype.flush=function(){r.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},n.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this._pako=null},n.prototype._createPako=function(){this._pako=new c[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(s){t.push({data:s,meta:t.meta})}},m.compressWorker=function(t){return new n("Deflate",t)},m.uncompressWorker=function(){return new n("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(g,S,m){"use strict";function h(e,o){var l,u="";for(l=0;l<o;l++)u+=String.fromCharCode(255&e),e>>>=8;return u}function c(e,o,l,u,f,p){var v,A,y=e.file,x=e.compression,C=p!==i.utf8encode,w=a.transformTo("string",p(y.name)),b=a.transformTo("string",i.utf8encode(y.name)),_=y.comment,O=a.transformTo("string",p(_)),L=a.transformTo("string",i.utf8encode(_)),D=b.length!==y.name.length,N=L.length!==_.length,M="",F="",R="",j=y.dir,B=y.date,K={crc32:0,compressedSize:0,uncompressedSize:0};o&&!l||(K.crc32=e.crc32,K.compressedSize=e.compressedSize,K.uncompressedSize=e.uncompressedSize);var U=0;o&&(U|=8),C||!D&&!N||(U|=2048);var z=0,V=0;j&&(z|=16),f==="UNIX"?(V=798,z|=function(J,se){var $=J;return J||($=se?16893:33204),(65535&$)<<16}(y.unixPermissions,j)):(V=20,z|=function(J){return 63&(J||0)}(y.dosPermissions)),v=B.getUTCHours(),v<<=6,v|=B.getUTCMinutes(),v<<=5,v|=B.getUTCSeconds()/2,A=B.getUTCFullYear()-1980,A<<=4,A|=B.getUTCMonth()+1,A<<=5,A|=B.getUTCDate(),D&&(F=h(1,1)+h(n(w),4)+b,M+="up"+h(F.length,2)+F),N&&(R=h(1,1)+h(n(O),4)+L,M+="uc"+h(R.length,2)+R);var Y="";return Y+=`
|
|
|
\0`,Y+=h(U,2),Y+=x.magic,Y+=h(v,2),Y+=h(A,2),Y+=h(K.crc32,4),Y+=h(K.compressedSize,4),Y+=h(K.uncompressedSize,4),Y+=h(w.length,2),Y+=h(M.length,2),{fileRecord:t.LOCAL_FILE_HEADER+Y+w+M,dirRecord:t.CENTRAL_FILE_HEADER+h(V,2)+Y+h(O.length,2)+"\0\0\0\0"+h(z,4)+h(u,4)+w+M+O}}var a=g("../utils"),r=g("../stream/GenericWorker"),i=g("../utf8"),n=g("../crc32"),t=g("../signature");function s(e,o,l,u){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=o,this.zipPlatform=l,this.encodeFileName=u,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(s,r),s.prototype.push=function(e){var o=e.meta.percent||0,l=this.entriesCount,u=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,r.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:l?(o+100*(l-u-1))/l:100}}))},s.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var o=this.streamFiles&&!e.file.dir;if(o){var l=c(e,o,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:l.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(e){this.accumulate=!1;var o=this.streamFiles&&!e.file.dir,l=c(e,o,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),o)this.push({data:function(u){return t.DATA_DESCRIPTOR+h(u.crc32,4)+h(u.compressedSize,4)+h(u.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:l.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},s.prototype.flush=function(){for(var e=this.bytesWritten,o=0;o<this.dirRecords.length;o++)this.push({data:this.dirRecords[o],meta:{percent:100}});var l=this.bytesWritten-e,u=function(f,p,v,A,y){var x=a.transformTo("string",y(A));return t.CENTRAL_DIRECTORY_END+"\0\0\0\0"+h(f,2)+h(f,2)+h(p,4)+h(v,4)+h(x.length,2)+x}(this.dirRecords.length,l,e,this.zipComment,this.encodeFileName);this.push({data:u,meta:{percent:100}})},s.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},s.prototype.registerPrevious=function(e){this._sources.push(e);var o=this;return e.on("data",function(l){o.processChunk(l)}),e.on("end",function(){o.closedSource(o.previous.streamInfo),o._sources.length?o.prepareNextSource():o.end()}),e.on("error",function(l){o.error(l)}),this},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},s.prototype.error=function(e){var o=this._sources;if(!r.prototype.error.call(this,e))return!1;for(var l=0;l<o.length;l++)try{o[l].error(e)}catch(u){}return!0},s.prototype.lock=function(){r.prototype.lock.call(this);for(var e=this._sources,o=0;o<e.length;o++)e[o].lock()},S.exports=s},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(g,S,m){"use strict";var h=g("../compressions"),c=g("./ZipFileWorker");m.generateWorker=function(a,r,i){var n=new c(r.streamFiles,i,r.platform,r.encodeFileName),t=0;try{a.forEach(function(s,e){t++;var o=function(p,v){var A=p||v,y=h[A];if(!y)throw new Error(A+" is not a valid compression method !");return y}(e.options.compression,r.compression),l=e.options.compressionOptions||r.compressionOptions||{},u=e.dir,f=e.date;e._compressWorker(o,l).withStreamInfo("file",{name:s,dir:u,date:f,comment:e.comment||"",unixPermissions:e.unixPermissions,dosPermissions:e.dosPermissions}).pipe(n)}),n.entriesCount=t}catch(s){n.error(s)}return n}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(g,S,m){"use strict";function h(){if(!(this instanceof h))return new h;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 c=new h;for(var a in this)typeof this[a]!="function"&&(c[a]=this[a]);return c}}(h.prototype=g("./object")).loadAsync=g("./load"),h.support=g("./support"),h.defaults=g("./defaults"),h.version="3.7.1",h.loadAsync=function(c,a){return new h().loadAsync(c,a)},h.external=g("./external"),S.exports=h},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(g,S,m){"use strict";var h=g("./utils"),c=g("./external"),a=g("./utf8"),r=g("./zipEntries"),i=g("./stream/Crc32Probe"),n=g("./nodejsUtils");function t(s){return new c.Promise(function(e,o){var l=s.decompressed.getContentWorker().pipe(new i);l.on("error",function(u){o(u)}).on("end",function(){l.streamInfo.crc32!==s.decompressed.crc32?o(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()})}S.exports=function(s,e){var o=this;return e=h.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),n.isNode&&n.isStream(s)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):h.prepareContent("the loaded zip file",s,!0,e.optimizedBinaryString,e.base64).then(function(l){var u=new r(e);return u.load(l),u}).then(function(l){var u=[c.Promise.resolve(l)],f=l.files;if(e.checkCRC32)for(var p=0;p<f.length;p++)u.push(t(f[p]));return c.Promise.all(u)}).then(function(l){for(var u=l.shift(),f=u.files,p=0;p<f.length;p++){var v=f[p];o.file(v.fileNameStr,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:e.createFolders})}return u.zipComment.length&&(o.comment=u.zipComment),o})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(g,S,m){"use strict";var h=g("../utils"),c=g("../stream/GenericWorker");function a(r,i){c.call(this,"Nodejs stream input adapter for "+r),this._upstreamEnded=!1,this._bindStream(i)}h.inherits(a,c),a.prototype._bindStream=function(r){var i=this;(this._stream=r).pause(),r.on("data",function(n){i.push({data:n,meta:{percent:0}})}).on("error",function(n){i.isPaused?this.generatedError=n:i.error(n)}).on("end",function(){i.isPaused?i._upstreamEnded=!0:i.end()})},a.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},S.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(g,S,m){"use strict";var h=g("readable-stream").Readable;function c(a,r,i){h.call(this,r),this._helper=a;var n=this;a.on("data",function(t,s){n.push(t)||n._helper.pause(),i&&i(s)}).on("error",function(t){n.emit("error",t)}).on("end",function(){n.push(null)})}g("../utils").inherits(c,h),c.prototype._read=function(){this._helper.resume()},S.exports=c},{"../utils":32,"readable-stream":16}],14:[function(g,S,m){"use strict";S.exports={isNode:typeof I!="undefined",newBufferFrom:function(c,a){if(I.from&&I.from!==Uint8Array.from)return I.from(c,a);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new I(c,a)},allocBuffer:function(c){if(I.alloc)return I.alloc(c);var a=new I(c);return a.fill(0),a},isBuffer:function(c){return I.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(g,S,m){"use strict";function h(y,x,C){var w,b=a.getTypeOf(x),_=a.extend(C||{},n);_.date=_.date||new Date,_.compression!==null&&(_.compression=_.compression.toUpperCase()),typeof _.unixPermissions=="string"&&(_.unixPermissions=parseInt(_.unixPermissions,8)),_.unixPermissions&&16384&_.unixPermissions&&(_.dir=!0),_.dosPermissions&&16&_.dosPermissions&&(_.dir=!0),_.dir&&(y=f(y)),_.createFolders&&(w=u(y))&&p.call(this,w,!0);var O=b==="string"&&_.binary===!1&&_.base64===!1;C&&C.binary!==void 0||(_.binary=!O),(x instanceof t&&x.uncompressedSize===0||_.dir||!x||x.length===0)&&(_.base64=!1,_.binary=!0,x="",_.compression="STORE",b="string");var L=null;L=x instanceof t||x instanceof r?x:o.isNode&&o.isStream(x)?new l(y,x):a.prepareContent(y,x,_.binary,_.optimizedBinaryString,_.base64);var D=new s(y,L,_);this.files[y]=D}var c=g("./utf8"),a=g("./utils"),r=g("./stream/GenericWorker"),i=g("./stream/StreamHelper"),n=g("./defaults"),t=g("./compressedObject"),s=g("./zipObject"),e=g("./generate"),o=g("./nodejsUtils"),l=g("./nodejs/NodejsStreamInputAdapter"),u=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var C=x.lastIndexOf("/");return 0<C?x.substring(0,C):""},f=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},p=function(x,C){return C=C!==void 0?C:n.createFolders,x=f(x),this.files[x]||h.call(this,x,null,{dir:!0,createFolders:C}),this.files[x]};function v(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var C,w,b;for(C in this.files)b=this.files[C],(w=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&x(w,b)},filter:function(x){var C=[];return this.forEach(function(w,b){x(w,b)&&C.push(b)}),C},file:function(x,C,w){if(arguments.length!==1)return x=this.root+x,h.call(this,x,C,w),this;if(v(x)){var b=x;return this.filter(function(O,L){return!L.dir&&b.test(O)})}var _=this.files[this.root+x];return _&&!_.dir?_:null},folder:function(x){if(!x)return this;if(v(x))return this.filter(function(_,O){return O.dir&&x.test(_)});var C=this.root+x,w=p.call(this,C),b=this.clone();return b.root=w.name,b},remove:function(x){x=this.root+x;var C=this.files[x];if(C||(x.slice(-1)!=="/"&&(x+="/"),C=this.files[x]),C&&!C.dir)delete this.files[x];else for(var w=this.filter(function(_,O){return O.name.slice(0,x.length)===x}),b=0;b<w.length;b++)delete this.files[w[b].name];return this},generate:function(x){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var C,w={};try{if((w=a.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.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.");a.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 b=w.comment||this.comment||"";C=e.generateWorker(this,w,b)}catch(_){(C=new r("error")).error(_)}return new i(C,w.type||"string",w.mimeType)},generateAsync:function(x,C){return this.generateInternalStream(x).accumulate(C)},generateNodeStream:function(x,C){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(C)}};S.exports=A},{"./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(g,S,m){S.exports=g("stream")},{stream:void 0}],17:[function(g,S,m){"use strict";var h=g("./DataReader");function c(a){h.call(this,a);for(var r=0;r<this.data.length;r++)a[r]=255&a[r]}g("../utils").inherits(c,h),c.prototype.byteAt=function(a){return this.data[this.zero+a]},c.prototype.lastIndexOfSignature=function(a){for(var r=a.charCodeAt(0),i=a.charCodeAt(1),n=a.charCodeAt(2),t=a.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===r&&this.data[s+1]===i&&this.data[s+2]===n&&this.data[s+3]===t)return s-this.zero;return-1},c.prototype.readAndCheckSignature=function(a){var r=a.charCodeAt(0),i=a.charCodeAt(1),n=a.charCodeAt(2),t=a.charCodeAt(3),s=this.readData(4);return r===s[0]&&i===s[1]&&n===s[2]&&t===s[3]},c.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var r=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,r},S.exports=c},{"../utils":32,"./DataReader":18}],18:[function(g,S,m){"use strict";var h=g("../utils");function c(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}c.prototype={checkOffset:function(r){this.checkIndex(this.index+r)},checkIndex:function(r){if(this.length<this.zero+r||r<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+r+"). Corrupted zip ?")},setIndex:function(r){this.checkIndex(r),this.index=r},skip:function(r){this.setIndex(this.index+r)},byteAt:function(r){},readInt:function(r){var i,n=0;for(this.checkOffset(r),i=this.index+r-1;i>=this.index;i--)n=(n<<8)+this.byteAt(i);return this.index+=r,n},readString:function(r){return h.transformTo("string",this.readData(r))},readData:function(r){},lastIndexOfSignature:function(r){},readAndCheckSignature:function(r){},readDate:function(){var r=this.readInt(4);return new Date(Date.UTC(1980+(r>>25&127),(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(31&r)<<1))}},S.exports=c},{"../utils":32}],19:[function(g,S,m){"use strict";var h=g("./Uint8ArrayReader");function c(a){h.call(this,a)}g("../utils").inherits(c,h),c.prototype.readData=function(a){this.checkOffset(a);var r=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,r},S.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(g,S,m){"use strict";var h=g("./DataReader");function c(a){h.call(this,a)}g("../utils").inherits(c,h),c.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},c.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},c.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},c.prototype.readData=function(a){this.checkOffset(a);var r=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,r},S.exports=c},{"../utils":32,"./DataReader":18}],21:[function(g,S,m){"use strict";var h=g("./ArrayReader");function c(a){h.call(this,a)}g("../utils").inherits(c,h),c.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,r},S.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(g,S,m){"use strict";var h=g("../utils"),c=g("../support"),a=g("./ArrayReader"),r=g("./StringReader"),i=g("./NodeBufferReader"),n=g("./Uint8ArrayReader");S.exports=function(t){var s=h.getTypeOf(t);return h.checkSupport(s),s!=="string"||c.uint8array?s==="nodebuffer"?new i(t):c.uint8array?new n(h.transformTo("uint8array",t)):new a(h.transformTo("array",t)):new r(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(g,S,m){"use strict";m.LOCAL_FILE_HEADER="PK",m.CENTRAL_FILE_HEADER="PK",m.CENTRAL_DIRECTORY_END="PK",m.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",m.ZIP64_CENTRAL_DIRECTORY_END="PK",m.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(g,S,m){"use strict";var h=g("./GenericWorker"),c=g("../utils");function a(r){h.call(this,"ConvertWorker to "+r),this.destType=r}c.inherits(a,h),a.prototype.processChunk=function(r){this.push({data:c.transformTo(this.destType,r.data),meta:r.meta})},S.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(g,S,m){"use strict";var h=g("./GenericWorker"),c=g("../crc32");function a(){h.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}g("../utils").inherits(a,h),a.prototype.processChunk=function(r){this.streamInfo.crc32=c(r.data,this.streamInfo.crc32||0),this.push(r)},S.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(g,S,m){"use strict";var h=g("../utils"),c=g("./GenericWorker");function a(r){c.call(this,"DataLengthProbe for "+r),this.propName=r,this.withStreamInfo(r,0)}h.inherits(a,c),a.prototype.processChunk=function(r){if(r){var i=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=i+r.data.length}c.prototype.processChunk.call(this,r)},S.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(g,S,m){"use strict";var h=g("../utils"),c=g("./GenericWorker");function a(r){c.call(this,"DataWorker");var i=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,r.then(function(n){i.dataIsReady=!0,i.data=n,i.max=n&&n.length||0,i.type=h.getTypeOf(n),i.isPaused||i._tickAndRepeat()},function(n){i.error(n)})}h.inherits(a,c),a.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,h.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(h.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var r=null,i=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":r=this.data.substring(this.index,i);break;case"uint8array":r=this.data.subarray(this.index,i);break;case"array":case"nodebuffer":r=this.data.slice(this.index,i)}return this.index=i,this.push({data:r,meta:{percent:this.max?this.index/this.max*100:0}})},S.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(g,S,m){"use strict";function h(c){this.name=c||"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}h.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,r){return this._listeners[a].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,r){if(this._listeners[a])for(var i=0;i<this._listeners[a].length;i++)this._listeners[a][i].call(this,r)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var r=this;return a.on("data",function(i){r.processChunk(i)}),a.on("end",function(){r.end()}),a.on("error",function(i){r.error(i)}),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 a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,r){return this.extraStreamInfo[a]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},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 a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},S.exports=h},{}],29:[function(g,S,m){"use strict";var h=g("../utils"),c=g("./ConvertWorker"),a=g("./GenericWorker"),r=g("../base64"),i=g("../support"),n=g("../external"),t=null;if(i.nodestream)try{t=g("../nodejs/NodejsStreamOutputAdapter")}catch(o){}function s(o,l){return new n.Promise(function(u,f){var p=[],v=o._internalType,A=o._outputType,y=o._mimeType;o.on("data",function(x,C){p.push(x),l&&l(C)}).on("error",function(x){p=[],f(x)}).on("end",function(){try{var x=function(C,w,b){switch(C){case"blob":return h.newBlob(h.transformTo("arraybuffer",w),b);case"base64":return r.encode(w);default:return h.transformTo(C,w)}}(A,function(C,w){var b,_=0,O=null,L=0;for(b=0;b<w.length;b++)L+=w[b].length;switch(C){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(O=new Uint8Array(L),b=0;b<w.length;b++)O.set(w[b],_),_+=w[b].length;return O;case"nodebuffer":return I.concat(w);default:throw new Error("concat : unsupported type '"+C+"'")}}(v,p),y);u(x)}catch(C){f(C)}p=[]}).resume()})}function e(o,l,u){var f=l;switch(l){case"blob":case"arraybuffer":f="uint8array";break;case"base64":f="string"}try{this._internalType=f,this._outputType=l,this._mimeType=u,h.checkSupport(f),this._worker=o.pipe(new c(f)),o.lock()}catch(p){this._worker=new a("error"),this._worker.error(p)}}e.prototype={accumulate:function(l){return s(this,l)},on:function(l,u){var f=this;return l==="data"?this._worker.on(l,function(p){u.call(f,p.data,p.meta)}):this._worker.on(l,function(){h.delay(u,arguments,f)}),this},resume:function(){return h.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(l){if(h.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new t(this,{objectMode:this._outputType!=="nodebuffer"},l)}},S.exports=e},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(g,S,m){"use strict";if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",m.nodebuffer=typeof I!="undefined",m.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")m.blob=!1;else{var h=new ArrayBuffer(0);try{m.blob=new Blob([h],{type:"application/zip"}).size===0}catch(a){try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(h),m.blob=c.getBlob("application/zip").size===0}catch(r){m.blob=!1}}}try{m.nodestream=!!g("readable-stream").Readable}catch(a){m.nodestream=!1}},{"readable-stream":16}],31:[function(g,S,m){"use strict";for(var h=g("./utils"),c=g("./support"),a=g("./nodejsUtils"),r=g("./stream/GenericWorker"),i=new Array(256),n=0;n<256;n++)i[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;i[254]=i[254]=1;function t(){r.call(this,"utf-8 decode"),this.leftOver=null}function s(){r.call(this,"utf-8 encode")}m.utf8encode=function(e){return c.nodebuffer?a.newBufferFrom(e,"utf-8"):function(o){var l,u,f,p,v,A=o.length,y=0;for(p=0;p<A;p++)(64512&(u=o.charCodeAt(p)))==55296&&p+1<A&&(64512&(f=o.charCodeAt(p+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),p++),y+=u<128?1:u<2048?2:u<65536?3:4;for(l=c.uint8array?new Uint8Array(y):new Array(y),p=v=0;v<y;p++)(64512&(u=o.charCodeAt(p)))==55296&&p+1<A&&(64512&(f=o.charCodeAt(p+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),p++),u<128?l[v++]=u:(u<2048?l[v++]=192|u>>>6:(u<65536?l[v++]=224|u>>>12:(l[v++]=240|u>>>18,l[v++]=128|u>>>12&63),l[v++]=128|u>>>6&63),l[v++]=128|63&u);return l}(e)},m.utf8decode=function(e){return c.nodebuffer?h.transformTo("nodebuffer",e).toString("utf-8"):function(o){var l,u,f,p,v=o.length,A=new Array(2*v);for(l=u=0;l<v;)if((f=o[l++])<128)A[u++]=f;else if(4<(p=i[f]))A[u++]=65533,l+=p-1;else{for(f&=p===2?31:p===3?15:7;1<p&&l<v;)f=f<<6|63&o[l++],p--;1<p?A[u++]=65533:f<65536?A[u++]=f:(f-=65536,A[u++]=55296|f>>10&1023,A[u++]=56320|1023&f)}return A.length!==u&&(A.subarray?A=A.subarray(0,u):A.length=u),h.applyFromCharCode(A)}(e=h.transformTo(c.uint8array?"uint8array":"array",e))},h.inherits(t,r),t.prototype.processChunk=function(e){var o=h.transformTo(c.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(c.uint8array){var l=o;(o=new Uint8Array(l.length+this.leftOver.length)).set(this.leftOver,0),o.set(l,this.leftOver.length)}else o=this.leftOver.concat(o);this.leftOver=null}var u=function(p,v){var A;for((v=v||p.length)>p.length&&(v=p.length),A=v-1;0<=A&&(192&p[A])==128;)A--;return A<0||A===0?v:A+i[p[A]]>v?A:v}(o),f=o;u!==o.length&&(c.uint8array?(f=o.subarray(0,u),this.leftOver=o.subarray(u,o.length)):(f=o.slice(0,u),this.leftOver=o.slice(u,o.length))),this.push({data:m.utf8decode(f),meta:e.meta})},t.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=t,h.inherits(s,r),s.prototype.processChunk=function(e){this.push({data:m.utf8encode(e.data),meta:e.meta})},m.Utf8EncodeWorker=s},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(g,S,m){"use strict";var h=g("./support"),c=g("./base64"),a=g("./nodejsUtils"),r=g("set-immediate-shim"),i=g("./external");function n(u){return u}function t(u,f){for(var p=0;p<u.length;++p)f[p]=255&u.charCodeAt(p);return f}m.newBlob=function(u,f){m.checkSupport("blob");try{return new Blob([u],{type:f})}catch(v){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(u),p.getBlob(f)}catch(A){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(f,p,v){var A=[],y=0,x=f.length;if(x<=v)return String.fromCharCode.apply(null,f);for(;y<x;)p==="array"||p==="nodebuffer"?A.push(String.fromCharCode.apply(null,f.slice(y,Math.min(y+v,x)))):A.push(String.fromCharCode.apply(null,f.subarray(y,Math.min(y+v,x)))),y+=v;return A.join("")},stringifyByChar:function(f){for(var p="",v=0;v<f.length;v++)p+=String.fromCharCode(f[v]);return p},applyCanBeUsed:{uint8array:function(){try{return h.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(u){return!1}}(),nodebuffer:function(){try{return h.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch(u){return!1}}()}};function e(u){var f=65536,p=m.getTypeOf(u),v=!0;if(p==="uint8array"?v=s.applyCanBeUsed.uint8array:p==="nodebuffer"&&(v=s.applyCanBeUsed.nodebuffer),v)for(;1<f;)try{return s.stringifyByChunk(u,p,f)}catch(A){f=Math.floor(f/2)}return s.stringifyByChar(u)}function o(u,f){for(var p=0;p<u.length;p++)f[p]=u[p];return f}m.applyFromCharCode=e;var l={};l.string={string:n,array:function(f){return t(f,new Array(f.length))},arraybuffer:function(f){return l.string.uint8array(f).buffer},uint8array:function(f){return t(f,new Uint8Array(f.length))},nodebuffer:function(f){return t(f,a.allocBuffer(f.length))}},l.array={string:e,array:n,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return a.newBufferFrom(f)}},l.arraybuffer={string:function(f){return e(new Uint8Array(f))},array:function(f){return o(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:n,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return a.newBufferFrom(new Uint8Array(f))}},l.uint8array={string:e,array:function(f){return o(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:n,nodebuffer:function(f){return a.newBufferFrom(f)}},l.nodebuffer={string:e,array:function(f){return o(f,new Array(f.length))},arraybuffer:function(f){return l.nodebuffer.uint8array(f).buffer},uint8array:function(f){return o(f,new Uint8Array(f.length))},nodebuffer:n},m.transformTo=function(u,f){if(f=f||"",!u)return f;m.checkSupport(u);var p=m.getTypeOf(f);return l[p][u](f)},m.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":h.nodebuffer&&a.isBuffer(u)?"nodebuffer":h.uint8array&&u instanceof Uint8Array?"uint8array":h.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},m.checkSupport=function(u){if(!h[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},m.MAX_VALUE_16BITS=65535,m.MAX_VALUE_32BITS=-1,m.pretty=function(u){var f,p,v="";for(p=0;p<(u||"").length;p++)v+="\\x"+((f=u.charCodeAt(p))<16?"0":"")+f.toString(16).toUpperCase();return v},m.delay=function(u,f,p){r(function(){u.apply(p||null,f||[])})},m.inherits=function(u,f){function p(){}p.prototype=f.prototype,u.prototype=new p},m.extend=function(){var u,f,p={};for(u=0;u<arguments.length;u++)for(f in arguments[u])arguments[u].hasOwnProperty(f)&&p[f]===void 0&&(p[f]=arguments[u][f]);return p},m.prepareContent=function(u,f,p,v,A){return i.Promise.resolve(f).then(function(y){return h.blob&&(y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(y))!==-1)&&typeof FileReader!="undefined"?new i.Promise(function(x,C){var w=new FileReader;w.onload=function(b){x(b.target.result)},w.onerror=function(b){C(b.target.error)},w.readAsArrayBuffer(y)}):y}).then(function(y){var x=m.getTypeOf(y);return x?(x==="arraybuffer"?y=m.transformTo("uint8array",y):x==="string"&&(A?y=c.decode(y):p&&v!==!0&&(y=function(C){return t(C,h.uint8array?new Uint8Array(C.length):new Array(C.length))}(y))),y):i.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(g,S,m){"use strict";var h=g("./reader/readerFor"),c=g("./utils"),a=g("./signature"),r=g("./zipEntry"),i=(g("./utf8"),g("./support"));function n(t){this.files=[],this.loadOptions=t}n.prototype={checkSignature:function(s){if(!this.reader.readAndCheckSignature(s)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(e)+", expected "+c.pretty(s)+")")}},isSignature:function(s,e){var o=this.reader.index;this.reader.setIndex(s);var l=this.reader.readString(4)===e;return this.reader.setIndex(o),l},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 s=this.reader.readData(this.zipCommentLength),e=i.uint8array?"uint8array":"array",o=c.transformTo(e,s);this.zipComment=this.loadOptions.decodeFileName(o)},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 s,e,o,l=this.zip64EndOfCentralSize-44;0<l;)s=this.reader.readInt(2),e=this.reader.readInt(4),o=this.reader.readData(e),this.zip64ExtensibleData[s]={id:s,length:e,value:o}},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 s,e;for(s=0;s<this.files.length;s++)e=this.files[s],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(s=new r({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(s);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 s=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(s<0)throw this.isSignature(0,a.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(s);var e=s;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,(s=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.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(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var o=this.centralDirOffset+this.centralDirSize;this.zip64&&(o+=20,o+=12+this.zip64EndOfCentralSize);var l=e-o;if(0<l)this.isSignature(e,a.CENTRAL_FILE_HEADER)||(this.reader.zero=l);else if(l<0)throw new Error("Corrupted zip: missing "+Math.abs(l)+" bytes.")},prepareReader:function(s){this.reader=h(s)},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},S.exports=n},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(g,S,m){"use strict";var h=g("./reader/readerFor"),c=g("./utils"),a=g("./compressedObject"),r=g("./crc32"),i=g("./utf8"),n=g("./compressions"),t=g("./support");function s(e,o){this.options=e,this.loadOptions=o}s.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(o){var l,u;if(o.skip(22),this.fileNameLength=o.readInt(2),u=o.readInt(2),this.fileName=o.readData(this.fileNameLength),o.skip(u),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((l=function(f){for(var p in n)if(n.hasOwnProperty(p)&&n[p].magic===f)return n[p];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,l,o.readData(this.compressedSize))},readCentralPart:function(o){this.versionMadeBy=o.readInt(2),o.skip(2),this.bitFlag=o.readInt(2),this.compressionMethod=o.readString(2),this.date=o.readDate(),this.crc32=o.readInt(4),this.compressedSize=o.readInt(4),this.uncompressedSize=o.readInt(4);var l=o.readInt(2);if(this.extraFieldsLength=o.readInt(2),this.fileCommentLength=o.readInt(2),this.diskNumberStart=o.readInt(2),this.internalFileAttributes=o.readInt(2),this.externalFileAttributes=o.readInt(4),this.localHeaderOffset=o.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");o.skip(l),this.readExtraFields(o),this.parseZIP64ExtraField(o),this.fileComment=o.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var o=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),o==0&&(this.dosPermissions=63&this.externalFileAttributes),o==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(o){if(this.extraFields[1]){var l=h(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=l.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=l.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=l.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=l.readInt(4))}},readExtraFields:function(o){var l,u,f,p=o.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});o.index+4<p;)l=o.readInt(2),u=o.readInt(2),f=o.readData(u),this.extraFields[l]={id:l,length:u,value:f};o.setIndex(p)},handleUTF8:function(){var o=t.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=i.utf8decode(this.fileName),this.fileCommentStr=i.utf8decode(this.fileComment);else{var l=this.findExtraFieldUnicodePath();if(l!==null)this.fileNameStr=l;else{var u=c.transformTo(o,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var f=this.findExtraFieldUnicodeComment();if(f!==null)this.fileCommentStr=f;else{var p=c.transformTo(o,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var o=this.extraFields[28789];if(o){var l=h(o.value);return l.readInt(1)!==1||r(this.fileName)!==l.readInt(4)?null:i.utf8decode(l.readData(o.length-5))}return null},findExtraFieldUnicodeComment:function(){var o=this.extraFields[25461];if(o){var l=h(o.value);return l.readInt(1)!==1||r(this.fileComment)!==l.readInt(4)?null:i.utf8decode(l.readData(o.length-5))}return null}},S.exports=s},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(g,S,m){"use strict";function h(o,l,u){this.name=o,this.dir=u.dir,this.date=u.date,this.comment=u.comment,this.unixPermissions=u.unixPermissions,this.dosPermissions=u.dosPermissions,this._data=l,this._dataBinary=u.binary,this.options={compression:u.compression,compressionOptions:u.compressionOptions}}var c=g("./stream/StreamHelper"),a=g("./stream/DataWorker"),r=g("./utf8"),i=g("./compressedObject"),n=g("./stream/GenericWorker");h.prototype={internalStream:function(l){var u=null,f="string";try{if(!l)throw new Error("No output type specified.");var p=(f=l.toLowerCase())==="string"||f==="text";f!=="binarystring"&&f!=="text"||(f="string"),u=this._decompressWorker();var v=!this._dataBinary;v&&!p&&(u=u.pipe(new r.Utf8EncodeWorker)),!v&&p&&(u=u.pipe(new r.Utf8DecodeWorker))}catch(A){(u=new n("error")).error(A)}return new c(u,f,"")},async:function(l,u){return this.internalStream(l).accumulate(u)},nodeStream:function(l,u){return this.internalStream(l||"nodebuffer").toNodejsStream(u)},_compressWorker:function(l,u){if(this._data instanceof i&&this._data.compression.magic===l.magic)return this._data.getCompressedWorker();var f=this._decompressWorker();return this._dataBinary||(f=f.pipe(new r.Utf8EncodeWorker)),i.createWorkerFrom(f,l,u)},_decompressWorker:function(){return this._data instanceof i?this._data.getContentWorker():this._data instanceof n?this._data:new a(this._data)}};for(var t=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],s=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},e=0;e<t.length;e++)h.prototype[t[e]]=s;S.exports=h},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(g,S,m){(function(h){"use strict";var c,a,r=h.MutationObserver||h.WebKitMutationObserver;if(r){var i=0,n=new r(o),t=h.document.createTextNode("");n.observe(t,{characterData:!0}),c=function(){t.data=i=++i%2}}else if(h.setImmediate||h.MessageChannel===void 0)c="document"in h&&"onreadystatechange"in h.document.createElement("script")?function(){var l=h.document.createElement("script");l.onreadystatechange=function(){o(),l.onreadystatechange=null,l.parentNode.removeChild(l),l=null},h.document.documentElement.appendChild(l)}:function(){setTimeout(o,0)};else{var s=new h.MessageChannel;s.port1.onmessage=o,c=function(){s.port2.postMessage(0)}}var e=[];function o(){var l,u;a=!0;for(var f=e.length;f;){for(u=e,e=[],l=-1;++l<f;)u[l]();f=e.length}a=!1}S.exports=function(l){e.push(l)!==1||a||c()}}).call(this,typeof E!="undefined"?E:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(g,S,m){"use strict";var h=g("immediate");function c(){}var a={},r=["REJECTED"],i=["FULFILLED"],n=["PENDING"];function t(f){if(typeof f!="function")throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,f!==c&&l(this,f)}function s(f,p,v){this.promise=f,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function e(f,p,v){h(function(){var A;try{A=p(v)}catch(y){return a.reject(f,y)}A===f?a.reject(f,new TypeError("Cannot resolve promise with itself")):a.resolve(f,A)})}function o(f){var p=f&&f.then;if(f&&(typeof f=="object"||typeof f=="function")&&typeof p=="function")return function(){p.apply(f,arguments)}}function l(f,p){var v=!1;function A(C){v||(v=!0,a.reject(f,C))}function y(C){v||(v=!0,a.resolve(f,C))}var x=u(function(){p(y,A)});x.status==="error"&&A(x.value)}function u(f,p){var v={};try{v.value=f(p),v.status="success"}catch(A){v.status="error",v.value=A}return v}(S.exports=t).prototype.finally=function(f){if(typeof f!="function")return this;var p=this.constructor;return this.then(function(v){return p.resolve(f()).then(function(){return v})},function(v){return p.resolve(f()).then(function(){throw v})})},t.prototype.catch=function(f){return this.then(null,f)},t.prototype.then=function(f,p){if(typeof f!="function"&&this.state===i||typeof p!="function"&&this.state===r)return this;var v=new this.constructor(c);return this.state!==n?e(v,this.state===i?f:p,this.outcome):this.queue.push(new s(v,f,p)),v},s.prototype.callFulfilled=function(f){a.resolve(this.promise,f)},s.prototype.otherCallFulfilled=function(f){e(this.promise,this.onFulfilled,f)},s.prototype.callRejected=function(f){a.reject(this.promise,f)},s.prototype.otherCallRejected=function(f){e(this.promise,this.onRejected,f)},a.resolve=function(f,p){var v=u(o,p);if(v.status==="error")return a.reject(f,v.value);var A=v.value;if(A)l(f,A);else{f.state=i,f.outcome=p;for(var y=-1,x=f.queue.length;++y<x;)f.queue[y].callFulfilled(p)}return f},a.reject=function(f,p){f.state=r,f.outcome=p;for(var v=-1,A=f.queue.length;++v<A;)f.queue[v].callRejected(p);return f},t.resolve=function(f){return f instanceof this?f:a.resolve(new this(c),f)},t.reject=function(f){var p=new this(c);return a.reject(p,f)},t.all=function(f){var p=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=f.length,A=!1;if(!v)return this.resolve([]);for(var y=new Array(v),x=0,C=-1,w=new this(c);++C<v;)b(f[C],C);return w;function b(_,O){p.resolve(_).then(function(L){y[O]=L,++x!==v||A||(A=!0,a.resolve(w,y))},function(L){A||(A=!0,a.reject(w,L))})}},t.race=function(f){var p=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=f.length,A=!1;if(!v)return this.resolve([]);for(var y=-1,x=new this(c);++y<v;)C=f[y],p.resolve(C).then(function(w){A||(A=!0,a.resolve(x,w))},function(w){A||(A=!0,a.reject(x,w))});var C;return x}},{immediate:36}],38:[function(g,S,m){"use strict";var h={};(0,g("./lib/utils/common").assign)(h,g("./lib/deflate"),g("./lib/inflate"),g("./lib/zlib/constants")),S.exports=h},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(g,S,m){"use strict";var h=g("./zlib/deflate"),c=g("./utils/common"),a=g("./utils/strings"),r=g("./zlib/messages"),i=g("./zlib/zstream"),n=Object.prototype.toString,t=0,s=-1,e=0,o=8;function l(f){if(!(this instanceof l))return new l(f);this.options=c.assign({level:s,method:o,chunkSize:16384,windowBits:15,memLevel:8,strategy:e,to:""},f||{});var p=this.options;p.raw&&0<p.windowBits?p.windowBits=-p.windowBits:p.gzip&&0<p.windowBits&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var v=h.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(v!==t)throw new Error(r[v]);if(p.header&&h.deflateSetHeader(this.strm,p.header),p.dictionary){var A;if(A=typeof p.dictionary=="string"?a.string2buf(p.dictionary):n.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(v=h.deflateSetDictionary(this.strm,A))!==t)throw new Error(r[v]);this._dict_set=!0}}function u(f,p){var v=new l(p);if(v.push(f,!0),v.err)throw v.msg||r[v.err];return v.result}l.prototype.push=function(f,p){var v,A,y=this.strm,x=this.options.chunkSize;if(this.ended)return!1;A=p===~~p?p:p===!0?4:0,typeof f=="string"?y.input=a.string2buf(f):n.call(f)==="[object ArrayBuffer]"?y.input=new Uint8Array(f):y.input=f,y.next_in=0,y.avail_in=y.input.length;do{if(y.avail_out===0&&(y.output=new c.Buf8(x),y.next_out=0,y.avail_out=x),(v=h.deflate(y,A))!==1&&v!==t)return this.onEnd(v),!(this.ended=!0);y.avail_out!==0&&(y.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(c.shrinkBuf(y.output,y.next_out))):this.onData(c.shrinkBuf(y.output,y.next_out)))}while((0<y.avail_in||y.avail_out===0)&&v!==1);return A===4?(v=h.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===t):A!==2||(this.onEnd(t),!(y.avail_out=0))},l.prototype.onData=function(f){this.chunks.push(f)},l.prototype.onEnd=function(f){f===t&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},m.Deflate=l,m.deflate=u,m.deflateRaw=function(f,p){return(p=p||{}).raw=!0,u(f,p)},m.gzip=function(f,p){return(p=p||{}).gzip=!0,u(f,p)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(g,S,m){"use strict";var h=g("./zlib/inflate"),c=g("./utils/common"),a=g("./utils/strings"),r=g("./zlib/constants"),i=g("./zlib/messages"),n=g("./zlib/zstream"),t=g("./zlib/gzheader"),s=Object.prototype.toString;function e(l){if(!(this instanceof e))return new e(l);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},l||{});var u=this.options;u.raw&&0<=u.windowBits&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),!(0<=u.windowBits&&u.windowBits<16)||l&&l.windowBits||(u.windowBits+=32),15<u.windowBits&&u.windowBits<48&&(15&u.windowBits)==0&&(u.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var f=h.inflateInit2(this.strm,u.windowBits);if(f!==r.Z_OK)throw new Error(i[f]);this.header=new t,h.inflateGetHeader(this.strm,this.header)}function o(l,u){var f=new e(u);if(f.push(l,!0),f.err)throw f.msg||i[f.err];return f.result}e.prototype.push=function(l,u){var f,p,v,A,y,x,C=this.strm,w=this.options.chunkSize,b=this.options.dictionary,_=!1;if(this.ended)return!1;p=u===~~u?u:u===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof l=="string"?C.input=a.binstring2buf(l):s.call(l)==="[object ArrayBuffer]"?C.input=new Uint8Array(l):C.input=l,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new c.Buf8(w),C.next_out=0,C.avail_out=w),(f=h.inflate(C,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&b&&(x=typeof b=="string"?a.string2buf(b):s.call(b)==="[object ArrayBuffer]"?new Uint8Array(b):b,f=h.inflateSetDictionary(this.strm,x)),f===r.Z_BUF_ERROR&&_===!0&&(f=r.Z_OK,_=!1),f!==r.Z_STREAM_END&&f!==r.Z_OK)return this.onEnd(f),!(this.ended=!0);C.next_out&&(C.avail_out!==0&&f!==r.Z_STREAM_END&&(C.avail_in!==0||p!==r.Z_FINISH&&p!==r.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=a.utf8border(C.output,C.next_out),A=C.next_out-v,y=a.buf2string(C.output,v),C.next_out=A,C.avail_out=w-A,A&&c.arraySet(C.output,C.output,v,A,0),this.onData(y)):this.onData(c.shrinkBuf(C.output,C.next_out)))),C.avail_in===0&&C.avail_out===0&&(_=!0)}while((0<C.avail_in||C.avail_out===0)&&f!==r.Z_STREAM_END);return f===r.Z_STREAM_END&&(p=r.Z_FINISH),p===r.Z_FINISH?(f=h.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===r.Z_OK):p!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),!(C.avail_out=0))},e.prototype.onData=function(l){this.chunks.push(l)},e.prototype.onEnd=function(l){l===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg},m.Inflate=e,m.inflate=o,m.inflateRaw=function(l,u){return(u=u||{}).raw=!0,o(l,u)},m.ungzip=o},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(g,S,m){"use strict";var h=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";m.assign=function(r){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var n=i.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(var t in n)n.hasOwnProperty(t)&&(r[t]=n[t])}}return r},m.shrinkBuf=function(r,i){return r.length===i?r:r.subarray?r.subarray(0,i):(r.length=i,r)};var c={arraySet:function(i,n,t,s,e){if(n.subarray&&i.subarray)i.set(n.subarray(t,t+s),e);else for(var o=0;o<s;o++)i[e+o]=n[t+o]},flattenChunks:function(i){var n,t,s,e,o,l;for(n=s=0,t=i.length;n<t;n++)s+=i[n].length;for(l=new Uint8Array(s),n=e=0,t=i.length;n<t;n++)o=i[n],l.set(o,e),e+=o.length;return l}},a={arraySet:function(i,n,t,s,e){for(var o=0;o<s;o++)i[e+o]=n[t+o]},flattenChunks:function(i){return[].concat.apply([],i)}};m.setTyped=function(r){r?(m.Buf8=Uint8Array,m.Buf16=Uint16Array,m.Buf32=Int32Array,m.assign(m,c)):(m.Buf8=Array,m.Buf16=Array,m.Buf32=Array,m.assign(m,a))},m.setTyped(h)},{}],42:[function(g,S,m){"use strict";var h=g("./common"),c=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var r=new h.Buf8(256),i=0;i<256;i++)r[i]=252<=i?6:248<=i?5:240<=i?4:224<=i?3:192<=i?2:1;function n(t,s){if(s<65537&&(t.subarray&&a||!t.subarray&&c))return String.fromCharCode.apply(null,h.shrinkBuf(t,s));for(var e="",o=0;o<s;o++)e+=String.fromCharCode(t[o]);return e}r[254]=r[254]=1,m.string2buf=function(t){var s,e,o,l,u,f=t.length,p=0;for(l=0;l<f;l++)(64512&(e=t.charCodeAt(l)))==55296&&l+1<f&&(64512&(o=t.charCodeAt(l+1)))==56320&&(e=65536+(e-55296<<10)+(o-56320),l++),p+=e<128?1:e<2048?2:e<65536?3:4;for(s=new h.Buf8(p),l=u=0;u<p;l++)(64512&(e=t.charCodeAt(l)))==55296&&l+1<f&&(64512&(o=t.charCodeAt(l+1)))==56320&&(e=65536+(e-55296<<10)+(o-56320),l++),e<128?s[u++]=e:(e<2048?s[u++]=192|e>>>6:(e<65536?s[u++]=224|e>>>12:(s[u++]=240|e>>>18,s[u++]=128|e>>>12&63),s[u++]=128|e>>>6&63),s[u++]=128|63&e);return s},m.buf2binstring=function(t){return n(t,t.length)},m.binstring2buf=function(t){for(var s=new h.Buf8(t.length),e=0,o=s.length;e<o;e++)s[e]=t.charCodeAt(e);return s},m.buf2string=function(t,s){var e,o,l,u,f=s||t.length,p=new Array(2*f);for(e=o=0;e<f;)if((l=t[e++])<128)p[o++]=l;else if(4<(u=r[l]))p[o++]=65533,e+=u-1;else{for(l&=u===2?31:u===3?15:7;1<u&&e<f;)l=l<<6|63&t[e++],u--;1<u?p[o++]=65533:l<65536?p[o++]=l:(l-=65536,p[o++]=55296|l>>10&1023,p[o++]=56320|1023&l)}return n(p,o)},m.utf8border=function(t,s){var e;for((s=s||t.length)>t.length&&(s=t.length),e=s-1;0<=e&&(192&t[e])==128;)e--;return e<0||e===0?s:e+r[t[e]]>s?e:s}},{"./common":41}],43:[function(g,S,m){"use strict";S.exports=function(h,c,a,r){for(var i=65535&h|0,n=h>>>16&65535|0,t=0;a!==0;){for(a-=t=2e3<a?2e3:a;n=n+(i=i+c[r++]|0)|0,--t;);i%=65521,n%=65521}return i|n<<16|0}},{}],44:[function(g,S,m){"use strict";S.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(g,S,m){"use strict";var h=function(){for(var c,a=[],r=0;r<256;r++){c=r;for(var i=0;i<8;i++)c=1&c?3988292384^c>>>1:c>>>1;a[r]=c}return a}();S.exports=function(c,a,r,i){var n=h,t=i+r;c^=-1;for(var s=i;s<t;s++)c=c>>>8^n[255&(c^a[s])];return-1^c}},{}],46:[function(g,S,m){"use strict";var h,c=g("../utils/common"),a=g("./trees"),r=g("./adler32"),i=g("./crc32"),n=g("./messages"),t=0,s=4,e=0,o=-2,l=-1,u=4,f=2,p=8,v=9,A=286,y=30,x=19,C=2*A+1,w=15,b=3,_=258,O=_+b+1,L=42,D=113,N=1,M=2,F=3,R=4;function j(Q,ce){return Q.msg=n[ce],ce}function B(Q){return(Q<<1)-(4<Q?9:0)}function K(Q){for(var ce=Q.length;0<=--ce;)Q[ce]=0}function U(Q){var ce=Q.state,Ke=ce.pending;Ke>Q.avail_out&&(Ke=Q.avail_out),Ke!==0&&(c.arraySet(Q.output,ce.pending_buf,ce.pending_out,Ke,Q.next_out),Q.next_out+=Ke,ce.pending_out+=Ke,Q.total_out+=Ke,Q.avail_out-=Ke,ce.pending-=Ke,ce.pending===0&&(ce.pending_out=0))}function z(Q,ce){a._tr_flush_block(Q,0<=Q.block_start?Q.block_start:-1,Q.strstart-Q.block_start,ce),Q.block_start=Q.strstart,U(Q.strm)}function V(Q,ce){Q.pending_buf[Q.pending++]=ce}function Y(Q,ce){Q.pending_buf[Q.pending++]=ce>>>8&255,Q.pending_buf[Q.pending++]=255&ce}function J(Q,ce){var Ke,ee,X=Q.max_chain_length,G=Q.strstart,Z=Q.prev_length,ve=Q.nice_match,ue=Q.strstart>Q.w_size-O?Q.strstart-(Q.w_size-O):0,_e=Q.window,xe=Q.w_mask,oe=Q.prev,fe=Q.strstart+_,Te=_e[G+Z-1],ze=_e[G+Z];Q.prev_length>=Q.good_match&&(X>>=2),ve>Q.lookahead&&(ve=Q.lookahead);do if(_e[(Ke=ce)+Z]===ze&&_e[Ke+Z-1]===Te&&_e[Ke]===_e[G]&&_e[++Ke]===_e[G+1]){G+=2,Ke++;do;while(_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&_e[++G]===_e[++Ke]&&G<fe);if(ee=_-(fe-G),G=fe-_,Z<ee){if(Q.match_start=ce,ve<=(Z=ee))break;Te=_e[G+Z-1],ze=_e[G+Z]}}while((ce=oe[ce&xe])>ue&&--X!=0);return Z<=Q.lookahead?Z:Q.lookahead}function se(Q){var ce,Ke,ee,X,G,Z,ve,ue,_e,xe,oe=Q.w_size;do{if(X=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=oe+(oe-O)){for(c.arraySet(Q.window,Q.window,oe,oe,0),Q.match_start-=oe,Q.strstart-=oe,Q.block_start-=oe,ce=Ke=Q.hash_size;ee=Q.head[--ce],Q.head[ce]=oe<=ee?ee-oe:0,--Ke;);for(ce=Ke=oe;ee=Q.prev[--ce],Q.prev[ce]=oe<=ee?ee-oe:0,--Ke;);X+=oe}if(Q.strm.avail_in===0)break;if(Z=Q.strm,ve=Q.window,ue=Q.strstart+Q.lookahead,_e=X,xe=void 0,xe=Z.avail_in,_e<xe&&(xe=_e),Ke=xe===0?0:(Z.avail_in-=xe,c.arraySet(ve,Z.input,Z.next_in,xe,ue),Z.state.wrap===1?Z.adler=r(Z.adler,ve,xe,ue):Z.state.wrap===2&&(Z.adler=i(Z.adler,ve,xe,ue)),Z.next_in+=xe,Z.total_in+=xe,xe),Q.lookahead+=Ke,Q.lookahead+Q.insert>=b)for(G=Q.strstart-Q.insert,Q.ins_h=Q.window[G],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[G+1])&Q.hash_mask;Q.insert&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[G+b-1])&Q.hash_mask,Q.prev[G&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=G,G++,Q.insert--,!(Q.lookahead+Q.insert<b)););}while(Q.lookahead<O&&Q.strm.avail_in!==0)}function $(Q,ce){for(var Ke,ee;;){if(Q.lookahead<O){if(se(Q),Q.lookahead<O&&ce===t)return N;if(Q.lookahead===0)break}if(Ke=0,Q.lookahead>=b&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Ke=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Ke!==0&&Q.strstart-Ke<=Q.w_size-O&&(Q.match_length=J(Q,Ke)),Q.match_length>=b)if(ee=a._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-b),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=b){for(Q.match_length--;Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Ke=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart,--Q.match_length!=0;);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else ee=a._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(ee&&(z(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=Q.strstart<b-1?Q.strstart:b-1,ce===s?(z(Q,!0),Q.strm.avail_out===0?F:R):Q.last_lit&&(z(Q,!1),Q.strm.avail_out===0)?N:M}function ae(Q,ce){for(var Ke,ee,X;;){if(Q.lookahead<O){if(se(Q),Q.lookahead<O&&ce===t)return N;if(Q.lookahead===0)break}if(Ke=0,Q.lookahead>=b&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Ke=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=b-1,Ke!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-Ke<=Q.w_size-O&&(Q.match_length=J(Q,Ke),Q.match_length<=5&&(Q.strategy===1||Q.match_length===b&&4096<Q.strstart-Q.match_start)&&(Q.match_length=b-1)),Q.prev_length>=b&&Q.match_length<=Q.prev_length){for(X=Q.strstart+Q.lookahead-b,ee=a._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-b),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;++Q.strstart<=X&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Ke=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),--Q.prev_length!=0;);if(Q.match_available=0,Q.match_length=b-1,Q.strstart++,ee&&(z(Q,!1),Q.strm.avail_out===0))return N}else if(Q.match_available){if((ee=a._tr_tally(Q,0,Q.window[Q.strstart-1]))&&z(Q,!1),Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return N}else Q.match_available=1,Q.strstart++,Q.lookahead--}return Q.match_available&&(ee=a._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<b-1?Q.strstart:b-1,ce===s?(z(Q,!0),Q.strm.avail_out===0?F:R):Q.last_lit&&(z(Q,!1),Q.strm.avail_out===0)?N:M}function ge(Q,ce,Ke,ee,X){this.good_length=Q,this.max_lazy=ce,this.nice_length=Ke,this.max_chain=ee,this.func=X}function pe(){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=p,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 c.Buf16(2*C),this.dyn_dtree=new c.Buf16(2*(2*y+1)),this.bl_tree=new c.Buf16(2*(2*x+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(w+1),this.heap=new c.Buf16(2*A+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*A+1),K(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 Ne(Q){var ce;return Q&&Q.state?(Q.total_in=Q.total_out=0,Q.data_type=f,(ce=Q.state).pending=0,ce.pending_out=0,ce.wrap<0&&(ce.wrap=-ce.wrap),ce.status=ce.wrap?L:D,Q.adler=ce.wrap===2?0:1,ce.last_flush=t,a._tr_init(ce),e):j(Q,o)}function de(Q){var ce=Ne(Q);return ce===e&&function(Ke){Ke.window_size=2*Ke.w_size,K(Ke.head),Ke.max_lazy_match=h[Ke.level].max_lazy,Ke.good_match=h[Ke.level].good_length,Ke.nice_match=h[Ke.level].nice_length,Ke.max_chain_length=h[Ke.level].max_chain,Ke.strstart=0,Ke.block_start=0,Ke.lookahead=0,Ke.insert=0,Ke.match_length=Ke.prev_length=b-1,Ke.match_available=0,Ke.ins_h=0}(Q.state),ce}function Le(Q,ce,Ke,ee,X,G){if(!Q)return o;var Z=1;if(ce===l&&(ce=6),ee<0?(Z=0,ee=-ee):15<ee&&(Z=2,ee-=16),X<1||v<X||Ke!==p||ee<8||15<ee||ce<0||9<ce||G<0||u<G)return j(Q,o);ee===8&&(ee=9);var ve=new pe;return(Q.state=ve).strm=Q,ve.wrap=Z,ve.gzhead=null,ve.w_bits=ee,ve.w_size=1<<ve.w_bits,ve.w_mask=ve.w_size-1,ve.hash_bits=X+7,ve.hash_size=1<<ve.hash_bits,ve.hash_mask=ve.hash_size-1,ve.hash_shift=~~((ve.hash_bits+b-1)/b),ve.window=new c.Buf8(2*ve.w_size),ve.head=new c.Buf16(ve.hash_size),ve.prev=new c.Buf16(ve.w_size),ve.lit_bufsize=1<<X+6,ve.pending_buf_size=4*ve.lit_bufsize,ve.pending_buf=new c.Buf8(ve.pending_buf_size),ve.d_buf=1*ve.lit_bufsize,ve.l_buf=3*ve.lit_bufsize,ve.level=ce,ve.strategy=G,ve.method=Ke,de(Q)}h=[new ge(0,0,0,0,function(Q,ce){var Ke=65535;for(Ke>Q.pending_buf_size-5&&(Ke=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(se(Q),Q.lookahead===0&&ce===t)return N;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var ee=Q.block_start+Ke;if((Q.strstart===0||Q.strstart>=ee)&&(Q.lookahead=Q.strstart-ee,Q.strstart=ee,z(Q,!1),Q.strm.avail_out===0))return N;if(Q.strstart-Q.block_start>=Q.w_size-O&&(z(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=0,ce===s?(z(Q,!0),Q.strm.avail_out===0?F:R):(Q.strstart>Q.block_start&&(z(Q,!1),Q.strm.avail_out),N)}),new ge(4,4,8,4,$),new ge(4,5,16,8,$),new ge(4,6,32,32,$),new ge(4,4,16,16,ae),new ge(8,16,32,32,ae),new ge(8,16,128,128,ae),new ge(8,32,128,256,ae),new ge(32,128,258,1024,ae),new ge(32,258,258,4096,ae)],m.deflateInit=function(Q,ce){return Le(Q,ce,p,15,8,0)},m.deflateInit2=Le,m.deflateReset=de,m.deflateResetKeep=Ne,m.deflateSetHeader=function(Q,ce){return Q&&Q.state?Q.state.wrap!==2?o:(Q.state.gzhead=ce,e):o},m.deflate=function(Q,ce){var Ke,ee,X,G;if(!Q||!Q.state||5<ce||ce<0)return Q?j(Q,o):o;if(ee=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||ee.status===666&&ce!==s)return j(Q,Q.avail_out===0?-5:o);if(ee.strm=Q,Ke=ee.last_flush,ee.last_flush=ce,ee.status===L)if(ee.wrap===2)Q.adler=0,V(ee,31),V(ee,139),V(ee,8),ee.gzhead?(V(ee,(ee.gzhead.text?1:0)+(ee.gzhead.hcrc?2:0)+(ee.gzhead.extra?4:0)+(ee.gzhead.name?8:0)+(ee.gzhead.comment?16:0)),V(ee,255&ee.gzhead.time),V(ee,ee.gzhead.time>>8&255),V(ee,ee.gzhead.time>>16&255),V(ee,ee.gzhead.time>>24&255),V(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),V(ee,255&ee.gzhead.os),ee.gzhead.extra&&ee.gzhead.extra.length&&(V(ee,255&ee.gzhead.extra.length),V(ee,ee.gzhead.extra.length>>8&255)),ee.gzhead.hcrc&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending,0)),ee.gzindex=0,ee.status=69):(V(ee,0),V(ee,0),V(ee,0),V(ee,0),V(ee,0),V(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),V(ee,3),ee.status=D);else{var Z=p+(ee.w_bits-8<<4)<<8;Z|=(2<=ee.strategy||ee.level<2?0:ee.level<6?1:ee.level===6?2:3)<<6,ee.strstart!==0&&(Z|=32),Z+=31-Z%31,ee.status=D,Y(ee,Z),ee.strstart!==0&&(Y(ee,Q.adler>>>16),Y(ee,65535&Q.adler)),Q.adler=1}if(ee.status===69)if(ee.gzhead.extra){for(X=ee.pending;ee.gzindex<(65535&ee.gzhead.extra.length)&&(ee.pending!==ee.pending_buf_size||(ee.gzhead.hcrc&&ee.pending>X&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending-X,X)),U(Q),X=ee.pending,ee.pending!==ee.pending_buf_size));)V(ee,255&ee.gzhead.extra[ee.gzindex]),ee.gzindex++;ee.gzhead.hcrc&&ee.pending>X&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending-X,X)),ee.gzindex===ee.gzhead.extra.length&&(ee.gzindex=0,ee.status=73)}else ee.status=73;if(ee.status===73)if(ee.gzhead.name){X=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>X&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending-X,X)),U(Q),X=ee.pending,ee.pending===ee.pending_buf_size)){G=1;break}G=ee.gzindex<ee.gzhead.name.length?255&ee.gzhead.name.charCodeAt(ee.gzindex++):0,V(ee,G)}while(G!==0);ee.gzhead.hcrc&&ee.pending>X&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending-X,X)),G===0&&(ee.gzindex=0,ee.status=91)}else ee.status=91;if(ee.status===91)if(ee.gzhead.comment){X=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>X&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending-X,X)),U(Q),X=ee.pending,ee.pending===ee.pending_buf_size)){G=1;break}G=ee.gzindex<ee.gzhead.comment.length?255&ee.gzhead.comment.charCodeAt(ee.gzindex++):0,V(ee,G)}while(G!==0);ee.gzhead.hcrc&&ee.pending>X&&(Q.adler=i(Q.adler,ee.pending_buf,ee.pending-X,X)),G===0&&(ee.status=103)}else ee.status=103;if(ee.status===103&&(ee.gzhead.hcrc?(ee.pending+2>ee.pending_buf_size&&U(Q),ee.pending+2<=ee.pending_buf_size&&(V(ee,255&Q.adler),V(ee,Q.adler>>8&255),Q.adler=0,ee.status=D)):ee.status=D),ee.pending!==0){if(U(Q),Q.avail_out===0)return ee.last_flush=-1,e}else if(Q.avail_in===0&&B(ce)<=B(Ke)&&ce!==s)return j(Q,-5);if(ee.status===666&&Q.avail_in!==0)return j(Q,-5);if(Q.avail_in!==0||ee.lookahead!==0||ce!==t&&ee.status!==666){var ve=ee.strategy===2?function(ue,_e){for(var xe;;){if(ue.lookahead===0&&(se(ue),ue.lookahead===0)){if(_e===t)return N;break}if(ue.match_length=0,xe=a._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,xe&&(z(ue,!1),ue.strm.avail_out===0))return N}return ue.insert=0,_e===s?(z(ue,!0),ue.strm.avail_out===0?F:R):ue.last_lit&&(z(ue,!1),ue.strm.avail_out===0)?N:M}(ee,ce):ee.strategy===3?function(ue,_e){for(var xe,oe,fe,Te,ze=ue.window;;){if(ue.lookahead<=_){if(se(ue),ue.lookahead<=_&&_e===t)return N;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=b&&0<ue.strstart&&(oe=ze[fe=ue.strstart-1])===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]){Te=ue.strstart+_;do;while(oe===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]&&oe===ze[++fe]&&fe<Te);ue.match_length=_-(Te-fe),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=b?(xe=a._tr_tally(ue,1,ue.match_length-b),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(xe=a._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),xe&&(z(ue,!1),ue.strm.avail_out===0))return N}return ue.insert=0,_e===s?(z(ue,!0),ue.strm.avail_out===0?F:R):ue.last_lit&&(z(ue,!1),ue.strm.avail_out===0)?N:M}(ee,ce):h[ee.level].func(ee,ce);if(ve!==F&&ve!==R||(ee.status=666),ve===N||ve===F)return Q.avail_out===0&&(ee.last_flush=-1),e;if(ve===M&&(ce===1?a._tr_align(ee):ce!==5&&(a._tr_stored_block(ee,0,0,!1),ce===3&&(K(ee.head),ee.lookahead===0&&(ee.strstart=0,ee.block_start=0,ee.insert=0))),U(Q),Q.avail_out===0))return ee.last_flush=-1,e}return ce!==s?e:ee.wrap<=0?1:(ee.wrap===2?(V(ee,255&Q.adler),V(ee,Q.adler>>8&255),V(ee,Q.adler>>16&255),V(ee,Q.adler>>24&255),V(ee,255&Q.total_in),V(ee,Q.total_in>>8&255),V(ee,Q.total_in>>16&255),V(ee,Q.total_in>>24&255)):(Y(ee,Q.adler>>>16),Y(ee,65535&Q.adler)),U(Q),0<ee.wrap&&(ee.wrap=-ee.wrap),ee.pending!==0?e:1)},m.deflateEnd=function(Q){var ce;return Q&&Q.state?(ce=Q.state.status)!==L&&ce!==69&&ce!==73&&ce!==91&&ce!==103&&ce!==D&&ce!==666?j(Q,o):(Q.state=null,ce===D?j(Q,-3):e):o},m.deflateSetDictionary=function(Q,ce){var Ke,ee,X,G,Z,ve,ue,_e,xe=ce.length;if(!Q||!Q.state)return o;if((G=(Ke=Q.state).wrap)===2||G===1&&Ke.status!==L||Ke.lookahead)return o;for(G===1&&(Q.adler=r(Q.adler,ce,xe,0)),Ke.wrap=0,xe>=Ke.w_size&&(G===0&&(K(Ke.head),Ke.strstart=0,Ke.block_start=0,Ke.insert=0),_e=new c.Buf8(Ke.w_size),c.arraySet(_e,ce,xe-Ke.w_size,Ke.w_size,0),ce=_e,xe=Ke.w_size),Z=Q.avail_in,ve=Q.next_in,ue=Q.input,Q.avail_in=xe,Q.next_in=0,Q.input=ce,se(Ke);Ke.lookahead>=b;){for(ee=Ke.strstart,X=Ke.lookahead-(b-1);Ke.ins_h=(Ke.ins_h<<Ke.hash_shift^Ke.window[ee+b-1])&Ke.hash_mask,Ke.prev[ee&Ke.w_mask]=Ke.head[Ke.ins_h],Ke.head[Ke.ins_h]=ee,ee++,--X;);Ke.strstart=ee,Ke.lookahead=b-1,se(Ke)}return Ke.strstart+=Ke.lookahead,Ke.block_start=Ke.strstart,Ke.insert=Ke.lookahead,Ke.lookahead=0,Ke.match_length=Ke.prev_length=b-1,Ke.match_available=0,Q.next_in=ve,Q.input=ue,Q.avail_in=Z,Ke.wrap=G,e},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(g,S,m){"use strict";S.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(g,S,m){"use strict";S.exports=function(h,c){var a,r,i,n,t,s,e,o,l,u,f,p,v,A,y,x,C,w,b,_,O,L,D,N,M;a=h.state,r=h.next_in,N=h.input,i=r+(h.avail_in-5),n=h.next_out,M=h.output,t=n-(c-h.avail_out),s=n+(h.avail_out-257),e=a.dmax,o=a.wsize,l=a.whave,u=a.wnext,f=a.window,p=a.hold,v=a.bits,A=a.lencode,y=a.distcode,x=(1<<a.lenbits)-1,C=(1<<a.distbits)-1;e:do{v<15&&(p+=N[r++]<<v,v+=8,p+=N[r++]<<v,v+=8),w=A[p&x];t:for(;;){if(p>>>=b=w>>>24,v-=b,(b=w>>>16&255)===0)M[n++]=65535&w;else{if(!(16&b)){if((64&b)==0){w=A[(65535&w)+(p&(1<<b)-1)];continue t}if(32&b){a.mode=12;break e}h.msg="invalid literal/length code",a.mode=30;break e}_=65535&w,(b&=15)&&(v<b&&(p+=N[r++]<<v,v+=8),_+=p&(1<<b)-1,p>>>=b,v-=b),v<15&&(p+=N[r++]<<v,v+=8,p+=N[r++]<<v,v+=8),w=y[p&C];r:for(;;){if(p>>>=b=w>>>24,v-=b,!(16&(b=w>>>16&255))){if((64&b)==0){w=y[(65535&w)+(p&(1<<b)-1)];continue r}h.msg="invalid distance code",a.mode=30;break e}if(O=65535&w,v<(b&=15)&&(p+=N[r++]<<v,(v+=8)<b&&(p+=N[r++]<<v,v+=8)),e<(O+=p&(1<<b)-1)){h.msg="invalid distance too far back",a.mode=30;break e}if(p>>>=b,v-=b,(b=n-t)<O){if(l<(b=O-b)&&a.sane){h.msg="invalid distance too far back",a.mode=30;break e}if(D=f,(L=0)===u){if(L+=o-b,b<_){for(_-=b;M[n++]=f[L++],--b;);L=n-O,D=M}}else if(u<b){if(L+=o+u-b,(b-=u)<_){for(_-=b;M[n++]=f[L++],--b;);if(L=0,u<_){for(_-=b=u;M[n++]=f[L++],--b;);L=n-O,D=M}}}else if(L+=u-b,b<_){for(_-=b;M[n++]=f[L++],--b;);L=n-O,D=M}for(;2<_;)M[n++]=D[L++],M[n++]=D[L++],M[n++]=D[L++],_-=3;_&&(M[n++]=D[L++],1<_&&(M[n++]=D[L++]))}else{for(L=n-O;M[n++]=M[L++],M[n++]=M[L++],M[n++]=M[L++],2<(_-=3););_&&(M[n++]=M[L++],1<_&&(M[n++]=M[L++]))}break}}break}}while(r<i&&n<s);r-=_=v>>3,p&=(1<<(v-=_<<3))-1,h.next_in=r,h.next_out=n,h.avail_in=r<i?i-r+5:5-(r-i),h.avail_out=n<s?s-n+257:257-(n-s),a.hold=p,a.bits=v}},{}],49:[function(g,S,m){"use strict";var h=g("../utils/common"),c=g("./adler32"),a=g("./crc32"),r=g("./inffast"),i=g("./inftrees"),n=1,t=2,s=0,e=-2,o=1,l=852,u=592;function f(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function p(){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 h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(L){var D;return L&&L.state?(D=L.state,L.total_in=L.total_out=D.total=0,L.msg="",D.wrap&&(L.adler=1&D.wrap),D.mode=o,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new h.Buf32(l),D.distcode=D.distdyn=new h.Buf32(u),D.sane=1,D.back=-1,s):e}function A(L){var D;return L&&L.state?((D=L.state).wsize=0,D.whave=0,D.wnext=0,v(L)):e}function y(L,D){var N,M;return L&&L.state?(M=L.state,D<0?(N=0,D=-D):(N=1+(D>>4),D<48&&(D&=15)),D&&(D<8||15<D)?e:(M.window!==null&&M.wbits!==D&&(M.window=null),M.wrap=N,M.wbits=D,A(L))):e}function x(L,D){var N,M;return L?(M=new p,(L.state=M).window=null,(N=y(L,D))!==s&&(L.state=null),N):e}var C,w,b=!0;function _(L){if(b){var D;for(C=new h.Buf32(512),w=new h.Buf32(32),D=0;D<144;)L.lens[D++]=8;for(;D<256;)L.lens[D++]=9;for(;D<280;)L.lens[D++]=7;for(;D<288;)L.lens[D++]=8;for(i(n,L.lens,0,288,C,0,L.work,{bits:9}),D=0;D<32;)L.lens[D++]=5;i(t,L.lens,0,32,w,0,L.work,{bits:5}),b=!1}L.lencode=C,L.lenbits=9,L.distcode=w,L.distbits=5}function O(L,D,N,M){var F,R=L.state;return R.window===null&&(R.wsize=1<<R.wbits,R.wnext=0,R.whave=0,R.window=new h.Buf8(R.wsize)),M>=R.wsize?(h.arraySet(R.window,D,N-R.wsize,R.wsize,0),R.wnext=0,R.whave=R.wsize):(M<(F=R.wsize-R.wnext)&&(F=M),h.arraySet(R.window,D,N-M,F,R.wnext),(M-=F)?(h.arraySet(R.window,D,N-M,M,0),R.wnext=M,R.whave=R.wsize):(R.wnext+=F,R.wnext===R.wsize&&(R.wnext=0),R.whave<R.wsize&&(R.whave+=F))),0}m.inflateReset=A,m.inflateReset2=y,m.inflateResetKeep=v,m.inflateInit=function(L){return x(L,15)},m.inflateInit2=x,m.inflate=function(L,D){var N,M,F,R,j,B,K,U,z,V,Y,J,se,$,ae,ge,pe,Ne,de,Le,Q,ce,Ke,ee,X=0,G=new h.Buf8(4),Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return e;(N=L.state).mode===12&&(N.mode=13),j=L.next_out,F=L.output,K=L.avail_out,R=L.next_in,M=L.input,B=L.avail_in,U=N.hold,z=N.bits,V=B,Y=K,ce=s;e:for(;;)switch(N.mode){case o:if(N.wrap===0){N.mode=13;break}for(;z<16;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(2&N.wrap&&U===35615){G[N.check=0]=255&U,G[1]=U>>>8&255,N.check=a(N.check,G,2,0),z=U=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&U)<<8)+(U>>8))%31){L.msg="incorrect header check",N.mode=30;break}if((15&U)!=8){L.msg="unknown compression method",N.mode=30;break}if(z-=4,Q=8+(15&(U>>>=4)),N.wbits===0)N.wbits=Q;else if(Q>N.wbits){L.msg="invalid window size",N.mode=30;break}N.dmax=1<<Q,L.adler=N.check=1,N.mode=512&U?10:12,z=U=0;break;case 2:for(;z<16;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(N.flags=U,(255&N.flags)!=8){L.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){L.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=U>>8&1),512&N.flags&&(G[0]=255&U,G[1]=U>>>8&255,N.check=a(N.check,G,2,0)),z=U=0,N.mode=3;case 3:for(;z<32;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}N.head&&(N.head.time=U),512&N.flags&&(G[0]=255&U,G[1]=U>>>8&255,G[2]=U>>>16&255,G[3]=U>>>24&255,N.check=a(N.check,G,4,0)),z=U=0,N.mode=4;case 4:for(;z<16;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}N.head&&(N.head.xflags=255&U,N.head.os=U>>8),512&N.flags&&(G[0]=255&U,G[1]=U>>>8&255,N.check=a(N.check,G,2,0)),z=U=0,N.mode=5;case 5:if(1024&N.flags){for(;z<16;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}N.length=U,N.head&&(N.head.extra_len=U),512&N.flags&&(G[0]=255&U,G[1]=U>>>8&255,N.check=a(N.check,G,2,0)),z=U=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(B<(J=N.length)&&(J=B),J&&(N.head&&(Q=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),h.arraySet(N.head.extra,M,R,J,Q)),512&N.flags&&(N.check=a(N.check,M,J,R)),B-=J,R+=J,N.length-=J),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(B===0)break e;for(J=0;Q=M[R+J++],N.head&&Q&&N.length<65536&&(N.head.name+=String.fromCharCode(Q)),Q&&J<B;);if(512&N.flags&&(N.check=a(N.check,M,J,R)),B-=J,R+=J,Q)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(B===0)break e;for(J=0;Q=M[R+J++],N.head&&Q&&N.length<65536&&(N.head.comment+=String.fromCharCode(Q)),Q&&J<B;);if(512&N.flags&&(N.check=a(N.check,M,J,R)),B-=J,R+=J,Q)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;z<16;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(U!==(65535&N.check)){L.msg="header crc mismatch",N.mode=30;break}z=U=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),L.adler=N.check=0,N.mode=12;break;case 10:for(;z<32;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}L.adler=N.check=f(U),z=U=0,N.mode=11;case 11:if(N.havedict===0)return L.next_out=j,L.avail_out=K,L.next_in=R,L.avail_in=B,N.hold=U,N.bits=z,2;L.adler=N.check=1,N.mode=12;case 12:if(D===5||D===6)break e;case 13:if(N.last){U>>>=7&z,z-=7&z,N.mode=27;break}for(;z<3;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}switch(N.last=1&U,z-=1,3&(U>>>=1)){case 0:N.mode=14;break;case 1:if(_(N),N.mode=20,D!==6)break;U>>>=2,z-=2;break e;case 2:N.mode=17;break;case 3:L.msg="invalid block type",N.mode=30}U>>>=2,z-=2;break;case 14:for(U>>>=7&z,z-=7&z;z<32;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if((65535&U)!=(U>>>16^65535)){L.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&U,z=U=0,N.mode=15,D===6)break e;case 15:N.mode=16;case 16:if(J=N.length){if(B<J&&(J=B),K<J&&(J=K),J===0)break e;h.arraySet(F,M,R,J,j),B-=J,R+=J,K-=J,j+=J,N.length-=J;break}N.mode=12;break;case 17:for(;z<14;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(N.nlen=257+(31&U),U>>>=5,z-=5,N.ndist=1+(31&U),U>>>=5,z-=5,N.ncode=4+(15&U),U>>>=4,z-=4,286<N.nlen||30<N.ndist){L.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;z<3;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}N.lens[Z[N.have++]]=7&U,U>>>=3,z-=3}for(;N.have<19;)N.lens[Z[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,Ke={bits:N.lenbits},ce=i(0,N.lens,0,19,N.lencode,0,N.work,Ke),N.lenbits=Ke.bits,ce){L.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;ge=(X=N.lencode[U&(1<<N.lenbits)-1])>>>16&255,pe=65535&X,!((ae=X>>>24)<=z);){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(pe<16)U>>>=ae,z-=ae,N.lens[N.have++]=pe;else{if(pe===16){for(ee=ae+2;z<ee;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(U>>>=ae,z-=ae,N.have===0){L.msg="invalid bit length repeat",N.mode=30;break}Q=N.lens[N.have-1],J=3+(3&U),U>>>=2,z-=2}else if(pe===17){for(ee=ae+3;z<ee;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}z-=ae,Q=0,J=3+(7&(U>>>=ae)),U>>>=3,z-=3}else{for(ee=ae+7;z<ee;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}z-=ae,Q=0,J=11+(127&(U>>>=ae)),U>>>=7,z-=7}if(N.have+J>N.nlen+N.ndist){L.msg="invalid bit length repeat",N.mode=30;break}for(;J--;)N.lens[N.have++]=Q}}if(N.mode===30)break;if(N.lens[256]===0){L.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,Ke={bits:N.lenbits},ce=i(n,N.lens,0,N.nlen,N.lencode,0,N.work,Ke),N.lenbits=Ke.bits,ce){L.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,Ke={bits:N.distbits},ce=i(t,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,Ke),N.distbits=Ke.bits,ce){L.msg="invalid distances set",N.mode=30;break}if(N.mode=20,D===6)break e;case 20:N.mode=21;case 21:if(6<=B&&258<=K){L.next_out=j,L.avail_out=K,L.next_in=R,L.avail_in=B,N.hold=U,N.bits=z,r(L,Y),j=L.next_out,F=L.output,K=L.avail_out,R=L.next_in,M=L.input,B=L.avail_in,U=N.hold,z=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;ge=(X=N.lencode[U&(1<<N.lenbits)-1])>>>16&255,pe=65535&X,!((ae=X>>>24)<=z);){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(ge&&(240&ge)==0){for(Ne=ae,de=ge,Le=pe;ge=(X=N.lencode[Le+((U&(1<<Ne+de)-1)>>Ne)])>>>16&255,pe=65535&X,!(Ne+(ae=X>>>24)<=z);){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}U>>>=Ne,z-=Ne,N.back+=Ne}if(U>>>=ae,z-=ae,N.back+=ae,N.length=pe,ge===0){N.mode=26;break}if(32&ge){N.back=-1,N.mode=12;break}if(64&ge){L.msg="invalid literal/length code",N.mode=30;break}N.extra=15&ge,N.mode=22;case 22:if(N.extra){for(ee=N.extra;z<ee;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}N.length+=U&(1<<N.extra)-1,U>>>=N.extra,z-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;ge=(X=N.distcode[U&(1<<N.distbits)-1])>>>16&255,pe=65535&X,!((ae=X>>>24)<=z);){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if((240&ge)==0){for(Ne=ae,de=ge,Le=pe;ge=(X=N.distcode[Le+((U&(1<<Ne+de)-1)>>Ne)])>>>16&255,pe=65535&X,!(Ne+(ae=X>>>24)<=z);){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}U>>>=Ne,z-=Ne,N.back+=Ne}if(U>>>=ae,z-=ae,N.back+=ae,64&ge){L.msg="invalid distance code",N.mode=30;break}N.offset=pe,N.extra=15&ge,N.mode=24;case 24:if(N.extra){for(ee=N.extra;z<ee;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}N.offset+=U&(1<<N.extra)-1,U>>>=N.extra,z-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){L.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(K===0)break e;if(J=Y-K,N.offset>J){if((J=N.offset-J)>N.whave&&N.sane){L.msg="invalid distance too far back",N.mode=30;break}se=J>N.wnext?(J-=N.wnext,N.wsize-J):N.wnext-J,J>N.length&&(J=N.length),$=N.window}else $=F,se=j-N.offset,J=N.length;for(K<J&&(J=K),K-=J,N.length-=J;F[j++]=$[se++],--J;);N.length===0&&(N.mode=21);break;case 26:if(K===0)break e;F[j++]=N.length,K--,N.mode=21;break;case 27:if(N.wrap){for(;z<32;){if(B===0)break e;B--,U|=M[R++]<<z,z+=8}if(Y-=K,L.total_out+=Y,N.total+=Y,Y&&(L.adler=N.check=N.flags?a(N.check,F,Y,j-Y):c(N.check,F,Y,j-Y)),Y=K,(N.flags?U:f(U))!==N.check){L.msg="incorrect data check",N.mode=30;break}z=U=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;z<32;){if(B===0)break e;B--,U+=M[R++]<<z,z+=8}if(U!==(4294967295&N.total)){L.msg="incorrect length check",N.mode=30;break}z=U=0}N.mode=29;case 29:ce=1;break e;case 30:ce=-3;break e;case 31:return-4;case 32:default:return e}return L.next_out=j,L.avail_out=K,L.next_in=R,L.avail_in=B,N.hold=U,N.bits=z,(N.wsize||Y!==L.avail_out&&N.mode<30&&(N.mode<27||D!==4))&&O(L,L.output,L.next_out,Y-L.avail_out)?(N.mode=31,-4):(V-=L.avail_in,Y-=L.avail_out,L.total_in+=V,L.total_out+=Y,N.total+=Y,N.wrap&&Y&&(L.adler=N.check=N.flags?a(N.check,F,Y,L.next_out-Y):c(N.check,F,Y,L.next_out-Y)),L.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(V==0&&Y===0||D===4)&&ce===s&&(ce=-5),ce)},m.inflateEnd=function(L){if(!L||!L.state)return e;var D=L.state;return D.window&&(D.window=null),L.state=null,s},m.inflateGetHeader=function(L,D){var N;return L&&L.state?(2&(N=L.state).wrap)==0?e:((N.head=D).done=!1,s):e},m.inflateSetDictionary=function(L,D){var N,M=D.length;return L&&L.state?(N=L.state).wrap!==0&&N.mode!==11?e:N.mode===11&&c(1,D,M,0)!==N.check?-3:O(L,D,M,M)?(N.mode=31,-4):(N.havedict=1,s):e},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(g,S,m){"use strict";var h=g("../utils/common"),c=[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],a=[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],r=[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],i=[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];S.exports=function(n,t,s,e,o,l,u,f){var p,v,A,y,x,C,w,b,_,O=f.bits,L=0,D=0,N=0,M=0,F=0,R=0,j=0,B=0,K=0,U=0,z=null,V=0,Y=new h.Buf16(16),J=new h.Buf16(16),se=null,$=0;for(L=0;L<=15;L++)Y[L]=0;for(D=0;D<e;D++)Y[t[s+D]]++;for(F=O,M=15;1<=M&&Y[M]===0;M--);if(M<F&&(F=M),M===0)return o[l++]=20971520,o[l++]=20971520,f.bits=1,0;for(N=1;N<M&&Y[N]===0;N++);for(F<N&&(F=N),L=B=1;L<=15;L++)if(B<<=1,(B-=Y[L])<0)return-1;if(0<B&&(n===0||M!==1))return-1;for(J[1]=0,L=1;L<15;L++)J[L+1]=J[L]+Y[L];for(D=0;D<e;D++)t[s+D]!==0&&(u[J[t[s+D]]++]=D);if(C=n===0?(z=se=u,19):n===1?(z=c,V-=257,se=a,$-=257,256):(z=r,se=i,-1),L=N,x=l,j=D=U=0,A=-1,y=(K=1<<(R=F))-1,n===1&&852<K||n===2&&592<K)return 1;for(;;){for(w=L-j,_=u[D]<C?(b=0,u[D]):u[D]>C?(b=se[$+u[D]],z[V+u[D]]):(b=96,0),p=1<<L-j,N=v=1<<R;o[x+(U>>j)+(v-=p)]=w<<24|b<<16|_|0,v!==0;);for(p=1<<L-1;U&p;)p>>=1;if(p!==0?(U&=p-1,U+=p):U=0,D++,--Y[L]==0){if(L===M)break;L=t[s+u[D]]}if(F<L&&(U&y)!==A){for(j===0&&(j=F),x+=N,B=1<<(R=L-j);R+j<M&&!((B-=Y[R+j])<=0);)R++,B<<=1;if(K+=1<<R,n===1&&852<K||n===2&&592<K)return 1;o[A=U&y]=F<<24|R<<16|x-l|0}}return U!==0&&(o[x+U]=L-j<<24|64<<16|0),f.bits=F,0}},{"../utils/common":41}],51:[function(g,S,m){"use strict";S.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(g,S,m){"use strict";var h=g("../utils/common"),c=0,a=1;function r(X){for(var G=X.length;0<=--G;)X[G]=0}var i=0,n=29,t=256,s=t+1+n,e=30,o=19,l=2*s+1,u=15,f=16,p=7,v=256,A=16,y=17,x=18,C=[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],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(s+2));r(O);var L=new Array(2*e);r(L);var D=new Array(512);r(D);var N=new Array(256);r(N);var M=new Array(n);r(M);var F,R,j,B=new Array(e);function K(X,G,Z,ve,ue){this.static_tree=X,this.extra_bits=G,this.extra_base=Z,this.elems=ve,this.max_length=ue,this.has_stree=X&&X.length}function U(X,G){this.dyn_tree=X,this.max_code=0,this.stat_desc=G}function z(X){return X<256?D[X]:D[256+(X>>>7)]}function V(X,G){X.pending_buf[X.pending++]=255&G,X.pending_buf[X.pending++]=G>>>8&255}function Y(X,G,Z){X.bi_valid>f-Z?(X.bi_buf|=G<<X.bi_valid&65535,V(X,X.bi_buf),X.bi_buf=G>>f-X.bi_valid,X.bi_valid+=Z-f):(X.bi_buf|=G<<X.bi_valid&65535,X.bi_valid+=Z)}function J(X,G,Z){Y(X,Z[2*G],Z[2*G+1])}function se(X,G){for(var Z=0;Z|=1&X,X>>>=1,Z<<=1,0<--G;);return Z>>>1}function $(X,G,Z){var ve,ue,_e=new Array(u+1),xe=0;for(ve=1;ve<=u;ve++)_e[ve]=xe=xe+Z[ve-1]<<1;for(ue=0;ue<=G;ue++){var oe=X[2*ue+1];oe!==0&&(X[2*ue]=se(_e[oe]++,oe))}}function ae(X){var G;for(G=0;G<s;G++)X.dyn_ltree[2*G]=0;for(G=0;G<e;G++)X.dyn_dtree[2*G]=0;for(G=0;G<o;G++)X.bl_tree[2*G]=0;X.dyn_ltree[2*v]=1,X.opt_len=X.static_len=0,X.last_lit=X.matches=0}function ge(X){8<X.bi_valid?V(X,X.bi_buf):0<X.bi_valid&&(X.pending_buf[X.pending++]=X.bi_buf),X.bi_buf=0,X.bi_valid=0}function pe(X,G,Z,ve){var ue=2*G,_e=2*Z;return X[ue]<X[_e]||X[ue]===X[_e]&&ve[G]<=ve[Z]}function Ne(X,G,Z){for(var ve=X.heap[Z],ue=Z<<1;ue<=X.heap_len&&(ue<X.heap_len&&pe(G,X.heap[ue+1],X.heap[ue],X.depth)&&ue++,!pe(G,ve,X.heap[ue],X.depth));)X.heap[Z]=X.heap[ue],Z=ue,ue<<=1;X.heap[Z]=ve}function de(X,G,Z){var ve,ue,_e,xe,oe=0;if(X.last_lit!==0)for(;ve=X.pending_buf[X.d_buf+2*oe]<<8|X.pending_buf[X.d_buf+2*oe+1],ue=X.pending_buf[X.l_buf+oe],oe++,ve===0?J(X,ue,G):(J(X,(_e=N[ue])+t+1,G),(xe=C[_e])!==0&&Y(X,ue-=M[_e],xe),J(X,_e=z(--ve),Z),(xe=w[_e])!==0&&Y(X,ve-=B[_e],xe)),oe<X.last_lit;);J(X,v,G)}function Le(X,G){var Z,ve,ue,_e=G.dyn_tree,xe=G.stat_desc.static_tree,oe=G.stat_desc.has_stree,fe=G.stat_desc.elems,Te=-1;for(X.heap_len=0,X.heap_max=l,Z=0;Z<fe;Z++)_e[2*Z]!==0?(X.heap[++X.heap_len]=Te=Z,X.depth[Z]=0):_e[2*Z+1]=0;for(;X.heap_len<2;)_e[2*(ue=X.heap[++X.heap_len]=Te<2?++Te:0)]=1,X.depth[ue]=0,X.opt_len--,oe&&(X.static_len-=xe[2*ue+1]);for(G.max_code=Te,Z=X.heap_len>>1;1<=Z;Z--)Ne(X,_e,Z);for(ue=fe;Z=X.heap[1],X.heap[1]=X.heap[X.heap_len--],Ne(X,_e,1),ve=X.heap[1],X.heap[--X.heap_max]=Z,X.heap[--X.heap_max]=ve,_e[2*ue]=_e[2*Z]+_e[2*ve],X.depth[ue]=(X.depth[Z]>=X.depth[ve]?X.depth[Z]:X.depth[ve])+1,_e[2*Z+1]=_e[2*ve+1]=ue,X.heap[1]=ue++,Ne(X,_e,1),2<=X.heap_len;);X.heap[--X.heap_max]=X.heap[1],function(ze,it){var et,Oe,gt,Ge,wt,xt,Ct=it.dyn_tree,Dt=it.max_code,Ht=it.stat_desc.static_tree,Je=it.stat_desc.has_stree,ye=it.stat_desc.extra_bits,ie=it.stat_desc.extra_base,bt=it.stat_desc.max_length,qe=0;for(Ge=0;Ge<=u;Ge++)ze.bl_count[Ge]=0;for(Ct[2*ze.heap[ze.heap_max]+1]=0,et=ze.heap_max+1;et<l;et++)bt<(Ge=Ct[2*Ct[2*(Oe=ze.heap[et])+1]+1]+1)&&(Ge=bt,qe++),Ct[2*Oe+1]=Ge,Dt<Oe||(ze.bl_count[Ge]++,wt=0,ie<=Oe&&(wt=ye[Oe-ie]),xt=Ct[2*Oe],ze.opt_len+=xt*(Ge+wt),Je&&(ze.static_len+=xt*(Ht[2*Oe+1]+wt)));if(qe!==0){do{for(Ge=bt-1;ze.bl_count[Ge]===0;)Ge--;ze.bl_count[Ge]--,ze.bl_count[Ge+1]+=2,ze.bl_count[bt]--,qe-=2}while(0<qe);for(Ge=bt;Ge!==0;Ge--)for(Oe=ze.bl_count[Ge];Oe!==0;)Dt<(gt=ze.heap[--et])||(Ct[2*gt+1]!==Ge&&(ze.opt_len+=(Ge-Ct[2*gt+1])*Ct[2*gt],Ct[2*gt+1]=Ge),Oe--)}}(X,G),$(_e,Te,X.bl_count)}function Q(X,G,Z){var ve,ue,_e=-1,xe=G[1],oe=0,fe=7,Te=4;for(xe===0&&(fe=138,Te=3),G[2*(Z+1)+1]=65535,ve=0;ve<=Z;ve++)ue=xe,xe=G[2*(ve+1)+1],++oe<fe&&ue===xe||(oe<Te?X.bl_tree[2*ue]+=oe:ue!==0?(ue!==_e&&X.bl_tree[2*ue]++,X.bl_tree[2*A]++):oe<=10?X.bl_tree[2*y]++:X.bl_tree[2*x]++,_e=ue,Te=(oe=0)===xe?(fe=138,3):ue===xe?(fe=6,3):(fe=7,4))}function ce(X,G,Z){var ve,ue,_e=-1,xe=G[1],oe=0,fe=7,Te=4;for(xe===0&&(fe=138,Te=3),ve=0;ve<=Z;ve++)if(ue=xe,xe=G[2*(ve+1)+1],!(++oe<fe&&ue===xe)){if(oe<Te)for(;J(X,ue,X.bl_tree),--oe!=0;);else ue!==0?(ue!==_e&&(J(X,ue,X.bl_tree),oe--),J(X,A,X.bl_tree),Y(X,oe-3,2)):oe<=10?(J(X,y,X.bl_tree),Y(X,oe-3,3)):(J(X,x,X.bl_tree),Y(X,oe-11,7));_e=ue,Te=(oe=0)===xe?(fe=138,3):ue===xe?(fe=6,3):(fe=7,4)}}r(B);var Ke=!1;function ee(X,G,Z,ve){Y(X,(i<<1)+(ve?1:0),3),function(ue,_e,xe,oe){ge(ue),oe&&(V(ue,xe),V(ue,~xe)),h.arraySet(ue.pending_buf,ue.window,_e,xe,ue.pending),ue.pending+=xe}(X,G,Z,!0)}m._tr_init=function(X){Ke||(function(){var G,Z,ve,ue,_e,xe=new Array(u+1);for(ue=ve=0;ue<n-1;ue++)for(M[ue]=ve,G=0;G<1<<C[ue];G++)N[ve++]=ue;for(N[ve-1]=ue,ue=_e=0;ue<16;ue++)for(B[ue]=_e,G=0;G<1<<w[ue];G++)D[_e++]=ue;for(_e>>=7;ue<e;ue++)for(B[ue]=_e<<7,G=0;G<1<<w[ue]-7;G++)D[256+_e++]=ue;for(Z=0;Z<=u;Z++)xe[Z]=0;for(G=0;G<=143;)O[2*G+1]=8,G++,xe[8]++;for(;G<=255;)O[2*G+1]=9,G++,xe[9]++;for(;G<=279;)O[2*G+1]=7,G++,xe[7]++;for(;G<=287;)O[2*G+1]=8,G++,xe[8]++;for($(O,s+1,xe),G=0;G<e;G++)L[2*G+1]=5,L[2*G]=se(G,5);F=new K(O,C,t+1,s,u),R=new K(L,w,0,e,u),j=new K(new Array(0),b,0,o,p)}(),Ke=!0),X.l_desc=new U(X.dyn_ltree,F),X.d_desc=new U(X.dyn_dtree,R),X.bl_desc=new U(X.bl_tree,j),X.bi_buf=0,X.bi_valid=0,ae(X)},m._tr_stored_block=ee,m._tr_flush_block=function(X,G,Z,ve){var ue,_e,xe=0;0<X.level?(X.strm.data_type===2&&(X.strm.data_type=function(oe){var fe,Te=4093624447;for(fe=0;fe<=31;fe++,Te>>>=1)if(1&Te&&oe.dyn_ltree[2*fe]!==0)return c;if(oe.dyn_ltree[18]!==0||oe.dyn_ltree[20]!==0||oe.dyn_ltree[26]!==0)return a;for(fe=32;fe<t;fe++)if(oe.dyn_ltree[2*fe]!==0)return a;return c}(X)),Le(X,X.l_desc),Le(X,X.d_desc),xe=function(oe){var fe;for(Q(oe,oe.dyn_ltree,oe.l_desc.max_code),Q(oe,oe.dyn_dtree,oe.d_desc.max_code),Le(oe,oe.bl_desc),fe=o-1;3<=fe&&oe.bl_tree[2*_[fe]+1]===0;fe--);return oe.opt_len+=3*(fe+1)+5+5+4,fe}(X),ue=X.opt_len+3+7>>>3,(_e=X.static_len+3+7>>>3)<=ue&&(ue=_e)):ue=_e=Z+5,Z+4<=ue&&G!==-1?ee(X,G,Z,ve):X.strategy===4||_e===ue?(Y(X,2+(ve?1:0),3),de(X,O,L)):(Y(X,4+(ve?1:0),3),function(oe,fe,Te,ze){var it;for(Y(oe,fe-257,5),Y(oe,Te-1,5),Y(oe,ze-4,4),it=0;it<ze;it++)Y(oe,oe.bl_tree[2*_[it]+1],3);ce(oe,oe.dyn_ltree,fe-1),ce(oe,oe.dyn_dtree,Te-1)}(X,X.l_desc.max_code+1,X.d_desc.max_code+1,xe+1),de(X,X.dyn_ltree,X.dyn_dtree)),ae(X),ve&&ge(X)},m._tr_tally=function(X,G,Z){return X.pending_buf[X.d_buf+2*X.last_lit]=G>>>8&255,X.pending_buf[X.d_buf+2*X.last_lit+1]=255&G,X.pending_buf[X.l_buf+X.last_lit]=255&Z,X.last_lit++,G===0?X.dyn_ltree[2*Z]++:(X.matches++,G--,X.dyn_ltree[2*(N[Z]+t+1)]++,X.dyn_dtree[2*z(G)]++),X.last_lit===X.lit_bufsize-1},m._tr_align=function(X){Y(X,2,3),J(X,v,O),function(G){G.bi_valid===16?(V(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)}(X)}},{"../utils/common":41}],53:[function(g,S,m){"use strict";S.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(g,S,m){"use strict";S.exports=typeof setImmediate=="function"?setImmediate:function(){var h=[].slice.apply(arguments);h.splice(1,0,0),setTimeout.apply(null,h)}},{}]},{},[10])(10)})}).call(this,d("HDXh").Buffer,d("yLpj"))},xRUu:function(H,k,d){d("hJvP"),d("hFmY"),d("sAZ8")},xSIq:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var I={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"};k.default=I},xSat:function(H,k){var d={axisPointer:1,tooltip:1,brush:1};function I(E,T,g){var S=T.getComponentByElement(E.topTarget),m=S&&S.coordinateSystem;return S&&S!==g&&!d[S.mainType]&&m&&m.model!==g}k.onIrrelevantElement=I},xTNl:function(H,k){var d=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],I={color:d,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],d]};H.exports=I},xb2K:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("5yev")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="RedoOutlined";var c=g.forwardRef(h);k.default=c},xiyX:function(H,k,d){var I=d("bYtY"),E=d("bLfw"),T=d("nkfE"),g=d("ICMv"),S=E.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),m={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,r){return r.type||(r.data?"category":"value")}I.merge(S.prototype,g),T("single",S,h,m);var c=S;H.exports=c},xlC8:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=I;function I(E,T,g,S){for(var m=E&65535|0,h=E>>>16&65535|0,c=0;g!==0;){c=g>2e3?2e3:g,g-=c;do m=m+T[S++]|0,h=h+m|0;while(--c);m%=65521,h%=65521}return m|h<<16|0}},xvlK:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="PlusOutlined";var h=k.a=E.forwardRef(m)},xzDV:function(H,k,d){},"y+Vt":function(H,k,d){var I=d("Gev7"),E=d("bYtY"),T=d("IMiH"),g=d("2DNl"),S=d("3C/r"),m=S.prototype.getCanvasPattern,h=Math.abs,c=new T(!0);function a(i){I.call(this,i),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,t){var s=this.style,e=this.path||c,o=s.hasStroke(),l=s.hasFill(),u=s.fill,f=s.stroke,p=l&&!!u.colorStops,v=o&&!!f.colorStops,A=l&&!!u.image,y=o&&!!f.image;if(s.bind(n,this,t),this.setTransform(n),this.__dirty){var x;p&&(x=x||this.getBoundingRect(),this._fillGradient=s.getGradient(n,u,x)),v&&(x=x||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,f,x))}p?n.fillStyle=this._fillGradient:A&&(n.fillStyle=m.call(u,n)),v?n.strokeStyle=this._strokeGradient:y&&(n.strokeStyle=m.call(f,n));var C=s.lineDash,w=s.lineDashOffset,b=!!n.setLineDash,_=this.getGlobalScale();if(e.setScale(_[0],_[1],this.segmentIgnoreThreshold),this.__dirtyPath||C&&!b&&o?(e.beginPath(n),C&&!b&&(e.setLineDash(C),e.setLineDashOffset(w)),this.buildPath(e,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),l)if(s.fillOpacity!=null){var O=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,e.fill(n),n.globalAlpha=O}else e.fill(n);if(C&&b&&(n.setLineDash(C),n.lineDashOffset=w),o)if(s.strokeOpacity!=null){var O=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,e.stroke(n),n.globalAlpha=O}else e.stroke(n);C&&b&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,t,s){},createPathProxy:function(){this.path=new T},getBoundingRect:function(){var n=this._rect,t=this.style,s=!n;if(s){var e=this.path;e||(e=this.path=new T),this.__dirtyPath&&(e.beginPath(),this.buildPath(e,this.shape,!1)),n=e.getBoundingRect()}if(this._rect=n,t.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){o.copy(n);var l=t.lineWidth,u=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(l=Math.max(l,this.strokeContainThreshold||4)),u>1e-10&&(o.width+=l/u,o.height+=l/u,o.x-=l/u/2,o.y-=l/u/2)}return o}return n},contain:function(n,t){var s=this.transformCoordToLocal(n,t),e=this.getBoundingRect(),o=this.style;if(n=s[0],t=s[1],e.contain(n,t)){var l=this.path.data;if(o.hasStroke()){var u=o.lineWidth,f=o.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(o.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),g.containStroke(l,u/f,n,t)))return!0}if(o.hasFill())return g.contain(l,n,t)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,t){n==="shape"?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):I.prototype.attrKV.call(this,n,t)},setShape:function(n,t){var s=this.shape;if(s){if(E.isObject(n))for(var e in n)n.hasOwnProperty(e)&&(s[e]=n[e]);else s[n]=t;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&h(n[0]-1)>1e-10&&h(n[3]-1)>1e-10?Math.sqrt(h(n[0]*n[3]-n[2]*n[1])):1}},a.extend=function(i){var n=function(e){a.call(this,e),i.style&&this.style.extendFrom(i.style,!1);var o=i.shape;if(o){this.shape=this.shape||{};var l=this.shape;for(var u in o)!l.hasOwnProperty(u)&&o.hasOwnProperty(u)&&(l[u]=o[u])}i.init&&i.init.call(this,e)};E.inherits(n,a);for(var t in i)t!=="style"&&t!=="shape"&&(n.prototype[t]=i[t]);return n},E.inherits(a,I);var r=a;H.exports=r},"y+lR":function(H,k,d){var I=d("bYtY"),E=d("mFDi"),T=d("z35g");function g(m){T.call(this,m)}g.prototype={constructor:g,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(m){var h=this.getAxis("x"),c=this.getAxis("y");return h.contain(h.toLocalCoord(m[0]))&&c.contain(c.toLocalCoord(m[1]))},containData:function(m){return this.getAxis("x").containData(m[0])&&this.getAxis("y").containData(m[1])},dataToPoint:function(m,h,c){var a=this.getAxis("x"),r=this.getAxis("y");return c=c||[],c[0]=a.toGlobalCoord(a.dataToCoord(m[0])),c[1]=r.toGlobalCoord(r.dataToCoord(m[1])),c},clampData:function(m,h){var c=this.getAxis("x").scale,a=this.getAxis("y").scale,r=c.getExtent(),i=a.getExtent(),n=c.parse(m[0]),t=a.parse(m[1]);return h=h||[],h[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),h[1]=Math.min(Math.max(Math.min(i[0],i[1]),t),Math.max(i[0],i[1])),h},pointToData:function(m,h){var c=this.getAxis("x"),a=this.getAxis("y");return h=h||[],h[0]=c.coordToData(c.toLocalCoord(m[0])),h[1]=a.coordToData(a.toLocalCoord(m[1])),h},getOtherAxis:function(m){return this.getAxis(m.dim==="x"?"y":"x")},getArea:function(){var m=this.getAxis("x").getGlobalExtent(),h=this.getAxis("y").getGlobalExtent(),c=Math.min(m[0],m[1]),a=Math.min(h[0],h[1]),r=Math.max(m[0],m[1])-c,i=Math.max(h[0],h[1])-a,n=new E(c,a,r,i);return n}},I.inherits(g,T);var S=g;H.exports=S},"y0+3":function(H,k,d){"use strict";d.d(k,"a",function(){return i}),d.d(k,"b",function(){return t});var I=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function g(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function S(s,e,o){if(e=e.toLowerCase(),o==="auto"){if(e==="height")return s.offsetHeight;if(e==="width")return s.offsetWidth}return e in E||(E[e]=I.test(e)),E[e]?parseFloat(o)||0:o}function m(s,e){var o=arguments.length,l=g(s);return e=T[e]?"cssFloat"in s.style?"cssFloat":"styleFloat":e,o===1?l:S(s,e,l[e]||s.style[e])}function h(s,e,o){var l=arguments.length;if(e=T[e]?"cssFloat"in s.style?"cssFloat":"styleFloat":e,l===3)return typeof o=="number"&&I.test(e)&&(o="".concat(o,"px")),s.style[e]=o,o;for(var u in e)e.hasOwnProperty(u)&&h(s,u,e[u]);return g(s)}function c(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function a(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function r(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:e}}function i(){var s=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:e}}function n(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function t(s){var e=s.getBoundingClientRect(),o=document.documentElement;return{left:e.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}},"y1t/":function(H,k,d){"use strict";d.d(k,"a",function(){return I});function I(E){if(E==null)throw new TypeError("Cannot destructure undefined")}},y23F:function(H,k){function d(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}d.prototype={constructor:d,_dragStart:function(g){for(var S=g.target;S&&!S.draggable;)S=S.parent;S&&(this._draggingTarget=S,S.dragging=!0,this._x=g.offsetX,this._y=g.offsetY,this.dispatchToElement(I(S,g),"dragstart",g.event))},_drag:function(g){var S=this._draggingTarget;if(S){var m=g.offsetX,h=g.offsetY,c=m-this._x,a=h-this._y;this._x=m,this._y=h,S.drift(c,a,g),this.dispatchToElement(I(S,g),"drag",g.event);var r=this.findHover(m,h,S).target,i=this._dropTarget;this._dropTarget=r,S!==r&&(i&&r!==i&&this.dispatchToElement(I(i,g),"dragleave",g.event),r&&r!==i&&this.dispatchToElement(I(r,g),"dragenter",g.event))}},_dragEnd:function(g){var S=this._draggingTarget;S&&(S.dragging=!1),this.dispatchToElement(I(S,g),"dragend",g.event),this._dropTarget&&this.dispatchToElement(I(this._dropTarget,g),"drop",g.event),this._draggingTarget=null,this._dropTarget=null}};function I(T,g){return{target:T,topTarget:g&&g.topTarget}}var E=d;H.exports=E},y2l5:function(H,k,d){var I=d("MwEJ"),E=d("T4UG"),T=E.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(g,S){return I(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var g=this.option.progressive;return g==null?this.option.large?5e3:this.get("progressive"):g},getProgressiveThreshold:function(){var g=this.option.progressiveThreshold;return g==null?this.option.large?1e4:this.get("progressiveThreshold"):g},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});H.exports=T},y3Kf:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="UpOutlined";var h=k.a=E.forwardRef(m)},y3NT:function(H,k,d){var I=d("OELB"),E=I.parsePercent,T=d("bYtY"),g=Math.PI/180;function S(c,a,r,i){a.eachSeriesByType(c,function(n){var t=n.get("center"),s=n.get("radius");T.isArray(s)||(s=[0,s]),T.isArray(t)||(t=[t,t]);var e=r.getWidth(),o=r.getHeight(),l=Math.min(e,o),u=E(t[0],e),f=E(t[1],o),p=E(s[0],l/2),v=E(s[1],l/2),A=-n.get("startAngle")*g,y=n.get("minAngle")*g,x=n.getData().tree.root,C=n.getViewRoot(),w=C.depth,b=n.get("sort");b!=null&&m(C,b);var _=0;T.each(C.children,function(V){!isNaN(V.getValue())&&_++});var O=C.getValue(),L=Math.PI/(O||_)*2,D=C.depth>0,N=C.height-(D?-1:1),M=(v-p)/(N||1),F=n.get("clockwise"),R=n.get("stillShowZeroSum"),j=F?1:-1,B=function(V,Y){if(!V)return;var J=Y;if(V!==x){var se=V.getValue(),$=O===0&&R?L:se*L;$<y&&($=y),J=Y+j*$;var ae=V.depth-w-(D?-1:1),ge=p+M*ae,pe=p+M*(ae+1),Ne=V.getModel();Ne.get("r0")!=null&&(ge=E(Ne.get("r0"),l/2)),Ne.get("r")!=null&&(pe=E(Ne.get("r"),l/2)),V.setLayout({angle:$,startAngle:Y,endAngle:J,clockwise:F,cx:u,cy:f,r0:ge,r:pe})}if(V.children&&V.children.length){var de=0;T.each(V.children,function(Le){de+=B(Le,Y+de)})}return J-Y};if(D){var K=p,U=p+M,z=Math.PI*2;x.setLayout({angle:z,startAngle:A,endAngle:A+z,clockwise:F,cx:u,cy:f,r0:K,r:U})}B(C,A)})}function m(c,a){var r=c.children||[];c.children=h(r,a),r.length&&T.each(c.children,function(i){m(i,a)})}function h(c,a){if(typeof a=="function")return c.sort(a);var r=a==="asc";return c.sort(function(i,n){var t=(i.getValue()-n.getValue())*(r?1:-1);return t===0?(i.dataIndex-n.dataIndex)*(r?-1:1):t})}H.exports=S},y3Yb:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("HBhm")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="PaperClipOutlined";var c=g.forwardRef(h);k.default=c},"y4/Y":function(H,k,d){var I=d("ProS"),E=d("bYtY"),T=d("zTMp"),g=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),I.registerPreprocessor(function(S){if(S){(!S.axisPointer||S.axisPointer.length===0)&&(S.axisPointer={});var m=S.axisPointer.link;m&&!E.isArray(m)&&(S.axisPointer.link=[m])}}),I.registerProcessor(I.PRIORITY.PROCESSOR.STATISTIC,function(S,m){S.getComponent("axisPointer").coordSysAxesInfo=T.collect(S,m)}),I.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},g)},y7Aq:function(H,k,d){var I=d("bYtY"),E=d("+TT/"),T=E.getLayoutRect;function g(m,h,c){var a=m.option,r=a.align;if(r!=null&&r!=="auto")return r;for(var i={width:h.getWidth(),height:h.getHeight()},n=a.orient==="horizontal"?1:0,t=[["left","right","width"],["top","bottom","height"]],s=t[n],e=[0,null,10],o={},l=0;l<3;l++)o[t[1-n][l]]=e[l],o[s[l]]=l===2?c[0]:a[s[l]];var u=[["x","width",3],["y","height",0]][n],f=T(o,i,a.padding);return s[(f.margin[u[2]]||0)+f[u[0]]+f[u[1]]*.5<i[u[1]]*.5?0:1]}function S(m,h){return I.each(m||[],function(c){c.dataIndex!=null&&(c.dataIndexInside=c.dataIndex,c.dataIndex=null),c.highlightKey="visualMap"+(h?h.componentIndex:"")}),m}k.getItemAlign=g,k.makeHighDownBatch=S},y8nQ:function(H,k,d){"use strict";var I=d("cIOH"),E=d.n(I),T=d("gwTy"),g=d.n(T),S=d("1GLa")},yEEn:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="ArrowDownOutlined";var h=k.a=E.forwardRef(m)},yO87:function(H,k,d){var I=d("bYtY"),E=d("oVpE"),T=E.createSymbol,g=d("IwbS"),S=g.Group,m=d("OELB"),h=m.parsePercent,c=d("FBjb"),a=3;function r(e){return I.isArray(e)||(e=[+e,+e]),e}function i(e,o){var l=o.rippleEffectColor||o.color;e.eachChild(function(u){u.attr({z:o.z,zlevel:o.zlevel,style:{stroke:o.brushType==="stroke"?l:null,fill:o.brushType==="fill"?l:null}})})}function n(e,o){S.call(this);var l=new c(e,o),u=new S;this.add(l),this.add(u),u.beforeUpdate=function(){this.attr(l.getScale())},this.updateData(e,o)}var t=n.prototype;t.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.startEffectAnimation=function(e){for(var o=e.symbolType,l=e.color,u=this.childAt(1),f=0;f<a;f++){var p=T(o,-1,-1,2,2,l);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var v=-f/a*e.period+e.effectOffset;p.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(v).start(),p.animateStyle(!0).when(e.period,{opacity:0}).delay(v).start(),u.add(p)}i(u,e)},t.updateEffectAnimation=function(e){for(var o=this._effectCfg,l=this.childAt(1),u=["symbolType","period","rippleScale"],f=0;f<u.length;f++){var p=u[f];if(o[p]!==e[p]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}i(l,e)},t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.updateData=function(e,o){var l=e.hostModel;this.childAt(0).updateData(e,o);var u=this.childAt(1),f=e.getItemModel(o),p=e.getItemVisual(o,"symbol"),v=r(e.getItemVisual(o,"symbolSize")),A=e.getItemVisual(o,"color");u.attr("scale",v),u.traverse(function(L){L.attr({fill:A})});var y=f.getShallow("symbolOffset");if(y){var x=u.position;x[0]=h(y[0],v[0]),x[1]=h(y[1],v[1])}var C=e.getItemVisual(o,"symbolRotate");u.rotation=(C||0)*Math.PI/180||0;var w={};if(w.showEffectOn=l.get("showEffectOn"),w.rippleScale=f.get("rippleEffect.scale"),w.brushType=f.get("rippleEffect.brushType"),w.period=f.get("rippleEffect.period")*1e3,w.effectOffset=o/e.count(),w.z=f.getShallow("z")||0,w.zlevel=f.getShallow("zlevel")||0,w.symbolType=p,w.color=A,w.rippleEffectColor=f.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),w.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(w):this.startEffectAnimation(w),this._effectCfg=w;else{this._effectCfg=null,this.stopEffectAnimation();var b=this.childAt(0),_=function(){b.highlight(),w.showEffectOn!=="render"&&this.startEffectAnimation(w)},O=function(){b.downplay(),w.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",_,this).on("mouseout",O,this).on("emphasis",_,this).on("normal",O,this)}this._effectCfg=w},t.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},I.inherits(n,S);var s=n;H.exports=s},yS9w:function(H,k,d){var I=d("MEGo"),E=I.parseSVG,T=I.makeViewBoxTransform,g=d("4fz+"),S=d("x6Kt"),m=d("bYtY"),h=m.assert,c=m.createHashMap,a=d("mFDi"),r=d("4NO4"),i=r.makeInner,n=i(),t={load:function(e,o){var l=n(o).originRoot;if(l)return{root:l,boundingRect:n(o).boundingRect};var u=s(o);return n(o).originRoot=u.root,n(o).boundingRect=u.boundingRect,u},makeGraphic:function(e,o,l){var u=n(o),f=u.rootMap||(u.rootMap=c()),p=f.get(l);if(p)return p;var v=u.originRoot,A=u.boundingRect;return u.originRootHostKey?p=s(o,A).root:(u.originRootHostKey=l,p=v),f.set(l,p)},removeGraphic:function(e,o,l){var u=n(o),f=u.rootMap;f&&f.removeKey(l),l===u.originRootHostKey&&(u.originRootHostKey=null)}};function s(e,o){var l=e.svgXML,u,f;try{u=l&&E(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},f=u.root,h(f!=null)}catch(C){throw new Error(`Invalid svg format
|
|
|
`+C.message)}var p=u.width,v=u.height,A=u.viewBoxRect;if(o||(o=p==null||v==null?f.getBoundingRect():new a(0,0,0,0),p!=null&&(o.width=p),v!=null&&(o.height=v)),A){var y=T(A,o.width,o.height),x=f;f=new g,f.add(x),x.scale=y.scale,x.position=y.position}return f.setClipPath(new S({shape:o.plain()})),{root:f,boundingRect:o}}H.exports=t},yWXo:function(H,k,d){var I=d("IwbS"),E=d("oVpE"),T=E.createSymbol,g=d("OS9S"),S=4,m=I.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,i){var n=i.points,t=i.size,s=this.symbolProxy,e=s.shape,o=r.getContext?r.getContext():r,l=o&&t[0]<S;if(l)return;for(var u=0;u<n.length;){var f=n[u++],p=n[u++];if(isNaN(f)||isNaN(p))continue;if(this.softClipShape&&!this.softClipShape.contain(f,p))continue;e.x=f-t[0]/2,e.y=p-t[1]/2,e.width=t[0],e.height=t[1],s.buildPath(r,e,!0)}},afterBrush:function(r){var i=this.shape,n=i.points,t=i.size,s=t[0]<S;if(!s)return;this.setTransform(r);for(var e=0;e<n.length;){var o=n[e++],l=n[e++];if(isNaN(o)||isNaN(l))continue;if(this.softClipShape&&!this.softClipShape.contain(o,l))continue;r.fillRect(o-t[0]/2,l-t[1]/2,t[0],t[1])}this.restoreTransform(r)},findDataIndex:function(r,i){for(var n=this.shape,t=n.points,s=n.size,e=Math.max(s[0],4),o=Math.max(s[1],4),l=t.length/2-1;l>=0;l--){var u=l*2,f=t[u]-e/2,p=t[u+1]-o/2;if(r>=f&&i>=p&&r<=f+e&&i<=p+o)return l}return-1}});function h(){this.group=new I.Group}var c=h.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(r,i){this.group.removeAll();var n=new m({rectHover:!0,cursor:"default"});n.setShape({points:r.getLayout("symbolPoints")}),this._setCommon(n,r,!1,i),this.group.add(n),this._incremental=null},c.updateLayout=function(r){if(this._incremental)return;var i=r.getLayout("symbolPoints");this.group.eachChild(function(n){if(n.startIndex!=null){var t=(n.endIndex-n.startIndex)*2,s=n.startIndex*4*2;i=new Float32Array(i.buffer,s,t)}n.setShape("points",i)})},c.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clearIncremental(),r.count()>2e6?(this._incremental||(this._incremental=new g({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(r,i,n){var t;this._incremental?(t=new m,this._incremental.addDisplayable(t,!0)):(t=new m({rectHover:!0,cursor:"default",startIndex:r.start,endIndex:r.end}),t.incremental=!0,this.group.add(t)),t.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(t,i,!!this._incremental,n)},c._setCommon=function(r,i,n,t){var s=i.hostModel;t=t||{};var e=i.getVisual("symbolSize");r.setShape("size",e instanceof Array?e:[e,e]),r.softClipShape=t.clipShape||null,r.symbolProxy=T(i.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var o=r.shape.size[0]<S;r.useStyle(s.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var l=i.getVisual("color");l&&r.setColor(l),n||(r.seriesIndex=s.seriesIndex,r.on("mousemove",function(u){r.dataIndex=null;var f=r.findDataIndex(u.offsetX,u.offsetY);f>=0&&(r.dataIndex=f+(r.startIndex||0))}))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var r=this._incremental;r&&r.clearDisplaybles()};var a=h;H.exports=a},ycre:function(H,k,d){var I=d("711d"),E=I("length");H.exports=E},ye1Q:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="LoadingOutlined";var h=k.a=E.forwardRef(m)},ygfH:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var I={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"};k.default=I},yik8:function(H,k,d){var I=d("bZqE"),E=I.eachAfter,T=I.eachBefore,g=d("Itpr"),S=g.init,m=g.firstWalk,h=g.secondWalk,c=g.separation,a=g.radialCoordinate,r=g.getViewRect;function i(t,s){t.eachSeriesByType("tree",function(e){n(e,s)})}function n(t,s){var e=r(t,s);t.layoutInfo=e;var o=t.get("layout"),l=0,u=0,f=null;o==="radial"?(l=2*Math.PI,u=Math.min(e.height,e.width)/2,f=c(function(N,M){return(N.parentNode===M.parentNode?1:2)/N.depth})):(l=e.width,u=e.height,f=c());var p=t.getData().tree.root,v=p.children[0];if(v){S(p),E(v,m,f),p.hierNode.modifier=-v.hierNode.prelim,T(v,h);var A=v,y=v,x=v;T(v,function(N){var M=N.getLayout().x;M<A.getLayout().x&&(A=N),M>y.getLayout().x&&(y=N),N.depth>x.depth&&(x=N)});var C=A===y?1:f(A,y)/2,w=C-A.getLayout().x,b=0,_=0,O=0,L=0;if(o==="radial")b=l/(y.getLayout().x+C+w),_=u/(x.depth-1||1),T(v,function(N){O=(N.getLayout().x+w)*b,L=(N.depth-1)*_;var M=a(O,L);N.setLayout({x:M.x,y:M.y,rawX:O,rawY:L},!0)});else{var D=t.getOrient();D==="RL"||D==="LR"?(_=u/(y.getLayout().x+C+w),b=l/(x.depth-1||1),T(v,function(N){L=(N.getLayout().x+w)*_,O=D==="LR"?(N.depth-1)*b:l-(N.depth-1)*b,N.setLayout({x:O,y:L},!0)})):(D==="TB"||D==="BT")&&(b=l/(y.getLayout().x+C+w),_=u/(x.depth-1||1),T(v,function(N){O=(N.getLayout().x+w)*b,L=D==="TB"?(N.depth-1)*_:u-(N.depth-1)*_,N.setLayout({x:O,y:L},!0)}))}}}H.exports=i},ynwM:function(H,k,d){var I=d("MFOe"),E=I.Global;H.exports={name:"oldFF-globalStorage",read:g,write:S,each:m,remove:h,clearAll:c};var T=E.globalStorage;function g(a){return T[a]}function S(a,r){T[a]=r}function m(a){for(var r=T.length-1;r>=0;r--){var i=T.key(r);a(T[i],i)}}function h(a){return T.removeItem(a)}function c(){m(function(a,r){delete T[a]})}},ypgQ:function(H,k,d){var I=d("bYtY"),E=d("4NO4"),T=d("bLfw"),g=I.each,S=I.clone,m=I.map,h=I.merge,c=/^(min|max)?(.+)$/;function a(o){this._api=o,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}a.prototype={constructor:a,setOption:function(o,l){o&&I.each(E.normalizeToArray(o.series),function(p){p&&p.data&&I.isTypedArray(p.data)&&I.setAsPrimitive(p.data)}),o=S(o);var u=this._optionBackup,f=r.call(this,o,l,!u);this._newBaseOption=f.baseOption,u?(s(u.baseOption,f.baseOption),f.timelineOptions.length&&(u.timelineOptions=f.timelineOptions),f.mediaList.length&&(u.mediaList=f.mediaList),f.mediaDefault&&(u.mediaDefault=f.mediaDefault)):this._optionBackup=f},mountOption:function(o){var l=this._optionBackup;return this._timelineOptions=m(l.timelineOptions,S),this._mediaList=m(l.mediaList,S),this._mediaDefault=S(l.mediaDefault),this._currentMediaIndices=[],S(o?l.baseOption:this._newBaseOption)},getTimelineOption:function(o){var l,u=this._timelineOptions;if(u.length){var f=o.getComponent("timeline");f&&(l=S(u[f.getCurrentIndex()],!0))}return l},getMediaOption:function(o){var l=this._api.getWidth(),u=this._api.getHeight(),f=this._mediaList,p=this._mediaDefault,v=[],A=[];if(!f.length&&!p)return A;for(var y=0,x=f.length;y<x;y++)i(f[y].query,l,u)&&v.push(y);return!v.length&&p&&(v=[-1]),v.length&&!t(v,this._currentMediaIndices)&&(A=m(v,function(C){return S(C===-1?p.option:f[C].option)})),this._currentMediaIndices=v,A}};function r(o,l,u){var f=[],p=[],v,A,y=o.timeline;if(o.baseOption&&(A=o.baseOption),(y||o.options)&&(A=A||{},f=(o.options||[]).slice()),o.media){A=A||{};var x=o.media;g(x,function(C){C&&C.option&&(C.query?p.push(C):v||(v=C))})}return A||(A=o),A.timeline||(A.timeline=y),g([A].concat(f).concat(I.map(p,function(C){return C.option})),function(C){g(l,function(w){w(C,u)})}),{baseOption:A,timelineOptions:f,mediaDefault:v,mediaList:p}}function i(o,l,u){var f={width:l,height:u,aspectratio:l/u},p=!0;return I.each(o,function(v,A){var y=A.match(c);if(!y||!y[1]||!y[2])return;var x=y[1],C=y[2].toLowerCase();n(f[C],v,x)||(p=!1)}),p}function n(o,l,u){return u==="min"?o>=l:u==="max"?o<=l:o===l}function t(o,l){return o.join(",")===l.join(",")}function s(o,l){l=l||{},g(l,function(u,f){if(u==null)return;var p=o[f];if(!T.hasClass(f))o[f]=h(p,u,!0);else{u=E.normalizeToArray(u),p=E.normalizeToArray(p);var v=E.mappingToExists(p,u);o[f]=m(v,function(A){return A.option&&A.exist?h(A.exist,A.option,!0):A.exist||A.option})}})}var e=a;H.exports=e},yxFR:function(H,k,d){var I=d("y+Vt"),E=d("nPnh"),T=E.subPixelOptimizeLine,g={},S=I.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(h,c){var a,r,i,n;this.subPixelOptimize?(T(g,c,this.style),a=g.x1,r=g.y1,i=g.x2,n=g.y2):(a=c.x1,r=c.y1,i=c.x2,n=c.y2);var t=c.percent;if(t===0)return;h.moveTo(a,r),t<1&&(i=a*(1-t)+i*t,n=r*(1-t)+n*t),h.lineTo(i,n)},pointAt:function(h){var c=this.shape;return[c.x1*(1-h)+c.x2*h,c.y1*(1-h)+c.y2*h]}});H.exports=S},z35g:function(H,k,d){var I=d("bYtY");function E(S){return this._axes[S]}var T=function(S){this._axes={},this._dimList=[],this.name=S||""};T.prototype={constructor:T,type:"cartesian",getAxis:function(S){return this._axes[S]},getAxes:function(){return I.map(this._dimList,E,this)},getAxesByScale:function(S){return S=S.toLowerCase(),I.filter(this.getAxes(),function(m){return m.scale.type===S})},addAxis:function(S){var m=S.dim;this._axes[m]=S,this._dimList.push(m)},dataToCoord:function(S){return this._dataCoordConvert(S,"dataToCoord")},coordToData:function(S){return this._dataCoordConvert(S,"coordToData")},_dataCoordConvert:function(S,m){for(var h=this._dimList,c=S instanceof Array?[]:{},a=0;a<h.length;a++){var r=h[a],i=this._axes[r];c[r]=i[m](S[r])}return c}};var g=T;H.exports=g},z7Xi:function(H,k,d){"use strict";var I=d("VTBJ"),E=d("q1tI"),T={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"},g=T,S=d("6VBw"),m=function(a,r){return E.createElement(S.a,Object(I.a)(Object(I.a)({},a),{},{ref:r,icon:g}))};m.displayName="UploadOutlined";var h=k.a=E.forwardRef(m)},zAh6:function(H,k,d){"use strict";d.d(k,"a",function(){return S});var I=d("xEkU"),E=d.n(I),T=d("i6bk");function g(m,h,c,a){var r=c-h;return m/=a/2,m<1?r/2*m*m*m+h:r/2*((m-=2)*m*m+2)+h}function S(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=h.getContainer,a=c===void 0?function(){return window}:c,r=h.callback,i=h.duration,n=i===void 0?450:i,t=a(),s=Object(T.a)(t,!0),e=Date.now(),o=function l(){var u=Date.now(),f=u-e,p=g(f>n?n:f,s,m,n);Object(T.b)(t)?t.scrollTo(window.pageXOffset,p):t instanceof HTMLDocument||t.constructor.name==="HTMLDocument"?t.documentElement.scrollTop=p:t.scrollTop=p,f<n?E()(l):typeof r=="function"&&r()};E()(o)}},zDms:function(H,k,d){var I=d("bYtY"),E=d("OELB"),T=d("UOVi"),g=d("72pK"),S=I.each,m=E.asc,h=function(t,s,e,o){this._dimName=t,this._axisIndex=s,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=o,this._dataZoomModel=e};h.prototype={constructor:h,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],s=this.ecModel;return s.eachSeries(function(e){if(T.isCoordSupported(e.get("coordinateSystem"))){var o=this._dimName,l=s.queryComponents({mainType:o+"Axis",index:e.get(o+"AxisIndex"),id:e.get(o+"AxisId")})[0];this._axisIndex===(l&&l.componentIndex)&&t.push(e)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t=this._dimName,s=this.ecModel,e=this.getAxisModel(),o=t==="x"||t==="y",l,u;o?(u="gridIndex",l=t==="x"?"y":"x"):(u="polarIndex",l=t==="angle"?"radius":"angle");var f;return s.eachComponent(l+"Axis",function(p){(p.get(u)||0)===(e.get(u)||0)&&(f=p)}),f},getMinMaxSpan:function(){return I.clone(this._minMaxSpan)},calculateDataWindow:function(t){var s=this._dataExtent,e=this.getAxisModel(),o=e.axis.scale,l=this._dataZoomModel.getRangePropMode(),u=[0,100],f=[],p=[],v;S(["start","end"],function(x,C){var w=t[x],b=t[x+"Value"];l[C]==="percent"?(w==null&&(w=u[C]),b=o.parse(E.linearMap(w,u,s))):(v=!0,b=b==null?s[C]:o.parse(b),w=E.linearMap(b,s,u)),p[C]=b,f[C]=w}),m(p),m(f);var A=this._minMaxSpan;v?y(p,f,s,u,!1):y(f,p,u,s,!0);function y(x,C,w,b,_){var O=_?"Span":"ValueSpan";g(0,x,w,"all",A["min"+O],A["max"+O]);for(var L=0;L<2;L++)C[L]=E.linearMap(x[L],w,b,!0),_&&(C[L]=o.parse(C[L]))}return{valueWindow:p,percentWindow:f}},reset:function(t){if(t!==this._dataZoomModel)return;var s=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,s),i(this);var e=this.calculateDataWindow(t.settledOption);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,r(this)},restore:function(t){if(t!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,r(this,!0)},filterData:function(t,s){if(t!==this._dataZoomModel)return;var e=this._dimName,o=this.getTargetSeriesModels(),l=t.get("filterMode"),u=this._valueWindow;if(l==="none")return;S(o,function(p){var v=p.getData(),A=v.mapDimension(e,!0);if(!A.length)return;l==="weakFilter"?v.filterSelf(function(y){for(var x,C,w,b=0;b<A.length;b++){var _=v.get(A[b],y),O=!isNaN(_),L=_<u[0],D=_>u[1];if(O&&!L&&!D)return!0;O&&(w=!0),L&&(x=!0),D&&(C=!0)}return w&&x&&C}):S(A,function(y){if(l==="empty")p.setData(v=v.map(y,function(C){return f(C)?C:NaN}));else{var x={};x[y]=u,v.selectRange(x)}}),S(A,function(y){v.setApproximateExtent(u,y)})});function f(p){return p>=u[0]&&p<=u[1]}}};function c(t,s,e){var o=[Infinity,-Infinity];return S(e,function(l){var u=l.getData();u&&S(u.mapDimension(s,!0),function(f){var p=u.getApproximateExtent(f);p[0]<o[0]&&(o[0]=p[0]),p[1]>o[1]&&(o[1]=p[1])})}),o[1]<o[0]&&(o=[NaN,NaN]),a(t,o),o}function a(t,s){var e=t.getAxisModel(),o=e.getMin(!0),l=e.get("type")==="category",u=l&&e.getCategories().length;o!=null&&o!=="dataMin"&&typeof o!="function"?s[0]=o:l&&(s[0]=u>0?0:NaN);var f=e.getMax(!0);return f!=null&&f!=="dataMax"&&typeof f!="function"?s[1]=f:l&&(s[1]=u>0?u-1:NaN),e.get("scale",!0)||(s[0]>0&&(s[0]=0),s[1]<0&&(s[1]=0)),s}function r(t,s){var e=t.getAxisModel(),o=t._percentWindow,l=t._valueWindow;if(!o)return;var u=E.getPixelPrecision(l,[0,500]);u=Math.min(u,20);var f=s||o[0]===0&&o[1]===100;e.setRange(f?null:+l[0].toFixed(u),f?null:+l[1].toFixed(u))}function i(t){var s=t._minMaxSpan={},e=t._dataZoomModel,o=t._dataExtent;S(["min","max"],function(l){var u=e.get(l+"Span"),f=e.get(l+"ValueSpan");f!=null&&(f=t.getAxisModel().axis.scale.parse(f)),f!=null?u=E.linearMap(o[0]+f,o,[0,100],!0):u!=null&&(f=E.linearMap(u,[0,100],o,!0)-o[0]),s[l+"Span"]=u,s[l+"ValueSpan"]=f})}var n=h;H.exports=n},zM3Q:function(H,k,d){var I=d("4NO4"),E=I.makeInner;function T(){var g=E();return function(S){var m=g(S),h=S.pipelineContext,c=m.large,a=m.progressiveRender,r=m.large=h&&h.large,i=m.progressiveRender=h&&h.progressiveRender;return!!(c^r||a^i)&&"reset"}}H.exports=T},zRKj:function(H,k,d){d("Ae16"),d("Sp2Z"),d("y4/Y")},zTMp:function(H,k,d){var I=d("bYtY"),E=d("Qxkt"),T=I.each,g=I.curry;function S(o,l){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return m(u,o,l),u.seriesInvolved&&c(u,o),u}function m(o,l,u){var f=l.getComponent("tooltip"),p=l.getComponent("axisPointer"),v=p.get("link",!0)||[],A=[];T(u.getCoordinateSystems(),function(y){if(!y.axisPointerEnabled)return;var x=e(y.model),C=o.coordSysAxesInfo[x]={};o.coordSysMap[x]=y;var w=y.model,b=w.getModel("tooltip",f);if(T(y.getAxes(),g(D,!1,null)),y.getTooltipAxes&&f&&b.get("show")){var _=b.get("trigger")==="axis",O=b.get("axisPointer.type")==="cross",L=y.getTooltipAxes(b.get("axisPointer.axis"));(_||O)&&T(L.baseAxes,g(D,O?"cross":!0,_)),O&&T(L.otherAxes,g(D,"cross",!1))}function D(N,M,F){var R=F.model.getModel("axisPointer",p),j=R.get("show");if(!j||j==="auto"&&!N&&!s(R))return;M==null&&(M=R.get("triggerTooltip")),R=N?h(F,b,p,l,N,M):R;var B=R.get("snap"),K=e(F.model),U=M||B||F.type==="category",z=o.axesInfo[K]={key:K,axis:F,coordSys:y,axisPointerModel:R,triggerTooltip:M,involveSeries:U,snap:B,useHandle:s(R),seriesModels:[]};C[K]=z,o.seriesInvolved|=U;var V=a(v,F);if(V!=null){var Y=A[V]||(A[V]={axesInfo:{}});Y.axesInfo[K]=z,Y.mapper=v[V].mapper,z.linkGroup=Y}}})}function h(o,l,u,f,p,v){var A=l.getModel("axisPointer"),y={};T(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){y[b]=I.clone(A.get(b))}),y.snap=o.type!=="category"&&!!v,A.get("type")==="cross"&&(y.type="line");var x=y.label||(y.label={});if(x.show==null&&(x.show=!1),p==="cross"){var C=A.get("label.show");if(x.show=C!=null?C:!0,!v){var w=y.lineStyle=A.get("crossStyle");w&&I.defaults(x,w.textStyle)}}return o.model.getModel("axisPointer",new E(y,u,f))}function c(o,l){l.eachSeries(function(u){var f=u.coordinateSystem,p=u.get("tooltip.trigger",!0),v=u.get("tooltip.show",!0);if(!f||p==="none"||p===!1||p==="item"||v===!1||u.get("axisPointer.show",!0)===!1)return;T(o.coordSysAxesInfo[e(f.model)],function(A){var y=A.axis;f.getAxis(y.dim)===y&&(A.seriesModels.push(u),A.seriesDataCount==null&&(A.seriesDataCount=0),A.seriesDataCount+=u.getData().count())})},this)}function a(o,l){for(var u=l.model,f=l.dim,p=0;p<o.length;p++){var v=o[p]||{};if(r(v[f+"AxisId"],u.id)||r(v[f+"AxisIndex"],u.componentIndex)||r(v[f+"AxisName"],u.name))return p}}function r(o,l){return o==="all"||I.isArray(o)&&I.indexOf(o,l)>=0||o===l}function i(o){var l=n(o);if(!l)return;var u=l.axisPointerModel,f=l.axis.scale,p=u.option,v=u.get("status"),A=u.get("value");A!=null&&(A=f.parse(A));var y=s(u);v==null&&(p.status=y?"show":"hide");var x=f.getExtent().slice();x[0]>x[1]&&x.reverse(),(A==null||A>x[1])&&(A=x[1]),A<x[0]&&(A=x[0]),p.value=A,y&&(p.status=l.axis.scale.isBlank()?"hide":"show")}function n(o){var l=(o.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return l&&l.axesInfo[e(o)]}function t(o){var l=n(o);return l&&l.axisPointerModel}function s(o){return!!o.get("handle.show")}function e(o){return o.type+"||"+o.id}k.collect=S,k.fixValue=i,k.getAxisInfo=n,k.getAxisPointerModel=t,k.makeKey=e},zYTA:function(H,k,d){var I=d("bYtY"),E=256;function T(){var S=I.createCanvas();this.canvas=S,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}T.prototype={update:function(S,m,h,c,a,r){var i=this._getBrush(),n=this._getGradient(S,a,"inRange"),t=this._getGradient(S,a,"outOfRange"),s=this.pointSize+this.blurSize,e=this.canvas,o=e.getContext("2d"),l=S.length;e.width=m,e.height=h;for(var u=0;u<l;++u){var f=S[u],p=f[0],v=f[1],A=f[2],y=c(A);o.globalAlpha=y,o.drawImage(i,p-s,v-s)}if(!e.width||!e.height)return e;for(var x=o.getImageData(0,0,e.width,e.height),C=x.data,w=0,b=C.length,_=this.minOpacity,O=this.maxOpacity,L=O-_;w<b;){var y=C[w+3]/256,D=Math.floor(y*(E-1))*4;if(y>0){var N=r(y)?n:t;y>0&&(y=y*L+_),C[w++]=N[D],C[w++]=N[D+1],C[w++]=N[D+2],C[w++]=N[D+3]*y*256}else w+=4}return o.putImageData(x,0,0),e},_getBrush:function(){var S=this._brushCanvas||(this._brushCanvas=I.createCanvas()),m=this.pointSize+this.blurSize,h=m*2;S.width=h,S.height=h;var c=S.getContext("2d");return c.clearRect(0,0,h,h),c.shadowOffsetX=h,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-m,m,this.pointSize,0,Math.PI*2,!0),c.closePath(),c.fill(),S},_getGradient:function(S,m,h){for(var c=this._gradientPixels,a=c[h]||(c[h]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],i=0,n=0;n<256;n++)m[h](n/255,!0,r),a[i++]=r[0],a[i++]=r[1],a[i++]=r[2],a[i++]=r[3];return a}};var g=T;H.exports=g},zarK:function(H,k,d){var I=d("YH21"),E=I.addEventListener,T=I.removeEventListener,g=I.normalizeEvent,S=I.getNativeEvent,m=d("bYtY"),h=d("H6uX"),c=d("ItGF"),a=300,r=c.domSupported,i=function(){var N=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],M=["touchstart","touchend","touchmove"],F={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},R=m.map(N,function(j){var B=j.replace("mouse","pointer");return F.hasOwnProperty(B)?B:j});return{mouse:N,touch:M,pointer:R}}(),n={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function t(N){return N==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":N}function s(N){var M=N.pointerType;return M==="pen"||M==="touch"}function e(N){N.touching=!0,N.touchTimer!=null&&(clearTimeout(N.touchTimer),N.touchTimer=null),N.touchTimer=setTimeout(function(){N.touching=!1,N.touchTimer=null},700)}function o(N){N&&(N.zrByTouch=!0)}function l(N,M){return g(N.dom,new f(N,M),!0)}function u(N,M){for(var F=M,R=!1;F&&F.nodeType!==9&&!(R=F.domBelongToZr||F!==M&&F===N.painterRoot);)F=F.parentNode;return R}function f(N,M){this.type=M.type,this.target=this.currentTarget=N.dom,this.pointerType=M.pointerType,this.clientX=M.clientX,this.clientY=M.clientY}var p=f.prototype;p.stopPropagation=p.stopImmediatePropagation=p.preventDefault=m.noop;var v={mousedown:function(M){M=g(this.dom,M),this._mayPointerCapture=[M.zrX,M.zrY],this.trigger("mousedown",M)},mousemove:function(M){M=g(this.dom,M);var F=this._mayPointerCapture;F&&(M.zrX!==F[0]||M.zrY!==F[1])&&b(this,!0),this.trigger("mousemove",M)},mouseup:function(M){M=g(this.dom,M),b(this,!1),this.trigger("mouseup",M)},mouseout:function(M){M=g(this.dom,M),this._pointerCapturing&&(M.zrEventControl="no_globalout");var F=M.toElement||M.relatedTarget;M.zrIsToLocalDOM=u(this,F),this.trigger("mouseout",M)},touchstart:function(M){M=g(this.dom,M),o(M),this._lastTouchMoment=new Date,this.handler.processGesture(M,"start"),v.mousemove.call(this,M),v.mousedown.call(this,M)},touchmove:function(M){M=g(this.dom,M),o(M),this.handler.processGesture(M,"change"),v.mousemove.call(this,M)},touchend:function(M){M=g(this.dom,M),o(M),this.handler.processGesture(M,"end"),v.mouseup.call(this,M),+new Date-this._lastTouchMoment<a&&v.click.call(this,M)},pointerdown:function(M){v.mousedown.call(this,M)},pointermove:function(M){s(M)||v.mousemove.call(this,M)},pointerup:function(M){v.mouseup.call(this,M)},pointerout:function(M){s(M)||v.mouseout.call(this,M)}};m.each(["click","mousewheel","dblclick","contextmenu"],function(N){v[N]=function(M){M=g(this.dom,M),this.trigger(N,M)}});var A={pointermove:function(M){s(M)||A.mousemove.call(this,M)},pointerup:function(M){A.mouseup.call(this,M)},mousemove:function(M){this.trigger("mousemove",M)},mouseup:function(M){var F=this._pointerCapturing;b(this,!1),this.trigger("mouseup",M),F&&(M.zrEventControl="only_globalout",this.trigger("mouseout",M))}};function y(N,M){var F=M.domHandlers;c.pointerEventsSupported?m.each(i.pointer,function(R){C(M,R,function(j){F[R].call(N,j)})}):(c.touchEventsSupported&&m.each(i.touch,function(R){C(M,R,function(j){F[R].call(N,j),e(M)})}),m.each(i.mouse,function(R){C(M,R,function(j){j=S(j),M.touching||F[R].call(N,j)})}))}function x(N,M){c.pointerEventsSupported?m.each(n.pointer,F):c.touchEventsSupported||m.each(n.mouse,F);function F(R){function j(B){B=S(B),u(N,B.target)||(B=l(N,B),M.domHandlers[R].call(N,B))}C(M,R,j,{capture:!0})}}function C(N,M,F,R){N.mounted[M]=F,N.listenerOpts[M]=R,E(N.domTarget,t(M),F,R)}function w(N){var M=N.mounted;for(var F in M)M.hasOwnProperty(F)&&T(N.domTarget,t(F),M[F],N.listenerOpts[F]);N.mounted={}}function b(N,M){if(N._mayPointerCapture=null,r&&N._pointerCapturing^M){N._pointerCapturing=M;var F=N._globalHandlerScope;M?x(N,F):w(F)}}function _(N,M){this.domTarget=N,this.domHandlers=M,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function O(N,M){h.call(this),this.dom=N,this.painterRoot=M,this._localHandlerScope=new _(N,v),r&&(this._globalHandlerScope=new _(document,A)),this._pointerCapturing=!1,this._mayPointerCapture=null,y(this,this._localHandlerScope)}var L=O.prototype;L.dispose=function(){w(this._localHandlerScope),r&&w(this._globalHandlerScope)},L.setCursor=function(N){this.dom.style&&(this.dom.style.cursor=N||"default")},m.mixin(O,h);var D=O;H.exports=D},zdCA:function(H,k,d){"use strict";var I=d("284h"),E=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var T=E(d("3tO9")),g=I(d("q1tI")),S=E(d("PSzr")),m=E(d("KQxl")),h=function(r,i){return g.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:i,icon:S.default}))};h.displayName="BarsOutlined";var c=g.forwardRef(h);k.default=c},zeV3:function(H,k,d){"use strict";var I=d("pVnL"),E=d.n(I),T=d("lSNA"),g=d.n(T),S=d("q1tI"),m=d.n(S),h=d("TSYQ"),c=d.n(h),a=d("H84U"),r=function(t,s){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&s.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l<o.length;l++)s.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(t,o[l])&&(e[o[l]]=t[o[l]]);return e},i={small:8,middle:16,large:24},n=function(s){var e,o=S.useContext(a.b),l=o.getPrefixCls,u=o.space,f=o.direction,p=s.size,v=p===void 0?(u==null?void 0:u.size)||"small":p,A=s.align,y=s.className,x=s.children,C=s.direction,w=C===void 0?"horizontal":C,b=s.prefixCls,_=r(s,["size","align","className","children","direction","prefixCls"]),O=S.Children.count(x);if(O===0)return null;var L=A===void 0&&w==="horizontal"?"center":A,D=l("space",b),N=c()(D,"".concat(D,"-").concat(w),(e={},g()(e,"".concat(D,"-rtl"),f==="rtl"),g()(e,"".concat(D,"-align-").concat(L),L),e),y),M="".concat(D,"-item"),F=f==="rtl"?"marginLeft":"marginRight";return S.createElement("div",E()({className:N},_),S.Children.map(x,function(R,j){return S.createElement("div",{className:M,key:"".concat(M,"-").concat(j),style:j===O-1||R===null||R===void 0?{}:g()({},w==="vertical"?"marginBottom":F,typeof v=="string"?i[v]:v)},R)}))};k.a=n},zoYe:function(H,k,d){var I=d("nmnc"),E=d("eUgh"),T=d("Z0cm"),g=d("/9aa"),S=1/0,m=I?I.prototype:void 0,h=m?m.toString:void 0;function c(a){if(typeof a=="string")return a;if(T(a))return E(a,c)+"";if(g(a))return h?h.call(a):"";var r=a+"";return r=="0"&&1/a==-S?"-0":r}H.exports=c},zuHt:function(H,k,d){var I=d("bYtY");function E(T){var g={};T.eachSeriesByType("map",function(S){var m=S.getMapType();if(S.getHostGeoModel()||g[m])return;var h={};I.each(S.seriesGroup,function(a){var r=a.coordinateSystem,i=a.originalData;a.get("showLegendSymbol")&&T.getComponent("legend")&&i.each(i.mapDimension("value"),function(n,t){var s=i.getName(t),e=r.getRegion(s);if(!e||isNaN(n))return;var o=h[s]||0,l=r.dataToPoint(e.center);h[s]=o+1,i.setItemLayout(t,{point:l,offset:o})})});var c=S.getData();c.each(function(a){var r=c.getName(a),i=c.getItemLayout(a)||{};i.showLabel=!h[r],c.setItemLayout(a,i)}),g[m]=!0})}H.exports=E}}]);
|